Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
docs: refresh 3.3 release references
AkitaOnRailsc92047ed3b5f
diff --git a/AGENTS.md b/AGENTS.mdindex b9724710..a6021f48 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -765,7 +765,7 @@ Additional boundary rules:- **MCP tool surface changes** require updating `MEMORY_INSTRUCTIONS`,`ai_memory_core::SNIPPET_BODY`, README/docs tool references, and theregression tests asserting every tool appears in both prompt surfaces.- The tool count is currently 24 (see `docs/ARCHITECTURE.md`). They also+ The tool count is currently 25 (see `docs/ARCHITECTURE.md`). They alsoupdate the TypeScript SDK in `companions/ai-memory-ts` in the same change:the schema snapshot (`npm run schema:update`), the wrapper or itsclassification in `src/coverage.ts`, types, tests and docs. The SDK's@@ -785,7 +785,7 @@ Additional boundary rules:- **Branch model.** `main` is the patch line: it takes fixes and docs only(`[Unreleased]` holds only `### Fixed`), and patch tags are cut from it.Additive work targets the standing `release/X.Y` branch for the next- minor or major (currently `release/3.3`; 3.2.1 shipped from `main`). Keep `main` an+ minor or major (currently `release/3.3`; 3.2.10 shipped from `main`). Keep `main` anancestor of it by forward-merging`main` into it after every fix lands, never the reverse; when a patchrelease ships, rebuild the branch's `[Unreleased]` as only its own entriesdiff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 0539eb34..c9f6f547 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -765,7 +765,7 @@ Each crate has a single responsibility and exposes a typed API. Nocircular deps. Inter-crate boundaries enforce the cross-cuttinginvariants below.-## MCP tool surface (24 tools)+## MCP tool surface (25 tools)Every registered tool carries explicit MCP annotations for its human-readabletitle and read-only, destructive, idempotent, and open-world behavior. These@@ -836,14 +836,16 @@ page or a raw hit (one session, in scope, paged and body-capped) so an agentcan audit what the hooks actually captured, `memory_auto_improve` exposes asafe default-on learning review through the same approval/write path aspending writes, and `memory_delete_page` is the exact-path destructive pair-needed by admission-aware mirrors. `memory_handoff_cancel` is the safety valve+needed by admission-aware mirrors. `memory_patch_page` provides bounded,+preconditioned edits without making agents re-emit an entire page.+`memory_handoff_cancel` is the safety valvefor mistaken handoff creation. `memory_feedback` implements the"finer-grained reinforcement beyond access counts" P2 item from`prior-art-implementation-findings.md`: it cannot ride on a read toolwithout conflating read and write semantics, and the access counter itsupplements cannot tell "this page answered the question" from "this pagewasted a read". The narrow-surface discipline still holds (every new tool-has to justify its slot), but the count is now 23, not 10.+has to justify its slot), but the count is now 25, not 10.The managed Agent Skills are a narrow prompt-packaging exception to theotherwise wiki-centered architecture. They are static `SKILL.md` files thatdiff --git a/docs/competitive-parity.md b/docs/competitive-parity.mdindex 6e3acaf8..630dfd2c 100644--- a/docs/competitive-parity.md+++ b/docs/competitive-parity.md@@ -222,7 +222,7 @@ schedules them.belief-strength confidence, and the LLM dream pass), audited row-by-row inthe borrowed-ideas table above; the design of record is[`design-memory-aging.md`](design-memory-aging.md).- MCP tool behavior hints now ship across the 24-tool surface (title plus+ MCP tool behavior hints now ship across the 25-tool surface (title plusread-only/destructive/idempotent/open-world), with the runtime auth andscope checks remaining authoritative because annotations are untrustedmetadata. **Still unshipped:** typed-edge **rank** weighting and a@@ -293,7 +293,7 @@ invariants), **ALREADY** (we have it and should say so).| Auth on by default | SHIPPED (3.0) for new installs; requiring auth on existing loopback installs DECLINED for 2.x | Flipping existing installs would break every env-less hook and MCP config, a major change under our semver. Existing installs opt in with `ai-memory auth enable` || One-command installer / onboarding | SHIPPED (3.0 Linux/macOS, 3.1 Windows) for three platforms (`install.sh`/`install.ps1` + `ai-memory setup`); the agent-driven install doc is folded in | No npm package || Many-language README | DECLINE | Translations go stale on every release, and stale docs are defects under our quality bar |-| Large speculative tool surfaces (leases, task graphs, routines, sentinels, sketches, crystals, facets; 50+ tools visible by default) | DECLINE | No evidence of real use; each tool adds prompt-surface cost; we keep 24 tools and have run leases where needed |+| Large speculative tool surfaces (leases, task graphs, routines, sentinels, sketches, crystals, facets; 50+ tools visible by default) | DECLINE | No evidence of real use; each tool adds prompt-surface cost; we keep 25 tools and have run leases where needed || Signals between agents | ALREADY | Typed cross-project messaging with exactly-once pop || Mesh / P2P sync | ALREADY (3.0) via `ai-memory-wikisync` | Two-way, conflict-aware git sync over the file truth using `expected_page_id` compare-and-swap || Durable capture inbox / offline spool | ALREADY | Hook spool, `ai-memory-relay`, `ai-memory recover`, 202/429 backpressure |diff --git a/docs/design-decisions.md b/docs/design-decisions.mdindex dabcd089..476c1592 100644--- a/docs/design-decisions.md+++ b/docs/design-decisions.md@@ -207,7 +207,7 @@ agentmemory has this informally (`/handoff` skill); we make it explicit from daybasic-memory has ~25 tools, agentmemory has 53. Both have user confusion as aresult. The original v1 surface was deliberately narrow; the current additive-surface is listed in [`ARCHITECTURE.md`](ARCHITECTURE.md#mcp-tool-surface-24-tools):+surface is listed in [`ARCHITECTURE.md`](ARCHITECTURE.md#mcp-tool-surface-25-tools):| Tool | Purpose | Annotation ||---|---|---|diff --git a/docs/design-message-decisions.md b/docs/design-message-decisions.mdindex 27df323a..5a1a3723 100644--- a/docs/design-message-decisions.md+++ b/docs/design-message-decisions.md@@ -361,7 +361,7 @@ control, and fails with its guard removed.## 9. Alternatives- The convention-only route has no rule and no link.-- A `memory_message_reply` tool is one more tool (the 25th, since+- A `memory_message_reply` tool is one more tool (the 26th, since`release/3.1` added `memory_restore_page`) and a copy of the send path (Q7).- An answer on the question row needs a read of the decision project, whichthe asker cannot do.diff --git a/docs/desktop/plan.md b/docs/desktop/plan.mdindex 81faf3e7..bde64362 100644--- a/docs/desktop/plan.md+++ b/docs/desktop/plan.md@@ -109,7 +109,7 @@ payload. What shipped, under the existing `antigravity-cli` agent kind:## Phase 3 — explicit capture for hookless surfaces (RFC Phase 1, adjusted)-- Tool-surface change (current 24-tool count, MEMORY_INSTRUCTIONS/SNIPPET_BODY,+- Tool-surface change (current 25-tool count, MEMORY_INSTRUCTIONS/SNIPPET_BODY,prompt-surface regression tests, adversarial boundary test) for anexplicit capture tool the model calls on apps without hooks (Claude Chattab, Grok Bot, hosted ChatGPT chat). Scoping per RFC: fixeddiff --git a/docs/prior-art-implementation-findings.md b/docs/prior-art-implementation-findings.mdindex fb44c239..3a5bb2cb 100644--- a/docs/prior-art-implementation-findings.md+++ b/docs/prior-art-implementation-findings.md@@ -312,7 +312,7 @@ These items previously drifted from the code. Their current status is:| Area | Current status ||---|---|-| MCP tool count/list | Fixed: `ARCHITECTURE.md` lists the current 24-tool surface; the v1 design table remains an explicitly historical baseline. |+| MCP tool count/list | Fixed: `ARCHITECTURE.md` lists the current 25-tool surface; the v1 design table remains an explicitly historical baseline. || Lint scope | Fixed: lint covers stale episodic pages, duplicate titles, rule suggestions, broken cross-project links, and optional LLM contradictions. || sqlite-vec status | Fixed: the vector policy documents packed vectors in SQLite with brute-force cosine as the current backend. || raw archive status | Fixed: docs distinguish reserved `raw/` files from implemented observation-FTS fallback. |