Repository navigation
fix(roadmap): stage and refine send no answer count or row - #4484
Conversation
|
Fail-to-pass (
Premise check. The title of the task said "record no model spend". That is not correct: since #4237 the hook writes one ledger row and the token and spend counters for each request (the Series. In the 7 days to 2026-11-11, roadmap-service sent 53 series of the four (tokens 32, spend 8, requests 11, answers 2). With Local checks. Out of scope. The hook records |
The spend hook of build_agent writes one spend record for each model request since #4237, but it adds no count to devops_cli_ai_model_answers_total and gives the ledger no cached prompt tokens. The stage, refine and alternatives runs go through that hook, so the Service sends no answer count after the rollout of #4237. No AI series names the job row that sent a request. The hook now counts each reply that names its model and passes the cached prompt tokens. model_answer_labels holds the fallback rule and the row for the hook and for record_run_spend. track_request_spend adds the row of request_scope to the request, token and spend series, and the runner Job applies its plan in the scope of the implement row.
69db5f9 to
6b983ed
Compare
🤖 I have created a release *beep* *boop* --- ## [0.111.0](v0.110.0...v0.111.0) (2026-11-11) ### Features * **roadmap:** a decision-point registry with a resolver chain ([#4453](#4453)) ([b73e97a](b73e97a)) * **roadmap:** eval verify stores each case and resumes ([#4451](#4451)) ([7c59565](7c59565)) * **roadmap:** extend a step budget when the run makes progress ([#4464](#4464)) ([c8ed108](c8ed108)) ### Bug Fixes * **ai:** a failed model transport names its phase and its error ([#4460](#4460)) ([54743c4](54743c4)) * **ai:** price the DeepSeek group and its cached input ([#4454](#4454)) ([3b1f6bd](3b1f6bd)) * **roadmap:** stage and refine send no answer count or row ([#4484](#4484)) ([d9c8ee8](d9c8ee8)) * **roadmap:** tool docstrings garble the answer format ([#4486](#4486)) ([2f6114f](2f6114f)) ### Performance Improvements * **roadmap:** parse only the bodies that hold a job record ([#4455](#4455)) ([c653bde](c653bde)) * **tests:** evaluate hour-scale promtool tests every hour ([#4462](#4462)) ([0ac2f76](0ac2f76)) --- 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>
Since #4237, the stage, refine and alternatives runs send no
devops_cli_ai_model_answers_total. The hook ofbuild_agentwrites one spend record for each request, but adds no answer count and passes no cached prompt tokens, so a cached prompt costs the full input rate. No AI series names the job row of a request.cache_read_tokens.model_answer_labelsholds the fallback rule and the row for the hook andrecord_run_spend.track_request_spendaddsrow(therequest_scoperow orother) to the request, token and spend series.implement.Only the implement step calls
record_run_spend, and its agent has no hook, so a request counts one time.Closes #4475
Change:
openspec/changes/archive/2026-11-11-4475-stage-and-refine-send-no-answer/