{"uid":"cap_GOTNc5SSV_RRAoNF_VQag","slug":"writerslogic-deadline-feasibility-critical-path-analyzer-07d164a1","name":"WritersLogic Deadline Feasibility – Critical Path Analyzer","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/deadline-feasibility?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","required":["id","expectedMs","worstMs"],"properties":{"id":{"type":"string","maxLength":200,"minLength":1},"after":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":20,"description":"Step ids that must finish first."},"retries":{"type":"integer","maximum":10,"minimum":0,"description":"Retries after a failed attempt; the worst case runs them all."},"worstMs":{"type":"integer","maximum":86400000,"minimum":0,"description":"Worst-case duration of one attempt. Must be at least expectedMs."},"backoffMs":{"type":"integer","maximum":3600000,"minimum":0,"description":"Wait before each retry (constant)."},"expectedMs":{"type":"integer","maximum":86400000,"minimum":0}},"additionalProperties":false},"maxItems":100,"minItems":1},"overheadMs":{"type":"integer","maximum":3600000,"minimum":0,"description":"Fixed time to reserve for settlement, serialization, etc."},"remainingMs":{"type":"integer","maximum":604800000,"minimum":0,"description":"Time left to the hard deadline, measured by the caller."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QbIAF8ziPdRyGSUOJQzoW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the critical path and deadline feasibility verdict (pass/unknown/fail) for a set of dependent steps with expected and worst-case durations, retries, and backoff, given a remaining time budget.","exampleAgentPrompt":"I have 5 workflow steps: 'fetch' takes 200ms expected / 500ms worst, 'parse' depends on fetch and takes 100ms / 300ms worst, 'enrich-a' and 'enrich-b' both depend on parse and take 400ms / 800ms worst each with 2 retries and 100ms backoff, and 'publish' depends on both enrich steps and takes 150ms / 250ms worst. I have 3500ms remaining and 50ms overhead — can this pipeline finish in time and what's the critical path?","exampleUseCases":[{"title":"Agent pipeline deadline check","prompt":"My agent pipeline has 4 steps: 'ingest' (300ms expected, 700ms worst), 'transform' depends on ingest (500ms / 1200ms worst, 3 retries, 200ms backoff), 'validate' depends on transform (200ms / 400ms worst), and 'deliver' depends on validate (100ms / 200ms worst). I have 4000ms left and 100ms overhead — will it finish in time and which steps are on the critical path?"},{"title":"Parallel data processing feasibility","prompt":"I'm running a data job with parallel branches: 'extract-A' and 'extract-B' both start immediately at 600ms/1000ms worst, then 'merge' depends on both at 300ms/600ms worst, then 'report' depends on merge at 150ms/300ms worst. Total deadline is 2500ms remaining with no overhead — does it fit in the best and worst cases?"},{"title":"Retry-heavy workflow risk assessment","prompt":"I have a scraping workflow: 'login' (200ms/500ms worst, 2 retries, 150ms backoff), 'scrape' depends on login (800ms/2000ms worst, 3 retries, 300ms backoff), 'store' depends on scrape (100ms/200ms worst). With 6000ms remaining, tell me if the worst-case scenario still makes the deadline and what the slack is."}],"resultDescription":"Returns a verdict of 'pass' (worst-case fits), 'unknown' (only expected case fits), or 'fail' (even expected case does not fit), along with the slack in milliseconds, the list of critical-path step IDs for both expected and worst-case scenarios, and the total expected and worst-case durations of the critical path.","failureModes":["Invalid step ID references in 'after' dependencies (cycle or unknown ID) causing a 400 error","worstMs less than expectedMs for any step causing a validation error","Steps array empty or exceeding 100 items","remainingMs exceeding 604800000ms (1 week) limit","backoffMs or overheadMs exceeding their respective maximums","Circular dependency graph causing computation failure"],"whenToPreferThis":"Use this endpoint when you need a pure-computation, clock-free feasibility check for a DAG of tasks with known duration estimates, retries, and a fixed remaining time budget. It is ideal for AI agent orchestration, CI/CD pipeline planning, or any workflow where you want to know upfront whether the schedule is guaranteed, likely, or infeasible — and which steps are the bottleneck. Prefer it over real-time schedulers when you have your own timing measurements and just need critical-path math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:36:59.796Z","isFirstParty":false,"canonicalSlug":"writerslogic-deadline-feasibility-critical-path-analyzer-07d164a1"}