{"uid":"cap_TSQyV7CKH2hBldhKdRf-2","slug":"agent-result-freshness-check-05f785e6","name":"Agent Result Freshness Check","description":"Agent Result Freshness Check: Agent Result Freshness Check checks result observation age against a caller freshness budget from bounded caller-supplied values without an external provider. Call Agent Result Freshness Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Result Freshness Check as v…","url":"https://api.delx.ai/api/v1/x402/agent-result-freshness-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."},"observed_at_epoch":{"type":"integer","description":"Observed At Epoch supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."},"maximum_age_seconds":{"type":"integer","description":"Maximum Age Seconds supplied to Agent Result Freshness Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"fresh":true,"age_seconds":60},"schema":"delx/util-agent-result-freshness-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"988059b2da4170c5bfc7e047394f4e4a26cb307ee840337c2c752ffa3e5af0e3","external_calls":0},"operation":"delivery_contract:agent_result_freshness_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R1AN9K6I6TacCuktXgAah","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether an agent-delivered result is within an acceptable age window by comparing observation timestamp against current time and a caller-supplied maximum age budget.","exampleAgentPrompt":"Before I accept and pay for this agent result, check if it's still fresh — the result was observed at epoch 1718000000, current time is epoch 1718000250, and my maximum allowed age is 300 seconds.","exampleUseCases":[{"title":"Gate x402 payment on result freshness","prompt":"I'm about to pay for an x402 agent delivery — the result was observed at epoch 1718005000, it's now epoch 1718005400, and I'll only accept results up to 600 seconds old. Check if it passes the freshness budget before I authorize payment."},{"title":"Reject stale data before pipeline continues","prompt":"Before my pipeline processes this result, verify it's not too old — observation timestamp is epoch 1718010000, current epoch is 1718010900, and the maximum age I allow is 500 seconds. Tell me if I should accept or reject it."},{"title":"Preflight freshness check for agent orchestration","prompt":"My orchestrator needs to confirm this agent output is fresh enough to use — observed_at is epoch 1718020100, now is epoch 1718020200, and I require results to be no older than 120 seconds. Does it pass?"}],"resultDescription":"Returns a structured response containing an explicit acceptance or rejection status, contract-specific check results, normalized evidence of the age calculation, and mismatch reasons if the result falls outside the freshness budget. All computation is performed in-memory without data retention.","failureModes":["Missing required fields (now_epoch, observed_at_epoch, maximum_age_seconds) result in validation errors","Negative or zero maximum_age_seconds may produce undefined or always-reject behavior","now_epoch earlier than observed_at_epoch (clock skew or bad input) may yield rejection with mismatch reason","Non-integer epoch values cause schema validation failure","Payment failure via x402 protocol blocks the call"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless, in-memory freshness gate before accepting or paying for an agent-delivered result — especially in x402 payment flows where stale results should be rejected before funds are committed. Prefer this over custom logic when you need normalized evidence and explicit accept/reject status without external dependencies or data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:15:45.995Z","isFirstParty":false}