Repository navigation
fix(roadmap): send tool choice auto to Claude and count answers - #4216
Conversation
|
Test record of #4205. fail-to-pass against origin/main ( Full Exact field: the issue names Series count of No setting is added, so no ConfigMap rollout is needed. The gateway fallback is not changed: a person decides. Live call (one call, cap 1 USD, run once): a tiny structured call with
|
🤖 I have created a release *beep* *boop* --- ## [0.100.0](v0.99.0...v0.100.0) (2026-11-09) ### Features * **roadmap:** record the reference hits of a stage case in the replay ([#4211](#4211)) ([06a7251](06a7251)) ### Bug Fixes * **roadmap:** accept a null reason on a stage reference ([#4215](#4215)) ([ce96397](ce96397)) * **roadmap:** count the tokens of each implement Job once ([#4213](#4213)) ([a243c25](a243c25)) * **roadmap:** send tool choice auto to Claude and count answers ([#4216](#4216)) ([5c4cabf](5c4cabf)) --- 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>
An agent run on a hosted gateway group is recorded as local spend at $0 (#3665). `record_run_spend` in `src/devops_cli/roadmap/agent_run.py` writes one record per run. When no reply names a model, the record has no `served_by` and no `served_model`, and `is_local` then decides from the gateway host: a gateway that is the cluster host is local. The production counter of job `roadmap-service` on 2026-11-09 shows 68 M `claude-sonnet-5-5` prompt tokens as `local=true` at $0, while the gateway log prices them at $2 per million. The DeepSeek group shows $0 on the counter against $14 on the gateway. #3663 fixed a reply that names a model, and #4216 passes the model that a reply names. A run whose replies name no model is still wrong. Closes #3665 Change: `openspec/changes/archive/2026-11-09-3665-an-agent-run-on-a-hosted/`
…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/`
An agent run on a local gateway group, such as devops-coder, recorded its tokens as hosted: local=false, the pricing source unknown at 0 USD, and the warning for an unpriced hosted model. The reply of the run names the group that answered, and is_local made each gateway reply that names a model hosted (#3656). is_local decides a gateway reply with no backend by the model that it names: a local gateway group (CONST_AI_GATEWAY_VIRTUAL_MODELS) or an ollama: model is local, and each other model, a hosted group included, stays hosted. When the reply names no model, the asked model decides when it is a local tier. calculate_request_cost gives is_local the asked model. So a fallback is priced and labeled at the group that answered (#4216). A local group outside the constant and the Ollama model of a local fallback stay hosted: #4886. Closes #4523 Change: `openspec/changes/archive/2026-11-12-4523-an-agent-run-on-a-local/`
A Claude group answered 400 to tool_choice required, which an agent with a tool output sends. The gateway fallback hid the 400, so a slot that read claude-sonnet-5-5 was answered by deepseek-v4.1-flash-1017. A Claude group on a gateway now takes the model profile supports_forced_tool_choice=False, so the agent sends auto with the same tools. Other models keep the default. A run now records the model that answered (response.model) in the spend ledger and counts it in devops_cli_ai_model_answers_total, with the labels asked, answered and fallback. The series count is at most 18. The gateway fallback is not changed: a person decides.
Closes #4205
Change:
openspec/changes/archive/2026-11-09-4205-claude-group-sends-tool-choice-auto/