Skip to content

Repository files navigation

memory-kernel

memory-kernel is the shared, filesystem-backed substrate for workflow-domain tools. It provides neutral entity-store, indexing, search, workspace, board, and cross-store move primitives.

Public contract

Use the memory_kernel library crate from domain repositories. The public surface is domain-neutral: domains supply their own schemas, entity semantics, and transport adapters.

The package replaces the legacy memory-api shared-kernel crate. During the repository extraction, consumers should migrate imports from memory_api to memory_kernel without changing the neutral storage, model, workspace, and board APIs. The InteroperableArtifact contract is now owned by this package because move journals are kernel artifacts; domain-specific interoperability traits remain with their domains.

Transport harness

The workspace also publishes the sibling transport-harness crate. Workflow domain binaries enable only the transports they expose:

transport-harness = { path = "../memory-kernel/crates/transport-harness", optional = true, default-features = false }

[features]
cli = ["dep:transport-harness", "transport-harness/cli"]
mcp = ["dep:transport-harness", "transport-harness/mcp"]
http = ["dep:transport-harness", "transport-harness/http"]

The harness owns CLI parsing and output, MCP stdio startup, HTTP listener startup, tracing, and transport error normalization. Domain crates retain their command dispatch, MCP ServerHandler, and HTTP Router registration.

Versioning

This package follows semantic versioning. Additive public APIs are minor changes; breaking API or behavior changes are major changes. Compatibility aliases, when needed for the workflow-tools migration, must be documented with their removal version before being added.

Development

cargo test
cargo fmt --check
cargo clippy --all-targets --all-features -- -D warnings

The extracted history comes from memory-api/crates/memory-api. Per-domain APIs and transport binaries intentionally do not belong in this repository; only their transport-neutral startup harness is shared here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages