# WritersLogic HTTP Outcome Classifier

> WritersLogic HTTP Outcome Classifier 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-19).

Classifies a single HTTP response (method, status, headers) as success, retry, reconcile, or stop for an AI agent, and extracts the recommended wait time from Retry-After or a vendor-specific delay header.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/http-outcome?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-http-outcome-classifier-e25f01da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M0tySUK7ODIqQNJYtYAXE

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-http-outcome-classifier-e25f01da -d '<json body>'
```

Example prompt: I just got a 429 response from an API call with a Retry-After header — can you classify whether my agent should retry, stop, or reconcile, and tell me exactly how many seconds to wait before the next attempt?

## When to prefer this

Use this endpoint when your AI agent needs to programmatically decide how to handle any HTTP response from an upstream API — especially when vendor-specific rate limiting rules differ from RFC 9110 defaults, or when the retry delay is encoded in a non-standard header format (epoch milliseconds, etc.). Prefer it over hand-coded retry logic when you need a verifiable, auditable witness for the classification decision.

## Known failure modes

- Status code outside 100-599 range causes validation error
- More than 100 headers or 50 vendor rules exceeds limits
- Missing or malformed RFC 3339 asOf timestamp when an HTTP-date or epoch delay header must be resolved to seconds
- No matching vendor rule and no RFC default applies — outcome returned as 'unknown'
- Caller declares a delay header dialect but the specified header is absent from the response

## How this service works

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

## Output

Returns an outcome label (success, retry, reconcile, or stop), the recommended wait in seconds derived from Retry-After or a vendor delay header, and a witness citation explaining which rule (RFC default or caller-supplied vendor rule) determined the outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "string",
   "maxLength": 40,
   "description": "RFC 3339 instant; needed to turn an HTTP-date or epoch delay into seconds."
  },
  "method": {
   "type": "string",
   "maxLength": 32,
   "minLength": 1
  },
  "status": {
   "type": "integer",
   "maximum": 599,
   "minimum": 100
  },
  "headers": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "value"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1
     },
     "value": {
      "type": "string",
      "maxLength": 1000
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "description": "Response headers as name/value pairs (names compared case-insensitively)."
  },
  "delayHeader": {
   "type": "object",
   "required": [
    "name",
    "dialect"
   ],
   "properties": {
    "name": {
     "type": "string",
     "maxLength": 100,
     "minLength": 1
    },
    "dialect": {
     "enum": [
      "retry-after",
      "delay-seconds",
      "delay-milliseconds",
      "epoch-seconds",
      "epoch-milliseconds",
      "http-date"
     ],
     "type": "string"
    }
   },
   "description": "Which header carries the wait and in what dialect. Default is Retry-After under RFC 9110.",
   "additionalProperties": false
  },
  "vendorRules": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "outcome"
    ],
    "properties": {
     "note": {
      "type": "string",
      "maxLength": 300
     },
     "status": {
      "type": "integer",
      "maximum": 599,
      "minimum": 100
     },
     "outcome": {
      "enum": [
       "success",
       "retry",
       "reconcile",
       "stop"
      ],
      "type": "string"
     },
     "statusMax": {
      "type": "integer",
      "maximum": 599,
      "minimum": 100
     },
     "statusMin": {
      "type": "integer",
      "maximum": 599,
      "minimum": 100
     },
     "headerName": {
      "type": "string",
      "maxLength": 100
     },
     "headerEquals": {
      "type": "string",
      "maxLength": 1000
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "description": "First matching rule wins."
  },
  "idempotencyKey": {
   "type": "object",
   "required": [
    "present"
   ],
   "properties": {
    "present": {
     "type": "boolean"
    },
    "serverHonors": {
     "enum": [
      "yes",
      "no",
      "unkno
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-http-outcome-classifier-e25f01da/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)
