Repository navigation
PiHarness and Stripe test mode: recovery after external success, with the failed run retained #2875
Replies: 1 comment
|
Follow-up with a source-exact hosted Pi 1.4 observation, and a request for independent reproduction. After publishing the offline four-policy comparison, I ran a separate, authenticated Cloudflare-hosted Pi 1.4.0 / Agents 0.30.1 Durable Object probe using an inert tool and a deterministic model substitute. Two deliberately induced Durable Object terminations led to a new instance and a parked operation; explicit release/retry subsequently returned done, with an empty pending list. The pre-abort crash marker did not survive the first termination. I have retained that failed observation rather than hiding it. A second operation started but a terminal abort result was not proven. The temporary Worker and its bearer secret have been deleted; the public endpoint returned HTTP 404. No Stripe payment, paid inference, social publication or customer data was involved in this new hosted probe. The executed worker source, pinned dependencies, twelve redacted observations and a credential-free verifier are now in this tagged release: The earlier webhook subprocess CI failure was also corrected with explicit timeout/signal diagnostics; the original failed GitHub Actions job is preserved: Could someone independently reproduce the missing pre-abort marker and hosted parked→retry outcome on their own Cloudflare account, ideally while separately observing alarm-driven wake-up? I'd also appreciate a concrete existing example that already handles lost provider acknowledgement plus changing authority and finite idempotency-key retention. LIMBO, RetryBench and Permission to Retry cover closely related claims; I'm treating my policy comparison as a replication, not a newly discovered algorithm. The partial abort result and all external-provider limitations remain open until evidence establishes otherwise. |
Uh oh!
There was an error while loading. Please reload this page.
I built a reproducible PiHarness/Stripe test-mode lab to investigate a boundary that mattered to my own durable publishing workflows: a provider can commit an external effect before the agent receives the tool result.
The original, pinned Agents 0.28.1 / Pi Durable 1.3.0 study exercised one local Wrangler SIGKILL and one hosted Durable Object abort with two actual GBP 1.00 Stripe test-mode PaymentIntents. The unsafe tool was interrupted rather than automatically replayed; the gateway maintained a separate durable operation record. The first hosted assertion failed because it expected a pre-abort marker to persist. I kept that failure and later verified the same operation and payment by readback. It was not a fresh green rerun.
I then added an isolated, deterministic recovery-policy study: 4 policies × 10 fault cases × 3 repetitions, plus real two-process concurrency, actual SIGKILL/webhook-recovery tests, and independent local receiver-ledger readback. The deliberately weak fresh-key baseline produced duplicate effects. A policy preserving intent, current authority and evidence avoided them within this cooperating synthetic provider. Holding all uncertain work avoided duplicates too, but left recoverable outcomes unresolved.
Important limits: the new comparison does not reproduce a real Stripe lost response, real idempotency-key expiry, production authorisation changes or a general exactly-once guarantee. Historical Stripe objects were rechecked via GET-only test-account access; no new payment was created in this study. The new source is in an open PR, not a merged upstream release.
I'd welcome a specific correction or prior art: is there an existing Cloudflare Agents/Pi example that tests lost provider acknowledgement + changed authority + finite provider deduplication against an independent effect ledger? I would rather build on that than claim a new mechanism.
Experiment design, implementation, orchestration and writing were AI-assisted. I own the claims and the preserved failures. No paid model inference or real-money payment was used.
All reactions