Skip to main content
The runtime accepts the Memory port. Your program selects and creates the adapter.

In-process adapter

Use @obversa/memory-simple for tests and short runs. Its data stays in one process.
Set smaller limits when a run has a smaller memory budget:

Git adapter

Use @obversa/memory-git when memory must stay after the process exits.
The adapter stores each scope in a private Git reference. It does not change the current branch, the index, or the worktree. Delete and eviction remove a path from that private reference. The older Git object can remain in the repository until Git removes unused objects. Git mirror clones, mirror pushes, and bundles made with --all copy the private reference and its plain-text contents. Backups can also retain it. Do not treat the reference as local-only, and do not treat deletion as immediate secure erasure. Pass the selected adapter to the runtime:
The runtime imports only @obversa/memory. The runtime does not select or create a storage adapter.