Repository navigation
feat: distinguish boon-estimation line-items --fee-loaded and fees in the exec trajectory label - #300
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
Reviewed exact head ff89c6f07ef6d8d42d83d543eecca400870e32de. One blocking integration-contract mismatch remains: the label emitted by this change does not match the current Boon regression trajectory assertions. See the inline finding for the concrete scenario strings and requested fix.
There was a problem hiding this comment.
Approving at ff89c6f. My earlier blocker no longer applies: boon#15835 (ENG-21588, merged) already loosened scenarios 74/75 to assert on working on the estimate, so they no longer depend on raw command text. Mapping is correct and scoped (line-items / line-items --fee-loaded / fees; other subcommands keep the default), tests cover each branch (57/57 on this head).
Non-blocking follow-ups:
- When this goes fleet-live, the boon scenarios 74/75 that assert
working on the estimateon fees/line-items-only turns need to move to the new labels (checking the estimate fees,reading fee-loaded line prices), as the TODO(ENG-21588) says. Otherwise those turns can start failing unless another boon-estimation call also fires. security-fastis red on a production-dependency audit, unrelated to this two-file diff; needs to be cleared or waived per repo policy before merge.
…ees in the exec trajectory label Every `boon-estimation` subcommand rendered the same fixed paraphrase "working on the estimate" in the agent-chat trajectory, with no way to tell `line-items`, `line-items --fee-loaded` and `fees` apart. This blocked a deterministic regression assertion: a companion `boon` PR (ENG-21588) needs to prove the agent actually read fee-loaded line prices for the current turn, not just reported them in prose, by checking the trajectory for the real invocation. Added a `boon-estimation` subcommand switch to `summarizeBoonExecCommand`, mirroring the existing `boon-projects` block and the openclaw#247 precedent (schedule append/list): `line-items` -> "reading the estimate lines", `line-items --fee-loaded` -> "reading fee-loaded line prices", `fees` -> "checking the estimate fees". Every other `boon-estimation` subcommand keeps the unchanged default "working on the estimate". Evidence: node scripts/run-vitest.mjs src/agents/tool-display-exec-boon.test.ts -- 57/57 passed, including 5 new cases covering line-items with and without the flag, fees, an unmapped subcommand, and the bare-binary fallback. Co-Authored-By: Claude Sonnet 5 <[email protected]>
A review comment flagged the comment added in the previous commit for
embedding issue-tracker ticket references in production source, which root
AGENTS.md's Code section bans ("No Linear ticket references ... in code,
comments, or commit messages"). Removed the IDs, kept the rationale for
distinguishing fee-loaded reads from plain line-item reads.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
ff89c6f to
57c6ebb
Compare
* chore(release): bump version 2026.6.35-boon.1 -> 2026.6.35-boon.2 Cuts the fork release covering the 9 PRs merged to boon since v2026.6.35-boon.1: #298 (ENG-21265) stuck-generation cut-off retry + sub-agent spawn backstop, #299 workspaceDir threading through outbound channel media adapters, #304 (ENG-19208) real inbound media path in the system prompt, #301 (ENG-21585) forced sessions_yield on narrated sub-agent turns, #305 message-tool source reply observed outside message_tool_only, #306 (ENG-19103) reasoning-stream callbacks honor message_tool_only, #303 sub-agent/completion-turn usage attribution, #302 clears 7 high-severity pnpm-audit-prod advisories, #300 (ENG-21588) boon-estimation trajectory label detail. Bump root package.json/npm-shrinkwrap.json, all bundled plugin manifests, and the version + openclaw peer floor in every extension npm-shrinkwrap.json. Add the 2026.6.35-boon.2 CHANGELOG.md section. No additional dependency or source changes beyond what already shipped in #299 and #302. Co-Authored-By: Claude Sonnet 5 <[email protected]> * docs(changelog): fold PR #309's advisory fixes into the 2026.6.35-boon.2 entry --------- Co-authored-by: Claude Sonnet 5 <[email protected]>
Related: getboon/boon#15144, getboon/boon-skills#386, getboon/boon#15585 (ENG-21205), ENG-21588
What Problem This Solves
The agent-chat trajectory shows a friendly one-line label for each tool call so operators and eval judges can see what the agent did without exposing raw shell arguments. Every
boon-estimationsubcommand fell through to the same fixed label"working on the estimate"—line-items,line-items --fee-loadedandfeeswere all indistinguishable.This blocked a deterministic regression assertion: a companion
boonPR (ENG-21588) needs to prove the agent actually read fee-loaded line prices for the current turn, not just reported them in prose, by checking the trajectory for the real invocation. With the generic shared label there was no matchable text to assert on — andeval/agent-regression/scenarios/{74-estimate-fee-readback,75-line-item-fee-loaded-readback}.yamlhad shipped asserting on the raw, never-rendered subcommand/flag text, so they failed every full-suite run since landing.Why This Change Was Made
Added a
boon-estimationsubcommand switch tosummarizeBoonExecCommand, following the existing precedent in the same file forboon-projects(distinct labels per subcommand) and PR #247 (schedule appendvsschedule list):line-items→"reading the estimate lines",line-items --fee-loaded→"reading fee-loaded line prices",fees→"checking the estimate fees". Every otherboon-estimationsubcommand keeps the unchanged default"working on the estimate"— this is scoped to the two subcommands a current eval needs, not a full remap of all ~30boon-estimationsubcommands.User Impact
Operators reading an agent-chat trajectory (or the agent-regression eval's transcript viewer) now see a distinct, accurate label when the agent reads fee-loaded line prices vs. a plain line-items read vs. the estimate's saved fee rows, instead of one generic label shared by every
boon-estimationcall.Evidence
node scripts/run-vitest.mjs src/agents/tool-display-exec-boon.test.ts— 57/57 passed, including 5 new cases coveringline-itemswith and without--fee-loaded,fees, an unmapped subcommand, and the bare-binary fallback.🤖 Generated with Claude Code
Summary by cubic
Every
boon-estimationtool call now gets a distinct trajectory label instead of sharing the generic "working on the estimate", so operators and eval judges can tellline-items,line-items --fee-loaded, andfeesapart.The shared label previously made it impossible for the ENG-21588 regression eval to prove the agent actually invoked
--fee-loadedrather than just reporting prices in prose; the scenario had shipped asserting on raw subcommand text that was never rendered, so it failed every full-suite run.line-itemsnow maps to "reading the estimate lines",line-items --fee-loadedto "reading fee-loaded line prices", andfeesto "checking the estimate fees". All otherboon-estimationsubcommands keep the unchanged default label — this is scoped to the two subcommands the current eval needs, not a full remap.versionsand helper positional parsing.Written for commit 57c6ebb. Summary will update on new commits.