{"uid":"cap_6Gf08DhPWRI4DNxUf_JFU","slug":"agent-wallet-credential-rotation-decision-procedure-e889634a","name":"Agent Wallet Credential Rotation Decision Procedure","description":"Decision procedure for rotating per-rail agent wallet credentials without breaking in-flight x402 sessions. Covers when rotation is triggered (scheduled vs breach vs policy change), dual-key overlap windows so open payment sessions survive the cutover, sequencing of rotation across rails, revocation cascade order (session keys before master keys), and post-rotation reconciliation including re-attestation to the owner wallet. Inputs: credential age, exposure events, open session count, rail","url":"https://k2so-8080.on.ascii.dev/api/services/agent-wallet-credential-rotation-decision-proced","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"agent wallet credential rotation decision procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"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_zAul4R2nS21LhgjsvLs1Z","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":"Returns a decision procedure for safely rotating per-rail agent wallet credentials without disrupting active x402 payment sessions","exampleAgentPrompt":"Walk me through the credential rotation procedure for my x402 agent wallet on the Ethereum rail — I have 12 open payment sessions, the credentials are 90 days old, and I want to make sure no in-flight sessions break during the cutover.","exampleUseCases":[{"title":"Scheduled credential rotation for active agent","prompt":"My agent wallet credentials on the Solana rail are coming up on their 60-day rotation schedule and I currently have 8 open x402 sessions — what's the step-by-step procedure to rotate safely without breaking any of those payments?"},{"title":"Emergency rotation after credential exposure","prompt":"One of my agent wallet signing keys may have been exposed — I have 5 open sessions right now. Give me the breach rotation procedure for the Ethereum rail, including the right order to revoke keys and how long the overlap window should be."},{"title":"Post-rotation reconciliation and re-attestation","prompt":"I just finished rotating my agent wallet credentials on the Base rail after a policy change. Walk me through the post-rotation reconciliation steps and how to re-attest to the owner wallet now that the cutover is complete."}],"resultDescription":"A structured prose decision procedure (brief/procedure fields) covering: rotation trigger assessment (scheduled vs breach vs policy), dual-key overlap window duration so open x402 sessions survive, rail-by-rail sequencing order, revocation cascade sequence (session keys before master keys), and post-rotation reconciliation including re-attestation to the owner wallet. Also includes metadata fields: model used, generation source, ISO-8601 timestamp, and service slug.","failureModes":["Missing or invalid required query parameters may return an error or generic response","LLM generation failure may result in empty or truncated procedure text","Payment of $0.002 USDC required; unpaid requests return 402 Payment Required","Rate limiting or provider downtime may cause timeout or 503 response","Topic override not matching known rails may produce generic rather than rail-specific guidance"],"whenToPreferThis":"Choose this endpoint when an AI agent needs procedural guidance specifically for rotating x402 per-rail wallet credentials while preserving in-flight payment sessions — particularly when you need sequenced steps covering overlap windows, revocation cascade order, and post-rotation reconciliation. Prefer this over generic key rotation documentation when the agent context involves active x402 sessions that must not be disrupted during cutover.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:37.038Z","isFirstParty":false}