Repository navigation
Flag stale CI on Ready for review and require fresh Base CI for Self-merge - #2317
Conversation
|
Delivery completed on agent-authored or reviewed head 7f905f1. |
|
Review run. The branch moved; no fixes were pushed. Proposed fixes remain in the local worktree. Spec axis used the linked closing issues. Reviewed PR #2317 against Standards
Spec
Unaddressed findingsStandards. None. Spec. Self-merge can proceed after a Base update when neither head has CI checks. Issue #2316 calls for green CI on the updated head. The PR body scopes the hold to cases with “Earlier checks but no green CI on the updated head.” The focused repro confirmed that the PR merged with no checks. The review left that documented departure in place under the PR-body exception. Delivery gate · PR summary Review coverageBoth reviewers read all 23 changed files in the pinned diff. Neither axis excluded generated output or left a changed file unread. The reports include the complete files-read lists and supporting sources. Standards report · Spec report · Finding counts Validation
The focused Rust run below exited 0 with 161 passed. Rust validation used cargo nextest run --no-fail-fast --test-threads 3 -E 'binary(=merge_run) | binary(=review_merge) | binary(=mergeable) | binary(=status) | test(ready_rows_flag_stale_green_ci_with_a_first_parent_count) | test(base_fix_reaches_each_tickets_run_of_the_dispatched_spec_run) | test(a_base_fix_and_its_ticket_both_run_the_security_review) | test(with_base_fix_a_tickets_inherited_failure_gets_a_base_fix_into_the_spec_branch) | test(a_ticket_that_landed_after_a_base_fix_says_so_in_the_notification_and_the_checklist) | test(two_tickets_meeting_the_same_inherited_failure_share_one_base_fix)'The documentation check below exited 1 before and 0 after. ! rg -n 'then merges it\. Here|Once the pull request is open, ready, mergeable and green, thirdshift checks the review decision and merges it' site/index.html site/architecture/index.html
Standards 5 — most serious was the omitted trust check on quota retries. Spec 3 — most serious was Self-merge into an untested Base after a retarget. SecurityNo unaddressed introduced findings. Delivery failedpull request changed during Review run: head moved; expected 7f905f1, actual adb350a |
Closes #2316
Summary
The merge request guards the expected head. A Base update after the last local observation can still race the server-side merge. GitHub merge input
Evidence
Execution evidence
target/debug/deps/merge_run-2a568814994f113f base_moving_at_the_merge_gate_needs_green_ci_on_the_new_head --exactfailed withthe merged head missed the Base commit that arrived after CIand passed with the gate.target/debug/deps/console-b1fb2fabdc066aa0 github::ready_rows_flag_stale_green_ci_with_a_first_parent_count --exactinitially showedCI greenwithout the stale-CI note. The regression passed with the note and verifies it clears on a current head.cargo test --test merge_run missing_ci_after_two_base_updates_holds_self_merge -- --exactandcargo test --test merge_run missing_fresh_ci_after_rewritten_base_holds_self_merge -- --exactreproduced merges after CI was absent on both updated heads. Both regressions now pass and keep the PR ready, including a Continuation after the rewrite.cargo test --test status failed_stale_ci_comparison_keeps_current_mergeability -- --exactreturnedmergeablebefore the fix andconflictingafterward despite the failed comparison.inbox_comparison_leaves_the_rest_reserve_for_the_factory,first_comparison_leaves_the_reserve_after_a_cold_identity_read, andinbox_stops_comparisons_when_the_rest_quota_probe_failsshowed an extra REST read. Each now passes withcargo test --test status <test name> -- --exact.rg -ni 'stale CI|CI (result )?predates|behind (the )?Base' site/index.htmlexited 1 before the change and found the warning afterward. Chromium keyboard-opened the Console details and checked the paragraph at 1440×900 and at 390×844 without JavaScript.Visual evidence
Before — Ready for review, desktop 1440×900
After — Ready for review, desktop 1440×900
Before — Ready for review, mobile 390×844
After — Ready for review, mobile 390×844
Before — How it works, desktop 1440×900
After — How it works, desktop 1440×900
Before — Self-merge architecture, desktop 1440×900
After — Self-merge architecture, desktop 1440×900
Before — Homepage Console details, desktop 1440×900
After — Homepage Console details, desktop 1440×900
Before — Homepage Console details, mobile 390×844
After — Homepage Console details, mobile 390×844
Merge Danger
Door Two-way.
Blast Radius Delivery and Inbox.
Unaddressed findings
Standards
None.
Spec
None.
Security
None.
Both reviewers read every changed file across the two review passes.
Built with codex codex-cli 0.169.0 · gpt-6.2-sol · xhigh
Security review outcome
No unaddressed introduced findings.