Module storage

Module storage 

Source
Expand description

Storage layer: SQLite-backed object store and file store. Port of Go’s pkg/wstore and pkg/filestore.

Re-exports§

pub use agents::AgentDefinition;
pub use agents::AgentInstance;
pub use agents::InstanceStatus;
pub use agents::InstanceUpdate;
pub use content::AgentContent;
pub use error::StoreError;
pub use history::AgentHistory;
pub use identities::Identity;
pub use identities::IdentityAccount;
pub use identities::IdentityBinding;
pub use identities::SecretRef;
pub use memory_bundles::format_global_brain_block;
pub use memory_bundles::Memory;
pub use skills::AgentSkill;

Modules§

agents
Agent subsystem — definitions, instances, and their lifecycle CRUD.
agents_consolidate
Phase 3a — one-shot backfill from db_agent_definitions + db_agent_instances into the new consolidated db_agents table.
content
Agent-content blobs — per-agent key/value content storage (e.g. the “instructions” panel content).
def_registry_mirror
Global agent-definition registry mirror.
dual_write
Phase 3a — db_agents dual-write helpers.
error
Error types for the storage layer.
filestore
FileStore: file storage with write-through cache + background flusher. Port of Go’s pkg/filestore/blockstore.go, blockstore_cache.go, blockstore_dbops.go.
history
Agent session history — append-only per-agent entries with date-bucket + LIKE search.
identities
Identity subsystem — accounts, bundles, and the junctions that tie them to agents.
memory_bundles
Memory bundles — the agent’s personality and capability stack (provider, model, instructions, context files, MCP servers, skills).
migrations
SQL schema setup for Store, FileStore, and the saga log.
muxbus
registry_mirror
Cross-version named-agent registry mirror.
skills
Agent skills — reusable capability records attached to an agent definition.
snapshot
Pre-migration snapshots — Increment B.2 lean cut from docs/specs/SPEC_DATA_CHANNELS_2026_05_24.md §3.4.
store
Store: generic OID-based CRUD for StoreObj types. Port of Go’s pkg/wstore/wstore_dbops.go + wstore_dbsetup.go.