wasm-capability-contract 0.3.0

Generic, domain-agnostic capability pattern: CapabilityEngine/CapabilityRegistry/CapabilityDispatcher trait shapes + component/capability types. Trait definitions only -- see wasm-capability-core for this pattern's own default implementation, extracted from agent-runtime's ADR-001 (agent-runtime#31, ADR-011).
Documentation

wasm-capability-contract

TLDR: The contract layer (SEA L1) for the capability pattern — zero implementation, just the CapabilityEngine/CapabilityRegistry/ CapabilityDispatcher/ComponentValidator traits and the component/capability types they're expressed in terms of.

Trait Role
CapabilityRegistry Resolves a capability name to its dispatch descriptor
CapabilityDispatcher Executes one granted capability call
CapabilityEngine Loads and invokes a validated Wasm component's handler export
ComponentValidator Checks a component before its route is ever registered

Most consumers won't depend on this crate alone. For CapabilityRegistry, see the sibling wasm-capability-core crate in this same repository for a real, default implementation. For technology-specific implementations of the other three traits (wasmtime, wasmparser, and the Http/Grpc/Mcp/Secrets/Complete/Database dispatchers), see wasm-capability-system.

Documentation

Document Description
Overview WHAT + WHY
Architecture Component diagram, crate boundaries
ADR-001 Full design record for this contract/core split

License

MIT OR Apache-2.0