Skip to content

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

Correct the create_segment namespace comment now insert_event exists\n\nThe comment claimed create_segment was "the only episodic call that\nnames a namespace, so it is the only one that can be admitted against\nit". That stopped being true when `insert_event` landed in this PR:\n`EpisodicEvent` carries a namespace, and the guard admits against\n`event.namespace` rather than `NO_NAMESPACE`. Reported by the fleet on\nopenhuman#5773 while reviewing the overlapping work.\n\nClaude-Session: https://claude.ai/code/session_01UsS36AGAjUaCnFNRHuCtmx\n

Shanu54e9e257c843
diff --git a/src/openhuman/memory/guard/families.rs b/src/openhuman/memory/guard/families.rs
index 3c14c33e82..d6c1770188 100644
--- a/src/openhuman/memory/guard/families.rs
+++ b/src/openhuman/memory/guard/families.rs
@@ -1400,8 +1400,10 @@ impl MemoryEpisodic for GuardedEpisodic {
start_timestamp: f64,
now: f64,
) -> Result<(), MemoryError> {
- // The only episodic call that names a namespace, so it is the only one
- // that can be admitted against it.
+ // One of the two episodic calls that names a namespace — `insert_event`
+ // is the other — so it is admitted against that namespace rather than
+ // `NO_NAMESPACE`. The rest of this family addresses a segment by id and
+ // has no namespace to check.
self.policy.admit_write(
Capability::Episodic,
"episodic.create_segment",