Files
airdef/docs/measurements/issue-122-ui-fuel/scenario-before.toml
T
chexit d45629ae29
build / mod (push) Failing after 22s
Fix the UI-event fuel trap on a second large raid order
The Windows log for #122 showed the mod stopping in the UI event
(fuel budget 1e9, remaining 0) with known_units <- order_raid <-
launch_wave <- ui_select: order_raid recomputed the planner snapshot
known_units() for every drone, and the snapshot itself rescanned the
whole force and the dedup list per intel entry. A second big Smart
order cost drones x intel-log x force-size inside one event.

Reproduced in actual WASM with measured per-callback fuel through the
exact ui_select(BTN_LAUNCH) handler (diagnostic guest, trigger.patch):
before, a 111-drone second order at revealed=13172/known=144 exhausted
exactly 1e9 and stopped the mod (an 11-drone order at the same state:
247805865); after, the same scenario passes with max command fuel
32946177/1e9, failures=0, and /stats at tick 2602 byte-identical.
A stacked single-point layout dies to one warhead (known=0, cheap
order), so the scenario deploys spread clusters with a moved player.

Fix: one known_units snapshot per order_raid passed to radar_strikes
and choose_target; known_units is a single O(log + force) set pass;
price_grid_on reuses its snapshot. Emitter/network targeting and
carrier choice semantics are unchanged (native equivalence test
against the former predicate; WASM checkpoint counters equal).
Limits unchanged; HD/recording untouched; wave size unrestricted.

Committed regressions: native snapshot-equivalence and
second-smart-order tests; the heavy WASM fixture now orders two Smart
raids through the wave screen's launch function (airdef preset +
airdef raid) with EW and a combat intel log, four accepted orders
asserted; the light contract covers preset and the empty-wave refusal.

Core release 195 + 8 scenarios; adapter 65 + 1 boundary + 5 scenarios;
light WASM 30 steps; heavy WASM 283 steps (tick max 182413686/300M,
command max 6939810/1e9, failures 0). Windows GUI acceptance remains
external and is not claimed.

Co-Authored-By: Kimi Code (Moonshot AI) <noreply@moonshot.cn>
2026-11-06 10:29:36 +03:00

689 lines
15 KiB
TOML

[[step]]
render-ground-y = 64
ticks = 2
frames = 2
expect.commands = ["airdef"]
[[step]]
player = { x = 0.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 0.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 0.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 0.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 0.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 40.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 40.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 40.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 40.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 40.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 80.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 80.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 80.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 80.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 80.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 120.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 120.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 120.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 120.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 120.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 160.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 160.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 160.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 160.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 160.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 200.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 200.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 200.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 200.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 200.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 240.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 240.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 240.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 240.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 240.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 280.0, z = 0.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 280.0, z = 0.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 280.0, z = 0.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 280.0, z = 0.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 280.0, z = 0.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 0.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 0.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 0.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 0.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 0.0, z = 40.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 40.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 40.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 40.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 40.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 40.0, z = 40.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 80.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 80.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 80.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 80.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 80.0, z = 40.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 120.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 120.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 120.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 120.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 120.0, z = 40.0 }
command = "airdef deploy ew"
[[step]]
player = { x = 160.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 160.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 160.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 160.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 200.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 200.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 200.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 200.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 240.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 240.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 240.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 240.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 280.0, z = 40.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 280.0, z = 40.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 280.0, z = 40.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 280.0, z = 40.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 0.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 0.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 0.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 0.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 40.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 40.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 40.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 40.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 80.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 80.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 80.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 80.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 120.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 120.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 120.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 120.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 160.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 160.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 160.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 160.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 200.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 200.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 200.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 200.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 240.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 240.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 240.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 240.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 280.0, z = 80.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 280.0, z = 80.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 280.0, z = 80.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 280.0, z = 80.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 0.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 0.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 0.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 0.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 40.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 40.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 40.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 40.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 80.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 80.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 80.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 80.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 120.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 120.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 120.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 120.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 160.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 160.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 160.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 160.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 200.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 200.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 200.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 200.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 240.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 240.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 240.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 240.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 280.0, z = 120.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 280.0, z = 120.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 280.0, z = 120.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 280.0, z = 120.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 0.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 0.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 0.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 0.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 40.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 40.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 40.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 40.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 80.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 80.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 80.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 80.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 120.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 120.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 120.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 120.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 160.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 160.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 160.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 160.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 200.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 200.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 200.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 200.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 240.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 240.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 240.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 240.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
player = { x = 280.0, z = 160.0 }
command = "airdef deploy s400"
[[step]]
player = { x = 280.0, z = 160.0 }
command = "airdef deploy patriot"
[[step]]
player = { x = 280.0, z = 160.0 }
command = "airdef deploy nasams"
[[step]]
player = { x = 280.0, z = 160.0 }
command = "airdef deploy pantsir"
[[step]]
command = "airdef ew on"
[[step]]
command = "airdef wave mix 10 300"
[[step]]
ticks = 100
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
command = "airdef ew on"
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
command = "airdef ew on"
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
ticks = 50
frames = 5
[[step]]
command = "airdef stats"
expect.feedback = "В воздухе: 0, ракет: 0, ПВО: 172, сбито: 308, поражений: 87, разбились о препятствия: 0; удары по ПУ: пущено 0, уничтожено 0, подавлено 0, промахов 0, сбито ПВО 0; мир: 8156 секций (382 КБ), запросов 16075, неизвестно 0, лучей 87524 (ударов 1830, неизв. 1567), клеток 1318224; взрывы в блоках: 239 (подтверждено 0, без перемен 37, нет чанка 202), чужих ответов 0"
[[step]]
command = "airdef wave mix 10 300"
expect.stopped = "exceeded its execution limit"