Expand description
RuntimeConfig, BackendId, NamespaceToken, and embedding model helpers.
Structs§
- Backend
Id - Identifies a named backend in a multi-backend deployment.
- Namespace
Token - Authorization proof that a caller is permitted to access a specific namespace.
- Runtime
Config - Runtime configuration.
Enums§
- Backend
IdError - Validation error returned when a backend identifier is rejected.
Functions§
- ann_
fresh_ tail_ enabled_ from_ env - Sample ADR-118’s fresh-tail escape hatch for runtime construction.
- assert_
captured_ db_ anchor_ consistent - Assert that a resolved
db_path: whichcompute_config_idfolds into a process’sconfig_id: agrees with the database anchor captured from the same--db/KHIVE_DBinput at the construction boundary. - assert_
db_ anchor_ consistent - Assert that a resolved
db_path: whichcompute_config_idfolds into a process’sconfig_id: agrees with whatresolve_db_anchorderives from the same raw--db/KHIVE_DBinput. - expand_
tilde - Expand a leading
~to$HOMEin a path. - parse_
pack_ list - Parse a comma- or whitespace-separated pack list from a single string.
- process_
ref_ from_ env - Read the optional request-origin process reference without normalization.
- resolve_
db_ anchor - Resolve the
--db/KHIVE_DBvalue into the anchor path used for tier-3 project-local.khive/config.tomldiscovery, mirroring the precedencekkernel mcpandkkernel execuse to open the database itself::memory:has no file to anchor on (None); an explicit path anchors on that path (with a leading~expanded viaexpand_tilde); an unset value falls back to$HOME/.khive/khive.db, or./.khive/khive.dbwhenHOMEis unset. - resolve_
default_ display_ timezone - Resolve the host’s local IANA zone name once, for
RuntimeConfig’s defaultdisplay_timezone(ADR-169). Falls back to UTC when the host zone cannot be determined (e.g.TZ//etc/localtimeunreadable) or does not parse as a knownchrono_tz::Tz— this must never panic or block construction of a defaultRuntimeConfig. - 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
RuntimeConfigfrom a parsedKhiveConfig.