Repository navigation
Description
Problem or Motivation
Four monitors read a pull request, with two verdict codes: the Job watch (implement_pull.py:325 _judge and :366 watch_pull, up to 3600 s), the row stage_ready (stage_ready.py:127 with draft_readiness, implement_pull.py:195), the row pr_conflicts (pr_conflicts.py:100) and devops pr monitor (src/devops_cli/github/pr_monitor.py:617). Two wrappers mark a draft ready (implement_pull.py:414 and pr.py). #4927: the CLI monitor reports ready when a poll reads no check. #4838: it stops after one failed read.
Proposed Solution & Architectural Design
steps/watch.py: one pure function verdict(state) gives PENDING, READY, FAILED (check, class), CONFLICT, BEHIND, THREADS, MERGED, CLOSED or HEAD_MOVED. A poll that reads no check is PENDING (#4927). A failed read is read again at the next poll (#4838). Block mode serves devops pr monitor and the implement Job watch. steps/ready.py: draft_readiness and one markPullRequestReadyForReview wrapper; it marks a draft ready only when the head equals the expected head.
CLI devops roadmap step watch and devops roadmap step ready. The stage_ready row, the implement Job (_watch, _ready), devops pr monitor and devops pr ready call them in the same pull request. #4927 and #4838 fold here. #2530 has a plan pull request from the Service (#4980): coordinate, and do not take it over.
Timeouts: request 30 s < one pull request 60 s; block mode polls every 60 s.
Cost: about 1.2M tokens and 1 agent-day.
Target Subsystem
Pull request monitors: src/devops_cli/github/pr_monitor.py, the implement Job watch, the stage_ready row and devops pr ready.
Existing Tool Considered
The GitHub GraphQL statusCheckRollup and REST reads that devops pr monitor uses today. No new tool.
Acceptance Criteria
- A table test gives the verdict for each state.
-
uv run devops ci fail-to-pass --base origin/mainshows that the fix(github): pr monitor reports ready when a poll reads no check #4927 and fix(github): pr monitor polls again after one failed read #4838 tests fail before and pass after. - The implement, stage_ready and pr monitor tests stay green.
- A structural test fails when a second
gh pr readywrapper exists.
Dependencies
- fix(roadmap): the final push of the implement Job can miss the latest main #4957 (push-step: fix(roadmap): one push step holds main at every push)
- Part of feat(roadmap): track the Service step jobs #5014 (track the Service step jobs).
Source: #5014
Owner decision 2026-11-13
The approved pipeline split (tracker #5482, Phase 3) uses this verdict in due_jobs (#5504). The verdict judges only a checked head: a head whose message holds [skip ci] gets no verdict.
- Live proof: after the merge and the release,
devops pr monitorand the watch row read the opendevops-cli-service[bot]PRs as the App. A comment gives one verdict for each PR head, the same from each monitor.
Alternatives check of 2026-11-15: not-applicable.
Class: refactor, no search.
Tool: none found.
Activity
dan-petty commentedon Nov 12, 2026
Both address the pr monitor verdict logic; #4927 fixes one specific bug (no-check read), while the candidate unifies all four monitors into one verdict function and adds new CLI commands.devops-cli-service commentedon Nov 15, 2026
Alternatives check: not-applicable
Class: refactor. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
ci: trigger checks for #5021
test(roadmap): cover watch and ready step lines for diff coverage (#5021
test(roadmap): assert specific draft readiness answer (#5021)
test(roadmap): assert draft readiness answer is Answer.READY (#5021)
refactor(github): one pull request verdict for all monitors (#5021)
ci: trigger checks for #5021
test(roadmap): cover watch and ready step lines for diff coverage (#5021
test(roadmap): assert specific draft readiness answer (#5021)
test(roadmap): assert draft readiness answer is Answer.READY (#5021)
chore(main): release 0.159.0 (#5869)
devops-cli-service commentedon Nov 15, 2026
Released in v0.159.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.159.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 23:51 UTC