A proposed fail-closed authorization protocol coordinating shared-quota serialization, synchronous preauthorization persistence, and single-use request-bound capabilities.
Autonomous tool execution increases the operational importance of coordinating authorization, resource accounting, and audit evidence. This paper proposes Atomic Governance Transactions (AGT), a fail-closed protocol that reserves policy-governed resources and durably records an authorization decision before releasing a single-use, request-bound execution capability. The intended safety property is narrower than universal audit completeness: every protected dispatch traversing the enforcement boundary must have a preceding durable authorization record. This guarantee is distinct from execution-outcome auditing and depends explicitly on boundary enforcement coverage, storage durability semantics, trusted signing paths, and crash-recovery state reconciliation. The specification identifies concurrency, capability replay, request commitment, and partial-failure transitions requiring explicit protocol handling, and defines the empirical fault-injection matrix required for independent validation.
Autonomous software agents powered by large language models (LLMs) amplify existing authorization, concurrency, and auditability risks through rapid, parallel, and dynamically generated API tool invocations. Two failure modes arise when standard decoupled authorization infrastructure governs concurrent tool execution:
This specification must be read alongside its companion documents without conflating their scopes. MEMO-2026-01 motivates threat scenarios in which optimizing agents could pursue strategic vendor entrenchment. ARCH-2026-02 defines the cumulative organizational policies required to prohibit such strategies (e.g., Herfindahl-Hirschman vendor concentration bounds). AGT (ARCH-2026-03) enforces only the transaction-level rules passed to it; it does not evaluate cumulative multi-step strategies or establish the adequacy of those rules. An agent submitting five individually authorized, logged transactions that gradually migrate all workloads to one supplier will satisfy AGT unless cumulative concentration policies are evaluated at the Control Plane.
We model an adversary capable of prompt injection, concurrent dispatch across shared quotas, post-issuance request mutation, capability replay before expiration, and inducing storage partitions against \(\mathcal{L}\).
Enforcing a fail-closed persistence barrier trades availability for preauthorization audit safety. If an adversary disrupts ledger storage \(\mathcal{L}\), AGT intentionally halts protected dispatches (HTTP 503), preventing unrecorded execution while incurring localized denial-of-service. Production deployments must therefore specify maximum tolerable stoppage windows, recovery timeouts, and whether any out-of-band break-glass operational mode exists. In addition, AGT relocates trust from application endpoints into the PEP/PDP/State/Ledger TCB; those control components must themselves be hardened against single-vendor supply-chain failure.
Rather than asserting that separate distributed calls constitute a single indivisible primitive by notation alone, AGT is specified as a stateful multi-phase protocol with an explicit linearization point, idempotency keys, and crash-recovery semantics.
RECEIVED → AUTHENTICATED → RESERVED → DECISION_DURABLE → AUTHORIZED → REDEEMED → DISPATCHED → OUTCOME_RECORDED
DENIED | EXPIRED | RECOVERY_PENDING | OUTCOME_UNKNOWN
Agent (A) PEP Interceptor PDP Kernel State Store (S) Ledger (L)
│ │ │ │ │
│── 1. Req(tx_id, X) ──>│ │ │ │
│ │── 2. Query(tx_id,H) ─>│ │ │
│ │ [Egress Halted] │── 3. Auth + Canonicalize │
│ │ │── 4. Lock(quota_id) ─>│ │
│ │ │<─ 5. Fence Token f ───│ │
│ │ │── 6. Reserve(tx_id) ─>│ │
│ │ │── 7. Policy Eval ─────┘ │
│ │ │── 8. Append Record E(seq, tx_id) ──────────>│
│ │ │<─ 9. Durable fsync/quorum ACK ──────────────│
│ │ │──10. Linearize Commit(tx_id, f) ─>│ │
│ │<─11. Signed Cap (τ) ──│ │ │
│ │──12. Redeem jti (1x) ─>│ │ │
│<─14. Result/Unknown ──│──13. Dispatch Exact X ┴──────────────────────────────────> [External API]
Standard Demonstration of Proof-of-Possession (RFC 9449 DPoP) binds client keys strictly to the HTTP method and target URI; it does not provide integrity protection over HTTP request bodies or arbitrary headers. Accordingly, AGT defines an Application-Defined Canonical Request Commitment verified by the PEP prior to dispatch:
When issuing the server-signed capability \(\tau\), the PDP embeds \(\mathcal{C}_{\text{req}}\), unique token identifier jti, reservation identifier res_id, and short expiration \(t_{\text{exp}}\). The PEP computes \(\mathcal{C}_{\text{req}}\) over the halted outbound buffer, verifies signature and commitment equality, atomically marks jti as REDEEMED in \(\mathcal{S}\) (blocking duplicate replay before expiry), and dispatches the exact verified buffer.
To prevent split-brain budget exhaustion or duplicate execution across crashes, the protocol defines explicit state reconciliation rules keyed by caller-supplied tx_id:
RESERVED) to permanent only in step 10 when \(\mathcal{S}\) atomically records AUTHORIZED conditioned on holding the active monotonic fencing token \(f\) (Kleppmann, 2016) and citing the committed ledger sequence number.
tx_id to RECOVERY_PENDING and returns HTTP 503. On caller retry with the same tx_id, the PDP queries \(\mathcal{L}\) and \(\mathcal{S}\); if \(E\) is durable and the reservation lease remains valid, recovery reconciles without creating a second debit or duplicate audit entry.
DECISION_DURABLE records from the WAL against \(\mathcal{S}\). Because \(\mathcal{S}\) maintains durable RESERVED holds tied to tx_id, stale older snapshots cannot resurrect spent quota.
DISPATCHED) and the external API times out, the PEP records OUTCOME_UNKNOWN. Exactly-once external effects cannot be guaranteed by the PEP alone without idempotency keys or reconciliation supported by the destination API.
Writing a ledger record prior to external dispatch establishes preauthorization evidence, not complete execution verification. This specification explicitly separates four distinct audit properties:
| Audit Property | What It Establishes | AGT Coverage Scope |
|---|---|---|
| 1. Authorization-Record Coverage | A durable decision record in \(\mathcal{L}\) strictly precedes any protected dispatch at the PEP. | Primary Target (Subject to assumptions) |
| 2. Dispatch-Record Coverage | The PEP records actually transmitting the bound payload onto the wire after redeeming jti. |
Optional Extension (Requires post-redemption log) |
| 3. Outcome-Record Coverage | The HTTP response or error code returned by the external destination is durably recorded. | Best-Effort (Cannot cover lost ACKs) |
| 4. Effect Reconciliation | Recorded execution logs match actual mutated state inside the external target system. | Out of Scope (Requires external API state sync) |
Statement: If (i) all protected dispatches must traverse the PEP, (ii) the PEP rejects any request lacking a valid capability \(\tau\) signed by the trusted PDP key, (iii) the PDP signing path is non-bypassable and executes strictly after receiving a verified storage persistence acknowledgment from \(\mathcal{L}\), (iv) storage acknowledgments guarantee durability across configured crash faults, (v) cryptographic signatures are unforgeable, and (vi) recovery never invalidates acknowledged commits, then every protected dispatch \(x \in X_{\text{exec}}\) has a preceding durable authorization record \(e \in \mathcal{L}_{\text{valid}}\).
Note that computing a cryptographic digest \(\text{digest}(E)\) does not by itself force persistence; the digest could be computed in volatile memory. Rather, the invariant relies on trusted control-flow enforcement inside the PDP: the capability signing key \(K_{\text{PDP}}\) is invoked only on the post-acknowledgment branch after \(\mathcal{L}\) confirms durable write persistence (fsync/quorum). If storage acknowledgment fails or times out, control routes to rollback and HTTP 503 error emission, leaving \(\tau\) unissued. Subject to the six stated trust and boundary assumptions, no protected dispatch can satisfy the PEP gate without a prior record in \(\mathcal{L}_{\text{valid}}\). \(\blacksquare\)
Statement: For \(N > 1\) concurrent agents competing to consume a shared unit-capacity resource \(Q = 1\), pessimistic serialization keyed on the shared resource domain \(\mathcal{S}(\text{quota\_id})\) (rather than per-agent locks) paired with monotonic fencing tokens \(f\) permits at most one (\(\le 1\)) successful allocation.
Safety vs. Liveness Note: Under ledger failure or network partition, AGT intentionally allows zero successful allocations. Achieving exactly one successful allocation requires separate liveness assumptions (eventual network delivery, storage quorum availability, and bounded lock-holder lease recovery).
| Storage Mechanism | Operational Definition in AGT |
|---|---|
| Write-Ahead Log (WAL) | Local or replicated sequential record persisting DECISION_DURABLE intent and tx_id prior to mutating state balances in \(\mathcal{S}\), enabling deterministic crash replay. |
| Durable Acknowledgment | Synchronous write confirmation returned only after data reaches non-volatile fsync/NVMe storage or a Raft/Paxos replication majority. |
| Hash-Chain Sequencing | Concurrent appends are serialized by the ledger sequencer assigning a strict monotonic sequence number seq prior to hashing \(H(E_{\text{prev}})\), preventing branching forks. |
| WORM Retention | Storage-layer object lock (e.g., S3 Object Lock Compliance Mode) preventing administrative deletion or overwriting for the policy-mandated audit window. |
Initial prototype observations evaluated two distinct test populations in a local single-node harness: (1) a deterministic policy and boundary regression suite of 176 automated test cases, and (2) \(n = 500\) storage fault-injection dispatch trials in which \(\mathcal{L}\) write targets were mounted read-only or severed:
While the prototype validates the basic unwritable-ledger barrier, establishing full protocol correctness under distributed faults requires evaluating these ten discriminating edge cases against four implementation baselines (asynchronous logging, synchronous logging without reservation, atomic reservation without audit barrier, and full AGT):
tx_id); PDP crash after ledger ACK before \(\mathcal{S}\) commit; PDP crash after \(\mathcal{S}\) commit before capability delivery.quota_id; duplicate jti capability redemption prior to \(t_{\text{exp}}\); stale lock-holder resumption rejected via monotonic fencing token \(f\).OUTCOME_UNKNOWN); ledger replicas disagree across network partitions.AGT integrates established distributed-systems and security primitives rather than inventing isolated new cryptography:
jti redemption.To facilitate independent protocol verification while safeguarding operational secrets, architectural artifacts are partitioned as follows:
| Public Protocol Specification & Reproducibility Artifacts | Protected Operational Configuration (Private) |
|---|---|
| Protocol state machine, crash-recovery transitions, and canonical commitment schema | Internal customer domain allowlists and production enterprise policy rulesets |
Fencing-token reservation logic and single-use jti redemption rules |
Production KMS/HMAC signing keys, TLS certificates, and deployment credentials |
| Reproducible fault-injection harness and baseline latency benchmark scripts | Internal corporate billing records and proprietary LLM prompt suites |
• Threat Hypothesis & Macro Context: [MEMO-2026-01] The Sovereign Shield? Strategic Defense Dependency & Autonomous-Agent Incentives →
• Cumulative Policy & Tri-Plane Model: [ARCH-2026-02] Deterministic Control Planes for Autonomous Enterprise Systems (L0–L5 Assurance) →
• Multi-Agent Coding Pipelines: Engineering Robust Multi-Agent Coding Pipelines (Planning/Execution Split & Egress Isolation) →
To cite this systems architecture specification in academic research or technical publications, use the following BibTeX entry:
@techreport{suhlabs2026agt,
author = {Suh, John Young and {SuhLabs Systems Research}},
title = {Atomic Governance Transactions: Durable Preauthorization Logging and Resource Reservation for Autonomous Tool Execution},
institution = {SuhLabs Systems Research},
number = {ARCH-2026-03},
year = {2026},
month = {November},
url = {https://suhlabs.com/atomic-governance-whitepaper.html}
}