Skip to content

Review one author’s waiting pull requests as a Pass - #1724

Merged
JacobStephens2 merged 3 commits into
issue-706from
issue-1706
Nov 4, 2026
Merged

JacobStephens2 merged 3 commits into
issue-706from
issue-1706

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

thirdshift review --author <login> reviews one waiting pull request per Pass:

hold one Command-limit slot
list open PRs → keep this author → lowest eligible number
  skip reviewed/pushed heads, in-progress PRs, unreviewed open bases
reserve on origin → label in-progress → recheck selection
Review run → release label and origin reservation

Explicit PR URLs share the reservation lifecycle. The Sweep clears in-progress from closed pull requests. The manual and hand-written site pages describe the new form.

Closes #1706

Evidence

  • Before: cargo test --test review_pass author_pass_reviews_only_the_lowest_numbered_pr_by_that_author -- --exact failed because --author was parsed as a PR URL. The Spec review's corrected GitHub fake also made sweep_clears_in_progress_from_closed_pull_requests_and_keeps_other_labels fail, exposing rejection of GitHub's real /pull/<n> URLs.
    After: All 32 Review tests pass across review_pass, review_run and review_security, including the corrected Sweep regression. Local clippy and the site's 61 checks pass. Final CI passes on a225003313c28cd14a1d1d854df9ea95d00f791f: all 3,666 Rust tests pass (78 skipped), together with formatting, clippy, site and Console checks. Rust test execution took 1,140.837 seconds after a 64-second test build.
  • Independent review against issue-706 pinned at 6bd8843335d5e815ae4e3fd245b53b4af8530aa4: Standards raised 2 duplication concerns; Spec raised 1 Sweep defect. All three addressed. Both axes read every changed file; no unread files or generated-output exclusions.
  • CI caught the compact-help limit at 69 lines; combining the two Review forms restores 68 lines. cargo test --test command_surface help_is_a_compact_reference_with_a_link_to_the_details -- --exact now passes.
  • Local affected-test selection ran the full Rust suite. This host exhausted its OS file-watch limit: three Console revocation tests timed out, and an isolated inbox-stream rerun explicitly reported OS file watch limit reached with a 60-second fallback. The final local attempt took 445.31 seconds including compilation (30.76 seconds); the full CI suite on the published head supplies broad Rust validation.
  • Pickup verification: the normal model check passes claimed-dispatch safety and records the existing pre-Claim counterexample. The explicit literal-property assertion and both mutation assertions fail with their expected counterexamples. Closed-PR Sweep behavior and Review-run reservation writers are outside that bounded model; the new CLI tests cover them.

Test seams

  • The thirdshift review CLI, real Git, and fake GitHub/Harness adapters: author selection, marker and base-head eligibility, reservation lifecycle, and Command-limit skips.
  • The thirdshift pickup CLI and fake GitHub adapter: Sweep cleanup of closed pull requests.

Unaddressed findings

Standards

None. Shared Review-run eligibility and Pass::ALL address both findings.

Spec

None. The Sweep now parses PR URLs before using their issue identity for label operations; the fake retains GitHub's real URL shape and the regression is kept.

Security

None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Blast Radius: scheduling

Changes Review-run selection and temporary PR labels, plus the Pickup Sweep's closed-PR cleanup. Origin reservations survive a crash and require confirmed-owner recovery, as existing Pickup reservations do.

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit 4ca5a30 into issue-706 Nov 4, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1706 branch November 4, 2026 05:05
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