Repository navigation
Description
Problem or Motivation
The implement step stops the whole item when a task group changes no file. _stage in src/devops_cli/roadmap/implement_step.py lists no path, so the step returns _Failure(MESSAGES.roadmap.implement_stop_no_change) at line 1133. The stage plan now refuses the test-only group that caused #3433 (PR #3441). The implement job still has no recovery for a no-op group of another shape. A group can be a no-op when its change is already in the base, when its work depends on another change that did not happen, or when a person edited the plan after the stage job.
The item stops after the earlier groups did work. The job discards or blocks the item and waits for a person (#3098). The defect is local to one group.
Proposed Solution & Architectural Design
- When
_stagelists no path for a group, record the group as a plan defect in the job record, and do not stop the item in that turn. - Return the group to the stage job for a smaller replacement, or split the remaining groups and continue. Use the bounded repair rounds of feat(roadmap): every step repairs before it gives up, in bounded rounds #3053.
- Stop the item only when the repair rounds or the settings budget are exhausted, and name the group in the stop.
- Add a test with one no-op group and one real group: the job finishes the real group and does not stop the item.
Target Subsystem
src/devops_cli/roadmap/implement_step.py, src/devops_cli/roadmap/implement_run.py
Existing Tool Considered
No open, maintained tool covers this need. #3053 and #3098 plan the repair rounds and the partial state. The change extends their stop handling.
Evaluation 2026-11-04
All 8 no-change stops of the window are at the fix step, and none is at a group: #2116 six times and #2462 two times. 7 have the class plan_defect. 1 has premise_false (#2116, 2026-11-04T05:14Z), because classify_failure tests the agent message for a premise text first, and the message said "already implemented". 2 of the 8 stops have no step table (#2116 at 2026-11-03T15:09Z and #2462 at 17:39Z), so "after committed work" is unverified for those 2.
New scope: the fix step only. Proposed title: fix(roadmap): a fix step that changes no file stops with the failed check.
- A fix step that changes no file, after committed work, stops with the name and the log of the failed check. The class comes from that check. It is not
plan_defectand notpremise_false, also when the agent message matches the premise text. - Targets:
_fix(src/devops_cli/roadmap/implement_run.py:1125-1140),_stopped_by(implement_run.py:261, which passes no check, so the stop tables show-), the fieldcheckof_StopError, andsrc/devops_cli/roadmap/failure.py:197and:235. A change in_fixalone cannot change the class, because the class comes from the text of the stop. - Tests: one for each of the 2 call sites of
_fix(implement_run.py:920and:1120), and one where the agent message says "already implemented". - A group step that changes no file stays
plan_defect, asopenspec/specs/roadmap-implement-job/spec.md:698and the owner decision of 2026-11-02 on feat(roadmap): every step repairs before it gives up, in bounded rounds #3053 say.src/devops_cli/roadmap/implement_step.py:1133raises the same text for a group and for a fix, so the rule must read the step.
Removed from this item. The text "Use the bounded repair rounds of #3053" goes. The fix needs neither #3053 nor #3098, because the repair rounds of #3043 exist (implement_run.py:1098). The group case moves to a comment on #3053, which owns the rounds: record the group, return it for a smaller replacement, name the group in the stop, and test one no-op group and one real group. So the proposed solution above and the requirements of the refine block on a group no longer apply.
The stage comment of 2026-11-04T16:14Z gave the evidence {"premise_failed": null}, which is no finding.
Proposed design
Problem statement
The implement job stops an item when a task group changes no file. The stage plan already refuses the test-only group from #3433. The job still has no recovery for other no-op groups. This change records a no-op group as a plan defect and continues the other groups within the repair budget.
Acceptance criteria
Requirement: No-op group is a plan defect
The implement step SHALL report a group that stages no path as a plan defect and SHALL NOT return the generic no-change stop.
Scenario: One group stages no path
- WHEN The step restores
tasks.md, removes stray files, and_stagelists no path for one group. - THEN The step returns a stopped outcome whose last message is a plan-defect request that names the group.
Requirement: Job records and continues
The implement job SHALL record a no-op group as a plan defect in the job record and SHALL continue with the remaining groups.
Scenario: No-op group before a real group
- WHEN The job runs a change whose first unticked group stages no path and whose next group changes a file.
- THEN The job records the first group as a plan defect, runs the next group, and sets no Blocked status.
Requirement: Replacement or split of the no-op group
The implement job SHALL use the existing plan-amendment path to replace the no-op group with a smaller group or to split the remaining groups.
Scenario: Replacement or split passes the plan checks
- WHEN The no-op group returns a smaller replacement or a split that passes the form, path and budget checks.
- THEN The job writes the new plan to
tasks.md, commits the plan change, and runs the new groups.
Requirement: Bounded repair and named stop
The implement job MUST bound no-op group repairs by roadmap.implement.repair_rounds and MUST stop the item with the group named when the budget is spent.
Scenario: Repair budget exhausted
- WHEN Each replacement or split of a no-op group stages no path and the repair budget is spent.
- THEN The job stops the item, sets Blocked, and the stop reason names the group.
Requirement: Test covers no-op and real group
The test suite SHALL prove that a no-op group does not stop the job before a real group finishes.
Scenario: No-op group and real group
- WHEN The new offline test runs one no-op group before one real group.
- THEN The test asserts the real group commits and the item is not stopped.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this need: the change fixes repository-specific control flow in the implement job. It extends existing code and builds no replacement tool, so no build cost applies.
Key questions
- What does the step do now when a group stages no path?:
_exit_failurereturns_Failure(MESSAGES.roadmap.implement_stop_no_change)._extra_askgives no turn for that failure, so the step stops and the job blocks the item. [sources: src/devops_cli/roadmap/implement_step.py, src/devops_cli/roadmap/implement_run.py] - How should the implement step classify a group that stages no path?: Treat the group as a plan defect, not a generic step failure. The step returns a plan-defect request that names the group. (best practice) [sources: src/devops_cli/roadmap/implement_step.py, src/devops_cli/roadmap/implement_run.py, CONTEXT.md]
- Rejected: Stop the item with
implement_stop_no_change. It discards work from earlier groups and blocks the item for a local plan defect. - Chosen: Treat the group as a plan defect and continue. The job already has plan-defect and repair paths, and the defect is local to one group.
- Rejected: Ignore the no-op group and tick it. It records work that no file changed, and the change archive would be false.
- Rejected: Stop the item with
- Where should the job record a no-op group?: Record the group number and reason as a plan defect in the issue body job record. Keep
implement.failurefor a final stop. (best practice) [sources: src/devops_cli/roadmap/implement_run.py, CONTEXT.md, docs/adr/0016-labels-hold-the-roadmap-items-fields.md]- Rejected: Only in the pull request comment. A retry or a Service clear rule cannot read the comment as state.
- Chosen: In the job record with the existing mark write. The record survives a retry and the Service can read it.
- Rejected: In a new label. The issue body holds the job record, and labels hold roadmap fields only.
- How should the job obtain a replacement for a no-op group?: Use the implement job's existing plan-amendment path. Ask for a smaller replacement, or split the remaining groups and continue. (best practice) [sources: src/devops_cli/roadmap/implement_run.py, CONTEXT.md]
- Rejected: Call the stage job again. The implement job runs after staging, and the stage job would rewrite the whole change outside the item run.
- Chosen: Use the implement job's plan-amendment and split paths. Those paths already bound plan changes and keep the run inside one item.
- Rejected: Stop and ask a person. A person is not needed for a local plan defect that the existing repair budget can bound.
- What bounds retries of a no-op group?: Use the setting
roadmap.implement.repair_rounds. Stop the item only after the budget is spent, and name the group. (best practice) [sources: src/devops_cli/roadmap/implement_step.py, src/devops_cli/roadmap/implement_run.py]- Rejected: One retry only. It ignores the configured repair budget and can stop on the first bad replacement.
- Rejected: Unlimited retries. It can loop on a plan defect and spend tokens without a stop.
- Chosen: The existing
roadmap.implement.repair_roundsbudget. It is the project's bounded repair control for a step and the job.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 4, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.devops-cli-service commentedon Nov 4, 2026
Status set to Ready at 7cf8335 (see proposed design in issue body).
devops-cli-service commentedon Nov 4, 2026
The stage job returned the item to New. The premise of the issue does not hold at the staging commit, so the job planned no change and opened no pull request.
Evidence:
{"premise_failed": null}
dan-petty commentedon Nov 4, 2026
Closed as not planned. Newer code and a newer issue supersede this item.
Evidence, checked on
origin/mainat 0af847c:_exit_failureinsrc/devops_cli/roadmap/implement_step.py(line 1158) returnsFailureClass.NO_CHANGE_IN_FIXfor a fix step andFailureClass.PLAN_DEFECTfor a group step._fixinimplement_run.pypasses the check name and log to_stopped_by.tests/roadmap/test_roadmap_implement_step_failure_class.py. One test uses the agent message "already implemented" and still getsNO_CHANGE_IN_FIX. Another test proves that a group with no change staysPLAN_DEFECT.No code change is left for #3460.