Expand description
kian-plugin — Ctx registry, Plugin trait, five-mode dispatch, Disposer.
DESIGN §7 assigns this crate the key interfaces Ctx, Plugin,
Disposer; the design mapping lives in DESIGN §6 (“Plugin system
(Cordis-inspired, Rust-ized)”). Static, compile-time registration only
in built-in (ADR-004) — no dynamic loading.
The seam definitions live in kian_core::seams; this crate consumes
them and never redefines them.
Modules:
ctx— typed service registry,Plugin/PluginSetactivation,Disposerdispatch— five-mode typed-event dispatch (emit/waterfall/parallel/serial/bail)hooks— the hook-plugin vocabulary (closed catalog, payload views, capability grants), the hook-scoped tier-0 registry and theHookBusdispatch core (PLUGIN-SPEC v2.2, ADR-028)
Re-exports§
pub use ctx::Ctx;pub use ctx::Disposer;pub use ctx::Plugin;pub use ctx::PluginError;pub use ctx::PluginSet;pub use ctx::Service;pub use dispatch::BailHandler;pub use dispatch::Flow;pub use dispatch::Observer;pub use dispatch::SerialHandler;pub use dispatch::WaterfallMiddleware;pub use dispatch::WaterfallNext;
Modules§
- ctx
Ctxtyped service registry,Plugin, activation,Disposer(DESIGN §6.1, ADR-004).- dispatch
- Five-mode typed-event dispatch (DESIGN §6.1; mode semantics follow Cordis).
- hooks
kian-plugin::hooks— the hook-plugin core (PLUGIN-SPEC v2.2, ADR-028): the closed hook vocabulary, the §3.2 payload views, the §5 grant model, the hook-scoped tier-0 registry and theHookBusdispatch core. P3a adds the sidecar tier’s runner/ABI/manifest (sidecar); the config surface, per-worker resolution and the set digest are P3b.
Macros§
- kian_
plugins - Compile-time plugin registration (ADR-004): assembles a
PluginSetfrom plugin values. The activation order is not the listing order —PluginSet::activatederives a deterministic topological order from the plugins’ declared dependencies.