Skip to main content

Module cognition

Module cognition 

Source
Expand description

Perpetual cognition runtime for persona swarms.

Phase 0 scope:

  • Contract types for personas, thought events, proposals, and snapshots
  • In-memory runtime manager for lifecycle + lineage
  • Feature-flagged perpetual loop (no external execution side effects)

Modules§

tool_router
FunctionGemma-powered hybrid tool-call router.

Structs§

CognitionRuntime
In-memory cognition runtime for perpetual persona swarms.
CognitionRuntimeOptions
Runtime options for cognition manager.
CognitionStatus
Start/stop response status.
CreatePersonaRequest
Request payload for creating a persona.
LineageGraph
Lineage graph response.
LineageNode
Lineage node response.
MemorySnapshot
Distilled memory snapshot contract.
PersonaIdentity
Identity contract for a persona.
PersonaPolicy
Policy boundaries for a persona.
PersonaRuntimeState
Full runtime state for a persona.
Proposal
Proposal contract (think first, execute through gates).
ReapPersonaRequest
Request payload for reaping persona(s).
ReapPersonaResponse
Reap response.
SpawnPersonaRequest
Request payload for spawning a child persona.
StartCognitionRequest
Start-control payload for perpetual cognition.
StopCognitionRequest
Stop-control payload for perpetual cognition.
ThinkerClient
ThinkerConfig
ThinkerOutput
ThoughtEvent
Streamable thought event contract.

Enums§

CandleDevicePreference
PersonaStatus
Persona execution status.
ProposalRisk
Proposal risk level.
ProposalStatus
Proposal status.
ThinkerBackend
ThoughtEventType
Thought/event types emitted by the cognition loop.