Skip to content

fix(roadmap): the fix-checks command passes no fixer to the step #5971

Closed

Description

@dan-petty

Problem

The command devops roadmap step fix-checks --pull N (#5023, PR #5939, v0.163.0) repairs no check. The command calls the step with no fixer and no checkout:

src/devops_cli/commands/roadmap_step_fix_checks.py:55:

report = run_fix_checks(store, target, pull, head=head, confirm=confirm)

run_fix_checks (src/devops_cli/roadmap/steps/fix_checks.py:332) takes tier1_fixer, model_fixer, scope_checker and source, and all four stay None:

  • Tier 1 (ruff fix, docs generate, uv lock) never runs: tier1_fixer is not None is false.
  • The scope check reads Path.cwd(), which holds no clone of the pull request branch, so the step returns stopped with "Failed check log is outside plan scope".
  • With a scope that passes, model_fixer is None, so the step returns failed with "Model repair failed".
  • The step ignores --confirm: it writes the fix_checks.* marks and the CI infrastructure comment without it.

The tests of the step pass fake fixers (tests/roadmap/steps/test_roadmap_step_fix_checks.py:280), and the command tests cover only a closed pull request and an error, so no test runs the command on a failed check.

Evidence (2026-11-16): a probe that calls run_fix_checks with the keywords of the command and a fake GitHub session (one failed Static Analysis check, a bot author, an in-scope log) gives:

{"job": "fix_checks", "pull": 42, "result": "stopped", "reason": "Failed check log is outside plan scope"}
{"job": "fix_checks", "pull": 42, "result": "failed", "reason": "Model repair failed"}   # scope_checker forced to True

Impact

#5027 (the watch row starts fix-checks Jobs) runs this command in each fix Job. Until the command repairs, each fix Job spends a runner pod, writes a stopped or failed mark and fixes nothing, and the owner direction of 2026-11-16 puts fix Jobs before new implement and stage Jobs. So #5027 waits for this item.

Expected behavior

The command repairs a failed check of a bot pull request in a Job of the runner image:

  • It clones the head branch of the pull request (as the implement Job does) and passes that checkout as source.
  • It passes the tier 1 fixer, then the model fixer of the implement repair loop (implement_run.py _repair_after_push, _fix, _push), within the plan scope.
  • It writes nothing without --confirm.
  • Its model calls count against a budget of new tokens (uncached input plus output), with a generous default of 16000000 for each run, as roadmap.implement.step_token_budget (owner direction 2026-11-16).

Test first: the command, with fake GitHub and a fake model, repairs an in-scope Static Analysis failure and pushes one commit; without --confirm it writes nothing.

Out of scope

A failed Semantic PR title check (#5940, #5920) is a title problem, not a file problem: no fixer of this step changes a pull request title.

Related

Source: #5014

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    effort/medium
    value/high
    on Nov 16, 2026
  2. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. The command causes every fix Job to fail and blocks #5027, which the owner direction prioritises.
    • Related: feat(roadmap): run a fixable check before a decision point refuses #5840, which asks for a different change. Both items work on the fix-checks step, but #5840 adds a fixable check before a decision point while the candidate fixes the command not passing fixers to the step.
  3. added
    priority/p1-high
    on Nov 16, 2026
  4. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 16, 2026
  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 16, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 16, 2026
  7. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-16 14:50 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions