Skip to content

MARM v2.9.0 - Compaction, Consolidation & Swarm Hardening

Choose a tag to compare

@Lyellr88 Lyellr88 released this 03 Jun 09:32

MARM v2.9.0 is the memory cleanup and swarm-readiness release.

This release adds the new consolidation and compaction system while keeping the public MCP surface lean at 9 tools. The main user-facing addition is marm_compaction, a single tool that lets agents review, stage, apply, or discard compaction candidates without exposing a pile of low-level helper tools.

Highlights

  • Added write-time memory consolidation for exact and near-duplicate memories.
  • Added the compaction worker pipeline for finding fragmented or duplicate memory clusters.
  • Added agent-assisted compaction through one public marm_compaction tool.
  • Routed compaction apply through the write queue so cleanup work stays ordered with normal writes.
  • Expanded swarm support with write queue defaults, RPM presets, and compaction-aware smoke tests.
  • Updated docs and registry metadata for the 9-tool surface.

What Changed

Cleaner Memory Over Time

MARM now prevents exact duplicate writes using normalized content hashes before embedding work runs. It can also merge near-duplicate memories during normal writes when consolidation is enabled, preserving session boundaries and keeping merge history in metadata.

Agent-Assisted Compaction

The new compaction worker can detect older or fragmented memory clusters and stage them for review. MARM does not assume it owns the model. Instead, it nudges the connected agent to summarize candidates through marm_compaction, then MARM safely applies the result to the database.

Better Swarm Behavior

The write queue now supports callable mutations, letting compaction apply flow through the same serialized write path as normal memory writes. Runtime presets also tune rate limits and compaction trigger counts for normal, swarm, swarm-max, trusted, and custom deployments.

Testing & Hardening

This release adds focused regression coverage and smoke scripts for consolidation, compaction staging/apply, stale guards, cross-session isolation, write-queue callable execution, HTTP RPM behavior, mocked swarm writes, and real local Ollama swarm writes.

Install

pip install marm-mcp-server
python -m marm_mcp_server

For shared HTTP deployments:

python -m marm_mcp_server --swarm
python -m marm_mcp_server --swarm-max
python -m marm_mcp_server --trusted