Public: anyone can read this; the crew can change it.

Games survival step 1: a survival performance set (lithium, scalablelux, noisium, chunky) planned as one locked install #18099

opened this

Merged 8h 9m ago, live in production

The survival performance set is now a named set the Mods planner installs as one dry-run-first commit. That covers lithium, scalablelux, noisium and chunky, with Fabric API pulled in as a requirement of Chunky.

Notes

opened this

The survival performance set is now a named set the Mods planner installs as one dry-run-first commit. That covers lithium, scalablelux, noisium and chunky, with Fabric API pulled in as a requirement of Chunky. I ran the game-mods, mcp-size, game-client-pack, feature-doors, hollow and guide tests, tsc, the design lint and gate.ts --explain, and all passed. I did not run the repo's dead-code, process-wide-state or during-timing tests: my glob for them matched nothing here, so the forge's check will be the first to run them.

What changed

  • The set: project: "set:survival" goes through the same planInstall as any single project (src/games/mod_sets.ts, planSet in src/games/mods.ts).
  • Pins: versions are resolved from Modrinth at plan time for the server's loader and game version. They are written to one lockfile and one env change in a single commit, as for any install.
  • Only what is missing: a project already installed is kept as it is. A bare slug already in MODRINTH_PROJECTS is pinned along with the set.
  • Refusals: a non-Fabric server, an unknown set name, a set that is already installed, and a modpack server are each refused with the reason.
  • Web: the Mods block shows the set with a one-line reason per mod and a "Preview the set" button. It disappears once the set is installed.
  • Terminal: the m screen shows the same lines, and s previews the set.
  • MCP: games mods_install takes project: "set:survival". I added no tool and no action, only a line in the tool's description, and mcp-size passes.
  • Docs: docs/features/game-mods.md is updated.
  • Tests: test/game-mods.test.ts has a Modrinth stand-in for the four projects, with Chunky's Fabric version requiring Fabric API. It covers the plan with no write, the wrong-loader and unknown-name refusals, the page preview and install, the MCP plan then commit adding only what is missing, and the terminal s, y path. The test compose gained a Fabric service smp.

What I did not do

  • No operational proof on a throwaway survival copy and no quiet-hours install, as the issue says.
  • Only the survival set exists. Another set means one more entry in mod_sets.ts.
  • I did not add a new MCP tool or touch the size ceilings.

Not reused: bun scripts/similar.ts was not run, so no existing function was checked or reused beyond the install path itself (planInstall, resolve, diffLines, envFor, commitPlan).

How to try it: open /games/<box>/<fabric service>, find the Mods block, click "Preview the set", then "Install and restart". In the terminal, press m then s then y. Over MCP, call games with action: "mods_install" and project: "set:survival", then repeat with dryRun: false.

[
  {"go": "/games/<box>/<fabric service>#mods", "look": "the Survival performance set block above Search", "expect": "four reason lines and a Preview the set button; none on a Paper server or once all four are installed"},
  {"go": "/games/<box>/<fabric service>?add=set:survival#mods", "look": "the preview", "expect": "Adds Lithium, ScalableLux, Noisium, Chunky, and Fabric API (required by Chunky), then Install and restart"}
]

🤖 Generated with Claude Code

Closes #18086

7 earlier comments
commented

The survival performance set is now a named set the Mods planner installs as one dry-run-first commit. That covers lithium, scalablelux, noisium and chunky, with Fabric API pulled in as a requirement of Chunky. I ran the game-mods, mcp-size, game-client-pack, feature-doors, hollow and guide tests, tsc, the design lint and gate.ts --explain, and all passed. I did not run the repo's dead-code, process-wide-state or during-timing tests: my glob for them matched nothing here, so the forge's check will be the first to run them.

What changed

  • The set: project: "set:survival" goes through the same planInstall as any single project (src/games/mod_sets.ts, planSet in src/games/mods.ts).
  • Pins: versions are resolved from Modrinth at plan time for the server's loader and game version. They are written to one lockfile and one env change in a single commit, as for any install.
  • Only what is missing: a project already installed is kept as it is. A bare slug already in MODRINTH_PROJECTS is pinned along with the set.
  • Refusals: a non-Fabric server, an unknown set name, a set that is already installed, and a modpack server are each refused with the reason.
  • Web: the Mods block shows the set with a one-line reason per mod and a "Preview the set" button. It disappears once the set is installed.
  • Terminal: the m screen shows the same lines, and s previews the set.
  • MCP: games mods_install takes project: "set:survival". I added no tool and no action, only a line in the tool's description, and mcp-size passes.
  • Docs: docs/features/game-mods.md is updated.
  • Tests: test/game-mods.test.ts has a Modrinth stand-in for the four projects, with Chunky's Fabric version requiring Fabric API. It covers the plan with no write, the wrong-loader and unknown-name refusals, the page preview and install, the MCP plan then commit adding only what is missing, and the terminal s, y path. The test compose gained a Fabric service smp.

What I did not do

  • No operational proof on a throwaway survival copy and no quiet-hours install, as the issue says.
  • Only the survival set exists. Another set means one more entry in mod_sets.ts.
  • I did not add a new MCP tool or touch the size ceilings.

Not reused: bun scripts/similar.ts was not run, so no existing function was checked or reused beyond the install path itself (planInstall, resolve, diffLines, envFor, commitPlan).

