Skip to main content

Module cognition_loop

Module cognition_loop 

Source
Expand description

Hebbian-inspired Cognition Loop — periodic background reorganization of knowledge. Runs 9 steps: seed promote, structural repair, fidelity check, lateral synthesis, contradiction resolution, hebbian strengthen, decay, compact, observation synthesis.

Structs§

CognitionLoopReport

Functions§

run_cognition_loop
run_idle_replay
Idle replay (#7): the sleep-inspired (sharp-wave-ripple) consolidation pass, run when the agent has been quiet rather than as part of the periodic loop. Reloads knowledge under the shared lock, replays the consolidation/promote step, and reports the facts whose confidence the replay lifted. Distinct from the in-loop step (#3) so idle-time “rest” consolidation is observable on its own via introspect. Deterministic; mutates the store, never tool output.