Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
docs: add #913 CHANGELOG entry and the #919 occurred_at boundary row
AkitaOnRails6c5692f0fa77
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cd543c15..249e11e4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -55,6 +55,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0unchanged — this only makes the existing warning reliably visible. (#903)### Fixed+- OMP (OpenClaw) tool calls are recorded again. OMP was missing from the+ closed-tool-agent set, so its tool events fell through the OpenCode-only+ legacy body reader and produced an empty excerpt — nothing reached session+ pages, handoffs, or consolidation. OMP now renders through the Pi tool+ schema like the other closed-tool agents (only `output` is kept as the+ excerpt; `args`/`details` stay excluded, still through the sanitizer). (#913)- A page whose `expires_at` is a bare date (`2026-10-01`) now gets an OKF`stale_after` that names the instant the TTL expires it(`2026-10-01T23:59:59.999999Z`) instead of the date copied verbatim. OKFdiff --git a/docs/security-boundaries.md b/docs/security-boundaries.mdindex 48a24bf8..d4c55ce9 100644--- a/docs/security-boundaries.md+++ b/docs/security-boundaries.md@@ -43,6 +43,7 @@ boundary not yet built.| 11c | Capture hook ≤200ms budget (invariant #5) | `hooks/_lib.sh` capture path `curl --max-time 0.2` (context-fetch 1.0s and background drain 2.0s are separate, larger-budget paths) | none (shell-script timeout; hard to unit-test) — watch on any capture-path change | WATCH || 12 | Network/auth posture | `config.rs` loopback `DEFAULT_BIND`; `serve.rs` `validate_http_exposure`, `require_allowed_host`; `auth.rs` `require_bearer` | `serve.rs` host-guard (missing→400 / forged→403), non-loopback-requires-token; `auth.rs` wrong-token 401 | STRONG || 13 | Managed-run transcript attribution (concurrent launches in one checkout, invariant #16) | `ai-memory-store/src/workstream.rs` `link_native_session` stamps `native_session_linked_at` on its own run only, both `finish` updates drop the stamp when the session changes, `run_status` reports it; `ai-memory-cli/src/commands/run.rs` `resolve_native_session_after_run` takes a linked session only when `ai-memory-workstream` `native_session_in_checkout` holds it for this checkout (OpenCode by recorded directory), and never falls back to a link it set aside | `multi_session.rs` `a_session_linked_by_one_managed_run_is_not_another_runs`; `run.rs` `a_session_linked_during_the_run_wins_over_discovery` (concurrent newer session, another checkout's link refused, no fallback to it, unlinked control); `transcript.rs` `native_session_in_checkout_checks_the_opencode_directory`; `store/src/lib.rs` `managed_run_status_reports_a_link_made_during_the_run` | PARTIAL: a run whose child links nothing still falls back to discovering the newest session in the checkout |+| 14 | Client-supplied event time is bounded and self-scoped (#919) | `ai-memory-hooks/src/payload.rs` `HookEnvelope::occurred_at_micros` — a `/hook` caller's optional `occurred_at` must be `> 0` and `<= now + 5min`; it only sets the caller's *own* admitted session's `started_at`/`ended_at`/`created_at`, never another session/project/user, and the ingest dedup `seen_at`/TTL stays on `now` | `payload.rs` `occurred_at_micros_rejects_a_far_future_timestamp`, `…_rejects_non_positive_values`, `…_rejects_garbage_strings` | MEDIUM — self-scoped numeric bound; no cross-tenant surface (a client already controls its own content) || — | Per-project authorization (#708) | proposal only — `docs/design-per-project-authz.md` (`authorize_project` choke point + unscoped-read/raw-id bypass classes) | none yet — the design's "Verification plan" tests (authz matrix, unscoped-read-leak, raw-id-authz, ship-inert) land WITH the code | FUTURE |## Keeping this current (the standing protocol)