{"uid":"cap_L9TJSkbdaTg_tnlfXv7m0","slug":"writerslogic-requirement-coverage-evaluator-9c55d479","name":"WritersLogic Requirement Coverage Evaluator","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/requirement-coverage?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2}))?$","maxLength":40,"description":"Reference instant (ISO date or instant) for evidence age; required only when a need sets maxAgeDays. The check never reads the clock."},"evidence":{"type":"array","items":{"type":"object","required":["key"],"properties":{"key":{"type":"string","maxLength":100},"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2}))?$","maxLength":40,"description":"When this was observed (ISO date or instant)."},"value":{"description":"Observed JSON value. Omitted means the fact is present with no value; false or null means observed absent."},"source":{"type":"string","maxLength":200}},"additionalProperties":false},"maxItems":500,"description":"Observed facts. Several items may share a key (conflicts surface as unknown)."},"requirements":{"type":"array","items":{"type":"object","required":["id","needs"],"properties":{"id":{"type":"string","maxLength":100},"mode":{"enum":["all","any","atLeast"],"type":"string","description":"How the needs combine. Default all; with forbid:true the default is any (the requirement is unmet as soon as one listed need applies), and all means only the conjunction is prohibited."},"text":{"type":"string","maxLength":500,"description":"Free text echoed in witnesses."},"needs":{"type":"array","items":{"type":"object","required":["key"],"properties":{"key":{"type":"string","maxLength":100,"description":"Evidence key this need reads."},"max":{"anyOf":[{"type":"number"},{"type":"string","maxLength":40}],"description":"Inclusive upper bound, same comparison rules as min."},"min":{"anyOf":[{"type":"number"},{"type":"string","maxLength":40}],"description":"Inclusive lower bound. Numbers compare numerically; two dotted-digit strings (1.10.2) compare segment by segment."},"oneOf":{"type":"array","items":{"description":"Allowed JSON value."},"maxItems":50,"description":"The evidence value must equal one of these."},"equals":{"description":"The evidence value must equal this JSON value (deep equality)."},"maxAgeDays":{"type":"number","maximum":36500,"minimum":0,"description":"Evidence must be dated (asOf on the evidence item) and at most this many days before the request asOf."}},"additionalProperties":false},"maxItems":20,"minItems":1},"forbid":{"type":"boolean","description":"The needs describe a prohibited condition; the requirement holds only when they are all shown not to apply."},"atLeast":{"type":"integer","maximum":20,"minimum":1,"description":"With mode atLeast: how many needs must hold."},"optional":{"type":"boolean","description":"Reported, never changes the status."}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"The checklist."}}},"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_UdCLJsnPqPYU_WNBzfwG-","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":"Evaluates caller-defined requirements (each composed of needs on evidence keys with constraints like present/equals/oneOf/min/max/maxAge) against caller-supplied evidence, returning met/unmet/unknown per requirement with the deciding need and value.","exampleAgentPrompt":"Before I mark this task as done, check whether all my acceptance criteria are covered: requirement 'tests-pass' needs evidence key 'ci.result' equal to 'green', requirement 'coverage-threshold' needs 'coverage.pct' at least 80, and requirement 'review-approved' needs 'review.status' present — here's my evidence array collected as of 2024-06-10T15:00:00Z.","exampleUseCases":[{"title":"Pre-completion acceptance gate for AI task","prompt":"Before my research agent reports done, verify these three acceptance criteria against the evidence it collected: 'sources-found' needs evidence key 'sources.count' min 5, 'no-fabrication' needs 'hallucination.flag' equal to false, and 'recency' needs 'latest.date' maxAgeDays 30 — evidence asOf is 2024-06-12T10:00:00Z."},{"title":"CI/CD pipeline quality gate","prompt":"Check my deployment checklist: 'tests-green' requires evidence key 'ci.status' equals 'passed', 'coverage-met' requires 'coverage.pct' min 90, and 'security-scan-clean' requires 'scan.criticals' max 0 — here's the evidence from today's pipeline run as of 2024-06-12T08:30:00Z."},{"title":"Regulatory compliance evidence audit","prompt":"Evaluate whether these compliance requirements are satisfied: 'data-encrypted' needs evidence key 'encryption.enabled' equal to true, 'audit-log-fresh' needs 'audit.lastExport' maxAgeDays 7, and 'access-review-done' needs 'access.reviewStatus' oneOf ['approved','completed'] — evidence observed as of 2024-06-11."}],"resultDescription":"For each requirement: a status of met, unmet, or unknown; the specific need (key, constraint type, expected value) that decided the outcome; and the actual observed value from the evidence. Unknown is returned when evidence is missing, stale, or conflicting — it is never treated as passing.","failureModes":["Conflicting evidence items for the same key return unknown rather than pass or fail","Missing evidence key causes the requirement to be unknown, not unmet","Stale evidence (exceeding maxAgeDays relative to asOf) returns unknown — asOf must be supplied when any need uses maxAgeDays","Malformed ISO date in asOf or evidence.asOf fields causes a validation error","More than 500 evidence items triggers a schema error","Requirement id or evidence key exceeding character limits causes rejection","Mode misconfiguration (e.g. forbid with all vs any) may produce unexpected unmet/met logic"],"whenToPreferThis":"Use this endpoint when an AI agent needs to formally prove that a set of acceptance criteria were satisfied before reporting a task complete, rather than doing ad-hoc checks in code. Prefer it over custom validation logic when you need a structured, auditable record of which need decided each requirement's outcome, or when evidence may be missing or stale and you need explicit unknown classification rather than silent pass-through. It is not a policy engine (use the sibling policy-eval endpoint for JsonLogic rules), not a test runner (use the acceptance-tests endpoint for assertion-style tests), and does not fetch or judge evidence — it only evaluates what you supply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:45:00.920Z","isFirstParty":false,"canonicalSlug":"writerslogic-requirement-coverage-evaluator-9c55d479"}