ThePlus Tech
Product · Agent Clearing Network

An agent’s request is a claim, not an instruction.

The Agent Clearing Network is where an agent’s authority is decided. What an agent sends is a claim. It becomes an instruction only after the caller’s token is verified, the agent is matched to the mandate a person signed, and the action is evaluated against that mandate’s limits. The decision is signed whichever way it goes.

System
Agent Clearing Network
Role
Decides authority. It does not perform the action and holds no money
Claim level
Tested locally and in hosted CI. Not deployed, no customer
Identity
Verifies tokens an upstream issued. Issues no credentials
Source
agent-clearing-network at 06bc91c

One path, read four ways.

This is the action path: one organisation, and an agent asking whether it may act. Choose a request. The path does not change; what changes is which stage decided. Three of the readings are decisions. The fourth never reaches one.

Diagram 0004From an untrusted request to a verified instruction
decision CLEAR · HTTP 200

The token names the agent, the mandate names the same agent, and the action is inside its limits.

The mandate’s own agent, with its own signed token, asks to commit 100 calls under a mandate that allows 500.

One use of the mandate is consumed and 100 calls are reserved under a row lock, in the same transaction that signs the decision. What comes back is the instruction: signed, naming the agent, the sponsor and the authority chain, and expiring in five minutes. ACN does not perform the action and does not see it happen.

  1. IdentityOrganisation and human sponsorOrganisation · Principal HUMANRegistered
  2. Sponsor’s own signed token
    ACN · before any request
    1. AuthorityDelegation, as a signed mandatePOST /v1/mandates · Ed25519Active
  3. Mandate id · no credential issued
    Caller · Untrusted request
    1. Agent requestPOST /v1/actions/clear · bodyUntrusted
  4. Signed access token
    Agent Clearing Network
    1. IdentityAuthenticationauthenticate · issuer keysVerified
    2. AuthorityAuthorizationrole · tenant · _require_presenterPassed
    3. PolicyPolicy evaluationevaluate_action · _broken_ancestryClear
    4. Human ApprovalApprovalrequires_human_approvalNot required
    5. EnforcementConsume and reserve_consume_and_reserve · FOR UPDATEReserved
    6. Authorised instructionClearance · Ed25519 · expiresAtVerified
  5. Signed CLEAR · five-minute expiry
    Caller’s system · Outside ACN
    1. External effectexecuted by the callerNot observed
  6. Caller’s report · same agent
    ACN · after the effect
    1. AuthorityCommit or releasePOST /v1/actions/{id}/commitAwaits report
Records · written about the decision, never making it
  • AuditAudit rowappend_audit · SHA-256 chainRow written
  • EvidenceOutbox eventacn.action.<decision>.v1Event written
  • ObservabilityRequest logRequestTelemetryMiddlewareNot asserted
A reference flow, not a runtime trace. CLEAR and REFUSED are read from tests that authenticate with signed tokens; REQUIRE_APPROVAL and DENY are read from tests that run with development identity headers, a mode the service refuses to start with in production. Every organisation, agent and quantity is a test fixture.

Untrusted request, verified authorised instruction.

The request and the instruction are different objects with different authors. Nothing the caller writes about who it is or what it may do is taken as true.

What the caller says, and what ACN signsRev 2026-09-08
Who is actingTaken from the verified token’s subject and matched to one registered, active agent. An identity in the body is compared with it and can never choose the actor.
Token
Which organisationTaken from the token. Identity headers that disagree with it are refused.
Token
Which mandateA reference in the body, looked up under a row lock. It must belong to the token’s organisation and name the token’s agent.
Claimed
Action, resource and quantitiesStated in the body and evaluated against the constraints the sponsor signed.
Claimed
Decision, authority chain and expiryWritten by ACN and signed with its Ed25519 key: the decision, its reason codes, the agent, the sponsor, the mandate’s purpose, every mandate in the chain, and when it stops being valid.
Signed
ScopeThe action path, with signed tokens. In development identity mode the actor comes from headers; that mode is refused in production configuration.

Eleven terms that are not one.

Identity is not authority, authentication is not authorization, and a policy that says no has enforced nothing by itself. This is which mechanism is which, with the line it starts on under src/acn at 06bc91c.

