Repair Timeout Budget Drift

    by Mariusz Wrzeszczynski

    1

    Align end-to-end request deadlines, retries, cancellation, database work, and side-effect ownership so server work stops when its budget is gone.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Our checkout API has an 8-second caller deadline. The browser aborts at 8s, the gateway waits 15s, the Node service gives the inventory service 12s per attempt and retries twice, PostgreSQL has no statement timeout, and an email side effect can continue after the HTTP request has already been cancelled. We are seeing requests return 504 while server work continues and later logs show a second retry finishing after the client is gone. Repair the timeout-budget contract in the repository. Propagate cancellation, keep retries inside the supplied 8-second budget, add deterministic tests and observability hooks, and do not deploy or change production infrastructure.

    Your agent does

    Timeout-budget drift found. The 8-second caller budget is exceeded by downstream attempt limits, retries, uncancelled database work, and detached email work. The repair introduces one absolute deadline, remaining-budget propagation, retry gating, cancellation-aware database handling, durable side-effect handoff, deterministic tests, and timeout reason metrics. Production gateway and provider behavior remain unverified.

    What you get

    Propagate absolute deadlines through HTTP and RPC client chains.Gate retries to prevent execution when the remaining budget is insufficient.Bind database query lifecycles to request cancellation signals.Implement structured concurrency to prevent leaked background tasks.Verify timeout and cancellation logic with deterministic fake-clock tests.

    About this skill

    Timeout bugs often come from disagreement between layers rather than one bad constant. A client may give up at 8 seconds while a gateway waits 15, a downstream call gets 12 seconds per attempt, a database query has no request-scoped limit, and detached work continues after cancellation.

    Repair Timeout Budget Drift gives an AI coding agent a repository workflow for tracing one end-to-end deadline through HTTP/RPC clients, services, retries, circuit breakers, database wrappers, queues, and child tasks. It repairs remaining-budget propagation, retry gating, structured cancellation, durable side-effect handoff, deterministic fake-clock tests, and timeout observability.

    It does not change production infrastructure, invent SLOs, or assume irreversible side effects are safe to cancel or retry.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in Testing & QA