arXiv(opens in a new tab)cs.CRAug 2026Cited by 6 papers on PaperVantage

Manuscript Offprint

arXiv:2608.21159

AID-Guard: Stateful Authorization for Delegated Agent Effects

Yingzhe Tong, Leyu Dai, Songhui Guo

Yingzhe Tong, Leyu Dai, and Songhui Guo

Information Engineering University

Emails: {tyingzhe@outlook.com, tsubasa512@163.com, songhui.guo@outlook.com}

Abstract—Tool-using AI agents turn delegated tasks into provider effects, yet authorization commonly ends at admission while mutable provider state, delivery, retry, and recovery continue. A request may change before commit, or an effect may occur while its response is lost; a replacement can then create a second effect from one approval. We present AID-Guard, a stateful authorization-to-effect closure protocol. It revalidates the exact approved request and current provider state at commit, retains one reservation while the outcome is ambiguous, and permits release or one successor only after a terminal result or certified no effect with a delivery fence. For supported provider contracts, one reservation therefore yields at most one effect across retry and recovery. To our knowledge, AID-Guard is the first evaluated agent-authorization protocol to preserve one reservation lineage across provider commit and ambiguity, permitting at most one successor only after certified no effect and provider-terminal predecessor fencing through the declared recovery horizon.

We implement AID-Guard as a Python/SQLite prototype and evaluate it in a declared loopback MCP domain. Thirteen live mutations produced no unauthorized provider effects, four outcome traces preserved the specified commit and recovery semantics, three concurrent histories were linearizable, and complete evidence bundles supported public verification and privileged replay. All 210 Stripe provider-contract trials matched their predeclared outcomes. Across two SaaS providers, 40 terminalize-then-successor schedules, 30 overlapping Stripe confirm/cancel races, and 10 Stripe crash-recovery schedules completed without a duplicate effect. Under complete proposer compromise, AID-Guard blocked all 44 submitted attacks while admitting all 44 matched legitimate proposals. The strict exact-manifest profile reduced benign utility by 35.4–43.8 percentage points; in a separate no-seed frontier, Typed-3x observed 9–10 more benign completions than Exact-1x, with no observed unsafe effects across 864 frontier episodes. A composition study blocked all 20 tested post-admission lifecycle attacks and preserved all eight matched valid or exact-retry executions. These results support authorization-to-effect binding under the evaluated effect-path inventory, provider contracts, and failure schedules.

I. INTRODUCTION

AI agents increasingly translate natural-language tasks into operations over mailboxes, repositories, calendars, files, and other provider resources. The decisive security boundary lies where a delegated task becomes an authenticated operation with a concrete target, acting identity, provider contract, and externally visible effect.

a) Running example: A user approves one reimbursement email from a fixed account to a verified recipient, with a fixed attachment. After admission, a compromised agent or another untrusted request-building component may substitute the recipient, attachment, or sending account just before provider commit. Even if the request remains unchanged, the provider may send the message while its response is lost. A blind retry can send a duplicate; declaring failure and issuing replacement authority can let both the delayed request and its replacement deliver. The admission decision may have been correct, yet the eventual effects no longer represent one approved action.

This history exposes an authorization-effect gap: authority is checked at admission, while the request, provider state, delivery, and recovery continue to evolve. The security decision must persist until the provider outcome is resolved. We ask: under concurrency, retries, response loss, and context mutation, which durable authorization state may produce a provider effect, and how can recovery avoid creating a second effect?

AID-Guard closes this gap with three rules. First, provider commit revalidates the exact approved request and current provider state. Second, ambiguous delivery retains the original reservation and cannot mint replacement authority. Third, the lineage closes only with a terminal provider result or with certified no effect and a delivery fence installed before release or one successor. Together, these rules keep one user decision bound to one effect lineage.

Existing defenses secure complementary portions of this path. Spotlighting marks untrusted input provenance, while CaMeL, Progent, and PAuth constrain information flow, tool admission, or task-scoped authority [1], [2], [3], [4]. CXI binds field, effect, and invocation authority to one action manifest at the execution boundary, while CapLease retains token-independent authorization state through Issue-Prepare-Commit to prevent semantic replay [5], [6]. Four cross-stage histories remain. A capability plus idempotency does not stop a substituted first request without commit-time revalidation. Independent idempotency keys do not couple a predecessor and successor that share no reservation lineage. No-effect release without a delivery fence leaves a delayed predecessor deliverable. A provider result without authority-bound evidence records what happened but not which delegation produced it. AID-Guard unifies commit-time binding, certified-no-effect recovery, provider-terminal predecessor fencing through the declared recovery horizon, and one-successor reservation transfer in one stateful authorization lifecycle. Under the declared provider contracts, this yields one-effect-or-certified-no-effect semantics across commit, ambiguity, retry, and recovery.

The protocol records each rule as a durable transition.

Stateful authorization through effect closure

Figure

Fig. 1. Stateful authorization through effect closure. H1 binds the evaluated action, H2 reserves quota and issues one capability, and H3 claims it at the credential-holding boundary. D2 revalidates the exact request and current provider state at commit. A terminal result closes the normal path; response loss retains the charge, while certified no-effect evidence installs a delivery fence before reservation release or one successor on the same lineage. The lower plane contains durable but non-executable evidence.

Trusted services construct the delegated context and immutable request before opening the provider path. H1–H3 repeatedly revalidate mutable dependencies while binding observation, capability issuance, and effect-boundary claim. Provider dispatch then revalidates the authority graph at D2. Durable outcome, idempotency, no-effect, successor, and evidence objects define the permitted retry and recovery branches. Under supported provider contracts, each reservation yields at most one effect across its predecessor and accepted successor.

Figure 1 gives the reading used throughout the paper. The left side forms one single-use authority, the center is its only route to a provider effect, and the right side closes the outcome or recovery branch. H1 binds an eligible evaluation to durable state; H2 reserves quota and issues a holder-bound capability; H3 claims it at the effect boundary; and D2 performs the commit-time check. Outcome and recovery evidence describe this lineage but cannot execute it.

The evaluation mirrors this lifecycle across separate evidence planes. In the official-MCP plane, an enumerated effect-path inventory, live mutations, commit/recovery traces, concurrent histories, and evidence measurements exercise the complete authorization-to-effect path. An independently implemented HTTP/JSONL recorder cross-checks provider-effect counts without reading the authority store, while Stripe and Resend test the declared commit and recovery contracts through external APIs. In the AgentDojo plane, natural, forced, and direct proposals measure attack exposure and admission; a paired extension then carries normally executed actions from AgentDojo, Spotlighting, CaMeL, and Progent into the post-admission lifecycle. Keeping these planes separate avoids crediting model refusal as effect-boundary enforcement.

This paper makes three contributions:

• We formulate the authorization-effect gap as an authorization-to-effect closure problem and define a stateful one-effect-or-certified-no-effect property over one reservation lineage.

• We design and implement H1–H3 authority formation, commit-time request and provider-state binding, conservative no-effect recovery, and role-separated outcome evidence.

• We evaluate the protocol with live boundary mutations, commit and recovery failures, concurrent histories, two external provider contracts, complete proposer compromise, and post-admission composition with four upstream action sources.

References (35)