Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge main into fix/feedback-unknown-target-invalid-params
AkitaOnRails1f115c0f523f
diff --cc CHANGELOG.mdindex 780a1b18,24e13903..b721b36a--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -13,13 -13,55 +13,62 @@@ version in [`docs/changelog/`](docs/cha### Fixed+- `memory_feedback` now answers a path with no current page in the resolved+ project with `invalid_params` (-32602) rather than `internal_error`+ (-32603). An absent caller-supplied target is the request being wrong, not+ the server failing, and -32603 tells a client to retry a path that can+ never succeed. This was the last tool reporting an absent target as a+ server fault; genuine store failures are still `internal_error`, and the+ message is unchanged (#1634).+ - A Qwen Code `UserPromptSubmit` body is now capped and scrubbed before the+ native hook spools it. The per-event cap covered `prompt`, `message` and+ `text`, but Qwen's prompt arrives in `submitted_prompt` — the field the+ harness-specific extraction reads — so a Qwen prompt reached the local spool+ and the server at full length with no client-side redaction pass. The field+ is now capped alongside its siblings; nothing falls back to the generic+ `prompt`, so submission provenance is unchanged (#1633).+ - The forget sweep now keeps an already-compacted page terminal when+ `compact_cold_episodic` is off — the default everywhere. The guard that made+ a page carrying the V65 `compacted_at` marker "neither re-compacted nor+ evicted" sat inside the compaction arm only, so with compaction off such a+ page was tombstoned and then hard-deleted. The marker is not A2's alone: the+ A3 cold-cluster dedup merge-note stub and the B2 dream pass both stamp+ `compacted: true` under their own flags, so the durable residue a merge chose+ to keep could be destroyed without anyone enabling compaction. A+ non-compacted cold page is still evicted exactly as before (#1632).+ - A project whose every page has passed its TTL is read as new again when+ the profile digest sizes itself. The newness probe was the one `pages` read+ in the profile module without the expiry guard its three siblings apply, so+ such a project still counted as having memory: it got the smaller+ established-project digest and lost the note offering+ `ai-memory profile apply`, with no live page left to show for it (#1631).+ - The first start after the 3.2.0 upgrade no longer slows down as the+ one-time CJK index backfill (V87) progresses. Each batch filtered the source+ table from its first row again, so the pass probed every row it had already+ indexed once more per batch: quadratic in the row count, and hours of+ startup on a store with 1.6 million observations while `serve` answered+ nothing. Each batch now resumes after the last rowid it indexed, so every+ row is examined once (#1652).+ - Restoring a page from a checkpoint (`/admin/restore-page`) no longer+ rewrites the restored file's `generated.at` to the current time when the+ checkpoint is already OKF-conformant. The restore now keeps the+ checkpoint's own timestamp when conformance leaves the rest of its+ frontmatter unchanged and the file on disk holds other content, so a+ checkpoint emitted by ai-memory restores byte for byte whatever the clock.+ When the file on disk already holds the same content, its timestamp is kept+ so file and row stay aligned; checkpoints that need conformance still go+ through the existing inheritance and stamping rules (#1671).+ - The native Windows Docker wrapper now recognizes `upgrade` after valid+ `--config` or `--data-dir` global options and pulls the image instead of+ forwarding `upgrade` into the helper container. Unknown and malformed+ options still reach the CLI parser (#1667).+ - `ai-memory run codex` no longer starts a new session when Codex has+ compressed the linked rollout. Codex keeps a rollout it has not written for+ a week as `rollout-*.jsonl.zst`, which the launcher did not recognize, so it+ reported the session as missing and repointed the workstream to a fresh one.+ The compressed copy is now read for the resume, the pre-launch baseline and+ the transcript import, and the plain file wins when both exist. `backfill`+ and the session listings see compressed Codex sessions too (#1653).- Updated tokio to 1.54.1 in the server, relay, importer and wikisynclockfiles. 1.52.3 and the 1.53.x releases before 1.53.3 fall insideRUSTSEC-2026-0386, an unsound advisory for `AsyncFd` constructors that