Skip to main content
The cognitive loop is the core abstraction that makes agent reasoning explicit and auditable. Every Noēsis episode emits a sequence of observable phases.

The phase sequence

The governance phase acts as a critical gate—if policies veto the plan, execution jumps to a blocked state. Each phase has a specific purpose and produces structured events that form the episode timeline.
In minimal mode, Direction, Governance, and Insight may emit no events for faster execution. In meta mode (default), all faculties are active and the full phase sequence is observable.

Observe

The observe phase captures the raw input at the moment an episode starts. Purpose: Record exactly what the agent was asked to do, with all context. What gets recorded:
  • Task text (the goal or prompt)
  • Tags (metadata like environment, priority)
  • Timestamp
  • Initial context
Example event:
Why it matters: You can confirm the exact scope the agent perceived, enabling accurate replay and debugging.

Interpret

The interpret phase extracts signals and intent from the observed input. Purpose: Summarize what the policy or intuition layer noticed before any plan is locked in. What gets recorded:
  • Signals (risks, opportunities, constraints)
  • Intent classification
  • Relevant context from memory
  • Policy observations
Example event:
Why it matters: You can see what influenced planning decisions, making the reasoning chain transparent.

Plan

The plan phase decides what actions to take. Purpose: Record the selected steps so you can compare intent versus action. What gets recorded:
  • Ordered steps with descriptions
  • Tools or adapters to invoke
  • Expected outcomes
  • Confidence scores
Example event:
Step kinds: The plan uses a controlled vocabulary for step types: Why it matters: You can audit what was planned and detect drift from the original intent.

Act

The act phase executes the planned actions. Purpose: Log every tool or adapter invocation with inputs and outcomes. What gets recorded:
  • Action identity (action_id, kind, tool)
  • Input excerpt and status (outcome, result_status)
  • Optional execution context (step_id, provenance, artifacts, x- extensions)
  • Execution metrics
Example event:
When governance/action-candidate flow is active, act events are causally linked to governance through caused_by, and state action timestamps align with the act event timestamp. Why it matters: You get a measurable execution history instead of guesswork about what happened.

Reflect

The reflect phase evaluates what actually happened. Purpose: Compare outcomes against expectations and record the assessment. What gets recorded:
  • Success/failure status
  • Reasons for the outcome
  • Comparison to expected results
  • Issues encountered
Example event:
Why it matters: Dashboards can alert on failures, and you can analyze patterns in successes and failures.

Learn

The learn phase captures updates for future runs. Purpose: Record follow-up proposals so the next run can inherit lessons. What gets recorded:
  • Update proposals
  • Scope of changes
  • Memory updates
  • Policy adjustment suggestions
Example event:
Why it matters: Episodes can improve over time without manual intervention.

Insight

The insight phase computes KPIs and metrics from the episode. Purpose: Generate structured metrics for dashboards, alerts, and analysis. What gets computed:
  • Plan adherence (how closely execution matched the plan)
  • Veto count
  • Tool coverage
  • Latency percentiles
  • Custom KPIs
Example event:
Why it matters: Structured KPIs enable automated monitoring, alerting, and continuous improvement.

Phase instrumentation

Since v0.7.0, every phase is instrumented with timing and lineage:
  • started_at / completed_at: High-resolution timestamps
  • duration_ms: Phase execution time
  • caused_by: UUID linking to the causal parent event
This enables:
  • Performance profiling per phase
  • Causal chain reconstruction
  • Bottleneck identification

Direction

The direction phase applies policy-driven plan mutations (meta mode only). Purpose: Allow policies to modify the plan before execution based on intuition signals. What gets recorded:
  • Directive ID (deterministic UUIDv5 for lineage)
  • Status (applied, blocked, skipped)
  • Diffs showing what changed
  • Policy information
Example event:
Why it matters: You can see exactly how policies modified the plan before execution.

Governance

The governance phase is a critical gate that audits actions before execution (meta mode only). Purpose: Enforce pre-action policies and provide audit trails for compliance. What gets recorded:
  • Governance ID (deterministic UUIDv5)
  • Decision (allow, audit, veto)
  • Rule that triggered the decision
  • Confidence score
Example event:
Governance decisions: Why it matters: The PreActGovernor ensures dangerous actions are blocked before they execute, with full audit trails.

Event order invariant

Events follow this order in meta mode:
In minimal mode, Direction, Governance, and Insight may emit no events:
Invariant: Even on an error or veto, Noēsis emits an ordered trace and summary. You always get artifacts.
This means:
  • Failed episodes still have complete timelines
  • Vetoed episodes record why they were blocked (governance decision recorded)
  • Errors are captured in the reflect phase
  • You can always inspect what happened

Feedback loops

The diagram shows two feedback paths:
  1. Insight → Interpret: Reflections from one cycle can inform the next interpretation
  2. Learn → Observe: Adaptations can modify how future observations are processed
These enable:
  • Progressive refinement within an episode
  • Cross-episode learning
  • Policy adaptation over time

Human in the loop

Human review slots naturally between Act and Reflect: Policies can flag operations for human approval, pausing the loop until a decision is made.

Reading the timeline

Use the CLI to inspect the timeline:
Or in Python:

Next steps

Faculties

How Intuition, Direction, and Insight work.

Events reference

Complete event schema documentation.