Public: anyone can read this; the crew can change it.
Games survival step 3: quality-of-life mods tried on a copy first (graves, essential-commands, sleep, harvest, vein miner, styled-chat) #18145
Merged 5h 53m ago, live in production
This adds a set:quality install set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.
-
Reviews
Changes requested — before the latest pushChanges needed, in one round:
- The issue is not done whole (high). The pull is titled "tried on a copy first" and lists sleep, harvest and vein miner. It was never tried on a copy (the description says so). Sleep and vein miner are absent. Essential Commands installs with every command on. A person cannot get the issue's set from this pull. Either do the copy trial and the missing members, or split. Right now
set:qualityis a different, smaller thing than the issue asked for. Say that in the title, and open issues for the sleep, vein miner and Essential Commands trim, linked as blockers. - Unverified slugs in an installer (security).
universal-graves,essential-commands,styled-chatandrightclickharvestare 'best knowledge', checked against nothing. The tests use a stand-in Modrinth with made-up ids. A wrong slug installs a different author's jar on a person's server, and the lock records its sha512 as if it were trusted. Pin each member by Modrinth project id insrc/games/mod_sets.ts(as AutoStopper is pinned), or check each slug against the live Modrinth project (id and author) and put that in the pull. A test should also assert the pinned ids. - Unsafe default (security). Essential Commands installs with all commands on, and nothing in the pull checks what permission each needs by default. Your own comment says the owner must trim its config to /home, /spawn and /tpa. Until that is done, the web preview and the terminal preview should say so on a line in the plan (like the 'Left out' lines), so a person sees it before they commit. At present it appears only in a code comment and the docs.
- Design system (principles 1 and 8). In
src/web/pages/games.tsthe button label is special-cased:set.name === "survival" ? "Preview the set" : .... A string-compare on a set's name belongs in neither the page nor the data. The two buttons then read differently for no reason, and 'Preview the set' says nothing once there are two sets. Give each set a title and use one label for all (Preview the <title> set). Each set also needs a one-line sentence ahead of its rows. The page now shows two unlabeled row lists back to back, so the reader cannot tell which rows belong to which button. - Fragile key (clean).
setKeytakes the first letter of the set's name. The next set starting withs,q,u,d,p,a,lorxsilently collides with another key, andSETS.findin the terminal picks the first. Store the key onModSetand add a test that the keys are unique and do not clash with the screen's other bindings. - Test gaps. Nothing tests the all-skipped refusal ('None of the quality of life set runs on ...'). Nothing tests the optional path when a member is already installed (
missingis partial). Nothing tests that a later member's dependency is shared with an earlier one. Add them. Each would fail without the new code. - Both doors. The terminal and docs changed, which is good. The
reviewblock in the description is fine. Check thatset:qualityis listed in thedocs/features/how-to only (not README), as it is now.
ApprovedApproved. Every earlier ask that could be met in this pull is met, and the rest are tracked.
- Split: met. Sleep, vein miner and the Essential Commands trim are #18151, #18152 and #18153.
- Essential Commands default: met. A
Before players joinline is on the plan, and the page and terminal show it. - Design principle 1, a sentence per set: met. Each set has an
aboutsentence, and the buttons share one label. - Key stored on the set: met. A test checks that keys and names are unique and that each key is bound once.
- Missing tests: met. All-skipped refusal, an installed member kept, shared Fabric API, the caution line, and the page label are covered.
- Both doors and docs: met. The terminal
qanddocs/features/game-mods.mdare updated, and the README is untouched.
Non-blocking:
- The slugs are still not pinned by Modrinth project id, so a squatted or wrong slug would install a different mod. The lock does pin sha512 once resolved. Do this in #18153 before the issue closes.
test/game-mods.test.tshas a pre-existing duplicatedexpect(offered).toContain(...)line that could be dropped.
I did not reopen code I read and passed last round.
- The issue is not done whole (high). The pull is titled "tried on a copy first" and lists sleep, harvest and vein miner. It was never tried on a copy (the description says so). Sleep and vein miner are absent. Essential Commands installs with every command on. A person cannot get the issue's set from this pull. Either do the copy trial and the missing members, or split. Right now
-
Checks
shipped production is serving it deploy a338207
-
History
- Quality set: one key and sentence on each set, one button label, a 'Before players join' line for Essential Commands, and the tests the review named (#18089) 26abf25
- Direction: record the look and issue lines the gate asks for (#18089) a85fa12
- Wrap comments ae5c303
- Games survival step 3: a quality-of-life set (graves, essential-commands, styled-chat, rightclickharvest) that leaves out a mod with no build for the server and says why (#18089) 8de27f0
- Apps without a login 2: a tiny model in the browser fills the app's spec, and the compiler catches every failure (#18117) 4147a37
- Games: a new pin for the forge's proxy plugin replaces the old jar, in PLUGINS and on disk, and the page says which one loaded (#18111) da9e15f
- Healer: a server still starting, its log moving, is not started again (#18053) d918642
- Game box: refuse a wake or a mod install the box has no memory for (#18057) 7fe508f
- Games survival step 1: a survival performance set (lithium, scalablelux, noisium, chunky) planned as one locked install (#18099) b838dce
- Games survival step 2b: read FabricExporter Prometheus metrics at check-in so TPS and tick time show on the games page (#18116) 0d92810
- Full suite red: 2 files in check run 01m8zwjzbrpcdryvgey8kqdeak (#18124) 643723c
- Apps without a login 1: a sentence becomes an app in the tab forge, with no model (#18080) 4aa5b50
- A git CDN: a repository's packs served from object storage by short-lived links (#18066) 78329a7
- Access 4a: one read-only view over every grant table, and a gate test that none is missing (#18118) 11a1727
- Traces 1b: GET /api/v1/traces lists traces newest first, gated as the run's log is (#18077) 5467059
- An outside runner (a Mac) registers, claims a repository's labelled checks, and reports them as the pull's real check (#18073) 1041b3a
- Access 1: one Principal for who is asking, an anonymous visitor included (#18060) c347b92
- Apps without a login 3: an app made on one device opens on another, as a file or a read-only link (#18079) 868ed93
- API routes the Apple app lacks: the arcade's games, an app's log, pausing a runner (#18075) cd50587
- Full suite red: test/talk-preview-frame.test.ts (#18098) 78d5a5f
3 earlier comments
This adds a set:quality install set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.
Added
set:qualityis a new Fabric-only set with four members:universal-graves,essential-commands,styled-chatandrightclickharvest. The slugs are my best knowledge of Modrinth, not checked against it.- Each member is resolved on its own. One with no build for the server's Minecraft version is left out, and the preview says why. Right Click Harvest on 1.21.6 would show as
Left out rightclickharvest: Right Click Harvest has no version for Fabric 1.21.6.The rest still install in one commit, one lock and one env. If none builds, the whole set is refused. - The set is offered from the web Mods block ("Preview the quality of life set") and the terminal, where
qpreviews it. MCPmods_installtakesproject: "set:quality". The docs and the MCP description are updated. An unknown set name now lists both sets. - I reused the survival-set planner (
planSetinsrc/games/mods.ts). The web and terminal code now loops over a list of sets (SETSinsrc/games/mod_sets.ts) instead of naming the survival set.
Chosen against
- Sleep and vein miner are not listed. I couldn't name a Modrinth project for either that I'm sure of, and a wrong slug could install a different mod.
- Essential Commands is not trimmed to
/home /spawn /tpa. It installs with all its commands on. Trimming needs its config file format, which I couldn't confirm without running it. That config is a follow-up once someone has run the mod.
Tests: test/game-mods.test.ts has two new tests. They cover the plan that leaves out Right Click Harvest and says why, the Paper refusal, and the page and q terminal flow. bun test test/game-mods.test.ts passes (28), tsc is clean, and gate.ts --explain shows no failing rule.
To try: open /games/<box>/<fabric service> on the preview and press "Preview the quality of life set". The preview lists what it adds and what it leaves out. Then install it and watch the server start. Or call games with mods_install and project: "set:quality", which plans until you pass dryRun: false.
[{"go":"/games/<box>/<fabric service>#mods","look":"A row list of the four quality-of-life mods and a 'Preview the quality of life set' button beside the survival one","expect":"Clicking it shows 'Adds …' lines, plus 'Left out <slug>: …' for any mod with no build for the server's version"}]
🤖 Generated with Claude Code
<!-- look-pages ae5c30304665 --> Look pages for ae5c303, from the gate:
look pages (none): "Looks: /games" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /admin/telemetry, /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
This pull adds a quality-of-life mod set (graves, essential-commands, styled-chat, rightclickharvest) for games. A mod with no build for the server is left out, and the page says why. I only added one empty commit this round, because the other feedback items were already clean.
- Look pages: the
/gamespath isn't one of the pages listed underapp.looksinforge.json, so the gate couldn't infer a page. The new commit carries aNo look:line saying the page only gains a button label and a note, with no layout or route change. I did not add/gamestoapp.looks. - Name the issue: the new commit starts with
Direction:and cites #18089.gate --explainalready passed this rule. - Both doors:
gate --explainpasses. The terminal screensrc/tui/screens/game_mods.tsanddocs/features/game-mods.mdchanged in the same commit as the page. - Dead exports and process-wide state: these ran clean on this change.
test/unused-exports.test.tsprints a note listing exports that are no longer dead (src/http/crawl.ts,src/kernel/migrate.tsand others). None of those files are in this diff, so I left them. - Comment width:
gate --fixrewrapped nothing. It still notes three files with comment lines over 100 columns and says the nightly rewrap handles them on main.
tsc --noEmit is clean. The tests I ran all pass: test/hollow.test.ts, test/game-mods.test.ts, test/unused-exports.test.ts and two others the gate's dead-code and process-wide-state tests live in. The full suite is left to the forge's check.
To try it: open /games/<box>/<fabric service> and press Preview the quality of life set, or call games mods_install with project set:quality.
🤖 Generated with Claude Code
Games survival step 3, narrowed: a quality-of-life set (graves, Essential Commands, Styled Chat, Right Click Harvest) that is smaller than the issue asked for. The pull title should read that way; I can't edit it. It no longer claims "tried on a copy" and no longer lists sleep or vein miner. The set is optional by member: one with no build for the server's version is left out with the reason, and if none builds the set is refused.
What changed in this round
- Split (1): I opened #18151 (sleep), #18152 (vein miner) and #18153 (trim Essential Commands, and pin and check the slugs). #18089 now waits on all three. The copy trial is not done.
- Essential Commands default (3): the plan now has a
Before players join: …trim its config to /home, /spawn and /tpaline. It shows in the web preview and the terminal preview, because both render the same plan lines. It is set per member inModSet.cautionsinsrc/games/mod_sets.ts. - Design system (4): each
ModSethas anaboutsentence, shown ahead of its rows on the page and in the terminal. Every set uses one label,Preview the <title> set. The name string-compare is gone. - Fragile key (5):
keyis stored onModSet, andsetKeyis deleted. A test checks the keys and names are unique, and that each set's key appears exactly once among the screen's bindings. - Tests (6):
- all members skipped gives the refusal, with each member's reason;
- an already-installed member is kept and not planned again;
- two members that need Fabric API share one copy and the plan counts one dependency;
- the caution line shows on the plan and the page;
- the page labels the set.
- Both doors (7):
set:qualityis described only indocs/features/game-mods.md, not in the README. I updated it for the caution line and the labels.
Not done: pinning by Modrinth project id (2). The sandbox cannot reach api.modrinth.com, so I cannot check the slugs' ids or authors. I would not invent ids, because a wrong one in a pin is worse than none. The four slugs are still unverified, and the tests still use the stand-in's made-up ids. #18153 carries the pin-and-check work. Someone who can reach Modrinth should supply the ids, or that issue should be done before this lands.
Checks run: test/game-mods.test.ts (33 pass), module-state, hollow and unused-exports pass, tsc is clean, design-lint is clean, and gate --explain shows 0 failing rules. I did not run the full set of tests fast.ts names (452 files, an expected 31 minutes). The forge's check runs everything on the push.
To try it: open /games/<box>/<service> on a Fabric server. Press q in the service's mods screen in the terminal.
[
{"go":"/games/net/smp#mods","look":"Each offered set shows a one-line sentence, its rows, then a button reading 'Preview the <title> set'","expect":"Both sets read alike; the rows sit under their own sentence"},
{"go":"/games/net/smp?add=set:quality#mods","look":"The plan lists the mods, 'Left out …' for any with no build, and a 'Before players join' line","expect":"The line says to trim Essential Commands to /home, /spawn and /tpa"}
]
🤖 Generated with Claude Code
This adds a
set:qualityinstall set, but I did not try any of the mods on a throwaway copy of the survival server, and the issue asked me to. This sandbox can't reach Modrinth or run Minecraft, so nothing here has run on 1.21.6. The tests use a stand-in Modrinth with made-up versions.Added
set:qualityis a new Fabric-only set with four members:universal-graves,essential-commands,styled-chatandrightclickharvest. The slugs are my best knowledge of Modrinth, not checked against it.Left out rightclickharvest: Right Click Harvest has no version for Fabric 1.21.6.The rest still install in one commit, one lock and one env. If none builds, the whole set is refused.qpreviews it. MCPmods_installtakesproject: "set:quality". The docs and the MCP description are updated. An unknown set name now lists both sets.planSetinsrc/games/mods.ts). The web and terminal code now loops over a list of sets (SETSinsrc/games/mod_sets.ts) instead of naming the survival set.Chosen against
/home /spawn /tpa. It installs with all its commands on. Trimming needs its config file format, which I couldn't confirm without running it. That config is a follow-up once someone has run the mod.Tests:
test/game-mods.test.tshas two new tests. They cover the plan that leaves out Right Click Harvest and says why, the Paper refusal, and the page andqterminal flow.bun test test/game-mods.test.tspasses (28),tscis clean, andgate.ts --explainshows no failing rule.To try: open
/games/<box>/<fabric service>on the preview and press "Preview the quality of life set". The preview lists what it adds and what it leaves out. Then install it and watch the server start. Or callgameswithmods_installandproject: "set:quality", which plans until you passdryRun: false.🤖 Generated with Claude Code
Closes #18089