{"uid":"cap_5b8fkO9qb4RFRX_s8BXuE","slug":"task-lease-guard-6ac79ee0","name":"Task Lease Guard","description":"Verify active task lease ownership before execution or mutation","url":"https://phion.systems/v1/paid/trust/task-lease-guard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["body"],"properties":{"body":{"type":"object","additionalProperties":true}}},"output":{"type":"object","required":["example"],"properties":{"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"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_Ar--FgHnNgP9Uf_XPVxQe","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":"Verifies that an agent holds an active, valid lease on a task before allowing execution or mutation to proceed","exampleAgentPrompt":"Before I start executing this task mutation, check that I still hold an active lease on task ID 'task-8841' and that no other agent has taken over ownership.","exampleUseCases":[{"title":"Pre-execution lease check in pipeline","prompt":"I'm about to process and write results for task 'job-2291' — can you first verify that my agent still holds a valid active lease on it before I commit anything?"},{"title":"Guard against concurrent agent takeover","prompt":"Two agents might be racing on task 'proc-5530' — verify that our lease is still exclusively owned and hasn't been claimed by another agent before we proceed."},{"title":"Validate lease before long-running mutation","prompt":"Before my agent kicks off this 10-minute data transformation on task 'etl-batch-77', confirm that our task lease is still active and hasn't expired so we don't waste compute on a stale lock."}],"resultDescription":"Returns a structured response indicating whether the calling agent holds a valid, active lease on the specified task — including ownership confirmation, lease expiry details, and an authorization decision on whether execution or mutation should proceed.","failureModes":["Lease has expired — returns invalid/expired status preventing execution","Agent identity does not match the recorded lease owner — returns ownership mismatch","Task ID not found or lease never issued — returns unknown task error","Malformed or missing lease token in the request — returns validation error","Network or service timeout — returns no authorization decision, caller should retry"],"whenToPreferThis":"Use this endpoint when an agentic workflow needs to confirm exclusive task ownership before executing or mutating task state — particularly in multi-agent environments where lease races, expiry, or takeovers are possible. Prefer this over ad-hoc checks when you need a cryptographically grounded, signed authorization decision that can be logged or audited, rather than a soft in-memory lock check.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:39:18.300Z","isFirstParty":false,"canonicalSlug":"task-lease-guard-6ac79ee0"}