BlueGit

projects-timfalken-com allianties

unit_tests

Pipelines Pipeline Editor

Passed Started 4 days ago by timfa

Raw

Running on Steve

Log timestamps in UTC.

  1. 123:01:25Using docker image node:20-bookworm ...
  2. 223:01:25Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
  1. 323:01:25Running on Steve via BlueGit...
  2. 423:01:25Working directory: /workspace
  3. 523:01:25Pipeline #706, job #2741
  1. 623:01:27debconf: delaying package configuration, since apt-utils is not installed
  2. 723:01:32TAP version 13
  3. 823:01:32# Subtest: deploy_guard
  4. 923:01:32 # Subtest: expands $timftproot and ${timftproot} and collapses double slashes
  5. 1023:01:32 ok 1 - expands $timftproot and ${timftproot} and collapses double slashes
  6. 1123:01:32 ---
  7. 1223:01:32 duration_ms: 44.260604
  8. 1323:01:32 ...
  9. 1423:01:32 # Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf
  10. 1523:01:32 ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf
  11. 1623:01:32 ---
  12. 1723:01:32 duration_ms: 39.528315
  13. 1823:01:32 ...
  14. 1923:01:32 # Subtest: the CLI exits 0 for a good path and does not print the path
  15. 2023:01:32 ok 3 - the CLI exits 0 for a good path and does not print the path
  16. 2123:01:32 ---
  17. 2223:01:32 duration_ms: 14.40986
  18. 2323:01:32 ...
  19. 2423:01:32 1..3
  20. 2523:01:32ok 1 - deploy_guard
  21. 2623:01:32 ---
  22. 2723:01:32 duration_ms: 99.377271
  23. 2823:01:32 type: 'suite'
  24. 2923:01:32 ...
  25. 3023:01:32# Subtest: assert_safe_target
  26. 3123:01:32 # Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names
  27. 3223:01:32 ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names
  28. 3323:01:32 ---
  29. 3423:01:32 duration_ms: 24.881768
  30. 3523:01:32 ...
  31. 3623:01:32 # Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  32. 3723:01:32 ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  33. 3823:01:32 ---
  34. 3923:01:32 duration_ms: 22.728826
  35. 4023:01:32 ...
  36. 4123:01:32 1..2
  37. 4223:01:32ok 2 - assert_safe_target
  38. 4323:01:32 ---
  39. 4423:01:32 duration_ms: 47.848764
  40. 4523:01:32 type: 'suite'
  41. 4623:01:32 ...
  42. 4723:01:32# Subtest: auth_config_php
  43. 4823:01:32 # Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  44. 4923:01:32 ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  45. 5023:01:32 ---
  46. 5123:01:32 duration_ms: 46.594407
  47. 5223:01:32 ...
  48. 5323:01:32 1..1
  49. 5423:01:32ok 3 - auth_config_php
  50. 5523:01:32 ---
  51. 5623:01:32 duration_ms: 46.894955
  52. 5723:01:32 type: 'suite'
  53. 5823:01:32 ...
  54. 5923:01:32# Subtest: i18n catalog
  55. 6023:01:32 # Subtest: lists every supported locale
  56. 6123:01:32 ok 1 - lists every supported locale
  57. 6223:01:32 ---
  58. 6323:01:32 duration_ms: 1.08099
  59. 6423:01:32 ...
  60. 6523:01:32 # Subtest: has the same non-empty keys in every language
  61. 6623:01:32 ok 2 - has the same non-empty keys in every language
  62. 6723:01:32 ---
  63. 6823:01:32 duration_ms: 1.837897
  64. 6923:01:32 ...
  65. 7023:01:32 # Subtest: keeps English placeholders in every translation
  66. 7123:01:32 ok 3 - keeps English placeholders in every translation
  67. 7223:01:32 ---
  68. 7323:01:32 duration_ms: 2.955206
  69. 7423:01:32 ...
  70. 7523:01:32 # Subtest: never translates the game name Allianties
  71. 7623:01:32 ok 4 - never translates the game name Allianties
  72. 7723:01:32 ---
  73. 7823:01:32 duration_ms: 0.218763
  74. 7923:01:32 ...
  75. 8023:01:32 # Subtest: maps every known server error code
  76. 8123:01:32 ok 5 - maps every known server error code
  77. 8223:01:32 ---
  78. 8323:01:32 duration_ms: 0.161415
  79. 8423:01:32 ...
  80. 8523:01:32 1..5
  81. 8623:01:32ok 4 - i18n catalog
  82. 8723:01:32 ---
  83. 8823:01:32 duration_ms: 7.284434
  84. 8923:01:32 type: 'suite'
  85. 9023:01:32 ...
  86. 9123:01:32# Subtest: Rules grid and Chebyshev
  87. 9223:01:32 # Subtest: scales the board with player count
  88. 9323:01:32 ok 1 - scales the board with player count
  89. 9423:01:32 ---
  90. 9523:01:32 duration_ms: 0.649525
  91. 9623:01:32 ...
  92. 9723:01:32 # Subtest: uses Chebyshev distance (diagonals included)
  93. 9823:01:32 ok 2 - uses Chebyshev distance (diagonals included)
  94. 9923:01:32 ---
  95. 10023:01:32 duration_ms: 0.129424
  96. 10123:01:32 ...
  97. 10223:01:32 # Subtest: passable accounts for arena inset
  98. 10323:01:32 ok 3 - passable accounts for arena inset
  99. 10423:01:32 ---
  100. 10523:01:32 duration_ms: 0.143752
  101. 10623:01:32 ...
  102. 10723:01:32 1..3
  103. 10823:01:32ok 5 - Rules grid and Chebyshev
  104. 10923:01:32 ---
  105. 11023:01:32 duration_ms: 1.870048
  106. 11123:01:32 type: 'suite'
  107. 11223:01:32 ...
  108. 11323:01:32# Subtest: Rules cease-fire, midnight wrap and DST
  109. 11423:01:32 # Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day
  110. 11523:01:32 ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day
  111. 11623:01:32 ---
  112. 11723:01:32 duration_ms: 47.324435
  113. 11823:01:32 ...
  114. 11923:01:32 # Subtest: treats the end timestamp as exclusive
  115. 12023:01:32 ok 2 - treats the end timestamp as exclusive
  116. 12123:01:32 ---
  117. 12223:01:32 duration_ms: 11.575982
  118. 12323:01:32 ...
  119. 12423:01:32 # Subtest: handles a second daytime range and countdown seconds
  120. 12523:01:32 ok 3 - handles a second daytime range and countdown seconds
  121. 12623:01:32 ---
  122. 12723:01:32 duration_ms: 29.356411
  123. 12823:01:32 ...
  124. 12923:01:32 # Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  125. 13023:01:32 ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  126. 13123:01:32 ---
  127. 13223:01:32 duration_ms: 16.581016
  128. 13323:01:32 ...
  129. 13423:01:32 # Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  130. 13523:01:32 ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  131. 13623:01:32 ---
  132. 13723:01:32 duration_ms: 18.841542
  133. 13823:01:32 ...
  134. 13923:01:32 # Subtest: is inactive when the rule is off or ranges are empty
  135. 14023:01:32 ok 6 - is inactive when the rule is off or ranges are empty
  136. 14123:01:32 ---
  137. 14223:01:32 duration_ms: 1.228047
  138. 14323:01:32 ...
  139. 14423:01:32 # Subtest: merges overlapping ranges for the countdown
  140. 14523:01:32 ok 7 - merges overlapping ranges for the countdown
  141. 14623:01:32 ---
  142. 14723:01:32 duration_ms: 13.054051
  143. 14823:01:32 ...
  144. 14923:01:32 # Subtest: formats HH:MM:SS countdowns
  145. 15023:01:32 ok 8 - formats HH:MM:SS countdowns
  146. 15123:01:32 ---
  147. 15223:01:32 duration_ms: 0.181563
  148. 15323:01:32 ...
  149. 15423:01:32 1..8
  150. 15523:01:32ok 6 - Rules cease-fire, midnight wrap and DST
  151. 15623:01:32 ---
  152. 15723:01:32 duration_ms: 139.078222
  153. 15823:01:32 type: 'suite'
  154. 15923:01:32 ...
  155. 16023:01:32# Subtest: Rules timelineIndex (nearest event)
  156. 16123:01:32 # Subtest: returns 0 when there are no spends
  157. 16223:01:32 ok 1 - returns 0 when there are no spends
  158. 16323:01:32 ---
  159. 16423:01:32 duration_ms: 0.178186
  160. 16523:01:32 ...
  161. 16623:01:32 # Subtest: maps 0 to the start and 1 to live (after the last spend)
  162. 16723:01:32 ok 2 - maps 0 to the start and 1 to live (after the last spend)
  163. 16823:01:32 ---
  164. 16923:01:32 duration_ms: 0.157097
  165. 17023:01:32 ...
  166. 17123:01:32 # Subtest: jumps to the nearest event along the bar
  167. 17223:01:32 ok 3 - jumps to the nearest event along the bar
  168. 17323:01:32 ---
  169. 17423:01:32 duration_ms: 0.123253
  170. 17523:01:32 ...
  171. 17623:01:32 1..3
  172. 17723:01:32ok 7 - Rules timelineIndex (nearest event)
  173. 17823:01:32 ---
  174. 17923:01:32 duration_ms: 0.631882
  175. 18023:01:32 type: 'suite'
  176. 18123:01:32 ...
  177. 18223:01:321..7
  178. 18323:01:32# tests 25
  179. 18423:01:32# suites 7
  180. 18523:01:32# pass 25
  181. 18623:01:32# fail 0
  182. 18723:01:32# cancelled 0
  183. 18823:01:32# skipped 0
  184. 18923:01:32# todo 0
  185. 19023:01:32# duration_ms 236.915577
  186. 19123:01:32auth-config ok
  187. 19223:01:32Engine: grid and placement
  188. 19323:01:32 ok 2 players → 6×6
  189. 19423:01:33 ok 4 players → 6×6
  190. 19523:01:33 ok 8 players → 7×7 (ceil sqrt(48)=7)
  191. 19623:01:33 ok 12 players → 9×9 (ceil sqrt(72)=9)
  192. 19723:01:33 ok 6×6 max inset 1 (leaves 4×4, min arena 3)
  193. 19823:01:33 ok 7×7 max inset 2 (leaves 3×3)
  194. 19923:01:33 ok 4 starting positions
  195. 20023:01:33 ok starting positions are unique
  196. 20123:01:33 ok start in bounds 3,1
  197. 20223:01:33 ok start in bounds 4,3
  198. 20323:01:33 ok start in bounds 3,4
  199. 20423:01:33 ok start in bounds 1,3
  200. 20523:01:33Engine: Chebyshev range
  201. 20623:01:33 ok diagonal 2 is range 2
  202. 20723:01:33 ok orthogonal 2 is range 2
  203. 20823:01:33 ok same tile is 0
  204. 20923:01:33Engine: midnight Amsterdam
  205. 21023:01:33 ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00
  206. 21123:01:33 ok at exactly 00:00, next is tomorrow
  207. 21223:01:33 ok DST: next midnight still 00:00: 2026-03-29 00:00:00
  208. 21323:01:33Engine: lobby and start
  209. 21423:01:33 ok new lobby
  210. 21523:01:33 ok jury default ON
  211. 21623:01:33 ok shrink default OFF
  212. 21723:01:33 ok shrink interval default 7
  213. 21823:01:33 ok ceasefire default OFF
  214. 21923:01:33 ok ceasefire ranges empty by default
  215. 22023:01:33 ok vis_shots default public
  216. 22123:01:33 ok vis_gifts default public
  217. 22223:01:33 ok vis_ap default public
  218. 22323:01:33 ok vis_range default public
  219. 22423:01:33 ok vis_lives default public
  220. 22523:01:33 ok ap_loot default OFF
  221. 22623:01:33 ok ap_time default 00:00
  222. 22723:01:33 ok host is creator
  223. 22823:01:33 ok start alone: min_players
  224. 22923:01:33 ok 2 players
  225. 23023:01:33 ok non-host cannot start
  226. 23123:01:33 ok started
  227. 23223:01:33 ok grid 6
  228. 23323:01:33 ok start with 1 AP
  229. 23423:01:33 ok start with 3 lives
  230. 23523:01:33 ok start with range 2
  231. 23623:01:33 ok not overlapping
  232. 23723:01:33 ok next AP at next midnight: 2026-11-14 00:00:00
  233. 23823:01:33Engine: move, blocked, AP
  234. 23923:01:33 ok Alice has at least one move
  235. 24023:01:33 ok moved
  236. 24123:01:33 ok spent 1 AP
  237. 24223:01:33 ok move event
  238. 24323:01:33 ok move is a spend tick
  239. 24423:01:33 ok no AP: invalid_move
  240. 24523:01:33Engine: shoot and death and win
  241. 24623:01:33 ok Bob is in range 2 (actually dist 1)
  242. 24723:01:33 ok Bob has 2 lives
  243. 24823:01:33 ok Bob is dead
  244. 24923:01:33 ok game finished
  245. 25023:01:33 ok Alice wins
  246. 25123:01:33 ok death event
  247. 25223:01:33 ok win event
  248. 25323:01:33Engine: give AP and upgrade
  249. 25423:01:33 ok Alice spent 2
  250. 25523:01:33 ok Bob received 2
  251. 25623:01:33 ok bad_give
  252. 25723:01:33 ok range is now 3
  253. 25823:01:33 ok upgrade costs 1
  254. 25923:01:33Engine: out of range and occupied
  255. 26023:01:33 ok Bob at (5,5) is out of range 2 from (0,0)
  256. 26123:01:33 ok out_of_range
  257. 26223:01:33 ok cannot move onto Bob
  258. 26323:01:33Engine: surrender
  259. 26423:01:33 ok Bob surrendered
  260. 26523:01:33 ok flagged surrendered
  261. 26623:01:33 ok Alice wins after surrender
  262. 26723:01:33Engine: daily AP grant
  263. 26823:01:33 ok day is 1
  264. 26923:01:33 ok Alice got 1 AP
  265. 27023:01:33 ok Bob got 1 AP
  266. 27123:01:33 ok caught up to day 3, day=3
  267. 27223:01:33 ok 3 AP after 3 days (started 0): 3
  268. 27323:01:33Engine: jury
  269. 27423:01:33 ok still running with 2 alive
  270. 27523:01:33 ok c voted a
  271. 27623:01:33 ok d changed vote to b
  272. 27723:01:33 ok living cannot vote
  273. 27823:01:33 ok Alice (living) has no vote
  274. 27923:01:33 ok Charlie sees own vote
  275. 28023:01:33 ok votes not in present payload
  276. 28123:01:33 ok Alice got 1+1 (tie): 2
  277. 28223:01:33 ok Bob got 1+1 (tie): 2
  278. 28323:01:33 ok votes reset after distribution
  279. 28423:01:33 ok Alice unique jury winner: 2
  280. 28523:01:33 ok Bob only regular 1: 1
  281. 28623:01:33 ok jury off: cannot_vote
  282. 28723:01:33Engine: shrinking arena
  283. 28823:01:33 ok 6×6
  284. 28923:01:33 ok shrink in 2 days (interval 2, day 0): 2
  285. 29023:01:33 ok day 1
  286. 29123:01:33 ok no shrink on day 1
  287. 29223:01:33 ok Alice still on (0,0)
  288. 29323:01:33 ok Alice still 3 lives
  289. 29423:01:33 ok shrink in 1 day
  290. 29523:01:33 ok day 2
  291. 29623:01:33 ok inset is 1
  292. 29723:01:33 ok Alice lost 1 life: 2
  293. 29823:01:33 ok Alice pushed inward to passable 1,1
  294. 29923:01:33 ok not onto Bob
  295. 30023:01:33 ok Bob unhurt in centre
  296. 30123:01:33 ok Alice got day-1 and day-2 AP after surviving shrink: 2
  297. 30223:01:33 ok legal move 1,2 is passable
  298. 30323:01:33 ok legal move 2,1 is passable
  299. 30423:01:33 ok does not shrink past max inset: 1
  300. 30523:01:33 ok no upcoming shrink at max
  301. 30623:01:33Engine: shrink kills and crush and draw
  302. 30723:01:33 ok Alice died on shrink (1 life)
  303. 30823:01:33 ok Bob died on shrink (1 life)
  304. 30923:01:33 ok finished
  305. 31023:01:33 ok draw when both die in the same shrink
  306. 31123:01:33Engine: notes and chat privacy
  307. 31223:01:33 ok Alice sees her note on Bob
  308. 31323:01:33 ok Bob does not see Alice’s note
  309. 31423:01:33 ok Alice sees chat
  310. 31523:01:33 ok Bob sees chat
  311. 31623:01:33Engine: modular rule flags
  312. 31723:01:33 ok jury "0" is false
  313. 31823:01:33 ok shrink "1" is true
  314. 31923:01:33 ok interval clamped to max 30: 30
  315. 32023:01:33 ok ceasefire "1" is true
  316. 32123:01:33Engine: cease-fire ranges and midnight wrap
  317. 32223:01:33 ok 2 valid ranges: 2
  318. 32323:01:33 ok sorted, first is 12:00
  319. 32423:01:33 ok wrap range kept
  320. 32523:01:33 ok 23:30 is cease-fire (wrap)
  321. 32623:01:33 ok ends at 06:00 next day: 2026-11-14 06:00
  322. 32723:01:33 ok Attack disabled during cease-fire
  323. 32823:01:33 ok legal.ceasefire true
  324. 32923:01:33 ok non-shoot actions still considered
  325. 33023:01:33 ok can still move during cease-fire
  326. 33123:01:33 ok error code ceasefire: ceasefire
  327. 33223:01:33 ok 06:00 exactly is not cease-fire (end exclusive)
  328. 33323:01:33 ok next cease-fire at 12:00: 12:00
  329. 33423:01:33 ok 12:30 is cease-fire
  330. 33523:01:33 ok ends 13:00: 13:00
  331. 33623:01:33 ok 15:00 is free
  332. 33723:01:33 ok until 22:00: 2026-11-14 22:00
  333. 33823:01:33 ok can shoot when not in cease-fire
  334. 33923:01:33 ok shot landed outside cease-fire
  335. 34023:01:33 ok 21:59 is free
  336. 34123:01:33 ok 60 seconds until cease-fire: 60
  337. 34223:01:33 ok 05:59 still cease-fire
  338. 34323:01:33 ok 60 seconds left in cease-fire: 60
  339. 34423:01:33Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00)
  340. 34523:01:33 ok 01:00 CEST-transition day is cease-fire
  341. 34623:01:33 ok ends 04:00: 2026-03-29 04:00
  342. 34723:01:33 ok spring-forward 01:00-04:00 is 2 real hours: 7200
  343. 34823:01:33 ok 03:00 (after the jump) is still cease-fire
  344. 34923:01:33 ok 1 hour left at 03:00: 3600
  345. 35023:01:33 ok 00:30 is free
  346. 35123:01:33 ok 30 min until 01:00: 1800
  347. 35223:01:33Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00)
  348. 35323:01:33 ok 01:00 fall-back day is cease-fire
  349. 35423:01:33 ok ends 03:30: 2026-10-25 03:30
  350. 35523:01:33 ok fall-back 01:00-03:30 is 3.5 real hours: 12600
  351. 35623:01:33 ok first 02:15 (still DST) is cease-fire
  352. 35723:01:33 ok second 02:15 (CET) is still cease-fire
  353. 35823:01:33 ok 03:30 exactly is free (end exclusive)
  354. 35923:01:33Engine: cease-fire off or empty ranges
  355. 36023:01:33 ok rule off → no info (ranges ignored)
  356. 36123:01:33 ok on but empty ranges → treated as no cease-fire
  357. 36223:01:33Engine: overlapping ranges merge for countdown
  358. 36323:01:33 ok merged overlapping ends at 13:00: 13:00
  359. 36423:01:33Engine: visibility defaults and invalid values fall back to public
  360. 36523:01:33 ok bad vis_shots → public
  361. 36623:01:33 ok bad vis_gifts → public
  362. 36723:01:33 ok bad vis_ap → public
  363. 36823:01:33 ok bad vis_range → public
  364. 36923:01:33 ok bad vis_lives → public
  365. 37023:01:33 ok accepts elim_known_target
  366. 37123:01:33 ok accepts anonymous
  367. 37223:01:33 ok accepts hidden AP
  368. 37323:01:33 ok accepts known_in_range
  369. 37423:01:33 ok accepts hidden lives
  370. 37523:01:33Engine: vis shots — public (everyone sees, including lives_left when lives public)
  371. 37623:01:33 ok shooter sees public shot
  372. 37723:01:33 ok target sees public shot
  373. 37823:01:33 ok third party sees public shot
  374. 37923:01:33 ok third party sees shooter id
  375. 38023:01:33 ok public lives_left on shot
  376. 38123:01:33 ok damage is 1
  377. 38223:01:33 ok public lives in state
  378. 38323:01:33Engine: vis shots — elim_public (non-elim hidden from third party, visible to target)
  379. 38423:01:33 ok shooter sees non-elim
  380. 38523:01:33 ok target sees non-elim under elim_public
  381. 38623:01:33 ok third party does not see non-elim
  382. 38723:01:33 ok no death on non-elim
  383. 38823:01:33 ok third party sees only the eliminating shot: 1
  384. 38923:01:33 ok the visible shot is the kill
  385. 39023:01:33 ok third party sees death
  386. 39123:01:33 ok elim_public death includes killer
  387. 39223:01:33 ok target sees killer
  388. 39323:01:33 ok death/alive is always public
  389. 39423:01:33Engine: vis shots — known_target (others never see the shot, death without by)
  390. 39523:01:33 ok shooter sees known_target shot
  391. 39623:01:33 ok target sees known_target shot
  392. 39723:01:33 ok third party does not see known_target shot
  393. 39823:01:33 ok third party still sees that B died
  394. 39923:01:33 ok killer stripped for third party under known_target
  395. 40023:01:33 ok target still sees who shot them
  396. 40123:01:33Engine: vis shots — elim_known_target (non-elim hidden even from target)
  397. 40223:01:33 ok shooter sees non-elim under elim_known_target
  398. 40323:01:33 ok target does NOT see non-elim shot (must deduce)
  399. 40423:01:33 ok third party does not see non-elim
  400. 40523:01:33 ok target still sees own lives drop
  401. 40623:01:33 ok lives still public in this game (default)
  402. 40723:01:33 ok target sees only the eliminating shot
  403. 40823:01:33 ok elim shot names the shooter for the target
  404. 40923:01:33 ok third party never sees shots under elim_known_target
  405. 41023:01:33 ok third party death has no by
  406. 41123:01:33Engine: vis shots + hidden lives — lives_left stripped except for the target
  407. 41223:01:33 ok shooter does not get target lives_left
  408. 41323:01:33 ok target sees own lives_left
  409. 41423:01:33 ok third party does not get lives_left
  410. 41523:01:33 ok shooter still sees damage 1
  411. 41623:01:33 ok own lives always visible
  412. 41723:01:33 ok other lives hidden from shooter
  413. 41823:01:33 ok other lives hidden from third party
  414. 41923:01:33 ok target sees own lives
  415. 42023:01:33 ok alive flag still present when lives hidden
  416. 42123:01:33Engine: vis gifts — public, known_recipient, anonymous
  417. 42223:01:33 ok public gift visible to third party with giver and amount
  418. 42323:01:33 ok giver sees own gift
  419. 42423:01:33 ok recipient sees giver
  420. 42523:01:33 ok third party does not see known_recipient gift
  421. 42623:01:33 ok giver sees full anonymous gift in their own log
  422. 42723:01:33 ok recipient sees an anonymous gift event
  423. 42823:01:33 ok event marked anonymous
  424. 42923:01:33 ok giver id stripped for recipient
  425. 43023:01:33 ok recipient sees the AP amount
  426. 43123:01:33 ok recipient is named as target
  427. 43223:01:33 ok third party does not see anonymous gift
  428. 43323:01:33 ok recipient AP actually increased
  429. 43423:01:33 ok stored event still has the giver (present does not mutate)
  430. 43523:01:33 ok sanity
  431. 43623:01:33 ok clone is independent of stored event
  432. 43723:01:33Engine: vis AP totals hidden
  433. 43823:01:33 ok own AP visible when hidden rule is on
  434. 43923:01:33 ok other AP hidden
  435. 44023:01:33 ok third party does not see A’s AP
  436. 44123:01:33 ok daily event present
  437. 44223:01:33 ok hidden AP: only own grant in daily event: {"a":1}
  438. 44323:01:33 ok jury vote counts stripped
  439. 44423:01:33Engine: vis range — hidden and known_in_range
  440. 44523:01:33 ok own range after upgrade
  441. 44623:01:33 ok other range hidden
  442. 44723:01:33 ok upgrader sees own upgrade
  443. 44823:01:33 ok third party does not see hidden upgrade
  444. 44923:01:33 ok B is within A’s range, sees A’s range
  445. 45023:01:33 ok A is within B’s range, sees B’s range
  446. 45123:01:33 ok C is outside A’s range (dist 3 > 2)
  447. 45223:01:33 ok A is outside C’s range (dist 3 > 2)
  448. 45323:01:33 ok C always sees own range
  449. 45423:01:33 ok after upgrade, C is within A’s range and sees it
  450. 45523:01:33 ok C now also sees the upgrade event
  451. 45623:01:33 ok A is still outside C’s range 2
  452. 45723:01:33Engine: movement is always public, even with everything hidden
  453. 45823:01:33 ok move is public
  454. 45923:01:33 ok move names the player and destination
  455. 46023:01:33 ok new position is in the public state
  456. 46123:01:33 ok AP still hidden after the move
  457. 46223:01:33 ok lives still hidden
  458. 46323:01:33 ok range still hidden
  459. 46423:01:33Engine: present() does not leak hidden keys with real values
  460. 46523:01:33 ok JSON-facing ap is null
  461. 46623:01:33 ok JSON-facing lives is null
  462. 46723:01:33 ok JSON-facing range is null
  463. 46823:01:33 ok no numeric secrets for a
  464. 46923:01:33 ok no numeric secrets for b
  465. 47023:01:33Engine: nextDistribution (per-lobby AP time) and DST
  466. 47123:01:33 ok 14:00 → today 15:00: 2026-11-14 15:00:00
  467. 47223:01:33 ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00
  468. 47323:01:33 ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00
  469. 47423:01:33 ok 00:00 path equals nextMidnight
  470. 47523:01:33 ok ap_time normalised to HH:MM
  471. 47623:01:33 ok bad ap_time → 00:00
  472. 47723:01:33 ok 24:00 invalid → 00:00
  473. 47823:01:33 ok DST spring: 02:30 candidate is strictly after 01:30
  474. 47923:01:33 ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST
  475. 48023:01:33 ok DST spring: 04:00 exact: 2026-03-29 04:00:00
  476. 48123:01:33 ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST
  477. 48223:01:33Engine: AP at a non-midnight lobby time
  478. 48323:01:33 ok start schedules 15:00
  479. 48423:01:33 ok day increments at 15:00
  480. 48523:01:33 ok AP granted at 15:00
  481. 48623:01:33 ok one second before 15:00: no grant
  482. 48723:01:33Engine: AP loot default off; on only for eliminating shots
  483. 48823:01:33 ok B is dead
  484. 48923:01:33 ok dead B has 0 AP
  485. 49023:01:33 ok loot off: A spent 1, did not receive B’s 4 (has 2)
  486. 49123:01:33 ok loot off: no loot field on the kill shot
  487. 49223:01:33 ok loot on: B dead, AP zeroed
  488. 49323:01:33 ok loot on: A spent 1 (3→2) then looted 4 → 6: 6
  489. 49423:01:33 ok shooter sees loot amount
  490. 49523:01:33 ok public AP: third party sees loot
  491. 49623:01:33 ok shooter sees loot even if AP totals hidden
  492. 49723:01:33 ok third party does not see loot amount when AP is hidden
  493. 49823:01:33 ok shooter sees own AP including loot
  494. 49923:01:33 ok third party still does not see A’s total
  495. 50023:01:33 ok non-elim: no loot
  496. 50123:01:33 ok non-elim: B keeps AP
  497. 50223:01:33 ok B surrendered
  498. 50323:01:33 ok surrender does not transfer AP
  499. 50423:01:33 ok surrendered AP is zeroed, not looted
  500. 50523:01:33Engine: no hearts, no buying lives (options do not exist)
  501. 50623:01:33 ok hearts / buy-lives are not accepted rule keys
  502. 50723:01:33
  503. 50823:01:33Engine passed: 280 Failed: 0
  504. 50923:01:33Store: lobby, join, start, actions, sync
  505. 51023:01:33 ok create lobby
  506. 51123:01:33 ok status lobby
  507. 51223:01:33 ok 6-char code: FW3AZK
  508. 51323:01:33 ok jury on
  509. 51423:01:33 ok shrink off
  510. 51523:01:33 ok ceasefire off
  511. 51623:01:33 ok start alone refused
  512. 51723:01:33 ok Bob joined
  513. 51823:01:33 ok same lobby
  514. 51923:01:33 ok re-join is idempotent
  515. 52023:01:33 ok non-host refused
  516. 52123:01:33 ok host set shrink on
  517. 52223:01:33 ok interval 3
  518. 52323:01:33 ok ceasefire on
  519. 52423:01:33 ok one range stored
  520. 52523:01:33 ok started
  521. 52623:01:33 ok 1 AP at start
  522. 52723:01:33 ok view running
  523. 52823:01:33 ok legal moves in view
  524. 52923:01:33 ok has version
  525. 53023:01:33 ok has server_now
  526. 53123:01:33 ok timezone
  527. 53223:01:33 ok unchanged sync
  528. 53323:01:33 ok no full state when unchanged
  529. 53423:01:33 ok lightweight fields present
  530. 53523:01:33 ok Alice can move
  531. 53623:01:33 ok AP spent
  532. 53723:01:33 ok Bob sees a change
  533. 53823:01:33 ok full state on change
  534. 53923:01:33 ok Bob sees Alice’s new position
  535. 54023:01:33 ok Alice sees her note
  536. 54123:01:33 ok Bob does not
  537. 54223:01:33 ok Alice sees message
  538. 54323:01:33 ok Bob sees message
  539. 54423:01:33 ok join after start refused
  540. 54523:01:33 ok locale stored
  541. 54623:01:33 ok locale read
  542. 54723:01:33 ok zh-Hans normalised to zh
  543. 54823:01:33 ok listed running game
  544. 54923:01:33 ok Dan wins after Cara surrenders
  545. 55023:01:33 ok unknown_code
  546. 55123:01:33 ok bad shoot refused: out_of_range
  547. 55223:01:33 ok AP unchanged after refused action (rollback)
  548. 55323:01:33safeNext
  549. 55423:01:33 ok null next
  550. 55523:01:33 ok empty next
  551. 55623:01:33 ok plain path
  552. 55723:01:33 ok join query with =
  553. 55823:01:33 ok ampersand
  554. 55923:01:33 ok hash fragment
  555. 56023:01:33 ok rejects scheme
  556. 56123:01:33 ok rejects protocol-relative
  557. 56223:01:33 ok rejects absolute path
  558. 56323:01:33 ok rejects backslash
  559. 56423:01:33
  560. 56523:01:33Total passed: 333 Failed: 0