clawft

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.

SubsystemModulesPage
Boot and lifecycleboot, console, config, errorBoot Sequence
Processes and supervisionprocess, supervisor, agent_registry, monitor, reconcilerProcess Table, Self-Healing
Capabilitiescapability, capability_claimCapabilities
IPC and messagingipc, a2a, topic, agent_loop, dead_letterIPC
Servicesservice, health, cron, timer, config_service, auth_serviceConfig and Auth, Observability
Audit chainchain*, tree_manager, gate, token_authorityExoChain
Governancegovernance, governance_overlay, governance_project, workload_governance, parent_policy, environment, agencyGovernance
Sandbox and containerswasm_runner, container, appWASM Sandbox, Containers, App Framework
Cognitive substratecausal*, cognitive_tick, crossref, calibration, hnsw_service, embedding*, vector_*, spatial_*, democritus, weaverECC, DEMOCRITUS, Adaptive HNSW
Persistencepersistence, eml_persistence, chain_storagePersistence
Meshmesh* (54 non-test modules), cluster, node_facts, node_registryMesh Networking, Clustering
Workloads, cogs and placementworkload_*, cog_ingest, infer_proxy, exposure, licencePlatform
Securityrevocation, rate_limit, key_rotation, mesh_admitSecurity Model

Adding a module: see "Adding a New Kernel Module" in the Kernel Developer Guide.

On this page