Repository navigation
Description
Problem
A repair turn of the implement step can change a file that the step did not change. The step then stops with the text "The extra turn for the static check changed files that the step had not changed: ." The stop site _extra_turn in src/devops_cli/roadmap/implement/implement_step.py builds _Failure(foreign) with no class. The classifier then reads the text and the check name. The class depends on the words in the path list, not on the cause.
Evidence (comments of the implement job, 2026-11-05 and 2026-11-07):
- dan-petty/vibes fix(sandbox): resolve cpu delta sampling, ssrf boundaries, and cgroup fallback #168 and docs(agent): require concise commit messages stating direct effect of change #169: recorded
ci_infra. The current classifier giveslint, because the check name holdspre-commit. - dan-petty/devops-cli feat(roadmap): Add toolsets for implement and review from one registry #3244 (two stops): recorded
ci_infra, action leftretry. A retry runs the same turn again and gives the same stop.
Four stops in two repos for one cause have two different classes.
Proposal
Pass a class from the stop site: _Failure(foreign, klass=FailureClass.OUTSIDE_PLAN). The cause is the same as the cause of outside_plan: the step changed a path that the plan does not name. The default action of the class is wait, which is right: a retry gives the same stop.
No model is needed. This is a one-line change at the stop site, and a test that holds the class.
Feasibility
Checked on 2026-11-10 against the stop comments of the four repos of the Service since 2026-10-11 (271 comments) and the counter devops_cli_service_implement_failures_total (Prometheus). After the typed classes of #3534 and the earlier changes, this stop is the only pattern that still falls to the default ci_infra by the regex rules. It occurs about 2 times each week.
Related
Pilot 2 of the Jev decision steps (the failure-class tail) found no go: with 4 untyped stops in 8 days, a classifier has too few cases to fit. A typed class fixes these cases by rule, which beats a model call.
Proposed design
Problem statement
A repair turn of the implement step can change a file that the step did not change. The stop at _extra_turn builds _Failure(foreign) with no class, so the classifier reads the path text and the check name. The same cause can become lint or ci_infra, and a retry repeats the stop. The fix passes FailureClass.OUTSIDE_PLAN at the stop site.
Acceptance criteria
Requirement: Typed foreign-change stop
The foreign-change stop of an extra repair turn SHALL carry FailureClass.OUTSIDE_PLAN.
Scenario: Foreign path after an extra turn
- WHEN an extra repair turn changes a path outside
ask.may_changeand outside the changetasks.md - THEN the
_Failurereturned by_extra_turnhasklassset toFailureClass.OUTSIDE_PLAN.
Requirement: Class independent of path text
The class of the foreign-change stop MUST NOT depend on the path text or the failed check name.
Scenario: Path text holds classifier words
- WHEN the foreign path list holds a word such as
pre-commitorci - THEN the stop class remains
FailureClass.OUTSIDE_PLAN.
Requirement: Wait action for foreign-change stop
The foreign-change stop SHALL use the wait action of OUTSIDE_PLAN.
Scenario: Action of the typed stop
- WHEN the stop carries
FailureClass.OUTSIDE_PLAN - THEN
ACTION_BY_CLASS[FailureClass.OUTSIDE_PLAN]isFailureAction.WAIT.
Requirement: Repair-turn test
The repair-turn test SHALL assert the class of the foreign-change stop.
Scenario: Test of a foreign change
- WHEN the test simulates an extra turn that changes a file outside
ask.may_change - THEN the test asserts
FailureClass.OUTSIDE_PLAN.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this need: the change types an existing internal stop in src/devops_cli/roadmap/implement/implement_step.py. The written cost is one line and one test; the project builds no new code to keep. The elapsed time is under one hour.
Key questions
- Which failure class should the foreign-change stop carry?:
FailureClass.OUTSIDE_PLAN. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py:1713, docs/ROADMAP_WORKFLOW.md:176, src/devops_cli/roadmap/failure.py]- Chosen: OUTSIDE_PLAN. The extra turn changed a path that the plan does not name, the same cause as
outside_plan. - Rejected: CI_INFRA. This is the default for an untyped stop. A retry runs the same turn and gives the same stop.
- Rejected: LINT. The check name
pre-commitmisleads the classifier. The cause is not a lint defect. - Rejected: PLAN_DEFECT. The plan does not cause the foreign path. The extra turn changed it.
- Chosen: OUTSIDE_PLAN. The extra turn changed a path that the plan does not name, the same cause as
- Where should the stop site get the class?: Pass it at the
_extra_turnstop site. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py:1713, docs/ROADMAP_WORKFLOW.md:176]- Chosen: Pass at stop site. The stop site knows the cause. The project records that a stop site that knows its cause passes the class itself.
- Rejected: Extend the text classifier. The classifier depends on path words and check names, which gave two classes for one cause.
- Rejected: Call a model classifier. Four stops in eight days are too few cases, and a rule fixes the stop.
- Should the foreign-change stop get a repair turn?: No. The stop carries no
repair_paths, so_extra_askgives no turn. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py, docs/ROADMAP_WORKFLOW.md:176]- Chosen: No repair turn. The step changed a path outside the plan. Another turn on the same paths gives the same stop.
- Rejected: One repair turn. A repair turn is bounded to the paths of the failed check. The foreign path is outside that set.
- Where does the test belong?:
tests/roadmap/implement/test_roadmap_implement_step_repair.py. [sources: tests/roadmap/implement/test_roadmap_implement_step_repair.py, src/devops_cli/roadmap/implement/implement_step.py:1713]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-11: none.
Tool: none found.
Activity
dan-petty commentedon Nov 10, 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.It misclassifies about two stops per week and triggers a wrong retry action, but it is a narrow single-site gap.Correct classification prevents a pointless retry and gives the operator the right action.The candidate states it is a one-line change at the stop site plus a test.Both use the typed failure-class mechanism; #3476 built the general system, this candidate types one remaining stop site it missed.devops-cli-service commentedon Nov 10, 2026
Status set to Ready at 013c1f4 (see proposed design in issue body).
devops-cli-service commentedon Nov 11, 2026
Alternatives check: none
Reason: The searches for an open, maintained library or tool that classifies a CI/build failure cause from error text and picks a retry action returned nothing applicable to this need. The issue asks for a one-line change at the internal stop site
_extra_turnto passFailureClass.OUTSIDE_PLAN, plus a test, so it touches only the project's ownsrc/devops_cli/roadmap/implement/implement_step.pyfailure-class code and no external tool covers it.Tool: none found
Lacks:
_extra_turn_Failure/FailureClasstypesSearches run:
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
chore(main): release 0.138.0 (#5690)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC