Repository navigation
A reopen with one reading is served: tool/output takes an empty call, both names that agree, and half ranges (IntelMac: 64 + 35 refused calls) - #5844
Merged
Conversation
… both names that agree, and half ranges (IntelMac: 64 + 35 refused calls) tool/output refused every call that did not name exactly one of outputId or act (64 refusals on the IntelMac 11-07), the empty call (35), and a range with one end. Each had one reading: - neither name: her newest saved output (WorkingMemory::reopened_handle(ActRef::NewestSaved)); none saved is the typed NothingSaved refusal; - both names: served when they name the same output; when they disagree, a typed Disagree refusal whose next calls are each name alone (the act's only when it resolves); - endLine alone reads from line 1, startLine alone to the last line (line_range). ActRef is the one way an act is named to the resolver (registry and working memory); the next calls render through Reopen::params, the same form every handle shows. Card 47035f1d; Joel 11-07 "Refusal is insane" (card 9ed04d88, pattern 1 of #5838). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…so a search of a search reads the log (Codex's 5090 capture)
A tool/output result was saved as a new output under a fresh handle, call and act alike, so her
next search ran over her own earlier selection instead of the log (windows-df8: tool/output her
most frequent call while nothing got written). Now:
- the executor reads the source a Reopens command names (reopened_source, by the declared
effect, never the name) and makes it the call's custody instead of saving the selection;
- an act whose every call reopened one output takes that output as its receipt's custody
(reopened_by_every_call); any other act saves its receipt as before;
- a range's open end is typed (spill::LineRange { end: None }), not usize::MAX (Fable's note).
Fable's FAIL on #5844 at 31fffeb; card 47035f1d.
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.
How this serves the minds: a resident's call to reopen a saved result had one plain reading, but it was refused, and she spent her next act re-asking. This advances path step 1 (Fast: fewer wasted acts) and is pattern 1 of #5838 ("degrade, never refuse"; Joel 11-07, card 9ed04d88). Card 47035f1d.
What was wrong (receipts)
IntelMac refusal analysis, 2026-11-07, posted in #continuum-dev.
tool/outputrefused:The change (
tool_output.rs, working memory, registry)WorkingMemory::reopened_handle(ActRef::NewestSaved). When none is saved, the typed refusal isActOutputRefusal::NothingSaved(next:NoMove::NothingSaved).ActOutputRefusal::Disagree(category Invalid), whose next calls are each name alone. The act's call is offered only when the act resolves.line_range):endLinealone reads 1..end,startLinealone reads start..last line. The reader already stops at the last line (spill::investigate_readers:number <= end).ActRefis the one way an act is named to the resolver.PersonaWorkspaceRegistry::act_output_handleandNoResidentMindcarry it.Reopen::params, the same form every handle shows. Fable'sReopen::Lines/Bytesin Her newest result is irreducible at its whole; past the window, its first page of content (card 8a12dcd1) #5840 compose with this, since they touch different hunks.Removed: the "exactly one" refusal, the half-range refusal, and the duplicated params construction in
act_refused.Tests (each with a what-this-catches line)
a_reopen_with_one_reading_is_served_and_only_two_readings_refuse:h2), skipping the unsaved Build(deps): Bump actions/stale from 8 to 9 #3;[{outputId}, {act}];a_half_range_reads_to_the_output_s_edge:endLinealone,startLinealone, both, and neither.Measured
Source and tests only; nothing deployed. Worktree 47035f1d on base 97f73c4, IntelMac, 2026-11-07.
cargo test -p continuum-cognition --features metal --lib -- tool_output act_output working_memory saved_handle newest_result an_action_result_cannot_mute: 87 passed.-- prompt_shaping tool_surface: 77 passed. The surface ceiling holds.startLinealone as start..1;cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0.tool/outputrefusals per hour against today's 64 + 35.Round 2 (f52f753): a reopen is a view of its source
Fable's FAIL at 31fffeb found that fold (a) on the card was missing. A
tool/outputresult was saved as a new output, both per call and as the act receipt. Her search of that handle then matched her own earlier selection instead of the log (Codex's 5090 capture, windows-df8).command_executor.rsreads the source that a Reopens command names (tool_output::reopened_source, keyed by the declaredToolEffect, never by name). That source becomes the call's custody, so the selection is never saved.act_observe/apply.rs, an act whose every call reopened one output takes that output as its receipt's custody (reopened_by_every_call). Any other act saves its receipt as before.spill::LineRange { end: None }, notusize::MAX(Fable's non-blocking note).a_reopen_is_a_view_of_its_source_and_never_a_new_output:It is mutation-proved: returning a fresh handle fails it, and so does accepting two sources.
-- tool_output act_output working_memory spill newest_result act_observe: 183 passed;-- prompt_shaping tool_surface: 77 passed;tool/outputacts mint no new handles.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE