Add source version adoption example
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Implement shared source version checks
|
||||
|
||||
Status: Stages 1–12 complete; adoption examples and documentation reconciliation remain.
|
||||
Status: Stages 1–13 complete; documentation reconciliation remains.
|
||||
|
||||
Audience: a Luna coding agent implementing one numbered stage per prompt, in
|
||||
order. The [feature roadmap](source-version-checks.md) owns target behavior and
|
||||
@@ -615,7 +615,7 @@ with Go `go1.26.8 linux/amd64`:
|
||||
|
||||
No environmental limitation affected validation; checks ran on Linux/amd64.
|
||||
|
||||
## Stage 13 — Add maintained adoption examples
|
||||
## Stage 13 — Add maintained adoption examples — Done
|
||||
|
||||
1. Add a small executable example showing if-present and required adoption with
|
||||
one Definition.Version policy, accepted distinct declarations, main/import/
|
||||
@@ -630,6 +630,22 @@ No environmental limitation affected validation; checks ran on Linux/amd64.
|
||||
Validate: example/consumer tests, links, and everyday check. Done: tested examples
|
||||
demonstrate the coherent shared policy with reduced consumer plumbing.
|
||||
|
||||
Completion evidence: added an executable layered consumer example and embedded
|
||||
main/underlay fixtures. One source-local `Definition.Version` policy accepts the
|
||||
distinct declarations in if-present and required modes; the mounted main maps
|
||||
its local `version` to `/service/version`, while ordinary application release
|
||||
metadata remains at `service.metadata.release`. The example inspects only
|
||||
sanitized presence/path/redaction fields, and its test verifies final payloads
|
||||
and effective-path override protection without printing declaration contents or
|
||||
promising callback order. These checks passed with Go `go1.26.8 linux/amd64`:
|
||||
|
||||
- `GOTOOLCHAIN=local GOPROXY=off go test ./examples/consumers`
|
||||
- `GOTOOLCHAIN=local GOPROXY=off go test . -run '^TestLocalDocumentationLinks$' -count=1`
|
||||
- `GOTOOLCHAIN=local ./scripts/check.sh`
|
||||
- `git diff --check`
|
||||
|
||||
No environmental limitation affected validation; checks ran on Linux/amd64.
|
||||
|
||||
## Stage 14 — Reconcile documentation and finish the audit
|
||||
|
||||
1. Update Go docs and docs/config.md as canonical owners for modes, participation,
|
||||
|
||||
Reference in New Issue
Block a user