What this example demonstrates
- A trusted setup handoff writes authorization material into a Vault as a Credential. The value is write-only and never appears in example code.
- A Connection represents the governed provider account or capability link. It is not the Credential itself.
- PermissionAssignment makes an actor or Agent eligible to use the Connection.
- ActionPolicy resolves an eligible action to
allow,require_approval, ordeny. - ActionApproval records a human decision about one frozen action. Approval never grants missing permission and never preserves authority after revocation.
- The trusted effect edge rechecks the live Connection, permission, policy, approval, schema, egress, and revocation state before attaching Credential material to the outbound provider request.
- Audit records the decision and structural outcome without returning the secret.
Revocation and uncertain effects
Revocation is checked before every new provider effect. An earlier ActionApproval does not override a later revocation. When a provider outcome is uncertain, record the effect as indeterminate and reconcile it before retrying. A credential rotation or reconnect changes future authority; it does not rewrite the history of already accepted Session events. Standard retention may keep permitted nonsecret event content and audit records under policy. Qualified ZDR paths omit execution content from durable custody; permitted structural records and linkable issuer or recovery references may remain. ZDR support depends on the selected deployment, runtime, and provider; see retention and ZDR. Usage, not traces, drives Budget enforcement. A provider adapter, catalog row, or local fixture is not evidence of hosted support; consult capability status.Pinned source boundary
The optional source uses the public Connect Center controller from its backend. The controller coordinates supported Connection operations, but its presence does not prove that every listed provider is qualified in a particular deployment.path=examples/credential-broker/server/src/broker-runtime.ts