{"uid":"cap_Ew2sCT35f3Ue7KRQbqPiw","slug":"resource-cycle-guard-ff108104","name":"Resource Cycle Guard","description":"Stop repeated execution nodes and step overruns","url":"https://phion.systems/v1/paid/trust/resource-cycle-guard","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema"},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uFemOdjJgiWlZwUu7S4qO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and stops repeated execution cycles and step count overruns in AI agent workflows","exampleAgentPrompt":"Before running the next step in my pipeline, check whether this execution node has already been visited and whether the step count has exceeded the allowed limit — block it if either condition is true.","exampleUseCases":[{"title":"Infinite loop prevention in agent pipeline","prompt":"My AI agent keeps calling the same tool repeatedly and I think it's stuck in a loop — can you check whether this execution node is being repeated and stop it if so?"},{"title":"Step budget enforcement for autonomous tasks","prompt":"I'm running a multi-step research agent and want to make sure it doesn't go over 50 steps total — flag and block execution if the step count is exceeded."},{"title":"Cycle detection before expensive tool call","prompt":"Before my agent calls this external API again, verify that it hasn't already visited this node in the current run to avoid duplicate charges and looping."}],"resultDescription":"Returns a guard decision indicating whether the current execution node constitutes a repeated cycle or a step overrun, along with the observed step count and cycle status, allowing the calling agent to halt or redirect execution accordingly.","failureModes":["Missing or malformed execution context results in inability to assess cycle state","No prior execution history provided makes cycle detection impossible","Step count not supplied prevents overrun detection","Ambiguous node identifiers cause false negatives on cycle detection"],"whenToPreferThis":"Use this endpoint when an AI agent or workflow orchestrator needs to detect infinite loops or step count violations before proceeding with the next execution node — especially in agentic pipelines where repeated tool calls could waste budget, trigger duplicate side effects, or cause runaway execution. Particularly valuable as a pre-flight check in multi-step autonomous agents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:02.825Z","isFirstParty":false}