Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(memory): update confinement note to reflect new GuardedProfile family\n\nThe doc comment in the memory guard module now acknowledges that the previously missing `MemoryProfile` family exists in `tinymemory_api` and is implemented by `GuardedProfile`, so the guarded door is built. The note clarifies that the remaining work is migrating callers onto it and warns against the host-side half-measure of having `ProfileStore` consult `GuardPolicy` directly, which would introduce a behaviour change.\n\nAuto-committed-on: dragonfly\n

Steven Enamakelebeb307c16d6
diff --git a/src/openhuman/memory/guard/mod.rs b/src/openhuman/memory/guard/mod.rs
index 31655682c1..19987ab8f0 100644
--- a/src/openhuman/memory/guard/mod.rs
+++ b/src/openhuman/memory/guard/mod.rs
@@ -66,14 +66,25 @@
//! statement against `user_profile` is now inside the family, and the compiler
//! enforces that.
//!
-//! **That is confinement, not policy.** The contract has no profile/facet
-//! capability family, so `ProfileStore`'s reads and writes still run beneath
-//! every one of the seven steps above — no tier check, no source scope, no
-//! taint, no redaction, no budget, no audit. Closing *that* needs a fourteenth
-//! family in `tinycortex_api`, or a host-side half-measure where `ProfileStore`
-//! consults [`policy::GuardPolicy`] directly (which would make a `readonly`
-//! tier start rejecting learning-cache rebuilds — a behaviour change, not a
-//! refactor). Current unguarded profile callers:
+//! **That is confinement, not policy** — for the callers listed below, which
+//! still reach `ProfileStore` directly and so run beneath every one of the
+//! seven steps above: no tier check, no source scope, no taint, no redaction,
+//! no budget, no audit.
+//!
+//! This note used to say the fix "needs a fourteenth family in
+//! `tinycortex_api`". **That family now exists.** The contract has
+//! `MemoryProfile` (`tinymemory_api::provider::profile`, eleven methods) and
+//! [`families::GuardedProfile`] implements it, so the guarded door is built.
+//! What remains is migrating the callers below onto it, plus the release lag on
+//! the module that serves it — `MemoryProfile` is one of the five families that
+//! shipped in no released artifact until v1.2.0, so a caller moved onto it
+//! before the registry re-pin would get a runtime `Unsupported`. The host-side
+//! half-measure the note floated (having `ProfileStore` consult
+//! [`policy::GuardPolicy`] directly) is no longer the only option and should not
+//! be taken: it would make a `readonly` tier start rejecting learning-cache
+//! rebuilds, which is a behaviour change rather than a refactor.
+//!
+//! Current unguarded profile callers:
//!
//! - `memory/sync/composio/providers/profile.rs`
//! - `agent/learning/{tools,startup,schemas}.rs`