Skip to content

feat(memory): wire recall into makeDispatcher#502

Merged
magicpro97 merged 1 commit into
mainfrom
feat/memory-make-dispatcher
Jul 2, 2026
Merged

feat(memory): wire recall into makeDispatcher#502
magicpro97 merged 1 commit into
mainfrom
feat/memory-make-dispatcher

Conversation

@magicpro97

Copy link
Copy Markdown
Owner

Closes #488

Copilot AI review requested due to automatic review settings July 2, 2026 10:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements Issue #488’s “per-unit past-decision injection” by wiring memory recall into makeDispatcher, so each work unit’s generated CONTEXT.md can include a “Relevant past decisions” block when recall returns hits.

Changes:

  • Add memory-provider resolution (from settings or injected seam), recall (name+spec), and pass memoryBlock into buildEnginePrompt within makeDispatcher.
  • Introduce a memoryProvider? injection interface for tests/overrides.
  • Add tests covering prompt injection when the injected provider returns hits vs. returns no results.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/commands/dispatch-runtime.ts Resolves a memory provider, recalls per-unit memory, and passes a rendered memory block into the dispatch prompt generation.
test/commands-coverage.test.ts Adds tests ensuring CONTEXT.md includes/excludes the “Relevant past decisions” block based on provider recall results.

Comment thread src/commands/dispatch-runtime.ts Outdated
Comment thread test/commands-coverage.test.ts Outdated
…ize-waiver to #503

Signed-off-by: magicpro97 <magicpro97@users.noreply.github.com>
@magicpro97 magicpro97 force-pushed the feat/memory-make-dispatcher branch from 34f7d73 to 43c3b7b Compare July 2, 2026 10:49
@magicpro97 magicpro97 merged commit f5fc538 into main Jul 2, 2026
2 checks passed
@magicpro97 magicpro97 deleted the feat/memory-make-dispatcher branch July 2, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(memory): wire recall into makeDispatcher — per-unit past-decision injection

2 participants