Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/requirement-coverage

Evaluates a checklist of requirements the caller defines (each made of needs on evidence keys: present, equals, one of, min/max, maximum age) against evidence the caller supplies, and returns met / unmet / unknown per requirement with the exact need and value that decided it. For an agent that must prove a task's acceptance criteria were covered before it reports done. Does not judge whether the p

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/requirement-coverage

Uptime100% 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/requirement-coverage", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"evidence":[{"key":"test_exit_code","value":0},{"key":"coverage_pct","value":83.5},{"key":"review_approved","value":true}],"requirements":[{"id":"tests-green","needs":[{"key":"test_exit_code","equals":0}]},{"id":"coverage","needs":[{"key":"coverage_pct","min":80}]},{"id":"reviewed","mode":"any","needs":[{"key":"review_approved"},{"key":"review_bot_ok"}]}]}),
});
console.log(await res.json());

Example input

{
  "evidence": [
    {
      "key": "test_exit_code",
      "value": 0
    },
    {
      "key": "coverage_pct",
      "value": 83.5
    },
    {
      "key": "review_approved",
      "value": true
    }
  ],
  "requirements": [
    {
      "id": "tests-green",
      "needs": [
        {
          "key": "test_exit_code",
          "equals": 0
        }
      ]
    },
    {
      "id": "coverage",
      "needs": [
        {
          "key": "coverage_pct",
          "min": 80
        }
      ]
    },
    {
      "id": "reviewed",
      "mode": "any",
      "needs": [
        {
          "key": "review_approved"
        },
        {
          "key": "review_bot_ok"
        }
      ]
    }
  ]
}