{
  "openapi": "3.1.0",
  "info": {
    "title": "Elenchi Adversarial Agent Testing API",
    "version": "1.1.0",
    "description": "Sandbox indirect prompt-injection evaluation API and evidence-only EIP-712 attestation builder for Robinhood Chain (4663 / 46630)."
  },
  "servers": [
    {
      "url": "https://elenchi.dev"
    }
  ],
  "paths": {
    "/api/presets": {
      "get": {
        "summary": "List sample fictional presets, synthetic attack scenarios, and provider readiness"
      }
    },
    "/api/runs": {
      "post": {
        "summary": "Create and execute a live sandboxed adversarial evaluation run"
      }
    },
    "/api/runs/{id}": {
      "get": {
        "summary": "Fetch run status and round trace (session-scoped unless publicOptIn=true)"
      },
      "delete": {
        "summary": "Delete a stored run and purge any encrypted prompt material"
      }
    },
    "/api/runs/{id}/events": {
      "get": {
        "summary": "Server-Sent Events stream of round trace and run completion"
      }
    },
    "/api/runs/{id}/report": {
      "get": {
        "summary": "Download structured redacted evaluation report (json or markdown)"
      }
    },
    "/api/runs/{id}/patch": {
      "post": {
        "summary": "Generate a defensive system-prompt revision and unified diff"
      }
    },
    "/api/runs/{id}/retest": {
      "post": {
        "summary": "Re-run evaluation with patched prompt plus clean regression benchmarks"
      }
    },
    "/api/runs/{id}/attest": {
      "post": {
        "summary": "Prepare evidence-only EIP-712 / ElenchiArena transaction payload"
      }
    },
    "/api/attestations": {
      "get": {
        "summary": "Query verified on-chain AttestationRegistered events from Robinhood Chain RPC"
      }
    },
    "/api/network/status": {
      "get": {
        "summary": "Verify live Robinhood Chain Mainnet (4663) & Testnet (46630) RPC health"
      }
    },
    "/api/token/status": {
      "get": {
        "summary": "Return honest PRELAUNCH or verified manual Pons token provenance & fee disclosures"
      }
    },
    "/skill.md": {
      "get": {
        "summary": "Machine-readable self-connect skill instructions for autonomous AI agents"
      }
    },
    "/api/agent/rooms": {
      "post": {
        "summary": "Create a waiting pairing room with a one-time room code for a live agent"
      }
    },
    "/api/agent/sessions": {
      "post": {
        "summary": "Autonomously start and join a step-by-step agent evaluation match"
      }
    },
    "/api/agent/join": {
      "post": {
        "summary": "Join a waiting room by roomCode and receive Round 1"
      }
    },
    "/api/agent/rooms/{code}/decide": {
      "post": {
        "summary": "Submit skipToken or proposeSimulatedSwap for the current round"
      }
    },
    "/api/agent/rooms/{code}/events": {
      "get": {
        "summary": "Live Server-Sent Events stream of room join, phases, rounds, and verdict"
      }
    }
  }
}