Public: anyone can read this; the crew can change it.
Spark's config is installed with the mod so a profile uploads to the forge and never elsewhere #18173
Merged 7h 42m ago, live in production
Installing spark now writes its config in the same commit, so a profile goes to the box's forge store and never to spark's own paste site. tsc is clean and test/game-mods.test.ts, test/game-spark.test.ts and a few nearby suites pass. I did not run the whole suite; the forge's check does that on the push.
-
Reviews
ApprovedClean. spark's config is written in the same commit as the lock and env (mod and plugin paths, and the new-server flow). The upload address with its secret stays out of git: only the
${CFG_SPARK_BYTEBIN_URL}placeholder is committed, andwithConfigsets REPLACE_ENV_VARIABLES so the image fills it from the sealed .env. The test covers both server kinds, no author URL, no secret in the repository, and a stable accepted address. Box 2 stays open: a spark that was installed before this change, or added outside planInstall, keeps spark's default config and so its public paste. The pull says so itself. Follow-up for a later pull: write the config for an already-installed spark. -
Checks
shipped production is serving it deploy a338207
-
History
- spark: one way to keep a box's upload secret (#18138) 9a9aaa2
- spark's config is installed with the mod: uploads go to the box's forge store, never the author's paste (#18138) bf5f2d8
- 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
- Spend 1: a monthly budget per cloud account, one notice at 80% and one at 100% (#18121) 3382c40
- Games: a proxy plugin update can wait until nobody has been on for 30 minutes (#18039) 9a5eb31
- Traces 5: compare two traces, and share one with secrets redacted (#18017) 7a17314
- AWS writes for mail setup are a named allowlist beside the read rule, and nothing else (#18142) 93c7c3d
- Traces 1c: GET /api/v1/traces/:id returns the thread, turns and steps as one tree (#18128) 077bab0
- A box's TPS and tick time show live on its games pane, from spark's health report or `/spark tps` at check-in (#18143) f7e559b
- Access 4c: the grants view as an MCP tool and a terminal screen (#18130) 89afadf
- small: the Absorb findings say they are ready for the owner to send to Ben (#18132) d41ec43
- Games survival step 2a: BlueMap behind login at /games/<box>/<server>/map, no published box port (#18100) 1132c91
- A Mac can take a repository's checks and report them on the pull (#17915) 4c72a1d
- Access 4: one view of every grant, and a page that says who may do what (#18062) 5ba07c8
- Access 2: one `may(principal, action, resource)`, with the repository checks behind it first (#18065) 7d48ce1
- 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
Installing spark now writes its config in the same commit, so a profile goes to the box's forge store and never to spark's own paste site. tsc is clean and test/game-mods.test.ts, test/game-spark.test.ts and a few nearby suites pass. I did not run the whole suite; the forge's check does that on the push.
What changed
- Config file:
planInstallfor the slugsparkadds a config file to the plan. It isconfig/spark/config.jsonon a mod server andplugins/spark/config.jsonon a plugin server.commitPlanwrites it together with the lockfile and env. The "new server" flow inpresets.tswrites it too, so spark can't be added there without its config. - Contents:
bytebinUrlis the placeholder${CFG_SPARK_BYTEBIN_URL}.viewerUrlis<forge>/games/<box>/@spark/, the box's profile page.
- Secret: the upload address carries a secret, and the forge refuses secrets in the repository. So the plan also sets
CFG_SPARK_BYTEBIN_URL: ${SPARK_BASE}in the service env. At each check-inenvFileswritesSPARK_BASE=<forge>/games/@spark/<secret>/into the box's sealed.env, from a secret kept sealed and registered as the box's upload secret. - Never elsewhere: no author-hosted URL appears in the file. If the placeholder is not filled, spark has no valid address to post to.
- Reused:
withConfigandsetServiceEnvfor the compose edit,sealedOncefor the secret, and one shareduseSecrethelper inspark.ts. - Test:
test/game-mods.test.tshas a new case with spark added to the Modrinth stand-in. It checks the file path for both server kinds, that the config holds no author URL, that the config and env land in one commit, and that the repo text never contains the secret. It also checks thatSPARK_BASEin.envis stable across check-ins and is accepted by the forge. A non-spark mod gets no config. - Docs:
docs/features/game-spark.md.
Not done
- An address made by hand on the box page works only until the box's next check-in, when
.envsets the box's own address back. This is stated in the docs. - An already-installed spark is not rewritten, and a reinstall replaces a hand-edited config.
- There is no new page or terminal door; installs already reach the web page, terminal and games tool through
planInstall.
Try it: on a box with a Paper service, run the games tool mods_install with project spark. Then read plugins/spark/config.json in the network repo and SPARK_BASE in the box's .env.
🤖 Generated with Claude Code
Left #18138 open: 1 unticked item remain (A box never uploads elsewhere, even once.).
Installing spark now writes its config in the same commit, so a profile goes to the box's forge store and never to spark's own paste site.
tscis clean andtest/game-mods.test.ts,test/game-spark.test.tsand a few nearby suites pass. I did not run the whole suite; the forge's check does that on the push.What changed
planInstallfor the slugsparkadds a config file to the plan. It isconfig/spark/config.jsonon a mod server andplugins/spark/config.jsonon a plugin server.commitPlanwrites it together with the lockfile and env. The "new server" flow inpresets.tswrites it too, so spark can't be added there without its config.bytebinUrlis the placeholder${CFG_SPARK_BYTEBIN_URL}.viewerUrlis<forge>/games/<box>/@spark/, the box's profile page.CFG_SPARK_BYTEBIN_URL: ${SPARK_BASE}in the service env. At each check-inenvFileswritesSPARK_BASE=<forge>/games/@spark/<secret>/into the box's sealed.env, from a secret kept sealed and registered as the box's upload secret.withConfigandsetServiceEnvfor the compose edit,sealedOncefor the secret, and one shareduseSecrethelper inspark.ts.test/game-mods.test.tshas a new case with spark added to the Modrinth stand-in. It checks the file path for both server kinds, that the config holds no author URL, that the config and env land in one commit, and that the repo text never contains the secret. It also checks thatSPARK_BASEin.envis stable across check-ins and is accepted by the forge. A non-spark mod gets no config.docs/features/game-spark.md.Not done
.envsets the box's own address back. This is stated in the docs.planInstall.Try it: on a box with a Paper service, run the games tool
mods_installwith projectspark. Then readplugins/spark/config.jsonin the network repo andSPARK_BASEin the box's.env.🤖 Generated with Claude Code
Closes #18138