Topic / AI trust

Where is the last undo?

Before an agent acts, what has to be true?

A brass instrument holding two glass plates, one behind the other, each etched with a crosshair. The crosshairs do not line up: the approved state and the observed state.

An illustrated release

Reverify required. Nothing ran.

The branch moved after approval. The approved state (A) and the observed state (C) no longer matched, so the release was refused before any action. This release is an illustration, not a recorded incident. The rule behind it is real: ACP answers REVERIFY_REQUIRED when the live ref no longer matches the one it verified, and tells the agent to read the ref again instead of forcing the push.

Approved
main @ A
Observed
main @ C
Decision
REVERIFY_REQUIRED
Outcome
Release blocked

Request to receipt

One protected release, step by step

The Last Undo asks where a mistake stops being cheap to reverse, and what must be established before crossing that point. Here is that question applied to an agent pushing a release to a protected branch. Each step says what runs today and what is still a design.

  1. Request

    The agent asks before it acts

    Before a protected push, the agent sends ACP the exact action, the ref and the commit it means to change. What the agent says about the repository is evidence, not authority.

  2. Credentials

    Pistachio holds the keys

    The token the push needs is not in a file the agent can read. Pistachio, the secrets manager my essay calls Latchkey, keeps the value in iCloud Keychain and releases it to a command only when I approve, a grant allows it, or the item is marked safe for agents. A refused read exits with code 77, and the agent stops and asks instead of retrying. Pistachio keeps custody and ACP decides; a link between the two is designed, not shipped.

  3. Decision

    ACP decides authority

    ACP checks the request against policy that never leaves the server, verifies the repository on its own where it can, and answers ALLOW, DENY, AUTH_REQUIRED, REVERIFY_REQUIRED or QUARANTINE. An ALLOW covers that exact action, ref and commit, and nothing after it. If ACP cannot be reached, the answer is no.

  4. Seam

    The target is checked again

    If the remote ref no longer matches the commit that was approved, ACP returns REVERIFY_REQUIRED with the expected and observed revisions. This is where the last undo sits: before the push, a mismatch costs a second read. After it, the mistake has to be repaired.

  5. Receipt

    The decision leaves a record

    Every decision is written as one structured audit line: who asked, for which action, ref and commits, under which policy version, with what verification, and why. Separate receipts for the attempt and for what the target looked like afterward are designed and on hold.

Study index

Evidence

What we can know, and when. PDP weighs agreement by where its evidence came from, and IEPE qualifies an agent's operations by the evidence behind them.

PDP
Polymorphic Decision Protocol
IEPE
Intent and Evidence Project Engine

Structure

How the pieces fit together into runs that hold. The Formal Project Bootstrap gives a bounded agent project explicit authority and context.

Formal Project Bootstrap
Operating substrate for bounded agent projects

Authority

Who can decide, under what policy, and with what scope. ACP decides whether a protected action may proceed. Pistachio controls access to the credentials that action needs.

ACP
Agent Control Policy, the service that decides governed actions
Pistachio
Credential custody for coding agents, formerly Latchkey

Read The Last Undo