Skip to main content

Crate wm_substrate

Crate wm_substrate 

Source
Expand description

wm-substrate — hardware awareness for WhiteMagic (Lakshmi / Harmony Vector).

Reads real system metrics from /proc and /sys on Linux, providing a HarmonyVector that feeds into the governance pipeline via Homeostasis. On non-Linux or when files are unavailable, gracefully degrades to default values.

This is the “body” of the cognitive system — the nervous system that gives the mind awareness of its own resource footprint. v2 had no Lakshmi, no hardware awareness — “a mind without a body”. v4’s substrate monitor is the foundation of governed autonomy.

Modules§

anomaly
Anomaly detection and Yin-Yang balance tracking for the Harmony Vector.
homeostatic
Homeostatic Loop — harmony-driven self-regulation.
sensorimotor
Sensorimotor Weave — hardware I/O abstraction for embodied AI.
write_budget
Write-budget telemetry — the system learning its own cost.

Structs§

HarmonyVector
Harmony Vector — real-time hardware state snapshot.
SubstrateMonitor
Substrate monitor — reads real hardware metrics from /proc and /sys.

Enums§

BatteryState
Battery state classification from power supply.
GunaTag
Guna classification of system resource behavior.
ThermalState
Thermal state classification from CPU/package temperature.