Add facade lifecycle wrappers
This commit is contained in:
@@ -382,7 +382,7 @@ lifecycle and callback wrappers to the split engine result.
|
||||
|
||||
## Stage 6 — Wire candidate lifecycle and callback wrappers
|
||||
|
||||
Status: not started.
|
||||
Status: complete (2026-09-12).
|
||||
|
||||
1. Add candidate Definition, Options, VersionRule, Version, FilesystemContext,
|
||||
Override, Resolution, and Validation with unchanged public declarations.
|
||||
@@ -404,6 +404,23 @@ and detached entry provenance stays fixed. Run
|
||||
`go test ./internal/facade ./internal/engine -run 'Load|Resolution|Validation|Version|Metadata|Secret|Callback|Facade'`,
|
||||
`go test -race ./internal/facade ./internal/engine`, and the everyday check.
|
||||
|
||||
### Completion
|
||||
|
||||
Added the temporary facade's root-owned lifecycle declarations, option conversion,
|
||||
live callback wrappers, `Load`, `Result`, and `Metadata`. Callback wrappers carry
|
||||
only the active engine context during callback execution; `Result` stores the
|
||||
published configuration once and keeps its non-generic engine inspection private.
|
||||
All record and path crossings use explicit conversion, and facade loads translate
|
||||
engine load failures to the root-owned `LoadError` type.
|
||||
|
||||
External candidate tests exercise public version, default, resolution, validation,
|
||||
metadata, source, and secret behavior, including inactive retained contexts and
|
||||
typed load errors. Linux validation with Go 1.26.7 passed
|
||||
`go test ./internal/facade ./internal/engine -run 'Load|Resolution|Validation|Version|Metadata|Secret|Callback|Facade'`,
|
||||
`go test -race ./internal/facade ./internal/engine`, and `./scripts/check.sh`.
|
||||
There were no deviations or remaining risks. The next handoff completes the
|
||||
candidate inspection and secrets-bootstrap surface.
|
||||
|
||||
## Stage 7 — Complete candidate inspection and bootstrap surface
|
||||
|
||||
Status: not started.
|
||||
|
||||
Reference in New Issue
Block a user