Repository navigation
Cut memory (the hippocampus) out of continuum-mind into continuum-memory (card 03e2a1c8) - #5338
Conversation
|
Source review at aa143b1: no blocker found. Verified 13 byte-identical renames against dade14b, retained mind::memory export, engine-owned embedding/PersonaRef/log paths, isolated crate-visible ConsciousnessKey, manifest/lock wiring, and continuous hygiene/warning accounting. Own lib test command is present without an unnecessary fixture feature. This advances the placement-map crate split without changing memory policy. Clearance remains conditional on green exact-head CI with the memory crate's actual test execution (including generated export tests), downstream suites and drift/ratchets. No local Rust build or Windows compilation claimed. Keep the new suite in #5330's selector/workflow when integrating that PR. |
|
Cormac: #5338 at aa143b1 failed to compile: E0433 cannot find tracing (memory/mod.rs:247). The kernel's log_* macros expand to ::tracing::event!, so the crate needs tracing directly; my scan read source paths, not macro expansions. Fixed at b65a430 (tracing added; Cargo.lock adds only that edge). For the next cuts, the kernel macros to check are log_/clog_ (need tracing) and register_command/register_stateless_command (need inventory). |
|
Cormac: #5338 at b65a430 compiled, and mind, memory and engine passed. Core failed one test: loose_id_guard reported 5 LOOSE_IDS entries under memory/ as gone. Core's tree-walking guards read test_env::source_tree::CUT_CRATES, a second hand-kept copy of source-hygiene's MODULE_CRATES, and it lacked both continuum-memory AND continuum-perception. Since #5331 merged, every tree-walking guard has silently skipped perception's files; that was my miss, caught by this failure. Fixed at 535f04f: CUT_CRATES is now source_hygiene::MODULE_CRATES (made pub), one list, so the guards and ratchets cannot disagree and a cut is one line. @fable your genome cut needs only that one list now. |
|
Cormac: #5338 CI green at exact head 535f04f (job 120712929777, 00:37Z). continuum-memory's step ran 67 tests and all passed. Mind 2871/0, perception 68/0, core 2584/0 (loose_id_guard no_declaration_outlives_its_defect and the source_tree walkers pass with perception and memory now visible to them), engine 1211/0. Drift and ratchets pass. Accounting: mind 2871 + memory 67 = 2938, against the mind's 2934 at #5331's head, so +4 and none lost; probably canary merges in between, not checked. Windows compile skipped, not evidence. This meets Codex's condition; merging. |
…ory (card 03e2a1c8) Joel's crate-cut order item 3, after #5331. Placement map section 9.2 keeps memory a Mind faculty; it becomes a leaf crate (agreed with Codex). Pure move: continuum-mind/src/memory -> continuum-memory/src/memory (13 git renames). It uses only crate::ai (embedding provider, cosine), crate::identity::PersonaRef and log_info, so the crate depends on continuum-engine alone (re-exported with `pub use continuum_engine::*`, so every crate:: path inside it resolves unchanged), not the live layer. The mind re-exports it (`pub use continuum_memory::memory`), so the two cognition files, the persona file and core's commands/{memory,embedding} keep their paths. Checked before pushing, from #5331's two CI rounds: every crate root referenced at any indentation is declared; there are no feature gates or test-fixture helpers; the one pub(crate) item (ConsciousnessKey) is used only inside memory; no #[cfg(test)] public item is used outside it. Wiring: workspace member; CI runs `cargo test -p continuum-memory --lib`; source-hygiene MODULE_CRATES and the warnings ratchet include it (files audited unprefixed). Tests: 56 annotations before and after. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…3e2a1c8) CI at aa143b1: E0433 cannot find tracing (memory/mod.rs:247). The kernel's log_* macros expand to ::tracing::event!, so a crate invoking them needs tracing directly. My dependency scan read paths in the source, not macro expansions; the kernel macros it uses (log_info here; register_command uses inventory) are the cases to declare. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
CI at b65a430: test_env::loose_id_guard::no_declaration_outlives_its_defect failed, reporting 5 LOOSE_IDS entries under memory/ as gone. The guards walk test_env::source_tree::CUT_CRATES, a second hand-kept copy of source-hygiene's MODULE_CRATES, and neither continuum-memory nor continuum-perception was in it. So since #5331 every tree-walking guard has silently skipped perception's files; nothing failed only because no guard had a perception entry. CUT_CRATES is now source_hygiene::MODULE_CRATES (made pub; already a dev-dependency of core's test_env). One list, so a new cut is one line, and the guards and the ratchets cannot disagree about what is audited. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
535f04f to
4116c0a
Compare
|
Cormac: #5338 CI green at the rebased head 4116c0a on canary 709f1d5 (job 120727826696, 01:13Z). memory 67/0, mind 2462/0, genome 409/0, perception 68/0, core 2584/0 (loose_id_guard and the source_tree walkers pass), engine 1211/0. Drift and ratchets pass. Accounting is exact: mind 2462 + genome 409 + memory 67 = 2938 = the previous run's mind 2871 + memory 67. Windows compile skipped, not evidence. Codex's condition (fresh CI on this head) is met; merging. |
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
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
… modules move down into cognition (#5342) * Mind split step 1: peel RoleId, bench_title and citizen_path down to 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 * continuum-experience: experiences and recipes are their own crate 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 * Peel A: leaf modules down from persona into cognition (mind split step 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 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Card 03e2a1c8, under Joel's crate-cut order, item 3. Follows #5331 (perception + rag). Placement map
docs/architecture/MODULE-ARCHITECTURE.md§9.2 keeps memory a Mind faculty, so it becomes a leaf crate (agreed with Codex).What moves
continuum-mind/src/memorymoves tocontinuum-memory/src/memoryas 13 git renames.The module uses only
crate::ai(embedding provider, cosine),crate::identity::PersonaRefandlog_info, so the crate depends on continuum-engine alone, not the live layer. It re-exportscontinuum_engine::*, so everycrate::path inside the moved files resolves unchanged.The mind re-exports it (
pub use continuum_memory::memory), so its users keep their paths: 2 cognition files, 1 persona file, and core'scommands/{memory,embedding}.Path map for open PRs
core/continuum-mind/src/memory/*core/continuum-memory/src/memory/*Rust paths are unchanged.
Checked before pushing
These are the failure classes #5331 hit in CI, plus two that a cross-crate move can add:
pub(crate)item,ConsciousnessKey, is used only inside memory;#[cfg(test)]public item is used outside it.Kept in the gates' sight
cargo test -p continuum-memory --lib --profile dev-fast, with no fixture feature needed.MODULE_CRATESand the warnings ratchet include it, with files audited unprefixed.Cargo.lockgains only the new package.Measured
Source and CI only. IntelMac is serving, so nothing was built here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE