Repository navigation
feat(persona): RagSourceFaculty bridge — keep roster/doctrine grounding in the Workspace brain - #1660
Merged
Merged
Conversation
…ng in the Workspace brain 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]>
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…d it: continuum's airc pin moves past #1660 (card c3504a71) (#5824) * A resident's submission records her commit, so the merge gate can land it: continuum's airc pin moves past #1660 (card c3504a71) Fable's #5821 refusal table: every resident submission carried no head, and airc #1660's merge gate (a passed independent review at a recorded head) refuses a headless submission, so no resident's work could ever merge, blocking goal 2 (a resident's first merged PR). continuum pinned airc at b158a7e93, which predates #1660, so work/submit could not record one. - Cargo.toml: every airc crate b158a7e93 -> 22c9c0ee0 (airc canary: #1660 recorded heads, #1661 latest_submission, #1663 the stacked-PR gate). - work/submit records her checkout's committed HEAD (committed_head) as the submission's head, and the patch is that commit's diff against the base. While she holds changes the commit does not carry (tracked or untracked, outside the substrate paths the patch excludes) it is refused by name, naming code/git/commit: a submission is a commit, never her working tree, and the substrate never commits for her. A typed artifact names its head too (`head` param). - One owner of "newest": continuum's card_holder::latest_submission (a copy of submissions.first()) is deleted; its six callers read airc's WorkCard::latest_submission(). - Touched files leave with no self-sized sites: handoff.rs's five hand-cut ids render through airc_core::shown_id::shown_form; the build shas compare by prefix either way and render whole; the dirty paths, the diff sha256 and the obligations she resumes from render whole; work_similar's card text gives the embedder the whole body. latest_submission.rs runs git through one git_in helper (three spawn sites become one). - Test literals of WorkSubmission/SubmitWork carry a head (Unrecorded where heads are not the subject). Tests: continuum-mind work:: 86 pass, continuum-rooms handoff 8 pass, rooms lib 30 pass; mind/rooms/core --tests check clean; ratchets vs origin/canary 87/87. a_worktree_with_no_base_is_refused_by_name now proves an uncommitted change is refused naming code/git/commit and the derived head is the commit. Mutation: without the dirty-tree refusal, it fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A submission's patch is exactly its commit, base..head; a commit carrying an unpublished path is refused (Fable on #5824) Fable: the gate merges the HEAD commit, but the artifact was candidate_diff (her checkout's diff minus SOLUTION_PATH_EXCLUDES), so anything in her commit that the diff dropped would merge unreviewed; airc's CLI submit enforces patch == git diff --binary base head for this reason. commit_patch now returns exactly `git diff --binary base..head` (the same flags the patch was always rendered with), and a commit that touches a path a submission never publishes (substrate or build byproducts) is refused by name. Tests: continuum-mind work:: 84 pass; ratchets vs origin/canary 87/87. a_worktree_with_no_base_is_refused_by_name now also commits .continuum/state.json and expects the refusal naming it. Mutation: without the refusal it fails. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * protocol: WorkSubmitParams carries head (the regenerated ts-rs binding for #5824) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * work/submit passes the validated base to commit_patch (an unused variable was a new continuum-mind warning; CI's warning ratchet 13 -> 14) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * work/submit fixtures type their head; head's doc cut to one clause A typed submission is complete only with the commit it ends at (the gate refuses one without), so the training_credit fixtures that typed base and artifact but no head fell through to deriving from a checkout and cloned acme/ordinary-project in CI. They now type head. head's tool doc is cut to 'Omit: your checkout's committed HEAD.' (+42 surface tokens at bce9206 with the longer text; the exact figure is pinned from this commit's CI). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * The agentic surface ceiling is re-pinned at 17956: work/submit's head param (measured in CI at 6b5069c) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
What
A generic
RagSourceFacultythat lifts anyRagSourceinto a perception-tierFaculty, and wires the roster (#1650) + doctrine (#1651) grounding into the personaWorkspaceCycleas standing-framing faculties.Why (the regression this prevents)
The gating cutover (#1659) routes the participation
Decisionthrough theWorkspaceCycle. But the cycle only hadRecallFaculty+LlmDeliberationFaculty— roster + doctrine areRagSources, notFacultys, so they silently fell out of the live decision path the moment the switch flipped. A persona would forget who is present and what the room is for (the exact grounding #1650/#1651 just added). This closes that gap so the cutover keeps its grounding.Design (from the grid elegance thread — M5/IntelMac/BigMama, 2026-06-17)
RagSource= retrieval-IO;Faculty= attention-arbitration. The bridge is migration scaffolding; end-state is full convergence to native faculties.RagSourcedeletion is gated on observability parity (JsonlWorkspaceCaptureSink+ReplayFaculty) — follow-ups, not this PR.SaliencePolicy { StandingFraming | Retrieved | Fixed }— standing-framing (roster/doctrine) bids at a high floor the top-k arbiter won't truncate; retrieved competes on relevance. Classification lives at the assembly layer, never inRagSource(it stays salience-free).Arcinto both the legacy compose path and the brain during the transition — not a parallel allocator.Tests
cognition::rag_source_faculty(6): 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 incontext_broadcasteven when a retrieved bid out-saliences it (the "forgot the room rules" regression net). Fullcognition::suite green (448 passed, 1 ignored).Sequencing
Independent of #1659 — this touches
supervisor.rs/persona_workspace.rs; the cutover touchesservice_loop.rs. No overlap; either can land first. Built off canary.Follow-ups (tracked toward task #8 convergence)
PersonaCognition→ default auto-lift for every source (BigMama's Guard 1).JsonlWorkspaceCaptureSink+ReplayFaculty(observability parity →RagSourcedeletion gate).🤖 Generated with Claude Code