Skip to content

fix(roadmap): a named fix-plan run can skip the 6-hour wait #5413

Description

@dan-petty

Problem Description

A fix-plan attempt that a hard deadline kills still counts, and the 6-hour wait then refuses a named retry by a person. The manual repair path of a plan stops for 6 h, and the killed attempt uses 1 of 2 attempts on the head with no result.

Evidence (2026-11-13):

Cause

  • _attempt writes the marks (fix_plan.at, attempts + 1, result null) before the first model call (src/devops_cli/roadmap/steps/fix_plan.py:861-869).
  • _record_reason (fix_plan.py:361-378) applies the wait to each candidate. _candidates (fix_plan.py:395-415) sends a named item through the same rule.

Reproduction Steps

  1. Run uv run devops roadmap step fix-plan --pull <N> with no --confirm on a plan whose record holds a fix_plan.at less than 6 h old.
  2. The step leaves the item out with the wait reason, also for a named pull request.

Expected vs Actual Behavior

Expected: a person can start one named attempt when the attempt cap of the head allows it. The Service keeps the wait.

Actual: the named run refuses the item until the wait ends.

Environment Diagnostics

  • DevOps CLI Version: 0.127.0 to 0.128.0 (origin/main 2daf63a)
  • Execution Environment: fix-plan App Jobs in namespace devops

Proposed Fix

  1. Add --skip-wait to devops roadmap step fix-plan. It needs --pull or --item, and --confirm. With it, select_fix_plan skips the wait rule. The attempt cap of the head (CONST_ROADMAP_FIX_PLAN_HEAD_ATTEMPTS) and the revision cap stay. A flag, not the name alone: the Jobs that the Service starts also name --pull, and they must keep the wait.
  2. The null result: fix(roadmap): limit each agent run of fix-plan below the budget margin #5379 limits each agent run below the budget margin, so the step writes its result before the Job deadline. The two items together remove the killed attempt with no result.
  3. Update docs/roadmap/stage.md and the help of the option.

Acceptance Criteria

  • uv run pytest tests/roadmap/steps/test_roadmap_fix_plan.py::test_skip_wait_selects_a_named_plan_within_the_wait passes: the record holds fix_plan.at 1 h ago and 1 attempt on the head, and the step selects the plan.
  • uv run pytest tests/roadmap/steps/test_roadmap_fix_plan.py::test_skip_wait_keeps_the_attempt_cap passes: with 2 attempts on the head, the step leaves the item out.
  • uv run pytest tests/roadmap/steps/test_roadmap_fix_plan.py::test_the_row_keeps_the_wait passes.
  • uv run devops ci fail-to-pass --base origin/main shows that the first test fails on the base and passes on the head. The pull request cites the run.
  • uv run devops docs check passes.

Existing Tool Considered

None needed: the change is one option and one rule of the selection. Cost to build (estimate): 0.2 M tokens and 1 hour elapsed. Keep: one option. Fix: about 0.05 M tokens.

Related

#5379 (the null result), #5363 (closed: the step budget), #5211 step 11 (the manual repair path).

Source: #4843

Scope addition (2026-11-13)

New evidence: plan pull request #5390 (item #5272) used both attempts of its head 8d08977ffff4 on releases before v0.129.1. The second attempt (Job fix-plan-5390-r2, v0.129.0) ended timeout after 4049 s: the review of the head found 3 open findings where the last plan comment listed 1, which is the fault that #5409 fixed in v0.129.1. The record now holds fix_plan.attempts: 2, so no fix-plan run can start on this head, although the cause of both failures is fixed.

  • Record the release of each attempt (fix_plan.version).
  • With --skip-wait, a named run may make one more attempt on a head whose counted attempts all ran on an older release than the current one. The run logs the reason. The Service never uses this path.
  • A test proves that a named run with --skip-wait selects a head with 2 attempts from an older release, and refuses a head with 2 attempts from the current release.
  • Live proof after release: a named run on docs(openspec): plan #5272 Require cuts for shadow and time each decision #5390 starts and writes its result line.

Activity

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

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  6. added a commit that references this issue on Nov 13, 2026
  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  8. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 18:17 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/lowpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions