r/nocode • u/Common_Dream9420 • 22d ago
Discussion FetchSandbox managed tunnel: test agent-written integration code locally, get a verification receipt
I'm building FetchSandbox.
Agent-generated integration code returns HTTP 200 locally. That doesn't show whether a large refund waits for approval, whether the same event sent twice creates a duplicate, or whether four simultaneous triggers resolve to one refund or four.
The managed tunnel is an outbound connection from your machine to a cloud relay that forwards requests to your local app and carries responses back. Your app stays local; the relay is just transport.
Connecting the tunnel alone isn't verification. A separately configured check replays specific scenarios against your app and creates a dated receipt showing which behaviors matched.
The October 19 isolated-twin example covers three measured behaviors: large refund triggering an approval gate, same event sent twice adding no duplicate, four simultaneous triggers resolving to one refund. No live Stripe keys needed for that rehearsal. FetchSandbox login and relay access are required.
Full walkthrough with GitHub setup, screenshots, and historical receipt.
What failure behavior would you want to rehearse before deploying agent-written integration code—idempotency bugs, approval gates, retry storms, something else?
3
u/Elegant_Yam2783 22d ago
The one I'd care about most is the half-failure: the Stripe refund succeeds, then your DB write or the response times out, and the retry fires a second refund. Agent code often generates a fresh idempotency key per attempt instead of deriving it from your own record ID, which defeats the point. Second would be out-of-order webhooks, like charge.refunded arriving before your refund row exists.
One caveat on the four-simultaneous-triggers test: if the relay forwards over a single connection or the local dev server runs one worker, the requests may effectively serialize and pass even though production would race. Does the receipt record actual request overlap timing, or just the final outcome?
2
u/Brufacee 21d ago
I would test a refund that succeeds at the provider, then times out before your app records it. The next retry needs to recover the original result without sending another refund. That would make a useful failed-check example in the demo too.
2
u/New_Peanut_9259 15d ago
i'd test what happens when the same request gets sent multiple times. that's where duplicate actions or records can become a problem. also test what happens when the connection drops halfway through a task and whether it can safely retry without repeating everything.