Repository navigation
Labels
effort/mediumEffort Mediumpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
The step fix-checks (#5971, PR #5976, release 0.165.0) can repair and push a bot pull request. A review after the merge found gaps that matter as soon as #5027 starts the step as a Job:
- No guard for a live Job.
_check_preconditions(src/devops_cli/roadmap/steps/fix_checks.py, about line 236) reads the owner labels and the count of heads, but notitem.job_record[ImplementRecordKey.JOB].fix_plan.py(about line 532) refuses such an item. So the repair loop of a running implement Job andfix-checkscan repair the same failure: both spend tokens, one push loses its lease, orfix-checksmarks the draft ready while the implement Job still runs. - A failed round repeats with no limit. The step records
fix_checks.key(head:check) and the result FAILED, STOPPED or WAIT, but no code reads the key, androundsgoes up only on REPAIRED. Each call on the same head and check runs the model repair again (up to 16M tokens) and posts the infrastructure comment again. - After the third repair, the step cannot mark the draft ready: the cap
len(heads) > 3(about line 277) stops the call before the ready path (about line 449), also when every check passes. - Tier 1 runs only when the failure is classed as lint (
fix_checks_repair.py, about line 193), but the spec gives the lockfile and docs failures their own triggers. Auv.lockfailure inside a check named "Tests" never getsuv lock. - No test moves the origin head between the judgment and the push, and no test covers the branch and SHA guard (
fix_checks_repair.py, about lines 100-110).
Expected behavior
- The step refuses an item whose job record names a live implement Job, as
fix-plandoes. - The step skips a call whose
fix_checks.keyequalshead:checkwith the result FAILED, STOPPED or WAIT, or it counts failed rounds against the cap. - The ready path runs before the cap of heads, or the cap counts only the heads that the step pushed.
- Tier 1 and the spec agree (either the spec says "lint only", or tier 1 starts on a lockfile or docs failure).
- Tests cover a lease refusal and the branch and SHA guard.
This blocks #5027 (the launcher of the step).
Related
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p1-highPriority P1: high-impact work for the next planned milestonescope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 16, 2026
Repeated model repairs with no cap cause increased AI spend, and the item blocks the open launcher #5027.Both target the fix-checks step; #5027 adds the Job launcher while the candidate adds guards inside the step that #5027 requires before it runs.chore(main): release 0.165.2 (#5987)
devops-cli-service commentedon Nov 16, 2026
Released in v0.165.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.165.2
devops-cli-service commentedon Nov 16, 2026
Live since 2026-11-16 16:24 UTC