Repository navigation
Unified Modular Runtime: Consolidate workers into continuum-core + Rust ORM - #265
Conversation
Architecture: - StorageAdapter trait for database-agnostic operations - SqliteAdapter implementation using worker thread (rusqlite not Send+Sync) - DataModule ServiceModule with adapter cache keyed by dbPath - ALL commands require dbPath parameter - NO defaults, NO env vars, NO fallbacks - TypeScript owns path configuration, passes to Rust per-request Files: - orm/types.rs: DataRecord, StorageResult, CollectionSchema (ts-rs generated) - orm/query.rs: QueryOperator, StorageQuery, QueryBuilder - orm/adapter.rs: StorageAdapter trait, AdapterConfig, naming utils - orm/sqlite.rs: Full SQLite implementation with worker thread pattern - modules/data.rs: data/* command handlers with adapter cache Tests: 29 ORM + 2 DataModule = 31 tests passing BREAKING: TypeScript must now pass dbPath in all data/* commands
- RustVectorSearchClient: dbPath now required parameter (no defaultDbPath) - SqliteStorageAdapter: requires filename OR basePath+databaseName - RustStorageAdapter: stores dbPath as class property, passes to managers - VectorSearchAdapterBase: dbPath required in constructor - SqliteVectorSearchManager: dbPath required TypeScript adapters verified working. Rust ORM module exists but is NOT wired into main data flow yet - that's a separate task.
…fety Phase 0 of Rust ORM migration - creates unified entry point for all data ops: - ORM.ts: Unified data access layer wrapping DataDaemon - ORMConfig.ts: Feature flags for per-collection backend routing - ORMLogger.ts: Operation logging and metrics - Migrated 26 command files from DataDaemon.* to ORM.* - Migrated 6 daemon files from DataDaemon.* to ORM.* Rust fixes: - Added unsafe to 11 FFI functions that dereference raw pointers - Fixed generator to handle duplicate type exports across subdirs - Created connection_manager.rs for pool-per-database design - Created vector.rs for VectorSearchAdapter trait No fallbacks policy: backend selection is deterministic, no silent bypasses.
AIs were failing with "Unknown adapter type: default/ai/adapter" because the schema didn't list valid options. Now description includes: - WARNING that most commands use default DB automatically - Suggests data/list or data/read instead - Lists valid adapters: sqlite, json, vector, graph, rust - Example usage
- CallerDetector.ts: DataDaemon.read → ORM.read - PersonaUser.ts: DataDaemon.query/update/store → ORM.* - PersonaAutonomousLoop.ts: DataDaemon.query/store/update/read → ORM.* - PersonaTaskExecutor.ts: DataDaemon.query/store/update → ORM.* 111 violations remaining in system/ (non-test files)
Migrated 17 additional files from DataDaemon → ORM: - Core services: EmbeddingService - RAG builders: ChatRAGBuilder, CodebaseRAGBuilder - RAG sources: ConversationHistorySource, PersonaIdentitySource, SocialMediaRAGSource - User modules: PersonaMessageEvaluator, PersonaResponseGenerator, SelfTaskGenerator, TrainingBuffer, PersonaMemory - User types: BaseUser, HumanUser, AgentUser, UserIdentityResolver - Storage: SQLiteStateBackend - Genome: TrainingDatasetBuilder Files with jtagContext keep DataDaemon import for event context. All data operations now route through ORM layer.
- Create ORMRustClient.ts: IPC client for data/* commands to Rust DataModule - Remove SqlNamingConverter from ORM layer (Rust SqliteAdapter handles naming) - Add proper TypeScript types: RustStorageResult, RustDataRecord, RustIPCResponse - Add filter format conversion: TypeScript $eq/$gt → Rust eq/gt - Update ORMConfig: All collections configured for Rust, FORCE_TYPESCRIPT=true The ORM layer is now database-agnostic. Rust SqliteAdapter handles all snake_case/camelCase conversion internally. Store/update operations still failing when Rust enabled - needs further debugging.
- Generator extracts collection names from entities → typed COLLECTIONS constant - ORM methods now typed with CollectionName, not string (compile-time safety) - Runtime validation in data commands for user input before casting - Fixed all ts-rs warnings by removing skip_serializing_if (incompatible with TS) - Removed dead code (extract_db_path), added allow for planned priority_queue - PersonaRAGContextEntity wired into collection registry - Integration tests for Rust ORM backend
- Remove limit: -1 in AICostServerCommand (undefined = no limit for Rust ORM) - Remove duplicate pricing warning from adapter (PricingManager logs it) - Clean data.rs: remove 12+ debug eprintln per query, keep error logging - Clean runtime.rs: remove 8 debug eprintln per command route - Clean sqlite.rs: remove 6 debug eprintln per create operation Net: -42 lines of debug spam that was flooding logs
- ORM CRUD methods now route directly to Rust (no useRust checks) - Removed ~50 lines of dead console.log debug statements - Removed shouldShadow import (unused) - Updated header comments to reflect Rust-first architecture - Updated RUST-ORM-ARCHITECTURE.md with Phase 5 progress
- Add Events.emit() with proper jtagContext to ORM.store/update/remove - Events now route to browser for real-time UI updates - Data commands use ORM for Rust-backed operations
…ugh Rust - All maintenance operations now use ORMRustClient -> continuum-core DataModule - Added listCollections, clear, clearAll, truncate to ORMLogger operation types - Updated architecture doc with Phase 5 progress and Phase 6 performance issues - Verified: AIs responsive (7-8s), ORM routing confirmed via server logs
- 1.7GB database (143k ai_generations, 96k memories, 68k cognition) - Queries hitting 140-225ms on indexed tables - All personas share single ORMRustClient socket - Priority: timing instrumentation, archiving, compound indexes
- Log parse/adapter/query breakdown for operations >50ms - Helps identify whether slowness is in Rust DataModule or IPC layer - ORM shows 100ms+ but Rust parse is 0ms → IPC likely bottleneck
- Migrate logger worker to LoggerModule in continuum-core
- Migrate search worker to SearchModule with full command routing
- Add TypeScript wrappers for search/{list,execute,vector,params}
- Add RustCoreIPCClient search methods for IPC routing
- Disable standalone search worker in workers-config.json
- Fix TTS panic: use synthesize_speech_async() in VoiceModule
(avoids nested tokio runtime when called from async context)
- Remove timeout from route_command_sync for streaming voice
- Various clippy fixes across Rust modules
EmbeddingModule (absorbs standalone embedding worker):
- Created modules/embedding.rs (331 lines) implementing ServiceModule
- Commands: embedding/generate, embedding/model/{load,list,info,unload}
- Uses fastembed ONNX (~5ms vs 80ms Ollama)
- Binary protocol for f32 embedding vectors
- Disabled embedding worker in workers-config.json
Clippy fixes:
- Removed unused HashMap import in memory/mod.rs
- Fixed unused loop variables in orchestrator_tests.rs
- Prefixed unused vars with _ in rag.rs, connection_manager.rs
- Added #[allow(dead_code)] for test-only code
- Removed unused imports in call_server_routing_test.rs
SCSS deprecation fix:
- Updated live-widget.scss: darken() -> color.adjust($lightness: -N%)
Build status: 495 Rust tests pass, TypeScript clean, 25 SCSS files compile
The EmbeddingModule was absorbed into continuum-core, but the TypeScript
client was still using the old newline-delimited protocol. continuum-core
uses length-prefixed binary framing:
- JSON: [4 bytes u32 BE length][JSON payload bytes]
- Binary: [4 bytes u32 BE total_length][JSON header][\0][raw binary]
Changes:
- Socket path: /tmp/jtag-embedding.sock → /tmp/continuum-core.sock
- Ping: 'ping' command → 'health-check' command
- Response format: {status, data} → {success, result}
- Frame parsing: newline-delimited → length-prefixed with processFrames()
- Binary protocol: newline separator → null byte separator
Performance verified: 7ms per embedding (Rust/fastembed speed).
- PersonaResponseGenerator enriches context with userId for identity detection - Decision commands (rank, vote, propose, create) use context.userId first - Removed redundant params: voterId, proposerId, WithCaller interfaces - Other commands (dm, live/join, live/leave, ai/sleep, canvas/stroke/add) updated - SkillProposeServerCommand passes context instead of proposerId - PersonaToolExecutor: userId injection only for workspace-scoped commands - Documentation: docs/PERSONA-COGNITION-IDENTITY-REFACTORING.md
- Add vector/search command to DataModule with in-memory caching - VectorCache stores vectors per (dbPath, collection) for instant subsequent searches - Parallel cosine similarity using rayon with 4-way SIMD-style unrolling - Update RustVectorSearchClient to use continuum-core socket - Remove handle-based API (DataModule takes dbPath directly) - Update VectorSearchAdapterBase error message for continuum-core Note: data-daemon worker remains enabled due to DataDaemonServer dependency. RustWorkerStorageAdapter.ts identified as dead code (never instantiated).
- Remove connectRustDataWorker() from DataDaemonServer (dead code) - RustWorkerStorageAdapter was never used - ORM uses ORMRustClient - Disable data-daemon in workers-config.json - Vector search and all CRUD now route through continuum-core DataModule This completes the data layer migration to the unified runtime.
… in continuum-core
…ence (7,511 lines)
- LoggerDaemon.ts: update comment to reference continuum-core.sock - generate-logger-daemon.ts: update instructions for Phase 4a architecture - logger-daemon-spec.ts: update lifecycle socket paths - test-ffi.ts: use continuum-core.sock for initialization - test-voice-loop.ts: update server start instructions All logger references now point to the unified runtime.
LoggerModule was absorbed into continuum-core in Phase 4a, but main.rs still required an external logger socket argument. This fix: - Makes logger socket argument optional (only IPC socket required) - Updates main.rs doc comments to reflect unified runtime modules - Updates shared logger_client.rs to reference continuum-core socket - Updates logger_integration.rs test to use correct socket path - Updates PERFORMANCE.md to note internal logger The server now starts correctly with just one argument: continuum-core-server /tmp/continuum-core.sock
- ORM.vectorSearch now calls Rust vector/search via ORMRustClient - VectorSearchServerCommand updated to use ORM instead of DataDaemon - Rust vector search has in-memory caching and rayon parallel cosine similarity Dead code deleted (1,316 lines): - server/JsonFileStorageAdapter.ts (1,061 lines) - no imports - server/StorageAdapterFactory.ts (158 lines) - replaced by DefaultStorageAdapterFactory - server/test-sqlite.ts (97 lines) - standalone test file, no imports
- Move ORM.ts from shared/ to server/ (proper separation) - Add dbPath parameter to all ORM and ORMRustClient methods - Add DatabaseHandleRegistry.getDbPath() for handle → path resolution - Update data commands (list, create, update, vector-search) to use ORM - Add dbPath to VectorSearchOptions for per-persona database support - Update 60+ files to import from server/ORM instead of shared/ORM All CRUD operations now route: Command → ORM → ORMRustClient → Rust DataModule
- Route ORM.generateEmbedding() → RustEmbeddingClient → continuum-core - Uses fastembed (ONNX-based) for ~5ms embeddings vs ~80ms Ollama HTTP - Add generateEmbedding, indexVector, backfillVectors to ORMOperation type - Initialize metrics for new vector operations in ORMLogger Remaining TypeScript adapter usage: - indexVector, backfillVectors (need Rust implementation) - getVectorIndexStats, getVectorSearchCapabilities - Paginated queries (cursor management)
Routes additional ORM vector operations to Rust: - indexVector: stores embedding in record via vector/index command - getVectorIndexStats: retrieves vector stats via vector/stats command - invalidateVectorCache: clears Rust vector cache via vector/invalidate-cache Adds comprehensive Rust tests: - test_vector_index_and_stats: create, index, verify stats - test_vector_search_basic: 3-record search, verify similarity - test_vector_cache_invalidation: cache population and invalidation - test_cosine_similarity: unit test for similarity function All 6 Rust data module tests pass. TypeScript compilation verified. backfillVectors remains in TypeScript pending cross-module coordination.
- Add data/query-open, data/query-next, data/query-close commands to Rust - Server-side cursor management via DashMap (lock-free reads) - Wrap responses in StorageResult format for TypeScript compatibility - Add vector/stats response wrapping for consistent API - Fix all Rust tests for new response structure - Eliminate IPC overhead per page - state is maintained Rust-side Tests pass, deployed and verified working.
- Add vector/backfill command to Rust DataModule - Add public generate_embedding() and generate_embeddings_batch() to EmbeddingModule - Cross-module call: DataModule uses EmbeddingModule for batch embeddings - Process records in configurable batch sizes for memory efficiency - Add test_backfill_vectors test (passes with all 8 data module tests) - Update ORMRustClient and ORM.ts to route through Rust All vector operations now fully in Rust.
- Add IncludeSpec interface (JoinSpec is now an alias) - Add StorageQueryWithInclude interface with includes/joins properties - StorageQueryWithJoin remains as alias for backwards compatibility - Terminology aligns with Prisma/GraphQL (include vs SQL-specific join) Full property rename (joins→includes) deferred to SqliteStorageAdapter deletion.
DatabaseHandleRegistry no longer creates TypeScript SqliteStorageAdapter instances. It now acts as a handle → path mapping service only. Changes: - Remove adapter storage (Map<DbHandle, DataStorageAdapter>) - Convert to path-only registry that maps handles to database paths - Add typed DB_HANDLES constants to prevent magic strings - Deprecate getAdapter() - returns null with warning - Fix DataDaemon import: getRegisteredEntity from EntityRegistry - Remove unused getAdapter() call from ArchiveDaemonServer Architecture: - All data I/O now routes through ORM → ORMRustClient → Rust DataModule - DatabaseHandleRegistry provides getDbPath() for handle → path resolution - Database paths still come from ServerConfig (single source of truth) - SqliteStorageAdapter still exists but only used for schema initialization
Bug: When ORM.update() emitted data:*:updated events, it was sending
only the partial update data (e.g., {id, modelConfig: {provider: 'candle'}})
instead of the complete entity. This caused the browser UI to replace
full user objects with partial stubs, showing "Unknown User".
Fix: ORM.update() now fetches the full entity after the update completes
and emits that complete data in the event. This ensures the browser
receives all fields (displayName, userType, etc.) when processing updates.
Also adds suppressEvents parameter for future use in bulk operations
where event emission would be undesirable.
Now that all data operations go through ORM → ORMRustClient → Rust DataModule: Deleted managers/ (4 files): - SqliteQueryExecutor.ts (677 lines) - SqliteSchemaManager.ts (469 lines) - SqliteWriteManager.ts (432 lines) - SqliteVectorSearchManager.ts (315 lines) Deleted SQLite support files: - SqliteStorageAdapter.ts (1,043 lines) - SqlStorageAdapterBase.ts (210 lines) - SqliteQueryBuilder.ts (238 lines) - SqliteTransactionManager.ts (69 lines) - SqliteRawExecutor.ts (71 lines) - SqlExecutor.ts (27 lines) - SqlNamingConverter.ts (34 lines) Deleted tests importing deleted files (4 files): - database-backend-agnostic.test.ts (777 lines) - database-sqlite-integration.test.ts (630 lines) - jtag-sqlite.test.ts (260 lines) - sqlite-orm.test.ts (458 lines) Updated: - DefaultStorageAdapterFactory: 'sqlite' type returns MemoryStorageAdapter (no-op) - VectorSearchAdapterBase: pass collection directly to Rust (no SqlNamingConverter)
Dead files removed: - StorageMigrationService.ts - not imported anywhere - QueryBuilder.ts (daemons/data-daemon) - replaced by Rust ORM - QueryBuilder.ts (system/data/query) - not imported anywhere - query-builder.test.ts, querybuilder-debug.test.ts Outdated docs removed: - SQL-ADAPTER-DEBUGGING-RECOVERY-PLAN.md - SQL-ADAPTER-REFACTOR-PLAN.md - VECTOR-SEARCH-ARCHITECTURE.md (referenced deleted SqliteStorageAdapter)
There was a problem hiding this comment.
Pull request overview
Consolidates multiple Node/Rust workers into the unified continuum-core runtime and routes TypeScript data operations through a Rust-backed ORM, removing large amounts of legacy adapter/manager code and updating commands/docs accordingly.
Changes:
- Consolidated worker IPC targets to
/tmp/continuum-core.sockand updated daemon/command wiring. - Migrated data access callsites from
DataDaemontoORM, plus added ORM config + logging utilities. - Added generators/docs for collection constants + Rust ORM/search modules; removed legacy SQLite adapter/manager infrastructure.
Reviewed changes
Copilot reviewed 124 out of 349 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| src/debug/jtag/generator/specs/logger-daemon-spec.ts | Updates logger daemon lifecycle text to new unified socket/module. |
| src/debug/jtag/generator/generate-rust-bindings.ts | Removes data-daemon-worker bindings and improves master barrel export generation. |
| src/debug/jtag/generator/generate-logger-daemon.ts | Updates generator output hints for continuum-core socket/module. |
| src/debug/jtag/generator/generate-collection-constants.ts | New generator for type-safe collection constants derived from entity definitions. |
| src/debug/jtag/generated-command-schemas.json | Regenerates schemas and adds new search commands + updates descriptions. |
| src/debug/jtag/docs/plans/RUST-WORKER-ARCHITECTURE.md | Marks older worker architecture doc as evolved with continuum-core consolidation. |
| src/debug/jtag/docs/architecture/RUST-WORKER-PATH-ANALYSIS.md | Marks analysis as historical and updates socket/command prefix info. |
| src/debug/jtag/docs/architecture/RUST-WORKER-IPC-PROTOCOL.md | Notes workers are consolidated while protocol remains. |
| src/debug/jtag/docs/RUST-ORM-ARCHITECTURE.md | New doc describing Rust-first ORM architecture and migration. |
| src/debug/jtag/docs/PERSONA-COGNITION-IDENTITY-REFACTORING.md | New doc describing identity flow standardization via context.userId. |
| src/debug/jtag/docs/LOGGER-DAEMON-VERIFICATION.md | Marks logger verification doc as historical; updates to continuum-core. |
| src/debug/jtag/docs/ADAPTER-ARCHITECTURE.md | Updates data adapater architecture to ORM → Rust DataModule. |
| src/debug/jtag/daemons/user-daemon/server/UserDaemonServer.ts | Migrates DataDaemon CRUD operations to ORM. |
| src/debug/jtag/daemons/training-daemon/server/TrainingDaemonServer.ts | Migrates storage calls to ORM and updates comments. |
| src/debug/jtag/daemons/system-daemon/shared/SystemDaemon.ts | Migrates config persistence/query to ORM. |
| src/debug/jtag/daemons/session-daemon/server/SessionStateHelper.ts | Migrates user state read to ORM. |
| src/debug/jtag/daemons/session-daemon/server/SessionDaemonServer.ts | Migrates user queries/reads to ORM. |
| src/debug/jtag/daemons/room-membership-daemon/server/RoomMembershipDaemonServer.ts | Migrates membership reconciliation reads/updates to ORM. |
| src/debug/jtag/daemons/logger-daemon/shared/LoggerDaemon.ts | Updates lifecycle comment to continuum-core LoggerModule/socket. |
| src/debug/jtag/daemons/logger-daemon/server/LoggerDaemonServer.ts | Updates socket path to /tmp/continuum-core.sock. |
| src/debug/jtag/daemons/logger-daemon/README.md | Updates logger daemon README to unified runtime + log command prefix. |
| src/debug/jtag/daemons/data-daemon/shared/VectorSearchTypes.ts | Adds dbPath and deprecates dbHandle for vector search options. |
| src/debug/jtag/daemons/data-daemon/shared/SqlNamingConverter.ts | Deletes TS-side SQL naming converter (now handled in Rust). |
| src/debug/jtag/daemons/data-daemon/shared/ORMLogger.ts | New in-memory metrics logging for ORM operations/migration. |
| src/debug/jtag/daemons/data-daemon/shared/ORMConfig.ts | New deterministic backend selection config (typescript/rust/shadow). |
| src/debug/jtag/daemons/data-daemon/shared/DataStorageAdapter.ts | Introduces storage-agnostic “include” terminology + backwards compatible types. |
| src/debug/jtag/daemons/data-daemon/shared/DataDaemon.ts | Switches description-field lookup from SqliteStorageAdapter to EntityRegistry. |
| src/debug/jtag/daemons/data-daemon/server/test-sqlite.ts | Removes standalone sqlite3 debugging script. |
| src/debug/jtag/daemons/data-daemon/server/managers/SqliteWriteManager.ts | Removes TS-side SQLite write manager. |
| src/debug/jtag/daemons/data-daemon/server/managers/SqliteVectorSearchManager.ts | Removes TS-side SQLite vector search manager. |
| src/debug/jtag/daemons/data-daemon/server/VectorSearchAdapterBase.ts | Routes vector search to Rust without TS table-name conversion; enforces dbPath. |
| src/debug/jtag/daemons/data-daemon/server/StorageMigrationService.ts | Removes legacy storage migration service. |
| src/debug/jtag/daemons/data-daemon/server/StorageAdapterFactory.ts | Removes old adapter factory implementation. |
| src/debug/jtag/daemons/data-daemon/server/SqliteTransactionManager.ts | Removes TS-side sqlite transaction manager. |
| src/debug/jtag/daemons/data-daemon/server/SqliteRawExecutor.ts | Removes TS-side sqlite executor. |
| src/debug/jtag/daemons/data-daemon/server/SqliteQueryBuilder.ts | Removes TS-side SQL query builder. |
| src/debug/jtag/daemons/data-daemon/server/SqlStorageAdapterBase.ts | Removes SQL adapter base class. |
| src/debug/jtag/daemons/data-daemon/server/SqlExecutor.ts | Removes TS SQL executor interface. |
| src/debug/jtag/daemons/data-daemon/server/SQL-ADAPTER-DEBUGGING-RECOVERY-PLAN.md | Removes debugging plan doc for now-deleted adapter refactor. |
| src/debug/jtag/daemons/data-daemon/server/RustSqliteExecutor.ts | Removes old Rust SQL bridge (superseded by ORM → continuum-core). |
| src/debug/jtag/daemons/data-daemon/server/DefaultStorageAdapterFactory.ts | Makes sqlite config return a no-op Memory adapter since ORM owns storage. |
| src/debug/jtag/daemons/data-daemon/server/DataDaemonServer.ts | Removes Rust data-worker connection logic (dead code) and documents new flow. |
| src/debug/jtag/daemons/console-daemon/server/ConsoleDaemonServer.ts | Updates logger socket path to continuum-core. |
| src/debug/jtag/daemons/comms-test-daemon/shared/CommsTestDaemon.ts | Deletes throwaway comms test daemon. |
| src/debug/jtag/daemons/comms-test-daemon/server/CommsTestDaemonServer.ts | Deletes throwaway comms test daemon server impl. |
| src/debug/jtag/daemons/archive-daemon/server/ArchiveDaemonServer.ts | Removes unused adapter lookup; clarifies archive handle alias behavior. |
| src/debug/jtag/daemons/ai-provider-daemon/shared/adapters/BaseOpenAICompatibleAdapter.ts | Removes duplicate warning log (delegated to PricingManager). |
| src/debug/jtag/commands/workspace/task/list/server/TaskListServerCommand.ts | Migrates task query to ORM. |
| src/debug/jtag/commands/workspace/task/create/server/TaskCreateServerCommand.ts | Migrates assignee validation + task store to ORM. |
| src/debug/jtag/commands/workspace/task/complete/server/TaskCompleteServerCommand.ts | Migrates task fetch/update to ORM. |
| src/debug/jtag/commands/workspace/git/shared/resolveWorkspacePath.ts | Migrates user read to ORM. |
| src/debug/jtag/commands/skill/validate/server/SkillValidateServerCommand.ts | Migrates skill read/update to ORM. |
| src/debug/jtag/commands/skill/propose/server/SkillProposeServerCommand.ts | Migrates skill read/update to ORM and switches proposer identity to context-driven. |
| src/debug/jtag/commands/skill/list/server/SkillListServerCommand.ts | Migrates skill list query to ORM. |
| src/debug/jtag/commands/skill/generate/server/SkillGenerateServerCommand.ts | Migrates skill read/update to ORM. |
| src/debug/jtag/commands/skill/activate/server/SkillActivateServerCommand.ts | Migrates governance read + skill updates to ORM. |
| src/debug/jtag/commands/session/get-user/server/SessionGetUserServerCommand.ts | Migrates user reads to ORM (supports PersonaUser direct userId). |
| src/debug/jtag/commands/search/vector/shared/SearchVectorTypes.ts | New types for Rust SearchModule vector similarity search. |
| src/debug/jtag/commands/search/vector/server/SearchVectorServerCommand.ts | New server command routing vector similarity search to continuum-core IPC. |
| src/debug/jtag/commands/search/params/shared/SearchParamsTypes.ts | New types for querying algorithm params from Rust SearchModule. |
| src/debug/jtag/commands/search/params/server/SearchParamsServerCommand.ts | New server command routing search params to continuum-core IPC. |
| src/debug/jtag/commands/search/list/shared/SearchListTypes.ts | New types for listing search algorithms. |
| src/debug/jtag/commands/search/list/server/SearchListServerCommand.ts | New server command routing search list to continuum-core IPC. |
| src/debug/jtag/commands/search/execute/shared/SearchExecuteTypes.ts | New types for executing text search via Rust SearchModule. |
| src/debug/jtag/commands/search/execute/server/SearchExecuteServerCommand.ts | New server command routing text search to continuum-core IPC. |
| src/debug/jtag/commands/rag/load/server/RAGLoadServerCommand.ts | Migrates message/room queries to ORM. |
| src/debug/jtag/commands/development/timing/shared/TimingTypes.ts | Updates timing docs to note data-daemon consolidation into continuum-core. |
| src/debug/jtag/commands/development/timing/server/TimingServerCommand.ts | Updates docs to reflect timing file may no longer exist. |
| src/debug/jtag/commands/data/vector-search/server/VectorSearchServerCommand.ts | Simplifies vector search by routing all requests through ORM (dbHandle handled internally). |
| src/debug/jtag/commands/data/update/shared/DataUpdateTypes.ts | Adds suppressEvents flag for ORM-backed updates. |
| src/debug/jtag/commands/data/update/server/DataUpdateServerCommand.ts | Routes updates through ORM; resolves dbHandle→dbPath; adds suppressEvents. |
| src/debug/jtag/commands/data/truncate/server/DataTruncateServerCommand.ts | Validates collection at runtime and routes truncate through ORM. |
| src/debug/jtag/commands/data/shared/BaseDataTypes.ts | Adds collection usage docs for CLI ergonomics. |
| src/debug/jtag/commands/data/read/shared/DataReadTypes.ts | Adds docs/examples for read command. |
| src/debug/jtag/commands/data/read/server/DataReadServerCommand.ts | Validates collection at runtime; routes read through ORM; uses generated constants. |
| src/debug/jtag/commands/data/query-open/server/QueryOpenServerCommand.ts | Switches paginated query open to ORM. |
| src/debug/jtag/commands/data/query-next/server/QueryNextServerCommand.ts | Switches paginated query next-page to ORM. |
| src/debug/jtag/commands/data/query-close/server/QueryCloseServerCommand.ts | Switches paginated query close to ORM. |
| src/debug/jtag/commands/data/open/shared/DataOpenTypes.ts | Expands docs/warnings for advanced multi-db handle usage. |
| src/debug/jtag/commands/data/open/server/DataOpenServerCommand.ts | Improves adapter validation and error messages. |
| src/debug/jtag/commands/data/list/shared/DataListTypes.ts | Adds docs/examples for list command. |
| src/debug/jtag/commands/data/list/server/DataListServerCommand.ts | Routes list/count through ORM; improves missing-collection error. |
| src/debug/jtag/commands/data/generate-embedding/server/GenerateEmbeddingServerCommand.ts | Routes embedding generation through ORM. |
| src/debug/jtag/commands/data/delete/server/DataDeleteServerCommand.ts | Validates collection at runtime; routes delete/read through ORM. |
| src/debug/jtag/commands/data/create/server/DataCreateServerCommand.ts | Routes create through ORM; resolves dbHandle→dbPath. |
| src/debug/jtag/commands/data/clear/server/DataClearServerCommand.ts | Routes clear/listCollections through ORM. |
| src/debug/jtag/commands/data/backfill-vectors/server/BackfillVectorsServerCommand.ts | Routes backfill through ORM. |
| src/debug/jtag/commands/comms-test/shared/CommsTestTypes.ts | Deletes comms-test command types. |
| src/debug/jtag/commands/comms-test/server/CommsTestServerCommand.ts | Deletes comms-test server command. |
| src/debug/jtag/commands/comms-test/package.json | Removes comms-test command package definition. |
| src/debug/jtag/commands/collaboration/live/leave/server/LiveLeaveServerCommand.ts | Prioritizes identity via context.userId; clarifies fallback chain. |
| src/debug/jtag/commands/collaboration/live/join/server/LiveJoinServerCommand.ts | Prioritizes identity via context.userId; clarifies fallback chain. |
| src/debug/jtag/commands/collaboration/dm/server/DmServerCommand.ts | Prioritizes identity via context.userId; clarifies fallback chain. |
| src/debug/jtag/commands/collaboration/decision/vote/server/DecisionVoteServerCommand.ts | Removes injected caller params; uses context.userId and CLI fallback. |
| src/debug/jtag/commands/collaboration/decision/rank/shared/DecisionRankTypes.ts | Removes explicit voterId param in favor of context.userId. |
| src/debug/jtag/commands/collaboration/decision/rank/server/DecisionRankServerCommand.ts | Uses context.userId first; improves error + logging when missing. |
| src/debug/jtag/commands/collaboration/decision/propose/shared/DecisionProposeTypes.ts | Removes proposerId param in favor of context.userId. |
| src/debug/jtag/commands/collaboration/decision/propose/server/DecisionProposeServerCommand.ts | Uses context.userId first and explicitly sets chat senderId for notifications. |
| src/debug/jtag/commands/collaboration/decision/create/server/DecisionCreateServerCommand.ts | Uses context.userId first for caller identity; CLI fallback. |
| src/debug/jtag/commands/collaboration/chat/send/server/ChatSendServerCommand.ts | Uses context.userId first for caller identity; CLI fallback retained. |
| src/debug/jtag/commands/collaboration/chat/poll/server/ChatPollServerCommand.ts | Migrates message queries to ORM. |
| src/debug/jtag/commands/canvas/stroke/add/server/CanvasStrokeAddServerCommand.ts | Uses context.userId first to resolve creator; migrates store to ORM. |
| src/debug/jtag/commands/ai/thoughtstream/server/ThoughtStreamServerCommand.ts | Migrates reads/queries to ORM. |
| src/debug/jtag/commands/ai/status/server/AIStatusServerCommand.ts | Migrates persona query to ORM. |
| src/debug/jtag/commands/ai/sleep/server/AiSleepServerCommand.ts | Uses context.userId first for persona targeting; clarifies fallback chain. |
| src/debug/jtag/commands/ai/rag/inspect/server/RAGInspectServerCommand.ts | Migrates message read to ORM. |
| src/debug/jtag/commands/ai/generate/server/AIGenerateServerCommand.ts | Migrates persona query to ORM. |
| src/debug/jtag/commands/ai/cost/server/AICostServerCommand.ts | Removes limit: -1 pattern; relies on “no limit” semantics. |
| docs/COMMAND-SHORTHAND-DESIGN.md | Adds approved design doc for command shorthand aliases. |
| CLAUDE.md | Adds guidance to avoid manual cargo builds outside npm scripts. |
Files not reviewed (1)
- src/debug/jtag/examples/widget-ui/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
src/debug/jtag/generator/generate-rust-bindings.ts:113
parseExportedTypes()only detectsexport type ...declarations, butts-rscommonly emitsexport interface ...and may also emit enums. This will miss many exports, causing duplicate detection (and “already exported” skipping) to be unreliable; update the parser to also detectexport interface,export enum, etc., and ensure it correctly reflects the kinds of exports emitted intoshared/generated/*.
function parseExportedTypes(filePath: string): string[] {
const content = fs.readFileSync(filePath, 'utf-8');
const matches = content.matchAll(/export type\s+(\w+)/g);
return Array.from(matches, m => m[1]);
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const dirTypes: string[] = []; | ||
| for (const f of files) { | ||
| const types = parseExportedTypes(path.join(dirPath, f)); | ||
| dirTypes.push(...types); | ||
| } | ||
|
|
||
| // Check if this dir has any duplicates | ||
| const hasDuplicates = dirTypes.some(t => duplicateTypes.has(t)); | ||
|
|
||
| if (!hasDuplicates) { | ||
| // Safe to use wildcard | ||
| lines.push(`export * from './${dir}';`); | ||
| } else { | ||
| // Use explicit exports, skipping types that are duplicated | ||
| // Only export from the FIRST directory that had the type | ||
| lines.push(`// ${dir}: explicit exports (has duplicate types)`); | ||
| for (const typeName of dirTypes) { | ||
| if (duplicateTypes.has(typeName)) { | ||
| // Only export if this is the first directory | ||
| if (typeToDir.get(typeName) === dir) { | ||
| lines.push(`export type { ${typeName} } from './${dir}';`); | ||
| } | ||
| // else skip - it's exported from another dir | ||
| } else { | ||
| lines.push(`export type { ${typeName} } from './${dir}';`); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
dirTypes is collected as an array and may include duplicates (e.g., if the same type name is exported from multiple files in the same subdir, or the regex matches multiple times). That can generate duplicate export type { X } from './dir' lines in the master barrel, which can fail TypeScript builds. Consider deduping dirTypes (e.g., via a Set) and generating exports in a stable sorted order.
| export interface StorageQueryWithInclude extends StorageQuery { | ||
| /** Include specifications for related collections (alias for joins) */ | ||
| readonly includes?: readonly IncludeSpec[]; | ||
| /** Join specifications for related collections */ | ||
| readonly joins: readonly JoinSpec[]; | ||
| readonly joins: readonly IncludeSpec[]; | ||
| } |
There was a problem hiding this comment.
StorageQueryWithInclude introduces includes? (and the docs/examples reference queryWithInclude and includes), but still requires joins to be present. This makes the new “include” terminology awkward to adopt (callers must supply joins even if they only want includes). If includes is intended to replace joins, make joins optional (or remove it from the new interface and keep it only via the deprecated StorageQueryWithJoin alias).
| await this.rustClient.connect(); | ||
| const result = await this.rustClient.searchVector( | ||
| params.queryVector, | ||
| params.corpusVectors, | ||
| params.normalize ?? true, | ||
| params.threshold ?? 0.0 | ||
| ); | ||
| this.rustClient.disconnect(); | ||
|
|
||
| return transformPayload(payload, { | ||
| algorithm: 'cosine', | ||
| ...result, | ||
| }); |
There was a problem hiding this comment.
disconnect() won’t run if connect() or searchVector() throws, which can leak IPC connections/resources and cause cascading failures under repeated calls. Wrap the connect/execute sequence in a try { ... } finally { this.rustClient.disconnect(); } (and optionally only disconnect if connect succeeded).
| await this.rustClient.connect(); | |
| const result = await this.rustClient.searchVector( | |
| params.queryVector, | |
| params.corpusVectors, | |
| params.normalize ?? true, | |
| params.threshold ?? 0.0 | |
| ); | |
| this.rustClient.disconnect(); | |
| return transformPayload(payload, { | |
| algorithm: 'cosine', | |
| ...result, | |
| }); | |
| let connected = false; | |
| try { | |
| await this.rustClient.connect(); | |
| connected = true; | |
| const result = await this.rustClient.searchVector( | |
| params.queryVector, | |
| params.corpusVectors, | |
| params.normalize ?? true, | |
| params.threshold ?? 0.0 | |
| ); | |
| return transformPayload(payload, { | |
| algorithm: 'cosine', | |
| ...result, | |
| }); | |
| } finally { | |
| if (connected) { | |
| this.rustClient.disconnect(); | |
| } | |
| } |
| if (shouldLogThis) { | ||
| console.log(`[ORM] ${operation} ${collection}`, details ? JSON.stringify(details).slice(0, 200) : ''); | ||
| } |
There was a problem hiding this comment.
JSON.stringify(details) can throw (e.g., circular references), which would turn “logging” into an operation failure. Consider guarding stringification (try/catch) and falling back to a safe representation when serialization fails.
| const entity = await ORM.store( | ||
| collection as CollectionName, | ||
| params.data as BaseEntity, | ||
| params.suppressEvents ?? false, | ||
| dbPath | ||
| ); |
There was a problem hiding this comment.
This command casts user input (params.collection: string) to CollectionName without runtime validation, while other commands in this PR add isValidCollection() checks (e.g., data/read, data/delete, data/truncate). To keep behavior consistent and error messages clearer, validate params.collection with isValidCollection() before casting (and return a structured error result when invalid).
| const entity = await ORM.update( | ||
| collection as CollectionName, | ||
| params.id, | ||
| params.data as Partial<BaseEntity>, | ||
| params.incrementVersion ?? true, | ||
| dbPath, | ||
| params.suppressEvents ?? false | ||
| ); |
There was a problem hiding this comment.
Similar to data/create, data/update casts params.collection to CollectionName without validating it first. Since this is a user-facing CLI command and other commands now validate collection names, add an isValidCollection() check to return a clear “Invalid collection name” error instead of relying on a Rust-side failure.
| // Add each collection as a constant | ||
| for (const info of this.collections) { | ||
| lines.push(` /** From ${info.entityName} */`); | ||
| lines.push(` ${info.constantKey}: '${info.collectionName}' as const,`); | ||
| } |
There was a problem hiding this comment.
The generator does not detect collisions (two entities producing the same constantKey, or multiple entities mapping to the same collectionName). A collision will produce duplicate object keys in the generated COLLECTIONS, leading to confusing “last one wins” behavior or lint/TS issues. Consider tracking seen constantKey/collectionName values during extraction and failing the generation with a clear error when duplicates are found.
|
|
||
| if (result.success && result.items && result.items.length > 0) { | ||
| const user = result.items[0]; | ||
| console.log('🔧 DmServerCommand.resolveCallerIdentity USING CONTEXT userId', { userId: params.context.userId }); |
There was a problem hiding this comment.
This introduces a direct console.log in a server command. Since other parts of the codebase use structured loggers (this.log.*) and since this will be noisy in production, switch this to this.log.debug(...) (or remove once verified) to keep output consistent and controllable via log levels.
| console.log('🔧 DmServerCommand.resolveCallerIdentity USING CONTEXT userId', { userId: params.context.userId }); | |
| this.log.debug('DmServerCommand.resolveCallerIdentity USING CONTEXT userId', { userId: params.context.userId }); |
…pt (#249) — kills the greeting chorus Post-reboot each persona's airc runtime log holds only events since ITS boot, and #242's cursors rightly never replay — so every mind's visible conversation collapsed to ONE message and the room devolved into a greeting chorus, each persona mirroring the only utterance it could see (glass-boxed live 2026-07-30: Atlas's 5352-token prompt carried '[context] you can currently see the last 1 message'). Fix: when the live window is shallower than the grounding target, AircRagSource tops up from the durable chat store (#140) via a new DurableRoomHistory trait (ChatStoreHistory rides the same chat/poll command as every other consumer — one read path). Hydrated lines enter at lamport 0: structurally grounding-only, never unread — history is context, never fresh perception (#242 intact). Dedup by content through the one room-turn decoder (event ids re-mint across runtime restarts). Loud degrade on store unavailability; airc_rag.hydrated {live,hydrated} probe per top-up. Mind-side sibling of #265 (speech rings) — one durable transcript, every consumer hydrates from it. Test pins the live scenario: 1 live event + durable tail -> merged window, dupes collapse, history precedes the live tail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…oot (#265) Reboot wipes the in-process repetition-fact rings exactly when they're most needed: the post-boot wake round, where every persona re-emits its greeting 2+ times with own_repetition/[settled] blind (observed live 2026-07-30, three times — Anwen's third verbatim greeting landed while this fix's test compiled). The durable transcript (#140) already holds the history; the persist listener now replays the latest 200 lines into the per-room and per-sender rings before consuming live events, with a bounded wait on the executor slot (the #201 ordering race) and a speech.rings.hydrated probe. Test: hydrate_speech_rings_seeds_room_and_own_rings_from_durable_store — fresh UUIDs per run so the process-global rings stay isolated under full-suite parallelism (the #7 lesson). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…pt (#249) — kills the greeting chorus Post-reboot each persona's airc runtime log holds only events since ITS boot, and #242's cursors rightly never replay — so every mind's visible conversation collapsed to ONE message and the room devolved into a greeting chorus, each persona mirroring the only utterance it could see (glass-boxed live 2026-07-30: Atlas's 5352-token prompt carried '[context] you can currently see the last 1 message'). Fix: when the live window is shallower than the grounding target, AircRagSource tops up from the durable chat store (#140) via a new DurableRoomHistory trait (ChatStoreHistory rides the same chat/poll command as every other consumer — one read path). Hydrated lines enter at lamport 0: structurally grounding-only, never unread — history is context, never fresh perception (#242 intact). Dedup by content through the one room-turn decoder (event ids re-mint across runtime restarts). Loud degrade on store unavailability; airc_rag.hydrated {live,hydrated} probe per top-up. Mind-side sibling of #265 (speech rings) — one durable transcript, every consumer hydrates from it. Test pins the live scenario: 1 live event + durable tail -> merged window, dupes collapse, history precedes the live tail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…opted + pump probes (#2060) * fix(cognition): hydrate speech rings from the durable transcript at boot (#265) Reboot wipes the in-process repetition-fact rings exactly when they're most needed: the post-boot wake round, where every persona re-emits its greeting 2+ times with own_repetition/[settled] blind (observed live 2026-07-30, three times — Anwen's third verbatim greeting landed while this fix's test compiled). The durable transcript (#140) already holds the history; the persist listener now replays the latest 200 lines into the per-room and per-sender rings before consuming live events, with a bounded wait on the executor slot (the #201 ordering race) and a speech.rings.hydrated probe. Test: hydrate_speech_rings_seeds_room_and_own_rings_from_durable_store — fresh UUIDs per run so the process-global rings stay isolated under full-suite parallelism (the #7 lesson). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): wake hydrates the room tail from the durable transcript (#249) — kills the greeting chorus Post-reboot each persona's airc runtime log holds only events since ITS boot, and #242's cursors rightly never replay — so every mind's visible conversation collapsed to ONE message and the room devolved into a greeting chorus, each persona mirroring the only utterance it could see (glass-boxed live 2026-07-30: Atlas's 5352-token prompt carried '[context] you can currently see the last 1 message'). Fix: when the live window is shallower than the grounding target, AircRagSource tops up from the durable chat store (#140) via a new DurableRoomHistory trait (ChatStoreHistory rides the same chat/poll command as every other consumer — one read path). Hydrated lines enter at lamport 0: structurally grounding-only, never unread — history is context, never fresh perception (#242 intact). Dedup by content through the one room-turn decoder (event ids re-mint across runtime restarts). Loud degrade on store unavailability; airc_rag.hydrated {live,hydrated} probe per top-up. Mind-side sibling of #265 (speech rings) — one durable transcript, every consumer hydrates from it. Test pins the live scenario: 1 live event + durable tail -> merged window, dupes collapse, history precedes the live tail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona/airc): adopt BigMama's heartbeat-cadence identity republish (cherry-pick 1225f2e) — union with the availability pump Her fix (grid-personas branch): the identity card emit at attach is one-shot, so any peer joining LATER renders peer-<uuid> + default glyph forever; a 60s republish grounds late arrivals within a heartbeat window. My branch had the newer availability-aware heartbeat (#260) in the same struct — kept mine, added hers: honest availability AND late-joiner identity, strictly better than either alone. This is the cross-node convergence half of #262 running on BOTH nodes once merged. Original-Author: BigMama lane (1225f2e) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5 <[email protected]>
…ndwork (29 commits) (#2061) * fix(cognition): hydrate speech rings from the durable transcript at boot (#265) Reboot wipes the in-process repetition-fact rings exactly when they're most needed: the post-boot wake round, where every persona re-emits its greeting 2+ times with own_repetition/[settled] blind (observed live 2026-07-30, three times — Anwen's third verbatim greeting landed while this fix's test compiled). The durable transcript (#140) already holds the history; the persist listener now replays the latest 200 lines into the per-room and per-sender rings before consuming live events, with a bounded wait on the executor slot (the #201 ordering race) and a speech.rings.hydrated probe. Test: hydrate_speech_rings_seeds_room_and_own_rings_from_durable_store — fresh UUIDs per run so the process-global rings stay isolated under full-suite parallelism (the #7 lesson). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): wake hydrates the room tail from the durable transcript (#249) — kills the greeting chorus Post-reboot each persona's airc runtime log holds only events since ITS boot, and #242's cursors rightly never replay — so every mind's visible conversation collapsed to ONE message and the room devolved into a greeting chorus, each persona mirroring the only utterance it could see (glass-boxed live 2026-07-30: Atlas's 5352-token prompt carried '[context] you can currently see the last 1 message'). Fix: when the live window is shallower than the grounding target, AircRagSource tops up from the durable chat store (#140) via a new DurableRoomHistory trait (ChatStoreHistory rides the same chat/poll command as every other consumer — one read path). Hydrated lines enter at lamport 0: structurally grounding-only, never unread — history is context, never fresh perception (#242 intact). Dedup by content through the one room-turn decoder (event ids re-mint across runtime restarts). Loud degrade on store unavailability; airc_rag.hydrated {live,hydrated} probe per top-up. Mind-side sibling of #265 (speech rings) — one durable transcript, every consumer hydrates from it. Test pins the live scenario: 1 live event + durable tail -> merged window, dupes collapse, history precedes the live tail. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona/airc): adopt BigMama's heartbeat-cadence identity republish (cherry-pick 1225f2e) — union with the availability pump Her fix (grid-personas branch): the identity card emit at attach is one-shot, so any peer joining LATER renders peer-<uuid> + default glyph forever; a 60s republish grounds late arrivals within a heartbeat window. My branch had the newer availability-aware heartbeat (#260) in the same struct — kept mine, added hers: honest availability AND late-joiner identity, strictly better than either alone. This is the cross-node convergence half of #262 running on BOTH nodes once merged. Original-Author: BigMama lane (1225f2e) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(k3): container format IS the fetch lever — WASTE convergence into the ExpertFetch contract Independent working engine (WASTE, 0.32-0.36 tok/s full K3 on a laptop) confirms the architecture both lanes converged on AND names the missing 50x: 4KiB-aligned per-expert records with gate/up/down adjacent = one pread at drive speed, vs raw GGUF's 32-byte-aligned scatter at 200MB/s. Contract now requires the aligned streaming container (a FOUNDRY output — layout for streaming, not just shrink), LFRU eviction, and pins the reuse baseline: ~13% at K3 sparsity, exactly-0 is always a bug. Task #268 tracks the foundry re-pack stage. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(k3): WASTE-EXTRACT — mined record layout + cache semantics for the container port (#268) Transport-proof copy of what I mined from sqliteai/waste for BigMama's lane: byte-exact ExpertRec, single (layer,expert) key, LFRU-vs-LRU numbers, the 16KiB dual-purpose alignment, the Gate-5 working-set CLIFF that explained her exactly-0 retention, and the measured death of non-uniform bits. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert_ecache — LFRU cache + cliff-aware budget function (#269, M5 lane deliverable 1) WASTE ecache semantics ported: single (layer,expert) key with gate/up/down bundled, LFRU with sampled victims (their Gate 2: LRU collapses to 5% where LFRU holds 29%), and the budget as a FUNCTION — EcacheBudget::derive refuses loudly below one token's working set (their Gate 5 cliff: hit rate is exactly 0 below it; two nodes spent days debugging that silence as a keying bug). Four invariant tests green: cliff-refusal (600MB records fail at 8GB, VQ3 records pass — the container IS the fix), reuse-above-cliff, LFRU>LRU under a one-shot tail, packed-key stability. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(capacity): self-occupancy add-back + cliff probe in the residency planner (#269 slice 2) The 2026-07-30 audit finding, now fixed and pinned: capacities fed to the planner are LIVE free-byte readings that exclude bytes already-promoted experts hold, so every re-plan under unchanged demand under-counted each tier by its own resident set — slow thrash-to-cold. New plan_expert_residency_with_resident adds resident bytes back (from the pager's ledger, never the OS), making unchanged demand a FIXED POINT. Plus a loud expert_pager.below_cliff probe (WASTE Gate 5 arithmetic via EcacheBudget): fast tiers below one token's working set = structurally zero reuse — 'shrink records (#268), don't debug cache logic'. The activated_per_token input is an ARCH-PROFILE fact passed explicitly, never inferred from partial hit ledgers. Test proves all three: naive re-plan shrinks (bug real), add-back re-plan is byte-identical (fixed point), nothing demotes under unchanged demand. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(capacity): add-back before the serving fraction + probe binding — planner fixed point green Two repairs to the red-shipped commit: (1) probe read a renamed binding; (2) add-back over-credited by applying AFTER the 0.80 serving fraction — budget must be frac x (free + resident), not frac x free + resident (the fixed-point test caught the hot set growing by one). 3/3 pager tests green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert container reader — the #269 side of the #268 seam Read-side of the WASTE-shaped streaming container (docs/reference/WASTE-EXTRACT.md): manifest.json is the versioned seam contract (record_bytes must be 4KiB-aligned, activated_per_token feeds the cliff arithmetic), experts-L{n}.bin banks open lazily (a grid node holding 2 of 60 shards must not stat the other 58), fetch = ONE positioned read + an 8-byte header identity check so a drifted offset table is an ERROR, never a silently-wrong expert (the reuse=0 bug shape). 4 invariant tests: round-trip every (layer,expert), geometry refusals, identity mismatch, version gate. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(capacity): composed seam invariant — ecache over container, warm pass = zero disk reads The #268/#269 halves proven to compose: above-cliff budget + recurring working set means the second pass is served entirely from cache. Reuse > 0 is now a pinned invariant, not an assumption. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): usage-hotlist warm-start — kill the cold ramp after restart WASTE's usage.waste analog, pure: usage() snapshots (key, hits) hottest-first; warm() pre-admits into empty slots only, with last=0 so live-proven residents always beat warm guesses on recency tiebreaks. Test pins first-pass-all-hits after warm plus budget-truncation (never overfills, never evicts). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): turns-that-fit conversation window — kill the 5-message world view (#259) Glass-boxed live 2026-07-30 (Joel's call: 'her RAG cannot be telling her the chat properly'): Asha's captures showed '[context] you can currently see the last 3 messages' while her L1 budget could hold dozens — the grounding=5 count pre-trim starved pack_digest, whose token walk is the REAL allocator. Two allocators, the dumber one binding: a compression-principle violation. Starved of the actual conversation, a capable 24B looped generic-assistant filler for an hour. Fix: grounding derives from the delivery budget (budget / 8-token physical per-turn floor, recipe floor .. 256), so the token budget — never a message count — decides what she sees. Durable top-up (#249) scales with it. The region's pre-staged digest is reused only when it covers the budget-derived window; an under-grounded stage is rebuilt wide. Regression test pins: fully caught-up persona + 4k budget = all 20 turns visible, not 5. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(reference): byte-exact ExpertRec header — CONFIRMED against upstream FORMAT.md The layout authority BigMama's GgufRvqSource is gated on: 32-byte LE header with field offsets, fmt enum values VQ3R=4/VQ2R=5 (NOT 0/1 — the guessable trap), offs relative to record start, zero-pad tail, no header CRC. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(capacity): pin activated_per_token = TOTAL across MoE layers in manifest v1 + optional top_k_per_layer Seam sync with the foundry before her first v1 emit: per-layer top-k here would under-state the cliff ~60x (8 vs ~488 on K3) and re-open the reuse=0 trap. top_k_per_layer is the auditable companion (serde-default optional). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(reference): byte-exact codebooks.bin layout — CONFIRMED against upstream convert.py The foundry's RVQ-encoder gate: 16-byte WCBK header + 256x8 FP16 data = 4112B fixed records sequential by cid; cid = cb_base + kind*stages + stage; packer produces it (k-means artifact). Plus per-channel FP16 corrections layout + scale formula. Mined from the producer code, not guessed — the fmt-0/1-vs-4/5 lesson applied. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): narrated pass lifts to a SILENT Pass — a spoken pass is not a pass (#271) Glass-boxed live: models narrate their silence ('I'll pass my turn', 'I'll pass for now...') as Speak, and each announcement re-wakes every peer into announcing THEIR pass — a 30+ minute cascade of pure filler. Meet the idiom (same family as the narrated tool-call formats): first-person turn-passing collocations lift to Decision::Pass. Fail-open guards: transitive/declining/ peer-advice uses never match; code fences and >500-char messages stay Speak (swallowing substance is the worse error). Tests pin 6 verbatim live idioms silent + 6 substantive shapes speaking. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): accept 'current:' as well as 'room:' when parsing airc room output Forward-tolerance for the airc #270 membership-visibility format; the airc side also restored the stable 'room:' label, so both binary generations parse against both output shapes. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(boot): never export an EMPTY AIRC_DEFAULT_CHANNEL/ROOM on parse miss A daemon-mid-start race (or output drift) made the awk derive '' and the script exported it — the core then rejected the env var as an invalid UUID instead of running its own discovery, refusing full-citizen boot. Leave unset on miss, warn loudly; the core's discovery is the fallback authority. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): MoeArchProfile — every expert-serving fact READ from the GGUF, never typed (#231) The adapter Joel's law demands ('if some random Mistral MoE or DeepSeek comes out, most of the code should be ready'): general.architecture keys the arch-templated GGUF convention ({arch}.expert_count, .expert_used_count, .block_count, .leading_dense_block_count, .expert_shared_count — two new readers in the ONE gguf_keys home), and the profile DERIVES the cliff input activated_per_token = top_k x n_moe_layers plus projects the container manifest, so hand-typing 488 is structurally impossible. Zero model-family knowledge: outlier A (Qwen3-MoE shape, all-routed, optional keys absent = the arch's own declaration) and outlier B (DeepSeek shape, dense leads + shared experts) profile through IDENTICAL code — tests pin both plus the refusal ladder (dense=NotMoe, missing key=refuse, inconsistent=refuse, no guessed defaults anywhere). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): VQ3R decode reference + golden vectors — the cross-backend contract (#268 kernels) The 1-10 tok/s lane's drift killer: BOTH GPU kernels (her CUDA, my Metal) validate against ONE backend-neutral Rust reference, mined verbatim from upstream convert.py — per-channel scale applied pre-quant, residual stages, decode = scale x SUM(stage codebook rows); blocked index layout [M/64][nvr][64][stages] (their measured 1.44x gather win) with the offset formula in ONE function and the byte order pinned as a golden literal. Padding path exercised; f16 LE conversion point pinned. A kernel is correct when it reproduces the goldens exactly — no more fmt-4/5-class surprises. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): EcacheBudget::derive_from_profile — the adapter-law entry point (#231) Cliff input flows GGUF -> MoeArchProfile -> budget; no caller types an activation count. Closes the read-and-derive chain from artifact to cache. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(commands): capacity/io-probe — node storage bandwidth as a first-class measured fact In-tree home of the scratchpad NVMe measurement behind the K3 ceiling numbers (M5: 14 GB/s @ depth 4 => 2.3-4.7 tok/s vs WASTE 0.32). Benchmark infra is COMMANDS with receipts, never bash: every grid node can now report sustained record-sized uncached random-read GB/s at several depths, which is the input the weighted layer-split planner (#180) needs per node. Adapter law: record_bytes is an INPUT from the container manifest; the probe characterizes the disk, no model constant lives here. Cache-defeat on the write fd (the 69-GB/s RAM-not-SSD trap, glass-boxed), bank deleted after, Privileged access (disk-saturating), stateless registration. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): [template-loop] perception fact — topic-swapped scaffolds are still circling (#264) The structure axis the repetition family was blind to, glass-boxed live 2026-07-31: personas cycled 'I see that I've been repeating… ### New Exploration Area: <topic>' for HOURS with the topic rotating (security → docs → UI/UX → maintenance). Full-body Jaccard drops under NEAR_DUP_JACCARD the moment the content words swap, so own_repetition never fired — worse, each turn ACKNOWLEDGED repetition (the body fact had fired earlier) and then treated the topic swap as 'genuinely new', which no perception contradicted. template_loop_fact: a message's skeleton = its line-shape sequence (heading/numbered/bullet/prose) + opening-frame token set; only messages with ≥4 structural lines qualify (plain prose stays own_repetition's turf). Two messages share a template when shapes are equal OR openers are near-identical; cluster-counted like the sibling (period-agnostic), fires at ≥3. Pure fact, no output gate: names what happened and the PASS affordance she already has — with the narrated-pass lift (#271) landed, choosing silence now actually sticks, so an idle room can finally rest. One impl + one registry row (TemplateLoop, between OwnRepetition and PeerEcho); test pins the live specimen trio plus three inert cases. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): stop working memory re-teaching the loop it was told to stop (#264 glass-box) Joel asked to glass-box why a persona ACKNOWLEDGED the new [template-loop] fact and kept looping. Her prompt told the whole story: the fact rendered mid-prompt, but the TRAILING working-memory block — the maximum-recency position — carried two full verbatim copies of her looped template as receipts, each prefixed '[settled] I answered: <template>'. Two structural bugs, both fixed at the shared source: 1. Reserved-vocabulary collision: '[settled]' is the inbound-restates fact's word ('this TOPIC is settled; PASS is normal'), while WM used the same token for turn-completion receipts — so her tail literally read as 'it is settled that this is how I answer here'. WM_SETTLEMENT_PREFIX is now '[answered]' (one token, one meaning); all readers go through the const, so the repeat-perception boundary scans are untouched. 2. The trail rendered every receipt verbatim — a looping persona got an N-shot demonstration of the exact behavior the repetition facts (earlier in the prompt) named. Recency wins; she complied with the demonstration, not the fact. render_trail now collapses a receipt that is near-identical to an EARLIER receipt into a one-line stub ('not re-shown'), using the same near_identical_substantial geometry as the detectors — one definition of repeat. Comparing only against earlier receipts keeps every line's rendering stable after first appearance, preserving the append-only KV-cache property (#205/#266). Regression test pins the live specimen shape: dup receipt collapses, first copy stays full, distinct answers and action traces render untouched. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): working memory speaks in HER voice — interoception must not parse as a peer's message (#264 third glass-box finding) Asha, with BOTH repetition facts in-prompt and the receipt collapse live, still looped — and her opening line told us why: 'Thank you for the summary of recent actions and thoughts.' The WM block rides a user-role turn and its header was second person ('Your recent thoughts and actions…'), so Devstral parsed her own interior state as a PEER addressing her and politely replied to it, turn after turn — the reply itself being the templated summary the detectors keep flagging. The entries were already first person; only the header spoke in another's voice. It now reads 'My own recent thoughts and actions (working memory — this is my interior state, not a message from anyone)'. Self-knowledge is never phrased as someone else talking. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): manifest v2 tiered reader — per-(layer,tier) banks, the read side of moec_pack_dir_tiered (#269/#268) The reader half of the tier contract locked with the foundry 2026-07-31 (her packer round-trips 82/82 on the write side; our specs crossed mid-wire and matched line-for-line). TierSpec {id, quant, record_bytes} descending fidelity; banks experts-L{n}-T{t}.bin at offset expert_id x record_bytes; fetch_tier(key, tier, buf) is pure mechanism — the pager's policy seam (importance x recency x quant-sensitivity -> tier/residency/prefetch, Joel's all-star/cruft control law) decides WHICH tier, never the container. v1 stays the degenerate case by construction: a manifest without tiers[] synthesizes one tier from the top-level record_bytes and keeps legacy experts-L{n}.bin names — version picks the naming, no heuristics. The alignment law holds per tier; tier ids must equal their index (order drift between writer and reader refuses at open); out-of-range tiers refuse. Tests mirror the packer's round-trip: every (layer, expert, tier) reads back its own header + tier-distinguishable payload; v1-without-tiers-field parses and serves via the tier-less fetch(); range/order violations refuse. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): tier rides the identity end-to-end + byte-accounted cache + ExpertFetcher adapter seam (#269) Three moves that make the all-star/cruft allocator implementable as pure policy over pure mechanism: 1. ExpertKey gains tier — ONE identity from the pager's policy seam through the cache to the bank. A sharp and a cruft copy of the same expert are different bytes and never alias; promotion admits the sharp copy and the cruft copy ages out naturally. packed() widens to u64. The container's fetch(key, buf) honors key.tier (the redundant fetch_tier param died — compression). 2. The ecache goes BYTE-accounted (touch_sized): per-record real bytes against the governor-granted max_bytes, so cruft records pack denser than the sharp slot count implies, and an oversized admit evicts as many residents as its bytes require (regression pins the two-eviction case). Slot count stays as the secondary bound; warm-start accounts at the sharp size (a warm guess never over-fills). resident_bytes() is the number the footprint reporter reconciles against the lease. 3. ExpertFetcher adapter trait — the fetch seam adapterized (Joel's directive): outlier A is the local NVMe container; outlier B (remote peer shard over the grid) and the blended layer-split fetcher slot in behind the same two methods without the pager learning a second shape. 89/89 capacity tests green (round-trips, cliff, tier-mix packing, refusals, v1 back-compat). BigMama's TieredContainerFetcher (85/85, k3-adopt) is the same envelope from her side — the tier contract now has writer+reader on BOTH nodes. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): tier-aware pager policy seam — the all-star/cruft allocator v1 (#273) The last mechanism→policy gap to the K3 targets (5/1/10 tok/s). TierPolicy is the seam locked with BigMama's EXPERT-PAGING-CONTROL-LAW.md: policy(importance, recency, quant_sensitivity, budgets) → {tier, residency, prefetch}, so the v1 classic-control heuristic and the sim-trained ML policy (v2) swap behind one signature. ClassicTierPolicy, two orthogonal axes: - Residency (WHERE) rides the existing ranked_experts priority (hits ≫ predicted ≫ gate seed) with FIRST-FIT byte fill per residency tier — cheaper records backfill space sharp ones couldn't use, which is exactly how cruft tiers multiply cache capacity (pinned by the density test). - Fidelity (WHICH quant) is earned importance: weighted demand = hits × quant_sensitivity (Option until her trace sensor lands; None = frequency- only), tier = decades of weighted demand below the live leader — self- normalizing, no absolute thresholds. Control-law overrides: observation window forces tier 0 on new actives (small-quanting a new active corrupts the importance measurement itself); speculative-verify divergence promotes via a caller-side step integrator (self-calibrating, no logit threshold in the policy); unobserved/predicted- only park cheapest (distortion is free until activation; speculation earns no fidelity). Zero-signal experts stay Cold — no fetch bandwidth for what nothing points at. Wire-through: assignment.tier IS ExpertKey.tier (fetch_key refuses u16 overflow, never truncates); planned_bytes per residency tier is the governor- lease reconciliation number against the ecache's resident_bytes(). The #269 fixed-point contract extends to tiers: unchanged demand + resident add-back ⇒ byte-identical plan (test proves the thrash without add-back too). ranked_experts goes pub(crate) — one ranking authority, no consumer re-derives. 9 new tests, 98/98 capacity green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs: proper GitHub social-preview card — ring mark on dark, never blown out on white The repo's share card rendered as a washed-out white rectangle (the logo PNG is transparent, so GitHub composed cyan rings onto white at crop scale — live-spotted on X 2026-07-31). This is a purpose-built 1280x640 card: dark blue-biased ground, the ring mark with its own bloom, wordmark + 'AI citizens, not AI agents.' + the README tagline. Upload target: repo Settings → Social preview (GitHub has no API for it). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5 <[email protected]>
…breaker fires even when window evidence scrolls out (#301) (#2110) Glass-boxed live 2026-08-02 (captures saved): Atlas's wake-intro was reproduced BYTE-FOR-BYTE by Benchy then Asha — identity claim included ("I'm Atlas" spoken by three different peers). Every layer of the existing machinery worked except one join: [repetition]/[pattern] facts rendered correctly in the copier's prompt (detection fine), and the ONE time the [anchor] escalation fired, her next turn broke the template (cure proven). But the escalation counters derive their runs from the RENDERED window, which the live context budget squeezes to 2-6 turns — so during an hours-long chain the older echo evidence had always scrolled out and the run read 1, one below PATTERN_FIRES_BEFORE_ANCHOR. The anchor that provably breaks these loops structurally could not fire. Same starvation the room-speech ring already cures for the inbound_restates fact; the service-loop detectors never got the ring. Fix: ring_echo_run — a pure counter over ring SNAPSHOTS (own-speech + room rings, boot-hydrated per #265) using the same containment geometry as the in-window detectors (shared echo_words tokenization, no drift). The LIVE message path and self-tick call append_ring_anchor_if_starved: when the ring-counted run reaches the threshold and the window-derived detectors pushed no [anchor], the SAME work_board_anchor is appended — one anchor per burst, whichever counter earns it, with a persona.pattern.ring_anchor probe. Eval/replay paths are untouched: build_workspace_turns' signature does not know rings exist (#59 isolation preserved — the reason window-derivation was chosen). Self-vouching subtlety pinned by test: the authorless room ring holds her own copy too, so exclusion is AT MOST ONE identical entry — the remaining identical copies ARE the photocopy evidence. Test builds the live specimen (Atlas intro, Benchy/Asha copies): 2 trailing photocopies count 2 (escalates), novel work counts 0, a lone original with no independent copies counts 0. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
…+ bounded SDK boot + shell convergence doc (#2294) * feat(benchmark): a run gets its OWN room — dispatch spawns it and moves the citizens in (#329) `benchmark/dispatch` had no way to say WHERE. So every suite, every run, forever, piled into whichever room the curator happened to be standing in. Measured on one 37-minute window of that pile: 136 cards with 66 already CLOSED and still resident; 5,336 of 5,345 inbound events discarded as bookkeeping, NINE surviving as something a mind could read (~14/hour); ~48 wake-ups per minute per citizen. Claim heartbeats scale as O(claims x citizens), so the more work a citizen held, the less capacity it had to do any of it — and the board only grew. Joel named it: "are you just sticking them in the same identical room every time and it's accumulating" — yes. And then: "use this thing normally like it's made." It IS already made. `activity/spawn` births a room from a recipe, and `benchmark` is one of its recipes. Dispatch simply never called it. So: - `room: Option<String>` on dispatch. Omit for a FRESH room per run, `bench-<benchmark>-<epoch>`; pass a name to join an existing run. - Spawned through `activity/spawn`'s own path, extracted as `activity::spawn_activity_room(airc, name, recipe, parent)` so there is ONE room-birth path with two callers rather than a second creator that drifts. A hand-made room carries no recipe binding and projects as a plain chat; this one projects as a benchmark. - Every assignee is JOINED to the run — the members[] half of #274. A citizen who is not subscribed never sees the board, the kickoff, or the peers working beside her. Joel: "they're sitting in these old rooms flooded or ones with nothing." - The board read, every create_work_card and every kickoff `say` are current-room operations, and `join` moves that pointer — so they all land in the run room with NO new airc API. The pointer move is a documented gap for other callers and the mechanism here. - Idempotence + prune now reason about THIS run's board, so a run finally has its own honest denominator instead of a shared pile 136 deep. - `repo` stays optional: when unnamed, the hint is read from the room the caller is standing in BEFORE the move. That is the only thing the old room still contributes. - Result carries `room` + `room_id`; failed joins ride the same reported channel as failed kickoffs — a citizen who never made it in is as invisible as a kickoff that never landed, and neither may be silent. NOT the flattening I wanted: the design of record is `academy/bench/<run>`, but airc's ChannelName accepts only [a-z0-9_-] so `/` is rejected. Flattened to `-` and the test asserts through airc's own constructor, so the two can never drift. What I nearly shipped instead, and why it was wrong: a header-keyed door-skip for heartbeat traffic. Real, still worth landing, but a MUFFLER — it makes the accumulation quieter, not smaller. Order matters: (a) a run gets its own room [this], (b) a room has an END, (c) THEN the door-skip so what remains is quiet. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(ids): a room id is a RoomId, not a String (#396) Joel, on the previous commit: "Use handles uuids etc." I had just introduced `room_id: String` on BenchmarkDispatchResult — a brand-new loose-String id param, which is exactly the class #396 exists to kill, and I added it while writing a room feature. `ActivitySpawnResult.room_id` was already a String and was where mine came from, so both are typed now. `airc_core::RoomId` is a `uuid_newtype!` with `#[serde(transparent)]`, so the WIRE is unchanged — the bare hyphenated uuid either way. What changes is that Rust can no longer confuse a room id with a peer id, a card id, or free text ([[uuids-are-not-strings-and-never-hand-drawn]]). `#[ts(type = "string")]` follows the convention the tree already documents at identity/mod.rs:83 — airc's id newtypes carry no `TS` derive by design — so the generated TypeScript is byte-identical and no client changes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(ids): the activity graph's POINTERS are RoomIds, not strings (#396) Joel: "Usually you try to force a string for no reason instead of a lookup or one returned via handle. It's a desire to turn everything into shitty scripting languages." He is describing a real habit and this file is the evidence. `RoomRecipeBinding.parent` carried this doc, verbatim, directly above a `String`: /// Optional parent activity — activities spawn activities, and the graph is /// POINTERS, never nested blobs. pub parent: Option<String>, A pointer typed as text is not a pointer. Nothing rejected `"the benchmark one"`. Both ends are now `Option<RoomId>` — the binding and `ActivitySpawnParams`. The proof it was always an id: the round-trip test's own fixture value was `"f1a1b2c3-0000-4000-8000-000000000000"`. The value never changed. The type caught up to it — which is the whole point of the correction: Rust wasn't in the way, it was waiting. Also `binding_post_id: String` → `uuid::Uuid`. Not a newtype, because airc's `publish_wall_post` returns a bare `Uuid` and there is no `WallPostId` upstream to borrow — carrying the value instead of stringifying it keeps it in the type system on this side, and the missing newtype is named in the doc as an airc gap rather than laundered into text. Wire is unchanged throughout: `RoomId` is `#[serde(transparent)]`, `#[ts(type = "string")]` per identity/mod.rs:83, and `#[schemars(with = "Option<String>")]` describes the WIRE to the tool schema while Rust keeps the type — so a caller sends text, the command receives a parsed id, and an unparseable one is rejected at the boundary instead of flowing inward as a plausible-looking String. 1205 tests pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(benchmark): derive the repo key from the checkout's origin, not from a pile of cards (#329) Regression I introduced one commit ago, found by running the thing twice. Per-run rooms removed the repo inference's source BY CONSTRUCTION: dispatch inferred `repo` from cards already on the board, which worked only while every run shared one permanent pile. Now the FIRST dispatch leaves the curator standing in a fresh empty bench room, so the SECOND one had nothing to infer from and died asking for `--repo`. Measured live: `benchmark/dispatch --name=hard-rs` succeeded, the identical command immediately after refused. The fix is not a better fallback chain. The repo key is a FACT ABOUT THIS CHECKOUT — `git remote get-url origin` — so it is derived from the real thing rather than retyped by a caller. That also generalizes to any repo user on a fresh clone, the same reason `resolve_dispatch_roster` refuses to bake in our citizen names. Resolution order, most-explicit-first: caller's `repo` → the room they came from (the legacy path, unchanged, so a re-dispatch never splits a live board) → `origin`. The new step only fills the case that previously ERRORED; no existing behaviour moves. `repo_slug_from_remote_url` is a pure parser so the part that actually breaks is tested: scp-style `git@host:owner/name` has no scheme and uses `:` where the others use `/`, which naive `split('/')` gets wrong. Host-agnostic (a GitLab remote is as valid a key as GitHub) and takes the LAST two segments so subgroups still yield `group/name`. Junk returns None so the caller is ASKED, never handed a fabricated key. Honest about the one dependency: it reads process cwd, because git walks UP to find `.git` so any directory inside the checkout answers. The core is launched from the repo by start-server.sh and cognition/eval + gym resolve roots the same way. That is a real cwd dependency of the #195 class, named in the comment rather than papered over — and if the core is ever launched elsewhere it returns None and asks for `repo`, which is a loud fallback, not a wrong board key. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(protocol): regenerate ts-rs bindings for the per-run bench room (#329 a) The Rust side landed in ca6a815 / ff27025 / 0d49407; the generated TypeScript never got re-exported alongside it, so the checked-in bindings were missing `room` / `room_id` on dispatch and still typed `RoomRecipeBinding.parent` as a bare string. The ts-rs-binding-drift-guard workflow exists to catch precisely this, and would have gone red on the next run. No behaviour change — `cargo test` regenerates these; this commit is the regeneration. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the own-speech ring is per-ROOM — a fresh room is a fresh start Glass-boxed live today, from her own capture. A citizen was dispatched into a brand-new benchmark room by `benchmark/dispatch` (#329 a). On her FIRST turn there — having said nothing whatsoever in that room — her prompt carried: [repetition] 4 of your recent messages were nearly identical — you're circling, and restating what you've already said adds nothing. If you have nothing genuinely new to contribute right now, silence (PASS) is the honest response. Those four utterances were spoken in #academy. `own_speech_rings` was keyed by `PeerId` alone, so a MULTI-room citizen carried one room's withdrawal pressure into every other room she entered. The asymmetry made it obvious once found: `room_speech_rings`, the room-side sibling ten lines below, has always keyed by room uuid. And the say path was already room-correct — `say_in(turn_room, …)`, whose own comment reads "never her ambient default, or she answers one room's question to a different audience". Only the ring was blind. Fix: key by `(PeerId, room)`. Every write site already knew which room it spoke into (turn_room at the directed-say seam, default_room at the self-tick seam, the message's own room at the hydration seam); every read site already had the room in hand — llm_deliberation_faculty passed `ws.room_id` to `recent_room_speech` on the very next line. Persistence follows: `PersistedVolatile.own_speech` becomes room-keyed, with an untagged `Legacy(Vec<String>)` arm so a pre-existing `volatile.json` still PARSES. A torn mind-file is a silent blank wake, which is strictly worse than a dropped scratchpad — and the legacy lines carry no room, so they are dropped (with a probe) rather than mis-filed into a room she may never have spoken in. `hydrate_speech_rings` re-seeds from the durable transcript, where every message HAS a room (#265). This does NOT weaken the brick: within a room it fires exactly as before (own_speech_loop_renders_a_repetition_fact still green), and her history in the room she actually spoke in is untouched — so it cannot be mistaken for "clear the ring on room change". NOT CLAIMED AS PROVEN: on that same run the citizen went work/list(claimable) -> work/claim(3d1d9dbb) -> yield_turn{} and fell silent for 10 minutes, with this brick in her context throughout recommending exactly that silence. Mechanically coherent, and a plausible contributor to the #390 / #264 withdrawal family — but one specimen is not a cause. The fix stands on its own merits (the fact was simply FALSE about that room); it is now also the test. Regression test in the existing tests mod, asserting both directions: the room she spoke in keeps her history, the room she has not spoken in reads silent, and persistence carries the room key. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the steps ledger stops promising a recall path that does not exist The all-aged branch told her "the details have aged out of working memory; recall can retrieve them." That is FALSE by construction, and the chain is all in-tree: every act becomes an `EngramOrigin::Tool` engram (act_observe/apply.rs); `recall_candidates` carries an EXECUTING ASSERTION that a Tool-origin receipt is NEVER in the semantic recall pool (admission_state.rs); and recall_faculty.rs is the only production caller of that gate, so the persona's own recall runs through it. So the one fact whose entire job is ground truth was sending her after a door that isn't there — a lying receipt of the #151/#357 class, in the worst possible place. It says what happened plainly now: you did that work, the details are gone and cannot be retrieved, re-check the workspace or the board rather than trusting memory of them. An honest gap she can plan around beats a promise that wastes a turn. Scope, deliberately narrow: only the ALL-AGED branch is touched. The some-visible branch already made no promise and was the honest one — a previous note of mine had the fix direction backwards and would have propagated the lie into it (#414). Test extended with the negative assertion, so the promise cannot come back by edit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(identity): un-red the loose-id guard + give it eyes for parameters RED TEST FIXED. `no_declaration_outlives_its_defect` has been failing since 0d49407 earlier today — that commit typed `modules/activity.rs: room_id` as a RoomId and left its LOOSE_IDS exemption behind, so the guard's own anti-rot check was correctly reporting a declaration that outlived its defect. `cargo test -p continuum-core --lib` was red. Stale entry deleted. PARAMETERS WERE INVISIBLE. `loose_id_fields` matches `line.strip_prefix("<name>:")` with the whole remainder equal to `String,` — a predicate that cannot match a function signature by construction. So every `peer_id: &str` in the crate was outside a guard that reported clean. `loose_id_params` closes that: borrowed forms (`&str`/`&String`) are always parameters (a field would need a lifetime); owned forms count only mid-line, because a whole-line `room_id: String,` is what the field audit already claims. Non-overlapping on purpose — double-reporting one site makes it unfixable, since clearing it for one audit leaves the other red. POSITIVE CONTROL, and it is the point of this commit as much as the detector. While building this, a throwaway scan of the same shape returned 0 twice while the real count was 33. A guard whose predicate matches nothing does not go quiet — it reports the codebase CLEAN, which is worse than no guard, because it converts an open defect into a green claim that the work is done. So the predicate now has to prove it fires: on a plain param, mid-signature, and NOT on `signer_peer_id` (a `_`-joined suffix — `char::is_alphanumeric` misses this, `_` is not alphanumeric), NOT on whole-line owned decls, NOT in comments, NOT inside string literals. That last one is not hypothetical: the first compiled run reported 36 pairs, three of which were this audit matching its OWN fixtures in identity/mod.rs. Hence `blank_string_literals` — a detector that cannot tell code from a string about code. `loose_id_fields` needs no equivalent; it demands the whole trimmed line be `name: String,`, which a quoted literal never is. Measured: 33 (file, param) pairs. No LOOSE_ID_PARAMS table yet, so nothing is enforced on params — the #[ignore]d dump test is the tool for writing it, and gets deleted in the commit that lands the table. NOTE for whoever writes that table: do NOT categorize the ~11 `live/*` entries as `external`. I nearly did, on the basis that the folder is called live/. Joel: "it uses the same room ids from airc" — and modules/live.rs says so itself at :51 ("the server is now AUTHORITATIVE that a call IS its airc room"), :214 ("the airc room_id is THE canonical call/session key"), :239 (`let call_id = room_id;`). The value is an airc RoomId stringified by `p.str("room_id")?` and never parsed back. They are `defect`, blocked on #193's client cutover — not another system's wire. Guard suite: 4 passed, 0 failed, 1 ignored. cargo fmt clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(perception): personas are READERS — advance their per-room cursor, and land a fresh reader one page back Two halves of one bug, and both are why a room storms. `ChannelBookmarks` is a per-(persona, room) last-read cursor — a correct Slack-style unread marker with a monotonic `advance`, written months ago. Its ONLY production callers were both in `modules/nav.rs`, and both key on `ctx.user_id`: the authenticated HUMAN, driven by `nav/mark-read` and by navigating away from a room. A persona never navigates. So her `last_read` stayed at 0 forever — and `last_read`'s own doc spells out what 0 means: "never read (everything is unread)". Every turn re-delivered the ENTIRE paged history as UNREAD, each item at attention score 1.0 (airc_source.rs), with an EMPTY grounding split because `unread_start` lands at 0 when `first_unread` does. The digest's whole read/unread structure was built, and then never used for a persona. That is the fuel supply for the mutual-excitation storm on #264 (25 turns in 85s, two citizens each waking on the other): with nothing ever marked read, no message is ever consumed, so nothing is ever old and there is never a moment where the room is quiet. HALF 1 — the returning reader (persona/airc_source.rs). `deliver` now advances the cursor after packing. `pack_digest` returns the READ-THROUGH lamport — the newest element that actually entered her prompt — so she is marked read for what she was GIVEN, never for what the budget fetched and dropped. Mark-read on DELIVERY, not on reply, because delivery is when she saw it; `tip_lamport`'s own doc already said "ignore/skip/respond all mark-read". `advance` is monotonic, so a repeat delivery or a late lower lamport can never rewind her. HALF 2 — the FRESH reader (cognition/channel_digest.rs). Advancing alone does not help someone who has never read the room: bookmark 0 still means "all of it is unread". A first sight now lands one page back from the tip (`FIRST_READ_PAGE`), which is how every chat client has worked for thirty years — you join, you see the last page, you scroll for more. The seed is persisted via `advance` ("you joined here" is a real fact about this reader), and it applies to EVERY reader: a fresh human opening a busy room and a fresh persona waking into one are the same case. Not a filter and not a damper — no behaviour is gated, nothing is refused. The room is simply read the way a reader reads it. TESTS (existing mods extended, no new mod): - a_fresh_reader_lands_one_page_back_not_on_the_whole_history — 3 pages retained, ONE page unread, seed persisted, and after the delivery-side advance the room goes quiet. Both halves are needed and the test exercises the composition. - 15 channel_digest, 12 airc_source, 12 nav: all green, incl. caught_up_persona_sees_budget_worth_of_history_not_five_messages and the #367 deliver_pages_the_turn_room_not_the_pointer. Refs #264, #43, #367 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(cursor): DELETE ChannelBookmarks — the read cursor is airc's durable runtime_cursor, not a second store Joel: "Airc has state for cursors in addition to other things built in duh" — and "Delete your idiocy and use the right one or encapsulate it but only as a last resort not laziness". Both correct. 140ad3b fixed the cursor never ADVANCING; this deletes the parallel store it was advancing. WHAT WAS WRONG: `cognition::channel_digest::ChannelBookmarks` was a `DashMap<(persona, room), lamport>` — a SECOND cursor store beside the durable one airc already owns. Being process memory it also died on every restart, so no reader ever resumed. airc's own API doc states the intent verbatim: "for hooks/feeds/monitors that need replay state; it is intentionally STORE-BACKED so runtime delivery state does not sprawl into JSON sidecars." We sprawled it into a DashMap instead. THE RIGHT ONE, used directly — not wrapped: Airc::load_runtime_cursor / save_runtime_cursor_for_event (runtime_cursor: an ORM row keyed by consumer id, upserted). `_for_event` is airc's PREFERRED path because it carries the source event's room + kind and emits `SubscriptionAdvanced`, so a cursor move is visible to every other surface instead of private to one process. WHERE IT LANDED: on `AircTranscriptReader` — the port continuum ALREADY has over airc's transcript, whose real implementor IS `airc_lib::Airc`. Two methods (`read_cursor`, `advance_read_cursor`), defaulted so the ~8 stub readers keep compiling. That is not encapsulation-as-dodge: the cursor now lives where transcript access already lived, and the only implementation delegates straight to airc. CONSEQUENCES, each deliberate: - `ChannelDigestBuilder` holds NO cursor state. `build` reads it from the reader; `build_from_events` takes `bookmark` as an explicit parameter. The split point is now visible at every call site instead of arriving from a process-wide map. - `global_channel_bookmarks()` deleted from channel_substrate. - The FIRST_READ_PAGE seed no longer self-persists — it is a WINDOWING decision only. The cursor moves exactly once, when `deliver` marks read what the reader was actually SHOWN. A hidden write inside a builder could mark a page read that the budget dropped. - `pack_digest` returns the read-through ELEMENT, not a bare lamport, because airc wants the event. - positron's nav projection reads the STAGED DIGEST's own `bookmark` — one value, two consumers (her window and the nav view), so they cannot disagree. It needed no cursor store at all. - nav mark-read / room-switch write through the CALLER'S OWN airc scope. ⚠ #27 (self-peer) IS NOW VISIBLE, and left visible on purpose: a cursor can only be written into a scope we can address, and today only CITIZENS have a registered airc runtime. For the human operator there is nowhere correct to put it — writing into some citizen's store would file the human's position under another being's identity. So nav logs and reports 0 rather than fabricating a cursor, and the nav tests now PIN that honesty. When #27 lands the same call returns the real lamport with no further change. TESTS: 47 green across channel_digest, channel_digest_region, airc_source, nav, positron_nav. Stub readers carry a cursor cell (`read_through`) so tests exercise the real port; `advance_is_monotonic` now pins monotonicity THROUGH the port. Two region tests were failing on my own dropped setup, not a production regression — fixed by threading the reader's cursor, which is what the production path does. Refs #43, #264, #27 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): plan holds its ModelFootprint by value — kill the name-lookup that silently starved every lane (#368) ServingPlan carried base_model_id: String and re-looked its own model up by name; a miss made is_some_and silently false, suppressing every legitimate switch-up. Live: Asha/Anwen homed to a phantom, 0 tokens, forever — and the plan computed usable_gb=2 on a 64GB box, warming nobody (measured 2026-08-14, zero persona.turn.start in the probe stream while WS answered in 1-3ms). The plan now holds base_model: ModelFootprint (struct by value, per the uuid/struct identity law); the upgrade check is a field read, not a search. ts-rs exports ModelFootprint + camelCase ServingPlan to protocol/typescript. 1193 lib tests green (metal,accelerate). Deployed via verified reboot; acceptance is the first persona.turn.start on the new build. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(sdk): bound the two unbounded boot awaits — a silent cache or silent socket now costs one retry, never a blank app hydrateFromStorage awaited storage.load() guarded only by try/catch — which covers a rejection, not a promise that never settles. A hung IndexedDB read held connect() open forever: blank page, frozen banner (live 2026-08-14, bisect-proven: storage removed → 274KB render; present → blank 6/7). ensureConnected had the same hole one seam over: a WS ingress that accepts TCP but never completes the upgrade fired neither open nor error (measured: 'last feed status: connecting', 1-in-5 boots). HYDRATE_BUDGET_MS=1.5s and OPEN_BUDGET_MS=5s make StateStorage.ts's own contract ('storage is an ACCELERANT, not a dependency') true rather than aspirational; a timed-out handshake feeds the existing reconnect ladder. New spec case is positive-controlled: red without the bound, green with it. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): arm the boot watchdog BEFORE awaiting connect, and make it name where a stuck boot is stuck The 4s no-snapshot diagnostic was registered after 'await state.connect()' — the one failure it existed to catch (a hung connect) made it unreachable, so the banner froze on the pre-connect string with no diagnosis possible. Armed first, it now reports last feed status (none=hydrate stuck, connecting=socket stuck) — the instrument that located both SDK bounds. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): ACTIVITY-SHELL-CONVERGENCE — the measured defect map + R0-R5 repair plan for the positron shell Eight measured defects with file:line receipts (single kind-keyed projection cache wiped on focus, dead roster kind, whole-page error boundary, throwing content registry, unkeyed lists, hardcoded right panel) and the repair lanes: (room_id, kind) RoomViews, global kinds feed global widgets, three render roots, right=ContextPanel per room, bench rooms under the academy section. Owner rulings recorded: left rail invariant, right column tracks content=tab=room=activity, all three SYS faces are graphs. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
Major architectural consolidation that routes all data operations through Rust, deleting ~16K lines of redundant TypeScript code.
What Changed
Worker Consolidation (Phases 4a-4e)
logger,search,embedding,data-daemonworkers intocontinuum-coreORM Migration (Phases 7-13)
ORM.ts → ORMRustClient → Rust DataModuledbPathparameterDead Code Cleanup
SqliteStorageAdapter.ts(1,043 lines) + 6 supporting classesPerformance
The system is noticeably faster:
Stats
Test plan
npm run build:tspassesnpm run test:precommitpasses./jtag pingconfirms server + browser connected./jtag data/listconfirms ORM → Rust data operations worknpm start🤖 Generated with Claude Code