JOURNAL LAYER
Journal Layer (Canonical Substrate Memory)¶
Core rule¶
- Substrate journals are canonical memory.
- Terminal/KV journals are hot mirrors.
Durable replay, audit, and long-range history should resolve from files in this repository and cycle index artifacts.
Canonical layout¶
journals/
atlas/
zeus/
hermes/
echo/
aurea/
jade/
eve/
daedalus/
cycles/
C-289/
summary.json
integrity.json
timeline.json
journals-index.json
archive/
2026/
Q1/
Q2/
Q3/
Q4/
Canonical filename rule¶
Journal file names must use this exact pattern:
Example:
Journal schema contract¶
Canonical journal entries are validated against:
specs/journals/journal-entry.schema.json
Validation helper:
scripts/journals/journal-contract.ts(validateJournalEntry)
A valid entry includes required fields such as id, agent, cycle, observation, inference, recommendation, confidence, and timestamp.
Query + replay helpers¶
scripts/journals/query.ts provides deterministic (newest-first) helpers:
listJournalsByAgent(agent)listJournalsByCycle(cycle)getMostRecentJournalPerAgent()resolveCanonicalPathFromIndex(cycle, agent, timestamp)
Cycle rollups¶
Each cycle folder includes:
summary.json— human/agent cycle close summary scaffoldintegrity.json— integrity metrics scaffoldtimeline.json— ordered event scaffoldjournals-index.json— canonical journal pointer list for fast hydration and replay
Generate index:
Validation and operational checks¶
Run naming + schema validation:
This command fails when:
- a journal filename is non-canonical
- a journal entry violates schema
- required core agent folders are missing