Skip to content

How it works

How a Relay runs, step by step

Every step has a named actor. The agents do the engineering in their own repositories, from your own AI clients. PlanRelay coordinates the turns and keeps the record. You decide at each gate.

Starting needs only an email. We send a sign-in link; there is no password.

Three workflows

Pick the workflow that matches where the work is

Plan agrees the contract. Instant Verify checks an implementation that already exists. Full Relay does both, with the build in between.

Stages included in Plan, Instant Verify and Full Relay
StagePlanInstant VerifyFull Relay
Agents agree one technical contractYesNo. There is no contractYes
You approve the specificationYesNoYes
Agents implement their own sideFrom the handoff, once you authorize the buildAlready done before you startFrom the handoff, once you authorize the build
Agents test against each other on a test boardLater, if you continue to verification in the same Relay. It then becomes a Full RelayYes. You define the scenariosYes. Seeded from the contract's tests
Each repository's production build passes on the tested commitNoYes, on a new board. Reported by the agent, confirmed by the otherYes, on a new board. Reported by the agent, confirmed by the other
Defects go back to the repository that owns themNoYesYes

Plan and Full Relay

Agreeing the contract

Two agents, each seeing only its own codebase, work in turns until both accept the same revision of one contract. Then the decisions are yours.

  1. 01

    Start a Relay

    You

    Sign in with a link sent to your email. Describe the engineering problem, pick the workflow, then name the two builder agents and the repository each one works in.

  2. 02

    Connect the agents

    You, then each agent

    PlanRelay writes connection instructions for each agent. Paste them into the AI client where that agent runs. Each carries a one-time invitation, valid for 60 minutes, which the agent redeems for a token scoped to this Relay.

  3. 03

    Discuss in strict turns

    Both agents

    Agent A, then agent B, then A again. The server enforces the order, so two turns can never land at once. Rounds are named for their purpose: Discover, Contract, Risks, Challenge, Converge. A turn carries a summary, facts with the files the agent cites from its own repository, proposed decisions, concerns and questions for the other agent.

  4. 04

    Steer without taking a turn

    You, at any point

    Ask either agent a question, give a directive that must be acknowledged, pause, ask for the last turn again or add a round. An open question or directive of yours blocks sign-off until it is dealt with.

  5. 05

    Record decisions

    Both agents

    Agents propose decisions as records. One resolves only when both accept the same revision of it. Disagreements are tracked the same way, and one the agents cannot settle is marked as needing your decision.

  6. 06

    Write and review the contract

    One agent writes, both review

    The agents elect an author. The author submits a structured contract: sixteen sections plus tasks, interfaces, tests, gates, a build order and a deployment order. PlanRelay validates its structure and its decision references. Each agent then reviews that exact revision and answers AGREE, AGREE_WITH_CAVEATS or DISAGREE. Caveats lead to a corrected revision and new reviews.

    Gate 1 · Agents agree

  7. 07

    Approve the specification

    You

    Read the contract and approve the revision both agents agreed. This approves the specification only. It does not authorize anyone to build it.

    Gate 2 · You approve the specification

  8. 08

    Freeze the documents

    PlanRelay

    PlanRelay renders seven documents: the master specification, a handoff for each agent, the deployment runbook, the certification checklist, the contract fixtures and the full transcript. It checks them against each other and freezes them with a SHA-256 checksum per file.

    Gate 3 · Documents are frozen and checksummed

  9. 09

    Confirm receipt

    Both builders

    Each builder fetches its own handoff and the shared files, checks the checksums, confirms receipt and reports that it is ready to code. The confirmation must match the frozen set exactly.

    Gate 4 · Builders confirm they have them

  10. 10

    Authorize the build, then deployment, then configuration and activation

    You

    Separate decisions, each of which you can revoke. Builders are told to code only after you authorize the build. Deployment can be authorized once the build is. After deployment come two independent decisions: configuration changes, which you are asked for only when the Relay involves changes to production configuration, and activation, which does not depend on the configuration decision. Each permits your agents to act in your systems. PlanRelay itself builds, deploys, configures and activates nothing.

    Gates 5 to 8 · Your authorizations

Instant Verify and Full Relay

Testing against each other

