Repository navigation
One refusal shape: a refused call is her typed cause and her next moves, in the kernel and on the wire (card 3d7931b7) - #5830
Merged
Conversation
… hands, or a typed NoMove); CommandError::Refused carries it Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… cause chain, next moves; an empty call list does not decode); the kernel's Refusal projects onto it Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…s next move (outlier A)
ActOutputRefusal is a RefusalCause (NotFound). An unknown act number carries her newest saved
act, so the refusal's next call is read_output({"act": that}); a failed save is NoMove::
NothingMoreExists, and nothing saved yet is NoMove::NothingSaved (new). No resident mind for the
caller is the substrate's fault, not hers: act_output_handle returns it as the outer error
(NoResidentMind), which named_output maps to Internal.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…own decoder; the try_from shadow enum and NoCallsListed are gone
ts-rs could not parse serde's try_from on NextMoves (a warning on every build). The non-empty
rule now lives in Calls' Deserialize; the wire shape is unchanged ({"calls": [...]} | {"none": ...}).
The kernel's refusal test body binds its result first, so action_command!'s block raises no
unused_braces warning.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…r tool-call wire, the grid wire); its test asserts the typed Refused variant, never the error's text Ratchets at canary 900ab80: error_text_matches 26 -> 26, unjustified_serialization 208 -> 208. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
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.
Card 3d7931b7. How this serves the minds: a refused call reaches her as a typed cause plus the calls she can make next (each one a verb in her hands, with that verb's own params), or a typed reason there is none. It never arrives as a prose string she has to parse, and never as "do one of these:" followed by nothing. This advances goal 7's newest-result rule (a refusal is her latest result: it must end the recursion with a next move) and the order of work's typed-refusals line. #5821 (Fable:
latestas a typed submission handle) stacks on it.The shape
sdk_codegen::refusal):Refusalis its typed cause chain plusNextMoves: one or more calls, built only from verbs in her hands with their own params, or a typedNoMove.CommandError::Refused(Arc<Refusal>)carries it;Invalid/NotFound/Denied(String)are its predecessors, migrated by thestringly_command_errorsratchet.continuum-airc-protocol::refusal):CommandRefusal { category, cause, next }is the one wire form, in-process and over the grid.NextMoves::Callsholds a non-emptyCallstype with its own decoder, so an empty call list does not decode. The wire is{"calls":[...]} | {"none":...}, and the ts-rs bindings are inprotocol/typescript/transport/.tool/output): an act that reopens nothing is her typed refusal with its next move, rendered by her act's renderer.Validation (IntelMac, 2026-11-07, at 960431e on canary 900ab80)
cargo check -p continuum-cognition -p continuum-airc-protocol -p continuum-kernel --tests --features continuum-cognition/metal,continuum-cognition/test-fixtures: clean. No new warnings in touched files; handler.rs'sEnvSpecwarnings are canary's.continuum-airc-protocol --lib refusal: 7 passed.continuum-kernel --lib refusal: 6 passed.continuum-cognition --lib -- tool_output action_log act_output: 24 passed.source-hygiene --bin ratchets -- origin/canary: 87/87 on both trees. error_text_matches 26 -> 26, unjustified_serialization 208 -> 208 (the two serialization sites name their boundary: her tool-call wire, the grid wire).Removed
NextMovesWire,TryFrom<NextMovesWire>andNoCallsListed: the non-empty rule lives inCalls'Deserialize.tool/output.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE