state.json artifact captures cognitive state snapshots during execution and at terminal completion. It provides a complete view of what was planned and what happened.
Schema overview
Root fields
Backwards-compatible identifier. Currently
"1.0".Semantic version for the schema contract. Currently
"1.0.0".Relative artifact paths for this run (for example
events.jsonl,
learn.jsonl, summary.json, manifest.json). Keys vary by lifecycle state.Episode
Episode metadata and timestamps.Unique episode identifier.
Seed used for reproducibility.
User-provided metadata tags.
Adapter label used for execution (optional).
ISO 8601 start timestamp.
Intuition posture for the episode (advisory | interventive | hybrid). Runs created
with older Noēsis versions may omit this field (default advisory).
Artifact links
links points to run-local artifacts in the episode directory.
Event timeline artifact path.
Learning timeline artifact path.
Final summary artifact path (terminal runs only).
Final manifest artifact path (terminal runs only).
Lifecycle constraint:
- non-terminal runs (for example approval pauses) persist
links.eventsandlinks.learn - terminal runs additionally persist
links.summaryandlinks.manifest
Goal
The task the agent is pursuing.The original task or goal.
Beliefs
Normalized statements the system inferred during execution.The belief statement.
Confidence in the belief (0-1).
Source of the belief.
When the belief was recorded.
Plan
Ordered steps describing the execution plan.Ordered list of plan steps.
Origin of the plan (for example,
"planner.minimal" or "planner.resume"). When projected from events, this comes from the latest plan payload source value (with agent_id as fallback).ISO 8601 timestamp of the last plan update. For event-projected plans, this is the timestamp of the latest
plan event.Step fields
Unique step identifier.
Step kind (controlled vocabulary):
| Kind | Purpose |
|---|---|
detect | Gather information |
analyze | Process or categorize |
plan | Sub-planning |
act | Execute action |
verify | Check results |
review | Human review point |
Human-readable step description.
Step status (controlled vocabulary):
| Status | Meaning |
|---|---|
pending | Not yet started |
running | Currently executing |
done | Completed successfully |
skipped | Intentionally skipped |
failed | Failed with error |
vetoed | Blocked by policy |
Explanation for the step.
Inputs provided to the step.
Outputs produced by the step.
Plan reconstruction contract
The runtime can reconstructstate.plan from events.jsonl:
- Locate the latest
planevent. - Build steps from
payload.step_recordswhen present. - Fall back to parsing legacy
payload.stepslabels (<kind>:<description>) whenstep_recordsis absent. - Apply subsequent
actevents that include bothpayload.step_idandpayload.step_status. - Keep existing step status when no
step_statusevidence exists.
noesis.runtime.plan_projection.project_plan_state(...).
Memory
Persistent facts and scratchpad captured during the run.Normalized facts with timestamps and provenance.
Fact identifier.
Fact value (any JSON type).
When the fact was recorded.
Source of the fact.
Free-form notes captured during execution.
Outcomes
Final status, action log, metrics, and artifacts.Final outcome status (controlled vocabulary):
| Status | Meaning |
|---|---|
ok | Completed successfully |
error | Failed with error |
vetoed | Blocked by policy |
aborted | Manually stopped |
partial | Partially completed |
pending | Still running |
Structured action records (
id, kind, tool, input_excerpt, result_status,
step_id, provenance, result_artifacts, plus x- extensions). The shape
mirrors act event payloads, and runtime emission aligns each action
timestamp to the corresponding act event timestamp.Outcome metrics (e.g., total duration).
Traceability guarantees
episode.started_atis aligned to thestartevent timestamp and remains stable across continuation.- Whenever
state.jsonis persisted, runtime emitsphase="runtime",event_type="run.state_projection"with projection evidence for outcomes and links. - For terminal runs, projection
outcomesandlinksmirror the final persistedstate.jsonvalues.
Complete example
Reading state
Python
File access
Policy usage
Policies receive the state snapshot in theiradvise method:
Next steps
Summary schema
Summary artifact reference.
Events schema
Event timeline reference.

