{
  "format": "delx/discovery-pack/v1",
  "id": "handle-agent-incidents",
  "title": "Handle agent incidents and recovery",
  "description": "A controller path from session summary and incident brief to RCA, fleet context and a recovery plan—paid only when the report is delivered.",
  "audience": "Agent controllers and platform operators",
  "query": "brief diagnose and recover a failing agent session",
  "keywords": [
    "agent incident response",
    "agent recovery plan",
    "controller brief",
    "fleet summary",
    "session RCA",
    "x402 agent ops"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/packs/handle-agent-incidents",
  "machine_url": "https://commerce.delx.ai/packs/handle-agent-incidents.json",
  "entrypoints": {
    "human": "https://commerce.delx.ai/?q=brief%20diagnose%20and%20recover%20a%20failing%20agent%20session",
    "intent_search": "https://api.delx.ai/api/v1/x402/start?q=brief%20diagnose%20and%20recover%20a%20failing%20agent%20session",
    "graph": "https://commerce.delx.ai/discovery.json"
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "discovery-pack-handle-agent-incidents"
  },
  "products": [
    {
      "tool_name": "create_await",
      "service_name": "Delx Await Promise",
      "category": "agent-ops",
      "price_usdc": "0.01",
      "method": "POST",
      "route": "/api/v1/x402/await",
      "product_url": "https://commerce.delx.ai/products/create-await",
      "intent_url": "https://commerce.delx.ai/intents/pause-resume-agent-workflow",
      "machine_url": "https://commerce.delx.ai/intents/pause-resume-agent-workflow.json",
      "example_input": {
        "idempotency_key": "build-42-await",
        "ttl_ms": 3600000,
        "condition": {
          "kind": "webhook",
          "event_type": "build.completed"
        },
        "resume_envelope": "ciphertext:v1:client-owned-opaque-envelope",
        "delivery": {
          "mode": "claim"
        }
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/await -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.01 -b '{\"idempotency_key\":\"build-42-await\",\"ttl_ms\":3600000,\"condition\":{\"kind\":\"webhook\",\"event_type\":\"build.completed\"},\"resume_envelope\":\"ciphertext:v1:client-owned-opaque-envelope\",\"delivery\":{\"mode\":\"claim\"}}'"
    },
    {
      "tool_name": "get_session_summary",
      "service_name": "Delx Get Session Summary",
      "category": "agent-ops",
      "price_usdc": "0.01",
      "method": "POST",
      "route": "/api/v1/premium/session-summary",
      "product_url": "https://commerce.delx.ai/products/get-session-summary",
      "intent_url": "https://commerce.delx.ai/intents/agent-session-summary-api",
      "machine_url": "https://commerce.delx.ai/intents/agent-session-summary-api.json",
      "example_input": {
        "session_id": "123e4567-e89b-12d3-a456-426614174000"
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/session-summary -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.01 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\"}'"
    },
    {
      "tool_name": "generate_controller_brief",
      "service_name": "Delx Generate Controller Brief",
      "category": "agent-ops",
      "price_usdc": "0.01",
      "method": "POST",
      "route": "/api/v1/premium/controller-brief",
      "product_url": "https://commerce.delx.ai/products/generate-controller-brief",
      "intent_url": "https://commerce.delx.ai/intents/agent-controller-brief-api",
      "machine_url": "https://commerce.delx.ai/intents/agent-controller-brief-api.json",
      "example_input": {
        "session_id": "123e4567-e89b-12d3-a456-426614174000"
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/controller-brief -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.01 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\"}'"
    },
    {
      "tool_name": "generate_incident_rca",
      "service_name": "Delx Generate Incident Rca",
      "category": "agent-ops",
      "price_usdc": "0.05",
      "method": "POST",
      "route": "/api/v1/premium/incident-rca",
      "product_url": "https://commerce.delx.ai/products/generate-incident-rca",
      "intent_url": "https://commerce.delx.ai/intents/agent-incident-rca-api",
      "machine_url": "https://commerce.delx.ai/intents/agent-incident-rca-api.json",
      "example_input": {
        "session_id": "123e4567-e89b-12d3-a456-426614174000",
        "incident_summary": "429 retry storm after deploy",
        "focus": "routing"
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/incident-rca -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.05 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"incident_summary\":\"429 retry storm after deploy\",\"focus\":\"routing\"}'"
    },
    {
      "tool_name": "generate_fleet_summary",
      "service_name": "Delx Generate Fleet Summary",
      "category": "agent-ops",
      "price_usdc": "0.05",
      "method": "POST",
      "route": "/api/v1/premium/fleet-summary",
      "product_url": "https://commerce.delx.ai/products/generate-fleet-summary",
      "intent_url": "https://commerce.delx.ai/intents/agent-fleet-summary-api",
      "machine_url": "https://commerce.delx.ai/intents/agent-fleet-summary-api.json",
      "example_input": {
        "controller_id": "openclaw-main",
        "days": 7,
        "focus": "active risk"
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/fleet-summary -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.05 -b '{\"controller_id\":\"openclaw-main\",\"days\":7,\"focus\":\"active risk\"}'"
    },
    {
      "tool_name": "get_recovery_action_plan",
      "service_name": "Delx Get Recovery Action Plan",
      "category": "agent-ops",
      "price_usdc": "0.01",
      "method": "POST",
      "route": "/api/v1/premium/recovery-action-plan",
      "product_url": "https://commerce.delx.ai/products/get-recovery-action-plan",
      "intent_url": "https://commerce.delx.ai/intents/agent-recovery-plan-api",
      "machine_url": "https://commerce.delx.ai/intents/agent-recovery-plan-api.json",
      "example_input": {
        "session_id": "123e4567-e89b-12d3-a456-426614174000",
        "incident_summary": "5xx spike after deploy",
        "urgency": "high"
      },
      "agentcash_buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/recovery-action-plan -m POST -H 'x-delx-source: discovery-pack-handle-agent-incidents' --max-amount 0.01 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"incident_summary\":\"5xx spike after deploy\",\"urgency\":\"high\"}'"
    }
  ]
}
