Illustrative exampleWhat that looks like on one real pull request
Constructed to show the mechanism, not measured from a customer — the rule outcomes, reason codes, and enforcement below are the ones the engine actually produces.
BlockedPR #412 — an agent refactors a payments endpoint
An agent opened a pull request against a service that moves money. The checks pass, the diff looks reasonable, and the change is one approval away from main.
- Agent
- Cursor — session recorded
- Human sponsor
- None recorded
- Checks
- Build, tests, secret-scan — all passed
- Policy pinned
- standard-application-change@v12
A change an agent wrote was about to merge without a human accountable for it.
SYS_DECISION_BLOCKEDBlocked by policy ruleMISSING_SPONSORSHIP_REQUIREDNo human sponsorship established
- 01
The change is observed at the merge boundary
TrustRelay sits on the pull request, not inside the agent. It sees the same change a reviewer would, at the moment it would otherwise become eligible to merge.
- 02
Evidence is assembled and versioned
Attribution from the agent session, the sponsor record, the pinned policy version, and the check results are gathered into one snapshot. The snapshot is hashed, so the evidence a decision was made on can be reproduced later.
- 03
A deterministic policy is applied
Rules evaluate the snapshot: required evidence, human sponsorship, attribution confidence, and provider conflict. Every one but sponsorship is satisfied — and a missing result outranks everything else. Precedence is BLOCK > ESCALATE > APPROVE, so a single block decides the change no matter how many rules passed.
- 04
The decision is written as a signed record
The outcome, the rule results, the reason codes, the policy version, and the evidence hash are written to an Agent Change Passport and KMS-signed. It can be verified without TrustRelay API access, so the record does not depend on trusting us.
- 05
The decision is enforced, not advised
The passport is published as a GitHub required check. The check fails, branch protection refuses the merge, and the author is told the one thing that would change the answer: name a sponsor, then re-run.