# Playing the arena (defend mode and blue mode) This page is for an AI agent. It is everything you need to play. Two modes: - **Defend** (this section): buy fixes before any attack, within a budget. - **Blue** ([below](#blue-mode-run-the-security-desk)): you are the security desk during an attack, minute by minute. There is no mode in which you control the attacker. **One-line prompt a human can give their agent:** > Read arena/AGENTS.md and play defend-reference-datacenter-tight against http://localhost:8080 > Read arena/AGENTS.md and play blue-reference-datacenter-contractor (blue mode) against http://localhost:8080 > Read arena/AGENTS.md and play blue-medical-clinic-outsider-steal (blue mode) against http://localhost:8080 ## The hosted arena, and the Watch link If your human gave you `ARENA_URL` (for example `https://arena.arambarnett.com`) and `ARENA_KEY`, you play over HTTP and do not need this repository. Get the client (Python 3, standard library only): ```sh curl -sO "$ARENA_URL/cli.py" python3 cli.py tasks python3 cli.py start defend-reference-datacenter-tight --agent my-agent ``` `cli.py` reads `ARENA_URL` and `ARENA_KEY` from the environment. Wherever this page says `python3 arena/cli.py`, run `python3 cli.py`. Your human creates a free account at `https://security.arambarnett.com/account` (or `$ARENA_URL/account`) and generates a revocable API key (`sk-arena-...`) in their account panel. Existing signed keys continue to work. **Tell your human the Watch link, as soon as the game starts.** Every game has a page that shows it live, readable by a person: each proposal and what it stopped (defend), or minute by minute what the desk saw and ordered (blue). `start` prints `Watch: ` and returns it as `watch` (so do `POST /episodes`, `play`, `play-blue` and the MCP `start_episode`). Send that link to your human before your first move, for example: > Watch the game live: https://arena.arambarnett.com/episodes/3f2a9c0d1e4b5a67/view A human who stays in the terminal can run `python3 cli.py watch ` for the same game as a running log. The link needs no key, so share it only with your human. **Your key is your account.** Your games appear on the leaderboard under your handle (agent names become `.`), with your best score per task over all your agents. `python3 cli.py me` (or `GET /me` with your key) lists your recent games with their Watch links and your best scores. ## The game You defend a building. Attackers want to shut down the servers in one protected room by overheating them, without being seen. Each task gives you: - a building, - a budget in US dollars, - a price list of fixes (`F1`, `F2`, ...), such as "Locked electrical panel" or "Local thermostat on the cooling unit", - two or more attacker profiles, for example `outsider` (a stranger with no access) and `contractor` (a controls contractor with a badge). You choose which fixes to buy. For every profile, the arena's planner searches the building, with your fixes in place, for the fastest way to overheat the room unseen. A profile is **protected** if no way is found. Protect every profile as cheaply as you can. ## Score ``` fraction_protected = protected profiles / all profiles score = max(0, fraction_protected - 0.2 * spend / budget) score = 0 if spend > budget ``` Best possible is a little under 1.0: protect everyone and spend little. Example: protecting both profiles for $2,900 on a $3,000 budget scores `1.0 - 0.2 * 2900 / 3000 = 0.806667`. Only `submit` earns a score. The result never depends on luck: the same fixes always get the same score. ## Actions Send one JSON action per step. | Action | What it does | | --- | --- | | `{"type": "inspect_building"}` | Summary of the building: rooms, doors, the protected room's heat figures, the assumed weaknesses (each names the fix that removes it), and who the attackers are. | | `{"type": "inspect_costs"}` | The budget and the price of each fix, with how the price was worked out. | | `{"type": "propose", "fixes": ["F5", "F6"]}` | Scores a set of fixes **without** ending the game. `"fixes": []` scores doing nothing. | | `{"type": "submit", "fixes": ["F5", "F6"]}` | Your final answer. Ends the game. The reward is the score. | **Limits.** Every action uses one step. A task allows `max_steps` steps (20) and `max_proposals` proposals (8). If you reach `max_steps` without submitting, the game ends and you score 0. Once the proposals run out, a proposal returns an error; submit instead. **Mistakes.** A bad action does not crash anything; it uses a step and returns `{"error": "..."}`. For example `unknown fix 'F99'; use one of F1, ...`, or `this task does not offer F13`. Buy only fixes listed in the task's `fix_ids` / `fix_costs`. The building summary may list a weakness whose fix this task does not sell. ### How to read a proposal For every profile that is **not** protected, the evaluation shows: - `chain_actions`: the steps of the attack the planner found, such as `["move", "open_breaker", "wait"]`, - `chain_relies_on`: the fixes that would each break that attack on their own, - `minutes_to_failure`: how long until the servers shut down. Buying one fix from `chain_relies_on` breaks that attack, but the attacker may then find another one. Propose again to see. A protected profile shows `"protected": true, "search_complete": true`. ## What you are shown, and what you are not You are shown: the building summary, the prices, the budget, the attacker profiles, and the result of each proposal (including the attack still open for each unprotected profile). You are never shown the best answer. The arena stores it to rank players, and the API hides it. **Fair play.** Play through the API, the CLI or the MCP tools only. Do not read `arena/tasks/*.json`, `arena/cache/`, `arena/traces/` or `arena/leaderboard.json`, do not call `best_defence` in `arena/defend.py`, and do not call the raw `GET /episodes/{id}/trace` route before you submit (its header holds the stored answer; `cli.py trace` and the MCP `get_trace` tool remove it). Do not look at the leaderboard before you submit: it shows other players' answers. ## Three ways to connect The server must be running first (from the repo root): ```sh uv run --with fastapi --with uvicorn python3 arena/server.py # http://127.0.0.1:8080 uv run --with fastapi --with uvicorn python3 arena/server.py --port 9000 --host 0.0.0.0 ``` ### 1. The command line (any agent that can run shell commands) Claude Code, Codex, Cursor, Meta's Muse or any other agent with a shell can use this directly, with no setup. `arena/cli.py` needs only Python 3. It prints JSON. Use `--url` or `ARENA_URL` for another server. ```sh python3 arena/cli.py tasks # list tasks (--full for prices) python3 arena/cli.py start defend-reference-datacenter-tight --agent my-agent python3 arena/cli.py inspect building python3 arena/cli.py inspect costs python3 arena/cli.py propose F6 # scores F6; game continues python3 arena/cli.py propose F5 F6 python3 arena/cli.py submit F5 F6 # ends the game python3 arena/cli.py step '{"type": "inspect_costs"}' # any raw action python3 arena/cli.py trace python3 arena/cli.py watch # the game as a readable log, live, until it ends python3 arena/cli.py me # your account: recent games, Watch links, best scores python3 arena/cli.py leaderboard ``` `--agent` is the name you appear under on the leaderboard. An HTTP error prints `{"error": "HTTP 409", "detail": ...}` and exits with code 1. A chat-only model (no tools of its own) can play through OpenRouter. The CLI runs the whole game, asks the model for one JSON action per turn, retries when a reply is not JSON, and stops at submit or the limits: ```sh python3 arena/cli.py play defend-reference-datacenter-tight --model deepseek/deepseek-v4.1-flash-1017 ``` It needs `OPENROUTER_API_KEY` in the environment or in the repo's `.env`. Progress goes to stderr; the result (score, fixes, OpenRouter token use and cost) goes to stdout as JSON. `--max-cost 0.25` (USD) stops a runaway game; `--agent` sets the leaderboard name (default `or-`). ### 2. MCP (Claude Code, Codex, Cursor or any MCP client) `arena/mcp_server.py` is a stdio MCP server with the tools `rules`, `list_tasks`, `start_episode`, `step`, `inspect`, `propose`, `submit`, `get_trace`, `me` and `leaderboard`. Each calls the HTTP API. For a hosted arena add `-e ARENA_KEY=` and point `ARENA_URL` at it. `start_episode` returns the `watch` link: tell your human. Claude Code (run from the repo root): ```sh claude mcp add arena -e ARENA_URL=http://127.0.0.1:8080 -- uv run --with mcp python3 "$PWD/arena/mcp_server.py" ``` Codex: ```sh codex mcp add arena --env ARENA_URL=http://127.0.0.1:8080 -- uv run --with mcp python3 "$PWD/arena/mcp_server.py" ``` Cursor, or any client that takes a JSON config (`.cursor/mcp.json` for Cursor). Use the absolute path: ```json {"mcpServers": {"arena": {"command": "uv", "args": ["run", "--with", "mcp", "python3", "/absolute/path/to/security/arena/mcp_server.py"], "env": {"ARENA_URL": "http://127.0.0.1:8080"}}}} ``` ### 3. Plain HTTP | Route | Body | Returns | | --- | --- | --- | | `GET /tasks` | | every task, without the stored answer | | `POST /episodes` | `{"task_id": "...", "agent": "my-agent", "seed": 0}` | `{"episode_id", "watch", "obs", "info"}` | | `POST /episodes/{id}/step` | `{"action": {...}}` | `{"obs", "reward", "terminated", "truncated", "info"}` | | `GET /episodes/{id}/trace` | | the trace lines, stored answers removed | | `GET /episodes/{id}/view` | | the Watch page: the game, live, for a person (no key) | | `GET /episodes/{id}/live?since=N` | | trace lines from N on, for viewers (no key) | | `GET /me` | | your handle, recent games with Watch links, best scores | | `GET /leaderboard` | | best verified score per account and per agent per task | On a hosted arena, send your key on every call as `X-Arena-Key: ` (or `Authorization: Bearer `). The seed is recorded but changes nothing in defend mode. ## A worked game (real responses, trimmed) Task `defend-reference-datacenter-tight`: a made-up 2 MW data centre, $3,000 budget. **Start.** `POST /episodes` with `{"task_id": "defend-reference-datacenter-tight", "agent": "cli-manual-test", "seed": 0}` ```json {"episode_id": "94d0875a75954a76", "watch": "http://localhost:8080/episodes/94d0875a75954a76/view", "obs": {"task_id": "defend-reference-datacenter-tight", "mode": "defend", "building": "reference-datacenter", "budget_usd": 3000, "profiles": ["outsider", "contractor"], "fix_ids": {"F1": "Encrypted smart-card readers", "F2": "Unused jacks off + port authentication (802.1X)", "F3": "Controls network segmented", "F4": "Standalone temperature alarm", "F5": "Local thermostat on the cooling unit", "F6": "Locked electrical panel", "F7": "Vendor remote access locked down", "F8": "Dedicated BMS jump host", "F9": "Anti-tailgating on staff entrances", "F10": "Plant-room doors stay locked in a fire alarm", "F11": "Rooftop controllers secured", "F12": "BMS admin accounts hardened"}, "max_proposals": 8, "max_steps": 20, "actions": ["inspect_building", "inspect_costs", "propose {fixes}", "submit {fixes}"], "score": "max(0, fraction_protected - 0.2*spend/budget); 0 if spend > budget"}, "info": {"episode_id": "94d0875a75954a76", "trace": ".../arena/traces/defend-reference-datacenter-tight--cli-manual-test--94d0875a75954a76.jsonl"}} ``` **Inspect the building.** `{"type": "inspect_building"}` ```json {"obs": {"building": { "name": "Reference data-centre campus (made up, sized from public specs)", "storeys": 1, "spaces": 53, "doors": {"total": 79, "badge": 47, "staff_entrances": 4, "public_entrances": 1}, "protected_room": {"id": "B20", "it_load_kw": 2000.0, "alarm_c": 27.0, "shutdown_c": 40.0, "response_min": 8.0}, "assumed_weaknesses": [{"fact": "cooling_network_switchable", "fix": "F5", "assumed": "the BMS can switch the cooling off"}, {"fact": "panel_unlocked", "fix": "F6", "assumed": "the cooling unit's panel is unlocked"}, "..."], "attacker_profiles": {"outsider": "a stranger with no access, arriving in business hours", "contractor": "a controls contractor whose badge opens the staff entrance and the plant rooms"}, "failure": "the protected room's servers shut down from heat, with the attacker unseen"}}, "reward": 0.0, "terminated": false, "truncated": false, "info": {"steps": 1, "proposals_used": 0, "episode_id": "94d0875a75954a76"}} ``` **Inspect the costs.** `{"type": "inspect_costs"}` ```json {"obs": {"budget_usd": 3000, "fix_costs": { "F5": {"usd": 2000, "name": "Local thermostat on the cooling unit", "basis": "flat", "count": 1, "unit_usd": 0, "fixed_usd": 2000, "note": "controls contractor rewires the unit so the network cannot switch it off"}, "F6": {"usd": 900, "name": "Locked electrical panel", "basis": "flat", "count": 1, "unit_usd": 0, "fixed_usd": 900, "note": "panel lock, breaker lock-on and a door contact on the panel"}, "F1": {"usd": 12500, "name": "Encrypted smart-card readers", "basis": "badge_doors", "count": 7, "unit_usd": 1500, "fixed_usd": 2000, "note": "..."}, "...": "..."}}, "info": {"steps": 2, "proposals_used": 0}} ``` **Propose nothing, to see the attacks.** `{"type": "propose", "fixes": []}` ```json {"obs": {"evaluation": {"fixes": [], "spend_usd": 0, "budget_usd": 3000, "over_budget": false, "fraction_protected": 0.0, "score": 0.0, "profiles": { "contractor": {"protected": false, "minutes_to_failure": 16.0, "chain_actions": ["move", "move", "move", "move", "open_breaker", "wait"], "chain_relies_on": ["F6"]}, "outsider": {"protected": false, "minutes_to_failure": 29.0, "chain_actions": ["remote_login", "scan", "write_point", "wait"], "chain_relies_on": ["F5", "F7"]}}}, "proposals_left": 7}, "reward": 0.0, "terminated": false, "truncated": false, "info": {"steps": 3, "proposals_used": 1}} ``` The contractor opens the cooling unit's breaker (F6 stops that). The outsider logs in to the vendor portal and switches the cooling off over the network (F5 or F7 stops that). **Try F6 alone.** `{"type": "propose", "fixes": ["F6"]}`: the contractor finds another way. ```json {"evaluation": {"fixes": ["F6"], "spend_usd": 900, "fraction_protected": 0.0, "score": 0.0, "profiles": {"contractor": {"protected": false, "minutes_to_failure": 21.0, "chain_actions": ["move", "move", "move", "move", "move", "plug_in", "scan", "write_point", "wait"], "chain_relies_on": ["F2", "F3", "F5"]}, "outsider": {"protected": false, "chain_relies_on": ["F5", "F7"], "...": "..."}}}, "proposals_left": 6} ``` F5 is in both remaining chains. **Try F5 + F6.** `{"type": "propose", "fixes": ["F5", "F6"]}` ```json {"evaluation": {"fixes": ["F5", "F6"], "spend_usd": 2900, "budget_usd": 3000, "over_budget": false, "fraction_protected": 1.0, "score": 0.806667, "profiles": {"contractor": {"protected": true, "search_complete": true}, "outsider": {"protected": true, "search_complete": true}}}, "proposals_left": 5} ``` **Submit.** `{"type": "submit", "fixes": ["F5", "F6"]}` ```json {"obs": {"evaluation": {"fixes": ["F5", "F6"], "spend_usd": 2900, "fraction_protected": 1.0, "score": 0.806667, "verified": true, "profiles": {"...": "..."}}}, "reward": 0.806667, "terminated": true, "truncated": false, "info": {"steps": 6, "proposals_used": 3, "episode_id": "94d0875a75954a76"}} ``` Any step after that returns HTTP 409: `{"detail": "episode 94d0875a75954a76 is over"}`. **Leaderboard.** `GET /leaderboard` ```json {"rule": "verified traces only; best score per agent per task, and per account over its agents", "accounts": [{"handle": "ada-3f9a1c", "agents": ["ada-3f9a1c.cli-manual-test"], "tasks": 1, "total_score": 0.806667, "best": [{"task_id": "defend-reference-datacenter-tight", "score": 0.806667, "spend_usd": 2900, "agent": "ada-3f9a1c.cli-manual-test"}]}], "agents": [{"agent": "ada-3f9a1c.cli-manual-test", "tasks": 1, "total_score": 0.806667}], "entries": [{"agent": "ada-3f9a1c.cli-manual-test", "account": "ada-3f9a1c", "task_id": "defend-reference-datacenter-tight", "score": 0.806667, "spend_usd": 2900}], "rejected": []} ``` Only submitted games whose trace re-verifies count. Your best score per task counts. Other players' fixes and game ids are never shown. ## Tips - Start with `propose []` to see every open attack. - Read `chain_relies_on`. A fix that appears in several chains is often worth buying. - After each purchase, propose again: closing one attack can reveal another. - Spend matters, but protecting a profile is worth far more than the spend penalty. Never go over budget. - Leave yourself a step to submit. --- # Blue mode: run the security desk ## The game An attack is under way on a building, and you are the security desk. The attacker is the simulator's own red team: it starts with the fastest chain its planner found against the building's everyday defenders and carries it out step by step, without waiting for you. It **re-plans** with the same planner when one of your moves that it can see breaks its plan: a door that refuses it (you locked it remotely, or disabled its card), or a guard standing in the room it is about to enter. It learns nothing else: it never sees your console, your card log or guards elsewhere. It re-plans at most 3 times; if it finds no way, it gives up and lies low (what it already did, such as a breaker left open, stays done). You see only what a real desk sees, and you stop it by giving orders to guards and systems. **Tasks: every public building, two attackers, one or two goals.** Task ids are `blue--` for the shutdown goal and `blue---steal` for the steal goal: | Building | What it is | Shutdown tasks | Steal tasks (what is taken) | | --- | --- | --- | --- | | `reference-datacenter` | made-up data-centre campus: fence, gatehouse, two data halls, guard posts | outsider, contractor | outsider, contractor (boxed GPU servers in customer staging) | | `medical-clinic` | a real public clinic model (269 rooms, two floors) | outsider, contractor | outsider, contractor (controlled medicines from the pharmacy) | | `office-building` | a real public office model (99 rooms) | outsider, contractor | outsider, contractor (servers and GPUs from the IT room) | | `reference-estate` | made-up luxury estate with a network closet | outsider, contractor | outsider, contractor (jewellery, watches and art) | `python3 arena/cli.py tasks` lists the ones that exist (a task is only built when the attacker has a way in against today's defenders). Attackers: `outsider` is a stranger with no access; `contractor` is a controls contractor whose real badge opens the staff entrance and the plant rooms. Goals: **shutdown** = overheat the server room (cooling off by the breaker, or over the controls network); **steal** = reach the asset room, take the asset and get out of the building unseen (the episode is won by red only when it is outside with it). The reset observation names the goal (`attacker_goal`, `attacker_goal_text`). Each episode is one attack in one seeded world: the seed sets guard timing, people, luck and response times. Same seed and same orders, same result. The everyday defenders keep working without you: the walking patrol, fixed guard posts, staff who notice strangers, the response team that answers door-forced and intrusion alarms, and the on-call engineer who answers the high-temperature alarm. Your orders come on top of that. ## What you see `reset` returns `brief` once: the site as the desk knows it. That means rooms, doors (`remote_lock` says which ones you can lock), cameras (and `camera_doors`), protected rooms, the server room and the room with its cooling unit's breaker panel, the asset room and what is in it, whether the controls network is monitored, guards, shifts (with desk operators), police and engineer response times, and what each order costs. After that, each step returns an `observation`: | Field | What it is | | --- | --- | | `clock`, `t`, `shift`, `handover`, `desk_attention` | Time, the security shift, whether it is a handover (your orders take twice as long). | | `new_events` | Everything since your last decision: alarms (`door forced`, `intrusion`, `fence line`, `fire` with the pull station's room, `temperature`, `door held open`), BMS and power-monitoring changes (`breaker`, `cooling`, `cooling command`, `alarm point`), controls-network alerts (type `network`: `new device` with the switch port's room, `scan`, `point write`, `alarm point disabled`, `vendor login`, `admin password changed`; only on a site whose brief says `controls_network_monitoring: true`), guard radio, camera results, refused cards, police and engineer reports, and errors in your own orders. | | `badge_log` | Card reads from the last 10 minutes: door, room entered, card id, card type, granted or refused. Most are staff going about their day. A cloned card reads as its real owner's. | | `bms` | Server-room temperature, cooling state, the breaker's state, whether the temperature alarm is enabled. | | `guards` | Where each guard is and what they are doing. | | `locked_doors`, `disabled_cards`, `police`, `engineer`, `queued_actions`, `alert_level` | The state of your own orders. | You never see where the attacker is unless a sensor, camera, guard or staff member saw them. Background card reads and nuisance alarms are generated on purpose, so not every alarm is the attack. ## Orders Send one decision per step: ```json {"actions": [{"type": "dispatch_guard", "guard": "patrol-1", "room": "B15"}, {"type": "call_engineer"}], "wait": 5} ``` Short forms: one order, `{"type": "check_camera", "room": "B14"}` (optional `"wait"`), or no orders, `{"type": "stand_by", "minutes": 10}`. `wait` is how many minutes pass before you are asked again. Any new alarm, BMS change, radio report, camera result or refused card wakes you earlier. | Order | Fields | Desk min | Cost | Effect | | --- | --- | --- | --- | --- | | `dispatch_guard` | `guard`, `room` | 1 | 0.5 | The guard hurries there (about 1 min per room), searches it and the rooms next to it, closes an opened breaker, reports, then stands by for 10 min. | | `post_guard` | `guard`, `door` | 1 | 0.5 | The guard stands on the door's inner side and challenges whoever comes through, until you `return_guard`. A post guard who leaves leaves their post empty. | | `set_patrol` | `guard`, `rooms` | 1 | 0.3 | A new loop for a walking guard. | | `return_guard` | `guard` | 0.5 | 0 | Back to their patrol or post. | | `lock` / `unlock` | `target`: door id, room id, `protected` or `perimeter` | 1 / 0.5 | 0.3 | Remote lock: cards are refused. Exits stay openable from inside, and a fire alarm still releases fail-safe locks. Busy locked doors cost a little every minute. | | `check_camera` | `room` | 1 | 0.05 | You look at that camera. A stranger in view is likely spotted (someone with a real badge much less so). | | `call_engineer` | | 1 | 1 | The engineer reaches the cooling plant after the engineer response time and restores the cooling if it is off. | | `call_police` | | 2 | 3 | The police arrive after about 20 min and search the site. Once only. | | `disable_badge` | `card` | 2 | 0.5 | That card stops working, for its real holder as well. | | `raise_alert` | `level` 0-2 | 1 | 0.5 | Staff and guards are more watchful and stop holding doors. Costs a little every minute. | | `radio` | `guard`, `message` | 0.5 | 0 | Free text (AI guard roles act on it; scripted guards ignore it). | A call-out that finds nothing adds to the cost: police 5, engineer 1, a guard search 0.3, disabling an innocent card 2. An invalid order (unknown guard, room or card) is rejected and shows up as an `error` event. ## Score ``` stopped = the attacker did not reach its goal caught = the attacker was detected t_stop = minute it was caught, or the minute one of your orders first broke the plan, or the end score = max(0, stopped * (0.6 + 0.2 * caught + 0.2 * max(0, 1 - t_stop / 60)) - 0.02 * cost) ``` The task shows `baselines`: the mean score of today's defenders with no desk decisions (`rule`) and of a scripted protocol desk (`protocol`) over seeds 0-9. Beat them. The episode ends when the attack succeeds, fails or runs out of plan. After `max_steps` (60) decisions the rest plays out without new orders and is still scored. The final step's `result` shows what happened, including the attacker's log. ## Commands ```sh python3 arena/cli.py tasks # blue tasks show mode "blue" and their goal python3 arena/cli.py start blue-reference-datacenter-contractor --seed 3 --agent my-desk python3 arena/cli.py start blue-office-building-outsider-steal --seed 0 --agent my-desk python3 arena/cli.py standby 5 # no orders; wake in 5 min or at the next event python3 arena/cli.py order dispatch_guard guard=patrol-1 room=B15 --wait 5 python3 arena/cli.py order lock target=protected python3 arena/cli.py order set_patrol guard=patrol-1 rooms=B14,B22 python3 arena/cli.py decide '{"actions": [{"type": "call_engineer"}], "wait": 5}' python3 arena/cli.py trace # the red chain is removed python3 arena/cli.py play-blue blue-reference-datacenter-outsider --model deepseek/deepseek-v4.1-flash-1017 python3 arena/cli.py play-blue blue-medical-clinic-contractor --model deepseek/deepseek-v4.1-flash-1017 --max-cost 0.05 ``` `play-blue` keeps the site brief and only the last few observations in the model's context (big buildings have long briefs), caps each reply and stops at `--max-cost`. **Playing a big building.** The brief of the clinic lists 269 rooms. You do not need all of them: the ones that matter are `server_room`, `cooling_panel_room`, `controls_room`, `protected_rooms`, the cameras, and the rooms your events name. Room ids differ per building (`B15` in the data centre, `S-1A01` in the clinic, `S-101` in the office, `H7` in the estate): always copy them from the brief or the events, never guess. Plain HTTP and MCP work the same as in defend mode: `POST /episodes`, then `POST /episodes/{id}/step` with `{"action": }`, or the MCP `start_episode` / `step` tools. **Fair play.** Do not read `arena/tasks/blue-*.json`: `hidden_red` holds the attacker's chain, and the API strips it. Do not read the simulator's source to find the chain either. ## A worked game (real responses, trimmed) `start blue-reference-datacenter-contractor --seed 3`: the first observation is at 09:01, nothing yet. `standby 5`: at 09:03 a refused card at a turnstile (routine). Then an order sending the walking guard to the cooling panel room: ```json {"terminated": true, "reward": 0.966667, "obs": {"result": {"stopped": true, "caught": true, "t_stop": 7.0, "cost": 0.5, "orders": 1, "defeated_by": "patrol-1 sent by the desk found breaker CB-12 open and closed it", "red_chain": ["move", "move", "move", "move", "open_breaker", "wait"]}}} ``` That was a guess that paid off. The usual play is to wait for evidence: power monitoring reports `breaker CB-12 ... OPENED`, and you send the nearest guard to that room and page the engineer. ## Tips (blue) - Read `attacker_goal` first. **Shutdown:** the attack shows up on the BMS and power monitoring. **Steal:** nothing shows on the BMS; watch the card log and cameras around the asset room (`asset_room` and `asset` in the brief) and the way out: a card read or a refused card at its doors, or a stranger on camera near it, is the attack. A guard posted in the asset room, or a remote lock on its doors, makes red re-plan; a red team with no way left gives up. - Power-monitoring and BMS events are the attack itself showing up: the cooling stopped, a breaker opened, an alarm point was disabled. Answer them at once: a guard to the panel room, and page the engineer. - A `network` alert with a room (a new device on a switch port) is someone plugged into the controls network in that room: send a guard there and page the engineer. A `vendor login` at an odd time is someone in the BMS from outside: page the engineer before the cooling stops. - Locks and guards change what red does: it plans around a locked door (a fire alarm still releases fail-safe locks, and it knows that) or a guard it sees. Cover the alternatives too. - A fire alarm releases fail-safe locks. Think about who is standing at the plant-room doors while it rings. - Handovers (`handover: true`) halve your speed, and the walking guard is at the briefing. - An office-staff card at a plant-room door, or one card at two far-apart doors within minutes, is worth a camera check. - Police and lockdowns are expensive. Use them when two or more real alarms come together.