Repository navigation
feat(tooling): merge PRs that are behind lastcode/main - #660
Conversation
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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b006aa548
ℹ️ 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".
GitHub no longer requires lastcode/main PRs to be up to date, so lastcode:merge accepts a PR whose CI passed on its head even when main has moved. It checks that the tested base is still in main and that the head merges cleanly onto the current tip, and the carry check now models the squash that actually lands there. After merging it prints the merge commit and how to confirm main's CI for it. Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
The printed command waits for main's push run to register before watching it, and the fallback names this PR's merge commit instead of main's tip. Carry-Group: incubator Co-Authored-By: Claude <[email protected]>
|
@codex review |
6b006aa to
d4c9af9
Compare
|
Codex Review: Didn't find any major issues. Swish! 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". |
Problem
lastcode:mergeonly merged PRs that were up to date withlastcode/main, and the ruleset required it too. CI takes 25–30 minutes, so with many threads landing at once each merge made every other PR stale; one PR lost that race five times. Upstream T3 Code doesn't require PRs to be up to date, and its main CI stays green.Fix
The
lastcode/mainruleset no longer requires branches to be up to date (strict_required_status_checks_policy: false; already applied). With that off, GitHub reports a behind PR asCLEAN. The guarded merge now accepts one:CLEANonly.BEHINDnow means the up-to-date rule is back, andBLOCKED,DIRTY,UNSTABLEandUNKNOWNstay refused.baseRefOid) must still be in main, so a checkpoint rewrite still forces a rebase. A freshgit merge-treemust also show no conflicts against the current tip. Draft, exact-head, CI, review and lock guards are unchanged.lastcode-carry-ci.tsnow models the squash that really lands. For a behind PR,Carry-Source-Baseis the fork point, the parent is the current tip, and the tree is the PR merged onto it, which is the shape checkpoint replay already verifies. The merge reruns it against current main, because a newer merge can change the result. GitHub CI uses the same path, so a PR pushed while main moves no longer fails carry CI.lastcode-prtells the lander to run it, end the turn, and fix forward or revert if it fails. This holds no lock and adds nothing to the merge itself.lastcode-pr,upstream-fix,release.mdandnightly-workflow.mdno longer say to refresh or rerun CI because main moved.Proof
lastcode/main's scripts and pass here.vp run check:changed origin/lastcode/mainpasses.Local review: 1 round with gpt-6.1-terra (xhigh), approved; its one should (behind stacked PRs whose topic base has unsquashed parent commits) failed before this change too and is a follow-up.
Implemented with Claude Opus 5.5 through the Claude Code harness in T3 Code.
🤖 Generated with Claude Code