Skip to main content

CapabilityFeatures

Struct CapabilityFeatures 

Source
pub struct CapabilityFeatures {
Show 13 fields pub keyword_search: bool, pub semantic_search: bool, pub hybrid_recall: bool, pub query_expansion: bool, pub auto_consolidation: bool, pub auto_tagging: bool, pub contradiction_analysis: bool, pub cross_encoder_reranking: bool, pub memory_reflection: PlannedFeature, pub embedder_loaded: bool, pub recall_mode_active: RecallMode, pub reranker_active: RerankerMode, pub reflection_boost: ReflectionBoostReport,
}
Expand description

Boolean feature flags exposed in the capabilities report.

Fields§

§keyword_search: bool§semantic_search: bool§hybrid_recall: bool§query_expansion: bool§auto_consolidation: bool§auto_tagging: bool§contradiction_analysis: bool§cross_encoder_reranking: bool§memory_reflection: PlannedFeature

Memory-reflection (v0.7.0): planned-feature object. Was a bool before the v0.6.3.1 P1 honesty patch; an object now so operators can tell “feature exists but disabled” apart from “feature not in this build”.

v0.7.0 recursive-learning ship (issue #655). The flag is { planned: false, version: "v0.7.0", enabled: true } because the underlying primitive landed across Tasks 1-6 on feat/v0.7.0-recursive-learning:

  • Column (Task 1/8, commit f5d8a9e) — memories.reflection_depth INTEGER NOT NULL DEFAULT 0, first added in the recursive-learning schema bump (column inventory lives in docs/MIGRATION_v0.7.md; the current CURRENT_SCHEMA_VERSION is 53 in lockstep on both sqlite and postgres ladders as of v0.7.0 — v48 added federation_push_dlq (#933), v49 added 14 nullable archived_memories columns (#1025), v50 extended agent_quotas PK with namespace (#1156), v51 added federation_nonce_cache (#1255 / PR #1296), v52 added transcript_line_dedup (#1389 L4 / RFC-0001), v53 scoped the memories_au FTS5 sync trigger to (title, content, tags) only (R5.F5.2 / #1418)). Memory::reflection_depth: i32 with #[serde(default)] for wire-compat with pre-v0.7.0 federation peers.
  • Governance field (Task 2/8, commit 630a6db) — GovernancePolicy.max_reflection_depth: Option<u32> (per namespace, JSON metadata, no schema bump). Accessor effective_max_reflection_depth() -> u32 returns the compiled default 3 when unset; Some(0) is the documented kill-switch.
  • Relation (Task 3/8, commit b51a3f3) — reflects_on joins the canonical VALID_RELATIONS set; directionality matches derived_from (reflection is source_id, original is target_id); db::find_paths walks it without further work.
  • MCP tool (Task 4/8, commit 3dc76f3) — memory_reflect (Family::Power, tool count 51 → 52). Atomic insert of a reflection memory + N reflects_on link writes inside a single BEGIN IMMEDIATE / COMMIT transaction. Postgres parity via inherent PostgresStore::reflect.
  • Error variant (Task 4/8) — MemoryError::ReflectionDepthExceeded { attempted: u32, cap: u32, namespace: String } → HTTP 409 CONFLICT, code REFLECTION_DEPTH_EXCEEDED.
  • Hook events (Task 6/8, commit fbf093c) — HookEvent::PreReflect (decision-class, EventClass::Write, 5s deadline, fires before the depth-cap check, Deny vetoes via ReflectError::HookVeto) + HookEvent::PostReflect (notify-class, EventClass::Write, 5s deadline, fires after COMMIT). Pipeline event count 21 → 23.
  • Audit chain (Task 5/8, commit c61a05b) — every depth-cap refusal appends a reflection.depth_exceeded row to the append-only signed_events audit table under a canonical-CBOR payload + SHA-256 payload_hash + attest_level = "unsigned". Content body is deliberately omitted (PII guarantee); hook vetoes are NOT audited by this row (caller-policy refusals carry their own provenance).

The v1 wire-shape projection collapses this object back to a single bool (via Capabilities::to_v1), so pre-v0.6.3.1 clients that pinned the v1 schema continue to see the same boolean field at the same path (and now read true).

§embedder_loaded: bool

v0.6.2 (S18): runtime-observed embedder state. semantic_search above reflects configured capability (derived from the tier’s embedding_model setting). embedder_loaded reflects actual state after Embedder::load() attempted to materialize the HuggingFace model on startup. When an operator configures the semantic tier but the model download or mmap fails (offline runner, read-only fs, missing tokens), semantic_search=true would mislead. This flag exposes the truth so setup scripts can assert the daemon is actually ready for semantic recall before dispatching scenarios. Default false; populated by handle_capabilities when the HTTP/MCP wrapper hands in the live embedder handle.

§recall_mode_active: RecallMode

v0.6.3.1 (P1 honesty patch): runtime recall-mode tag. Reflects the live embedder + LLM availability, not the configured tier. See RecallMode.

§reranker_active: RerankerMode

v0.6.3.1 (P1 honesty patch): runtime reranker-mode tag. Reflects the live CrossEncoder variant. See RerankerMode.

§reflection_boost: ReflectionBoostReport

v0.7.0 L2-8 — reflection-aware reranker boost configuration. boost = 1.0 means the boost is disabled and the reranker reproduces its pre-L2-8 behavior. Default (1.2) is the value the daemon ships with; operators can inspect this to verify the live boost matches their configured policy. Skipped from the wire when serialising a pre-L2-8 default so older capabilities consumers round-trip cleanly.

Trait Implementations§

Source§

impl Clone for CapabilityFeatures

Source§

fn clone(&self) -> CapabilityFeatures

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 Debug for CapabilityFeatures

Source§

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

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

impl<'de> Deserialize<'de> for CapabilityFeatures

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CapabilityFeatures

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

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

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