Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
docs(changelog): describe the cross-origin fix without the recipe
AkitaOnRails6e80253f91ad
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f1b73019..f9dfd5ac 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,21 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]### Fixed-- Fixed a web page in the operator's browser being able to change state on an- unauthenticated loopback server (the default `127.0.0.1:49374`, no token).- Browsers send `GET` and body-less `POST` requests cross-origin without a- preflight, and the JSON-only extractors never see those: an `<img>` pointing- at `GET /handoff?workspace=…&project=…` claimed the project's single-use- handoff (and moved the anonymous active-project pointer), and a body-less- `POST /admin/profile/rebuild` ran a profile pass, LLM calls included. With- auth off, the machine and admin routes now refuse with 403 any request a- browser marks as cross-site (`Sec-Fetch-Site`) or whose `Origin` is not the- server's own host. Hooks, the CLI and MCP clients send neither header and- are unaffected; the built-in web UI's same-origin calls still pass; servers- with a bearer token are unchanged. A new end-to-end test drives every write- route with each preflight-free content type, a DNS-rebinding `Host` and CORS- preflights, and records the guard as row 12c in- `docs/security-boundaries.md`. (#TBD)+- Fixed a web page open in the operator's browser being able to act on an+ unauthenticated server (the loopback default, no token), such as claiming a+ project's pending handoff or starting admin jobs. With auth off, the machine+ and admin routes now refuse requests a browser marks as coming from another+ site; hooks, the CLI, MCP clients and the built-in web UI are unaffected, and+ servers with a bearer token are unchanged. Images in wiki pages rendered by+ the web UI are also limited to relative paths that stay inside the UI.+ (GHSA-6mc4-46pr-w82w)- Fixed the Jev choice reranker adapter silently fabricating scores from amalformed judge response: `docs/examples/jev-reranker-adapter/jev_rerank_shim_choice.py`defaulted missing or misnamed `probabilities` entries to `0.0`, so an HTTPdiff --git a/docs/security.md b/docs/security.mdindex 43488cb6..61241f93 100644--- a/docs/security.md+++ b/docs/security.md@@ -61,7 +61,9 @@ machine and admin routes: a request the browser marks as cross-site(`Sec-Fetch-Site`), or one whose `Origin` is not the server's own host, gets a403. Hooks, the CLI and MCP clients never send those headers. The `Host`allowlist refuses DNS-rebinding hostnames, and the JSON-only routes refuse the-content types a browser can send without a CORS preflight.+content types a browser can send without a CORS preflight. Images in wiki pages+rendered by the web UI may only use relative paths that stay inside the UI, so+viewing a stored page cannot make your browser call those routes either.Busy shared hook servers can also set `AI_MEMORY_HOOK_RATE_PER_SEC` (tokens persecond per actor/session source) and optionally `AI_MEMORY_HOOK_RATE_BURST` to