Skip to content

fix(roadmap): Guard fix-checks against a live Job and a repeated failure #5983

Description

@dan-petty

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:

  1. 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 not item.job_record[ImplementRecordKey.JOB]. fix_plan.py (about line 532) refuses such an item. So the repair loop of a running implement Job and fix-checks can repair the same failure: both spend tokens, one push loses its lease, or fix-checks marks the draft ready while the implement Job still runs.
  2. 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, and rounds goes 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.
  3. 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.
  4. 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. A uv.lock failure inside a check named "Tests" never gets uv lock.
  5. 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-plan does.
  • The step skips a call whose fix_checks.key equals head:check with 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

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. Repeated model repairs with no cap cause increased AI spend, and the item blocks the open launcher #5027.
    • Related: feat(roadmap): the watch row starts fix-checks Jobs #5027, which asks for a different change. 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.
  3. added
    status/new
    value/medium
    effort/medium
    priority/p1-high
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 16, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 16, 2026
  5. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-16 16:24 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions