Repository navigation
Description
Problem
A verification command that still fails after the repair rounds gets the class ci_infra when its program names no class. verification_class of src/devops_cli/roadmap/verification_command.py gives a class only for pytest, mypy, ruff and the test, lint and typecheck rows of devops ci. For another command, such as devops docs check, devops k8s lint, grep or ! git grep, classify_failure finds no rule and returns ci_infra. The action of ci_infra is retry, so the Service clears the stop on each new runner image and the item spends the same tokens again.
Evidence
The implement run of dan-petty/homelab#353 of 2026-11-30 on runner image v0.265.3 stopped after 6 repair rounds on uv run devops ci docs, with about 4.6 million input tokens, as ci_infra (#7983). #7983 stops only an undeclared documents check that fails before the first step.
Expected
A stop for a verification command that exited 1 after the repair rounds has a class whose action is not retry. A cause that the failure text names, such as oom, timeout or provider, keeps its class.
Acceptance criteria
- A test: a step that stops for a verification command with no program class, exit status 1 and no cause in its text gets a class whose action is not
retry. - A test: the rule
digestdoes not clear that stop on a new runner image.
Alternatives check of 2026-12-01: none.
Tool: none found.
Reason: The searches found no open, maintained tool or library that classifies a spent verification command into a failure class with a stop action. The need is an internal enum and rule change in this repository.
Lacks:
- No generic classifier from command text to failure class
- No mapping of a failure class to a retry or stop action
- No rule that keeps a named cause class before a fallback
- No digest clear rule that reads the class action
Proposed design
Problem statement
A verification command that fails after the repair rounds gets ci_infra when its program names no class. ci_infra has the action retry, so a new runner image clears the stop and the item spends the same tokens again. The change gives that failure the class verification, whose action is stop. A cause that the failure text names keeps its own class.
Acceptance criteria
Requirement: Spent verification command gets a stop class
A verification command with no program class that fails with no named cause SHALL get the failure class verification.
Scenario: An unknown verification command fails after the repair rounds
- WHEN The implement step stops on
uv run devops docs checkwith exit status 1 and no cause in its text - THEN The stop record holds
FailureClass.VERIFICATIONandACTION_BY_CLASSmaps it toFailureAction.STOP.
Requirement: A named cause keeps its class
A verification command with no program class SHALL keep the class that a cause in its failure text names.
Scenario: An unknown verification command fails with OOM
- WHEN The implement step stops on
uv run devops docs checkwith exit status 1 and the text namesoom - THEN The stop record holds the class that
classify_failurereturns foroom, notFailureClass.VERIFICATION.
Requirement: The digest rule skips a verification stop
The clear rule digest MUST not clear a stop whose failure class action is not retry.
Scenario: A new runner image rolls out after a verification stop
- WHEN The stop has class
FailureClass.VERIFICATIONand the runner image digest differs fromimplement.job_digest - THEN The digest rule leaves the item Blocked and writes no entry to
implement.digest_clears.
Requirement: Known verification classes stay the same
The class of pytest, mypy, ruff and the test, lint and typecheck rows of devops ci SHALL not change.
Scenario: Known verification programs are classified
- WHEN
verification_classreadsuv run pytest,uv run mypy .,uv run ruff check .,uv run devops ci test,uv run devops ci lintanduv run devops ci typecheck - THEN it returns
FailureClass.TEST,FailureClass.TYPES,FailureClass.LINT,FailureClass.TEST,FailureClass.LINTandFailureClass.TYPES.
Requirement: A negative search gets the verification class
A negative search that fails after the repair rounds SHALL get the failure class verification.
Scenario: A negative search finds a match
- WHEN The implement step stops on the negative search
! git grep secret -- src/and git exits 0 - THEN The stop record holds
FailureClass.VERIFICATION.
Existing Tool Considered
The alternatives check of 2026-12-01 in the issue body records verdict none. The change builds its own code instead: about 30k tokens to build, keep and fix the rule and its tests, and less than two hours.
Key questions
- Which class and action must a spent verification command with no program class get?: Add
FailureClass.VERIFICATIONand map it toFailureAction.STOPinACTION_BY_CLASS. The action is notretry, so the digest rule does not clear the stop. (best practice) [sources: src/devops_cli/roadmap/failure.py:145, src/devops_cli/roadmap/verification_command.py, docs/CLUSTER.md:16]- Chosen: Add
FailureClass.VERIFICATIONwith actionFailureAction.STOP. It names the actual failure and does not retry on a new image. - Rejected: Reuse
FailureClass.TEST. A docs check, a k8s lint or a grep is not a test, and the class misleads the report. - Rejected: Keep
FailureClass.CI_INFRA.ci_infrahas the actionretry, so the item spends the same tokens again.
- Chosen: Add
- How does the step keep a cause class for a command with no program class?: The helper
verification_failure_classreturnsverification_class(argv)when it is not None. Else it returns the class fromclassify_failure(evidence)when that class is not the fallbackci_infra. Else it returnsFailureClass.VERIFICATION. (best practice) [sources: src/devops_cli/roadmap/verification_command.py, src/devops_cli/roadmap/failure.py, src/devops_cli/roadmap/implement/implement_step.py]- Chosen: Program class, then named cause, then verification fallback. It keeps the known classes and the class that a cause names.
- Rejected: Cause class first for every command. It changes the class of a known program, such as pytest, when its output holds a cause word.
- Rejected: Verification class first. It hides an
oom,timeoutorprovidercause.
- Does the
digestclear rule already skip a class whose action is notretry?: Yes.docs/CLUSTER.md:16says ruledigestrequires the class inimplement.failureto have the actionretryinACTION_BY_CLASS.FailureClass.VERIFICATIONmaps toFailureAction.STOP, so the rule skips it. [sources: docs/CLUSTER.md:16, src/devops_cli/roadmap/stop_clear.py, src/devops_cli/roadmap/failure.py:145] - Where does
verification_classreturn no class today?: It returnsNonewhen_PROGRAM_CLASSand_CI_ROW_CLASShave no entry for the command._PROGRAM_CLASSholdspytest,mypyandruff._CI_ROW_CLASSholdstest,lintandtypecheck. [sources: src/devops_cli/roadmap/verification_command.py:246, src/devops_cli/roadmap/verification_command.py:254] - What does a negative search do when it finds a match?:
read_verificationsetsnegative=True. The step passes the negative search when git exits 1. A match makes git exit 0, so the step treats exit 0 as a failure. [sources: src/devops_cli/roadmap/verification_command.py]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Dec 1, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (3)
Searches run:
Sources:
devops-cli-service commentedon Dec 1, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Plan state: branch
fix/7986-a-spent-verification-failure-is-not, draft pull request #8024. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
devops-cli-service commentedon Dec 1, 2026
The stage job staged the plan of draft pull request #8024. The plan state comment of #8024 holds the branch, the task groups and the findings.
The runs of the planner and the review made 190 model request(s), and used 16103858 input tokens and 204906 output tokens. The tool calls, in order:
Run 1 (stage):
search_code({"text":"class FailureAction","path":"src/devops_cli/roadmap"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":1,"end_line":420})search_code({"text":"verification_class("})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1830,"end_line":1920})search_code({"text":"klass","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/stop_clear.py","start_line":1,"end_line":60})references({"name":"plan_unreadable"})read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})references({"name":"spend_limit"})references({"name":"form_check"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":158,"end_line":330})search_code({"text":"FailureAction.WAIT","path":"src"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":330,"end_line":470})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2060,"end_line":2100})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2225,"end_line":2290})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2160,"end_line":2226})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":470,"end_line":540})references({"name":"plan_unreadable"})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":5085,"end_line":5135})search_code({"text":"spend_limit","path":"docs"})read_file({"path":"docs/ROADMAP_WORKFLOW.md","start_line":210,"end_line":242})search_code({"text":"FailureClass)","path":"tests"})read_file({"path":"tests/roadmap/test_roadmap_faults.py","start_line":505,"end_line":545})search_code({"text":"implement_failure_action_text","path":"src"})read_file({"path":"src/devops_cli/lang/en/messages.py","start_line":4180,"end_line":4215})search_code({"text":"ACTION_BY_CLASS","path":"src/devops_cli/roadmap/stop_clear.py"})search_code({"text":"klass=FailureClass.","path":"tests/roadmap/test_roadmap_faults.py"})search_code({"text":"24","path":"tests/roadmap/test_roadmap_failure.py"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"One default action for each class"})search_code({"text":"FAILURE_CLASS_VALUES"})search_code({"text":"tests_lost","path":"tests/roadmap/test_roadmap_stop_clear.py"})read_file({"path":"tests/roadmap/test_roadmap_stop_clear.py","start_line":490,"end_line":540})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1590,"end_line":1720})search_code({"text":"class _CommandStop","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1335,"end_line":1470})search_code({"text":"for action in FailureAction"})read_issue({"number":7983})search_code({"text":"24 classes"})list_files({"directory":"tests/roadmap/implement"})Run 2 (stage):
search_code({"text":"class FailureClass","path":"src"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":1,"end_line":330})search_code({"text":"form_check","path":"tests/roadmap/test_roadmap_failure.py"})read_file({"path":"tests/roadmap/test_roadmap_failure.py","start_line":425,"end_line":450})read_file({"path":"tests/roadmap/test_roadmap_failure.py","start_line":450,"end_line":660})search_code({"text":"verification_class"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1840,"end_line":1930})search_code({"text":"klass","path":"src/devops_cli/roadmap/implement/implement_step.py"})search_code({"text":".verification","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2060,"end_line":2130})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2234,"end_line":2290})search_code({"text":"FailureAction.","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_phases.py","start_line":490,"end_line":525})references({"name":"spend_limit"})read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"One default action for each class"})search_code({"text":"test_every_failure_class_has_a_fault_case","path":"tests/roadmap/test_roadmap_faults.py"})read_file({"path":"tests/roadmap/test_roadmap_faults.py","start_line":500,"end_line":540})read_file({"path":"src/devops_cli/roadmap/stop_clear.py","start_line":1,"end_line":20})search_code({"text":"spend_limit","path":"docs"})search_code({"text":"TESTS_LOST","path":"tests/roadmap/test_roadmap_stop_clear.py"})read_file({"path":"tests/roadmap/test_roadmap_stop_clear.py","start_line":500,"end_line":540})search_code({"text":"class FailureEvidence","path":"src/devops_cli/roadmap/failure.py"})search_code({"text":"ci_infra","path":"docs/ROADMAP_WORKFLOW.md"})read_file({"path":"src/devops_cli/roadmap/decision_step.py","start_line":60,"end_line":110})read_file({"path":"src/devops_cli/roadmap/verification_command.py","start_line":240,"end_line":275})search_code({"text":"class _CommandStop","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1336,"end_line":1360})references({"name":"form_check"})references({"name":"plan_unreadable"})search_code({"text":"The failure classes","path":"tests"})search_code({"text":"devops ci test tests/roadmap/test_roadmap_failure.py tests/","path":"openspec/changes/archive"})list_files({"directory":"tests/roadmap/implement"})search_code({"text":"tests_lost","path":"src/devops_cli"})search_code({"text":"FailureClass.FORM_CHECK","path":"src"})read_file({"path":"src/devops_cli/roadmap/plan_outcome.py","start_line":30,"end_line":110})references({"name":"output_cap"})search_code({"text":"SPEND_LIMIT","path":"src"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":172,"end_line":235})Run 3 (stage):
search_code({"text":"class FailureClass","path":"src"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":150})Run 4 (stage_verify):
read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"One default action for each class"})search_code({"text":"twenty_one"})search_code({"text":"verification_class","path":"src"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1820,"end_line":1960})search_code({"text":".klass","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2040,"end_line":2130})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2225,"end_line":2275})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2160,"end_line":2226})references({"name":"spend_limit"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":125,"end_line":320})search_code({"text":"class FailureClass","path":"src"})search_code({"text":"for klass in FailureClass"})search_code({"text":"SPEND_LIMIT","path":"src"})read_file({"path":"src/devops_cli/roadmap/job_result.py","start_line":190,"end_line":240})read_file({"path":"tests/roadmap/test_roadmap_decision_point.py","start_line":325,"end_line":345})read_file({"path":"tests/telemetry/test_service_counter_series.py","start_line":70,"end_line":110})read_file({"path":"tests/roadmap/test_roadmap_failure.py","start_line":490,"end_line":680})references({"name":"form_check"})search_code({"text":"_setup_ci_infra","path":"tests/roadmap"})read_file({"path":"tests/roadmap/test_roadmap_faults.py","start_line":385,"end_line":600})search_code({"text":"_CommandStop(","path":"src/devops_cli/roadmap/implement/implement_step.py"})Run 5 (stage):
search_code({"text":"def _early_failure","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1820,"end_line":1960})search_code({"text":"check_log_shows_nothing","path":"tests"})read_file({"path":"tests/roadmap/test_roadmap_faults.py","start_line":360,"end_line":430})search_code({"text":"class _CommandStop","path":"src/devops_cli/roadmap/implement"})search_code({"text":"def classify_failure","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":300,"end_line":480})search_code({"text":"git grep","path":"tests/roadmap/implement/test_roadmap_implement_step_failure_class.py"})Run 6 (stage):
callers({"symbol":"ACTION_BY_CLASS"})search_code({"text":"ACTION_BY_CLASS","path":"src/devops_cli/roadmap/stop_clear.py"})search_code({"text":"verification_class(stops[0].argv)","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1855,"end_line":1900})search_code({"text":"class FailureAction","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":128,"end_line":150})Run 7 (stage):
search_code({"text":"class FailureClass","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":190})search_code({"text":"def _early_failure","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1861,"end_line":1895})search_code({"text":"class FailureEvidence","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":230,"end_line":250})list_files({"directory":"tests/roadmap/implement"})search_code({"text":"is FailureAction.RETRY","path":"src/devops_cli/roadmap/stop_clear.py"})read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"One default action for each class"})search_code({"text":"spend_limit","path":"docs"})Run 8 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":72,"end_line":165})Run 9 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":170})Run 10 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":175})Run 11 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":175})Run 12 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":60,"end_line":185})Run 13 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":70,"end_line":185})list_files({"directory":"tests/roadmap/implement"})search_code({"text":"def _early_failure","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1800,"end_line":1950})search_code({"text":"class _CommandStop","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1335,"end_line":1480})read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"One default action for each class"})search_code({"text":"class FailureEvidence","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":228,"end_line":330})search_code({"text":"def classify_failure","path":"src/devops_cli/roadmap/failure.py"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":424,"end_line":500})references({"name":"spend_limit"})search_code({"text":"tests_lost","path":"docs"})Run 14 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":84,"end_line":165})Run 15 (stage):
read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":84,"end_line":165})Run 16 (stage_verify):
search_code({"text":"def _early_failure","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1780,"end_line":1960})search_code({"text":"_CommandStop(","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1330,"end_line":1420})search_code({"text":"classify_failure(","path":"src/devops_cli/roadmap/implement"})search_code({"text":"137","path":"src/devops_cli/roadmap/failure.py"})search_code({"text":"CI_INFRA","path":"tests"})read_file({"path":"tests/roadmap/implement/test_roadmap_implement_job.py","start_line":1255,"end_line":1295})references({"name":"spend_limit"})read_file({"path":"openspec/changes/archive/2026-11-23-6821-provider-key-spend-limit/tasks.md"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":140,"end_line":260})search_code({"text":"test_every_failure_class_has_a_fault_case","path":"tests/roadmap/test_roadmap_faults.py"})read_file({"path":"tests/roadmap/test_roadmap_faults.py","start_line":440,"end_line":540})search_code({"text":"verification_class","path":"src"})read_spec({"capability":"roadmap-failure-taxonomy"})read_spec({"capability":"roadmap-failure-taxonomy","requirement":"The failure classes"})search_code({"text":".verification","path":"src/devops_cli/roadmap/implement"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":2070,"end_line":2250})search_code({"text":"class _Failure","path":"src/devops_cli/roadmap/implement/implement_step.py"})read_file({"path":"src/devops_cli/roadmap/implement/implement_step.py","start_line":1595,"end_line":1640})references({"name":"plan_unreadable"})Tool calls: callers=1 (empty=0), list_files=4 (empty=0), read_file=70 (empty=0), read_issue=1 (empty=0), read_spec=17 (empty=0), references=13 (empty=0), search_code=68 (empty=1)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
The plan request held these comments of the item whole: #7986 (comment), #7986 (comment), #7986 (comment).
4 remaining items
fix(roadmap): a spent verification failure is not ci_infra (#7986)
devops-cli-service commentedon Dec 1, 2026
Stopped at group 1.
Failure class:
provider.Action taken: none.
Action left:
retry: run the item again.Reason:
Last message of the agent (a claim that no check verified): none.
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.fix(roadmap): a spent verification failure is not ci_infra (#7986)
docs(spec): plan #7986 Stop retrying a spent verification failure (#8024
dan-petty commentedon Dec 1, 2026
Superseded by #8040, by the owner decision of 2026-12-01. #8040 runs no verification command of a plan in the Job, so the stop that this item reclassifies ends. The plan of #8024 stays in
openspec/changes/until a cleanup removes it.fix(roadmap): reap the orphans that fill the pod process limit (#8059)