Repository navigation
Description
Problem Description
The implement job takes a Staged item while the draft pull request of its plan holds the label plan/needs-fix. The stage job sets that label when the model review of the plan finds an open finding (_label_needs_fix in src/devops_cli/roadmap/stage/stage.py, constant PLAN_NEEDS_FIX_LABEL in stage_verify.py, #3264). The row stage_ready keeps such a draft a draft. But _Judge._pull_reason in src/devops_cli/roadmap/implement/implement.py accepts every open draft, and no file of src/devops_cli/roadmap/implement/ reads the label. So the Service starts a runner Job on a plan that the review refused, and the Job spends its step budget on a wrong plan.
Evidence from the live Service on 2026-11-10 (label events of the pull requests, and kubectl -n devops get jobs):
| Item | Plan pull request | Label plan/needs-fix set |
Runner Job started | Job end |
|---|---|---|---|---|
| #3443 | #4352 | 10:51:32Z | 10:57:29Z (roadmap implement --item 3443) |
Failure class limit_reached, stopped 1 |
| #3451 | #4353 | 11:40:27Z | 11:47:47Z (roadmap implement --item 3451) |
Failure class limit_reached, stopped 1 |
Both Jobs started 6 to 7 minutes after the label, and a person removed the label only at 13:47Z and 14:16Z.
Related, not the same: #4078 and #4041 propose that implement takes no unmerged plan at all, and #3976 proposes that implement reads the check runs of the plan. This item keeps the current Staged design and only reads the label that the review already sets.
Reproduction Steps
- Let the stage job open a draft plan pull request whose review gives an open finding, so the draft gets
plan/needs-fix. - Let the Service run its row
implement, or rundevops roadmap implement --item <issue>. - See that the plan takes the item and the Service creates a runner Job.
Expected vs Actual Behavior
Expected: the implement job leaves the item out while its plan pull request holds plan/needs-fix, with a reason that names the label and the pull request. The Service logs the skip once for each label, not in each round. When the label goes away, the job takes the item again.
Actual: the job takes the item, and the runner Job stops on limit_reached.
Environment Diagnostics
- Execution Environment: Roadmap Service on Kubernetes, row
implement, runner Jobs from CronJobdevops-cli-runner
Logs, Traces, or Terminal Output
devops-cli-runner-20261110-105724-b626 ["roadmap","implement","--repo","dan-petty/devops-cli","--item","3443","--confirm"]
Failure class limit_reached. Action left: raise_limit.
Took 0 item(s) to a ready pull request, stopped 1.
devops-cli-runner-20261110-114742-c187 ["roadmap","implement","--repo","dan-petty/devops-cli","--item","3451","--confirm"]
Failure class limit_reached. Action left: raise_limit.
Took 0 item(s) to a ready pull request, stopped 1.
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.Production runner Jobs fail with 'limit_reached' on refused plans, wasting budget, but no data is corrupted.Each misfired Job wastes step budget and delays legitimate work, but the system still functions.The fix adds a label check in the existing '_Judge._pull_reason' selection path in 'implement.py'.The implement job skips items whose plan pull request holds the label 'plan/needs-fix', logging the skip with the label and pull request numberas the change that both ask for.The candidate and #4477 share the same title and describe the identical change: implement must read the 'plan/needs-fix' label and skip the item.A person closes one of the two if that is so.dan-petty commentedon Nov 11, 2026
Duplicate of #4477. I filed this issue twice by mistake: the first intake run filed #4477, and the search API did not show it yet when I filed again. The work continues on #4477.