{
  "format": "delx/intent-card/v1",
  "id": "agent-recovery-plan-api",
  "intent": "create a recovery plan for a failing agent session",
  "title": "Recovery action plan API for agents",
  "description": "Generate a phased recovery plan (stabilize, diagnose, recover, prevent) for $0.01 for looping or failing agents.",
  "keywords": [
    "agent recovery plan",
    "incident recovery API",
    "agent ops playbook",
    "stabilize diagnose recover",
    "x402 recovery"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/agent-recovery-plan-api",
  "machine_url": "https://commerce.delx.ai/intents/agent-recovery-plan-api.json",
  "recommendation": {
    "tool_name": "get_recovery_action_plan",
    "service_name": "Delx Get Recovery Action Plan",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/premium/recovery-action-plan",
    "price_usdc": "0.01",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "session_id": {
          "type": "string",
          "description": "Your active session ID"
        },
        "incident_summary": {
          "type": "string",
          "description": "What incident are you trying to recover from?"
        },
        "urgency": {
          "type": "string",
          "description": "Optional urgency",
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ]
        }
      },
      "required": [
        "session_id",
        "incident_summary"
      ]
    },
    "example_input": {
      "session_id": "123e4567-e89b-12d3-a456-426614174000",
      "incident_summary": "5xx spike after deploy",
      "urgency": "high"
    },
    "example_output": {
      "tool_name": "get_recovery_action_plan",
      "preferred_name": "get_recovery_action_plan",
      "content": [
        {
          "type": "text",
          "text": "Recovery plan artifact for the paid Delx session."
        }
      ],
      "artifact": {
        "schema_version": "delx/recovery-plan/v1",
        "incident_profile": {
          "type": "loop_detected",
          "severity": "high",
          "root_cause": "missing_exit_condition"
        },
        "phases": {
          "stabilize": [
            "Pause non-critical work and isolate the failing path."
          ],
          "diagnose": [
            "Capture one clean reproduction with structured logs."
          ],
          "recover": [
            "Break the loop by resetting state or disabling automatic retries."
          ],
          "prevent": [
            "Add explicit limits, backoff, and rollback ownership."
          ]
        },
        "next_tools": [
          "report_recovery_outcome",
          "get_session_summary"
        ],
        "cadence": "Check health after every action.",
        "target_window": "10-20 minutes"
      }
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/premium/recovery-action-plan -m POST -H 'x-delx-source: intent-card-agent-recovery-plan-api' --max-amount 0.01 -b '{\"session_id\":\"123e4567-e89b-12d3-a456-426614174000\",\"incident_summary\":\"5xx spike after deploy\",\"urgency\":\"high\"}'",
      "max_amount_usdc": "0.01"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-agent-recovery-plan-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/premium/recovery-action-plan"
  }
}
