Heal-Gate Decouple
Goal
Make the coordinate-heal (the back-catalog coordinate enrichment) fire for EVERY ledger-bearing plan
and bug, not only taxonomy-declaring ones — activating the already-delivered
ledger-coordinate-migration machinery corpus-wide.
Implementation Sketch
coordinate_heal_target (ledger_matrix.py:892) short-circuits to None via _plan_declares_matrix_taxonomy
(:861). Flip it to fire on a non-empty ledger + unmigrated coverage, keeping the BOOTSTRAP/INCREMENTAL
coverage logic. Demote _plan_declares_matrix_taxonomy to a refinement-only predicate (declared taxonomy
validates/partitions coordinates; absence never deactivates). Reframe _read_floor_members (:929) absent-
gate_metric.probe_ref as graceful empty-floor degradation. The classifier still classifies against declared
taxonomies when present, else against the default _all domain.
Spec References
.claude/rules/learning-ledger.md §15(on-serve coordinate heal), §13.3 (sidecar derived overlay, stored entries byte-unchanged).scripts/plan_corpus/ledger_matrix.py:861/892/929;scripts/plan_corpus/tests/.
Work Items
- Flip coordinate_heal_target (ledger_matrix.py:892) to fire on a non-empty ledger + unmigrated coverage independent of any declared taxonomy; keep the BOOTSTRAP/INCREMENTAL coverage logic intact.
- Demote _plan_declares_matrix_taxonomy (ledger_matrix.py:861) from the activation gate to a refinement-only predicate (declared taxonomy validates/partitions; absence never deactivates); update every caller.
- Reframe _read_floor_members (ledger_matrix.py:929) absent-gate_metric as graceful empty-floor degradation, not opt-out.
- Pin: coordinate_heal_target returns non-None for a no-taxonomy plan with unmigrated entries and None when fully covered.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “ledger-matrix-replacement/s-d2a87412” }, “generated_at”: “2026-06-30T02:23:37.094829+00:00”, “graph_state”: { “head_sha”: “4ba25ed0”, “last_code_import_at”: “2026-06-30T02:17:40.746Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:ledger-matrix-replacement/s-d2a87412] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “constrained_symbols”: [ “assemble_corpus” ], “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/ledger-matrix-replacement” } } }
(full dossier: heal-gate-decouple—s-d2a87412.intel.json)