[Feat]: Revocation path for open Mandates — rescinding standing agent authority bound to a cnf key
Is your feature request related to a problem? Please describe.
In the Autonomous (Human Not Present) flow, a user signs open Checkout/Payment Mandates delegating standing authority to a Shopping Agent identified by the cnf claim (specification.md §Autonomous). Two gaps:
- specification.md only RECOMMENDS setting
expon open Mandates — nothing requires a bound on standing authority. - No mechanism exists for the user (or a Trusted Surface / Credential Provider on their behalf) to revoke an open Mandate after delegation. The only invalidation language in security_and_privacy_considerations.md lets CPs/Networks/MPPs reject overlapping Mandates or invalidate payment tokens they issued — a double-spend mitigation, not revocation of the Mandate itself.
Consequence: if the Shopping Agent's cnf key is compromised — or the user simply changes their mind — an open Mandate with a generous exp (or none) remains fully valid to every verifier until it lapses naturally. The agent key can keep closing transactions within constraints and they will verify.
Related but distinct: #346 covers verifiers failing to consume closed Mandates (replay); this is about rescinding the underlying delegated authority. #45 asked for revocation/lifecycle examples on the earlier Intent/Cart model — this is the v0.2 HNP normative gap: a status mechanism and verifier obligations for standing cnf-bound authority, not examples.
Describe the solution you'd like
- A revocation/status mechanism for the Mandate credential — the SD-JWT VC Status List pattern (draft-ietf-oauth-status-list) fits naturally.
- Normative verifier obligation: verifiers of open-Mandate-backed closed Mandates MUST check revocation status (or fail closed when unable).
- Upgrade
expon open Mandates from RECOMMENDED to a bounded MUST (MUST set; SHOULD be ≤ task lifetime). - A
revokedreceipt status distinguishing revoked presentations from constraint failures.
Describe alternatives you've considered
Relying on short exp alone (insufficient — key compromise inside the window still leaves authority live), or out-of-band agent-key rotation (breaks existing open Mandates indiscriminately and doesn't signal verifiers).
Additional context
Encountered while building an external mandate-verification service against AP2 v0.2.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
+1 on fail-closed. We hit the same gap in our own mandate checker and ended up with a status list per issuer, checked on every payment, and "could not confirm" is never treated as active.
Curious about the service you're building: is anyone already relying on a standing mandate with real money, or is it still pre-production? And what revocation delay would they accept, seconds or minutes?
(Disclosure: I work on an open mandate format, so I have a stake.)
Appreciate the corroboration — independently arriving at per-issuer status with fail-closed on unconfimed reads is a good sign the pattern is the natural one, not either of our inventions.
Real money on standing mandates — not yet, at least on our side. We see mandate-gated authorization exercised constantly in pre-production environments, but nobody we've worked with has put cardholder funds behind a standing agent mandate in production. That cuts both ways though: it's exactly the window to get revocation semantics right, because once standing mandates carry real volume the spec can't retro-fit a status mechanism without breaking deployed verifiers.
Delay tolerance — seconds at the outside, and effectively "fresh at decision time." The check sits on the critical path of every authorization verdict; a status that's minutes stale means a rescinded mandate still clears transactions inside that window. What we've seen work is short-TTL status refreshed asynchronously so the auth path only does a local lookup — your per-issuer construction. Batch or CRL-style distribution is fine for offline/audit verification but has no place in an auth-time check.
However, the spec need is really about multi-party presentation, which is the case AP2 is actually specifying for. Might be worth scoping the normative language to that.
Disclosure in kind: Similar stake for us as well.
@nmatt1, a TTL bounds exposure only if the authorization lookup enforces it, not merely the refresh worker. Refresh failure must not extend the last positive status.
For the async-cache design, what starts that clock: the issuer’s status observation/publication, or the local fetch? A newly fetched old status should not acquire a fresh validity window.
A useful negative control: freeze refresh, revoke at the issuer, and attempt authorization before and after the accepted bound. Report the revocation-to-rejection delay, not just the polling interval.
@lumirosh all three land on the right seams.
On the clock: the status object carries the issuer's observation time, and the authorization lookup enforces the bound against THAT timestamp — not fetch time. A fetched-old status arrives already stale; it enters the cache stale and the lookup fails closed, which is the behavior you described ("a newly fetched old status should not acquire a fresh validity window"). Fetch time is bookkeeping only.
On refresh failure: consecutive failed refreshes do not extend anything. When now - observed_at > bound, the status is unknown and unknown is not active — the lookup treats stale and absent identically. The worker's health is monitored separately precisely because silence is a degradation signal, not a success case.
On the negative control: the right experiment, and we'd rather report the number than assert it. Frozen-refresh + issuer-side revoke + pre/post-bound authorization attempts measures revocation-to-rejection end-to-end, which is the figure that matters to a deployer. The polling interval is an upper bound only in the happy path; the bound that holds under refresh failure is observed_at + TTL evaluated at the lookup.
Thanks, that answers both questions: issuer observation time starts the clock, the lookup enforces the bound, and failed refreshes do not extend a positive status.
For the proposed negative control, the useful result is the measured revocation-to-rejection delay, kept separate from the configured TTL or polling interval.