# WritersLogic Workflow Transition Validator

> WritersLogic Workflow Transition Validator 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).

Validates whether a requested state machine transition is allowed given current state, defined transitions, required facts, and terminal states, without storing any workflow state.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/workflow-transition?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-workflow-transition-validator-a4ef0835
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Wci3XWouJo1-rE0aDnTdL

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-workflow-transition-validator-a4ef0835 -d '<json body>'
```

Example prompt: Before I move this support ticket from 'in-review' to 'approved', check if the transition is allowed — the workflow has transitions from 'in-review' to 'approved' (event: 'approve', requires facts: 'manager_signed' and 'budget_cleared'), and right now 'manager_signed' is true but 'budget_cleared' is false.

## When to prefer this

Use this endpoint when an AI agent needs to enforce workflow rules before executing a state change — particularly for orders, tickets, deployments, or approvals — and you want stateless, deterministic validation of your own workflow definition. Prefer this over hard-coding transition logic in agent code, or when you need to surface blocking conditions and available alternatives in a structured way. It is especially valuable when workflows have conditional transitions (required facts) that must all be true before proceeding.

## Known failure modes

- Transition denied because one or more required facts are false or not provided
- Ambiguity error when a single event name leads to multiple target states — not resolved automatically
- Current state not found in any transition's 'from' field — returns no available transitions
- Terminal state declared — all transitions blocked regardless of facts
- Malformed input (missing required fields like 'current' or 'transitions') causes validation error
- Request specifies both 'event' and 'to' that are inconsistent with each other

## How this service works

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

## Output

Returns whether the requested transition is permitted, identifies which required facts are false or unknown (blocking the transition), lists all valid transitions available from the current state, and flags any ambiguity when a single event name maps to multiple possible target states. Terminal states are enforced as having no outgoing transitions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "facts": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "value"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "value": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "current": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1
  },
  "request": {
   "type": "object",
   "properties": {
    "to": {
     "type": "string",
     "maxLength": 200,
     "minLength": 1
    },
    "event": {
     "type": "string",
     "maxLength": 200,
     "minLength": 1
    }
   },
   "description": "Give event, to, or both.",
   "additionalProperties": false
  },
  "terminal": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 200,
    "minLength": 1
   },
   "maxItems": 100,
   "description": "States with no outgoing transitions allowed even if listed."
  },
  "transitions": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "from",
     "to"
    ],
    "properties": {
     "to": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "from": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "event": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "requires": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 200,
       "minLength": 1
      },
      "maxItems": 20,
      "description": "Names of facts that must be true."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 300,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-workflow-transition-validator-a4ef0835/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)
