Extract inheritance accounting and finalization

This commit is contained in:
2026-10-25 13:43:26 +00:00
parent c5275df1fc
commit fa6e876ab5
3 changed files with 67 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
# Consolidation Implementation Plan
Status: in progress. Stages 1 through 15 are complete; follow Stage 16 through Stage 20 in order.
Status: in progress. Stages 1 through 16 are complete; follow Stage 17 through Stage 20 in order.
The target executor is a Luna coding agent working through one end-to-end sprint.
## Authority, Baseline, And Execution
@@ -627,7 +627,7 @@ sequence-origin handling returns replacement records to the template result.
Parentless templates use the same result shape. Engine and facade inheritance
tests passed.
## Stage 16 — Finish The Inheritance Executor And Accounting
## Stage 16 — Finish The Inheritance Executor And Accounting (Complete)
**Owner:** engine `inheritance_schedule.go` and focused finalization helpers.
@@ -649,6 +649,12 @@ tests passed.
**Finish:** one readable executor coordinates explicit value/policy/evidence
handoffs, with no parallel inheritance implementation. Run I.
Progress notes (2026-10-25): extracted per-template retained-history charging and
scope rebuild/origin/policy projection into `inheritance_finalize.go`. The shared
counter, budget checks, final expansion check, and one policy index remain intact.
Both mapping and identified-sequence adapters still use the shared executor.
Validation group I passed.
## Stage 17 — Extract Substantial Projection Handlers
**Owners:** engine `projection.go`, optionally new `projection_collection.go`.