{"uid":"cap_d4hMgMrmQ9AfdwiJC1MFN","slug":"bounty-engineer-agent-state-fabric-8097a9ca","name":"Bounty Engineer Agent State Fabric","description":"Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.","url":"https://bounty-engineer-x402-prod.onrender.com/v1/agent-state?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["get","put","delete","counter_add","compare_and_set","lock_acquire","lock_release"],"type":"string"},"key":{"type":"string"},"delta":{"type":"number"},"value":{},"expected":{},"ttl_seconds":{"type":"integer","minimum":30},"namespace_key":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"op":"counter_add","key":"workflow-step","mode":"agent_state_fabric","value":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pW5ZRbF7OwiHlPueoh_Uk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides persistent key-value state storage for autonomous agents, supporting get/put/delete, atomic counters, compare-and-set, and distributed locking operations.","exampleAgentPrompt":"Store the current workflow step as 'step-3' under the key 'workflow-step' in my agent state, with a TTL of 300 seconds, so I can resume from this point if interrupted.","exampleUseCases":[{"title":"Multi-step workflow checkpoint","prompt":"Save a checkpoint in my agent state with key 'data-pipeline-stage' and value 'transform-complete' so the pipeline can resume from where it left off if it crashes — set it to expire in 600 seconds."},{"title":"Shared counter across agent instances","prompt":"Increment the counter at key 'jobs-processed' by 1 in the agent state fabric so all my parallel agent workers can track how many jobs have been completed across the whole fleet."},{"title":"Distributed lock for critical section","prompt":"Acquire a distributed lock on the key 'db-write-lock' in the agent state system with a 60-second TTL so my agent can safely write to the database without racing against another agent instance."}],"resultDescription":"Returns a JSON object with an 'ok' boolean confirming success, the operation name ('op'), the state key, the current value after the operation, and a 'mode' field confirming 'agent_state_fabric'. For counter operations, returns the new numeric value. For locks, confirms acquisition or release.","failureModes":["Key not found on get/delete returns ok:false or null value","Compare-and-set fails if expected value does not match current value","Lock acquisition fails if lock is already held by another agent","TTL below 30 seconds is rejected with a validation error","Missing required 'op' or 'key' fields return a 400-level error","Service unavailability on Render cold start may cause latency spikes"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs lightweight, fast, pay-per-use persistent state without provisioning a full database — especially useful for workflow checkpointing, distributed locking, atomic counters, and inter-agent coordination in x402-native agent pipelines. Prefer over full databases when state is ephemeral, TTL-bounded, and cost-per-call billing via USDC micropayments is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:50:23.028Z","isFirstParty":false,"canonicalSlug":"bounty-engineer-agent-state-fabric-8097a9ca"}