Repository navigation
A refusal's next moves are typed calls she can make, and load into her next act's tools (card e1360fbe) - #5980
Merged
Conversation
…s ledger/update_task as offered, and the commands a refusal names load into her next act's tools (card e1360fbe) Aiko on the M5, 2026-11-13 22:40-23:26Z, review card 149f1391: 8 work/submit calls refused with "record it with work/note ... close the card with work/state closed" while her tool list offered those verbs as `ledger` and `update_task`. The refusal named commands by canonical string in prose, so the move it told her to make was not a name she could call. - work/submit's "nothing to submit" and "not committed" refusals are typed (SubmitRefusal) with NextCall references to work/note + work/state and code/git/add + code/git/commit, rendered under the names her list offers; CONCLUDE_WITHOUT_A_PATCH prose deleted. - A refusal's typed next moves survive dispatch (CommandFailure -> DispatchFailure -> ClientError::Refused.refusal) instead of flattening into the sentence. - The executor carries the commands they name on CallVerdict.next_commands; the act seam loads them into her tool head (ToolHead::load), riding her next act's tail like a help find. - source-hygiene commands_in_refusal_text: a declared command named inside a refusal's text (CommandError variants, #[error], ClientError::Refused) is counted; falls only, touched files end clean. Not compiled locally (serving node); CI is the compiler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ries they carried; the dispatch test reads its sentence without an error-text match Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…), never a command named in its sentence Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
How this serves the minds: a resident who is refused must be told a next move she can actually call; this removes a repeat-the-refused-call loop. Plan line: goal 10 (tools are working sets) and FEEDBACK-PARITY (feedback reaches her, typed).
Glass box (the M5, 2026-11-13)
Aiko (
75ece751), review card149f1391(no code change). From~/.continuum/fixtures/prompt-captures/75ece751-….jsonl,event=="submitted"lines: 8 requests between 22:40:11Z and 23:26:07Z carry the refusaland she kept calling
work_submit(airc showed anotherwork/submit ✗at 23:23Z).Correction to the card's premise: her tool list did hold both verbs. Every one of those requests offers
work_create, ledger, update_task, work_submit, work_review, work_submission.ledgeris work/note andupdate_taskis work/state (theirTrainedReflexaliases,continuum-rooms/src/work_preconditions.rs:100-102). The defect is that the refusal named commands by their canonical string in prose, and those strings are not names her list offers. A grep forwork_on the tool list misses the aliases.Owners (file:line on the PR head)
core/continuum-kernel/src/sdk_codegen/refusal.rs(NextCall::call→CallFormwithCommandId::offered(), the name her list offers)core/continuum-mind/src/work/submission/latest_submission.rs(wasCONCLUDE_WITHOUT_A_PATCH+CommandError::Invalid(format!(…))inderive_submission, and the "not committed" one incommitted_head)sdk_codegen/handler.rs::dispatch_with_callercognition/tool_head/mod.rs(loaded= the tail) →tool_surface.rs::learned→llm_deliberation_faculty/tool_surface.rs::with_learned_headThe fix
(a) Typed next moves.
SubmitRefusal::{NoChanges, Uncommitted}is aRefusalCausebuilt withRefusal::new(cause, NextMoves). Its calls areNextCalls fromVerbRefs toWorkNote/WorkStateandCodeGitAdd/CodeGitCommit, which render asledger({...}),update_task({"card_id":…,"state":"closed"})and so on. The prose verbs are deleted:CONCLUDE_WITHOUT_A_PATCHand thecode/git/commit,work/submitandroom/joinmentions in this file's refusals.(b) A next move is always callable. The typed refusal now survives dispatch:
CommandFailure { message, refusal }→DispatchFailure.refusal→ClientError::Refused.refusal. This is the in-process seam thatcontinuum-airc-protocol::refusal's doc already described but nothing wired. The executor records the named commands onCallVerdict.next_commands. The act seam (act_observe/apply.rs) callsToolHead::load, so those commands ride her next act's tail, the same way acommands/helpfind does, whatever the room's recipe declares.(c) Ratchet
source-hygiene::commands_in_refusal_text: a declared, namespaced command name inside a refusal's prose (CommandError::{Invalid,NotFound,Denied,Internal}(..),#[error(..)],ClientError::Refused{..}) is a site. The count may only fall, and touched files end clean. My local emulation of the rule counts 155 on this head; the base should be about 161 (6 removed here). The CI ratchet run gives the authoritative before/after.Not in this PR: grid refusals (
AircCommandResponse::Error) still carry noCommandRefusal, so a remote refusal loads nothing. The legacyServiceModule::handle_commandpath (String errors) carries none either. Both are follow-ups for whoever owns the grid seam and thestringly_command_errorsmigration.Tests
kernel sdk_codegen::refusal::tests::a_refusal_leaves_dispatch_with_its_next_moves_typed: dispatch keeps the sentence (rendered as offered) and the typed refusal. An arguments refusal carries none.cognition tool_surface::tests::a_refusals_next_moves_are_on_her_next_acts_surface: with a refusal namingwork/notein a room whose recipe leaves it out, her next surface's tail holdswork/note.cognition act_observe::tests::apply::a_refusals_next_moves_load_into_her_tool_head: the act seam loads what the refusal'sCallVerdictnames.mind work::submission::tests(updated): the no-changes refusal's moves are[work/note, work/state]and the uncommitted one's are[code/git/add, code/git/commit], typed. Each move renders as its offered call, and the canonical name never appears in prose.source-hygiene commands_in_refusal_text::tests: the ratchet itself, plus the predicate's fixture (multi-line prose,#[error], bare names, prefix-sharing names, non-refusal text).Lines
+574 / −72 across 28 files. Removed: the
CONCLUDE_WITHOUT_A_PATCHprose constant and 6 prose command mentions in refusals. The rest of the additions are the typed carriage, its tests and the ratchet (about 190 lines).Not compiled locally
This machine serves live minds, so nothing was built or tested here. CI is the compiler.
Live receipt (after deploy; owner: whoever deploys canary to the M5; deadline: first deploy after merge)
Measure identical refused calls a mind repeats per hour. Before: Aiko, 8
work/submitrefusals with the identical cause, 22:40-23:26Z on 11-13 (≈10/h on one card). After: the count ofpersona.act.refusedwith the samecommandand cause per mind per hour, plus whether aledger/update_taskcall follows a "nothing to submit" refusal.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo