Repository navigation
Description
Problem
The job classifies a stop by words in free text, also in task text and model text. The step knows the exact failure, but it passes a string. People and later rules act on a wrong class. Evidence: 39 stop comments in the window 2026-11-03T15:05Z to 2026-11-04T15:05Z.
17 of 39 classes are wrong or misleading, and 2 report comments add a second class:
- 8 stops at a fix step with
The agent changed no file: 7plan_defect, 1premise_false.failure.py:232runs_PREMISEon the agent text too, and the test(review): use PATH stand-ins for scanner tests #2116 stop at 05:14Z matched(already implemented). - 6 stops fall to the last rule,
ci_infra: 4 lost tests (fix(k8s): key claim table by chart version #2519 twice, fix(k8s): Add loki.url config key for k8s logs #2651, fix(roadmap): the implement job refuses a plan that fails the plan check #3393), 1 moved HEAD (fix(models): make clean-default model fields required #2636), 1 output cap (fix(roadmap): the stage check names the message file a plan must change #3405). - 3 not-ticked stops: test(review): use PATH stand-ins for scanner tests #2116 and docs(ai): point the harness manual at pydantic-ai #3106 get
test, because the task text in the reason holdsdevops ci test. feat(roadmap): stage requires an eval replay task when a plan edits the stage prompt or gates #3331 getsplan_defectfor the same stop. - Report comments: fix(k8s): List helm repo and upgrade in deploy-stack dry-run #2469 and fix(devcontainer): add local-path addon to minikube start #2570 read
refused_tool, thenci_inframinutes later._report(implement_submit.py:226) decides from the item that it gets. A race is inferred and not reproduced.
What the job loses: the log of a failed scoped check is not kept with the stop. _scoped_rounds gives failed.name and failed.log to _fix (implement_run.py:920). When that fix step stops, _stopped_by (implement_run.py:261) passes neither. 32 of 36 stop tables show - as the last failing command. Only #2469, #3230, #3368 and #3394 name a command. Of the 8 no-change fix stops, 6 show - and 2 have no table. So the cause of those 8 stops stays inferred.
Runner logs are not lost. kubectl logs fails for 59 of 99 runner pods, but Loki keeps the logs at {namespace="devops", container="runner"}, with each tool call and refusal in order. A log line gives no test result, so Loki does not replace the stop record.
A keyword search finds a success claim in 25 of 39 last messages (inferred). The comment labels this text Last message of the agent, and no check verifies it.
Expected
Each stop site passes a typed class, and each fixed cause has a class. The classifier reads check logs, and it does not read model text or task text inside the reason. The stop comment and the record hold the failed check and the end of its log. The comment puts the failed exit check first and says that the last message is a claim that no check verified. #3460 owns recovery from a no-op group.
Acceptance criteria
- Classes exist for
no_change_in_fix,not_ticked,tests_lost,head_movedandoutput_cap, each with a row inACTION_BY_CLASSand a case in the fault set of test(roadmap): fault-injection tests prove the pipeline recovers #3075 when that set exists. - A fixture runs the 39 stop texts of the window and asserts each class.
- A test: the words
already implementedin the agent text do not givepremise_false. - A test: a fix-step stop names the check and holds the end of its log, with secrets masked.
- A test: the tier decision at
implement_step.py:1342gets the same typed class. - A test:
_reportreads the item again before it decides on a stop. - A test: the comment puts the failed exit check first and marks the last message as a claim.
- Each panel or alert that reads
devops_cli_service_implement_failures_totaluses the new label values.
Existing tool considered
_StopError takes failure_class (implement_run.py:200), and 7 sites pass PLAN_DEFECT. ScopedResult.log holds the log.
Order
This item comes before #3481, because #3481 reads the class.
Related
Related: #3075, #3460, #3098, #3069, #3258, #3481
Proposed design
Problem statement
placeholder
Acceptance criteria
Existing Tool Considered
placeholder
Key questions
None.
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.Seventeen of thirty-nine stops carry a wrong class and six show no failing command, so downstream automation and triage act on the wrong cause, but the job still stops and a person can intervene.Correct classes and preserved logs let later rules and people choose the right action without re-deriving the cause from free text.The change touches multiple stop sites, adds five new classes with action rows, rewrites the classifier input source, updates _report, and requires fixture and unit tests.Both work on the stop-class taxonomy; #3065 created the class set and action table, the candidate adds five new classes and fixes the classifier to read check logs instead of free text.dan-petty commentedon Nov 4, 2026
The owner asked for this priority change on 2026-11-04. The blocker rule sets P1 here: this item comes before #3481, which is P1.
devops-cli-service commentedon Nov 4, 2026
Refine cannot set this item to Ready at 67d3f47 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
devops-cli-service commentedon Nov 4, 2026
Released in v0.56.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.56.0
devops-cli-service commentedon Nov 4, 2026
Live since 2026-11-04 21:19 UTC
fix(roadmap): a new runner image clears only a stop that it can fix (#…