Skip to content

Hand Self-merge check holds to the Day shift - #2438

Merged
JacobStephens2 merged 7 commits into
issue-2421from
issue-2427
Dec 5, 2026
Merged

JacobStephens2 merged 7 commits into
issue-2421from
issue-2427

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Self-merge check holds a pull request
├─ Inbox shows the PR and reason in Ready for review, including a held Base fix
├─ The owning Run notification carries the reason, including for nested Tickets
├─ Pickup leaves a held PR with the Day shift and looks for the next Ready issue
└─ Fix Pass skips a PR held only by the check and still repairs CI red or a Merge conflict

Pickup shares one branch and PR observation per readiness check and refreshes independently after reservation. The Ready issue checklist documents the hold. The Sign-off hold continues to decide CI readiness before a Run reaches its Self-merge check. An explicit no-self-merge-check still lets Fix Pass consider a held PR under its usual rules.

Evidence

Execution evidence

  • cargo test --test pickup_run an_all_closed_spec_with_an_empty_later_ticket_read_is_still_passed_over -- --exact

    • Before The PR listing assertion failed with left: 2 and right: 1.
    • After The test passed with one listing and the untouched issue still waiting.
  • cargo test --test process a_later_process_failure_keeps_the_dispatched_self_merge_hold_in_email -- --exact

    • Before The email showed Result: failed and Cause: exit status 1. The hold-reason assertion failed.
    • After The test passed with both the failure and the held PR’s reason in the same email.
  • cargo test --test process published::a_nested_published_ticket_hold_reaches_its_owning_process_email -- --exact

    • Before The email showed the outer PR and Result: succeeded. The nested hold-reason assertion failed.
    • After The test passed with the outer PR merged and one unless_merged email naming the open nested PR and its hold reason.
  • cargo test --test pickup_run pickup_leaves_an_open_self_merge_check_hold_for_the_day_shift -- --exact dispatched Keeping the PR mergeable: merge the Base branch and conflict Repair #8 and left the held PR for Numbered Issue branches after a merged or closed PR #7 open.

  • cargo test --locked --test fix_pass self_merge_check passed the skip, CI-red and conflict repair, and explicit override cases. cargo test --test ci a_self_merge_check_and_sign_off_hold_apply_independently -- --exact passed.

  • cargo test --test base_fix a_base_fix_obeys_the_self_merge_check -- --exact passed with the held Base fix’s PR and reason in Ready for review. cargo test --locked --test self_merge_check a_pickup passed both first-observed PR-body cases.

  • The Ready issue checklist check failed with AssertionError: Ready issue checklist omits the hold and passed after the documentation edit. npm run docs:check --prefix site passed after regenerating the manual.

  • cargo test --locked --test pickup_model -- --nocapture passed its claimed-dispatch checks. It also reproduced the model’s documented pre-Claim counterexample.

  • npm test --prefix site passed all 74 checks. Local desktop and mobile Console walkthroughs showed the Base fix PR and its reason in Ready for review and in Command details. The Pickup documentation worked with JavaScript enabled and disabled.

  • All four Linux Rust partitions, the coverage gate, the Console browser suite, and the site suite passed on 40922190. GitHub Actions run

The regression seams are the Pickup CLI and its GitHub calls, Fix Pass selection and Repair, thirdshift status, and the owning Run’s email delivered to a Resend stand-in.

Merge Danger

Door Two-way. Reverting restores the previous selection, Inbox, and notification behavior.

Blast radius Automation. This affects scheduled Pickup and Fix Pass selection, Ready for review, and notifications that report held PRs.

Unaddressed findings

Standards

None.

Spec

  • Separate hosts can retake a held PR. The earlier review reproduced both Passes with a fresh logs.dir and the same GitHub state. Both probes exited 101. The repository-scoped inventory at src/logs/reading.rs:553 reads the executing host’s retained Command records. Spec Self-merge check: a repository-owned command that can hold any Self-merge #2421 and ADR 0037 define check execution and recording. A shared hold source, its lifetime, and how the Day shift releases it remain a Day shift decision. Follow-up #2439 · ADR 0037

Security

None. The review traced the hold reason from the repository-owned check through the Inbox, Console, Pickup output and Run notification, plus Fix Pass and Pickup hold selection. The reason comes from a check that already runs repository code on the host, and the Console escapes it (a local <b> payload rendered as text). Hold selection only leaves more pull requests for a person; it never skips the check before a Self-merge.

Security review outcome

No unaddressed introduced findings.

Review coverage

Spec read all changed files. Standards read every changed file except tests/process/published.rs, which contains the nested notification regression added after its follow-up. Both reviewers read the generated manual.

Closes #2427

Built with codex codex-cli 0.167.2 · gpt-6.2-sol · xhigh

@JacobStephens2

Copy link
Copy Markdown
Owner Author

Delivery completed on agent-authored or reviewed head 392511a.

# 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
@JacobStephens2
JacobStephens2 merged commit e2e2901 into issue-2421 Dec 5, 2026
25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2427 branch December 5, 2026 14:49
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