Documentation Index
Fetch the complete documentation index at: https://docs.openaeon.ai/llms.txt
Use this file to discover all available pages before exploring further.
Cognitive OS architecture
Last updated: 2026-04-12Product definition
OpenAEON should operate as a cognitive operating system, not only a step by step responder. Core requirements:- Stage aware execution
- Full traceability of why each transition happened
- Recovery from failures with rollback and retry
- Branching from prior checkpoints without losing old paths
- Parallel task collaboration with isolated context
- Reusable experience through indexed summaries and raw evidence
Core principles
Dream is not memory
- Dream memory is for distillation, indexing, and scheduling signals.
- Episodic memory is the source of truth for full replay and recovery.
- Dream data must never overwrite raw evidence.
State flow is not one way
The system must support:forwardrollbackretrybranchrestore
Multi task execution needs orchestration
Do not overload one coordinator with shared mixed context. Each task needs:- Isolated state machine
- Isolated memory domain
- Isolated checkpoint chain
- Shared graph and scheduling surfaces only where needed
Six layer architecture
Layer 1 interaction
User visible surfaces:- Chat input and output
- Stage and execution timeline
- Rollback retry branch controls
- Dream summary card
- Trace history and search
- Task board and model tool status
Layer 2 task state machine
Per task state record:task_idgoalcurrent_stagecurrent_checkpointcurrent_branchstage_historyretry_countrollback_availableverification_status
queuedplanningrunningverifyingblockedfailedcompletedrolled_backbranched
Layer 3 memory system
Four memory planes:- Working memory
- Episodic memory
- Dream memory
- Graph memory
- Inputs and outputs
- Tool calls
- Intermediate decisions
- Errors and test logs
- Stage summary
- Key decisions
- Risk markers
- Next action
- Retrieval anchors
Layer 4 checkpointing and recovery
A checkpoint is written after each critical stage boundary. Minimum checkpoint payload:task_idstage_idbranch_id- Stage input context
- Stage outputs
- Key decisions
- Tool outcomes
- Model profile
dream_idprevious_checkpoint_id- Recoverable runtime state
- Rollback to prior state
- Retry from same stage
- Branch from any checkpoint
- Diff across branches
Layer 5 orchestration and agent roles
Minimal role set:- Planner
- Executor
- Verifier
- Reflector
- Memory Manager
- Orchestrator
- Planner: task decomposition and dependency graph
- Executor: tool use and output production
- Verifier: pass or fail gates per stage
- Reflector: failure diagnosis and repair strategy
- Memory Manager: writes episodic memory, dream artifacts, and graph edges
- Orchestrator: global scheduling, transitions, and aggregation
Layer 6 model routing and policy
Routing dimensions:- Task type
- Stage type
- Agent role
- Complexity
- Risk
- Cost budget
- Planner and Reflector: high reasoning profile
- Executor: tool friendly execution profile
- Verifier: rule first plus model assist
- Dream distillation: stable low cost summarization profile
State transition flow
Dream schema
Checkpoint schema
Graph model
Required node types:TaskStageCheckpointDreamDecisionEvidenceToolCallErrorRetryBranchAgentModelProfileMemoryChunk
Task HAS_STAGE StageStage HAS_CHECKPOINT CheckpointStage GENERATES DreamDecision BASED_ON EvidenceError TRIGGERS RollbackBranch DERIVED_FROM CheckpointDream SUMMARIZES MemoryChunkAgent EXECUTES StageModelProfile APPLIED_TO Stage
UI layout
Main panel:- Chat and execution timeline
- Current task and stage
- Verification result
- Dream summary
- Current checkpoint and branch
- Current dream and anchor links
- Recent errors
- Related history retrieval
- Model profile and tool calls
- View details
- Roll back here
- Branch here
- Retry stage
- Open stage memory
- Open stage dream
Delivery phases
Phase 1 platform foundations:- Checkpoints with deterministic restore
- Separation of dream and raw memory
- Rollback retry branch primitives
- Stage history tree
- Verifier gate for every stage completion
- Planner Executor Verifier role split
- Orchestrator scheduling
- Model routing
- Graph memory baseline
- Dream guided scheduling
- Cross task dream retrieval
- Branch outcome comparison
- Cognitive trajectory visualization
Gateway compatibility note
If a client returnsGatewayRequestError: unknown method: task_plan.approve,
the running gateway process likely does not include the latest task plan
handlers.
Quick checks:
- Confirm the source contains
task_plan.approveinsrc/gateway/server-methods/task-plan.ts. - Confirm handlers are wired in
src/gateway/server-methods.tsvia...taskPlanHandlers. - Restart the actual running gateway process so the latest build is loaded.