pub enum GateId {
FtsRead,
EmbeddingRead,
ContextRead,
HealthRead,
SessionWrite,
CommitWrite,
}Expand description
Logical gate IDs that a tool activates when called.
These map 1-to-1 with the gate equivalents enforced by the CLI. A tool
that reads FTS data must declare GateId::FtsRead; a tool that writes
session state must declare GateId::SessionWrite and
GateId::CommitWrite.
The full set declared here reflects the gates needed by the five stable tools defined in ADR 0045 §2. Future tools must add gate IDs here before implementing.
Variants§
FtsRead
Gate for FTS5 full-text search reads (cortex_search).
EmbeddingRead
Gate for embedding-index reads (cortex_search with semantic: true).
ContextRead
Gate for context-pack reads (cortex_context).
HealthRead
Gate for memory-health count reads (cortex_memory_health).
SessionWrite
Gate for session-event write path (cortex_session_close).
CommitWrite
Gate for ledger/commit write path (cortex_session_close).
Trait Implementations§
impl Copy for GateId
impl Eq for GateId
impl StructuralPartialEq for GateId
Auto Trait Implementations§
impl Freeze for GateId
impl RefUnwindSafe for GateId
impl Send for GateId
impl Sync for GateId
impl Unpin for GateId
impl UnsafeUnpin for GateId
impl UnwindSafe for GateId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.