100%

Section 05: forward_coherence_verdict schema + apply_forward_coherence_verdict (R1 forward restructuring)

Goal

Deliver the broader forward-restructuring outcome (R1): a fresh section dossier can rework / reorder / abandon / insert FUTURE not-started sections, enacted through the sanctioned restructure primitives.

Implementation Sketch

New multi-section verdict schema (mission_fit_verdict.schema.json is single-section per its required[]). apply_forward_coherence_verdict reuses _mf_apply + apply_restructure; additive ops first, abandons last (append/split refuse non-not-started); INV-19 re-validate after each mutation.

Spec References

scripts/review_plan_runtime/forensic_apply.py (apply_mission_fit_verdict:216, _mf_apply:196, _assert_linear_dag_intact:98); scripts/review_section_runtime/dispatch.py (apply_restructure:283, _RESTRUCTURE_OPS:277); scripts/plan_orchestrator/mission_fit_verdict.schema.json.

Work Items

  • TDD-first: pin the multi-section forward_coherence_verdict schema (a list/envelope of per-future-section dispositions: rework/reorder/abandon/insert) + that apply_forward_coherence_verdict mutates FUTURE sections via apply_restructure with additive-first/abandon-last ordering + INV-19 re-validation; failing tests.
  • Author forward_coherence_verdict.schema.json (mission_fit_verdict is structurally single-section, so this is net-new multi-section). Keep mission_fit_verdict current-section (SRP).
  • Author apply_forward_coherence_verdict(plan_dir, verdict) beside apply_mission_fit_verdict, reusing _mf_apply + apply_restructure (_RESTRUCTURE_OPS) with the load-bearing additive-first/abandon-last order; _assert_linear_dag_intact after every mutation; all writes via scripts.plan_corpus.write, never raw plan.json.

Fresh intel (regenerated)

{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “plan-forward-coherence/s-a6e696ec” }, “generated_at”: “2026-06-26T01:48:53.784873+00:00”, “graph_state”: { “head_sha”: “8f006d26”, “last_code_import_at”: “2026-06-26T01:45:26.546Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:plan-forward-coherence/s-a6e696ec] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “constrained_symbols”: [], “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/plan-forward-coherence” } } }

(full dossier: forward-coherence-verdict-applier—s-a6e696ec.intel.json)