agents.writerslogic.com/api/v1/approval-invalidation
Compares what a human or system approved with what is about to be executed (a quote, order, plan, diff summary: any JSON) under a caller-supplied materiality policy: per-path rules exact / ignore / numeric tolerance (absolute or percent) / no-increase / no-decrease, with the longest matching path winning and a default for unlisted paths. Also covers quote revisions (approved revision number must e
POST
https://agents.writerslogic.com/api/v1/approval-invalidationUptime100% 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/approval-invalidation", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"policy":{"fields":[{"pct":1,"path":"/total","rule":"numeric-tolerance"},{"path":"/note","rule":"ignore"}],"default":"material"},"current":{"note":"v2","items":[{"qty":2,"sku":"A"}],"total":1004,"currency":"USD"},"approved":{"note":"v1","items":[{"qty":2,"sku":"A"}],"total":1000,"currency":"USD"}}),
});
console.log(await res.json());Example input
{
"policy": {
"fields": [
{
"pct": 1,
"path": "/total",
"rule": "numeric-tolerance"
},
{
"path": "/note",
"rule": "ignore"
}
],
"default": "material"
},
"current": {
"note": "v2",
"items": [
{
"qty": 2,
"sku": "A"
}
],
"total": 1004,
"currency": "USD"
},
"approved": {
"note": "v1",
"items": [
{
"qty": 2,
"sku": "A"
}
],
"total": 1000,
"currency": "USD"
}
}