Public: anyone can read this; the crew can change it.
Games: the forge pins forge-velocity bee2a65cf3f2 (/forge answers from a SQLite snapshot at once, one clean style) #18163
Merged 14h 43m ago, live in production
Part of #18028. Stacked on #18150 (and so #18149): their commits come first here. Pins the next forge-velocity jar (plugin pull trevato/forge-velocity#10): forge-velocity-0.1.0-735afbbc47fd.jar, sha256 735afbbc47fdc922c130f4c86f8ef592b6f58258126e761c848ca9076b980ab6.
-
Reviews
Changes requested — before the latest pushThe snapshot and the same-reply answer are a sound design: each player's answer is made with that account's own rights, the agent validates the version, and the tests cover the new behaviour. Two things to fix before it lands.
- (first) The agent cuts the snapshot with
head -c 2000000and then installs whatever base64 decodes. The forge puts no limit on what it makes: up to 100 players, about 6 + 2n rows each, each text up to 2 KB. A big network can pass 2 MB, and the agent then installs a truncated, corrupt SQLite file assnapshot.dband records it as the version it has. That is a broken answer file on the proxy, and the forge never learns of it. Fix it on the forge side: ifb64.lengthis over the cap, drop players (or rows) until it fits, or send nothing and log it. The agent should refuse an oversized input instead of truncating it: read one byte more than the cap and fail the install if it is exceeded. Add a test for the oversize case. quicklyswallows every error fromrunChatwithcatch(() => undefined). Before, a failed run was at least an unhandled rejection in the log. Log it withctx.app.log.warn, assnapshotFordoes.
Small:
v:${now.toString(36)}`` is a needless template literal.Not a change request: the 60 s of answers after a role is revoked, the missing command-log rows for file answers, and the offline-mode UUID caveat are all stated in docs/features/games.md.
ApprovedApproved. Read in full: the snapshot is made per account with that account's own rights (inactive users get no rows, guests only help/status/servers). The agent validates the version, reads one byte past the 1.5 MB cap and installs nothing when over it.
packdrops players until the file fits, and the oversize case is tested.quicklynow logs failures. The full-sync wait applies only when a request came, and a test shows a slow plan does not hold the reply. The staleness window, the missing command-log rows and the offline-mode UUID caveat are written in docs/features/games.md. The doc is in docs/features, not README. There is no page or TUI surface in this change, so no second door is owed. I could not check the new jar's contents (735afbbc47fd): the pin's sha is taken as given.Two things I would do next:
void runChat(...)in the no-request path of gameAgentSync has no catch. runLane catches job errors, but add.catchwithctx.app.log.warnso an unexpected rejection is logged and never unhandled.- Add a test that a revoked role or an inactive account is absent from the next snapshot. The doc promises the window, but nothing pins that the rights are re-read at each making.
- (first) The agent cuts the snapshot with
-
Checks
shipped production is serving it deploy f698c54
-
History
- Merge branch 'push-c' into push-pin 254a219
- Merge commit '4fb324847239b05671c429dded1f655823f30522' into push-c a496f22
- Games survival step 4: admin mods (luckperms fabric, ledger with fabric-language-kotlin) (#18148) 4fb3248
- Merge branch 'push-c' into push-pin 717e3aa
- Merge branch 'main' of https://forge.open-platform.sh/trevato/forge into push-c 3292033
- Merge branch 'push-c' into push-pin e38a40c
- Games: the snapshot never passes what the agent takes, and the agent refuses one that does fb1001a
- Merge branch 'push-b' into push-c 30815f3
- Games: a sync with no request is never held for a job, a failed run is logged, and the timing is documented 814454e
- Games: /forge reads are answered in the same sync, and the agent sends a request within a fifth of a second (#18149) e529fa8
- Traces 5a: compare two traces of one issue side by side, with the cost and time difference (#18164) e7394aa
- Access 3a: the /api/v1 repository routes ask may(), shadowed first, then their inline checks go (#18165) 7ba81ba
- Games: the pin is the rebuilt forge-velocity 735afbbc47fd (a relative ttl for the snapshot, review fixes) 24a19e9
- Merge branch 'push-c' into push-pin 66eee09
- Games: the snapshot is bounded, versioned by content, relative in time and private to the proxy's user d33353f
- Test: the agent's wait is bounded with a request waiting; a scratch file is removed f0368e6
- Spark's config is installed with the mod so a profile uploads to the forge and never elsewhere (#18173) 7de2fc0
- Games: the agent's quick poll never ends its wait early for a mark it cannot carry 6266558
- Games survival step 3b: a sleep (night-skip) mod in the quality set (#18172) 56e2b82
- tmp 69b07b7
Part of #18028. Stacked on #18150 (and so #18149): their commits come first here.
Pins the next forge-velocity jar (plugin pull trevato/forge-velocity#10):
forge-velocity-0.1.0-735afbbc47fd.jar, sha256735afbbc47fdc922c130f4c86f8ef592b6f58258126e761c848ca9076b980ab6. Built twice in clean maven:3.9-eclipse-temurin-25 containers on the vxrail, both the same; 27 plugin tests pass in the build. 1.4 MB, sqlite-jdbc shaded with only the Linux x86_64 and aarch64 natives.Steps after this merges and releases: the owner uploads the jar under Forge plugins on the proxy's page, then commits the plan (the pin replaces the old forge-velocity entry in PLUGINS), and the proxy restarts when nobody is on.
Checked on the live proxy 12-04 (read-only): /tmp is exec (the container's root overlay, not a separate mount), the JVM is amd64, and /server is ext4 rw. So sqlite's native library extracts and loads there; if it ever could not, every word would go to the forge as before. Not yet run with this jar on a real Velocity.
Tested: test/game-proxy-jars.test.ts passes (19) on the vxrail. The pull's check is the rest.
🤖 Generated with Claude Code