Episodes
An episode is the fundamental unit of execution in Noēsis. Every time you run a task, you create an episode with a unique identifier.Episode lifecycle
Episodes progress through a defined lifecycle:| Status | Meaning |
|---|---|
queued | Episode created, waiting to start |
running | Cognitive loop in progress |
completed | All phases finished successfully |
errored | An exception occurred during execution |
vetoed | A policy blocked execution |
Episode IDs
Episode IDs follow the formatep_<timestamp>_<hash>_s<seed>:
ep_prefix identifies it as an episode<timestamp>provides chronological ordering<hash>ensures uniquenesss<seed>enables reproducible runs with the same seed
The cognitive loop
Every episode emits a sequence of phases that make reasoning explicit:In meta mode (default), all faculties are active and may emit phases. In minimal mode, Direction, Governance, and Insight still exist but may emit no events for faster execution.
| Phase | Purpose | What gets recorded |
|---|---|---|
| observe | Capture raw task and context | Task text, tags, timestamp |
| intuition | Policy guidance | Hints, interventions, veto signals |
| interpret | Extract signals and intent | Signals, risks, constraints |
| plan | Decide what to do | Steps, tools to use |
| direction | Apply policy mutations | Directives, diffs |
| governance | Pre-action audit | Allow/audit/veto decisions |
| act | Execute the plan | Tool calls, adapter results |
| reflect | Evaluate outcomes | Success/failure, reasons |
| learn | Update for future runs | Proposals, adaptations |
| terminate | Close the episode | Final status and message |
| insight | Compute KPIs | Metrics, plan adherence |
| memory | Persist context | Memory updates/port status |
Faculties
Noēsis organizes capabilities into four faculties that execute in a canonical order. Faculties exist even when they emit nothing.Intuition
Intuition provides policy-driven guidance during interpretation. It observes state and emits events.IntuitionEvent, DirectedIntuition, HeuristicIntuition, LLMIntuition
Actions:
hint(): Advisory guidance (confidence: 0.5)intervene(): Modify state via patch (confidence: 0.6)veto(): Block execution (confidence: 0.8)
Direction
Direction handles plan mutations through versioned directives. Key types:PlannerDirective, DirectiveDiff, DirectiveStatus
Directive kinds: HINT, INTERVENTION, VETO
Directive statuses: APPLIED, SKIPPED, BLOCKED
Governance
Governance is the pre-action audit layer with thePreActGovernor. It is the gate that enforces approvals and can veto before tools execute.
Key types: GovernanceResult, GovernanceDecision, PreActGovernor
Decisions:
ALLOW: Action proceeds normallyAUDIT: Action proceeds, flagged for reviewVETO: Action blocked entirely
Insight
Insight computes metrics from episode traces during finalization. Key types:InsightMetrics, compute_metrics, build_insight_metrics
Metrics: veto_count, branching_factor, plan_adherence, plan_revisions, tool_coverage, phase_ms
Artifacts
Every episode produces structured artifacts that capture the full cognitive trace:summary.json
The summary captures episode outcomes, flags, metrics, and insight:state.json
The state captures the cognitive context:events.jsonl
The event timeline records every phase:manifest.json
The manifest provides integrity verification:Adapters
Adapters connect Noēsis to your existing agent runtimes. They’re simply callables that Noēsis wraps with cognition:Policies
Policies are Python classes that implement guardrails. They extendDirectedIntuition and implement the advise method:
- Testable: Pure Python, no async or threading requirements
- Versioned: Track policy evolution in event logs
- Composable: Chain multiple policies together
Configuration
Noēsis is configured through multiple sources:| Source | Example | Precedence |
|---|---|---|
ns.set() | ns.set(planner_mode="meta") | Highest |
| Environment | NOESIS_PLANNER=meta | Medium |
noesis.toml | planner_mode = "meta" | Lowest |
runs_dir: Where artifacts are storedplanner_mode:meta(full governance) orminimalseed: For reproducible episodeslabel: Subdirectory name for organizing runs
Mental model
Here’s how the pieces fit together:- A task creates an episode
- The episode runs through the cognitive loop
- Faculties (Intuition, Direction, Governance, Insight) process each phase
- Artifacts capture everything for replay and analysis
Next steps
Cognitive loop
Deep dive into the observe → learn phases.
Faculties
Understand Intuition, Direction, Governance, and Insight.
Artifacts
Learn about the files Noēsis produces.
Quickstart
Get hands-on with your first episode.