Organisation identity
A registered, active organisation that has explicitly trusted the identity issuer. An inactive organisation, or an issuer it never trusted or has revoked, is refused. Starts at authentication.py:68.
Agent or service identity
The token’s subject, resolved to exactly one registered, active agent or principal for that organisation and issuer. ACN accepts identities an upstream authenticated; it issues no credentials. Starts at authentication.py:72.
Delegated authority
A mandate naming one human sponsor and one agent, issued only when the authenticated caller is that sponsor. A child mandate may only narrow its parent. Starts at mandates.py:47.
Mandate constraints
Permissions, limits in any dimension with a unit, thresholds above which a person decides, allowed resources or counterparties, a validity window and a maximum number of uses. A constraint set the build cannot parse denies. Starts at policy.py:38.
Authentication
A bearer token verified against the issuer’s published keys, RS256 or ES256, with issuer, audience, expiry, issued-at and subject all required. Starts at authentication.py:26.
Authorization
Three checks that are not policy: the token’s role permits the route, the mandate belongs to the token’s organisation, and the token’s agent is the mandate’s agent. Starts at clearance.py:99.
Policy evaluation
The action against the mandate: agent and mandate active, inside the validity window, uses remaining, permission granted, every quantity under its ceiling, the resource in scope, every ancestor still active, and room left after what is already reserved. Starts at clearance.py:122.
Approval
On the action path, an outcome: REQUIRE_APPROVAL, with nothing consumed. On the order path, a recorded act by an active human who is neither the mandate’s sponsor nor the decision’s proposer, bound to one signed decision. Starts at clearing.py:101.
Enforcement
What ACN itself holds: the mandate row is locked, a use is consumed and the quantities reserved in the same transaction as the decision. On the action path, whether the action then happens is the caller’s to enforce. Starts at clearance.py:423.
Verified authorised instruction
On the action path, a signed CLEAR with a five-minute expiry. On the order path, a settlement instruction signed before delivery, committed before delivery, and verified again before it is sent. Starts at clearance.py:373.
Audit and evidence
One hash-chained audit row and one outbox event per decision, committed in the same transaction as the state they describe. Every decision is itself a signed record, including a denial. Starts at clearance.py:181.

Two organisations, one order.

The second path is older and is the one that crosses an organisational boundary: a buyer’s agent orders from a supplier, and a settlement instruction is issued only against verified delivery. Each side authenticates as itself. Neither can act inside the other’s tenant.

Diagram 0005An order, from proposal to settlement instruction
decision FULFILLED · settlement simulated

The supplier never touches the buyer’s mandate, and the buyer never signs for the supplier.

The buyer’s agent proposes under its own mandate, and ACN signs a record of who proposed and how they were authenticated. When the supplier accepts with its own token, ACN checks that record again and consumes the buyer’s mandate as an internal step. The supplier is given no credential in the buyer’s tenant.

On this path ACN sends the instruction itself, so the gate is its own. The settlement instruction exists only after a person who is neither the mandate’s sponsor nor the decision’s proposer approves that exact signed decision. It is signed, committed before anything is sent, and its signature is verified again before delivery.

With signed tokens, a test refuses a proposal from any actor but the mandate’s agent or its sponsor, and an acceptance from a supplier agent or service the order does not name.

  1. AuthorityBuyer’s signed mandatelimit · approved vendorsActive
  2. Mandate id · no credential issued
    Buyer organisation · Untrusted request
    1. Agent proposes an orderPOST /v1/obligations · bodyUntrusted
  3. Buyer’s signed access token
    ACN · proposal
    1. AuthorityBuyer authorizationrequire_buyer_actor · validateDev headers
  4. Signed proposal
    Supplier organisation · Untrusted request
    1. Supplier acceptsPOST …/supplier-acceptUntrusted
  5. Supplier’s own signed access token
    ACN · acceptance
    1. AuthoritySupplier authorizationrequire_supplier_actorDev headers
    2. EnforcementMandate consumed, budget reservedrequire_buyer_intent · consumeReserved
  6. Committed obligation
    Supplier’s system · Outside ACN
    1. Deliveryperformed by the supplierNot observed
  7. Evidence from a party to the order
    ACN · clearing
    1. EvidenceDelivery verifiedverification-runs · deterministicPass
    2. PolicyClearing decisionderive_decision · signedFulfilled
    3. Human ApprovalHuman approvalapprove · independent checkerApproved
    4. Authorised instructionSettlementInstruction · signedVerified
  8. Signed instruction · idempotency key
    Settlement provider · Simulated adapter
    1. SettlementTrustLedgerPort.submitSimulated
Records · written about each step, never deciding it
  • AuditAudit rowsone per step · one chainRows written
A reference path, not a runtime trace. The stages are read from the code; the states are those of one end-to-end test, which runs with development identity headers and a simulated settlement adapter. The order is a fixture: £200.00 for 1,000,000 API tokens under a £500.00 mandate.

Where the code stops short of the diagram.

A tidy path from request to effect would hide these. Each is how the repository behaves at the commit named above.

  • Approval on the action path is an answer, not a process. ACN returns REQUIRE_APPROVAL and consumes nothing; at this commit no endpoint on that path records the person’s decision. One exists on an unmerged branch.
  • On the action path ACN decides and reserves; it does not perform the action. Nothing in the repository stops a caller that ignores a DENY, or an agent that holds its own credentials for the external system.
  • The five-minute expiry is signed into the clearance, but commit does not check it: a test completes a clearance whose expiry has passed. Honouring the expiry is the caller’s job.
  • ACN does not observe the effect on the action path. Commit and release are the caller’s report, accepted only from the same authenticated agent.
  • Access tokens are bearer tokens. A token that claims to be sender-constrained is refused rather than verified, because no proof of possession reaches the verifier. A stolen token is usable until it expires or its actor or issuer is revoked.
  • A request refused before a decision leaves no audit row; the test that refuses the wrong agent asserts the count is unchanged. It appears in the request log, which is not an authority record.
  • The two paths do not carry the same controls. The per-mandate approval threshold and the check that every ancestor mandate is still active run on the action path only. I have not demonstrated a bypass through the order path and do not claim one; ACN’s own notes list it as a candidate awaiting independent reproduction.

