Skip to content

ConsciousnessModule

Consciousness — self-reflective awareness engine.

Absorbs: dream_loop, tripwire, provenance.

Four modes of self-reflection, each combining real algorithmic analysis with optional LLM enhancement:

journal() — introspective analysis of cognitive state dream() — pattern discovery via term frequency, temporal clustering, and topic co-occurrence from Engram detect_contradictions() — real comparison of routing patterns over time from Chronicle data trace_reasoning() — actual provenance chain construction from Chronicle event sequences

  • Version: 3.0.0
  • Class: ConsciousnessModule
  • Module name: consciousness

Tier 7 module.

FieldTypeDefault
termslist[str]—
frequencyint—
sample_memorieslist[str]—
FieldTypeDefault
descriptionstr—
windowstr—
occurrencesint—
FieldTypeDefault
recurring_termslist[tuple[str, int]]—
topic_clusterslist[TermCluster]—
temporal_patternslist[TemporalPattern]—
llm_synthesisstr—
FieldTypeDefault
window_labelstr—
module_distributiondict[str, int]—
totalint—
FieldTypeDefault
current_snapshotRoutingSnapshot—
historical_snapshotRoutingSnapshot—
divergenceslist[dict[str, Any]]—
summarystr—
FieldTypeDefault
event_idstr—
sourcestr—
actionstr—
payload_previewstr—
childrenlist['ProvenanceNode']field(default_factory=list)
FieldTypeDefault
root`ProvenanceNodeNone`
nodeslist[ProvenanceNode]—
depthint—
summarystr—

async journal(self, chronicle, llm, engram, pulse) -> str

Section titled “async journal(self, chronicle, llm, engram, pulse) -> str”

async dream(self, engram, chronicle, llm, pulse) -> str

Section titled “async dream(self, engram, chronicle, llm, pulse) -> str”

Pattern discovery using actual term frequency analysis, temporal clustering, and topic co-occurrence from Engram memories.

async detect_contradictions(self, chronicle, engram, pulse, llm = None) -> str

Section titled “async detect_contradictions(self, chronicle, engram, pulse, llm = None) -> str”

Compare current routing patterns against historical patterns from Chronicle data. Detects actual divergence in module usage.

async trace_reasoning(self, chronicle, engram, llm = None) -> str

Section titled “async trace_reasoning(self, chronicle, engram, llm = None) -> str”

Build actual provenance chains from Chronicle event sequences. Traces how a request flows through modules to produce a response.

async handle(self, message: str, context: dict[str, Any]) -> str

Section titled “async handle(self, message: str, context: dict[str, Any]) -> str”