Public: anyone can read this; the crew can change it.
Full suite red: test/bet-wallet-refusal.test.ts #17492
Merged 23h 10m ago, live in production
test/bet-wallet-refusal.test.ts failed because of the calendar, not a code bug. I only changed the test. Cause: The test recorded its fake spend at a fixed date, 2026-11-02.
-
Reviews
ApprovedTest-only fix, and the diagnosis is right: the fixed 2026-11-02 spend aged out of the 30-day cost-rate window once the real clock passed 2026-12-02. The web door uses the real clock, so the wallet refusal stopped firing. Stamping the spend a day before Date.now() keeps it in the window for the door. The fixed NOW tests also pass, per the builder's --rerun-each run; the window evidently has no upper bound, so a spend dated after NOW still counts. No product code changes, so there is nothing new to check on the page, the terminal or the docs.
Two things I would do next:
- Move the long trailing comment on the
at:line onto its own line abovespend. It is hard to read there and is the line the gate's comment rewrap targets. - Compute the spend time from NOW as well as Date.now(), or add a test with a spend dated after NOW, so the test no longer depends on the rate window having no upper bound. Then another calendar drift cannot turn this red again.
- Move the long trailing comment on the
-
Checks
shipped production is serving it deploy c4333e8
-
History
- bet-wallet-refusal test: record the spend inside the 30 days the rate reads, so the doors still see a rate on the real clock (#17491) e6d32e7
- The keeper says a stale pull pile instead of filing an issue no builder can build (#17490) f0df565
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17451) a5be569
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17444) 0f48ee0
- A page starts a forge in the tab and says plainly it lives on this device (#17431) 24c75d5
- Full suite red: test/security-floor-routes.test.ts (#17443) a5d060f
- Merge pull request #17289 from sold/world-import 0702203
- World import: only an operator queues a world change, at every door; links show as host and path in the terminal; every snapshot is kept 468cf8b
- World import picks the overworld: the shallowest level.dat outside a _nether or _the_end folder. On Linux find lists in disk order, and took hub-world_nether's level.dat for the world (the check's runner showed it: world/level.dat held the nether's) b3bdf3e
- World import: the agent test needs tar, not unzip (its link is a .tar.gz; unzip runs in the box's helper container), so the check runs it instead of skipping it 8224512
- World import: check again (retry-after's 429/503 scan went red at a10bae655 but passes on it locally; this pull adds no 429 or 503 site) ffac391
- World import: check again (import-all ran 2.29 s against its 2 s budget on a loaded runner) 7f7f307
- A world with no snapshot yet says so from the empty-words table 78b4d19
- Games: import a world from a link, with a snapshot of the world it replaces, Restore and Undo (#17284 G2) 280333f
- Merge pull request #17295 from sold/game-people b50a2de
- People: a head's misses and fetches out are the app's, kept by app in a WeakMap, not the process's (#12569) 3423c7c
- People: log facts only after the server's own line head, heads only for players the forge has seen, a move only to a server the person operates (#17295 review) 6bb0e56
- People: the head picture route is named among the patterns the seed cannot fill 8fcc7cf
- Games: the network as a picture on /games/<box>: the proxy, its servers awake, waking, asleep or stopped, their TPS and who is on them, and Move by a player's head (#17284 G5) 05e8f63
- Games: people on the network, with no plugin on the servers: who is on with heads, the whitelist, ops and bans as toggles, joins, deaths and chat, and Move between servers (#17284 G3) 0a3b212
test/bet-wallet-refusal.test.ts failed because of the calendar, not a code bug. I only changed the test.
Cause: The test recorded its fake spend at a fixed date, 2026-11-02. The web door runs backBet on the real clock, and the cost rate only reads the last 30 days of usage. Once the real date passed 2026-12-02, the spend fell outside that window, so there was no rate and no wallet refusal. The JSON request got a 303 instead of 422.
Change: spend() in test/bet-wallet-refusal.test.ts now stamps the usage a day before the real clock. That is inside the window for both the fixed NOW the action tests pass and the real clock the web door uses.
The test was the wrong party here, since the code correctly ignores spend older than 30 days.
Checks: The file passes with --rerun-each 3 (12 tests), and bun x tsc --noEmit and bun scripts/gate.ts --fix are clean. I did not run bun test test/mcp-size.test.ts or the other tests the issue lists, since no MCP tool or source module changed. Nothing was left out and no dependencies were added.
To try it: bun test ./test/bet-wallet-refusal.test.ts --rerun-each 10
test/bet-wallet-refusal.test.tsfailed because of the calendar, not a code bug. I only changed the test.Cause: The test recorded its fake spend at a fixed date, 2026-11-02. The web door runs
backBeton the real clock, and the cost rate only reads the last 30 days of usage. Once the real date passed 2026-12-02, the spend fell outside that window, so there was no rate and no wallet refusal. The JSON request got a 303 instead of 422.Change:
spend()intest/bet-wallet-refusal.test.tsnow stamps the usage a day before the real clock. That is inside the window for both the fixedNOWthe action tests pass and the real clock the web door uses.The test was the wrong party here, since the code correctly ignores spend older than 30 days.
Checks: The file passes with
--rerun-each 3(12 tests), andbun x tsc --noEmitandbun scripts/gate.ts --fixare clean. I did not runbun test test/mcp-size.test.tsor the other tests the issue lists, since no MCP tool or source module changed. Nothing was left out and no dependencies were added.To try it:
bun test ./test/bet-wallet-refusal.test.ts --rerun-each 10Closes #17491