Skip to content

state

state

Hook fire-count and primitive echo-suppression state, plus shared NLP resources (spaCy, WordNet).

HookState

Bases: BaseModel

Per-hook persistent state tracked across events in a session (currently just fire_count for max_fires).

PrimitiveState

Bases: BaseModel

Per-primitive state for nudges/gates: last fire index, consumed-signal hashes, and echo-window lemmas.