Skip to main content

Family

Enum Family 

Source
pub enum Family {
    Core,
    Lifecycle,
    Graph,
    Governance,
    Power,
    Meta,
    Archive,
    Other,
}
Expand description

A tool family. Source-anchored at crate::mcp::registry::tool_definitions() 2026-05-05. Counts must sum to 51 (the v0.6.3.1 baseline of 43 + v0.7.0 I4 memory_replay + v0.7 H4 memory_verify (both in Family::Graph) + v0.7 B1 memory_load_family and v0.7 B2 memory_smart_load in Family::Core + v0.7 K7 memory_subscription_replay and memory_subscription_dlq_list in Family::Power + v0.7 J7 memory_find_paths in Family::Graph + v0.7 K8 memory_quota_status in Family::Power).

Variants§

§

Core

store, recall, list, get, search, load_family, smart_load — 7 (load_family added in v0.7 B1 — always-on family loader that returns the top-k recent + high-priority memories whose metadata.family matches one of the eight enum names; smart_load added in v0.7 B2 — intent-routed front door that picks the best Family from a free-text intent and forwards to memory_load_family.)

§

Lifecycle

update, delete, forget, gc, promote — 5

§

Graph

kg_query, kg_timeline, kg_invalidate, link, get_links, entity_register, entity_get_by_alias, get_taxonomy, replay, verify, find_paths — 11 (replay added in v0.7.0 I4 — joins to the I2 transcript-link substrate to reconstruct a memory’s source transcript chain; verify added in v0.7 H4 — re-checks the Ed25519 signature on a stored memory_links row.)

§

Governance

pending_list/approve/reject, namespace_set/get/clear_standard, subscribe, unsubscribe — 8

§

Power

consolidate, detect_contradiction, check_duplicate, auto_tag, expand_query, inbox, subscription_replay, subscription_dlq_list, quota_status — 9 (v0.7 K7 added the two operator/governance subscription-reliability tools — replay events from the audit log + inspect the DLQ; v0.7 K8 added memory_quota_status for the per-agent rate-limit + storage-cap substrate.)

§

Meta

capabilities, agent_register, agent_list, session_start, stats — 5

§

Archive

archive_list, archive_purge, archive_restore, archive_stats — 4

§

Other

list_subscriptions, notify — 2

Implementations§

Source§

impl Family

Source

pub fn for_tool(name: &str) -> Option<Self>

Lookup the family that owns a given tool name. Source-anchored at crate::mcp::registry::tool_definitions() 2026-05-04. Every name listed in the v0.6.3.1 baseline is covered; None means the tool is either unknown to this enumeration or moved out of bounds (which should make tool_definitions_returns_43_tools red and force a reconciliation).

Source

pub const fn name(self) -> &'static str

Lowercase canonical name as used in CLI/env/config.

Source

pub const fn all() -> &'static [Family]

All eight families in declaration order. Useful for --profile full and for the ProfileParseError::UnknownFamily diagnostic.

Source

pub const fn expected_tool_count(self) -> usize

Number of MCP tools advertised by this family.

Derived from Family::tool_names — that slice is the single source of truth for both the names AND the count. Adding a tool to a family is therefore exactly one edit (append a tn::* entry to the slice arm); every count that depends on it — per-profile expectations, the full-profile total, the registry lockstep — recomputes automatically. There are NO hand-maintained per-family magic numbers here by design (the historical match self { Core => 7, … } form drifted whenever a tool landed without the matching count bump).

Source

pub const fn tool_names(self) -> &'static [&'static str]

v0.7.0 A2 — tool names belonging to this family. Forward of the Family::for_tool reverse map; source-anchored at crate::mcp::registry::tool_definitions() 2026-05-04 (same anchor as Family::for_tool and Family::expected_tool_count). Order is the order each tool appears in tool_definitions_for_profile’s registration walk, so an LLM-facing preview (“the first three tools loaded”) aligns with the actual tools/list output.

This slice is the single source of truth for the family’s tool set. Family::expected_tool_count derives its return value from self.tool_names().len(), and the family_tool_names_cover_registry_all unit test pins the union of all families against the canonical registry set.

Trait Implementations§

Source§

impl Clone for Family

Source§

fn clone(&self) -> Family

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Family

Source§

impl Debug for Family

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Family

Source§

impl FromStr for Family

Source§

type Err = ProfileParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Family

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Family

Source§

fn cmp(&self, other: &Family) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Family

Source§

fn eq(&self, other: &Family) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Family

Source§

fn partial_cmp(&self, other: &Family) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for Family

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more