100%

Section 03 — dispatch-wiring-fixinline

Goal

Wire the advisory into the serve path, emit the impl-hygiene-review dispatch envelope, drain findings inline, gate TPR on correctness-adjacent findings, and advance the watermark.

Implementation Sketch

Call attach_hygiene_sweep_advisory at the 3 roadmap.py call sites (~1111/1502/1634) AFTER _attach_ledger_evolution_advisory (evolution keeps precedence). Emit a dispatch envelope (next_skill: impl-hygiene-review + payload.post_dispatch_resume) per next_action.schema.json. Fix-inline: chain into the existing findings_loop drain to impl-hygiene-clean before resuming the grind. Gate /tpr-review on correctness-adjacent finding category only. Advance the watermark via record_hygiene_sweep_watermark after the drain completes.

Spec References

scripts/plan_orchestrator/roadmap.py call sites; scripts/plan_orchestrator/next_action.schema.json (next_skill/next_skill_arg/post_dispatch_resume); scripts/plan_orchestrator/findings_loop.py + review_phase.py (INV-13); .claude/rules/v7-plan-system.md §INV-13.

Work Items

  • Wire attach_hygiene_sweep_advisory at the 3 roadmap.py call sites after the evolution advisory (evolution precedence).
  • Emit the impl-hygiene-review dispatch envelope (next_skill + post_dispatch_resume) per next_action.schema.json.
  • Fix-inline drain via findings_loop to impl-hygiene-clean; gate TPR on correctness-adjacent findings; advance watermark post-drain.
  • pytest: dispatch shape; precedence vs evolution advisory; watermark advances only after the drain completes.

Fresh intel (regenerated)

{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “grind-hygiene-sweep/s-d2c5030b” }, “generated_at”: “2026-06-19T18:53:18.043905+00:00”, “graph_state”: { “head_sha”: “dbb10f0e”, “last_code_import_at”: “2026-06-19T17:39:41.692Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:grind-hygiene-sweep/s-d2c5030b] 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/grind-hygiene-sweep” } } }

(full dossier: dispatch-wiring-fixinline—s-d2c5030b.intel.json)