Skip to content

feat: distinguish boon-estimation line-items --fee-loaded and fees in the exec trajectory label - #300

Merged
convyusboy merged 2 commits into
boonfrom
ridho/eng-21588-boon-estimation-fee-loaded-label
Oct 21, 2026
Merged

convyusboy merged 2 commits into
boonfrom
ridho/eng-21588-boon-estimation-fee-loaded-label

Conversation

@convyusboy

@convyusboy convyusboy commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

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-estimation subcommand fell through to the same fixed label "working on the estimate" — line-items, line-items --fee-loaded and fees were all indistinguishable.

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. With the generic shared label there was no matchable text to assert on — and eval/agent-regression/scenarios/{74-estimate-fee-readback,75-line-item-fee-loaded-readback}.yaml had 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-estimation subcommand switch to summarizeBoonExecCommand, following the existing precedent in the same file for boon-projects (distinct labels per subcommand) and PR #247 (schedule append vs schedule 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" — this is scoped to the two subcommands a current eval needs, not a full remap of all ~30 boon-estimation subcommands.

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-estimation call.

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 --fee-loaded, fees, an unmapped subcommand, and the bare-binary fallback.

🤖 Generated with Claude Code


Summary by cubic

Every boon-estimation tool call now gets a distinct trajectory label instead of sharing the generic "working on the estimate", so operators and eval judges can tell line-items, line-items --fee-loaded, and fees apart.

The shared label previously made it impossible for the ENG-21588 regression eval to prove the agent actually invoked --fee-loaded rather 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-items now maps to "reading the estimate lines", line-items --fee-loaded to "reading fee-loaded line prices", and fees to "checking the estimate fees". All other boon-estimation subcommands keep the unchanged default label — this is scoped to the two subcommands the current eval needs, not a full remap.

  • Adds test coverage for versions and helper positional parsing.
  • Drops Linear ticket IDs from the new source comment to comply with repo conventions.

Written for commit 57c6ebb. Summary will update on new commits.

View guided diff Turn on auto-fix

@convyusboy
convyusboy requested a review from a team October 21, 2026 05:22

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread src/agents/tool-display-exec-boon.ts Resolved

@boon-hermes-bot boon-hermes-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/agents/tool-display-exec-boon.ts Resolved

@boon-hermes-bot boon-hermes-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 estimate on 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-fast is red on a production-dependency audit, unrelated to this two-file diff; needs to be cleared or waived per repo policy before merge.

convyusboy and others added 2 commits October 21, 2026 19:44
…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]>
@convyusboy
convyusboy force-pushed the ridho/eng-21588-boon-estimation-fee-loaded-label branch from ff89c6f to 57c6ebb Compare October 21, 2026 12:45
@convyusboy
convyusboy merged commit f40e5a7 into boon Oct 21, 2026
144 checks passed
@convyusboy
convyusboy deleted the ridho/eng-21588-boon-estimation-fee-loaded-label branch October 21, 2026 13:39
convyusboy added a commit that referenced this pull request Oct 26, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants