Skip to content

docs(openspec): plan #3717 Name the cause of a stopped verification run - #5945

Merged
dan-petty merged 2 commits into
mainfrom
fix/3717-the-agent-verification-pass-stops-with
Nov 18, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/3717-the-agent-verification-pass-stops-with

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The verification pass of #3717 ends a case with Tool <text> exceeded max retries count of 2: the model makes a tool call that pydantic-ai retries to the tools limit 2, and run_error_message masks the tool name, so the report names no cause and the case counts as failed. The pass's output retry limit is 1, so the stop is not the output retries and not a text reply. This change types the stop of the agent run from its messages: the tool name of a refused call, the limit that ended the tools, the output retry limit, or a text reply whose findings the existing parser reads. It records the reason in the report of devops roadmap eval verify.

Plans #3717

Change: openspec/changes/3717-the-agent-verification-pass-stops-with/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 16, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/3717-the-agent-verification-pass-stops-with branch from 5279411 to 1375473 Compare November 16, 2026 06:44
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3717 Name the stop cause of a verification run docs(openspec): plan #3717 Name the cause of a stopped verification run Nov 16, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/3717-the-agent-verification-pass-stops-with branch from 1375473 to 7556a79 Compare November 16, 2026 11:10
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 1.

Failure class: provider.
Action taken: none.
Action left: retry: run the item again.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 458396/870 -

Reason:

ModelServerError: HTTP 504, model openrouter/deepseek/deepseek-v4.1-flash-1017, body: litellm.Timeout: Timeout Error: OpenrouterException - Message: A Timeout Occurred, Metadata: {<text>: <text>}, User ID:
Refused commands: git 1. Other retries: 0.

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 of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 458396/870 -

@devops-cli-service
devops-cli-service Bot force-pushed the fix/3717-the-agent-verification-pass-stops-with branch from 7556a79 to e22a14b Compare November 16, 2026 13:30
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 1.

Failure class: provider.
Action taken: none.
Action left: retry: run the item again.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 0/0 -

Reason:

ModelServerError: HTTP 504, model openrouter/deepseek/deepseek-v4.1-flash-1017, body: litellm.Timeout: Timeout Error: OpenrouterException - Message: A Timeout Occurred, Metadata: {<text>: <text>}, User ID:

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 of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 0/0 -

@devops-cli-service
devops-cli-service Bot force-pushed the fix/3717-the-agent-verification-pass-stops-with branch from e22a14b to 369f2cf Compare November 16, 2026 14:46
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at group 1.

Failure class: provider.
Action taken: none.
Action left: retry: run the item again.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 0/0 -

Reason:

ModelServerError: HTTP 504, model openrouter/deepseek/deepseek-v4.1-flash-1017, body: litellm.Timeout: Timeout Error: OpenrouterException - Message: A Timeout Occurred, Metadata: {<text>: <text>}, User ID:

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 of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 stopped 1 0/0 -

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 16, 2026 20:18
@dan-petty

Copy link
Copy Markdown
Owner

Verdict: Needs fix (verdict/fix-plan), vet of 2026-11-16. The premise holds (pydantic-ai 2.59: an unknown tool call uses the tools limit, tool_manager.py:752; the verification output limit is 1, stage_verify.py:82; the "no tool call" stop at stage_toolbox.py:264-268 hides the tool name). The design that reads the cause from the run's messages is sound, and the form is correct.

  1. Verification spec lines 3-12 and tasks.md:18: the plan parses a text reply with _repair_and_validate_payload, but pydantic-ai already does this: a model output type gets AutoOutputSchema with a text processor (_output.py:638-655) that also strips Markdown fences (_output.py:981). A probe on the pinned version: plain JSON text and fenced JSON both gave the findings; prose raised Exceeded maximum output retries (1). So that scenario passes on main, and the parser is a second, home-grown one (project rule 3). Fix: remove the parse and that requirement, cite _output.py:638, and keep text_reply only for text that pydantic-ai refuses.
  2. tasks.md:16, spec lines 18-23: the tests check the fixed numbers 1 and 2, which are config values (owner rule of 2026-11-16: no test of a config value). Fix: check the limit that the run used, read from the constant by name or set by the test.
  3. proposal.md:49: the tests double review and investigate. Fix: task 3.1 runs evaluate_cases with ToolboxModel(Script(...).model()) and the stage_repo clone, as test_roadmap_stage_verify_eval.py:730-781 does.

@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 16, 2026
@dan-petty
dan-petty marked this pull request as draft November 16, 2026 22:52
@dan-petty
dan-petty force-pushed the fix/3717-the-agent-verification-pass-stops-with branch from 369f2cf to 5370221 Compare November 18, 2026 03:24
@dan-petty dan-petty removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 18, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 18, 2026 03:30
@dan-petty

Copy link
Copy Markdown
Owner

Addressed review findings of 2026-11-16:

  1. Removed home-grown parsing and requirement for text replies holding findings, citing pydantic-ai AutoOutputSchema (_output.py:638-655, _output.py:981); kept text_reply only for text that pydantic-ai refuses.
  2. Removed hardcoded config values (1 and 2) in spec scenarios and tasks, checking the limit that the run used.
  3. Updated Task 3.1 and proposal.md to run evaluate_cases with ToolboxModel(Script(...).model()) and the stage_repo clone as in test_roadmap_stage_verify_eval.py:730-781.

@dan-petty
dan-petty merged commit 7ef9c80 into main Nov 18, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3717-the-agent-verification-pass-stops-with branch November 18, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant