Prepare inspection history before publication

This commit is contained in:
2026-10-25 21:53:24 +00:00
parent 247a12bc50
commit 4fcff5f453
3 changed files with 53 additions and 35 deletions

View File

@@ -375,6 +375,13 @@ Focused check: `go test ./internal/engine -run 'Sequence|Collection|Inheritance|
Finding: preparation portion of **D01**.
Owners: `internal/engine/load.go`, `load_result.go`, `history.go`, `inheritance_load.go`.
Status: **complete** (preparation portion of D01). Prior completed commits:
`2736ddf`, `deb9aa5`, `ae3408a`, `ea27f17`, `08a8c25`, `877c497`,
`8aba43d`, `7bf2f0c`, `0f9ecf1`, `119b42c`, `247a12b`. Validation passed:
`env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -run 'Load|History|Explain|Inheritance|Validation|Secret' -count=1`,
`env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -count=1`,
and `git diff --check`.
1. Extract preparation of the existing `Inspection` document/history fields from
publication. Produce the actual owned pre-CLI copy, inherited-operation copies,
application lists, raw resolution snapshots, and coalesced replay that the result
@@ -396,6 +403,12 @@ Acceptance: existing lifecycle and explanation behavior stays intact. Document
the concrete retained document fields for Stage 13. This preparatory stage alone
does not close D01; avoid temporary public state or compatibility APIs if the
handoff is not yet buildable.
Prepared retained roots for Stage 13 admission are `Inspection.baseline`,
`input`, `final`, `preCLI`, source/CLI application values, raw and coalesced
resolution before/after values, and inspection inheritance parent/effective
values. `Metadata.inheritance` holds its separate cloned parent/effective values;
the immutable document lookup is built only during publication.
Focused check when buildable: `go test ./internal/engine -run 'Load|History|Explain|Inheritance|Validation|Secret'`.
## Stage 13 — Enforce The Quota On The Prepared Published Graph