Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

Merge commit 'refs/audit/pr-1719' into integration/pr-1719

AkitaOnRails75a90841a3d1
diff --cc CHANGELOG.md
index 9d72389f,0a81bd8e..8176204f
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -11,70 -11,16 +11,73 @@@ version in [`docs/changelog/`](docs/cha
## [Unreleased]
-### Added
+### Fixed
+
++- The OpenCode version probe now waits up to 10 seconds instead of 2, allowing
++ cold-start executable scanning and loaded hosts without treating a working
++ installation as hung (#1718).
+- Fixed agentmemory imports resuming over destination body edits that retained
+ the original attribution footer. A resume now requires the complete body to
+ match a planned version before using its page id for the next conditional
+ write; identical imports still resume without duplicate versions (#1726).
+- Refused restore archives whose `db/memory.sqlite` snapshot is absent,
+ empty, or has no applied ai-memory migration history before replacing any
+ live data. Opening those sources previously initialized a new empty store
+ and let `restore --force` discard the previous database and wiki (#923).
+- Fixed `restore-agents` skipping files whose contents matched the archive
+ but whose Unix permissions differed, leaving executable plugins without
+ their execute bits. Permission-only changes now appear in the preview and
+ require `--apply --force`, with the usual backup copy (#962).
+- Fixed a saturated hook server blocking delivery to other servers sharing
+ the native spool. HTTP 429 now pauses only that endpoint for the current
+ drain pass, preserving unacknowledged events and their retry budget across
+ batched, fallback and retry delivery paths (#1283).
+- Fixed `ai-memory-wikisync sync` overwriting a concurrent server edit when
+ importing a repository edit. Edited files now use one full page read for
+ classification and the write precondition; a second read after a 304 could
+ previously accept the newer version without checking for a conflict (#986).
+- Restored affirmative profile preferences about tools, browsers and MCP.
+ The capability-ban filter also discarded statements such as "Always use
+ tools to verify facts"; it now requires negative or disabling wording.
+ Capability bans still need explicit cross-project scope (#1678).
+- Fixed `restore-page` accepting an explicitly empty `--workspace` or
+ `--project` and restoring a page in the current checkout's scope instead.
+ Empty and whitespace-only values are now refused before any request; omit
+ the flags to intentionally use the current scope, extending the guard
+ already used by purge commands (#1675).
+- `ai-memory-wikisync` records the server, workspace and project its export
+ state came from and refuses to reuse a destination for another scope before
+ writing anything. Reusing one made every page of the previous project read
+ as "deleted on the server", so `sync --propagate-deletes --apply` removed
+ those files and emptied the state. `--adopt-scope` is the explicit way to
+ take a destination over, and a baseline written before the field existed is
+ adopted on its first run with a warning (#1708).
+
+## [3.2.5] - 2026-10-25
+
+### Fixed
+
+- `ai-memory backup` and `ai-memory backup-agents` now carry a size that
+ would round to `1024.00` of the current unit into the next one. A backup
+ of 1 MiB - 5 bytes was printed as `1024.00 KiB` (#1705).
+- The OKF migration dialog now carries an archive size that would round to
+ `1024.0` of the current unit into the next one. An archive of 1 MB - 51
+ bytes was printed as `1024.0 KB` (#1706).
+
+## [3.2.4] - 2026-10-25
+
+### Security
-- `GET /admin/status` and `ai-memory status --json` now carry a
- `consolidation` block: the queue counts plus up to 20 `failed_sessions`
- (`session_id`, `attempts`, `failed_at_us`, scrubbed `last_error`), newest
- first. A consolidation run that gives up after its retries now has a
- machine-readable record with the session ids needed to re-run it, instead of
- only a journal line and the `/health` panel's count — which also resets with
- the process. The web health panel's own view stays counts-only, and an older
- server's status shape is unchanged (#1692).
+- A restricted project now stays closed when its access-mode or grant query
+ fails. The common authorization resolver previously degraded these store
+ failures to an open project, so an unrelated authenticated user could gain
+ access during a database fault. Unknown projects and forward-unknown access
+ modes retain their compatibility behavior, and normal root, creator and
+ grant access is unchanged.
+- Human-auth endpoints now log unexpected store and task failures server-side
+ and return a stable `authentication unavailable` response. Login and
+ recovery previously returned raw SQLite or task error text before the caller
+ authenticated; password-change conflicts also no longer expose store errors.
### Fixed
diff --cc crates/ai-memory-cli/src/commands/opencode_dialect.rs
index 12aad931,4e59f635..6ed6d4c9
--- a/crates/ai-memory-cli/src/commands/opencode_dialect.rs
+++ b/crates/ai-memory-cli/src/commands/opencode_dialect.rs
@@@ -268,6 -281,28 +281,30 @@@ mod tests
assert!(error.contains("version probe timed out"), "{error}");
}
+ #[cfg(unix)]
+ #[test]
- fn version_probe_tolerates_a_start_slower_than_two_seconds() {
++ fn version_probe_budget_leaves_room_for_a_slow_start() {
+ use std::os::unix::fs::PermissionsExt as _;
+
++ assert_eq!(PROBE_TIMEOUT, Duration::from_secs(10));
+ let temp = tempfile::tempdir().unwrap();
+ let executable = temp.path().join("opencode");
+ std::fs::write(
+ &executable,
- "#!/bin/sh\nsleep 3\nprintf '%s\\n' '1.18.34'\n",
++ "#!/bin/sh\nsleep 0.1\nprintf '%s\\n' '1.18.34'\n",
+ )
+ .unwrap();
+ std::fs::set_permissions(&executable, std::fs::Permissions::from_mode(0o755)).unwrap();
+
- let resolved = resolve_generic(
++ let resolved = resolve_generic_with_timeout(
+ Some(executable.as_os_str()),
+ &EffectiveChildEnv::from_runtime(&crate::config::RuntimeEnv::default()),
++ Duration::from_secs(1),
+ )
+ .unwrap();
+ assert_eq!(resolved.dialect, OpenCodeDialect::V1);
+ }
+
#[cfg(windows)]
#[test]
fn windows_explicit_extensionless_path_resolves_the_cmd_launcher() {