Repository navigation
fix(cognition): ring-counted anchor escalation — photocopy-chain breaker survives the window squeeze (#301) - #2110
Merged
Conversation
…breaker fires even when window evidence scrolls out (#301) Glass-boxed live 2026-08-02 (captures saved): Atlas's wake-intro was reproduced BYTE-FOR-BYTE by Benchy then Asha — identity claim included ("I'm Atlas" spoken by three different peers). Every layer of the existing machinery worked except one join: [repetition]/[pattern] facts rendered correctly in the copier's prompt (detection fine), and the ONE time the [anchor] escalation fired, her next turn broke the template (cure proven). But the escalation counters derive their runs from the RENDERED window, which the live context budget squeezes to 2-6 turns — so during an hours-long chain the older echo evidence had always scrolled out and the run read 1, one below PATTERN_FIRES_BEFORE_ANCHOR. The anchor that provably breaks these loops structurally could not fire. Same starvation the room-speech ring already cures for the inbound_restates fact; the service-loop detectors never got the ring. Fix: ring_echo_run — a pure counter over ring SNAPSHOTS (own-speech + room rings, boot-hydrated per #265) using the same containment geometry as the in-window detectors (shared echo_words tokenization, no drift). The LIVE message path and self-tick call append_ring_anchor_if_starved: when the ring-counted run reaches the threshold and the window-derived detectors pushed no [anchor], the SAME work_board_anchor is appended — one anchor per burst, whichever counter earns it, with a persona.pattern.ring_anchor probe. Eval/replay paths are untouched: build_workspace_turns' signature does not know rings exist (#59 isolation preserved — the reason window-derivation was chosen). Self-vouching subtlety pinned by test: the authorless room ring holds her own copy too, so exclusion is AT MOST ONE identical entry — the remaining identical copies ARE the photocopy evidence. Test builds the live specimen (Atlas intro, Benchy/Asha copies): 2 trailing photocopies count 2 (escalates), novel work counts 0, a lone original with no independent copies counts 0. Co-Authored-By: Claude Fable 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.
The live dysfunction (capture-proven)
Three personas spoke "I'm Atlas" — Atlas's wake-intro reproduced byte-for-byte down a chain, identity claim included. Glass box showed every mechanism worked but one join: detection facts rendered correctly, the
[anchor]escalation provably breaks the loop when it fires — but its run-counters derive from the squeezed rendered window (2–6 turns), so the older echo evidence always scrolled out and the run read 1, below threshold. Hours of photocopies, anchor fired once.The fix
ring_echo_run: pure counter over ring snapshots (own + room rings, boot-hydrated Unified Modular Runtime: Consolidate workers into continuum-core + Rust ORM #265), same containment geometry as the in-window detectors (shared tokenization — no drift).append_ring_anchor_if_starved: ring run at threshold + no anchor present → the samework_board_anchor, one per burst, probed.build_workspace_turnssignature doesn't know rings exist (Build(deps-dev): Bump eslint from 9.24.0 to 9.27.0 #59 isolation, the reason window-derivation was chosen originally).Testing
ring_echo_run_counts_photocopies_and_never_self_vouches— live specimen text; 2 copies → 2 (escalates), novel → 0, lone original → 0.repetition_observation_enters_burst_only_on_self_recyclingstill green.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo