Skip to main content

Module config

Module config 

Source
Expand description

RuntimeConfig, BackendId, NamespaceToken, and embedding model helpers.

Structs§

BackendId
Identifies a named backend in a multi-backend deployment.
NamespaceToken
Authorization proof that a caller is permitted to access a specific namespace.
RuntimeConfig
Runtime configuration.

Functions§

assert_db_anchor_consistent
Assert that a resolved db_path: which compute_config_id folds into a process’s config_id: agrees with what resolve_db_anchor derives from the same --db/KHIVE_DB input. Call this right after db_path is resolved at each construction boundary.
parse_pack_list
Parse a comma- or whitespace-separated pack list from a single string.
resolve_db_anchor
Resolve the --db/KHIVE_DB value into the anchor path used for tier-3 project-local .khive/config.toml discovery, mirroring the precedence kkernel mcp and kkernel exec use to open the database itself: :memory: has no file to anchor on (None); an explicit path anchors on that path; an unset value falls back to $HOME/.khive/khive.db, or ./.khive/khive.db when HOME is unset.
resolve_project_actor_id
Resolve the per-connection attribution actor from the project/cwd-anchored config tier, independently of the database-anchored config load that governs config_id.
runtime_config_from_khive_config
Build a RuntimeConfig from a parsed KhiveConfig.