What was measured, at an earlier commit.

Historical evidence, not a measurement of the code described above. These figures are from one run at 6a01ba4. The code on this page was read at 06bc91c, 23 commits later, and nothing was re-run there. The concurrency figures behind the row lock are on the case study.

Agent Clearing Network · evidencehistorical · run at 6a01ba4
Repository gate against PostgreSQL 16Tests, no failures or skips, in the hosted pull-request run for code commit 6a01ba4. Historical: not re-run at 06bc91c
1,126
Mutation controlsAll passed in the same run: each is an authority control removed on purpose to see a test fail
207
PostgreSQL concurrency checksSame run. The concurrency gate refuses to run on SQLite, where a row lock is a no-op
9
Browser scenariosOperator console, same run
12
ScopeHistorical. One hosted run on a pull request, 23 commits before the code this page describes; the source changes since are a new audit hash version, verified but not yet written, and a vendored copy of Mandate’s authority core. Not a production measurement, and no figure for latency or scale.

What is not proven.

These stay listed until a measurement replaces them. They are part of the evidence, not a caveat attached to it.

  • There is no production deployment of ACN and no customer. It is a reference implementation whose invariants are tested locally and in one hosted pull-request run; none of that is production observation.
  • The code was read at commit 06bc91c, which is not yet merged to main. It lets ACN verify a new audit hash version, which nothing writes yet, and vendors a copy of Mandate’s authority core to do it. It touches nothing else cited here. The four measured figures are historical: they belong to 6a01ba4, 23 commits earlier, and were not re-run, so whether they still hold at 06bc91c is unknown.
  • Two of the four readings in the first diagram, and the whole second diagram, come from tests that run with development identity headers. That mode trusts headers and grants the admin role; configuration refuses it in production, and nothing is deployed.
  • The Control Plane’s recorded runs did not call this commit. They used a test double and older ACN builds that take the organisation from a header and the agent from the request body; requests shaped that way are refused here, and the approve endpoint the latest of those builds has is not in this code.
  • ACN verifies tokens and issues none. Everything on this page about who is acting is only as good as the upstream identity provider, which is outside the repository.
  • Signing uses a local Ed25519 key in development. Production configuration requires managed signing; deployed key custody is unverified.
  • The audit chain is a SHA-256 hash chain: it detects an edit, it does not prevent one. No trigger or revoked grant appears in any migration, so a process holding the database connection could rewrite a row.
  • Settlement is delivered to a simulated adapter in every test read here. An HTTP adapter exists; a production contract with TrustLedger does not, and ACN holds no money.
  • Observability is partial. Request logging and optional OTLP export are in the source and locally tested. No collector is deployed, so nothing is observed in operation, and retention, alert routing and deployed signal validation remain undone.
  • Whether authority before an agent acts is a problem a buyer will pay to solve is untested. Nothing on this page is customer-validated.
  • No compliance or conformance is claimed. The protocol profiles are adapters; formal conformance certification is listed in the repository as a production extension.
  • There is no multi-region finality, and payment custody is deliberately outside the boundary.

One company, and the links that exist.

These are separate codebases that share the same controls, not a shared platform. The one runtime link between them is the Control Plane calling ACN, exercised so far against a test double and older ACN builds. No ThePlus package appears in the Control Plane’s or Mandate’s dependencies.

ThePlus Control Plane

Orchestrates agent actions: registry, passports, approvals, connectors and evidence. It does not own authority. Calls the Agent Clearing Network over HTTP for every authority decision, and refuses to start without it. That call has been run against a test double and older ACN builds, not against the ACN commit its own page describes.

Tested in a local harness

Mandate

A reference implementation of pre-execution authority: a versioned mandate, a deterministic policy and a signed evidence chain. Not the runtime authority. Neither it nor ACN imports the other, though ACN vendors a copy of its authority core. The Control Plane service does not call it.

Tested locally

Agent Clearing Network

Governs delegated authority, signed mandates, delivery evidence, and clearing decisions between agents. The canonical runtime authority: delegation, mandate enforcement, reservation, clearance and revocation.

PostgreSQL-proven reference kernel

TrustLedger

Reconciles provider evidence against an authoritative double-entry ledger and routes exceptions for resolution. Named in the Control Plane’s documents as the system that holds financial truth. No integration code exists between them.

Engine built · CI-verified against PostgreSQL

CyberGuardPlus

Turns endpoint and operational signals into investigations, evidence, and governed remediation actions. Named in the Control Plane’s documents. No integration code exists between them.

Endpoint security MVP shipped

Have an agent that needs real authority?

Send me one workflow involving money, customer data, approvals or production actions. I’ll tell you where its authority boundary is, and where it is missing.