Add namespace and collection inventories

This commit is contained in:
2026-10-17 06:25:14 +00:00
parent c9b623b374
commit 8669294cf6
9 changed files with 295 additions and 3 deletions

View File

@@ -711,6 +711,16 @@ deduplication/sorting, unqualified exclusion, metadata-only collections,
scope-independent enumeration, effective overrides, cancellation, and ownership.
Run configuration/root tests; no file access or generation should be needed.
Completion: added global resource-namespace and effective collection inventory
APIs. Namespace results are distinct, sorted, kind-selectable, and exclude
unqualified resources; collection results preserve absent/null versus empty
release labels and include metadata-only declarations. Inventories remain
independent of namespace views and return caller-owned values. Validation passed:
`GOWORK=off go test ./...`, focused
`GOWORK=off go test -race . -run 'TestResourceAndCollectionInventories' -count=1`,
`GOWORK=off go vet ./...`, `GOWORK=off python3 scripts/check-examples.py`,
and `git diff --check`.
## Stage 16: Maintain Complete Consumer And Migration Examples
Scope: runnable/synthetic examples and precise migration guidance.