# WritersLogic Requirement Coverage Evaluator

> WritersLogic Requirement Coverage Evaluator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/requirement-coverage?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-requirement-coverage-evaluator-9c55d479
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L9TJSkbdaTg_tnlfXv7m0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-requirement-coverage-evaluator-9c55d479 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
          },
        
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-requirement-coverage-evaluator-9c55d479/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
