Skip to content

fix(agents): confirm ambiguous requests before acting - #175

Merged
Willi8910 merged 1 commit into
boonfrom
williamlie/eng-18699-confirm-before-act
Sep 2, 2026
Merged

Willi8910 merged 1 commit into
boonfrom
williamlie/eng-18699-confirm-before-act

Conversation

@Willi8910

@Willi8910 Willi8910 commented Sep 1, 2026 •

Copy link
Copy Markdown

What Problem This Solves

Claude-backed Boon Agent flows could choose an interpretation or invent missing skill inputs before the user confirmed material choices. This made ambiguous submittal, bid-to-budget, and HCSS requests unpredictable.

Why This Change Was Made

The existing concise interaction overlay explicitly encouraged acting on the most likely intent. This replaces that behavior with a confirm-before-act contract:

  • materially ambiguous requests stop for one concise numbered clarification
  • deterministic: true skills never default missing required inputs
  • deterministic: false skills may proceed only with a clearly labeled assumption
  • complete requests continue immediately
  • repeated choices preserve stable ordering and source labels

User Impact

Users get a short, predictable question before an action or artifact could go down the wrong path. Once they answer, execution resumes normally. Fully specified requests do not gain an extra confirmation step.

Evidence

  • 10 focused Vitest assertions passed across core and Anthropic provider suites
  • production and test TypeScript checks passed (tsgo:prod, tsgo:test:src, tsgo:test:extensions)
  • targeted Oxlint, Oxfmt, and git diff --check passed
  • live Anthropic Opus 4.8 QA passed all seven steps for submittal, bid-to-budget, and HCSS, including repeat-order stability and resume-after-selection
  • check:changed could not start because the Blacksmith Testbox helper failed its own CLI sanity check before running repository checks

Linear: ENG-18699
Duplicate: ENG-18756


Summary by cubic

Changes the Boon Agent's interaction overlay so it confirms before acting on ambiguous requests instead of assuming the most likely interpretation, addressing ENG-18699. Materially ambiguous submittal, bid-to-budget, and HCSS requests now stop for one numbered clarification and wait for the user; fully specified requests proceed immediately without extra steps.

Behavior

  • Ambiguous requests get a concise numbered clarification block before any tool use or artifact.
  • deterministic: true skills never invent missing required inputs.
  • deterministic: false skills may proceed but must label assumptions on the first visible line.
  • Repeated requests keep stable question order and verbatim source labels.

QA

  • Adds a live Claude scenario covering the clarification path, resume after a numbered choice, repeat-order stability, and immediate proceed on complete requests.

Written for commit 469b93f. Summary will update on new commits.

Review in cubic

@claude

claude Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Claude encountered an error —— View job


I'll analyze this and get back to you.

@gandalfboon gandalfboon 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.

LGTM.

Regression scan

  • CI: 91 success / 1 neutral (CodeQL) / 8 skipped / 0 failures across 145 checks, including the exact test targets (checks-node-agentic-agents-core-*, check-additional-extension-channels).
  • Removed overlay strings (A, B, or C, Make reasonable assumptions…) have no code consumers — grepped the tree; hits are in an unrelated GPT-5 overlay and a docstring.
  • Test contract cleanly swapped from guided-choice assertions to confirm-before-act assertions; four new focused test cases cover deterministic-skill strictness, non-deterministic assumption labeling, verbatim-copy stability, and the removal of the old act-first assumption rule.
  • QA scenario yaml locks the live-Claude behavior for submittal / bid-to-budget / HCSS flows.

Behavioral note — This intentionally makes Claude ask instead of guess on materially ambiguous or under-specified skill invocations. Safer for deterministic skills; expected per ENG-18699.

Nit (non-blocking, doc-only) — src/config/schema.help.ts:1163 and src/config/types.agent-defaults.ts:34 still describe the field as "guided-choice … A/B/C narrowing prompts". Config field and default are unchanged so no runtime impact, but worth a follow-up doc sweep to match the new confirm-before-act contract.

@Willi8910
Willi8910 merged commit e32d673 into boon Sep 2, 2026
145 of 146 checks passed
@Willi8910
Willi8910 deleted the williamlie/eng-18699-confirm-before-act branch September 2, 2026 05:03
Willi8910 added a commit that referenced this pull request Sep 2, 2026
Version-bump-only release cutting the single commit merged to boon since
v2026.6.11-boon.31: #175 (ENG-18699) — confirm ambiguous requests before
acting, replacing the concise interaction overlay's act-on-most-likely-intent
guidance with a confirm-before-act contract.

Bumps the gateway plus @openclaw/slack, @openclaw/msteams, and
@openclaw/diagnostics-prometheus to 2026.6.11-boon.32 in lockstep across all 8
manifests, and adds the CHANGELOG entry. No code changes.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
convyusboy added a commit that referenced this pull request Sep 3, 2026
…nflicts)

5 feature/fix commits (boon.32, boon.33): confirm-before-act on ambiguous
requests (#175), unclosed content-block detection at stream finalization
(ENG-19233, #177), >384MB PDF handling (#178), macro-enabled Office document
delivery (#179), cron failure-destination recipient validation (#181).

All conflicts were the established package.json/npm-shrinkwrap.json
version-string pattern (kept 2026.6.34-boon.1), plus a new one this round:
origin/boon still pins fast-uri at 3.1.6 across pnpm-workspace.yaml,
pnpm-lock.yaml, and four npm-shrinkwrap.json files (root, acpx, lobster).
This integration branch already carries a deliberate 4.1.2 override from the
original 2026.6.34 sync (documented in the PR description's "Dependency /
security pins" section: the bump was needed because upstream's 6.34-era code
targets fast-uri's 4.x API, not because it's numerically newer) -- the same
"boon hasn't caught up to a pin this branch already needed" situation as the
`tar` override in that same section. Kept 4.1.2 everywhere.

Verified: pnpm tsgo:core:test + tsgo:extensions:test both clean. Targeted
tests across every touched surface (pdf-tool, web-media, mime, cron
delivery-target-validation + cron.validation, anthropic-transport-stream,
concise-interaction-overlay, embedded-agent-helpers, amazon-bedrock stream
runtime, anthropic prompt-overlay, document-extract) -- 303 passing, 0
failures. One unrelated pre-existing failure noted and left alone:
src/gateway/mcp-http.test.ts's "withdraws a closing runtime before drain
without fencing its successor" fails deterministically in this sandboxed
environment with a raw ECONNRESET on a real loopback TCP socket -- neither
mcp-http.ts nor its test file were touched by this merge, so this is an
environment/network-sandboxing artifact, not a regression from this change.
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.

1 participant