Apply namespace scopes to inspections and diagnostics

This commit is contained in:
2026-10-17 06:17:16 +00:00
parent aa54b8d1c4
commit 15f79ce7b1
6 changed files with 186 additions and 30 deletions

View File

@@ -81,14 +81,15 @@ prepared, err := scoped.Prepare(ctx, promptkit.RunRequest{
})
```
Ordinary execution and preparation qualify slashless caller selections with
their respective namespace. Already-qualified IDs pass through unchanged;
configured defaults and references are not rewritten. Each call replaces the
view's scope defaults, including clearing a scope with an empty field, without
changing the receiver or rebuilding its captured configuration and execution
collaborators. Namespace syntax is checked when creating the view; resource
existence is checked when selected. See [`WithNamespaces`](../../namespaces.go)
for the exact public contract.
Execution, preparation, prompt/profile inspection, requirement inspection, and
smoke diagnostics qualify slashless caller selections with their respective
namespaces. Already-qualified IDs pass through unchanged; configured defaults
and references are not rewritten. Each call replaces the view's scope defaults,
including clearing a scope with an empty field, without changing the receiver
or rebuilding its captured configuration and execution collaborators.
Namespace syntax is checked when creating the view; resource existence is
checked when selected. Configuration inspection remains global. See
[`WithNamespaces`](../../namespaces.go) for the exact public contract.
## Supply Embedded Application Defaults