causa_runtime/composition.rs
1//! Composition layer — adapters bridging kernel ports into each other.
2//!
3//! [`ToolBridge`] adapts a `(DynamicToolSource, ToolDefinition)`
4//! pair into a plain [`Tool`](causa_kernel::Tool). It is the executor's dynamic-dispatch
5//! adapter (an invocation binding wraps a dynamic definition in a
6//! bridge so it runs the same path as a local tool) and the
7//! canonical home of the `ToolExecutionError` → status mapping. Hosts that
8//! prefer snapshot semantics (list once, register as static tools) reuse
9//! the same bridge directly; for live catalogs prefer
10//! `ToolExecutor::register_dynamic`.
11
12mod bridge;
13
14pub use bridge::ToolBridge;