Issue 358
Intelligence: pin the routing invariants in pipeline.schema.json
Back to our planOpen
citech-debtpriority: low
Problem
Since #355 the routing table (which tool each curate decision goes to) lives in intelligence/pipeline.yaml as routes, read by the submit prompt and scripts/check-intelligence.mjs. pipeline.schema.json checks that all six keys exist and each value is one of the three tools, but any tool is allowed for any decision. Changing update: reportItem to none, with a matching eval case, passes the check, so a data edit could quietly drop editor reports or send rejected items to submitSuggestion. Found in re-review 5639589226 on #355 (Minor 7).
Acceptance criteria
pipeline.schema.jsonpins the invariants withconst:accept: submitSuggestion;needs-review,update,cancel: reportItem;reject,duplicate: none.- A mutation of any route fails
node scripts/check-intelligence.mjs, listed in the PR's "How to test".
Generated by Claude Code, opens in a new tab