Skip to content

Hear a model's question after the declined-work hold - #4397

Merged
mstomar125 merged 1 commit into
mainfrom
issue-4391-declined-hold-question
Nov 27, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-4391-declined-hold-question

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

What

The declined-work hold on create_node returns an error record. Two turn-end sites kept it as an unsurfaced tool failure:

  • the failed_tools filter (rewrites a reply with no error words into "I couldn't create...");
  • the others list of undeclared_refusal_backstop.

So a model that stopped after the hold to ask the user, naming the decision, had its question replaced by the failure notice, and then by declined_work_backstop's generic question (that check runs after the rewriter and no longer found the decision named). Both sites now skip is_declined_work_hold(r), the same exemption the unread-schema hold has (#4389, not merged when this was written; this branch is based on main and touches different lines, so it rebases cleanly). The declined_work_backstop's own "reply names the decision" check now does its job.

summarize_executions is left as it is (optional in the issue).

The packages/agent change is within the lane the owner signed off for this batch.

Tests

  • a_model_that_stops_after_the_declined_hold_to_ask_the_user_is_heard_unchanged: full turn through run_turn (hold, then the model's question naming the decision); the reply is unchanged and no clarify is added.
  • a_declined_hold_is_not_reported_as_a_failure_by_the_refusal_backstop: the backstop's failure list does not include the hold.

Both failed before the fix for the right reason (reply replaced by the backstop's generic question; "I couldn't complete the node creation: decision_may_settle_this" appended).

Mutation checks: removing the exemption from the failed_tools filter fails the full-turn test only; removing it from the others list fails the backstop test only. Both restored.

Commands: quality:fix clean (the unrelated webview_bridge_tests.rs reformat reverted), test:changed passed.

Closes #4391

🤖 Generated with Claude Code

@mstomar125
mstomar125 force-pushed the issue-4391-declined-hold-question branch from 3cefbc1 to 5313970 Compare November 27, 2026 07:09
The declined-work hold on create_node is an error record, so the turn-end
failure rewrite and the refusal backstop's failure list kept it, replacing a
model's own question with a failure notice and then with the backstop's
generic one. Both sites now skip it, as they skip the unread-schema hold.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@mstomar125
mstomar125 force-pushed the issue-4391-declined-hold-question branch from 5313970 to b9569b6 Compare November 27, 2026 07:21
@mstomar125
mstomar125 merged commit fa7d5a0 into main Nov 27, 2026
@mstomar125
mstomar125 deleted the issue-4391-declined-hold-question branch November 27, 2026 07:21
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.

A model's question after the declined-work hold is replaced by a failure notice and then by the backstop's generic question

1 participant