Skip to content

feat(roadmap): ask for a smaller edit after a parser failure - #3737

Merged
dan-petty merged 4 commits into
mainfrom
feat/3053-parser-smaller-edit
Nov 6, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/3053-parser-smaller-edit

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The provider cannot read a long tool call of the model, and the failure is the same for the same conversation (ollama/ollama pull request 18571). Three stops (#2554, #2579, #3318) cost 1.77 million input tokens in sends that could not help. The resend after a parser failure now carries one message that asks for a smaller edit. The next parser failure on the same tier ends the turn, and the step stops with class parser or moves to the next tier. A new tier is a new conversation and gets its own message. The wip commits of passed tasks stay. The other parts of #3053 are in #3569, #3570, #3575, #3576 and #3577.

Closes #3053

Change: openspec/changes/archive/2026-11-06-3053-parser-smaller-edit/

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Review finding (parser count per step, not per tier): the finding is right, and the change fixes it. The tier loop of run_step built the log once, so a later tier met a count of 1 and ended its turn on the first parser failure with no ask. A tier is a new agent with a new conversation, so the loop now sets ToolCallLog.parser_failures to 0 for each tier. Each tier gets one ask, and the cost stays bounded by the number of tiers. A test (test_a_new_tier_gets_its_own_smaller_edit_request_after_a_parser_stop) failed before the change (4 requests, not 5) and passes now. design.md, the spec, docs/roadmap/implement.md and the proposal say "on a tier".

Test results (not in the body):

  • uv run devops ci test of test_roadmap_implement_step_parser.py and test_roadmap_implement_step.py: 137 passed.
  • Full uv run devops ci, once, before the archive and the last rebase: every check passed except test (19526 passed, 2 failed, 1 error) and coverage, which follows test. The failures are the known host failures: tests/commands/test_devcontainer_install_tools_dry_run.py and tests/ai/test_tool_executor_contract.py (fix(ci): host state fails four tests and one case #3585). The test row took 10m 19s on a busy host (fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593 is the known slow row).
  • After the archive and the rebase onto origin/main: uv run devops openspec check, uv run devops docs check and the parser test file passed. The full CI was not run again.

Not run: a real model, to see whether it sends a smaller call after the message (a model run costs tokens, and the baseline eval runs on the host). No fail-to-pass run: this is a feature, not a fix.

Not done: the text of issue #3053 says "a second parser failure of the step"; it should say "on the same tier". I could not edit the issue body from this session.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 05:58
@dan-petty
dan-petty enabled auto-merge (squash) November 6, 2026 05:58
@dan-petty
dan-petty merged commit 2a5cd39 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3053-parser-smaller-edit branch November 6, 2026 05:59
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.66.0](v0.65.0...v0.66.0)
(2026-11-06)


### Features

* **roadmap:** ask for a smaller edit after a parser failure
([#3737](#3737))
([2a5cd39](2a5cd39)),
closes [#3053](#3053)
* **roadmap:** list the local devops commands in the shell catalog
([#3739](#3739))
([0784e8b](0784e8b))
* **roadmap:** the implement job re-checks a plan premise against the
base ([#3657](#3657))
([29309f0](29309f0))
* **roadmap:** the plan check requires a new rule to accept its own plan
([#3641](#3641))
([5df365a](5df365a))


### Bug Fixes

* **roadmap:** a gate test holds the self-acceptance test
([#3738](#3738))
([303bf4f](303bf4f))
* **roadmap:** the plan check fails a citation of a line that moved
([#3668](#3668))
([cfee381](cfee381))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): every step repairs before it gives up, in bounded rounds

1 participant