Artifact structure
Episode IDs use ULID format (monotonic, sortable, 48-bit timestamp + 80-bit entropy). Directive and governance IDs use deterministic UUIDv5 for reproducible lineage tracking.
summary.json
The summary captures episode outcomes, metrics, and cross-references.Schema
Key fields
Reading summaries
state.json
The state captures the cognitive context at the end of the episode.Schema
Step kinds
Step statuses
Outcome statuses
Reading state
events.jsonl
The event timeline records every phase transition with timing and lineage.Format
Events are stored as newline-delimited JSON (JSONL):Event structure
started_at, completed_at, and duration_ms, which you can aggregate for per-phase latency.
Plan derivability contract: state.json.plan can be reconstructed from the latest plan event (steps + step_records + source) plus subsequent act events carrying step_id and step_status.
Event phases
Thephase field stores the phase emitted into the trace.
Reading events
CLI access
manifest.json
The manifest provides integrity verification for all artifacts with SHA-256 hashes and optional signatures.Schema
Artifact immutability guarantees
All artifacts are written atomically using this pattern:- Write to temporary file
- Call
fsync()to ensure durability - Atomic rename to final path
Verifying integrity
learn.jsonl (optional)
Learning signals are stored separately when the learn phase emits proposals.Schema
Reading learn signals
prompts.jsonl (opt-in)
When prompt provenance is enabled (ADR-005, experimental), all prompts are recorded for debugging and auditing.Schema
Use cases
- Debugging: Trace exactly what prompts were sent to LLMs
- Compliance: Audit trail for regulated industries
- Cost analysis: Track token usage per episode
- Prompt optimization: Analyze prompt patterns across runs
Storage configuration
Runs directory
Labels
Organize episodes with labels:Retention
Control artifact retention:Best practices
Use manifests for compliance. The SHA-256 checksums in manifest.json provide tamper evidence for audits.
Next steps
Events reference
Complete event schema documentation.
State reference
Complete state schema documentation.
Export metrics
Send metrics to observability tools.
Summary reference
Complete summary schema documentation.

