Skip to main content

Module democritus

Module democritus 

Source
Expand description

DEMOCRITUS continuous cognitive loop (ECC decision D5).

The DemocritusLoop is the nervous system of WeftOS — an integration layer that orchestrates the ECC subsystems on every cognitive tick:

SENSE → EMBED → SEARCH → UPDATE → COMMIT

It drains the ImpulseQueue for new events, embeds them via the configured EmbeddingProvider, queries the pluggable VectorBackend for nearest neighbors (default: HNSW), updates the CausalGraph with inferred edges, registers cross-refs in the CrossRefStore, and logs the result.

This module is compiled only when the ecc feature is enabled.

Structs§

DemocritusConfig
Configuration for the DEMOCRITUS loop.
DemocritusLoop
The DEMOCRITUS continuous cognitive loop.
DemocritusTickResult
Summary of a single DEMOCRITUS tick cycle.