Skip to content

feat(persona): flip the switch — service_loop decides via the WorkspaceCycle (gating cutover) - #1659

Merged
joelteply merged 1 commit into
canaryfrom
feat/cutover-workspace-decision
Jun 17, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/cutover-workspace-decision

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

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
joelteply force-pushed the feat/cutover-workspace-decision branch from 037f723 to 155c75d Compare June 17, 2026 18:17
@joelteply
joelteply merged commit 81c7c5f into canary Jun 17, 2026
4 checks passed
@joelteply
joelteply deleted the feat/cutover-workspace-decision branch June 17, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant