enhancement: Load the neighborhood background notes into the scout's model stages
Back to our planProblem
In plain words: the automated scout's AI steps only see intelligence/coverage.md and intelligence/area.yaml. The new neighborhood background notes (intelligence/background.md and its topic notes, #1432) never reach them, so an automated run cannot use the plan's past and planned future when judging whether an item belongs. Only a hand-run scout, which reads the folder, can.
Summary of the finding on #1432 and PR #1433 (2026-11-23, worker session): the runner composes each stage's message from the stage prompt, coverage.md plus the area words, the output schema and the item (runner/lib/contract.mjs, runner/lib/model.mjs). #1433 added a short "Planning background" section to coverage.md as the part the stages do receive.
Proposed fix
- Load
intelligence/background.mdinto the stages that judge relevance (verify and curate; draft only if it needs it), and the topic notes only when they fit a token budget. - Keep the budget in
pipeline.yamlas one setting, and say in the run log what was loaded. - Decide whether the short section in
coverage.mdstays or points to the loaded note.
Existing work compared
Searched open and closed issues on 2026-11-23 for "background.md runner", "intelligence coverage.md model stages load" and "scout pipeline background context token budget". Found #1432 (wrote the notes; excluded runner changes), #364 (built the runner) and #337 (the contract); none loads the notes into the stages. The #1255 note that the pipeline loads only coverage.md is the same limit for the editorial standard. This is new work.
Acceptance criteria
- Not done: The verify and curate stages receive the background index within the token budget, and the budget is one setting.
- Not done: A run's log records which background files were loaded.
- Not done: Tests cover the composed message with and without the notes, and an over-budget case.
- Not done:
intelligence/README.mddescribes what the stages are given.
Files likely touched
intelligence/runner/, intelligence/pipeline.yaml, intelligence/README.md, intelligence/coverage.md
Must not touch
src/
Open questions
None
Area
intelligence
Priority
priority: medium
Generated by Claude Code, opens in a new tab