Skip to main content

Module runtime

Module runtime 

Source
Expand description

KhiveRuntime — composable handle to all storage capabilities.

RuntimeConfig, BackendId, NamespaceToken, and embedding model helpers live in super::config and are re-exported from here.

Re-exports§

pub use crate::config::assert_captured_db_anchor_consistent;
pub use crate::config::assert_db_anchor_consistent;
pub use crate::config::expand_tilde;
pub use crate::config::parse_pack_list;
pub use crate::config::resolve_db_anchor;
pub use crate::config::resolve_project_actor_id;
pub use crate::config::runtime_config_from_khive_config;
pub use crate::config::BackendId;
pub use crate::config::BackendIdError;
pub use crate::config::NamespaceToken;
pub use crate::config::RuntimeConfig;

Structs§

KhiveRuntime
for each storage capability, plus a lazily-loaded embedder.
NamedVectorIdentity
Immutable identity for a non-text vector store owned by a pack consumer.
OpenedDiagnosticBackend
An already-open serving backend eligible for operator diagnostics. Aliases of the same canonical database file share one entry.
RuntimeCloseHostTasks
Host resources that are outside this runtime’s join ownership.
RuntimeCloseOwner
Own every host-supplied runtime clone and its matching registry during eviction.
RuntimeCloseRoot
Strong references still keeping an observed root alive after teardown commits. Counts are snapshots, not an inventory of the identities holding references.

Enums§

RuntimeCloseError
A close refusal or incomplete release. None of these means eviction is safe.
RuntimeClosePhase
The reversible preflight and irreversible, resumable teardown boundary.
RuntimeCloseRootKind
A root for which the close owner retained a weak completion witness.

Functions§

inherit_request_embedder_scope
Carry the current request’s embedder exclusions into a spawned task.
scope_request_embedder_exclusions
Run one request with daemon-only embedding models excluded from registry access.

Type Aliases§

EntityKindHooks
Pack-aggregated entity-kind update hooks: (entity kind, hook) for every kind whose owning pack both declares it and registers a KindHook.
EntityTypeValidatorFn
Callback type for pack-installed entity-type validators.
NoteMutationHookFn
Callback type for a pack-installed note-mutation hook.
NoteWriteValidatorFn
Callback type for a pack-installed note-write validator.