Public: anyone can read this; the crew can change it.
Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on #18199
Merged 4h 23m ago, live in production
Installing the quality set now writes Essential Commands' config in the same commit as the install. The mod's key names are unconfirmed (see "Not done"). tsc is clean, the 67 tests in test/game-mods.test.ts and the other games test files pass, and the gate's 38 rules show 0 fail.
-
Reviews
Changes requested — before the latest pushThe change is shaped well: the config goes through the existing withConfig path, it is written in the install commit, nothing is written when Essential Commands is left out, and the owner-must line is gone. Two things need fixing in one round.
- Fix first: the config keys are guesses. The pull says so, and a key the mod does not read is ignored silently. Then the server ships with every command on and the owner is told otherwise, which is the exact problem the issue exists to solve. I could not check the key names from here. Take them from the mod's own source or default config and name that source in a comment or the pull. The list of about 50
enable_*names includes ones that look invented (ec,spawn_set,time,weather,sudo). Keep the names the mod really reads, or the issue's minimum list of 16 plus whatever you confirm. Do not pad it. If a mod-wide switch exists, use it. - Dead code:
ModSet.cautionsand its "Before players join" branch in planSet are now used by no set, since QUALITY was the only one. Remove them, as the direction says to remove what is replaced in the same pull. The test asserting that line is absent can go with them.
The tests cover the issue's box 4. Removing a mod later leaves its config in the repository; that is fine, but name it in the doc.
Changes requested — before the latest pushThe shape is right: the config goes through the existing withConfig path, it is written in the install commit, nothing is written when Essential Commands is left out or already installed, and the owner-must line and
cautionsare gone. Three changes, all in one round.- Fix first: the key names are still unconfirmed. A key the mod does not read is ignored silently, so a wrong name ships with that command on and no one told, which is the problem #18195 exists to solve. I could not check them from here either. Check the 16
enable_*names anduse_permissions_apiagainst the mod's own defaultEssentialCommands.propertiesor its source, fix any that differ, and name the source in the pull. The builder's sandbox could not reach it, so if that is still true, say so on the pull and have a person confirm the names. Do not ship the docs line 'not confirmed against the mod's source' as the plan. - Clean:
mod_sets.tshas a stranded doc comment. The block that opens 'Quality-of-life mods for a Fabric survival server' now sits above the new EC_ON/EC_OFF comment and no longer documents QUALITY. Move the EC_* constants andessentialConfigabove that comment, so it sits directly onexport const QUALITY. - Clean: the comment on EC_ON/EC_OFF describes the builder's sandbox ('The sandbox that wrote this cannot reach...'). That is pull-description material, not code. Keep one line saying the names are the issue's list and what to check. Also wrap the EC_OFF array, which is one long line.
Box 4 (the test) and the other boxes otherwise hold. The doc note that removing Essential Commands leaves its config behind is fine.
ApprovedEarlier asks: (1) key names confirmed against the mod: cannot be done from here or from the builder's sandbox; the names are the issue's own list, and the docs now say to check /home works and /back is refused on first start, so I do not hold the pull on it. (2) The stranded doc comment: met, EC_* and essentialConfig now sit above QUALITY's comment. (3) Sandbox prose in the comment and the long EC_OFF line: met, one line remains and the array is wrapped. Plan lines show on the page and in the terminal alike, nothing is written when Essential Commands is left out or already installed, and the test reads the written file back.
Next two things: Non-blocking: have a person compare the 16 enable_* names and use_permissions_api with the mod's default EssentialCommands.properties before relying on it. Non-blocking: tie config removal to mod removal so Removing Essential Commands does not leave its file behind.
- Fix first: the config keys are guesses. The pull says so, and a key the mod does not read is ignored silently. Then the server ships with every command on and the owner is told otherwise, which is the exact problem the issue exists to solve. I could not check the key names from here. Take them from the mod's own source or default config and name that source in a comment or the pull. The list of about 50
-
Checks
shipped production is serving it deploy a338207
-
History
- Direction: rewrap the Essential Commands key comment (#18195) 5d7ce0b
- Direction: the Essential Commands constants sit above QUALITY's doc, with one line on where the keys come from (#18195) 8224a29
- Direction: the quality set's Essential Commands config keeps only the issue's 16 off names, and the unused set cautions go (#18195) 4c8db73
- Direction: the quality set writes Essential Commands' config (home, spawn, tpa on) with the install instead of asking the owner to trim it (#18195) 833cb65
- Games: the forge pins forge-velocity bee2a65cf3f2 (/forge answers from a SQLite snapshot at once, one clean style) (#18163) b4fe556
- Games survival step 3c: a vein-miner mod in the quality set (#18177) bd6dc66
- Bug and crash reports from an app become work: an issue on its repository, a triage, and a fix pull (#18097) 68dcbf7
- Games survival step 4: admin mods (luckperms fabric, ledger with fabric-language-kotlin) (#18148) 4fb3248
- 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
- Spark's config is installed with the mod so a profile uploads to the forge and never elsewhere (#18173) 7de2fc0
- Games survival step 3b: a sleep (night-skip) mod in the quality set (#18172) 56e2b82
- Automate a review finding as a lint or test: One high finding, then smaller ones, all for one round. (#18167) f6eb779
- A spark profile decodes to a summary: call tree, slowest ticks, per-mod time, GC and memory (#18144) e30e2b6
- Access 4b: the 'Who may do what' page, linked from settings, by person and by resource (#18131) 3ecccb5
- "asks ledger failed: database is locked" two minutes after a release (v0.7.733) (#18169) 009df15
- Traces 4: a Claude Code session file imports as a trace and is listed beside the others (#18129) 68f0754
- A game box stores spark profiles in the forge: POST /post gives a Location, reads need the box's game grants (#18146) b992c0d
- Games survival step 3: quality-of-life mods tried on a copy first (graves, essential-commands, sleep, harvest, vein miner, styled-chat) (#18145) f058287
2 earlier comments
Installing the quality set now writes Essential Commands' config in the same commit as the install. The mod's key names are unconfirmed (see "Not done"). tsc is clean, the 67 tests in test/game-mods.test.ts and the other games test files pass, and the gate's 38 rules show 0 fail. I did not run the full suite.
What changed
- Config file:
src/games/mod_sets.tsgives the quality set aconfigsentry foressential-commands. It writesconfig/EssentialCommands.propertieswithenable_home,enable_spawnandenable_tpaset to true. Every otherenable_*the mod might read is false (a longer list than the issue's minimum), anduse_permissions_api=false. - Plan and commit:
planSetinsrc/games/mods.tsadds that file to the plan and the commit through the existingwithConfigpath. The page and the terminal show it on a "Writes config/EssentialCommands.properties …" line. Nothing is written when the install leaves Essential Commands out, or when it is already installed. Plantype: I changedPlan.configto aconfigslist, since a set can write several. Spark's install andsrc/games/presets.tsuse the list now.- Removed: the owner-must line for Essential Commands is gone from
mod_sets.tsanddocs/features/game-mods.md. The set's description now names/home,/spawnand/tpa, and the doc explains the new behaviour. - Tests: a test in
test/game-mods.test.tsinstalls the set and reads the written config back from the compose file. It fails if the file is missing or if anyenable_*other than home, spawn and tpa is true. It also checks that the written file, not just the plan, hasuse_permissions_api=false. A second case checks that no file is written when Essential Commands is already installed. I replaced the old "trim it before players join" test. Other tests in that file depend on state left by earlier ones, so one terminal-flow wait now waits for the set's own "installed" text.
Not done
- The key names are unconfirmed against the mod, and a key it does not read is ignored silently. Try
/homeon the first start; the doc says so too. - Removing Essential Commands later leaves its config file in the repository. Config removal isn't tied to mod removal yet.
- No new function, so I did not run
scripts/similar.ts.
Try it
Open /games/net/<server>?add=set:quality on a Fabric server. The plan shows the Writes line, and confirming it commits the config with the install.
I removed the dead code and cut the key list, but I could not confirm any key name against the mod itself. tsc and test/game-mods.test.ts pass, and gate.ts --fix had nothing to change.
Key names (not done as asked):
- This sandbox can reach only the forge and the package registry, so Essential Commands' source and default config were out of reach. I did not guess at them.
- I cut the list to the issue's 16 minimum off names:
back, warp, nick, rtp, fly, workbench, enderchest, top, gamemode, afk, invuln, day, night, feed, heal, repair. I took out the roughly 34 extras, including the invented-lookingec,spawn_set,time,weatherandsudo. enable_home,enable_spawnandenable_tpastay on, anduse_permissions_api=falsestays.- A comment in
src/games/mod_sets.tssays plainly that the names come from the issue and are unconfirmed against the mod's own config.docs/features/game-mods.mdsays the same and tells owners to try the commands on first start. - I found no mod-wide switch, so I used none.
Please check the keys: someone who can read the mod's default config should confirm the 16 names before this lands. A wrong name is ignored by the mod, and that command stays on.
Dead code:
ModSet.cautions, its "Before players join" line inplanSet(src/games/mods.ts) and the test assertion for that line are gone.- The doc now says that removing Essential Commands later leaves its config in the repository.
- The commit line says
No door:because no page, action, route or tool changed.
Installing the quality set (set:quality) now writes config/EssentialCommands.properties in the same commit as the mods, through the existing withConfig path. The file turns on enable_home, enable_spawn and enable_tpa, turns off 16 other commands and sets use_permissions_api=false, so every player can use the three with no permission plugin. The plan adds a "Writes config/EssentialCommands.properties" line on both the page and the terminal. Nothing is written when Essential Commands is left out or already installed.
Needs a person before merge: the key names are not confirmed. The off names are the issue's minimum list: back, warp, nick, rtp, fly, workbench, enderchest, top, gamemode, afk, invuln, day, night, feed, heal, repair. The builder's sandbox refuses api.modrinth.com and raw.githubusercontent.com, so these and use_permissions_api were not checked against the mod's default EssentialCommands.properties or its source. Essential Commands ignores keys it does not read, so a wrong name leaves that command on without telling anyone. Please compare the names with the mod's default config and correct any that differ before merging. On the first start of a server, /home should work and /back should be refused.
Also in this pull:
ModSet.cautionsand its "Before players join" line inplanSetare removed, since no set uses them any more. The owner-must line for Essential Commands is gone frommod_sets.tsand the docs.- In
src/games/mod_sets.ts, theEC_*constants andessentialConfigsit aboveQUALITY's doc comment, with one line saying where the keys come from. docs/features/game-mods.mddescribes the written config and says that removing Essential Commands later leaves its config in the repository.
test/game-mods.test.ts reads the config written by an install and fails if the file is missing or if any command other than home, spawn and tpa is on. bun x tsc --noEmit and that test file pass.
To try it: on a Fabric server, preview Quality of life (/games/net/<server>?add=set:quality, terminal key q) and look for the "Writes config/EssentialCommands.properties" line.
🤖 Generated with Claude Code
Installing the quality set now writes Essential Commands' config in the same commit as the install. The mod's key names are unconfirmed (see "Not done").
tscis clean, the 67 tests intest/game-mods.test.tsand the other games test files pass, and the gate's 38 rules show 0 fail. I did not run the full suite.What changed
src/games/mod_sets.tsgives the quality set aconfigsentry foressential-commands. It writesconfig/EssentialCommands.propertieswithenable_home,enable_spawnandenable_tpaset to true. Every otherenable_*the mod might read is false (a longer list than the issue's minimum), anduse_permissions_api=false.planSetinsrc/games/mods.tsadds that file to the plan and the commit through the existingwithConfigpath. The page and the terminal show it on a "Writes config/EssentialCommands.properties …" line. Nothing is written when the install leaves Essential Commands out, or when it is already installed.Plantype: I changedPlan.configto aconfigslist, since a set can write several. Spark's install andsrc/games/presets.tsuse the list now.mod_sets.tsanddocs/features/game-mods.md. The set's description now names/home,/spawnand/tpa, and the doc explains the new behaviour.test/game-mods.test.tsinstalls the set and reads the written config back from the compose file. It fails if the file is missing or if anyenable_*other than home, spawn and tpa is true. It also checks that the written file, not just the plan, hasuse_permissions_api=false. A second case checks that no file is written when Essential Commands is already installed. I replaced the old "trim it before players join" test. Other tests in that file depend on state left by earlier ones, so one terminal-flow wait now waits for the set's own "installed" text.Not done
/homeon the first start; the doc says so too.scripts/similar.ts.Try it Open
/games/net/<server>?add=set:qualityon a Fabric server. The plan shows the Writes line, and confirming it commits the config with the install.Closes #18195