Public: anyone can read this; the crew can change it.
A workspace's dev checkout is synced with the forge's own git, never the operator's environment #17318
Merged 31h 17m ago, live in production
"only the CLI and TUI run git with the operator's environment (git/local.ts)" has been red on main since #17154 (84424314b, Talk workspace W2) and on every pull that ran it (#17059 twice, #17148, inherits HOME, the global config, credential helpers and /.ssh (#14780).
-
Reviews
ApprovedApproved. syncCheckout's clone, fetch and reset now go through runGit (git/env.ts), so they run with HOME and the global and system config pointed at /dev/null, a timeout and the git gate. They no longer inherit the operator's environment through runLocal. This is the one way to run server-side git, and the change leaves no leftover import. The 30 s default timeout is the same one runLocal had. The test sets a HOME whose .gitconfig renames the clone's remote, then asserts the checkout's config has the default
originremote and not the operator's name. It would fail on the old code. No page, API, MCP or terminal surface changes, so the both-doors rule does not apply. The README is untouched. Two things I would do next: (1) the same sweep for other runLocal callers that run on the server rather than in a person's TUI, which would close the class and not only this call site; (2) a fetch of a large branch could hit the 30 s default, so pass an explicit timeoutMs for the clone and fetch if a big workspace ever shows it. -
Checks
shipped production is serving it deploy 01d8b2c
-
History
- A workspace's dev checkout is synced with the forge's own git, never the operator's environment f8200ec
- boot-production: the inline boot is held until every line its services test reads has come, not only "forge is up" (#17316) 460c3ec
- timers-sync runs over its 2 s budget: each test waits on a real production de… (#17300) ba605d5
- The release keeper cuts main's verify short: its cut never waits for main's r… (#17314) faab496
- Move the accessors out of checks/service.ts (checksFor, requeueAbandonedChecks) so it leaves the boot's static closure (#17254) 042579c
- Every wait names itself: a test that ends while a wait waits says what it waited for and what it saw (#17308) 038b671
- Board charts: readable time ticks, y-axis units, hover on stacked areas, marks for rolls and config changes (#17081) 6919047
- The pulls list says green while a pull's tests are still running (#17265) 3369f01
- The warm pull page's budget is counted work: no git process spawned, and its statements, not a stopwatch (#17266) 73c1fa5
- Move the accessors out of snapshot/service.ts (snapshotsOf) so it leaves the boot's static closure (#17302) bc00add
- tui-apps: a screen that never comes fails the wait that wanted it, with the screen, before the test's own timeout (#17304) cd00073
- Merge pull request #17279 from sold/agent-json 033ee45
- A check that replaces a waiting one keeps its place in line: main's own check… (#17240) db83789
- EPSS scores on /advisories (#17272) ce4b64f
- keeper-stuck, keeper-rebase-loop and keeper-lull are green on main once the duty roster is built on first ask (#17299) 73af9d7
- The terminal gives up g: read again is R, each screen's own g a letter of its verb (#17200) 31035f1
- fork-follow-history: the history fork does not follow, so only the test's own takes move it (#17288) 72abacc
- The check's tsc gets a 6 GiB heap bound: under 2 GiB its collector never stopped, and tsc was a check's largest CPU cost (#17285) f2c35b2
- fork flows > the MCP tool answers the same data: load /mcp when the file load… (#17269) a58c926
- The merge queue gates an unapproved pull every minute and never lands it (#17286) cfa2451
"only the CLI and TUI run git with the operator's environment (git/local.ts)" has been red on main since #17154 (84424314b, Talk workspace W2) and on every pull that ran it (#17059 twice, #17148, #17272): src/apps/dev_launch.ts synced a dev cell's checkout with
runLocal, the laptop git that inherits HOME, the global config, credential helpers and ~/.ssh (#14780). That is the server running a person's git with the operator's settings.syncCheckout's clone, fetch and reset now userunGit(git/env.ts), the forge's scrubbed git, as every server-side git does.No door: no route or page changes. Direction: security top tier: no server process inherits an operator's git (#14780).
🤖 Generated with Claude Code