100%

Acceptance harness + terminally-exhausted grind fixture (walking skeleton)

Goal

Stand the thinnest end-to-end vertical slice: a reusable fixture grind plan staged at terminal decomposition-exhaustion, plus the acceptance harness that drives it through the real serve loop and asserts the emitted terminal route. The harness’s baseline assertion (current behaviour = mission_reground) is the red test that later sections flip.

Implementation sketch

Fixture generator lives the create_plan_runtime scaffold path (script-only plan.json). Harness in scripts/plan_orchestrator/tests/test_grind_escalation_e2e.py invokes route_walk.serve_next_v7 + the roadmap terminal-route emission and asserts the route dict. TDD: the harness exists and asserts the (pre-wiring) mission_reground baseline before any of s01-s04 lands.

Spec references

.claude/rules/learning-ledger.md §11 (evolution lifecycle); routing.md §1.0 (scaffold-only plan creation); layer-coverage.md §1 L12 (real production entry point).

Work Items

  • Build a reusable fixture generator that scaffolds a v7 grind plan staged at terminal decomposition-exhaustion: foundation sections completed, exactly one grind section in-progress holding a blocking work_item on a REACHABLE gate_metric, a ledger carrying KEPT residual-movement cycles + >=2 refuted/withdrawn terminal evolutions, a no_op sentinel written for the current corpus_digest. Live the create_plan_runtime scaffold path (never hand-author plan.json).

  • Build the end-to-end acceptance harness in scripts/plan_orchestrator/tests/ that drives the fixture through the REAL serve loop (route_walk.serve_next_v7 + roadmap terminal-route emission) and asserts the emitted terminal route. Baseline assertion (pre-wiring): the fixture currently routes to mission_reground — this is the red test the later sections flip to the new escalation.

Fresh intel (regenerated)

{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “grind-exhaustion-forward-escalation/s-f9448caf” }, “generated_at”: “2026-06-19T15:33:28.573269+00:00”, “graph_state”: { “head_sha”: “a1b25f7a”, “last_code_import_at”: “2026-06-19T15:33:22.25Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:grind-exhaustion-forward-escalation/s-f9448caf] 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-exhaustion-forward-escalation” } } }

(full dossier: acceptance-harness-fixture-grind—s-f9448caf.intel.json)