clawft-kernel 0.2.1

WeftOS kernel: boot sequence, process table, service registry, and health subsystem
docs.rs failed to build clawft-kernel-0.2.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: clawft-kernel-0.1.1

WeftOS kernel layer for clawft.

This crate provides the kernel abstraction layer that sits between the CLI/API surface and clawft-core. It introduces:

  • Boot sequence ([boot::Kernel]) -- lifecycle management wrapping AppContext with structured startup/shutdown.
  • Process table ([process::ProcessTable]) -- PID-based agent tracking with state machine transitions.
  • Service registry ([service::ServiceRegistry]) -- named service lifecycle with health checks.
  • IPC ([ipc::KernelIpc]) -- typed message envelopes over the existing MessageBus.
  • Capabilities ([capability::AgentCapabilities]) -- permission model for agent processes.
  • Health monitoring ([health::HealthSystem]) -- aggregated health checks across all services.
  • Console ([console]) -- boot event types and output formatting for the interactive kernel terminal.
  • Configuration ([config::KernelConfig]) -- kernel-specific settings embedded in the root config.
  • Containers ([container::ContainerManager]) -- sidecar container lifecycle and health integration.
  • Applications ([app::AppManager]) -- application manifest parsing, validation, and lifecycle state machine.
  • Cluster ([cluster::ClusterMembership]) -- multi-node cluster membership, peer tracking, and health.
  • Environments ([environment::EnvironmentManager]) -- governance-scoped dev/staging/prod environments.
  • Governance ([governance::GovernanceEngine]) -- three-branch constitutional governance with effect algebra scoring.
  • Agency ([agency::Agency]) -- agent-first architecture with roles, spawn permissions, and agent manifests.

Feature Flags

  • native (default) -- enables tokio runtime, native file I/O.
  • wasm-sandbox -- enables WASM tool runner (Phase K3).
  • containers -- enables container manager (Phase K4).
  • ecc -- enables ECC cognitive substrate (Phase K3c).

Crate Ecosystem

WeftOS is built from these crates:

Crate Role
weftos Product facade -- re-exports kernel, core, types
clawft-kernel Kernel: processes, services, governance, mesh, ExoChain
clawft-core Agent framework: pipeline, context, tools, skills
clawft-types Shared type definitions
clawft-platform Platform abstraction (native/WASM/browser)
clawft-plugin Plugin SDK for tools, channels, and extensions
clawft-llm LLM provider abstraction (11 providers + local)
exo-resource-tree Hierarchical resource namespace with Merkle integrity

Source: https://github.com/weave-logic-ai/weftos