Public: anyone can read this; the crew can change it.
A commit is written by one git fast-import and landed by one update-ref: two git processes instead of six #17526
Merged 12h 45m ago, live in production
commitFiles is the write under every web edit, Talk write, board change, spawn and conflict finish. It ran six git processes per commit (read-tree, hash-object, update-index, write-tree, commit-tree, update-ref).
-
Reviews
ApprovedApproved. The fast-import route writes the same commit bytes as the index route, and the test proves it by comparing ids step by step with a fixed clock. It lands by the same CAS update-ref, and it leaves no ref behind. Paths are C-quoted, modes are a closed union, and the scratch ref is generated, so no user text is syntax in the stream. Refusals (path_conflict, branch_moved, land_refused) match the index route and are tested for both routes. The spawn count is pinned at 2 versus 6. This is internal plumbing with no page, action, API route or tool, so the both-doors rule does not apply, and nothing was added to the README.
Two things I would do next:
- Keep a single way to commit. The index route now serves only signed commits, merges on a seed tree and identities git would trim. Move those callers over, or have fast-import take them on, then delete the index route and the
setCommitRoutetest switch. - Move the test hooks
setCommitClockandsetCommitRouteout of the production module's public surface. An injected clock parameter would do, and then the two unused-exports allowlist entries go away.
- Keep a single way to commit. The index route now serves only signed commits, merges on a seed tree and identities git would trim. Move those callers over, or have fast-import take them on, then delete the index route and the
-
Checks
shipped production is serving it deploy 339cc69
-
History
- A commit is written by one git fast-import and landed by one update-ref: two git processes instead of six 5b791f3
- Games G1: Modrinth, done properly: search with a compatibility badge, dependency preview, a locked install, updates (#17293) 07aa752
- A test file that reads a ratchet list names the one line to edit when it fails (#17538) 9b542ac
- A pull's review verdicts are 44 px targets under a finger: room before each radio, inside its label (#17530) b3c859f
- Talk: a message sent while the forge boots says it is starting, never "agent is not running" (#17518) 5556e83
- Talk: the Preview pane shows the conversation's own work, or nothing yet, never a repository it only read (#17517) 18aeb4d
- Talk: the agent says the Do it buttons are above the message box, and calls a name it picked its pick (#17516) 69778db
- scripts/design-lint.ts runs the empty-words and width-read ratchets, so a builder sees them before the push (#17531) 57d706a
- The check cell has what takeLook with only loopback needs, or the test says so once and stays out of the verdict (#17534) f6a4faf
- Merge pull request #17533 from sold/game-diag-containers 9e80f3f
- A game box's diag counts every container, not the last two da46449
- A loading terminal screen holds its own keys until load settles, and every load awaits its first read (#17529) a8e4988
- Tests depend on their order within a file: 66 tests in 24 of 80 sampled files fail under --randomize (#17505) d8024b8
- The Dependencies screen is busy until its report is read, so a and f are never dropped (#17524) 0d18300
- Talk: a turn's words written before it heard a confirm's answer are not kept, so the thread never says a pressed Do it still waits (#17507) ae14868
- The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget (#17525) b482465
- /sitemap.xml lists the public apps /explore ranks, up to 200, each with its last change (#13624) 9fff9f4
- Talk: what the dock said is cleared by the next turn, so the live region never keeps an old refusal (#17519) 2e019c9
- Talk: with several proposals waiting, the newest is first and open, so Do it answers what was asked last (#17515) 0fbd355
- A runner's cgroup delegated after it starts is used: a named cgroup not yet writable is asked again (#17501) a36194f
commitFiles is the write under every web edit, Talk write, board change, spawn and conflict finish. It ran six git processes per commit (read-tree, hash-object, update-index, write-tree, commit-tree, update-ref). Counted over 120 gate files, it was 37% of the suite's git processes (1,344 of 3,629), and git process starts are about half the suite's CPU.
Now one
git fast-importwrites the blobs, the tree (the parent's with this commit's M/D lines) and the commit, and answers its id (get-mark). Its scratch branch is reset to the null id before fast-import ends, so no ref is ever made. With fastimport.unpackLimit's default, objects stay loose, as before. The ref then moves by the same compare-and-swap update-ref as before.The guarantees hold:
These still go the index's way:
Measured on the Mac:
Tests (test/commit-fast-import.test.ts):
setCommitClock and setCommitRoute are test seams.
Direction: CI speed and faster writes: a commit is two git processes, not six (#16876) No door: how a commit is written; the same commits, faster
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code