Skip to content

fix(roadmap): a stop carries a typed class and the failed check #3476

Closed

Description

@dan-petty

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:

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_moved and output_cap, each with a row in ACTION_BY_CLASS and 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 implemented in the agent text do not give premise_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:1342 gets the same typed class.
  • A test: _report reads 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_total uses 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

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. 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.
    • Value: High. Correct classes and preserved logs let later rules and people choose the right action without re-deriving the cause from free text.
    • Effort: Medium. 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.
    • Related: feat(roadmap): a failure taxonomy, and one action for each class #3065, which asks for a different change. 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.
  3. added
    priority/p2-medium
    priority/p1-high
    and removed
    priority/p2-medium
    on Nov 4, 2026
  4. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    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.

  5. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    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.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  6. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 4, 2026
  7. removed
    status/in-review
    on Nov 4, 2026
  8. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-04 21:19 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/mediumpriority/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions