Repository navigation
Description
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):
- The record of item fix(roadmap): a claim release leaves the item In Progress #5118 (plan pull request docs(openspec): plan #5118 Restore the Status on a claim release #5350): attempt at 03:45:42Z, attempts 1, result null.
- Pod
fix-plan-5350-r2-zm9b6logged at 05:17:58Z: "fix(roadmap): a claim release leaves the item In Progress #5118: Its last fix-plan attempt was at 2026-11-13T03:45:42.510914+00:00, less than 6 hours ago." The named retry did nothing. - The help of
devops roadmap step fix-plan --confirmsays: "It acts in every mode of roadmap.fix_plan.mode." A person who names--pull N --confirmexpects an attempt.
Cause
_attemptwrites 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
- Run
uv run devops roadmap step fix-plan --pull <N>with no--confirmon a plan whose record holds afix_plan.atless than 6 h old. - 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
- Add
--skip-waittodevops roadmap step fix-plan. It needs--pullor--item, and--confirm. With it,select_fix_planskips 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. - 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.
- Update
docs/roadmap/stage.mdand 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_waitpasses: the record holdsfix_plan.at1 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_cappasses: 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_waitpasses. -
uv run devops ci fail-to-pass --base origin/mainshows that the first test fails on the base and passes on the head. The pull request cites the run. -
uv run devops docs checkpasses.
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-waitselects 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
dan-petty commentedon Nov 13, 2026
Both work on the fix-plan attempt lifecycle; #5379 limits each agent run's time, while the candidate adds a flag to bypass the 6-hour wait for named runs.chore(main): release 0.130.0 (#5446)
devops-cli-service commentedon Nov 13, 2026
Released in v0.130.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.130.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 18:17 UTC