Repository navigation
docs(lastcode): keep fork changes to small seams in upstream files - #769
Merged
Merged
Conversation
Implementers following "put new behavior in fork-owned files" still wrote large inline edits in upstream-owned files. Spell out the seam shape: logic in a fork-owned module, one-line hand-offs in upstream files, upstream's own injection points first, no re-indenting, no copied upstream modules. Carry-Group: tooling Carry-Observation: The rule lives in docs/lastcode/fork-conventions.md; AGENTS.md carries a single pointer line directly under "Extend before you add". A nine-run pilot (three historical LastCode PRs, today's rule vs owner prompt vs this rule) found this wording gave the smallest upstream-owned footprint on every task without any prompt reminder. Co-Authored-By: Claude <[email protected]>
Carry-Group: tooling Co-Authored-By: Claude <[email protected]>
…allowance Carry-Group: tooling Co-Authored-By: Claude <[email protected]>
lastobelus
marked this pull request as ready for review
November 20, 2026 05:26
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
added a commit
that referenced
this pull request
Nov 20, 2026
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](https://claude.com/claude-code) Carry-Source-Ref: refs/lastcode/carry-sources/pr-798/5ce4d556c9d65b183ca4dddde58b87ae3e0bee5f Carry-Source-Base: 27b1e62 Carry-Source-Head: 5ce4d55
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.
Implementers following "put new behavior in fork-owned files" still made large inline edits in upstream-owned files, so the owner kept adding a prompt reminder by hand: concentrate code in fork-owned files, minimize code in upstream-owned files, prefer dependency injection to conditional logic. This makes that reminder unnecessary by putting a sharper version in the guidance every implementer already reads.
What changed
docs/lastcode/fork-conventions.md, "Where LastCode Changes Go": the first bullet now describes what a good change looks like:casehand-off);AGENTS.md: the existing pointer line now summarizes that rule, scoped to new behavior outside ports of upstream changes."Dependency injection vs conditional logic" was reframed because much of this codebase can't use DI. The pure event-sourced orchestrator, contracts unions and i18n have nothing to inject, and there a one-line
casethat hands off to a fork-owned decider is the right seam. What drives conflicts is the shape of the edit, not whether it's a conditional. Brave'schromium_srcoverride rules and GitLab EE's one-lineprepend_modfollow the same principle.This only affects how new work is written. It does not revive the "seams in hot source files" refactor that #720 deferred.
Evidence: nine-run pilot
Three merged LastCode PRs (#23, #170, #507) were re-implemented from reconstructed task prompts at their original base commits, with
gpt-6.2-solatxhighin headlesscodex execsessions, one run per condition:Footprint uses the #724 upstream-owned line count. Replay applies each run onto two later checkpoints with the shipped feature removed, counting conflicted files/hunks.
Local review then narrowed the tested wording in two places, without changing the rule for the pilot tasks:
Validation
vp run check:changed origin/lastcode/main: format pass; no code changed.casearms inOrchestrator.ts;runtimeLayer.ts;Layer.mergeAllentry.Local review: 3 rounds with gpt-6.1-terra (xhigh), approved.
Implemented by Claude Opus 5.5 in Claude Code via T3 Code; pilot run by gpt-6.2-astra (high) driving gpt-6.2-sol (xhigh) implementers.
🤖 Generated with Claude Code