Expand description
Pack runtime trait and verb registry (ADR-025 step 2).
Packs register verbs into the runtime. The registry routes verb calls to the pack that declares them.
Pack (in khive-types) uses const associated items which are not
object-safe. PackRuntime mirrors that metadata as methods so the
registry can store packs as trait objects. See ADR-025 §PackRuntime.
Lifecycle: build with VerbRegistryBuilder, then call .build() to
get a cheaply-cloneable VerbRegistry. Registration is only possible
through the builder.
Structs§
- Edge
Endpoint Rule - A pack-declared endpoint rule for a specific edge relation (ADR-031).
- Handler
Def - Handler metadata for discovery and documentation (ADR-023, ADR-025).
- Note
Kind Spec - Kind-level schema specification for a note kind (ADR-004 §NoteKindSpec).
- Note
Lifecycle Spec - Lifecycle specification for a note kind (ADR-004 §NoteKindSpec).
- Pack
Registration - Newtype wrapper collected by
inventoryso pack crates can submit&'static dyn PackFactoryreferences without the type-ascription syntax thatinventory::submit!does not support for bare trait-object references (ADR-027). - Pack
Registry - Registry of pack factories discovered via
inventoryat link time (ADR-027). - Pack
Schema Plan - DDL statements the pack needs applied to the auxiliary schema (ADR-019).
- Param
Def - Parameter type for
help=trueschema envelopes. - Schema
Plan - Pack-auxiliary schema plan (ADR-017 §Storage profile and pack-auxiliary schema).
- Verb
Registry - Immutable registry that dispatches verb calls to registered packs.
- Verb
Registry Builder - Builder for constructing a
VerbRegistry.
Enums§
- Endpoint
Kind - Match spec for one end of an
EdgeEndpointRule(ADR-031). - Pack
Load Error - Error returned by
PackRegistry::register_packswhen boot validation fails. - Verb
Category - Illocutionary force classification for a verb handler (ADR-025).
- Verb
Presentation Policy - Presentation override for a verb handler (ADR-045 §6 per-verb opt-out).
- Visibility
- Visibility tier for a handler (ADR-023).
Traits§
- Dispatch
Hook - Hook called after every successful verb dispatch (Issue #158).
- Kind
Hook - Per-kind specialization for shared CRUD (ADR-030).
- Pack
Factory - Factory for creating pack instances registered via
inventoryat link time (ADR-027). Each pack crate submits a&'static dyn PackFactorywrapped in aPackRegistration; the binary’s linker collects them all into a single slice iterable at runtime. - Pack
Runtime - Async dispatch trait for packs (ADR-025).
Type Aliases§
- VerbDef
Deprecated - Backward-compatible type alias. Existing code that names
VerbDefstill compiles; new code should useHandlerDefdirectly (ADR-023).