Coverage-target gate (ledger_matrix.py)
Part of plans/ledger-coordinate-migration — the generic, plan-agnostic on-serve coordinate heal.
Items
- w-427228df — Add coordinate_heal_target(plan_dir) -> str|None to ledger_matrix.py: returns a regen-target string on the BOOTSTRAP case (opt-in taxonomies declared AND ledger non-empty AND sidecar empty) OR the INCREMENTAL case (migration_coverage(…).unmigrated_in_range non-empty); None otherwise. Reuses migration_coverage + load_coordinate_map; never recomputes coverage.
- w-b49aff0b — Keep the gate plan-agnostic (script-first.md §11): read opt-in via read_plan_mechanism_class_taxonomy; name no plan/domain; return None when the plan declares no matrix taxonomies. The gate is a pure read over ledger + sidecar + opt-in declaration.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “ledger-coordinate-migration/s-5b8e9259” }, “generated_at”: “2026-06-29T19:56:44.758652+00:00”, “graph_state”: { “head_sha”: “72ec9529”, “last_code_import_at”: “2026-06-29T19:53:02.066Z”, “embedding_stale”: true, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:ledger-coordinate-migration/s-5b8e9259] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “constrained_symbols”: [ “assemble_corpus”, “write_coordinate_map” ], “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/ledger-coordinate-migration” } } }
(full dossier: coverage-target-gate—s-5b8e9259.intel.json)