Skip to content

docs(agents): say how to prepare a checkout no thread owns - #798

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/prepare-unowned-checkouts
Nov 20, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/prepare-unowned-checkouts

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The Prepare Dependencies Action only prepares the checkout of the thread that launches it, and run_project_action_and_resume takes no target. A checkout no thread owns, such as a git worktree add checkout or an eval's historical base, had no sanctioned way to get dependencies: AGENTS.md says to use the Action, and delegated children hand every Action to their parent. In the #769 pilot, an eval child stalled asking its parent to prepare three scratch checkouts, and the parent could not target them.

Fix

One new bullet in AGENTS.md Dev servers, right after "Need a second checkout?": whoever uses a checkout no thread owns prepares it directly, delegated children included. Run node scripts/prepare-dependencies.ts from inside it, or pnpm install --frozen-lockfile with its pinned pnpm where the checkout has no such script.

Thread-owned checkouts still use the Action, and children still hand Actions for their own checkout to the parent. It's an added line, with no edits to existing ones.

Validation

  • vp run check:changed origin/lastcode/main: format pass; no code changed.
  • node scripts/prepare-dependencies.ts run directly in a checkout verified the pinned pnpm, installed, and reported dependencies-installed.
  • Re-read against the motivating case, the pilot child's three scratch bases: the new bullet covers them, and the child would no longer need a handoff.

Local review: 1 round with gpt-6.1-terra (xhigh), approved.

Implemented by Claude Opus 5.5 in Claude Code via T3 Code.

🤖 Generated with Claude Code

The Prepare Dependencies Action only prepares the launching thread's
checkout, so an eval or fixture checkout outside any thread's worktree had
no sanctioned way to get dependencies and a delegated child stalled asking
its parent for an Action that could not target it.

Carry-Group: tooling
Carry-Observation: Fork-added bullet directly after the fork's "Need a second checkout?" bullet in AGENTS.md Dev servers. Keep it next to that bullet when upstream edits the section.

Co-Authored-By: Claude <[email protected]>
@lastobelus
lastobelus marked this pull request as ready for review November 20, 2026 23:29
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T23:30:44.444976Z 5ce4d55 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 5ce4d556c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus merged commit 7a50407 into lastcode/main Nov 20, 2026
49 of 52 checks passed
@lastobelus
lastobelus deleted the lastcode/prepare-unowned-checkouts branch November 20, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant