Repository navigation
feat(persona): flip the switch — service_loop decides via the WorkspaceCycle (gating cutover) - #1659
Merged
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
Jun 17, 2026
…ng in the Workspace brain (#1660) The gating cutover (#1659) routes the participation Decision through the WorkspaceCycle. But the cycle only had RecallFaculty + LlmDeliberationFaculty — so the roster (#1650) and doctrine (#1651) grounding, which are RagSources not Faculties, silently fell out of the live decision path the moment the switch flipped. The persona would forget who is present and what the room is for. This adds ONE generic bridge — RagSourceFaculty — that lifts any RagSource into a perception-tier Faculty (no second source of truth; reuses the reviewed sources verbatim). It is the concrete first step of "broadcast == RAG context" (task #8). Per the grid elegance thread (M5/IntelMac/BigMama, 2026-06-17): the bridge is migration scaffolding, the end-state is full convergence to native faculties, and RagSource deletion is gated on observability parity. Load-bearing guard (BigMama): a flat lift is a latent bug — a high-cosine memory could evict the doctrine and the persona forgets the room's rules mid-turn. So the bridge carries a SaliencePolicy: StandingFraming (roster/doctrine — high floor the top-k arbiter won't truncate) vs Retrieved (engram/conversation — competes on relevance). The classification lives at the assembly layer (build_workspace_cycle), never inside RagSource — the source stays salience-free. Wiring: supervisor passes roster + doctrine as StandingFraming grounding into PersonaBrainConfig; the same Arc still feeds the legacy compose path during the transition (one source of truth, two consumers — not a parallel allocator). Tests: bridge lift, abstain-on-empty, persona-scope passthrough, end-to-end grounding reaching the decider, salience-policy ordering, and the canary — standing framing keeps non-zero presence in context_broadcast even when a retrieved bid out-saliences it (the "forgot the room rules" regression net). Co-authored-by: Claude Opus 4.8 <[email protected]>
…ceCycle (gating cutover) The live persona loop now routes the should-respond DECISION + the response through the per-persona WorkspaceCycle (the brain) instead of the heuristic calculate_priority/fast_path path. The model judges whether to speak; Rust no longer gates cognition ([[no-rust-gates-around-cognition]] — the thing Joel flagged about should-respond, resolved). GO'd by the grid (IntelMac + BigMama). - Resolve the persona's cycle from persona_workspace::global() (registered at spawn); cycle.run(burst) → Decision → Speak/Raise → conversation.say, Pass/None → silent. respond() kept ONLY as a defensive fallback when no cycle is registered (should not happen) so no persona goes mute mid-transition. - The burst is METADATA-RICH, not bare text: a stream of inbox items with WHO (peer, own posts attributed by name so the mind sees what IT said and doesn't repeat), WHEN (occurred_at_ms), WHAT (content), WHERE (room header). Memories are injected by the cycle's RecallFaculty. "Given this RAG, do I have what I need?" = this burst + recalled memory — not a goldfish. Built where item metadata is intact; other modalities ride the same seam. - Self-echo loop is prevented upstream (own posts never TRIGGER a turn — the existing msg.peer_id == own filter), so including own posts as context is safe. cargo check -p continuum-core --features metal,accelerate clean. Heuristics (calculate_priority/fast_path) are now BYPASSED; their deletion is the #9 cleanup right after live proof (kept in-tree this commit for instant revert). Validate live: npm start → watch personas decide+speak via the brain. Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply
force-pushed
the
feat/cutover-workspace-decision
branch
from
June 17, 2026 18:17
037f723 to
155c75d
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.
The live persona loop now decides + responds via the per-persona WorkspaceCycle (the brain), not the calculate_priority/fast_path heuristics — the gating cutover Joel called. Metadata-rich burst (who/when/what/where, own posts attributed) + recall-injected memories. respond() kept as a no-mute fallback; heuristic DELETION is the #9 cleanup after live proof. GO'd by IntelMac + BigMama (own-post self-echo is prevented upstream by the existing trigger filter). cargo check clean. Validate: npm start → watch personas speak via the brain.