Skip to main content

TrustRelay

Delegate Merge Authority Safely

TrustRelay sits at the merge boundary and independently authorizes every agent-authored change before it merges.

  1. Observe

    A pull request authored by an agent is detected at the merge boundary.

  2. Assemble evidence

    Attribution, human sponsorship, policy context, and check results are gathered into a versioned evidence snapshot.

  3. Decide

    Deterministic policy is applied to the evidence to issue approve, block, or escalate. No AI makes or modifies the decision.

  4. Sign the record

    The decision is written as a signed, independently verifiable Agent Change Passport.

  5. Enforce

    The signed decision is published as a required check that governs whether the change may merge.

Every stage is deterministic and independently verifiable. No AI makes or modifies the authorization decision.

What the product actually produces

TrustRelay surfaces as a required check on the pull request and a signed decision record that outlives it. These are the real artefacts, not mockups of a future release.

Blocked

TrustRelay authorization

Agent-authored change without a human sponsor recorded.

To proceed: Assign a sponsor, then re-run the check.

Approved

Agent Change Passport

Reason
Low-risk change, required evidence present, policy version pinned.
Evidence considered
  • agent-attribution: copilot/session-4f21
  • human-sponsor: platform-eng/rivera
  • policy: standard-application-change@v12
  • checks: build, tests, secret-scan — all passed
Signature
kms:9f3c…c41aKMS-signed and independently verifiable without TrustRelay API access.
  1. Observe
  2. Assemble evidence
  3. Decide
  4. Sign the record
  5. Enforce
The five stages of an authorization decision, in order. Every stage is deterministic and independently verifiable.

Numbers you can check

Each figure below was counted from the codebase, and the part of the system it came from is named under the number. What follows is one illustration of what those numbers do when a change arrives.

rules evaluated for every change
5

Basis Decision engine source

stable reason codes a decision can report
16

Basis Reason-code registry

byte-identical replays asserted in the determinism test
1,000

Basis Determinism replay suite

operating modes: shadow, advisory, limited enforcement
3

Basis Domain type definitions

Illustrative example

What 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.

Blocked

PR #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 rule
  • MISSING_SPONSORSHIP_REQUIREDNo human sponsorship established
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Why this matters

  • The reviewer never opened the diff. The missing sponsor is a property of the change record, so the answer took a policy evaluation rather than a senior engineer's attention.
  • The change never reached main. Enforcement is the required check plus branch protection, so a blocked decision has nowhere to go — it is not a comment a busy reviewer can overlook.
  • The same change gets the same answer. The engine is a pure function with no network, database, or model dependency, so a rerun cannot drift and two identical changes cannot be judged differently.
  • Unknown attribution escalates instead of passing. When no commit can be attributed with confidence, the rule returns ESCALATE and the change goes to a human — an unclear change is never auto-approved.

Mechanism verified against the decision engine source

Five questions no one can answer at merge time

When an agent contributes to a pull request, the merge decision depends on five questions that most engineering organizations cannot answer with confidence.

  1. Who or what produced this change?

    Was it a human, an agent, or a mix? Current tools cannot reliably distinguish agent-authored from human-authored code across multiple coding agents.

  2. Which human authorized this work?

    Is there a designated sponsor? Without a binding between the agent's work and an accountable human, there is no one to answer for the change.

  3. What evidence exists that this is safe?

    Has it passed the required checks, reviews, and compliance gates? Evidence is scattered across CI/CD, security scanners, and manual review — none of it connected to the authorization decision.

  4. Which policy governed this decision?

    Was the same policy applied consistently? Without a versioned policy binding, the same change can be evaluated differently depending on when and how it is reviewed.

  5. What happened after this change was released?

    Did it succeed, fail, or get reverted? A merge decision disconnected from the production outcome cannot be learned from.

Blocked

TrustRelay authorization

No human sponsor recorded for this agent-authored change. The required check cannot pass.

To proceed: Assign a sponsor, then re-run the check.

Independent authorization

TrustRelay is a neutral authorization layer between coding agents and the merge button. It observes every agent-authored change, assembles a verifiable evidence snapshot, applies your policy deterministically, and publishes an enforceable decision before anything merges.

