Where state is written and read

Where state is written and read A data-flow diagram generated by Archify. 01 / Producers 02 / Writers 03 / Stores 04 / Consumers You · /dave · dave config · 01 / Producers You /dave · dave config ConfigManager · transaction + backup · 02 / Writers ConfigManager transaction + backup config.json · global + project · 03 / Stores config.json global + project Runtime · reload live · 04 / Consumers Runtime reload live AgentLoop · turns + tool calls · 01 / Producers AgentLoop turns + tool calls sessions/*.jsonl · append-only · 03 / Stores sessions/*.jsonl append-only Resume picker · via SessionReplay · 04 / Consumers Resume picker via SessionReplay Checkpoints · per-turn snapshots · 03 / Stores Checkpoints per-turn snapshots /rewind · restore files · 04 / Consumers /rewind restore files RecordStore · sole vault writer · 02 / Writers RecordStore sole vault writer Vault records · Tasks · memory · time · 03 / Stores Vault records Tasks · memory · time Today · /brief · queues · Task recap · 04 / Consumers Today · /brief queues · Task recap Drive / folder · other devices · 01 / Producers Drive / folder other devices history/ · images, packed · 03 / Stores history/ images, packed approved edit atomic write load + validate append events validate · recover before writes restore dave_* tools transaction audit read sync Legend config path vault writes (DaveState only) checkpoints, sync data store data flow

Config

  • • ~/.config/hey-dave + .hey-dave/config.json; secrets are env references
  • • A failed change rolls back files and live settings

Sessions

  • • <data>/sessions, one JSONL per session; a torn last line is set aside
  • • Listings read first lines only (stage 38)

Vault

  • • <data>/vault or $DAVE_VAULT; schema 2, shared through Drive or a synced folder
  • • RecordStore is the only writer; agent turns ride in transcripts