Public: anyone can read this; the crew can change it.
Migrations are read from their directory when the forge is bundled: two pulls that each add one merge in either order #17213
Merged 14h 37m ago, live in production
src/generated/migrations.ts listed every migration by index (m451, m452, …), so two pulls that each added one both appended "m452" at the same place. The second to land conflicted and had to regenerate the list. On 2026-12-01 that cost about eight rounds across pulls (#17095).
-
Reviews
Changes requested — before the latest pushThe idea is right: a macro-read directory removes the shared line two pulls fight over. Four changes first, because the pull as it stands can hang the check and nothing tests the paths it adds.
- The check on 7a1100c ran silent for about an hour, where the suite normally takes about 14 minutes. The builder must find out which test or file stalled and fix it. The likely cause is a test that bundles or spawns the forge with the macro, or the two-path fallback below. A pull that wedges the lane is a Never (the forge locks up). Run the bundling and boot tests (test/boot-production.test.ts, test/own-source.test.ts and any test that runs
bun build) and put the result in the pull. - Two ways of listing migrations is the opposite of 'one way to do the thing'. schema.ts keeps the macro and, on a ReferenceError, falls back to a run-time
readdirSyncplusimport.meta.requirein migration_dir.ts. That fallback does the boot-time directory read that #16853 removed, and it relies on catching an error from Bun internals. If it fires in a bundle, the forge fails at boot. Choose one path. Either make the macro the only path and have the boot test avoid the plugin that strips it, or drop the macro and keep one explicit list. Do not ship both. - Tests. No test covers migration_dir.ts or the fallback branch, so the fallback would stay green if it broke. No test checks that a
bun buildbundle of schema.ts holds the migration list inlined and does not call readdirSync, which is the claim the pull makes. The merge test only checks that git merges cleanly and that the macro lists the files in a scratch tree, and it never goes through schema.ts. Add a test that bundles src/core/schema.ts, asserts the output has no readdirSync and contains the last migration's name, and then runs the bundle. - Minor.
migrationModulesis async only so it can be called as a macro, and the castas unknown ashides that. Add a short note on the exported function, or return the plain list. The long AGENTS.md sentence now has a parenthetical nested after another parenthetical. Split it into two sentences.
The security floor is untouched and there is no page change, so no design lint and no door applies. Once the check is green and the single path is tested, this is ready.
Changes requested — before the latest pushThe approach is right and the earlier round's points are mostly met. There is now one path, the macro. The boot test no longer uses a plugin. The bundle test checks the inlined list, and the roll-write-pause hang is fixed with import(). One change is left.
- Delete src/generated/migrations.ts in this pull, along with its two allowlist entries in scripts/unreached-allow.json and scripts/unused-exports-allow.json. The pull leaves the old generated list in the tree, unused, and silences the unreached and unused-export checks for it. That is dead code and a second list of migrations, and it goes against 'what it replaces goes in the same pull'. It also goes stale the moment the next migration lands, since own-source.ts no longer regenerates it. The 'deleting it raced other pulls' reason does not hold. A deletion conflicts only with a pull that edits that file, and no pull should be editing it now that nothing reads it. Add a test line that the file is absent, in place of the 'stays in the tree' comment in test/migrations-merge.test.ts.
Not a change request: migrationModules still needs the
as unknown ascast in schema.ts. The comment there explains it, which is enough.No page changed, so there is no design lint and no door to add. I did not run the suite. This review rests on reading the diff.
Approved — before the latest pushThe one open ask is met. src/generated/migrations.ts is deleted and nothing references it: the allowlist entries are gone, own-source.ts no longer generates it, and test/migrations-merge.test.ts asserts schema.ts does not import it. There is now one path for the migration list, the macro, with no second copy. I found no new security issue. The macro reads only the repo's own migrations directory, with no user input at run time. I read the diff and did not run the suite.
ApprovedEarlier asks, each met: (1) src/generated/migrations.ts is deleted and nothing references it, so the macro is the only path and there is no fallback. (2) test/migrations-bundle.test.ts bundles schema.ts, asserts no readdirSync, no migration imports and the newest name inlined, then runs the bundle on its own. (3) test/migrations-merge.test.ts covers the either-order merge. (4) The async-macro note is on migrationModules and the AGENTS.md sentence is split in two. No page change, so no design or door rule applies. I did not run the suite. Two next steps, both non-blocking. Non-blocking: watch the check's timing on this push, because the earlier run stalled for about an hour. If any bundling test hangs, give it a timeout like the 60 s one in the bundle test. Non-blocking: the
as unknown ascast in schema.ts could become a typed declaration of the macro's return type, so the cast goes away. - The check on 7a1100c ran silent for about an hour, where the suite normally takes about 14 minutes. The builder must find out which test or file stalled and fix it. The likely cause is a test that bundles or spawns the forge with the macro, or the two-path fallback below. A pull that wedges the lane is a Never (the forge locks up). Run the bundling and boot tests (test/boot-production.test.ts, test/own-source.test.ts and any test that runs
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- Migrations are read from their directory when the forge is bundled: two pulls that each add one merge in either order 659a8a8
- A failed cloud read says the host, status and code, in plain characters (#17598) f8c7b30
- The check's tsc runs eight checkers, not four (#17574) 88d036f
- A game box says how many spare core-hours a week its sleeping servers leave, against what the forge's checks use (#17589) 7c6f863
- Talk: a dev server is handed its own address whole, so an app made from the template comes up instead of hanging 60 s (#17595) 8f632d3
- Template: a FORGE_APP_URL that is no address is warned of, not thrown (#17596) f43af8d
- Merge pull request #17554 from sold/cloud-tree c52e927
- Turning the crew on names who turned it on, by every door: the Autonomy knob no longer leaves a repository paused as "nobody" (#17588) ac9e135
- A closing forge forgets its repositories in every process-wide map keyed by repository (#17594) ddf713b
- Date the cloud inventory migration after main's newest (#17532) b0ed311
- List Cloud resources straight after Infrastructure in the palette (#17532) f5b6e08
- Wrap a paragraph of CLOUD.md and a comment (#17532) 81c27ce
- Draw the resource tree's lists with rowList (#17532) 5a58719
- Keep a filter's odd words from breaking /infra (#17532) 48857b8
- Walk a cloud resource's page in the pages budget (#17532) 98ea698
- Allow AWS's documentation example key id in the signing test (#17532) b8eed52
- Say /infra's empty state from the one table of empty words (#17532) aad909b
- Document Build's own page and how a cost is marked (#17532) 5db8eaf
- Give /infra to looking: Build at its own page, the finding first, costs in plain words (#17532) 4aa3e74
- Total an AWS account by its bill, and never call a snapshot unattached (#17532) f4e4636
The check on 7a1100c (run 01m8srh5zrz7q33m9mewt5rb6s) has been running since 21:55:05, nearly an hour, and its run page marks it "silent". The same suite finishes in about 14 minutes on other pulls (#17240's took 14m38s). forge.json's check timeout is 7200 s, so left alone it holds a lane slot until about 23:55 and then fails as a timeout, not as anything this pull did or didn't do.
Whoever can read the log: please see which shard or file it is stuck on. If it's waiting on a test that bundles the forge (the migration list is now a macro read at bundle time), that is this pull's to fix. If the log simply stops, cancel it and run it again.
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): The approach is right and the earlier round's points are mostly met. There is now one path, the macro. The boot test no longer uses a plugin. The bundle test checks the inlined list, and the roll-write-pause hang is fixed with import(). One change is left. 1. Delete src/generated/migrations.ts in t… (The forge posts this; nobody wrote it by hand.)
src/generated/migrations.ts listed every migration by index (m451, m452, …), so two pulls that each added one both appended "m452" at the same place. The second to land conflicted and had to regenerate the list. On 2026-12-01 that cost about eight rounds across pulls (#17095). Naming each import by its stamp would not have been enough: both new lines still land after the same last line, and git conflicts there.
with { type: "macro" }), so it runs when the forge is transpiled or bundled and its result is inlined. Abun buildbundle carries the list and never reads the directory (#16853 still holds;bun build src/core/schema.tshas no readdirSync in its output).Test (test/migrations-merge.test.ts):
No door: how the build lists migrations; nothing a person sees Direction: two pulls that each add a migration land in either order without a rebase (#17095) Replaces: src/generated/migrations.ts and own-source.ts's migrations list
Co-Authored-By: Claude Fable 5 <[email protected]>
Fixes #17095. On 2026-12-01 the generated list conflicted on about eight pulls that added a migration (check slots three times, the game box fix twice, lending, the runner room line).
🤖 Generated with Claude Code