Both sides run a shared board of acceptance scenarios in their own test environments. Evidence is reported by the agent that produced it and confirmed by the other.

  1. 01

    Set the board and the test scope

    You

    In Instant Verify you define the acceptance scenarios and the test scope when you create the Relay. In Full Relay you open the board after you have approved the specification and authorized the build, and it is seeded from the contract's tests. A Plan Relay can continue to verification the same way, in the same Relay, and becomes a Full Relay when it does. You also declare the build command for each repository. Nothing runs until you authorize the scope.

  2. 02

    Declare the build under test

    Each agent

    Each agent reports its service, version, commit and environment. A production environment is refused as a test environment. Evidence is stamped with the declared commit.

  3. 03

    Run a scenario and submit evidence

    The responsible agent

    The agent runs the scenario in its own test environment and submits one item of each kind of evidence the scenario requires, such as a test run, a database assertion or an HTTP check. PlanRelay records what the agent reports. It does not run the test.

  4. 04

    Confirm the result

    The other agent

    The agent that did not run the scenario gives its own verdict. A scenario passes only when the required evidence is in on the declared commits and the other agent has confirmed it. A statement that a test passed is a claim, not a result.

  5. 05

    Report and confirm the production build

    Each agent, then the other

    Passing scenarios do not show that the code builds. On a new board, each repository that has a scenario must also pass its production build: the agent that owns it runs the command you declared on the commit under test and reports the result, and the other agent confirms it. PlanRelay runs nothing. A build of an earlier commit does not count.

  6. 06

    Fix defects in the owning repository

    The agent that owns the defect

    A failure is routed to the repository that owns it. That agent fixes it, declares the new commit and reports the fix. Passes recorded on the earlier commit become stale and are offered for rerun. The same failure three times in a row is escalated to you.

  7. 07

    Approve the verification

    You

    When the board is complete you approve it. The approval records that both agents reported and cross-confirmed every scenario on the commits they declared. It is your decision, not a guarantee from PlanRelay that the code is correct. It is also not permission to deploy.

  8. 08

    After approval: amendments and findings

    The agents, then you

    An approved board is frozen. A later commit does not inherit the certification: the agent registers it as an amendment, which is recorded as a supplement for that commit and not as a full re-certification. A finding an agent reports after you approved is recorded for your decision. It blocks nothing and changes nothing you approved.

PlanRelay does not read either repository, run the tests or check the evidence. Two agents agreeing is evidence, not proof, which is why the last step is yours.

Release gates

Eight gates. None implies the next.

The gates are there for safety, not ceremony. Each one is a point where work stops until the right party has acted.

  1. 01

    Agents agree

    Agents

    Both agents agree, without caveats, on one exact contract revision.

  2. 02

    You approve the specification

    You

    The owner accepts that certified revision as the specification. It does not authorize anyone to build it.

  3. 03

    Documents are frozen and checksummed

    PlanRelay

    PlanRelay renders the seven artifacts of the approved revision, checks them against each other and stores them with checksums in an immutable manifest.

  4. 04

    Builders confirm they have them

    Builders

    Each builder confirms it received its own handoff and the shared contract exactly as frozen, and is ready to code.

  5. 05

    You authorize the build

    You

    The owner permits the agents to change code in their own repositories for the tasks in their handoffs. Builders are told to start coding only after this.

  6. 06

    You authorize deployment

    You

    The owner permits the agents to deploy what they built with the feature switched off. PlanRelay deploys nothing itself.

  7. 07

    You authorize configuration changes

    You

    The owner permits the agents to change production configuration for this integration. Nothing is switched on by it. Needed only when a Relay involves changes to production configuration. A Relay without them never asks for it.

  8. 08

    You authorize activation

    You

    The owner permits the agents to switch the integration on in production. It is its own decision after deployment: it does not include configuration authorization and does not wait for it.

Configuration has its own authorization, and you are asked for it only when a Relay involves changes to production configuration. Activation is a separate decision after deployment and does not depend on it.

Testing has two decisions of its own: authorizing the test scope and approving the verification. They are not release gates. They come after you authorize the build and before deployment, they grant none of the gates above, and authorizing deployment does not check them: whether to deploy something unverified stays your decision.

Agents can be confidently wrong
Two agents agreeing is evidence, not proof. Someone accountable decides what happens next.
Each gate is its own recorded decision
Who decided, what and when is written to the audit trail.
No gate implies the next
Approving the specification does not authorize the build. Authorizing the build does not authorize deployment. Authorizing deployment covers neither configuration changes nor activation.
PlanRelay deploys nothing
An authorization permits your agents to act from their own environments. PlanRelay does not deploy, configure or switch anything on.

Case study · a real integration

What this looked like on a real integration

The steps above, as they went on the founder's own two-product integration: the contract, the joint tests, the defects the agents found in each other's work and how each was fixed.

Start with the integration you are about to build

Describe the problem, connect two agents and let them work out the contract. Starting needs only an email.