It is not a coding agent, a source-code host, or a CI/CD platform. No AI makes or modifies an authorization decision.

  1. Observe

    A pull request authored by an agent is detected at the merge boundary.

  2. Assemble evidence

    Attribution, human sponsorship, policy context, and check results are gathered into a versioned evidence snapshot.

  3. Decide

    Deterministic policy is applied to the evidence to issue approve, block, or escalate. No AI makes or modifies the decision.

  4. Sign the record

    The decision is written as a signed, independently verifiable Agent Change Passport.

  5. Enforce

    The signed decision is published as a required check that governs whether the change may merge.

Every stage is deterministic and independently verifiable. No AI makes or modifies the authorization decision.

How TrustRelay works

Every agent-authored change follows the same five-stage path, from the moment it is observed to the moment it is enforced. The decision is deterministic at every stage.

  1. Observe

    A pull request authored by an agent is detected at the merge boundary.

  2. Assemble evidence

    Attribution, human sponsorship, policy context, and check results are gathered into a versioned evidence snapshot.

  3. Decide

    Deterministic policy is applied to the evidence to issue approve, block, or escalate. No AI makes or modifies the decision.

  4. Sign the record

    The decision is written as a signed, independently verifiable Agent Change Passport.

  5. Enforce

    The signed decision is published as a required check that governs whether the change may merge.

What makes the decision trustworthy

Six properties of the authorization layer. Each one exists so that a decision can be reproduced, explained, and enforced.

Deterministic policy engine

A pure function with zero runtime dependencies on network, database, or model SDKs. Given the same evidence and policy, the result is always the same.

  • The same evidence and policy always produce the same outcome.
  • Runs with no network, database, or model access.
  • Every decision carries a stable, documented reason code.

Agent Change Passport

A KMS-signed, versioned artefact capturing policy version, evidence snapshot, attribution assertions, and outcome.

Immutable evidence ledger

Every passport is stored with WORM protection. Evidence cannot be altered after the fact.

GitHub required check

If the check fails, branch protection prevents merge. Enforcement is architectural, not procedural.

Restrictive precedence

BLOCK > ESCALATE > APPROVE. If any rule blocks, the decision is BLOCK regardless of the others.

Bounded AI assertions

AI may propose typed assertions. Invalid or conflicting ones become UNKNOWN and can never produce automatic approval.

Designed for security and auditability

TrustRelay is a polyrepo distributed system on AWS. Each service is independently deployable with its own CI/CD pipeline, and the decision engine has no runtime dependency on the network, a database, or a model SDK.

  1. Trigger layer

    Detect the change

  2. Evidence pipeline

    Assemble the inputs

  3. Decision engine

    Decide deterministically

  4. Passport service

    Sign and retain

  5. Enforcement

    Govern the merge

Works where your team works

Every integration is either an evidence source that strengthens the decision or an enforcement point that carries it out.

GitHub

Enforcement point

Required checks, rulesets, and branch protection at the merge boundary. This is where a decision is carried out.

GitHub Copilot

Evidence source

Agent session metadata, attribution signals, and code provenance.

Jira

Evidence source

Work-item context and assignee records that bind a change to its intent.

GitHub Actions

Evidence source

Check results and pipeline status, gathered into the evidence snapshot.

What we guarantee, and what we do not

No AI makes or modifies an authorization decision.

The decision is made by a deterministic engine that has no runtime dependency on a network, a database, or a model SDK. AI may propose typed assertions; it never makes or modifies the decision, and an architecture test fails the build if a model dependency is introduced into the engine.

Limitations

  • A verified record proves integrity, not correctness

    Verifying a decision record proves the bytes are unaltered and were signed by the key you supplied. It does not prove the evidence was complete, that the policy was right, or that the decision was the correct one.

  • Attribution is not always knowable

    When every commit has unknown attribution, the engine escalates to human review rather than approving. The product cannot always establish which agent produced a change, and it does not pretend to.

  • Shadow mode reports but does not block

    In shadow mode the check never reports success or failure — it is neutral or action-required — and merge eligibility is unaffected. Enforcement begins only when you enable it.

  • The engine applies your policy; it does not author it

    TrustRelay evaluates evidence against the policy you pin to a repository. It does not decide whether that policy is appropriate, and a wrong policy applied consistently is wrong at scale.

Ready to delegate merge authority?

Start in shadow mode and see the decision TrustRelay would have issued for your last hundred agent-authored changes.