Skip to content

GrayMatter v0.16.4

Choose a tag to compare

@github-actions github-actions released this 27 Aug 12:01
· 194 commits to main since this release
v0.16.4
62bc52b

GrayMatter v0.16.4

Persistent memory for Go AI agents. Single binary. Zero infra.

Quick install

go install github.com/angelnicolasc/graymatter/cmd/graymatter@v0.16.4

Prebuilt binaries for Linux, macOS and Windows are in the assets below,
with checksums.txt (sha256). Per-platform download commands are in the
README.


Identical contents to 0.16.1–0.16.3. 0.16.3 was deleted and re-created while debugging the release pipeline, which poisoned the module proxy's index for that name (a 404 that outlives the fix), so this re-release uses a fresh version name. Lesson recorded in the technical-debt log: published tags are immutable — delete-and-recreate breaks every proxy that already crawled the old revision. 0.16.4 is the first version published with binaries and a clean proxy index.

  • Recall deduplicates identical stored text — the documented contract ("deduplicated by text") is now enforced: storing the same sentence across sessions yields it exactly once per result set. Found by the agent-lifecycle simulation, where repeated session templates stored identical facts.
  • Tombstones survive concurrent consolidation writebacks (#78). A consolidation cycle's decay pass wrote back its batch snapshot, silently overwriting a tombstone that landed mid-cycle — superseded facts resurrected with SupersededBy="". UpdateFact and touchFacts now enforce update-never-resurrect: when the stored fact is tombstoned and the incoming snapshot is not, the tombstone wins. Found by the new agent-lifecycle simulation; fixed the same day, with the deterministic reproduction (update_never_resurrect_test.go) and the full 100-session re-run reporting 0 superseded facts returned.
  • benchmarks/agent_lifecycle — an end-to-end simulation of one hundred real working sessions: a fresh graymatter mcp serve process per session over JSON-RPC stdio (process death between sessions is the durability claim under test), a realistic adversarial corpus with distractor families, a supersede pair, paraphrase and shared-namespace probes, and pre-registered pass/fail bands. Plus benchmarks/decay_probe, which compresses the 30-day half-life to seconds and verifies decay precision, pin exemption, touch protection and the prune floor. Plus benchmarks/agent_lifecycle/tombstone_dump, a forensic store dumper.
  • Registry metadata. server.json (official MCP registry) and smithery.yaml (Smithery) let GrayMatter be published and listed across MCP registries.
  • MCP tool definitions engineered for agent-facing quality (TDQS), pinned by contract tests. Every tool now carries a meaningful title, an opening-verb description with explicit when-to-use guidance and named sibling alternatives, verified return/error disclosure, and fully documented parameters (top_k declares its default; the action enum is pinned). tdqs_contract_test.go locks the client-visible tools/list shape so description drift becomes a CI failure. docs/AGENTS.md return-shape claims corrected against the real handlers (memory_search returns a numbered list, not newline-separated text; checkpoint_resume errors when no checkpoint exists). See ADR-012.
  • go install github.com/angelnicolasc/graymatter/cmd/graymatter@version works again. The CLI module carried a replace directive, which makes every tagged version uninstallable via go install (#75); the workspace at the repo root already provides the checkout linkage for in-repo builds. The released CLI now resolves the library at the pinned v0.15.0, and the release workflow gained an install-smoke job that fails the release if the exact published tag cannot be installed and run.
  • MCP tools return structuredContent twins with declared output schemas (#76). Every tool publishes an outputSchema generated from typed result payloads; success results carry machine-readable structuredContent alongside the unchanged text content. checkpoint_resume returns a typed {error: "not_found", agent_id} payload with isError instead of prose-only errors. Payload↔schema agreement is pinned by structured_contract_test.go. Text-parsing clients are unaffected — every text string is byte-identical. See ADR-013.
  • memory_reflect declares agent_id in its schema (#77). The alias was previously a runtime-only accommodation invisible to clients reading tools/list; it is now a documented schema property, with agent remaining the required canonical and winning when both are set. Precedence and alias-driven updates are pinned by reflect_schema_test.go; the canonical flip to agent_id is deferred to a dedicated release.
  • agent_id is now the canonical agent parameter on memory_reflect (#77 step 3, ADR-014). The schema expresses the real contract as an anyOf — exactly one of agent_id (canonical) or agent (deprecated alias) is required — so callers of either spelling remain schema-valid; agent_id wins when both arrive. Both spellings keep working at runtime. Callers sending both spellings with different agents observe the precedence change; that input is pathological and the new behaviour is the documented one.
  • Registration-time output-schema generation fails fast (TD-002). mcp-go's WithOutputSchema swallows generation errors to stderr and would publish a tool without its declared contract; the new outputSchemaOf[T] helper panics at registration with the offending type, and generates the schema exactly once per tool.
  • The MCP wire contract documents concurrent tool-call execution. The stdio server runs a worker pool (default 5), so two pipelined tools/call requests may execute out of order; a response guarantees only its own effects. Documented in docs/api-stability.md rather than "fixed": the concurrency is spec-compliant, benefits real hosts issuing parallel calls, and serialising it would trade genuine throughput for a guarantee the protocol never made (TD-001).