Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge main into PR #1457 after audited fixes
AkitaOnRailsc5eb225213e8
diff --cc CHANGELOG.mdindex 7e338f70,83b4837a..79868a9d--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -113,10 -160,26 +160,29 @@@ version in [`docs/changelog/`](docs/charanking. `contradiction_sql` now applies the `not_expired` guard on the targetpage, aligning belief input aggregation with the lint's resolved/stale split.([#1386](https://github.com/akitaonrails/ai-memory/pull/1386))+ - Stopped the LLM contradiction pass from auditing its previous+ `_lint/report.md` as a knowledge page, which could recycle stale findings or+ displace a real page from the bounded prompt. ([#1455](https://github.com/akitaonrails/ai-memory/pull/1455))- Kept the previous backup or OKF export intact when an archive download is interrupted, and publish completed downloads atomically. Successful downloads replace destination symlinks with private files rather than changing their targets or inheriting their permissions. ([#1381](https://github.com/akitaonrails/ai-memory/pull/1381))+- Read a first-line `.ai-memory.toml` scope key, flag, or `aliases`+ declaration when the marker starts with a UTF-8 BOM, in both native and+ legacy POSIX hook routing. ([#1457](https://github.com/akitaonrails/ai-memory/pull/1457))+ - Counted a latest page whose only stored vector belongs to another provider,+ model, or dimension as missing an embedding in `ai-memory status` and the+ web `/health` page, so the count no longer reads zero after an+ embedding-model switch.+ ([#1431](https://github.com/akitaonrails/ai-memory/pull/1431))+ - Bounded free-text search before the FTS5 parser sees it. A query of 100k+ distinct terms spent ~17.5 s in query preparation alone (and a ~500 KB+ document ~59 s end to end), and a NUL byte reached the phrase parser as+ end-of-input, surfacing `sqlite: unterminated string` as an internal error+ instead of a result. Query text is now folded (NUL becomes a space) and cut+ to the first 4 KiB on a UTF-8 boundary; ordinary queries are unchanged.+ ([#1434](https://github.com/akitaonrails/ai-memory/issues/1434))+ - Fixed generated OKF directory indexes so names containing spaces, Markdown+ punctuation, literal URL delimiters, or Unicode remain readable, clickable+ links in exports and newly generated migration indexes.+ ([#1438](https://github.com/akitaonrails/ai-memory/pull/1438))## [3.1.1] - 2026-10-17