{"uid":"cap_Fj7FeRdz5dIJ76l5Rs6_-","slug":"writerslogic-temporal-constraint-solver-fcab9441","name":"WritersLogic Temporal Constraint Solver","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/temporal-constraints?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fixed":{"type":"array","items":{"type":"object","required":["point","at"],"properties":{"at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$","maxLength":36},"point":{"type":"string","maxLength":40}}},"maxItems":40},"origin":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?(Z|z|[+-]\\d{2}:?\\d{2})$","maxLength":36,"description":"Instant that point 'origin' (an implicit extra point) is at; all minutes are relative to it."},"points":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,40}$","maxLength":40},"maxItems":40,"minItems":1},"constraints":{"type":"array","items":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","maxLength":40},"b":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":40},"maxMinutes":{"type":"integer","maximum":10000000,"minimum":-10000000,"description":"b - a <= max"},"minMinutes":{"type":"integer","maximum":10000000,"minimum":-10000000,"description":"b - a >= min"}}},"maxItems":200}}},"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_m6C6YAk6M1qPw6Up25mV0","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":"Solves a simple temporal network of named time points and difference constraints, returning earliest/latest feasible instants or the contradicting constraint cycle if infeasible.","exampleAgentPrompt":"Check if this schedule is feasible: draft starts now (2025-06-01T09:00:00Z as origin), review must happen 1–3 days after draft, filing must happen at least 3 days after review, and filing is fixed on 2025-06-10T09:00:00Z. The points are draft, review, and filing — tell me the earliest and latest each can occur, or which constraints conflict.","exampleUseCases":[{"title":"Legal filing deadline validation","prompt":"I have a legal workflow: draft is the origin at 2025-07-01T09:00:00Z, review must be 1 to 5 days after draft, client approval must be 0 to 2 days after review, and filing is fixed on 2025-07-10T09:00:00Z with filing required at least 2 days after client approval. Can you check if this timeline is consistent and tell me the earliest and latest each step can happen?"},{"title":"Event itinerary feasibility check","prompt":"I'm planning a conference day starting at 2025-09-15T08:00:00Z as origin — registration must be 0 to 30 minutes after origin, keynote must be 60 to 90 minutes after registration, lunch must be 180 to 240 minutes after origin, and the closing panel must be 300 to 360 minutes after origin but at least 60 minutes after lunch. Check if this itinerary works and give me the time window for each event."},{"title":"SLA chain contradiction detection","prompt":"Our SLA says: ticket opened is origin at 2025-08-01T00:00:00Z, triage must happen within 60 to 120 minutes of opening, first response must be within 30 to 60 minutes of triage, resolution must be within 480 to 960 minutes of first response, and resolution is also fixed to happen no more than 240 minutes after opening. Can you detect which of these constraints are contradicting each other and tell me how much slack is impossible?"}],"resultDescription":"If the temporal network is consistent, returns each named point's earliest and latest feasible instant (as absolute datetimes relative to origin), bounded where the constraints allow. If the network is infeasible, returns the specific cycle of constraints that contradict each other along with the total impossible slack in minutes, enabling the caller to identify and fix the conflicting rules.","failureModes":["Infeasible network: returns contradicting constraint cycle and impossible slack instead of time windows","More than 40 named points submitted: request rejected with validation error","More than 200 constraints submitted: request rejected with validation error","Invalid datetime format for origin or fixed points: schema validation error","Referenced point name in a constraint not listed in points array: rejected or undefined behavior","Disjunctive constraints (A before B OR B before A) not expressible: must be pre-processed by caller","Non-integer minute values: schema requires integers, fractional minutes rejected","Payment failure: x402 payment required response if USDC payment not provided"],"whenToPreferThis":"Use this endpoint when you need to check whether a set of named time milestones with min/max interval constraints between them is mutually consistent, and to find valid time windows for each point. Prefer it over calendar APIs when you need pure constraint propagation without business-day or calendar logic (compute those offsets first, then pass integer minutes here). It is the right choice for SLA chains, project dependency graphs, itinerary feasibility, or any scenario where you have 'B must happen between X and Y minutes after A' relationships and want earliest/latest bounds or contradiction detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:49:18.872Z","isFirstParty":false,"canonicalSlug":"writerslogic-temporal-constraint-solver-fcab9441"}