Add immutable namespace views

This commit is contained in:
2026-10-17 06:14:09 +00:00
parent 60c58260ec
commit aa54b8d1c4
8 changed files with 347 additions and 2 deletions

View File

@@ -619,6 +619,16 @@ Scope: public `Namespaces`/`WithNamespaces` and shared engine-boundary routing.
Validation: root/prepared/usecase tests and focused race-enabled scope tests.
Use injected generation or a controlled HTTP boundary; never a live endpoint.
Completion: added immutable `WithNamespaces` views that share the assembled
runner and captured configuration. Ordinary `Run`, `Prepare`,
`PrepareExecution`, and the preparation-backed `ValidateRequest` now qualify
slashless caller prompt/profile IDs while preserving qualified IDs, captured
defaults, full result/event identities, and prepared-handle ownership behavior.
Tests cover independent views, replacement and clearing, no fallback, absent
well-formed namespaces, invalid syntax, and concurrent preparation. Validation
passed: `GOWORK=off go test ./...`, focused `GOWORK=off go test -race . -run
'TestWithNamespaces' -count=1`, `GOWORK=off go vet ./...`, and `git diff --check`.
## Stage 13: Apply Scopes To Inspection And Diagnostics
Scope: complete the existing operation inventory without a second resolver.