Repository navigation
Self-merge check: a repository-owned command that can hold any Self-merge - #2433
Draft
JacobStephens2 wants to merge 39 commits into
Draft
JacobStephens2 wants to merge 39 commits into
JacobStephens2 wants to merge 39 commits into
Conversation
2026-12-03T21:14:39Z, host factory.etadventures.com. Uncommitted work at the time of failure is included in this commit.
… nothing to fix on the branch) 2026-12-03T23:14:04Z, host factory.etadventures.com. Uncommitted work at the time of failure is included in this commit.
…2423) The partial #2421 work kept on the Spec branch left tests red: - gate the self_merge_check module to Linux - keep the help text within its line limit - say "run", not "Run", on the hand-written site pages - watch the snapshot query's new body field in the sign-off CI test - list merge.self_merge_check in the complete User config test fixtures Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Report missing Base branch Self-merge check scripts
Cover Self-merge checks across Delivery paths
# Conflicts: # site/how-it-works/index.html # tests/spec_run.rs
Honor per-Command Self-merge check overrides
Skip held pull requests in Pickup and let Fix Pass repair conflicts after mergeability settles. Refs #2428.
Preserve the starting PR body for Self-merge checks
Leave Self-merge check holds for the Day shift
# Conflicts: # site/index.html # src/fix/selection.rs # src/logs.rs # src/logs/reading.rs # src/logs/reading/attribution.rs # src/logs/reading/inbox.rs # src/ready.rs
Hand Self-merge check holds to the Day shift
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.
Summary
Repositories can configure a Self-merge check under
[merge].self_merge_check. thirdshift runs a repository script from the Base branch on origin, or an absolute host command, in Command scratch. The check receives the PR number, repository, Base branch, current body and first-observed body. For a PR the Command opened, the opening body serves as the first observation.The shared Delivery step covers Ticket, Pickup, Fix, Base fix, merge-mode Review, Custom process and final Spec Self-merges. Tickets landing on a Spec branch skip the check. The per-Command
self-merge-checkandno-self-merge-checkchoices carry through to child Runs. Repositories without a configured check continue through the existing merge gates.A hold releases the Claim or PR reservation and leaves the branch and PR ready for the Day shift. The Inbox, Run notification and Command log carry the reason. Local Pickup and Fix Passes use the recorded hold when selecting work. A separate settled CI failure or Merge conflict can still make a held PR eligible for a Fix Pass. Sign-off holds still apply during CI watch. The guide, Glossary and ADR 0037 document the configuration and scope.
Evidence
Execution evidence
thirdshift --help | rg -- self-merge-checkself-merge-check / no-self-merge-check: require / skip the configured check.cargo test --test review_merge a_passing_check_is_followed_by_a_fresh_closing_issue_read -- --exactcargo test --test process a_direct_custom_check_hold_ends_ready -- --exactexit status 9and returned 1.The integration seam is the thirdshift CLI with real Git and fake GitHub and Harness adapters.
cargo fmt --all --checkpassed.scripts/affected-tests refs/remotes/origin/mainpassed all 74 site tests and the build, then stopped when Console test servers refused connections. The Console and Rust reruns are in progress.Visual evidence
Playwright verified the site disclosures and navigation, the phone-width manual with JavaScript disabled, and the Console's Ready for review flow with faux records. The Before checkout is
refs/remotes/origin/main(7fee10ea).Before — Console Ready for review walkthrough, desktop 1440×900
before-inbox.dLgK5F.mp4
After — Console Ready for review walkthrough, desktop 1440×900
after-inbox.gNPW4C.mp4
Before — Console Ready for review rows, desktop 1440×900
After — Console Ready for review rows, desktop 1440×900
Before — Home page Ticket run, desktop 1440×900
After — Home page Ticket run, desktop 1440×900
Before — How it works delivery, desktop 1440×900
After — How it works delivery, desktop 1440×900
Before — Architecture Figure 3, desktop 1440×900
After — Architecture Figure 3, desktop 1440×900
Before — Manual User config, desktop 1440×900
After — Manual User config, desktop 1440×900
Before — Manual User config, mobile 390×844
After — Manual User config, mobile 390×844
Unaddressed findings
Standards
Search::linecan observe a Ticket's Spec before that Spec is selected. Pickup retains the earliest body across searches, reservation losses and dispatch. The focused regressiona_pickup_keeps_a_specs_first_body_when_an_earlier_reservation_losescovers that path. Readiness lookupSpec
Both axes covered every changed file, including generated HTML and the review follow-up hunk.
Merge Danger
Door: two-way
The check is opt-in per repository and can be disabled by configuration or for one Command.
Blast Radius: Delivery
Closes #2421