Kernel Modules
Where each part of the clawft-kernel crate is documented, grouped by subsystem. The per-file reference was removed because it could not be kept in step with the code.
WeftOS Kernel Modules
crates/clawft-kernel/src/ has 224 entries (files and directories) and exports 187 top-level modules at 0.8.4 (git ls-tree count and grep -c '^pub mod\|^mod ' src/lib.rs). The earlier version of this page was a per-file reference for 25 source files with line counts and public API listings. It had drifted badly (for example it described IpcScope variants SameAgent and Named and a SandboxPolicy enum that do not exist, and Pid as u32 when it is u64), so it was replaced by this index. Per-type detail is in the pages below, each checked against the code; for anything else read the module header in the source, which is kept next to the code.
Which feature each module needs is in the table on Kernel Architecture and in Feature Flags.
| Subsystem | Modules | Page |
|---|---|---|
| Boot and lifecycle | boot, console, config, error | Boot Sequence |
| Processes and supervision | process, supervisor, agent_registry, monitor, reconciler | Process Table, Self-Healing |
| Capabilities | capability, capability_claim | Capabilities |
| IPC and messaging | ipc, a2a, topic, agent_loop, dead_letter | IPC |
| Services | service, health, cron, timer, config_service, auth_service | Config and Auth, Observability |
| Audit chain | chain*, tree_manager, gate, token_authority | ExoChain |
| Governance | governance, governance_overlay, governance_project, workload_governance, parent_policy, environment, agency | Governance |
| Sandbox and containers | wasm_runner, container, app | WASM Sandbox, Containers, App Framework |
| Cognitive substrate | causal*, cognitive_tick, crossref, calibration, hnsw_service, embedding*, vector_*, spatial_*, democritus, weaver | ECC, DEMOCRITUS, Adaptive HNSW |
| Persistence | persistence, eml_persistence, chain_storage | Persistence |
| Mesh | mesh* (54 non-test modules), cluster, node_facts, node_registry | Mesh Networking, Clustering |
| Workloads, cogs and placement | workload_*, cog_ingest, infer_proxy, exposure, licence | Platform |
| Security | revocation, rate_limit, key_rotation, mesh_admit | Security Model |
Adding a module: see "Adding a New Kernel Module" in the Kernel Developer Guide.