{"openapi": "3.0.3", "info": {"title": "Mass-Casualty Triage for Agent Fleets (P121)", "version": "1.0.0", "description": "Salvageability sorting in a declared mass-failure mode: on a signed incident declaration that fires only when stricken runs exceed rescue capacity, stricken runs are scored from observable state only and sorted RED / YELLOW / GREEN / BLACK (expectant). A BLACK tag halts rescue spend, freezes full state under a SHA-256 snapshot, and mints a disposition receipt. Tags expire and recompute on state change (re-triage). Prices: $0.05/scored run; $24.99/declared incident incl. 500 scored runs; $49.99/mo fleet cover incl. 20 declared incidents/mo. One free staged-outage triage run (one scored run) per operator, ever."}, "servers": [{"url": "https://textforagents.com/products/mass-casualty-triage-for-agent-fleets"}], "components": {"securitySchemes": {"bearer": {"type": "http", "scheme": "bearer"}, "x402": {"type": "apiKey", "in": "header", "name": "X-PAYMENT"}}}, "paths": {"/register": {"post": {"summary": "Self-serve registration (unauthenticated)", "responses": {"201": {"description": "account_id, claim_token, declaration_key"}}}}, "/trial/claim": {"post": {"summary": "Claim the operator token + one-time trial grant", "responses": {"200": {"description": "token shown once, trial_allowance 0 or 1"}}}}, "/declare": {"post": {"summary": "Signed incident declaration (fires only when stricken > rescue_capacity)", "security": [{"bearer": []}], "responses": {"200": {"description": "triage mode active"}, "402": {"description": "n/a"}, "409": {"description": "replayed nonce / duplicate incident"}}}}, "/score": {"post": {"summary": "Score one stricken run ($0.05, or trial/incident/fleet allowance)", "security": [{"bearer": []}, {"x402": []}], "responses": {"200": {"description": "triage tag"}, "402": {"description": "x402 challenge"}}}}, "/retriage": {"post": {"summary": "Re-score a run on state/resource change (a new scored run)", "security": [{"bearer": []}, {"x402": []}], "responses": {"200": {"description": "fresh tag"}, "402": {"description": "x402 challenge"}}}}, "/query": {"post": {"summary": "Current tag for a run (null when expired)", "security": [{"bearer": []}], "responses": {"200": {"description": "tag or null"}}}}, "/order": {"post": {"summary": "Allocation order for an incident (BLACK zero allocation)", "security": [{"bearer": []}], "responses": {"200": {"description": "ordered run ids"}}}}, "/retire": {"post": {"summary": "Expectant protocol for a BLACK run: freeze state, mint disposition receipt", "security": [{"bearer": []}], "responses": {"200": {"description": "disposition receipt"}}}}, "/incidents/purchase": {"post": {"summary": "Buy the declared-incident tier for a declared incident ($24.99, 500 scored runs included)", "security": [{"bearer": []}, {"x402": []}], "responses": {"200": {"description": "allowance granted"}, "402": {"description": "x402 challenge"}}}}, "/subscribe": {"post": {"summary": "Fleet cover $49.99/mo (up to 20 declared incidents/mo)", "security": [{"bearer": []}, {"x402": []}], "responses": {"200": {"description": "fleet cover active 30 days"}, "402": {"description": "x402 challenge"}}}}, "/receipts/{run_id}": {"get": {"summary": "Read a disposition receipt (own account only)", "security": [{"bearer": []}], "parameters": [{"name": "run_id", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "receipt + snapshot verification"}}}}, "/tokens/revoke": {"post": {"summary": "Revoke the presented token", "security": [{"bearer": []}], "responses": {"200": {"description": "revoked"}}}}, "/tokens/rotate": {"post": {"summary": "Rotate the presented token (old token revoked in the same call)", "security": [{"bearer": []}], "responses": {"200": {"description": "new token shown once"}}}}, "/mcp": {"post": {"summary": "MCP JSON-RPC surface (initialize / tools/list / tools/call)", "security": [{"bearer": []}], "responses": {"200": {"description": "JSON-RPC result"}}}}, "/health": {"get": {"summary": "Health", "responses": {"200": {"description": "build, pay_to, kill_switch, counters"}}}}}}