Skip to content

fix(roadmap): send one tool call at a time to a Claude group - #4243

Merged
dan-petty merged 4 commits into
mainfrom
fix/4228-claude-parallel-tool-calls
Nov 9, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/4228-claude-parallel-tool-calls

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A Claude group on the gateway now sends parallel_tool_calls false, so the provider makes at most one tool call in each reply and the gateway has no arguments to join. A stage run that stops on a tool call with invalid arguments now says so in its failure line, with the name of the tool, instead of '0 schema violation(s)'.

Closes #4228

Change: openspec/changes/archive/2026-11-09-4228-claude-one-tool-call-at-a-time/

… a stop names invalid arguments

Plans the change for #4228 and adds the failing tests first.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record.

  • fail-to-pass run on the base: 8 tests failed on origin/main for the stated cause, and 150 passed (2 request-body tests: parallel_tool_calls was None; 3 investigate tests: InvestigationStopped had no invalid_arguments; 3 ToolboxClient tests: the error did not name invalid arguments). With the change, they pass.
  • Narrow tests after the final rebase: 102 passed (tests/ai/test_pydantic_ai_profiles_and_providers.py, tests/roadmap/stage/test_roadmap_stage_toolbox.py).
  • Full devops ci on the final rebased head: every check passed (lint, format, typecheck, security, docs, openspec, k8s, test-tree, startup-imports, swallowed-failures, test with coverage). The test row took 17 min 50 s on this shared host, over the 5 minute budget (known issue fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593).
  • devops docs generate --check: up to date.

Open point for a person: the pinned LiteLLM image is v1.103.0. Release v1.105.0 repairs the parse of joined arguments. A bump is a person decision.

@dan-petty
dan-petty force-pushed the fix/4228-claude-parallel-tool-calls branch from b3cbfa0 to 2800e3c Compare November 9, 2026 16:54
@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 17:07
@dan-petty
dan-petty merged commit b855601 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the fix/4228-claude-parallel-tool-calls branch November 9, 2026 17:11
@dan-petty

Copy link
Copy Markdown
Owner Author

Update of the test record and live check.

  • A later commit on this branch (756f68f) simplifies the check of invalid arguments, and adds a test for it, because the diff-coverage check of CI showed 2 uncovered lines in the first push. After it: the file tests/roadmap/refine/test_roadmap_refine_investigation.py passes (58 tests), ruff, format and mypy pass, and all CI checks of the final head passed (the PR checks, before it was marked ready).
  • Live check: devops roadmap stage --plan --item 4062 with DEVOPS_CLI_AI_TASK_STAGE_MODEL=claude-sonnet-5-5 through the gateway, 2026-11-09 17:09Z to 17:20Z (11 min 34 s, 96 chat requests to the gateway in that time, all HTTP 200).
    • Result: the run ended with a NAMED cause, not "0 schema violation(s)": the plan of fix(roadmap): alternatives ADR cap test reads logs of other loggers #4062 failed its own checks after a second try (missing ## Security section, a MCP table key that does not exist, a path in What Changes that no group lists, and two tools named in Feasibility that the run did not call). This is a plan-quality result of the model, not the stop that fix(roadmap): Sonnet tool calls reach the run with joined args #4228 reports.
    • The gateway log (container litellm, kubectl -n llm logs deploy/llm-gateway) for those minutes holds 0 lines "Failed to parse tool call arguments". The gateway metrics show requests of model claude-sonnet-5-5 from the client end_user devops-cli at 127.0.0.1 (the port-forward).
    • The spend of this one run is not measured here: the cost report shows lifetime totals only. One run, one model call at a time, no other spend.
  • Not proven: that the joined arguments of the first report caused the old stop. The run before the change did show the warning; the run after it shows none.

dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.101.1](v0.101.0...v0.101.1)
(2026-11-09)


### Bug Fixes

* **devcontainer:** a rejected unlock password becomes the keyring
password ([#4249](#4249))
([cc3d22e](cc3d22e))
* **roadmap:** count the reported input in the run window estimate
([#4238](#4238))
([af9c27a](af9c27a))
* **roadmap:** send one tool call at a time to a Claude group
([#4243](#4243))
([b855601](b855601))


### Code Refactoring

* **ai:** replace PydanticAgent with pydantic-ai Agent
([#4237](#4237))
([5edd7a5](5edd7a5))

---
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>
dan-petty added a commit that referenced this pull request Nov 9, 2026
…4260)

The stage job kept only the last problem of a refused reply and kept no
refused reply, so a failed plan could not be read. A reply of
placeholders in every text also used the second request and gave the
same reply. The job now logs each refused reply with the request number,
the input tokens and the tool offer, keeps the first and second refused
reply with their problems in a file beside the plan file until the item
is staged, and ends a placeholder reply at once as the new result
degenerate (metric and stage eval). Other changes removed the causes of
the placeholder replies: #4215, #4216, #4224, #4238 and #4243.

Closes #4204

Change:
`openspec/changes/archive/2026-11-09-4204-keep-refused-stage-reply/`
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): Sonnet tool calls reach the run with joined args

1 participant