ConsciousnessModule
Overview
Section titled “Overview”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.
TermCluster
Section titled “TermCluster”| Field | Type | Default |
|---|---|---|
terms | list[str] | — |
frequency | int | — |
sample_memories | list[str] | — |
TemporalPattern
Section titled “TemporalPattern”| Field | Type | Default |
|---|---|---|
description | str | — |
window | str | — |
occurrences | int | — |
DreamInsight
Section titled “DreamInsight”| Field | Type | Default |
|---|---|---|
recurring_terms | list[tuple[str, int]] | — |
topic_clusters | list[TermCluster] | — |
temporal_patterns | list[TemporalPattern] | — |
llm_synthesis | str | — |
RoutingSnapshot
Section titled “RoutingSnapshot”| Field | Type | Default |
|---|---|---|
window_label | str | — |
module_distribution | dict[str, int] | — |
total | int | — |
ContradictionReport
Section titled “ContradictionReport”| Field | Type | Default |
|---|---|---|
current_snapshot | RoutingSnapshot | — |
historical_snapshot | RoutingSnapshot | — |
divergences | list[dict[str, Any]] | — |
summary | str | — |
ProvenanceNode
Section titled “ProvenanceNode”| Field | Type | Default |
|---|---|---|
event_id | str | — |
source | str | — |
action | str | — |
payload_preview | str | — |
children | list['ProvenanceNode'] | field(default_factory=list) |
ProvenanceChain
Section titled “ProvenanceChain”| Field | Type | Default |
|---|---|---|
root | `ProvenanceNode | None` |
nodes | list[ProvenanceNode] | — |
depth | int | — |
summary | str | — |
manifest(cls)
Section titled “manifest(cls)”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.