Ruzzler
Platform
HomeCreateChatRuzzCodeWorkflowsMarketplaceProjectsRunsApprovalsFilesPlannersAnalyticsMonitoringLogsAlertsRate LimitsModelsEnvironmentsEndpointsSDKsConnections
Account
UsageBillingData & PrivacyOrganizationSecuritySupportSettings
Admin
Admin
Loading account
Verifying tenant authority…
K
…Loading accountNo account data shown
Explorer
Editor
Code Review
Recent Coding Jobs
Code Health
Output
Tests
Deployment
Diff Preview
© 2025 Ruzzler, Inc. All rights reserved.Privacy PolicyTerms of ServiceTrust Center
Explorer
Editor
Terminal
Assistant
Tests and deployment

ws-117 · checkout retry guard

Developer IDE with file tree, editor, assistant, terminal, tests and route/cost controls.

Route · autoBudget $25/daySOC 2
Explorer
RUZZLER-WEB
src
components
routes
services
checkout.tsM
payments.ts
tests
.env.example
package.jsonM
README.md
OUTLINE
TIMELINE
workspace.tsxapi.tstests.ts
src › services › workspace.tsx
1import { routeRequest } from '@/lib/router';
2import { BudgetCap } from '@/lib/budget';
3
4export default async function WorkspaceSession() {
5 const cap = await BudgetCap.for('ws-117');
6 const route = await routeRequest({
7 task: 'checkout-retry-guard',
8 policy: 'auto', // up to 70% savings
9 maxCost: cap.daily,
10 });
11
12 return <Ide route={route} cap={cap} />;
13}
Ln 13, Col 9Spaces: 2UTF-8LFTypeScript React
TERMINAL · feat/checkout-retry
$ pnpm test:ci -- checkout✓ checkout.retry › idempotent on 3DS timeout (184ms)✓ checkout.retry › surfaces issuer decline (96ms)Tests 24 passed · 0 failed · 1.8s$ ruzzler route --policy autoroute: claude-sonnet → gemini-flash for lint passes (saved $0.41)
AssistantReview
Guard the checkout retry so a 3DS timeout can't double-charge.
Added an idempotency key to services/checkout.ts and a retry guard test. Diff touches 2 files, +42/-8.
Run the payments suite on the cheap route.
24/24 passed on gemini-flash. Cost $0.03 vs $0.11 on sonnet — 73% saved.
Ask RuzzCode…
Tests and deployment
96%Pass RatePassed142Failed3Skipped5
checkout.test.ts✓ 241.8s
payments.test.ts✓ 180.9s
session.test.ts✗ 10.7s
Routeauto · sonnet→flashCost today$3.42 / $25.00PolicyUp to 70% savings