Correct collection profile inspection example

This commit is contained in:
2026-10-18 14:42:10 +00:00
parent 9178f3eb91
commit a51d12d898

View File

@@ -203,13 +203,14 @@ sensitive application data.
Use [`Engine.InspectConfiguration`](../../configuration_inspection.go) for an
operator-selected report of effective configuration, source descriptions,
diagnostics, and path history. For a literal ID containing a slash, construct
the semantic path with `configkit.Keys`:
diagnostics, and path history. Configuration inspection uses the collection's
nested configuration path rather than its qualified runtime ID. For profile
`team/summary`, construct the semantic path with `configkit.Keys`:
```go
view, err := engine.InspectConfiguration()
if err != nil { return err }
path := configkit.Keys("profiles", "team/summary", "model")
path := configkit.Keys("collections", "team", "profiles", "summary", "model")
explanation, found := view.Explain(path)
if found && explanation.Effective.Redacted {
// Apply the application's disclosure policy before sharing the report.