EffectProof Guard — Retry, Check or Stop
Pricing
$10.00 / 1,000 recovery decisions
EffectProof Guard — Retry, Check or Stop
Prevent duplicate agent actions after timeouts with evidence-bound RETRY, CHECK or STOP decisions.
Pricing
$10.00 / 1,000 recovery decisions
Rating
0.0
(0)
Developer
Travel Monitor Lab
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
10 days ago
Last modified
Categories
Features
Share
EffectProof Guard helps an AI agent avoid repeating a payment, booking, email or other tool action when the API response is lost.
Give it two objects: the tool's scoped recovery evidence and the result actually observed. It returns one decision:
RETRY: one same-payload replay is justified by scoped evidence.CHECK: reconcile the original operation before any replay.STOP: do not repeat the action automatically.
The Actor never invokes the target tool. It is a deterministic decision function, not an agent, proxy, payment service or global exactly-once system.
Quick example
A payment request timed out after dispatch. Same-key deduplication is only declared, but a status query was verified in the payment sandbox.
Input:
{"tool": {"name": "charge-card","capabilities": {"outcomeQuery": {"status": "verified", "scope": "payment-sandbox-v1"},"sameKeyDeduplication": {"status": "declared"}}},"result": {"outcome": "timeout","dispatched": true,"operationKey": "order-42","observedStatus": "unknown","lateCommitPossible": true}}
Output decision: CHECK, reason code CHECK_OUTCOME_FIRST. The next action is to query the original payment before any retry.
When is RETRY allowed?
Only in these cases:
- Transport evidence establishes
not_dispatched. - Read-only behavior is
verifiedwith a named scope. - Same-key deduplication is
verifiedwith a named scope and the original operation key is supplied. The same payload is mandatory.
A declaration such as idempotent: true, an observed success, or an unscoped verified label is not enough. A not_found result never unlocks automatic replay in this MVP, even when lateCommitPossible is set to false: settlement itself must first be established through a trusted recovery flow.
Why can CHECK be the safe answer?
After dispatch, a timeout leaves two possibilities: the action happened, or it did not. A verified outcome query can resolve that ambiguity without causing a second effect. If the query says not_found but a late commit remains possible, EffectProof still refuses to treat absence as proven.
Output fields
Each dataset item and the DECISION key-value record contains:
decision:RETRY,CHECKorSTOP;reasonCode: stable machine-readable explanation;reasonandnextAction: short operational guidance;retry: null, or the same-payload and original-key constraints with one automatic attempt;evidence: SHA-256 of the canonical input, capability proof statuses and the claim boundary.
Malformed input returns STOP with INVALID_INPUT; it does not crash the run or produce a permissive fallback.
Local use
python3 src/main.py --input examples/timeout-check.json --output demo-outputpython3 src/main.py --input examples/dedup-retry.json --output demo-outputpython3 src/main.py --input examples/unknown-stop.json --output demo-outputpython3 -m unittest discover -s tests -v
API, MCP and agent use
Use this tool when an AI agent or automation has sent a tool/API action and the response was lost, timed out, or otherwise left the result ambiguous. Supply only the evidence you actually have; do not upgrade a vendor's idempotency claim to verified without a scoped test.
The Actor runs as a standard batch Actor through the Apify API and can be called by MCP clients through Apify's Actor tools. It has limited permissions, no standby server and no third-party credentials. With pay-per-event pricing and limited permissions, it is designed for Apify's x402/AGI payment flow.
Pricing and dry runs
recovery-decision: 0.01 USD per valid, non-dry-run decision.dryRun: true: the same deterministic decision, without the recovery-decision event charge.- Invalid inputs return
STOP / INVALID_INPUTwithout the recovery-decision event charge. - Apify platform usage may apply separately according to the caller's plan. Apify retains its marketplace commission.
Claim boundary
This MVP does not contact live tools, validate third-party evidence, observe production state or guarantee exactly-once execution. Its output is advisory and is only as strong as the scoped evidence supplied. The caller remains responsible for enforcing the original operation key and identical payload.
Publication status
Published as the simple EffectProof Guard Actor. The advanced recovery-contract compiler remains a separate research prototype and is not included in this Actor.