Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fixup(audit): CHANGELOG entry + no-op transition audit assertions
AkitaOnRails0b175c8f9d0b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 222aebf5..b6560a4c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Added+- `memory_delete_page` / admin `delete-page` now write one attributed+ `audit_log` row pointing at the deleted page id, in the same transaction+ as the delete — completing the "who deleted the gotcha page about X?"+ trail that purge/rename attribution started. Idempotent no-op deletes+ write nothing. The handoff lifecycle (insert / accept / cancel) is also+ audited, scoped to the handoff's workspace/project with a NULL author by+ design — handoffs are agent/session-keyed, not owned by a DB user+ ([#179]).+## [1.12.0] - 2026-07-12### Addeddiff --git a/crates/ai-memory-store/src/ops.rs b/crates/ai-memory-store/src/ops.rsindex c0ec265b..bdc13181 100644--- a/crates/ai-memory-store/src/ops.rs+++ b/crates/ai-memory-store/src/ops.rs@@ -2441,6 +2441,20 @@ mod tests {2,"two inserts → two rows");+ // Idempotent misses stay out of the trail: a double-accept and a+ // cancel of an already-accepted handoff change no row, audit nothing.+ accept_handoff(&mut conn, &id, AgentKind::Codex, None).unwrap();+ assert!(!cancel_handoff(&mut conn, &id).unwrap());+ assert_eq!(+ audit_row_for(&conn, "accept_handoff").0,+ 1,+ "a no-op double-accept must not write a second audit row"+ );+ assert_eq!(+ audit_row_for(&conn, "cancel_handoff").0,+ 1,+ "cancelling a non-open handoff must not write an audit row"+ );let ws_bytes: Option<Vec<u8>> = conn.query_row("SELECT workspace_id FROM audit_log WHERE op = 'accept_handoff'",