Skip to content

Say What a Held Wait's Exit 0 Does Not Prove - #3473

Merged
ptr727 merged 4 commits into
developfrom
fix/held-wait-exit-zero-help
Oct 25, 2026
Merged

ptr727 merged 4 commits into
developfrom
fix/held-wait-exit-zero-help

Conversation

@ptr727

@ptr727 ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

Answers the finding the develop -> main promotion #3472 raised on the wait help that #3470 wrote. The help and scripts/README.md said a held head exits 0 with its required checks settled and every workflow run completed. Two paths in held_checks_open release without either:

  • A payload with no commit matching the head, CHECKS UNREADABLE, reads no run and no check.
  • A required check not yet registered holds only a BLOCKED merge whose base branch rules were read and whose rollup is not CHECKS TRUNCATED. An empty rollup holds only BLOCKED, BEHIND, or DRAFT. Short of those holds, a merge with some check posted, or a DIRTY one with none, releases with a required check unregistered.

The help and the README's exit table and held-wait paragraph now say this. The exit code itself is unchanged and stays for #3471 to decide, whose done-when allows either a new exit or help naming each exception. This change does the second without closing that decision.

Verification

  • Full unit suite, the OPERATIONS.md "Local Verification" command: 2940 tests, OK, 7 skipped, on the first commit. The test_pr_review*.py set, 525 tests, OK, on the second.
  • prose_lint.py --diff against the merge base, with and without --check sentence-length: clean.
  • Three local adversarial passes. The first two found three gaps, the omitted DRAFT case, the unnamed rules-read and truncation conditions, and an incomplete list of releasing merges, each fixed here. The third found nothing.

🤖 Generated with Claude Code

ptr727 and others added 3 commits October 25, 2026 09:30
The wait help and the scripts README said a held head exits 0 with its
required checks settled and every workflow run completed. Two paths the
code takes release without either: a payload with no commit matching the
head reads no run and no check, and a required check not yet registered
holds only a BLOCKED merge, so a DIRTY merge, or a BEHIND one with some
check posted, releases while one is missing. Name both, as the promotion
review asked. The exit code itself stays for #3471 to decide.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ld Wait Help

The local review pass found the new help left out a DRAFT merge with
some check posted, which releases the same way a BEHIND one does, and
did not name the two conditions under which even a BLOCKED merge skips
the hold for an unregistered required check: base branch rules that
were not read, and a CHECKS TRUNCATED rollup. Name both, and split the
long sentence that carried them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The second local pass found the list of merges that can exit 0 with a
required check unregistered still left out a BLOCKED merge missing the
rules read or an untruncated rollup. Say that any merge short of the
holds just named can release, rather than listing merge states.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 25, 2026 16:36
@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head cdc136837bf27cc49e34e3df34c2e280b32e4ab1, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Most assessments identify unresolved documentation gaps concerning payload visibility, unmet required checks, and additional release paths.

2 open issues
What changed in this PR

This documentation-only pull request clarifies that a held wait returning exit code 0 does not prove that every required check or workflow run was observed.

Changes:

  • Updates scripts/pr_review.py help text with the documented exceptions and limitations.
  • Aligns scripts/README.md exit-code guidance with the held-wait implementation.
  • Describes unreadable payloads, unmet required checks, truncated rollups, and merge-state exceptions.
File Summary
scripts/​README.md Documents the revised held-wait exit semantics and limitations.
scripts/​pr_review.py Updates CLI help for held-head exit 0 behavior.

Review effort: Lite

Comment thread scripts/README.md Resolved
Comment thread scripts/pr_review.py Resolved
@codecov

codecov Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.98%. Comparing base (35bedae) to head (4601053).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3473   +/-   ##
========================================
  Coverage    80.98%   80.98%           
========================================
  Files           25       25           
  Lines         8895     8895           
========================================
  Hits          7204     7204           
  Misses        1691     1691           
Flag Coverage Δ
python-3.13 80.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot found the help and the README promise every workflow run on the
head has completed, while runs_open reads only the head's last 50 check
suites and those of its first CHECKS_WINDOW rollup contexts. Say what
the read reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 46010530418ee04183cbce4b009353bfa4083fcf, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 412ce42 into develop Oct 25, 2026
13 checks passed
@ptr727
ptr727 deleted the fix/held-wait-exit-zero-help branch October 25, 2026 16:57
ptr727 added a commit that referenced this pull request Oct 25, 2026
…nd Nine Fixes to Main (#3472)

## Summary

Promotes the pull requests merged into develop since release 2.0.1166.

- [#3444](#3444): keeps
untracked files out of the pre-commit snippet's prose gate.
- [#3446](#3446): exempts
the BuildKit `check=` parser directive in the prose gate.
- [#3448](#3448): compares
intent staleness against the hub's own copy and names the moved
canonical.
- [#3450](#3450): says
only the prose gate is diff-scoped in the commit hook.
- [#3453](#3453):
reclassifies HolidayLights as an operational config repository in the
registry.
- [#3455](#3455):
classifies the remaining subprocess failures by status rather than by
prose.
- [#3464](#3464): splits
the semicolon series in WORKFLOW.md's filesystem output-seam bullet.
- [#3466](#3466): audits a
caller's `workflow-model` input against the registry.
- [#3469](#3469): emits
one snapshot shape from the skills report's cannot-read paths.
- [#3462](#3462): splits
`pr_review.py`'s pure check and round readers into the leaf modules
`pr_review_checks.py` and `pr_review_rounds.py`.
- [#3470](#3470): holds a
covered held `wait` while any workflow run on the head has not
completed.
- [#3473](#3473): answers
this promotion's review. The `wait` help and `scripts/README.md` now say
what a held head's exit `0` does not prove: a `CHECKS UNREADABLE`
payload, the conditions the unregistered-required-check hold reads, and
the reach of the completed-run read. The exit code itself stays for
#3471.

Closes #3370
Closes #3372
Closes #3371
Closes #3369
Closes #3378
Closes #3454
Closes #3332
Closes #1759
Closes #3451

## Constituent coverage

Each change this promotion carries had coverage on its own pull request
into develop, at its merged head:

| Pull request | Merged head | Coverage |
| --- | --- | --- |
| [#3444](#3444) |
`a61d1e2a` | attested local pass at the merged head, base `develop` |
| [#3446](#3446) |
`0a0efea1` | attested local pass at the merged head, base `develop` |
| [#3448](#3448) |
`c2c71ea7` | attested local pass at the merged head, base `develop` |
| [#3450](#3450) |
`4ec37c34` | attested local pass at the merged head, base `develop` |
| [#3453](#3453) |
`f20a543c` | a Copilot round on the merged head, its one changed file,
no open findings |
| [#3455](#3455) |
`85f0ce60` | attested local pass at the merged head, base `develop` |
| [#3464](#3464) |
`fcd48e2d` | attested local pass at the merged head, base `develop` |
| [#3466](#3466) |
`3426a19c` | attested local pass at the merged head, base `develop` |
| [#3469](#3469) |
`ea4b0bb7` | attested local pass at the merged head, base `develop` |
| [#3462](#3462) |
`236eceab` | attested local pass at the merged head, base `develop` |
| [#3470](#3470) |
`3545ba46` | attested local pass at the merged head, base `develop` |
| [#3473](#3473) |
`46010530` | attested local pass at the merged head, base `develop`, and
a Copilot table on an earlier head naming exactly the changed files |

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

2 participants