Move facade to the root package
This commit is contained in:
@@ -98,13 +98,13 @@ code changes. Use the component overview to find the corresponding implementatio
|
||||
|
||||
| Task | Behavioral test owners | Focused command |
|
||||
| --- | --- | --- |
|
||||
| YAML syntax, diagnostics, parser limits | [Adapter tests](../internal/yaml/parse_test.go), [source translation](../parse_test.go) | `go test ./internal/yaml` and `go test . -run '^TestParseSource'` |
|
||||
| File/reader access, imports, globs, containment | [Sources](../source_test.go), [FIFO](../source_fifo_test.go), [imports](../imports_test.go), [globs](../glob_test.go) | `go test . -run 'Source\|Import\|Glob\|Filesystem\|Nonregular\|RegularFile'` |
|
||||
| Composition, profiles, CLI precedence | [Composition](../compose_test.go), [overlay](../overlay_test.go), [profiles](../profile_test.go), [overrides](../override_test.go) | `go test . -run 'Compose\|Overlay\|Profile\|Override'` |
|
||||
| Schema, defaults, projection, cloning | [Schema](../schema_test.go), [decoding](../decode_test.go), [projection](../projection_test.go) | `go test . -run 'Schema\|Decode\|Projection\|Clone\|Inline\|CompareDocument'` |
|
||||
| Lifecycle, resolution, validation, callback ownership | [Loading](../load_test.go), [resolution](../resolution_test.go), [validation](../validation_test.go), [ownership](../callback_ownership_test.go), [independence](../independence_test.go) | `go test . -run 'Load\|Resolution\|Validation\|Validator\|Hook\|Callback\|Parallel'` |
|
||||
| Paths, metadata, provenance | [Paths](../path_test.go), [metadata](../metadata_test.go), [provenance](../provenance_test.go) | `go test . -run 'Path\|Metadata\|Provenance\|Queries'` |
|
||||
| Secrets, bootstrap, redaction, explanation | [References](../secret_reference_test.go), [bootstrap](../secrets_test.go), [rendering](../render_test.go), [explanation](../explain_test.go) | `go test . -run 'Secret\|Bootstrap\|Effective\|Explain\|Explanation\|History\|Sensitivity'` |
|
||||
| YAML syntax, diagnostics, parser limits | [Adapter tests](../internal/yaml/parse_test.go), [source translation](../internal/engine/parse_test.go) | `go test ./internal/yaml` and `go test . -run '^TestParseSource'` |
|
||||
| File/reader access, imports, globs, containment | [Sources](../internal/engine/source_test.go), [FIFO](../internal/engine/source_fifo_test.go), [imports](../internal/engine/imports_test.go), [globs](../internal/engine/glob_test.go) | `go test . -run 'Source\|Import\|Glob\|Filesystem\|Nonregular\|RegularFile'` |
|
||||
| Composition, profiles, CLI precedence | [Composition](../internal/engine/compose_test.go), [overlay](../internal/engine/overlay_test.go), [profiles](../internal/engine/profile_test.go), [overrides](../internal/engine/override_test.go) | `go test . -run 'Compose\|Overlay\|Profile\|Override'` |
|
||||
| Schema, defaults, projection, cloning | [Schema](../internal/engine/schema_test.go), [decoding](../internal/engine/decode_test.go), [projection](../internal/engine/projection_test.go) | `go test . -run 'Schema\|Decode\|Projection\|Clone\|Inline\|CompareDocument'` |
|
||||
| Lifecycle, resolution, validation, callback ownership | [Loading](../internal/engine/load_test.go), [resolution](../internal/engine/resolution_test.go), [validation](../internal/engine/validation_test.go), [ownership](../internal/engine/callback_ownership_test.go), [independence](../internal/engine/independence_test.go) | `go test . -run 'Load\|Resolution\|Validation\|Validator\|Hook\|Callback\|Parallel'` |
|
||||
| Paths, metadata, provenance | [Paths](../internal/engine/path_test.go), [metadata](../internal/engine/metadata_test.go), [provenance](../internal/engine/provenance_test.go) | `go test . -run 'Path\|Metadata\|Provenance\|Queries'` |
|
||||
| Secrets, bootstrap, redaction, explanation | [References](../internal/engine/secret_reference_test.go), [bootstrap](../internal/engine/secrets_test.go), [rendering](../internal/engine/render_test.go), [explanation](../internal/engine/explain_test.go) | `go test . -run 'Secret\|Bootstrap\|Effective\|Explain\|Explanation\|History\|Sensitivity'` |
|
||||
| Consumer examples and migration fixtures | [Consumer tests](../examples/consumers/consumers_test.go), [API examples](../example_test.go) | `go test ./examples/consumers` and `go test . -run '^Example'` |
|
||||
| Documentation links and dependency isolation | [Link checks](../documentation_test.go), [import boundary](../import_boundary_test.go) | `go test . -run '^(TestLocalDocumentationLinks\|TestDependencyImportBoundary)$'` |
|
||||
| Check-command behavior | [Shell regression](../release_check_test.go) | `go test . -run '^TestCheckScripts'` |
|
||||
|
||||
@@ -464,7 +464,7 @@ handoff moves the verified candidate to the root and removes migration copies.
|
||||
|
||||
## Stage 8 — Cut over the root and remove migration duplication
|
||||
|
||||
Status: not started.
|
||||
Status: complete (2026-09-12).
|
||||
|
||||
1. Replace root production plumbing with the tested candidate facade, retaining
|
||||
root package documentation and the root named types. Move files; do not leave
|
||||
@@ -491,6 +491,21 @@ Run the everyday check, `go test ./examples/consumers`, root examples, and
|
||||
`go test -race ./...`. All gates must pass in this handoff; do not leave a broken
|
||||
root suite for the final audit.
|
||||
|
||||
### Completion
|
||||
|
||||
Moved the verified facade into the root package and removed the temporary
|
||||
`internal/facade` directory and the former root implementation copies. The root
|
||||
now owns the public wrappers and delegation only; `internal/engine` is the single
|
||||
production lifecycle implementation. Retained root tests cover public facade
|
||||
behavior, examples, documentation links, import boundaries, and checker behavior;
|
||||
mechanism tests remain with the engine. Development and remediation links now
|
||||
point to their engine-owned tests and metadata implementation.
|
||||
|
||||
Linux validation with Go 1.26.7 passed `./scripts/check.sh`,
|
||||
`go test ./examples/consumers`, root examples, and `go test -race ./...`.
|
||||
There were no deviations or remaining risks. The final handoff audits the public
|
||||
boundary and brings documentation in line with the completed architecture.
|
||||
|
||||
## Stage 9 — Audit the public boundary and finalize documentation
|
||||
|
||||
Status: not started.
|
||||
|
||||
@@ -9,7 +9,7 @@ Status: resolved. Priority: medium.
|
||||
|
||||
### Evidence and impact
|
||||
|
||||
At the review baseline, `newResolutionInput` in [load_metadata.go](../../load_metadata.go) called
|
||||
At the review baseline, `newResolutionInput` in [load_metadata.go](../../internal/engine/load_metadata.go) called
|
||||
`cloneMetadata(metadata)` before adding its effective-path index. `cloneMetadata`
|
||||
deep-copies `metadata.history`, including each `Change` and its nested records,
|
||||
as well as any historical-path index. At this lifecycle boundary,
|
||||
|
||||
Reference in New Issue
Block a user