Expose resolution input provenance
This commit is contained in:
@@ -123,7 +123,7 @@ Stage 1 risks were identified.
|
||||
|
||||
## Stage 2 — Wire the callback API and enforce lifetime
|
||||
|
||||
Status: not started. Dependencies: Stage 1.
|
||||
Status: complete (2026-09-12). Dependencies: Stage 1.
|
||||
|
||||
Scope: `load_result.go`, `resolution.go`, necessary private callers, reference
|
||||
comments, and resolution/callback ownership tests.
|
||||
@@ -152,6 +152,19 @@ existing mutation auditing remain unchanged.
|
||||
Validation: `go test . -run 'Resolution|Callback|Metadata|Load'`, then the everyday
|
||||
checker. Do not mark complete with public methods that work only in private tests.
|
||||
|
||||
Completion record (2026-09-12): `resolveLoadInput` now creates a
|
||||
`resolutionInput` after decoded/overlay metadata and passes it explicitly into
|
||||
`runResolution`; the private state retains it for the callback. `Resolution.InputInfo`
|
||||
and `Resolution.Source` use the existing activity guard before exact entry lookup or
|
||||
source lookup, and return detached records. Public load tests cover a canonical
|
||||
file-authored value, a retained default, explicit null, misses, empty/unknown IDs,
|
||||
and defaults-only input; they also cover nil, zero, successful-retained, and
|
||||
failed-retained contexts plus saved record independence. Go reference comments,
|
||||
the configuration contract, and the development guide now describe the active work
|
||||
accurately. `go test . -run 'Resolution|Callback|Metadata|Load'` and
|
||||
`./scripts/check.sh` passed with Go 1.26.7 on Linux. No deviations or remaining
|
||||
Stage 2 risks were identified.
|
||||
|
||||
## Stage 3 — Verify layered provenance and snapshot independence
|
||||
|
||||
Status: not started. Dependencies: Stage 2.
|
||||
|
||||
Reference in New Issue
Block a user