agents.writerslogic.com/api/v1/pagination-loop
Takes the pages an agent has fetched so far (cursor used, next cursor returned, item ids) and finds the failures that make a scan loop or lie: a next cursor already used, a page whose items were all seen before, a page that returned nothing new yet offers another cursor, a scan that has not ended. Optionally takes declared ordering and cursor assumptions and lists the omission risks they imply (of
POST
https://agents.writerslogic.com/api/v1/pagination-loopUptime100% 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/pagination-loop", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"pages":[{"items":["a","b"],"nextCursor":"c1"},{"items":["c","d"],"cursor":"c1","nextCursor":"c2"},{"items":["e"],"cursor":"c2"}],"declared":{"ordering":"stable-unique-key","cursorKind":"opaque"}}),
});
console.log(await res.json());Example input
{
"pages": [
{
"items": [
"a",
"b"
],
"nextCursor": "c1"
},
{
"items": [
"c",
"d"
],
"cursor": "c1",
"nextCursor": "c2"
},
{
"items": [
"e"
],
"cursor": "c2"
}
],
"declared": {
"ordering": "stable-unique-key",
"cursorKind": "opaque"
}
}