Skip to main content

VALID_SCOPES

Constant VALID_SCOPES 

Source
pub const VALID_SCOPES: &[&str];
Expand description

Closed set of visibility scopes stamped into metadata.scope (Task 1.5). Controls which agents can see a memory via hierarchical namespace matching. Memories without a scope field are treated as private by the query layer.

Migration in progress: new call sites should construct MemoryScope directly and serialise via MemoryScope::as_str. The const stays as the canonical string-validation surface for back-compat; the enum’s MemoryScope::all_strs returns this exact slice so the two SSOTs stay in lockstep, pinned by tests/memory_scope_count_invariant.rs.