Repository navigation
Description
Context & Rationale
When gh pr checks exits non-zero, devops pr checks renders a REST fallback table and returns 0 (src/devops_cli/commands/pr.py:383-385). tests/test_pr_cmd.py:715-755 asserts that exit 0 while Analyze fails, and AGENTS.md:131 and :250 tell agents to monitor CI with this command. When its single unpaginated check-runs call fails, check-readiness reports no check blockers (pr.py:1241-1271). A blocked state still stops failing required checks (pr.py:1203-1212), but under unstable or --allow-blocked-state it prints "satisfies merge readiness", the certification AGENTS.md:244 relies on. pr wait passes gh api --paginate output to json.loads (github/pr_monitor.py:413-443), which rejects multi-page output, usually ending in a timeout rather than a pass. Four conclusion sets disagree (pr_monitor.py:23-31, config/constants.py:412, pr.py:1269, pr.py:265), and the only rollup parser, _parse_check_runs (pr_monitor.py:240), has no caller. MCP pr_check_readiness passes a --require-ready flag the CLI does not define (ai/mcp/server.py:2280-2281). vibes docs/RETROSPECTIVE.md §8 records gh pr checks --exit-status | tail exiting 0 on a failure.
Scope & Deliverables
- Context & Rationale*: When
gh pr checksexits non-zero,devops pr checksrenders a REST fallback table and returns 0 (src/devops_cli/commands/pr.py:383-385).tests/test_pr_cmd.py:715-755asserts that exit 0 whileAnalyzefails, andAGENTS.md:131and:250tell agents to monitor CI with this command. When its single unpaginated check-runs call fails,check-readinessreports no check blockers (pr.py:1241-1271). Ablockedstate still stops failing required checks (pr.py:1203-1212), but underunstableor--allow-blocked-stateit prints "satisfies merge readiness", the certificationAGENTS.md:244relies on.pr waitpassesgh api --paginateoutput tojson.loads(github/pr_monitor.py:413-443), which rejects multi-page output, usually ending in a timeout rather than a pass. Four conclusion sets disagree (pr_monitor.py:23-31,config/constants.py:412,pr.py:1269,pr.py:265), and the only rollup parser,_parse_check_runs(pr_monitor.py:240), has no caller. MCPpr_check_readinesspasses a--require-readyflag the CLI does not define (ai/mcp/server.py:2280-2281). vibesdocs/RETROSPECTIVE.md§8 recordsgh pr checks --exit-status | tailexiting 0 on a failure. - Deliverable*: Two PRs. PR1 adds
github/check_verdict.py, returning gh's buckets (pass, fail, pending, skipping, cancel) plusunread, read fromgh pr checks --json name,state,bucket,workflow,link.pr checks,pr readyandcheck-readinesstake their verdict from it: non-zero onfail,cancelorunread, exit 8 on pending as gh does, table still rendered. PR1 inverts the exit-0 test, adds a readiness test where check-runs fails underunstable, and drops the MCPrequire_readyargument. PR2 movespr waitandmonitoronto the seam, keeping REST polling of/check-runsviagh api --paginate --slurpplus/status, with exactly one conclusion-to-bucket table and a parity test againstgh pr checks --json bucket. PR2 deletes the other conclusion sets,_parse_check_runs,_parse_check_run_nodeand the duplicate_fetch_commit_check_runs(pr.py:986). No workflow lint is added (see Measured). Must land before the v0.2.24tab-githubhub, which binds readiness tocheck-readiness. - Constraint*:
gh pr checks --jsonexits 0 even with a check in thefailbucket, so switching to JSON while keeping the exit-code logic would reproduce the defect; the verdict must come from the buckets. An empty, errored or partial read isunreadand blocks.--allow-pending-checksexcuses pending checks only;pr ready --forceis the only override. Do not reuseparse_paginated_json(github/client.py:394): it stops silently at the first decode error (client.py:414-415), the same fail-open. Whether gh's rollup pages past its first query is unverified, so a test should assert the bucket count against RESTtotal_count. - Measured*: On PR 401,
gh pr checks 401exits 1, whilegh pr checks 401 --json name,state,bucketexits 0 with 1 of 7 checks infail. On that PR's head,json.loadsrejectsgh api --paginate '.../check-runs?per_page=3'output with "Extra data".SHELLCHECK_OPTS=--enable=check-extra-masked-returns actionlintreports 3 SC2312 findings, all command substitutions, none carrying a gate verdict. - Source*: vibes
docs/RETROSPECTIVE.md,AGENTS.md,CHANGELOG.md
Strategic Alignment
- Milestone:
v0.2.24(Reactive Workstation Command Center, Interactive TUI & Unified Operations Hub) - Roadmap Reference:
docs/ROADMAP.md
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(github): fail-closed pr check verdicts from one bucket classifie…
feat(github): move pr wait and monitor onto bucket classifier seam (p…
dan-petty commentedon Sep 29, 2026
Completed in #715 (PR1) and #716 (PR2).
feat(release): v0.2.24 (#905)