Public: anyone can read this; the crew can change it.
Games: a client pack, one .mrpack a player opens in a launcher to join a mod server #17815
Sentinel asked for changes (review 01m8x3h37qbfnmkft6n7s09gab)
A mod server has a Players row: an operator makes a link, and a player opens it in a launcher (Prism, Modrinth App) and gets the loader, the Minecraft version and the mods their own game needs. It is made from the server lockfile and what Modrinth says a player needs, never a server-only mod.
-
Reviews
Changes requestedSound design overall: the token is hashed, the link is operator-made and revocable, hosts are pinned to cdn.modrinth.com, the path is redacted in the access log, the page and the terminal both gate on operator, and the docs are in docs/features/games.md. I read the diff up to the cut in the tests, so I did not read the tests past that point. Three things to fix in one round:
- src/tui/screens/game_mods.ts: the comment says a new link is "shown here once, then gone with the next key", but
linkis cleared only bylorx. The live bearer secret stays on screen and in the screen's state for as long as the mods screen is open, which contradicts "shown once". Clear it on the next key of any kind, and add a test for that. - src/http/mcp/tools/games.ts
pack_link: the answer carries the live link, and the says-text admits the forge keeps that answer for 24 hours in resumed conversations. A 30-day secret is then stored in plaintext, which breaks the "kept only as a hash" promise in client_pack.ts and the docs. Either keep the URL out of the cached answer, or say the exception in docs/features/games.md. Preferably keep it out of the cache and return it only to the live caller. - src/web/pages/games_client_pack.ts
gamePackDownload: this is an unauthenticated route that does a lockfile read plus up to N Modrinth version lookups on every request, with no throttle. The token is unguessable, so this is not a leak, but one link opened in a loop makes the forge hammer Modrinth. Rate-limit it per socket address, or memoise the built pack per (link, commit sha) for a short time. Add a test for whichever you choose.
Smaller:
playersBlockmeta repeats the sentence from the row ("Links work for 30 days" appears here and in the flash), so say it once (design principle 1). Otherwise it follows the rows and buttons pattern and works with JavaScript off. - src/tui/screens/game_mods.ts: the comment says a new link is "shown here once, then gone with the next key", but
-
Checks
look green — its check passed, ready for a look deploy dae4e20
Checked against an older mainCheck of dae4e20checked against main at 153cbb3fast tier: green in 3m35s · full gate runs on land
Website spec: 25 findings (report only)
- /board http://127.0.0.1:37643/board answered 303 — https://specification.website/
- /cockpit http://127.0.0.1:37643/cockpit answered 303 — https://specification.website/
- /notes http://127.0.0.1:37643/notes answered 303 — https://specification.website/
- /review http://127.0.0.1:37643/review answered 303 — https://specification.website/
- /system http://127.0.0.1:37643/system answered 303 — https://specification.website/
- /admin/limits http://127.0.0.1:37643/admin/limits answered 404 — https://specification.website/
- /maintenance http://127.0.0.1:37643/maintenance answered 303 — https://specification.website/
- /talk http://127.0.0.1:37643/talk answered 303 — https://specification.website/
- /flow http://127.0.0.1:37643/flow answered 303 — https://specification.website/
- /resilience http://127.0.0.1:37643/resilience answered 303 — https://specification.website/
- /boards?help http://127.0.0.1:37643/boards?help answered 303 — https://specification.website/
- /settings/crew http://127.0.0.1:37643/settings/crew answered 303 — https://specification.website/
- /settings/crew?help http://127.0.0.1:37643/settings/crew?help answered 303 — https://specification.website/
- /settings/captain http://127.0.0.1:37643/settings/captain answered 303 — https://specification.website/
- /settings/security/controls http://127.0.0.1:37643/settings/security/controls answered 303 — https://specification.website/
- /settings/grants http://127.0.0.1:37643/settings/grants answered 303 — https://specification.website/
- /preview-admin/sample expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/drop http://127.0.0.1:37643/preview-admin/sample/drop answered 303 — https://specification.website/
- /preview-admin/sample/data-move http://127.0.0.1:37643/preview-admin/sample/data-move answered 303 — https://specification.website/
- /preview-admin/sample/cut-over http://127.0.0.1:37643/preview-admin/sample/cut-over answered 303 — https://specification.website/
- /preview-admin/sample/next?pick expected exactly one <h1>, found 2 — headings
- /preview-admin/sample/bets expected exactly one <h1>, found 2 — headings
- /advisories http://127.0.0.1:37643/advisories answered 303 — https://specification.website/
- /looks/missing http://127.0.0.1:37643/looks/missing answered 404 — https://specification.website/
- /looks/failed http://127.0.0.1:37643/looks/failed answered 500 — https://specification.website/
-
History
- games: the client pack's link ends with its maker, its two writes are said as themselves, and the new address is listed where the seed cannot fill it dae4e20
- A pack's download stands at /games/@pack, which no box name can be eef26db
- games: a client pack, one .mrpack a player opens in a launcher to join a mod server c43d404
Look
9 pages beside main · 0 new to this pull
/apps
In the dark
at dae4e20 ·
/changelog
In the dark
at dae4e20 ·
/docs
In the dark
at dae4e20 ·
/explore
In the dark
at dae4e20 ·
/looks/failed
In the dark
at dae4e20 ·
/looks/missing
In the dark
at dae4e20 ·
/notes
In the dark
at dae4e20 ·
/review
In the dark
at dae4e20 ·
/security
In the dark
at dae4e20 ·
2 earlier comments
<!-- look-pages c43d40447328 --> Look pages for c43d404, from the gate:
look pages (none): this pull changes src/web/pages/games.ts, src/web/pages/games_client_pack.ts, src/web/pages/games_players.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Answered for #17832, left as it is.
State: changes requested (the review's notes are outdated by later pushes; it needs a fresh review); its check is green but stale against main.
Why not finished: this pull is trevato's own, a person's branch. #17832 lets a builder rebase, fix or apply reviews only on the crew's own pulls, so the crew does not push here. To hand it to the crew, give it back (or open an issue that names it), and a builder takes it from there. Nothing was merged or closed.
Parked, offered to the crew again: it sat 6 h with no push, and nobody on the crew can take it from here (a person's branch: no builder can push it), so it waits for its author. The last verdict (changes requested): Sound design overall: the token is hashed, the link is operator-made and revocable, hosts are pinned to cdn.modrinth.com, the path is redacted in the access log, the page and the terminal both gate on operator, and the docs are in docs/features/games.md. I read the diff up to the cut in the tests, … (The forge posts this; nobody wrote it by hand.)
A mod server has a Players row: an operator makes a link, and a player opens it in a launcher (Prism, Modrinth App) and gets the loader, the Minecraft version and the mods their own game needs. It is made from the server lockfile and what Modrinth says a player needs, never a server-only mod. Every file is downloaded from Modrinth and checked against its hashes; no config, world or secret can be in it. A server that runs a modpack gives that pack its own link.
The link works for 30 days, until an operator ends it, or until its box ends. Only its hash is kept, it is shown once, and the access log has it redacted. The same is in the terminal (l and x on the mods screen) and in the games tool (pack, pack_link, pack_end).
Ran on the vxrail, on this head: 370 pass, 0 fail in 15 files (the pack, doors, polling, design-lint, MCP, openapi, lazy loading, migrations, games); tsc and the gate pass. Not run: the full suite, and a real launcher opening a real pack.
Part of #17284.
🤖 Generated with Claude Code