Repository navigation
Hear a model's question after the declined-work hold - #4397
Merged
Merged
Conversation
mstomar125
force-pushed
the
issue-4391-declined-hold-question
branch
from
November 27, 2026 07:09
3cefbc1 to
5313970
Compare
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
force-pushed
the
issue-4391-declined-hold-question
branch
from
November 27, 2026 07:21
5313970 to
b9569b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The declined-work hold on
create_nodereturns an error record. Two turn-end sites kept it as an unsurfaced tool failure:failed_toolsfilter (rewrites a reply with no error words into "I couldn't create...");otherslist ofundeclared_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 skipis_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). Thedeclined_work_backstop's own "reply names the decision" check now does its job.summarize_executionsis left as it is (optional in the issue).The
packages/agentchange 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 throughrun_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_toolsfilter fails the full-turn test only; removing it from theotherslist fails the backstop test only. Both restored.Commands:
quality:fixclean (the unrelated webview_bridge_tests.rs reformat reverted),test:changedpassed.Closes #4391
🤖 Generated with Claude Code