agents.writerslogic.com/api/v1/check-state-machine
Exhaustively checks a finite state machine, protocol, or concurrent routine. Accepts a formal spec (no LLM), a plain-language workflow, or source code (translated to a spec by an LLM, with every transition quoted from the source and two independent translations compared). A pure TypeScript explicit-state checker explores all interleavings and returns computed verdicts: safety invariants with the s
POST
https://agents.writerslogic.com/api/v1/check-state-machineUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/check-state-machine", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"spec":{"name":"flag-mutex","vars":{"pc":{"of":{"type":"enum","values":["test","set","crit"]},"init":"test","size":2,"type":"array"},"flag":{"of":{"type":"bool"},"init":false,"size":2,"type":"array"}},"processes":[{"name":"P","fairness":"weak","instances":2,"transitions":[{"name":"test","guard":"pc[self] == test && !flag[1 - self]","updates":[{"at":"self","var":"pc","value":"set"}]},{"name":"set"),
});
console.log(await res.json());Example input
{"spec":{"name":"flag-mutex","vars":{"pc":{"of":{"type":"enum","values":["test","set","crit"]},"init":"test","size":2,"type":"array"},"flag":{"of":{"type":"bool"},"init":false,"size":2,"type":"array"}},"processes":[{"name":"P","fairness":"weak","instances":2,"transitions":[{"name":"test","guard":"pc[self] == test && !flag[1 - self]","updates":[{"at":"self","var":"pc","value":"set"}]},{"name":"set"