Reconcile retained history accounting

This commit is contained in:
2026-10-26 17:46:31 +00:00
parent 12fd0a7191
commit 6a1447c327
8 changed files with 62 additions and 58 deletions

View File

@@ -1,6 +1,6 @@
# Interface Contract Remediation Implementation Plan
Status: in progress. Stages 1–12 are complete; Stages 13–18 remain pending.
Status: in progress. Stages 1–15 are complete; Stages 16–18 remain pending.
Baseline: `f6d54a094a2b5ada5748686620659399dce7ebf0`.
Audience: a Luna coding agent executing the stages sequentially.
@@ -663,7 +663,11 @@ mutates it. Focused check:
## Stage 15 — Reconcile Complete Retained-History Accounting
Owners: `executeLoadRequest`, `retainedNodeCounter`, model root enumeration,
`history_budget_test.go`, inheritance budget tests. Status: pending.
`history_budget_test.go`, inheritance budget tests. Status: complete. Validation:
`GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -run 'History.*Budget|HistoryNode|Retained|ProjectionBudget' -count=1`,
`GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./...`,
`GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test -race ./internal/engine -run 'History.*Budget|HistoryNode|Retained|ProjectionBudget|CLIHistoryEvidenceKeepsCheckpoints|Detached|ConcurrentReadOnly' -count=1`,
and `git diff --check`.
1. Replace `addInspectionHistory`'s old field/copy enumeration with the actual
model and final-inspection root graph. Include all checkpoint, application,