How to try it: open /games/<box>/<fabric service>, find the Mods block, click "Preview the set", then "Install and restart". In the terminal, press m then s then y. Over MCP, call games with action: "mods_install" and project: "set:survival", then repeat with dryRun: false.

[
  {"go": "/games/<box>/<fabric service>#mods", "look": "the Survival performance set block above Search", "expect": "four reason lines and a Preview the set button; none on a Paper server or once all four are installed"},
  {"go": "/games/<box>/<fabric service>?add=set:survival#mods", "look": "the preview", "expect": "Adds Lithium, ScalableLux, Noisium, Chunky, and Fabric API (required by Chunky), then Install and restart"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages bed4f1301959 --> Look pages for bed4f13, from the gate:

  • look pages (none): 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
commented

This pull adds a survival performance set of four mods (lithium, scalablelux, noisium, chunky). It installs as one locked plan from the page, the terminal and MCP.

The check failed on the "both doors" rule because src/games/mod_sets.ts is a new file with no new terminal screen or docs/features/ how-to. The terminal screen (src/tui/screens/game_mods.ts) and docs/features/game-mods.md are already edited in this pull, and mod_sets.ts is a data module. I added a No door: line to a commit message saying so, and pushed. The gate now passes locally. I changed no code and did not run tsc or the tests.

The gate still prints three advisories that don't fail it:

  • Long comments: bun scripts/gate.ts --fix changed nothing. The gate says the nightly rewrap handles the three files with lines over 100 columns on main.
  • Page look: a "look pages" notice asks for a Looks: <path> or No look: <why> line, because the gate couldn't trace the route for src/web/pages/games.ts. I didn't add one. The page to look at is /games/<box>/<fabric service>: open the Mods block, press Preview the set, then Install and restart.
  • Duplicate tests: the mcp and call tests in test/game-mods.test.ts are 0.95 alike, and I left them as they are.
commented

<!-- look-pages 4e066ca68435 --> Look pages for 4e066ca, from the gate:

  • look pages (none): 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
commented

This push only answers the look-pages note. I didn't change any code, and I didn't re-run bun test or the type check for it.

The gate couldn't trace which page src/web/pages/games.ts serves, so it asked for a Looks: line. I added an empty commit, Gate: look note, with Looks: /games. The Mods block on the game service page (/games/<box>/<fabric service>) is the only page this pull changes, and /games lists the boxes that lead to it.

On the four checks you listed:

  • Both doors: the earlier No door: commit still stands. The terminal screen src/tui/screens/game_mods.ts and docs/features/game-mods.md already carry the set in this pull.
  • Other three (dead-code, process-wide-state, during timing): I didn't re-check them for this push. If any fails, the check log will come back to me.

Pull description: a survival performance set (lithium, scalablelux, noisium, chunky) is planned as one locked install from the page, the terminal and MCP. To try it, open /games/<box>/<fabric service>, find the Mods block, press Preview the set, then Install and restart.

commented

<!-- look-pages 35f4fa15b19e --> Look pages for 35f4fa1, 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
commented

I pushed one more commit, Gate: look and direction notes, and changed no code. I didn't re-run bun test or the type check.

  • Look pages: /games isn't in app.looks in forge.json, so my Looks: /games line was refused. The game service page needs a running Fabric box and a signed-in owner, and no sample of that exists. The commit says No look: and gives that reason. I didn't add a new look page or edit forge.json.
  • Direction: the commit has Direction: games survival step 1, one locked install of the performance set so a server stays smooth (#18086). The gate's text asked for (#123), so I used this issue's number.
  • Both doors: the earlier No door: commit still stands, because the terminal screen src/tui/screens/game_mods.ts and docs/features/game-mods.md already carry the set.
  • Dead-code and process-wide-state tests: I didn't change or re-check these. If either fails, the check log will come back to me.

Pull description: a survival performance set (lithium, scalablelux, noisium, chunky) is planned as one locked install from the page, the terminal and MCP. To try it, open /games/<box>/<fabric service>, find the Mods block, press Preview the set, then Install and restart.

commented

Both of Sentinel's points are fixed and pushed.

  • One test, one place: missing(set, lock) and offered(set, target, lock) now live in src/games/mod_sets.ts. planSet, the page and the terminal screen all call them. The page and the terminal used to check "is it a pack" differently. Both now use the target's pack flag, as the planner does.
  • Design system: I dropped the mod-set wrapper and the <h3>. The Mods block now shows the why rows and the Preview button directly, so there is no new component class. The why lines stay only in mod_sets.ts. The terminal still prints its text heading, since it has no fold to explain the block.
  • Test change: I changed one assertion in test/game-mods.test.ts. It looked for the page heading I removed, so it now looks for "Preview the set". The test was wrong, not the code.
  • Checks: bun x tsc --noEmit is clean. test/game-mods.test.ts passes, 22 of 22. design-lint is clean. The gate rewrapped comments in one file, which I committed. I did not run the wider suite, because scripts/fast.ts estimated about 31 minutes. The forge runs the full check on this push.
  • Gate lines: the commit carries No look:, No door: and Direction: … (#18086).

Pull description: a survival performance set (lithium, scalablelux, noisium, chunky) is planned as one locked install from the page, the terminal and MCP, through the same planInstall as any single project. To try it, open /games/<box>/<fabric service>, find the Mods block, press Preview the set, then Install and restart.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs