You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(github): pr readiness passes when review threads can't be read #797
priority/p2-mediumPriority P2: standard workscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
pr check-readiness fails open in two places on release/v0.2.24:
Review threads. It treats a failed review-thread read as zero unresolved threads. commands/pr.py:1456-1459 prints a warning and carries on with an empty list, so a pull request can read as ready when its threads were never checked.
Commit statuses. It reads them from /status without pagination (commands/pr.py:1304-1325), so it sees only the first 30 contexts. It also ignores the combined state.
Two #665 fixes work but have no test: runs check failing when no metric applies, and an ambiguous run id being refused.
Scope & Deliverables
Deliverable:
A failed thread read blocks readiness and names the reason.
Commit statuses are read in full, or the combined state is used.
Consolidation (2026-10-03): the commit-statuses half of this item moves to #769. #769's shared check reader already reads statuses for its zero-runs rule, and the same /status read appears unpaginated in commands/pr.py:1321-1342 and github/pr_monitor.py:454. This item keeps two things: a failed review-thread read (commands/pr.py:1807-1809) blocks readiness and names its reason, and the two #665 tests. It lands first, on today's code, as #998's key question proposes. It becomes a sub-issue of #998.
Moved to v0.2.36: v0.2.36 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
Acceptance Criteria of docs/agent/tasks/task-797-pr-readiness-thread-read-and-runs-check.md:
A thread read that raises makes pr check-readiness exit 1 with a blocker naming the error (tests/test_pr_cmd.py::TestPrCommands::test_check_readiness_fails_closed_when_review_threads_cannot_be_read).
ai runs check exits 1 on an empty comparison and on an ambiguous prefix (tests/test_run_comparison.py::test_cli_runs_check_fails_on_empty_comparison_and_ambiguous_prefix).
priority/p2-mediumPriority P2: standard workscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
Activity
dan-petty commentedon Oct 3, 2026
Consolidation (2026-10-03): the commit-statuses half of this item moves to #769. #769's shared check reader already reads statuses for its zero-runs rule, and the same
/statusread appears unpaginated incommands/pr.py:1321-1342andgithub/pr_monitor.py:454. This item keeps two things: a failed review-thread read (commands/pr.py:1807-1809) blocks readiness and names its reason, and the two #665 tests. It lands first, on today's code, as #998's key question proposes. It becomes a sub-issue of #998.dan-petty commentedon Oct 14, 2026
Moved to v0.2.36: v0.2.36 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
dan-petty commentedon Oct 16, 2026
What changed
#1583, merged into
release/v0.2.36as e010fab.23 file(s) changed.
How it was verified
Check runs at ff0c505:
Acceptance Criteria of
docs/agent/tasks/task-797-pr-readiness-thread-read-and-runs-check.md:pr check-readinessexit1with a blocker naming the error (tests/test_pr_cmd.py::TestPrCommands::test_check_readiness_fails_closed_when_review_threads_cannot_be_read).ai runs checkexits1on an empty comparison and on an ambiguous prefix (tests/test_run_comparison.py::test_cli_runs_check_fails_on_empty_comparison_and_ambiguous_prefix).