Local Scout: a first-run cutoff on report date for feeds with a long archive
Back to our planProblem
In plain words: on its first read of the police incident reports feed, Local Scout treats about a year of old reports as new and works through them a few per run, so old items use the model budget before current ones are done.
Found in the review of #1481: all 81 items, back about a year, are new on the first run. The AI agents take them in turns, newest first, so the backlog takes many runs. The relevance rules reject past items one by one, which costs a model call each.
Proposed fix
Decide, and record, a first-run cutoff on the report's date for sources whose feed carries a long archive: items older than the cutoff are not new work. Prefer a setting in sources.yaml over a number in code, and check how it affects an update to an older known report (an update is always an update).
Acceptance criteria
- Not done: The cutoff is a source setting with a test; an older item does not reach a model on the first run.
- Not done: An update to a known older report still reaches the editor as an update.
Files likely touched
intelligence/sources.yaml, intelligence/schemas/sources.schema.json, intelligence/runner/lib/scout.mjs, intelligence/runner/test/
Must not touch
src/
Existing work compared
#993 and #1481 (the police feed, where it was found), #272 (the collector's state and cursor). Other sources are short lists, so none has this problem yet.
Area
tooling
Priority
low
Generated by Claude Code, opens in a new tab