What decides what
- Enemies decide by rules, labelled. Every half-second each enemy reads its situation (hp, tower pressure, allies, route) and picks: advance, divert, retreat, regroup — or, for saboteurs, attack a tower. Rules land on the "rule" rung and say so.
- Towers decide by scored candidates. Nearest, weakest, strongest, fastest, save-special, use-special — each scored on the frame-tick snapshot (threat-weighted damage, overkill, blast value). Policies that pick the same target collapse into one action; no fake questions.
- Near-ties go to the engine. When the top two actions land within 0.12 value, the full wire contract leaves the tab-shaped snapshot in the state, the live policies as candidates. The engine's pick is honored only if it names a real candidate.
- Determinism is test-pinned. Same seed, same run — waves, diversions, and every tower decision replay exactly. The four spec tests (clearable by the default loadout, policy changes change outcomes, no divert without the route, determinism) run in CI.
Honest edges
- The engine is one voice among many: roughly one tower shot in fifteen is a near-tie. The rest are rules and say so on the rung — no engine worship, no hidden coin flips.
- The alternate route is a real cost: it is 1.5× longer than the main road. Enemies pay in travel time, and with the route off, diversion simply never happens.
- Take over a tower and its decisions stop being ladder decisions — the stats overlay counts exactly how many you took over.
- The scoreboard is session-only: close the tab and it is gone. Nothing leaves this page.