# WritersLogic Temporal Constraint Solver

> WritersLogic Temporal Constraint Solver 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).

Solves a simple temporal network of named time points and difference constraints, returning earliest/latest feasible instants or the contradicting constraint cycle if infeasible.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/temporal-constraints?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-temporal-constraint-solver-fcab9441
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fj7FeRdz5dIJ76l5Rs6_-

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-temporal-constraint-solver-fcab9441 -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-temporal-constraint-solver-fcab9441/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)
