Repository navigation
Mind split 1-3: continuum-experience is its own crate; persona's leaf modules move down into cognition - #5342
Merged
Merged
Conversation
…their owners Plan phase 2 (crates by the placement map): the small modules experience/recipe reached up into persona and cognition for, moved down so experience+recipe can become their own crate. - RoleId (the enum + as_str) moves from persona::role_template to experience::role; role_template keeps the templates and imports it. 18 files migrated (core 4, mind 14 incl. experience/recipe.rs and source.rs). - bench_title (no deps) moves from cognition to recipe::bench_title. 13 files migrated (core 6, mind 7 incl. recipe/benchmark_catalog.rs). - context::citizen_path depends only on IdentityKind; it moves into the kernel's identity module (identity::citizen_path). context/mod.rs drops its re-export; 12 files migrated. - source-hygiene head_cuts: PROMPT_PATHS gains experience/ and recipe/ (a room's manifest and its recipe render what a mind reads). bench_title's three card-title clips left the scanned cognition/ tree with this move; without this the ratchet read 185 -> 183 from scope drift alone. With it: 185 -> 185, and nothing else under experience/ or recipe/ matches. Pure moves, no aliases or re-exports left behind. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2).
Step 1 left experience and recipe naming nothing in cognition or persona; this
is the cut. They name each other (an experience projects from its recipe, the
recipe executor reads experiences), so they are one crate.
Pure moves: continuum-mind/src/{experience,recipe} ->
continuum-experience/src/{experience,recipe} (git renames, including the
shipped recipes/*.json that include_str! reads beside source.rs). Same depth,
so ts-rs export_to paths and the schema test's CARGO_MANIFEST_DIR path resolve
unchanged. The crate re-exports continuum_kernel::* (production code reaches
only kernel modules: runtime, routing, identity, orm, sdk_codegen), so every
crate:: path inside it resolves; the mind re-exports
`pub use continuum_experience::{experience, recipe}`, so its callers and core's
re-export keep their paths.
- One visibility widened: wall_records::current_wall_records (pub(crate) ->
pub), which persona's wall source calls.
- Three intra-doc links to cognition items become plain code spans (they name
continuum-mind from below it); the generated CitizenRequirement.ts and the
recipe schema carry the same wording.
- Core's tests that include_str! the shipped recipes repointed.
- Features: test-fixtures (the fixed room-purpose source, the executor's
unrecorded constructor) forwards to base and kernel; the mind's
test-fixtures forwards here. No GPU features: nothing here builds one.
- Workspace member; source-hygiene MODULE_CRATES (the one list core's
test_env guards read too, since #5338); the warnings ratchet's counted
targets; test-fixtures dev-deps in mind and core.
- CI: `cargo test -p continuum-experience --lib` beside the genome line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…p 3)
Plan phase 2 (crates by the placement map). Modules persona owned but that
name no persona module move down to cognition, so cognition's remaining
upward references shrink toward its own crate cut.
Moved (git renames; global statics moved with their module, never copied):
- rag_budget/ (+ flex_allocate, substrate_context, tests), text_analysis/,
prompt_assembly/, redaction, health_ledger (LEDGER, MINDS), presence_glyph,
mind_events, room_directory, focus (the focus registry).
Callers migrated (persona::X -> cognition::X, and persona's `super::X`):
rag_budget 128 sites, health_ledger 33, text_analysis 16, prompt_assembly 16,
focus 16, redaction 11, presence_glyph 11, room_directory 6, mind_events 4,
plus 20 `super::rag_budget` sites in persona's sources; 98 files.
- cognition::faculty_ids: the 11 persona grounding-source ids cognition matches
on (deliberation_prompt's churn table, the deliberation faculty's held-work
predicates and prompt view/system, three faculty tests, service_loop's
beat_outcome), plus renders_held_card / renders_held_in_progress. Each
persona source now emits its id from there (its own SOURCE_ID const is
gone). persona::mission_source held only its id, so it is deleted and its
note folded into faculty_ids::MISSION.
- cognition::capture::fixture_dir (from persona::recorder): 8 files migrated.
- prompt_assembly's one end-to-end test that drives persona's roster source and
service loop's project_room_roster fold moves to service_loop's tests (same
test, persona side), so prompt_assembly names no persona module even under
cfg(test). (Placed there, not in room_roster_source's own tests: nothing in
production constructs RoomRosterSource, and the unwired-machinery ratchet
reads a constructor in its own file as no caller at all. Pre-existing; the
test was its only outside constructor before and still is.)
- persona/{wall_source/tests, workspace_map_source/layout_reader} read the
source id from faculty_ids too.
- Upward intra-doc links in the moved files become plain code spans.
No aliases or re-exports left behind.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…a (mind split steps 7 + 8) Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2). Production cognition names no persona module (cognition_names_persona = 0), so this is the cut, the way continuum-experience was cut (#5342). Pure moves: continuum-mind/src/cognition -> continuum-cognition/src/cognition (git renames). Same depth, so the gym's include_str! paths and ts-rs export_to resolve unchanged. The crate re-exports what its paths name (continuum_live::*, code, genome, memory, experience, recipe, perception, rag), so every crate:: path inside it resolves; the mind re-exports `pub use continuum_cognition::cognition`, so persona's and core's paths are unchanged. build = "../continuum-core/build.rs" (handoff, captures and continuity stamp CONTINUUM_BUILD_GIT_SHA). Features forward to the engine (metal/cuda/vulkan), stress-tests, test-fixtures; the mind's forward to it. Visibility crossing the new seam: 24 items persona names widened from pub(crate)/pub(super) to pub (each one a compile error at the cut, nothing speculative), and 6 test-only helpers persona's and core's tests use move from #[cfg(test)] to #[cfg(any(test, feature = "test-fixtures"))] (WorkspaceCycle::run, the roster projection, AdmissionState::push_for_test, BoundedRoomLedger::get). Step 7, the cognition tests that drove persona, moved to where both crates are visible (each asserts what it asserted before): - bound_card_activity_is_shared_by_perception_and_execution -> core test_env mind_integration/bound_card_activity.rs; rehome_requires_a_readable_local_assignment -> mind_integration/remote_lane.rs. RecordingExecutor and ActThenSpeak join act_observe::test_support (test-fixtures) so they can. - starved_priority_input_survives_until_dispatch_without_replaying_actions -> persona::wake_backlog (PendingInput custody is persona's); she_is_told_when_her_hands_move_and_only_then -> persona::card_hands. - handoff's renewal test kept its cognition half; the failed-bind half is persona's a_failed_bind_keeps_the_bound_card_in_the_handoff (service_loop tests). Wiring: workspace member; source-hygiene MODULE_CRATES (core's test_env guards read it); the warnings ratchet's counted targets; core's test-fixtures dev-dep; CI: TESTED_CRATES, the lib-test step's crate list, and the selector test (18/18). Tests: cognition 1449, mind 802 (2251 = 2252 - 2 moved to core + 1 split out), experience 92, memory 51, genome 380, kernel 1252, core test_env 121 (+2 moved): 4147 = 4146 + 1. Check: 0 errors, warnings 103 (= base). Ratchets: cognition_names_persona 109 -> 0, modules_in_cycles 28 -> 26, the rest unchanged. Incremental (touch, M5, serving down): cognition edit -> check cognition 2.5 s, -> check mind 4.3 s; persona edit -> check mind 1.9 s; cognition edit -> check core 79 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…a (mind split steps 7 + 8) Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2). Production cognition names no persona module (cognition_names_persona = 0), so this is the cut, the way continuum-experience was cut (#5342). Pure moves: continuum-mind/src/cognition -> continuum-cognition/src/cognition (git renames). Same depth, so the gym's include_str! paths and ts-rs export_to resolve unchanged. The crate re-exports what its paths name (continuum_live::*, code, genome, memory, experience, recipe, perception, rag), so every crate:: path inside it resolves; the mind re-exports `pub use continuum_cognition::cognition`, so persona's and core's paths are unchanged. build = "../continuum-core/build.rs" (handoff, captures and continuity stamp CONTINUUM_BUILD_GIT_SHA). Features forward to the engine (metal/cuda/vulkan), stress-tests, test-fixtures; the mind's forward to it. Visibility crossing the new seam: 24 items persona names widened from pub(crate)/pub(super) to pub (each one a compile error at the cut, nothing speculative), and 6 test-only helpers persona's and core's tests use move from #[cfg(test)] to #[cfg(any(test, feature = "test-fixtures"))] (WorkspaceCycle::run, the roster projection, AdmissionState::push_for_test, BoundedRoomLedger::get). Step 7, the cognition tests that drove persona, moved to where both crates are visible (each asserts what it asserted before): - bound_card_activity_is_shared_by_perception_and_execution -> core test_env mind_integration/bound_card_activity.rs; rehome_requires_a_readable_local_assignment -> mind_integration/remote_lane.rs. RecordingExecutor and ActThenSpeak join act_observe::test_support (test-fixtures) so they can. - starved_priority_input_survives_until_dispatch_without_replaying_actions -> persona::wake_backlog (PendingInput custody is persona's); she_is_told_when_her_hands_move_and_only_then -> persona::card_hands. - handoff's renewal test kept its cognition half; the failed-bind half is persona's a_failed_bind_keeps_the_bound_card_in_the_handoff (service_loop tests). Wiring: workspace member; source-hygiene MODULE_CRATES (core's test_env guards read it); the warnings ratchet's counted targets; core's test-fixtures dev-dep; CI: TESTED_CRATES, the lib-test step's crate list, and the selector test (18/18). Tests: cognition 1449, mind 802 (2251 = 2252 - 2 moved to core + 1 split out), experience 92, memory 51, genome 380, kernel 1252, core test_env 121 (+2 moved): 4147 = 4146 + 1. Check: 0 errors, warnings 103 (= base). Ratchets: cognition_names_persona 109 -> 0, modules_in_cycles 28 -> 26, the rest unchanged. Incremental (touch, M5, serving down): cognition edit -> check cognition 2.5 s, -> check mind 4.3 s; persona edit -> check mind 1.9 s; cognition edit -> check core 79 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…a (mind split steps 7 + 8) Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2). Production cognition names no persona module (cognition_names_persona = 0), so this is the cut, the way continuum-experience was cut (#5342). Pure moves: continuum-mind/src/cognition -> continuum-cognition/src/cognition (git renames). Same depth, so the gym's include_str! paths and ts-rs export_to resolve unchanged. The crate re-exports what its paths name (continuum_live::*, code, genome, memory, experience, recipe, perception, rag), so every crate:: path inside it resolves; the mind re-exports `pub use continuum_cognition::cognition`, so persona's and core's paths are unchanged. build = "../continuum-core/build.rs" (handoff, captures and continuity stamp CONTINUUM_BUILD_GIT_SHA). Features forward to the engine (metal/cuda/vulkan), stress-tests, test-fixtures; the mind's forward to it. Visibility crossing the new seam: 24 items persona names widened from pub(crate)/pub(super) to pub (each one a compile error at the cut, nothing speculative), and 6 test-only helpers persona's and core's tests use move from #[cfg(test)] to #[cfg(any(test, feature = "test-fixtures"))] (WorkspaceCycle::run, the roster projection, AdmissionState::push_for_test, BoundedRoomLedger::get). Step 7, the cognition tests that drove persona, moved to where both crates are visible (each asserts what it asserted before): - bound_card_activity_is_shared_by_perception_and_execution -> core test_env mind_integration/bound_card_activity.rs; rehome_requires_a_readable_local_assignment -> mind_integration/remote_lane.rs. RecordingExecutor and ActThenSpeak join act_observe::test_support (test-fixtures) so they can. - starved_priority_input_survives_until_dispatch_without_replaying_actions -> persona::wake_backlog (PendingInput custody is persona's); she_is_told_when_her_hands_move_and_only_then -> persona::card_hands. - handoff's renewal test kept its cognition half; the failed-bind half is persona's a_failed_bind_keeps_the_bound_card_in_the_handoff (service_loop tests). Wiring: workspace member; source-hygiene MODULE_CRATES (core's test_env guards read it); the warnings ratchet's counted targets; core's test-fixtures dev-dep; CI: TESTED_CRATES, the lib-test step's crate list, and the selector test (18/18). Tests: cognition 1449, mind 802 (2251 = 2252 - 2 moved to core + 1 split out), experience 92, memory 51, genome 380, kernel 1252, core test_env 121 (+2 moved): 4147 = 4146 + 1. Check: 0 errors, warnings 103 (= base). Ratchets: cognition_names_persona 109 -> 0, modules_in_cycles 28 -> 26, the rest unchanged. Incremental (touch, M5, serving down): cognition edit -> check cognition 2.5 s, -> check mind 4.3 s; persona edit -> check mind 1.9 s; cognition edit -> check core 79 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…a (mind split steps 7 + 8) Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2). Production cognition names no persona module (cognition_names_persona = 0), so this is the cut, the way continuum-experience was cut (#5342). Pure moves: continuum-mind/src/cognition -> continuum-cognition/src/cognition (git renames). Same depth, so the gym's include_str! paths and ts-rs export_to resolve unchanged. The crate re-exports what its paths name (continuum_live::*, code, genome, memory, experience, recipe, perception, rag), so every crate:: path inside it resolves; the mind re-exports `pub use continuum_cognition::cognition`, so persona's and core's paths are unchanged. build = "../continuum-core/build.rs" (handoff, captures and continuity stamp CONTINUUM_BUILD_GIT_SHA). Features forward to the engine (metal/cuda/vulkan), stress-tests, test-fixtures; the mind's forward to it. Visibility crossing the new seam: 24 items persona names widened from pub(crate)/pub(super) to pub (each one a compile error at the cut, nothing speculative), and 6 test-only helpers persona's and core's tests use move from #[cfg(test)] to #[cfg(any(test, feature = "test-fixtures"))] (WorkspaceCycle::run, the roster projection, AdmissionState::push_for_test, BoundedRoomLedger::get). Step 7, the cognition tests that drove persona, moved to where both crates are visible (each asserts what it asserted before): - bound_card_activity_is_shared_by_perception_and_execution -> core test_env mind_integration/bound_card_activity.rs; rehome_requires_a_readable_local_assignment -> mind_integration/remote_lane.rs. RecordingExecutor and ActThenSpeak join act_observe::test_support (test-fixtures) so they can. - starved_priority_input_survives_until_dispatch_without_replaying_actions -> persona::wake_backlog (PendingInput custody is persona's); she_is_told_when_her_hands_move_and_only_then -> persona::card_hands. - handoff's renewal test kept its cognition half; the failed-bind half is persona's a_failed_bind_keeps_the_bound_card_in_the_handoff (service_loop tests). Wiring: workspace member; source-hygiene MODULE_CRATES (core's test_env guards read it); the warnings ratchet's counted targets; core's test-fixtures dev-dep; CI: TESTED_CRATES, the lib-test step's crate list, and the selector test (18/18). Tests: cognition 1449, mind 802 (2251 = 2252 - 2 moved to core + 1 split out), experience 92, memory 51, genome 380, kernel 1252, core test_env 121 (+2 moved): 4147 = 4146 + 1. Check: 0 errors, warnings 103 (= base). Ratchets: cognition_names_persona 109 -> 0, modules_in_cycles 28 -> 26, the rest unchanged. Incremental (touch, M5, serving down): cognition edit -> check cognition 2.5 s, -> check mind 4.3 s; persona edit -> check mind 1.9 s; cognition edit -> check core 79 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…ona (109 -> 0) (#5364) * Peel C: the conversation contract moves down into cognition::conversation (mind split step 5) Plan phase 2 (crates by the placement map). What a mind perceives arriving in a room and how she answers into one is cognition's contract; persona supplies the airc transport behind it. Moved down, so the act/observe drive, the settle, the experience stream and the evals name no persona module for it: - cognition::conversation (mod.rs): IncomingMessage (+ render_content/render_room_update, now pub), the PersonaConversation trait, the perception Wake (from perception_region), INBOX_CAPACITY and CATCH_UP_PAGE (from airc_persona_conversation). - The closed leaf group render_content needs (git renames, unchanged bodies): room_event, channel_items (+ tests), channel_types, types, salience, persona_identity. - seen_ids: SeenIds + is_stale (from wake_backlog) with their three tests. - transcript_reader: AircTranscriptReader, read_cursor_consumer_id, the perception page filters and the airc_lib::Airc impl (from airc_source). - workspace_turns: build_workspace_turns, TriggerTurn, the roster/echo/ring helpers, work_board_anchor (from work_burst) and the test-only roster projection (from service_loop/beat_outcome). - scripted_conversation: the ScriptedConversation fixture (test-fixtures gated) moves down with the trait. stream_citizen leaves the cognition trait. It returned persona's `dyn AircCitizen`, and cognition's only caller (the held-card bind) moves up to persona in Peel D, so the narrowest contract for cognition is none: persona's `service_loop::CitizenConversation: PersonaConversation` carries the accessor, persona's loop holds `dyn CitizenConversation`, and a call into cognition upcasts. The scripted fixture carries an opaque attachment; persona's `ScriptedCitizen::with_citizen` seeds the citizen and persona's CitizenConversation impl reads it back. Callers migrated (persona::X -> cognition::conversation::X, persona's super::X, and the persona root re-exports of the moved types, now gone): 116 files, 24 in continuum-core. Core's root re-export of the inbox types points at their new owner. loose_id_guard's channel_items rows follow the file. source-hygiene: new ratchet cognition_names_persona (production lines in cognition/ naming crate::persona; moved tests excluded). Base a51bc55: 109; this commit: 82. Tests: mind 2369, experience 92, memory 67, genome 410, kernel 1252, core test_env 119 (sum 4309, same as base). cargo check -p continuum-core --features metal,accelerate --tests --bins: 0 errors, warnings unchanged (mind 0). Every other ratchet unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Peel D: cognition calls persona's verbs through cognition::extensions (mind split step 6) Plan phase 2 (crates by the placement map). The verbs cognition calls that persona owns are inverted: cognition names the contract in cognition/extensions.rs (the shape of continuum-kernel's runtime::extensions: a static RwLock<Option<..>> per slot and install_* beside it) and persona fills it at boot (persona::cognition_extensions::install, called from core's install_kernel_extensions, the one list boot and tests share). An empty slot is loud: every call through one emits `cognition.extension.missing` naming the slot, then does the no-op its doc states. Slots: - room voice (act receipts, apply.rs), through the runtime registry + publish_text_in_room; - card carry request (apply.rs); - CreditSink: produce_speech_discipline (verdict), settle_instance_credit and settle_card_credit (swe_instance); - cognition pulse touch (request.rs); mark_perceived (settle_to_outcome.rs); - remote binding (rehome.rs; the error crosses as text, it is only displayed); - the fleet quiesce lease (cognition_eval.rs: FleetLease holds persona's QuiesceLease); - the room whose board holds a card (activity_room_for, via work_board::horizon); - the pinned workspace-map source (default_workspace_capacity's eval repoint). Moved UP into persona (persona::card_hands, 429 lines): the card-binding half of acting_hands: root_at_held_card, bind_held_card, bind_card, close_ended_claims, end_card_turn, HeldCardTurn, CardHands and the told-where-she-stands notice. Cognition keeps where her hands stand (ActingHands, ACTING_ROOTS, focus, claim_gone_verdict, claim_has_ended) and gains claimed_places_of, so the ACTING_ROOTS static is read through one accessor and never leaves its owner. impl PersonaChannelReader for PersonaAircRuntimeRegistry moves to the registry's file. Moved DOWN instead of inverted, because they are pure leaves (git renames, statics moved with their module): room_substrates (its OnceLock registry), card_holder (+ held_of_owned, settled_card from airc_runtime and latest_submission from work_board::submissions), work_board::facts -> cognition::card_facts, grounding_invalidation (its WORKSPACE_MAP_DIRTY registry) and cached_source. A pure fn behind a slot would only add a hop. Two cognition tests that drive persona's verbs now install the slots first (step 7 moves them with persona). Callers migrated: 54 files, 10 in continuum-core. Measured on canary a3e496d (rebased after #5361): cognition_names_persona 109 -> 46; every other ratchet unchanged. Tests: mind 2252, experience 92, memory 51, genome 380, kernel 1252, core test_env 117 + the same 2 failures canary a3e496d has (fixed in the next commit). Check: 0 errors, warnings 103 (= base). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Mind split: the memory leaves move down, the last producer couplings invert (cognition names persona 46 -> 0) Plan phase 2 (crates by the placement map). After Peels C and D the remaining production lines in cognition naming persona were the engram family, the mind room and four training-producer couplings. This clears them, so cognition can be cut into its own crate. Moved DOWN (git renames, statics moved with their module): the closed leaf group admission, admission_persistence, admission_state, attention, engram, engram_graph, home, inbox_admission, mind_room, recall_metadata, trace, decay_tick. Persona's root re-exports of their items are gone; callers name the new owner (77 files rewritten, 3 regrouped). mind_room's two functions that open her sealed mind store through her airc runtime (seal_continuation, sealed_continuation) stay up, in the new persona::mind_store; the pure record id stays with the room. Inverted: - TurnCredit (cognition::act_observe): the settle hands a card-linked turn's acts to its credit owner through this trait; persona's TurnCreditCapture implements it. The live callers pass `as &mut dyn TurnCredit`. - ReviewBoundaryLedger (cognition::dream_consolidation): the dream drives the resident's durable review-boundary ledger through it (+ BoundaryPage, moved down); persona's ReviewBoundaryStore implements it, and the production reflection source reaches the resident's ledger through a new slot, extensions::resident_review_boundaries (empty slot: probed, Ok(None), the nonpersistent answer). - SPEECH_DISCIPLINE_TRAIT, RECEIVED_LESSON_SOURCE, SPEECH_DISCIPLINE_SOURCE and UNLINKED_SOURCES move down to cognition::training_sources (gym and held_out read them; the producer writes them). home.rs's two intra-doc links into persona become prose (one named the deleted portability module). loose_id_guard's engram rows follow the file. Measured on canary a3e496d: cognition_names_persona 109 -> 0 (this commit 46 -> 0); modules_in_cycles 28 -> 26; every other ratchet unchanged. Tests: mind 2252, experience 92, memory 51, genome 380, kernel 1252, core test_env 119 (sum 4146 = base + the 2 guard rows repaired in the previous commit). Check: 0 errors, warnings 103 (= base). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * continuum-cognition: a mind's thinking is its own crate, below persona (mind split steps 7 + 8) Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2). Production cognition names no persona module (cognition_names_persona = 0), so this is the cut, the way continuum-experience was cut (#5342). Pure moves: continuum-mind/src/cognition -> continuum-cognition/src/cognition (git renames). Same depth, so the gym's include_str! paths and ts-rs export_to resolve unchanged. The crate re-exports what its paths name (continuum_live::*, code, genome, memory, experience, recipe, perception, rag), so every crate:: path inside it resolves; the mind re-exports `pub use continuum_cognition::cognition`, so persona's and core's paths are unchanged. build = "../continuum-core/build.rs" (handoff, captures and continuity stamp CONTINUUM_BUILD_GIT_SHA). Features forward to the engine (metal/cuda/vulkan), stress-tests, test-fixtures; the mind's forward to it. Visibility crossing the new seam: 24 items persona names widened from pub(crate)/pub(super) to pub (each one a compile error at the cut, nothing speculative), and 6 test-only helpers persona's and core's tests use move from #[cfg(test)] to #[cfg(any(test, feature = "test-fixtures"))] (WorkspaceCycle::run, the roster projection, AdmissionState::push_for_test, BoundedRoomLedger::get). Step 7, the cognition tests that drove persona, moved to where both crates are visible (each asserts what it asserted before): - bound_card_activity_is_shared_by_perception_and_execution -> core test_env mind_integration/bound_card_activity.rs; rehome_requires_a_readable_local_assignment -> mind_integration/remote_lane.rs. RecordingExecutor and ActThenSpeak join act_observe::test_support (test-fixtures) so they can. - starved_priority_input_survives_until_dispatch_without_replaying_actions -> persona::wake_backlog (PendingInput custody is persona's); she_is_told_when_her_hands_move_and_only_then -> persona::card_hands. - handoff's renewal test kept its cognition half; the failed-bind half is persona's a_failed_bind_keeps_the_bound_card_in_the_handoff (service_loop tests). Wiring: workspace member; source-hygiene MODULE_CRATES (core's test_env guards read it); the warnings ratchet's counted targets; core's test-fixtures dev-dep; CI: TESTED_CRATES, the lib-test step's crate list, and the selector test (18/18). Tests: cognition 1449, mind 802 (2251 = 2252 - 2 moved to core + 1 split out), experience 92, memory 51, genome 380, kernel 1252, core test_env 121 (+2 moved): 4147 = 4146 + 1. Check: 0 errors, warnings 103 (= base). Ratchets: cognition_names_persona 109 -> 0, modules_in_cycles 28 -> 26, the rest unchanged. Incremental (touch, M5, serving down): cognition edit -> check cognition 2.5 s, -> check mind 4.3 s; persona edit -> check mind 1.9 s; cognition edit -> check core 79 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ai_help: SUGGESTION_WINDOW declares itself a count, not a context size Canary 77d61c7 (#5362) fails core's context-budget source guard on its own: the new `SUGGESTION_WINDOW: usize = 6` matches the guard's name filter, but it counts command names a lookup shows, not tokens of a window. The guard's documented marker (`context-budget-exempt:`) says so; core test_env 120 + 1 failed -> 121 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[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.
Steps 1-3 of the plan for splitting the mind into crates: experience, memory, cognition, persona, then a thin mind facade. Joel: "we need to break up the crates for the mind." Memory is Cormac's #5338.
RoleIdmoves toexperience::role(18 files migrated).bench_titlemoves torecipe::bench_title(13 files).citizen_pathmoves to the kernel'sidentitymodule (12 files).continuum-experienceMODULE_CRATESand the warnings ratchet.rag_budget,text_analysis,prompt_assembly,redaction,health_ledger,presence_glyph,mind_events,room_directoryandfocus. Their statics move with them.cognition::faculty_idsholds the 11 source ids cognition matches on.cognition::capture::fixture_dir.persona::mission_sourceheld only an id and is deleted.844 lines added and 702 removed, across 232 files and 55 renames.
Measured
M5, 2026-10-24, serving down, base a1558f3.
Tests: 4,341 total, the same as the base.
The mind's 98 fewer tests are experience's 92 plus citizen_path's 6, which now run in the kernel.
Check:
cargo check -p continuum-core --features metal,accelerate --tests --bins: 0 errors.Warnings: 14 on base, 14 on head.
Ratchets: unchanged.
Incremental check after touching one file: experience 0.6 s; the mind on top of an experience change, 4.6 s.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo