Repository navigation
fix(server): let delegated worktrees commit through T3 - #6
Merged
Merged
Conversation
royalaid
marked this pull request as draft
October 29, 2026 08:19
Collaborator
Author
|
Opus review of fc23fe2: CHANGES REQUESTED. This approach is withdrawn. Do not merge or release it.
The earlier claim that the grants exclude config/hooks is insufficient and withdrawn: writable per-worktree metadata can redirect Git configuration. Passing tests do not establish this approach is safe. Converted to draft; no merge or rollout. The bosun report remains open and the replacement approach goes back to Royal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex children in linked worktrees cannot commit because Git metadata is outside their sandbox. Add
t3_worktree_commitso a delegate_task child can ask T3 to commit on its assigned branch without widening Codex's sandbox.T3 reserves
t3/<SHA-256 of child thread ID>/workand records the worktree, admin directory, common directory and branch before setup starts. Only authenticated children with that record see the tool. Each commit validates the metadata and HEAD, uses explicit Git directories, disables callbacks, and updates only the recorded child ref with a no-deref compare-and-swap. It never pushes.Git is resolved at service construction from absolute PATH entries only. Both the commit broker and VcsProcess spawn that absolute executable, avoiding executable lookup in the child checkout. Paths using configured filters, including Git LFS, are refused before staging rather than committed as raw content. Commits include a
T3-Delegate-Threadtrailer.Failed child setup removes the worktree, only its reserved branch, and its authority record so preparation can be retried. Thread deletion also queues authority cleanup. Direct non-delegate commit calls return
capability_denied.Validation: 162 focused tests pass across eight suites on Linux with Git 2.53.0, including absolute executable selection/spawns, failed-setup retry, filter refusal without staging, cleanup effects, trailers and direct-call denial. Server and shared package typechecks exit 0. Scoped lint passes with two existing warnings. The withdrawn writable-roots helper and Codex adapter changes remain removed.
Windows/macOS native runs and packaged application builds were not done. No merge, release or installation has occurred. Opus approved 7460dd3 after re-review. The two approved final Lows are included: clean-filter suppression has a mutation-checked regression test, and stage-all filter refusals suggest explicit paths. Royal authorized merging these small changes without another review round.
Upstream issue: pingdotgg#26865
Non-blocking notes retained from review: worktree-add can create a branch and fail before the cleanup path captures it; Git executable resolution is pinned until the server restarts.
Reviewed with sol-loop: Opus approved the broker and all six requested fixes; the final two small Lows were authorized without another round.
Created with GPT-6.1 Sol in the Codex harness.