Replies: 1 comment 2 replies
-
|
This is a real gap, and the fail-closed, pre-execution, signed-attestation shape is the right way to close it. One thing worth building in from the start, from running the analogous pattern in production for settlement state. A precondition that is true at execution time can stop being true before the action reaches finality. The market-open example is exactly this: open at admission, halted moments later, while settlement is still in flight. So a point-in-time check at execution is necessary but not sufficient - the same TOCTOU race you describe between mandate creation and execution also exists between execution and finality. In production we treat the signed state attestation as having a validity window rather than a single instant, and pair it with a revocation path: the admission gate is fail-closed and resolves to a categorical outcome before the action commits, and a separate monitor watches the relevant state after admission and can revoke if it changes before finality. That keeps the world-state precondition enforceable across the whole window the action is exposed, not just at the instant it was signed. Two implications for the Intent Mandate carrying this:
AlgoVoi (chopmob-cloud) -- docs.algovoi.co.uk/substrate-2 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
AP2's Intent Mandate captures user constraints on a delegated purchase. Today
those constraints are transactional (price, merchant, item). There's a class of
precondition AP2 can't currently express: the external environment the agent
would act into — e.g. "only execute while this market is open, not halted or
closed."
Why it matters for AP2
As AP2 extends toward financial and stablecoin-settled flows, an agent can hold
a perfectly valid Intent Mandate and still execute into a halted market or a
closed session — a TOCTOU race between mandate creation and execution. This is
the same class of safety gap AP2 already addresses for amount and payee, applied
to time and world-state.
Proposal
A fail-closed, pre-execution environment precondition the Intent Mandate can
carry: the agent must obtain a cryptographically signed attestation of the
relevant external state and confirm it satisfies the mandate's condition before
executing. Any failure — unreachable, bad signature, expired, wrong state —
blocks execution, with no retry and no degraded path.
Prior art
28 exchanges (headlessoracle.com), with a clean-room verifier.
draft-borthwick-msebenzi-environment-statedefining theconstraint family.
Ask
Is expressing external-environment preconditions in scope for the Intent Mandate
constraint model? Glad to bring a concrete schema proposal if the direction is
welcome.
Beta Was this translation helpful? Give feedback.
All reactions