Expand description
Closed classification of host-managed capability nodes and the shared redaction helpers that observability surfaces consult.
Capability values such as SchemaValue::Secret and
SchemaValue::QuotaToken carry material owned by the host authority, not
the guest. Every human-facing surface (CLI display, agent-id rendering,
error rendering, tracing) must redact them, and the placement rules must
police where they may appear. Rather than each of those consumers
re-matching the capability cases, they classify a node through
HostManagedKind and obtain a stable kind name / redacted placeholder
from one place. Adding a future capability case means adding one variant
here; the consumers pick it up automatically.
Structs§
- Host
Managed Occurrence - The first host-managed capability reached while traversing a schema type or value tree.
- Redacted
Schema Value - Wraps a
SchemaValueso itsDebugoutput redacts every host-managed capability node (seeHostManagedKind).
Enums§
- Host
Managed Kind - A closed set of “host-managed” capability kinds.
- Host
Managed Traversal Error
Functions§
- find_
host_ managed_ type - Finds the first host-managed capability type reachable from
tythroughgraph. Only definitions reachable fromtyare considered. Recursive references are followed once per active path, so recursive schemas terminate without suppressing occurrences reached through sibling paths. - find_
host_ managed_ value - Finds the first host-managed capability in
value, including nested occurrences in every structural container. - redact_
host_ managed_ type - Replace every host-managed capability type (see
HostManagedKind) with a plainstringtype, recursing through every container and named definition. - redact_
host_ managed_ typed_ value - Produce a redacted copy of a [
TypedSchemaValue] in which every host-managed capability node — in both the schema graph and the value tree — becomes a plain string. Seeredact_host_managed_value/redact_host_managed_type. - redact_
host_ managed_ value - Replace every host-managed capability value (see
HostManagedKind) with a plain string placeholder, recursing through every container. - redacted_
schema_ value_ debug - Wraps
valuefor redactedDebugrendering. SeeRedactedSchemaValue.