Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge main into up/request-id-correlation
Akita On Railsb69072e9d697
diff --cc CHANGELOG.mdindex 4a6b54cb,8793f4d5..9a8c4d29--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -321,16 -323,22 +331,30 @@@ and this project adheres to [Semantic Vbefore use or persistence. Invalid historical identities were projected asunknown (`native_session_id: ""`) in workstream search without rewritingstored history; the CLI also protected reads from older servers. (#1079)+ - Ordered the default single-page and batch consolidation prompts for+ prefix-cache reuse: in the user content, the fixed batch text (header ++ field schema) and the project instructions now lead, followed by the+ current body / slot and title state, with the session id and the+ observation dump last. In the single-page prompt the current body is+ the session's own page body, so the prefix shared across sessions of+ one project is the system prompt plus the instructions block when+ present. The system prompt, budget math, clipping, and observation+ selection are unchanged — blocks were only permuted — and the input+ budget remains an approximate character estimate (no tokenizer+ ceiling, no cache hit guaranteed). (#1102)+- The consolidation and auto-improve operation id is now a fresh UUID v7+ generated by the caller of the LLM operation — once per consolidation+ invocation and once per auto-improve review — and is never derived from+ the agent's session id, so two operations of one session (or a+ crash-resumed or re-claimed run of the durable consolidation queue) are+ distinct operations to the gateway. Crash re-entry is exactly one new+ operation: a process restart or a queue re-claim mints a new id for the+ calls it makes. (#1104)### Fixed+ - Fixed `memory_feedback` storing an unmatched secret prefix when a `reason`+ straddled the 500-character cap: the reason is now scrubbed before the cap+ is applied, matching the #980 title-hint order. (#1109)- Fixed hook `title_hint` extraction leaving a trailing CR on Windows CRLFpayloads and keeping embedded newlines on SessionStart, Notification, andPostCompaction titles. First-line splitting now uses `str::lines`. (#1111)