{"uid":"cap_e7ObKu97TxzesEoIko7Jn","slug":"agent-action-safety-loop-1a1447be","name":"Agent Action Safety Loop","description":"Single-entrypoint safety workflow for consequential agent actions. Runs the complete DestructGuard evidence score, conditionally creates ReviewQueue triage for high or critical risk, returns an honest allow or needs_review decision, a signed receipt, and a free 30-day status record. Human approval itself requires a connected approval system or hosted Assurance plan.","url":"https://hermesplant.com/api/agent-services/action-safety/run","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"cwd":{"type":"string"},"repo":{"type":"string"},"actor":{"type":"string"},"branch":{"type":"string"},"commit":{"type":"string"},"intent":{"type":"string"},"target":{"type":"string"},"command":{"type":"string","description":"Exact shell, SQL, Git, deploy, cloud, MCP, wallet, or x402 action to ..."},"diffHash":{"type":"string"},"diffStat":{"type":"string"},"environment":{"type":"string"},"failClosedOnUnmatched":{"type":"boolean","description":"When true, an unmatched consequential action routes to review."}}},"responseSchema":{"type":"json","example":{"risk":"high","status":"review_required","allowed":false,"service":"agent-action-safety-loop","decision":"needs_review","statusUrl":"https://hermesplant.com/api/agent-workflows/action-safety/status/asw_<uuid>","workflowId":"asw_<uuid>","requiresHumanReview":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xkG45euBYKgU5Wifh329l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a deterministic safety gate before consequential shell, Git, SQL, infrastructure, deploy, x402, and MCP actions, returning a risk assessment and human-review decision with machine-readable evidence receipts.","exampleAgentPrompt":"Before I run this shell command `rm -rf /var/data/prod` on the production server, run it through the safety loop and tell me if it's allowed or needs human review — flag it as a high-risk destructive infrastructure action.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a risk level (e.g. 'high'), a decision status ('review_required' or 'allowed'), a boolean allowed flag, a workflowId, a statusUrl for polling the review, and a requiresHumanReview flag. Provides machine-readable evidence and receipts for auditing.","failureModes":["Invalid or malformed action payload returns a 400 error","Unrecognized action type may result in default high-risk classification","Payment failure (insufficient USDC) blocks the request","Timeout if human review queue is backlogged","Missing required context fields may cause indeterminate risk scoring"],"whenToPreferThis":"Choose this endpoint when an AI agent is about to execute a consequential, hard-to-reverse action — such as shell commands, git operations, SQL mutations, infrastructure changes, deploys, x402 payments, or MCP tool calls — and you need a deterministic safety gate with evidence preservation and optional human-in-the-loop review before proceeding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:27.257Z","isFirstParty":false}