Walking skeleton — end-to-end file x batch matrix walk on a minimal 2-file x 2-batch scope
Goal
Deliver the walking-skeleton piece of the file x rule-batch matrix walk for /impl-hygiene-review.
Implementation Sketch
Per the matrix-walk topology: the runtime (scripts/impl_hygiene_review_runtime/) owns the loop; the LLM gets ONE (anchor_file, rule_batch) cell per dispatch. The anchor file is the finding subject; the cell agent reads cross-file context freely (encouraged). Rule content renders from the JSON SSOT generator; per-cell findings flow through the shared finding_emit._classify_finding drop-unless-verified gate into both emission sinks (plan/bug §NN.R.H + raw-context report).
Spec References
.claude/rules/workflow-ownership.md §1— the script owns the loop; one bounded cell per LLM dispatch..claude/rules/script-first.md §1— orchestration lives inscripts/<skill>_runtime/.scripts/impl_hygiene_rules_runtime/— the JSON SSOT generator +category_tokens()(rule content for each batch).- Predecessor:
plans/completed/impl-hygiene-rules-as-data(JSON SSOT + 5-batch decomposition + raw-context report sink).
Work Items
- Stand up a minimal 2-file x 2-batch fixture scope and walk it end-to-end through the runtime
- Assert the runtime serves exactly 4 cells (2 files x 2 batches), each carrying one anchor file + one batch
- Prove aggregation: all 4 cells’ findings land in the report sink
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “impl-hygiene-review-matrix-walk/s-1d23383e” }, “generated_at”: “2026-06-21T14:00:11.284577+00:00”, “graph_state”: { “head_sha”: “b0bd51a8”, “last_code_import_at”: “2026-06-21T13:53:01.953Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:impl-hygiene-review-matrix-walk/s-1d23383e] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/impl-hygiene-review-matrix-walk” } } }
(full dossier: walking-skeleton—s-1d23383e.intel.json)