projects-timfalken-com allianties
unit_tests
Passed Started 4 days ago by timfa
Running on Steve
Log timestamps in UTC.
- 100:01:07
Using docker image node:20-bookworm ... - 200:01:07
Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
- 300:01:07
Running on Steve via BlueGit... - 400:01:07
Working directory: /workspace - 500:01:07
Pipeline #709, job #2750
- 600:01:09
debconf: delaying package configuration, since apt-utils is not installed - 700:01:14
TAP version 13 - 800:01:14
# Subtest: deploy_guard - 900:01:14
# Subtest: expands $timftproot and ${timftproot} and collapses double slashes - 1000:01:14
ok 1 - expands $timftproot and ${timftproot} and collapses double slashes - 1100:01:14
--- - 1200:01:14
duration_ms: 46.38536 - 1300:01:14
... - 1400:01:14
# Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf - 1500:01:14
ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf - 1600:01:14
--- - 1700:01:14
duration_ms: 41.972008 - 1800:01:14
... - 1900:01:14
# Subtest: the CLI exits 0 for a good path and does not print the path - 2000:01:14
ok 3 - the CLI exits 0 for a good path and does not print the path - 2100:01:14
--- - 2200:01:14
duration_ms: 14.0316 - 2300:01:14
... - 2400:01:14
1..3 - 2500:01:14
ok 1 - deploy_guard - 2600:01:14
--- - 2700:01:14
duration_ms: 103.495144 - 2800:01:14
type: 'suite' - 2900:01:14
... - 3000:01:14
# Subtest: assert_safe_target - 3100:01:14
# Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names - 3200:01:14
ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names - 3300:01:14
--- - 3400:01:14
duration_ms: 24.778295 - 3500:01:14
... - 3600:01:14
# Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 3700:01:14
ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone - 3800:01:14
--- - 3900:01:14
duration_ms: 22.498606 - 4000:01:14
... - 4100:01:14
1..2 - 4200:01:14
ok 2 - assert_safe_target - 4300:01:14
--- - 4400:01:14
duration_ms: 47.487989 - 4500:01:14
type: 'suite' - 4600:01:14
... - 4700:01:14
# Subtest: auth_config_php - 4800:01:14
# Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 4900:01:14
ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp) - 5000:01:14
--- - 5100:01:14
duration_ms: 45.039101 - 5200:01:14
... - 5300:01:14
1..1 - 5400:01:14
ok 3 - auth_config_php - 5500:01:14
--- - 5600:01:14
duration_ms: 45.298901 - 5700:01:14
type: 'suite' - 5800:01:14
... - 5900:01:14
# Subtest: i18n catalog - 6000:01:14
# Subtest: lists every supported locale - 6100:01:14
ok 1 - lists every supported locale - 6200:01:14
--- - 6300:01:14
duration_ms: 1.111566 - 6400:01:14
... - 6500:01:14
# Subtest: has the same non-empty keys in every language - 6600:01:14
ok 2 - has the same non-empty keys in every language - 6700:01:14
--- - 6800:01:14
duration_ms: 1.876288 - 6900:01:14
... - 7000:01:14
# Subtest: keeps English placeholders in every translation - 7100:01:14
ok 3 - keeps English placeholders in every translation - 7200:01:14
--- - 7300:01:14
duration_ms: 3.010857 - 7400:01:14
... - 7500:01:14
# Subtest: never translates the game name Allianties - 7600:01:14
ok 4 - never translates the game name Allianties - 7700:01:14
--- - 7800:01:14
duration_ms: 0.19609 - 7900:01:14
... - 8000:01:14
# Subtest: maps every known server error code - 8100:01:14
ok 5 - maps every known server error code - 8200:01:14
--- - 8300:01:14
duration_ms: 0.165893 - 8400:01:14
... - 8500:01:14
1..5 - 8600:01:14
ok 4 - i18n catalog - 8700:01:14
--- - 8800:01:14
duration_ms: 7.414842 - 8900:01:14
type: 'suite' - 9000:01:14
... - 9100:01:14
# Subtest: Rules grid and Chebyshev - 9200:01:14
# Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24 - 9300:01:14
ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24 - 9400:01:14
--- - 9500:01:14
duration_ms: 0.689911 - 9600:01:15
... - 9700:01:15
# Subtest: uses Chebyshev distance (diagonals included) - 9800:01:15
ok 2 - uses Chebyshev distance (diagonals included) - 9900:01:15
--- - 10000:01:15
duration_ms: 0.164139 - 10100:01:15
... - 10200:01:15
# Subtest: passable accounts for arena inset - 10300:01:15
ok 3 - passable accounts for arena inset - 10400:01:15
--- - 10500:01:15
duration_ms: 0.167035 - 10600:01:15
... - 10700:01:15
1..3 - 10800:01:15
ok 5 - Rules grid and Chebyshev - 10900:01:15
--- - 11000:01:15
duration_ms: 1.90864 - 11100:01:15
type: 'suite' - 11200:01:15
... - 11300:01:15
# Subtest: Rules cease-fire, midnight wrap and DST - 11400:01:15
# Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day - 11500:01:15
ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day - 11600:01:15
--- - 11700:01:15
duration_ms: 13.949675 - 11800:01:15
... - 11900:01:15
# Subtest: treats the end timestamp as exclusive - 12000:01:15
ok 2 - treats the end timestamp as exclusive - 12100:01:15
--- - 12200:01:15
duration_ms: 1.903029 - 12300:01:15
... - 12400:01:15
# Subtest: handles a second daytime range and countdown seconds - 12500:01:15
ok 3 - handles a second daytime range and countdown seconds - 12600:01:15
--- - 12700:01:15
duration_ms: 4.118957 - 12800:01:15
... - 12900:01:15
# Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 13000:01:15
ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours - 13100:01:15
--- - 13200:01:15
duration_ms: 1.652626 - 13300:01:15
... - 13400:01:15
# Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 13500:01:15
ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours - 13600:01:15
--- - 13700:01:15
duration_ms: 1.689366 - 13800:01:15
... - 13900:01:15
# Subtest: is inactive when the rule is off or ranges are empty - 14000:01:15
ok 6 - is inactive when the rule is off or ranges are empty - 14100:01:15
--- - 14200:01:15
duration_ms: 0.278766 - 14300:01:15
... - 14400:01:15
# Subtest: merges overlapping ranges for the countdown - 14500:01:15
ok 7 - merges overlapping ranges for the countdown - 14600:01:15
--- - 14700:01:15
duration_ms: 0.913403 - 14800:01:15
... - 14900:01:15
# Subtest: formats HH:MM:SS countdowns - 15000:01:15
ok 8 - formats HH:MM:SS countdowns - 15100:01:15
--- - 15200:01:15
duration_ms: 0.148359 - 15300:01:15
... - 15400:01:15
1..8 - 15500:01:15
ok 6 - Rules cease-fire, midnight wrap and DST - 15600:01:15
--- - 15700:01:15
duration_ms: 25.230087 - 15800:01:15
type: 'suite' - 15900:01:15
... - 16000:01:15
# Subtest: Rules timelineIndex (nearest event) - 16100:01:15
# Subtest: returns 0 when there are no spends - 16200:01:15
ok 1 - returns 0 when there are no spends - 16300:01:15
--- - 16400:01:15
duration_ms: 0.159511 - 16500:01:15
... - 16600:01:15
# Subtest: maps 0 to the start and 1 to live (after the last spend) - 16700:01:15
ok 2 - maps 0 to the start and 1 to live (after the last spend) - 16800:01:15
--- - 16900:01:15
duration_ms: 0.170121 - 17000:01:15
... - 17100:01:15
# Subtest: jumps to the nearest event along the bar - 17200:01:15
ok 3 - jumps to the nearest event along the bar - 17300:01:15
--- - 17400:01:15
duration_ms: 0.133742 - 17500:01:15
... - 17600:01:15
1..3 - 17700:01:15
ok 7 - Rules timelineIndex (nearest event) - 17800:01:15
--- - 17900:01:15
duration_ms: 0.777907 - 18000:01:15
type: 'suite' - 18100:01:15
... - 18200:01:15
# Subtest: Rules.angleToMinutes (cease-fire clock) - 18300:01:15
# Subtest: maps the dial with 0 at the top, clockwise, snapped to 15 min - 18400:01:15
ok 1 - maps the dial with 0 at the top, clockwise, snapped to 15 min - 18500:01:15
--- - 18600:01:15
duration_ms: 0.154862 - 18700:01:15
... - 18800:01:15
1..1 - 18900:01:15
ok 8 - Rules.angleToMinutes (cease-fire clock) - 19000:01:15
--- - 19100:01:15
duration_ms: 0.27579 - 19200:01:15
type: 'suite' - 19300:01:15
... - 19400:01:15
# Subtest: Rules time zones (host zone → viewer local) - 19500:01:15
# Subtest: converts wall-clock times between zones, DST-aware - 19600:01:15
ok 1 - converts wall-clock times between zones, DST-aware - 19700:01:15
--- - 19800:01:15
duration_ms: 3.633812 - 19900:01:15
... - 20000:01:15
# Subtest: uses the offset of the reference day around a DST switch - 20100:01:15
ok 2 - uses the offset of the reference day around a DST switch - 20200:01:15
--- - 20300:01:15
duration_ms: 0.215857 - 20400:01:15
... - 20500:01:15
# Subtest: converts rules for a viewer; ranges may wrap midnight after conversion - 20600:01:15
ok 3 - converts rules for a viewer; ranges may wrap midnight after conversion - 20700:01:15
--- - 20800:01:15
duration_ms: 0.99185 - 20900:01:15
... - 21000:01:15
# Subtest: computes the cease-fire in the rules zone - 21100:01:15
ok 4 - computes the cease-fire in the rules zone - 21200:01:15
--- - 21300:01:15
duration_ms: 0.561369 - 21400:01:15
... - 21500:01:15
1..4 - 21600:01:15
ok 9 - Rules time zones (host zone → viewer local) - 21700:01:15
--- - 21800:01:15
duration_ms: 5.55225 - 21900:01:15
type: 'suite' - 22000:01:15
... - 22100:01:15
1..9 - 22200:01:15
# tests 30 - 22300:01:15
# suites 9 - 22400:01:15
# pass 30 - 22500:01:15
# fail 0 - 22600:01:15
# cancelled 0 - 22700:01:15
# skipped 0 - 22800:01:15
# todo 0 - 22900:01:15
# duration_ms 243.649437 - 23000:01:15
auth-config ok - 23100:01:15
Engine: grid suggestion and placement - 23200:01:15
ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2)) - 23300:01:15
ok 2 players → 7 (max(6+1, 3)) - 23400:01:15
ok 3 players → 8 (ceil(1.5)=2, max(8, 4)) - 23500:01:15
ok 6 players → 9 (max(6+3, 7)) - 23600:01:15
ok 9 players → 11 (ceil(4.5)=5, max(11, 10)) - 23700:01:15
ok 10 players → 11 (max(6+5, 11)) - 23800:01:15
ok 14 players → 15 (max(6+7, 15)) - 23900:01:15
ok 16 players → 17 - 24000:01:15
ok capped at MAX_GRID 24 - 24100:01:15
ok gridSize aliases suggestedGrid - 24200:01:15
ok clamp below min → 6 - 24300:01:15
ok clamp above max → 24 - 24400:01:15
ok clamp mid unchanged - 24500:01:15
ok 6×6 fits 2 - 24600:01:15
ok 6×6 has enough tiles for 16 - 24700:01:15
ok below MIN_GRID does not fit - 24800:01:15
ok above MAX_GRID does not fit - 24900:01:15
ok 6×6 max inset 1 (leaves 4×4, min arena 3) - 25000:01:15
ok 7×7 max inset 2 (leaves 3×3) - 25100:01:15
ok 4 starting positions - 25200:01:15
ok starting positions are unique - 25300:01:15
ok start in bounds 3,1 - 25400:01:15
ok start in bounds 4,3 - 25500:01:15
ok start in bounds 3,4 - 25600:01:15
ok start in bounds 1,3 - 25700:01:15
Engine: Chebyshev range - 25800:01:15
ok diagonal 2 is range 2 - 25900:01:15
ok orthogonal 2 is range 2 - 26000:01:15
ok same tile is 0 - 26100:01:15
Engine: midnight Amsterdam - 26200:01:15
ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00 - 26300:01:15
ok at exactly 00:00, next is tomorrow - 26400:01:15
ok DST: next midnight still 00:00: 2026-03-29 00:00:00 - 26500:01:15
Engine: lobby and start - 26600:01:15
ok new lobby - 26700:01:15
ok jury default ON - 26800:01:15
ok shrink default OFF - 26900:01:15
ok shrink interval default 7 - 27000:01:15
ok ceasefire default OFF - 27100:01:15
ok ceasefire ranges empty by default - 27200:01:15
ok vis_shots default public - 27300:01:15
ok vis_gifts default public - 27400:01:15
ok vis_ap default public - 27500:01:15
ok vis_range default public - 27600:01:15
ok vis_lives default public - 27700:01:15
ok ap_loot default OFF - 27800:01:15
ok ap_time default 00:00 - 27900:01:15
ok lobby suggested grid 7 for 1 player - 28000:01:15
ok grid_auto default ON - 28100:01:15
ok game.grid mirrors suggestion in lobby - 28200:01:15
ok host is creator - 28300:01:15
ok start alone: min_players - 28400:01:15
ok 2 players - 28500:01:15
ok non-host cannot start - 28600:01:15
ok started - 28700:01:15
ok auto grid for 2 players is 7 - 28800:01:15
ok start with 1 AP - 28900:01:15
ok start with 3 lives - 29000:01:15
ok start with range 2 - 29100:01:15
ok not overlapping - 29200:01:15
ok next AP at next midnight: 2026-11-14 00:00:00 - 29300:01:15
Engine: move, blocked, AP - 29400:01:15
ok Alice has at least one move - 29500:01:15
ok moved - 29600:01:15
ok spent 1 AP - 29700:01:15
ok move event - 29800:01:15
ok move is a spend tick - 29900:01:15
ok no AP: invalid_move - 30000:01:15
Engine: shoot and death and win - 30100:01:15
ok Bob is in range 2 (actually dist 1) - 30200:01:15
ok Bob has 2 lives - 30300:01:15
ok Bob is dead - 30400:01:15
ok game finished - 30500:01:15
ok Alice wins - 30600:01:15
ok death event - 30700:01:15
ok win event - 30800:01:15
Engine: give AP and upgrade - 30900:01:15
ok Alice spent 2 - 31000:01:15
ok Bob received 2 - 31100:01:15
ok bad_give - 31200:01:15
ok range is now 3 - 31300:01:15
ok upgrade costs 1 - 31400:01:15
Engine: out of range and occupied - 31500:01:15
ok Bob at (5,5) is out of range 2 from (0,0) - 31600:01:15
ok out_of_range - 31700:01:15
ok cannot move onto Bob - 31800:01:15
Engine: surrender - 31900:01:15
ok Bob surrendered - 32000:01:15
ok flagged surrendered - 32100:01:15
ok Alice wins after surrender - 32200:01:15
Engine: daily AP grant - 32300:01:15
ok day is 1 - 32400:01:15
ok Alice got 1 AP - 32500:01:15
ok Bob got 1 AP - 32600:01:15
ok caught up to day 3, day=3 - 32700:01:15
ok 3 AP after 3 days (started 0): 3 - 32800:01:15
Engine: jury - 32900:01:15
ok still running with 2 alive - 33000:01:15
ok c voted a - 33100:01:15
ok d changed vote to b - 33200:01:15
ok living cannot vote - 33300:01:15
ok Alice (living) has no vote - 33400:01:15
ok Charlie sees own vote - 33500:01:15
ok votes not in present payload - 33600:01:15
ok Alice got 1+1 (tie): 2 - 33700:01:15
ok Bob got 1+1 (tie): 2 - 33800:01:15
ok votes reset after distribution - 33900:01:15
ok Alice unique jury winner: 2 - 34000:01:15
ok Bob only regular 1: 1 - 34100:01:15
ok jury off: cannot_vote - 34200:01:15
Engine: shrinking arena - 34300:01:15
ok host-chosen 6×6 - 34400:01:15
ok shrink in 2 days (interval 2, day 0): 2 - 34500:01:15
ok day 1 - 34600:01:15
ok no shrink on day 1 - 34700:01:15
ok Alice still on (0,0) - 34800:01:15
ok Alice still 3 lives - 34900:01:15
ok shrink in 1 day - 35000:01:15
ok day 2 - 35100:01:15
ok inset is 1 - 35200:01:15
ok Alice lost 1 life: 2 - 35300:01:15
ok Alice pushed inward to passable 1,1 - 35400:01:15
ok not onto Bob - 35500:01:15
ok Bob unhurt in centre - 35600:01:15
ok Alice got day-1 and day-2 AP after surviving shrink: 2 - 35700:01:15
ok legal move 1,2 is passable - 35800:01:15
ok legal move 2,1 is passable - 35900:01:15
ok does not shrink past max inset: 1 - 36000:01:15
ok no upcoming shrink at max - 36100:01:15
Engine: shrink kills and crush and draw - 36200:01:15
ok Alice died on shrink (1 life) - 36300:01:15
ok Bob died on shrink (1 life) - 36400:01:15
ok finished - 36500:01:15
ok draw when both die in the same shrink - 36600:01:15
Engine: notes and chat privacy - 36700:01:15
ok Alice sees her note on Bob - 36800:01:15
ok Bob does not see Alice’s note - 36900:01:15
ok Alice sees chat - 37000:01:15
ok Bob sees chat - 37100:01:15
Engine: modular rule flags - 37200:01:15
ok jury "0" is false - 37300:01:15
ok shrink "1" is true - 37400:01:15
ok interval clamped to max 30: 30 - 37500:01:15
ok ceasefire "1" is true - 37600:01:15
Engine: cease-fire ranges and midnight wrap - 37700:01:15
ok 2 valid ranges: 2 - 37800:01:15
ok sorted, first is 12:00 - 37900:01:15
ok wrap range kept - 38000:01:15
ok 23:30 is cease-fire (wrap) - 38100:01:15
ok ends at 06:00 next day: 2026-11-14 06:00 - 38200:01:15
ok Attack disabled during cease-fire - 38300:01:15
ok legal.ceasefire true - 38400:01:15
ok non-shoot actions still considered - 38500:01:15
ok can still move during cease-fire - 38600:01:15
ok error code ceasefire: ceasefire - 38700:01:15
ok 06:00 exactly is not cease-fire (end exclusive) - 38800:01:15
ok next cease-fire at 12:00: 12:00 - 38900:01:15
ok 12:30 is cease-fire - 39000:01:15
ok ends 13:00: 13:00 - 39100:01:15
ok 15:00 is free - 39200:01:15
ok until 22:00: 2026-11-14 22:00 - 39300:01:15
ok can shoot when not in cease-fire - 39400:01:15
ok shot landed outside cease-fire - 39500:01:15
ok 21:59 is free - 39600:01:15
ok 60 seconds until cease-fire: 60 - 39700:01:15
ok 05:59 still cease-fire - 39800:01:15
ok 60 seconds left in cease-fire: 60 - 39900:01:15
Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00) - 40000:01:15
ok 01:00 CEST-transition day is cease-fire - 40100:01:15
ok ends 04:00: 2026-03-29 04:00 - 40200:01:15
ok spring-forward 01:00-04:00 is 2 real hours: 7200 - 40300:01:15
ok 03:00 (after the jump) is still cease-fire - 40400:01:15
ok 1 hour left at 03:00: 3600 - 40500:01:15
ok 00:30 is free - 40600:01:15
ok 30 min until 01:00: 1800 - 40700:01:15
Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00) - 40800:01:15
ok 01:00 fall-back day is cease-fire - 40900:01:15
ok ends 03:30: 2026-10-25 03:30 - 41000:01:15
ok fall-back 01:00-03:30 is 3.5 real hours: 12600 - 41100:01:15
ok first 02:15 (still DST) is cease-fire - 41200:01:15
ok second 02:15 (CET) is still cease-fire - 41300:01:15
ok 03:30 exactly is free (end exclusive) - 41400:01:15
Engine: cease-fire off or empty ranges - 41500:01:15
ok rule off → no info (ranges ignored) - 41600:01:15
ok on but empty ranges → treated as no cease-fire - 41700:01:15
Engine: overlapping ranges merge for countdown - 41800:01:15
ok merged overlapping ends at 13:00: 13:00 - 41900:01:15
Engine: visibility defaults and invalid values fall back to public - 42000:01:15
ok bad vis_shots → public - 42100:01:15
ok bad vis_gifts → public - 42200:01:15
ok bad vis_ap → public - 42300:01:15
ok bad vis_range → public - 42400:01:15
ok bad vis_lives → public - 42500:01:15
ok accepts elim_known_target - 42600:01:15
ok accepts anonymous - 42700:01:15
ok accepts vis_ap within_range - 42800:01:15
ok accepts known_in_range - 42900:01:15
ok accepts vis_lives within_range - 43000:01:15
ok accepts manual grid 14 - 43100:01:15
ok still accepts hidden - 43200:01:15
ok unknown vis_ap/lives values → public - 43300:01:15
Engine: vis shots — public (everyone sees, including lives_left when lives public) - 43400:01:15
ok shooter sees public shot - 43500:01:15
ok target sees public shot - 43600:01:15
ok third party sees public shot - 43700:01:15
ok third party sees shooter id - 43800:01:15
ok public lives_left on shot - 43900:01:15
ok damage is 1 - 44000:01:15
ok public lives in state - 44100:01:15
Engine: vis shots — elim_public (non-elim hidden from third party, visible to target) - 44200:01:15
ok shooter sees non-elim - 44300:01:15
ok target sees non-elim under elim_public - 44400:01:15
ok third party does not see non-elim - 44500:01:15
ok no death on non-elim - 44600:01:15
ok third party sees only the eliminating shot: 1 - 44700:01:15
ok the visible shot is the kill - 44800:01:15
ok third party sees death - 44900:01:15
ok elim_public death includes killer - 45000:01:15
ok target sees killer - 45100:01:15
ok death/alive is always public - 45200:01:15
Engine: vis shots — known_target (others never see the shot, death without by) - 45300:01:15
ok shooter sees known_target shot - 45400:01:15
ok target sees known_target shot - 45500:01:15
ok third party does not see known_target shot - 45600:01:15
ok third party still sees that B died - 45700:01:15
ok killer stripped for third party under known_target - 45800:01:15
ok target still sees who shot them - 45900:01:15
Engine: vis shots — elim_known_target (non-elim hidden even from target) - 46000:01:15
ok shooter sees non-elim under elim_known_target - 46100:01:15
ok target does NOT see non-elim shot (must deduce) - 46200:01:15
ok third party does not see non-elim - 46300:01:15
ok target still sees own lives drop - 46400:01:15
ok lives still public in this game (default) - 46500:01:15
ok target sees only the eliminating shot - 46600:01:15
ok elim shot names the shooter for the target - 46700:01:15
ok third party never sees shots under elim_known_target - 46800:01:15
ok third party death has no by - 46900:01:15
Engine: vis shots + hidden lives — lives_left stripped except for the target - 47000:01:15
ok shooter does not get target lives_left - 47100:01:15
ok target sees own lives_left - 47200:01:15
ok third party does not get lives_left - 47300:01:15
ok shooter still sees damage 1 - 47400:01:15
ok own lives always visible - 47500:01:15
ok other lives hidden from shooter - 47600:01:15
ok other lives hidden from third party - 47700:01:15
ok target sees own lives - 47800:01:15
ok alive flag still present when lives hidden - 47900:01:15
Engine: vis gifts — public, known_recipient, anonymous - 48000:01:15
ok public gift visible to third party with giver and amount - 48100:01:15
ok giver sees own gift - 48200:01:15
ok recipient sees giver - 48300:01:15
ok third party does not see known_recipient gift - 48400:01:15
ok giver sees full anonymous gift in their own log - 48500:01:15
ok recipient sees an anonymous gift event - 48600:01:15
ok event marked anonymous - 48700:01:15
ok giver id stripped for recipient - 48800:01:15
ok recipient sees the AP amount - 48900:01:15
ok recipient is named as target - 49000:01:15
ok third party does not see anonymous gift - 49100:01:15
ok recipient AP actually increased - 49200:01:15
ok stored event still has the giver (present does not mutate) - 49300:01:15
ok sanity - 49400:01:15
ok clone is independent of stored event - 49500:01:15
Engine: vis AP totals hidden - 49600:01:15
ok own AP visible when hidden rule is on - 49700:01:15
ok other AP hidden - 49800:01:15
ok third party does not see A’s AP - 49900:01:15
ok daily event present - 50000:01:15
ok hidden AP: only own grant in daily event: {"a":1} - 50100:01:15
ok jury vote counts stripped - 50200:01:15
Engine: vis range — hidden and known_in_range - 50300:01:15
ok own range after upgrade - 50400:01:15
ok other range hidden - 50500:01:15
ok upgrader sees own upgrade - 50600:01:15
ok third party does not see hidden upgrade - 50700:01:15
ok B is within A’s range, sees A’s range - 50800:01:15
ok A is within B’s range, sees B’s range - 50900:01:15
ok C is outside A’s range (dist 3 > 2) - 51000:01:15
ok A is outside C’s range (dist 3 > 2) - 51100:01:15
ok C always sees own range - 51200:01:15
ok after upgrade, C is within A’s range and sees it - 51300:01:15
ok C now also sees the upgrade event - 51400:01:15
ok A is still outside C’s range 2 - 51500:01:15
Engine: movement is always public, even with everything hidden - 51600:01:15
ok move is public - 51700:01:15
ok move names the player and destination - 51800:01:15
ok new position is in the public state - 51900:01:15
ok AP still hidden after the move - 52000:01:15
ok lives still hidden - 52100:01:15
ok range still hidden - 52200:01:15
Engine: present() does not leak hidden keys with real values - 52300:01:15
ok JSON-facing ap is null - 52400:01:15
ok JSON-facing lives is null - 52500:01:15
ok JSON-facing range is null - 52600:01:15
ok no numeric secrets for a - 52700:01:15
ok no numeric secrets for b - 52800:01:15
Engine: nextDistribution (per-lobby AP time) and DST - 52900:01:15
ok 14:00 → today 15:00: 2026-11-14 15:00:00 - 53000:01:15
ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 53100:01:15
ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00 - 53200:01:15
ok 00:00 path equals nextMidnight - 53300:01:15
ok ap_time normalised to HH:MM - 53400:01:15
ok bad ap_time → 00:00 - 53500:01:15
ok 24:00 invalid → 00:00 - 53600:01:15
ok DST spring: 02:30 candidate is strictly after 01:30 - 53700:01:15
ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST - 53800:01:15
ok DST spring: 04:00 exact: 2026-03-29 04:00:00 - 53900:01:15
ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST - 54000:01:15
Engine: AP at a non-midnight lobby time - 54100:01:15
ok start schedules 15:00 - 54200:01:15
ok day increments at 15:00 - 54300:01:15
ok AP granted at 15:00 - 54400:01:15
ok one second before 15:00: no grant - 54500:01:15
Engine: AP loot default off; on only for eliminating shots - 54600:01:15
ok B is dead - 54700:01:15
ok dead B has 0 AP - 54800:01:15
ok loot off: A spent 1, did not receive B’s 4 (has 2) - 54900:01:15
ok loot off: no loot field on the kill shot - 55000:01:15
ok loot on: B dead, AP zeroed - 55100:01:15
ok loot on: A spent 1 (3→2) then looted 4 → 6: 6 - 55200:01:15
ok shooter sees loot amount - 55300:01:15
ok public AP: third party sees loot - 55400:01:15
ok shooter sees loot even if AP totals hidden - 55500:01:15
ok third party does not see loot amount when AP is hidden - 55600:01:15
ok shooter sees own AP including loot - 55700:01:15
ok third party still does not see A’s total - 55800:01:15
ok non-elim: no loot - 55900:01:15
ok non-elim: B keeps AP - 56000:01:15
ok B surrendered - 56100:01:15
ok surrender does not transfer AP - 56200:01:15
ok surrendered AP is zeroed, not looted - 56300:01:15
Engine: vis lives+AP within_range uses the VIEWER's range - 56400:01:15
ok A always sees own lives/AP - 56500:01:15
ok A sees B (dist 1 ≤ A’s range 2) - 56600:01:15
ok A does not see C (dist 3 > A’s range 2) - 56700:01:15
ok B sees A (dist 1 ≤ B’s range 2) - 56800:01:15
ok B does not see C (dist 3 > 2) - 56900:01:15
ok C sees neither A - 57000:01:15
ok C sees neither B - 57100:01:15
ok C sees own lives - 57200:01:15
ok within_range lives/AP: A still cannot see C (C is outside A’s range) - 57300:01:15
ok within_range lives/AP: C can see A (A is inside C’s range 4) - 57400:01:15
ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP - 57500:01:15
ok known_in_range: C cannot see A’s range (C is outside A’s range 2) - 57600:01:15
ok A range is 3 - 57700:01:15
ok after A upgrades to 3, A sees C’s lives/AP - 57800:01:15
ok A sees lives_left (B in A’s range) - 57900:01:15
ok B sees own lives_left - 58000:01:15
ok C does not see lives_left (B outside C’s range) - 58100:01:15
ok C still sees damage on a public shot - 58200:01:15
ok C does not see B’s lives in state - 58300:01:15
ok A’s daily grants: own + B, not C: {"a":1,"b":1} - 58400:01:15
ok C’s daily grants: only own: {"c":1} - 58500:01:15
ok A sees loot on eliminating shot - 58600:01:15
ok C sees the public kill shot - 58700:01:15
ok C does not see loot (A is outside C’s range) - 58800:01:15
ok shrink event present for A - 58900:01:15
ok stored shrink has hurt list - 59000:01:15
ok A’s filtered hurt id a is someone whose lives A may see - 59100:01:15
Engine: lobby grid option — auto suggestion and manual lock - 59200:01:15
ok new lobby 7 and auto - 59300:01:15
ok 2 players still 7 - 59400:01:15
ok 3rd player bumps to 8 (ceil(1.5)=2) - 59500:01:15
ok 4 players stay 8 - 59600:01:15
ok 5th player bumps to 9 - 59700:01:15
ok 10 players - 59800:01:15
ok 10 players → 11 - 59900:01:15
ok 11th player bumps suggestion to 12 - 60000:01:15
ok leave drops suggestion back to 11 - 60100:01:15
ok manual 14 - 60200:01:15
ok 16 players - 60300:01:15
ok manual 14 stays at 16 players (suggestion would be 17) - 60400:01:15
ok starts on host’s 14×14 - 60500:01:15
ok all 16 placed - 60600:01:15
ok placed in bounds - 60700:01:15
ok unique start 7,1 - 60800:01:15
ok placed in bounds - 60900:01:15
ok unique start 9,1 - 61000:01:15
ok placed in bounds - 61100:01:15
ok unique start 10,3 - 61200:01:15
ok placed in bounds - 61300:01:15
ok unique start 12,4 - 61400:01:15
ok placed in bounds - 61500:01:15
ok unique start 12,7 - 61600:01:15
ok placed in bounds - 61700:01:15
ok unique start 12,9 - 61800:01:15
ok placed in bounds - 61900:01:15
ok unique start 10,10 - 62000:01:15
ok placed in bounds - 62100:01:15
ok unique start 9,12 - 62200:01:15
ok placed in bounds - 62300:01:15
ok unique start 7,12 - 62400:01:15
ok placed in bounds - 62500:01:15
ok unique start 4,12 - 62600:01:15
ok placed in bounds - 62700:01:15
ok unique start 3,10 - 62800:01:15
ok placed in bounds - 62900:01:15
ok unique start 1,9 - 63000:01:15
ok placed in bounds - 63100:01:15
ok unique start 1,7 - 63200:01:15
ok placed in bounds - 63300:01:15
ok unique start 1,4 - 63400:01:15
ok placed in bounds - 63500:01:15
ok unique start 3,3 - 63600:01:15
ok placed in bounds - 63700:01:15
ok unique start 4,1 - 63800:01:15
ok host may start a 6×6 - 63900:01:15
ok auto start uses suggested 7 for 2 players - 64000:01:15
Engine: rules time zone (host's IANA zone) - 64100:01:15
ok tz default Europe/Amsterdam - 64200:01:15
ok accepts America/New_York - 64300:01:15
ok unknown zone → Amsterdam - 64400:01:15
ok raw offset rejected (no DST rules) - 64500:01:15
ok UTC accepted - 64600:01:15
ok NY 09:00 in winter = 14:00 UTC: 2026-11-14 14:00 - 64700:01:15
ok NY 09:00 in summer (DST) = 13:00 UTC: 2026-07-14 13:00 - 64800:01:15
ok NY spring-forward: 09:00→09:00 is 23 real hours - 64900:01:15
ok Tokyo 08:00 = 23:00 UTC - 65000:01:15
ok cease-fire active at 23:30 Tokyo - 65100:01:15
ok not active at 23:30 Amsterdam (07:30 Tokyo) - 65200:01:15
ok Tokyo cease-fire ends 06:00 next day (midnight wrap) - 65300:01:15
ok present() reports the rules zone - 65400:01:15
Engine: no hearts, no buying lives (options do not exist) - 65500:01:15
ok hearts / buy-lives are not accepted rule keys - 65600:01:15
- 65700:01:15
Engine passed: 387 Failed: 0 - 65800:01:15
Store: lobby, join, start, actions, sync - 65900:01:15
ok create lobby - 66000:01:15
ok status lobby - 66100:01:15
ok 6-char code: 6ZPA9M - 66200:01:15
ok jury on - 66300:01:15
ok shrink off - 66400:01:15
ok ceasefire off - 66500:01:15
ok start alone refused - 66600:01:15
ok Bob joined - 66700:01:15
ok same lobby - 66800:01:15
ok re-join is idempotent - 66900:01:15
ok non-host refused - 67000:01:15
ok non-host setRules refused: not_host - 67100:01:15
ok not_host maps to HTTP 403 - 67200:01:15
ok rules unchanged after refused non-host update - 67300:01:15
ok other status codes unchanged - 67400:01:15
ok host set shrink on - 67500:01:15
ok interval 3 - 67600:01:15
ok ceasefire on - 67700:01:15
ok one range stored - 67800:01:15
ok started - 67900:01:15
ok 1 AP at start - 68000:01:15
ok view running - 68100:01:15
ok legal moves in view - 68200:01:15
ok has version - 68300:01:15
ok has server_now - 68400:01:15
ok timezone - 68500:01:15
ok unchanged sync - 68600:01:15
ok no full state when unchanged - 68700:01:15
ok lightweight fields present - 68800:01:15
ok Alice can move - 68900:01:15
ok AP spent - 69000:01:15
ok Bob sees a change - 69100:01:15
ok full state on change - 69200:01:15
ok Bob sees Alice’s new position - 69300:01:15
ok Alice sees her note - 69400:01:15
ok Bob does not - 69500:01:15
ok Alice sees message - 69600:01:15
ok Bob sees message - 69700:01:15
ok join after start refused - 69800:01:15
ok locale stored - 69900:01:15
ok locale read - 70000:01:15
ok zh-Hans normalised to zh - 70100:01:15
ok listed running game - 70200:01:15
ok Dan wins after Cara surrenders - 70300:01:15
ok unknown_code - 70400:01:15
ok bad shoot refused: out_of_range - 70500:01:15
ok AP unchanged after refused action (rollback) - 70600:01:15
safeNext - 70700:01:15
ok null next - 70800:01:15
ok empty next - 70900:01:15
ok plain path - 71000:01:15
ok join query with = - 71100:01:15
ok ampersand - 71200:01:15
ok hash fragment - 71300:01:15
ok rejects scheme - 71400:01:15
ok rejects protocol-relative - 71500:01:15
ok rejects absolute path - 71600:01:15
ok rejects backslash - 71700:01:15
- 71800:01:15
Total passed: 444 Failed: 0