Expand description
The record of Dreams: one row per pass of the memory organizer, and one row per file operation it proposes (docs/specs/SPEC_DREAMS_BACKGROUND_MEMORY_ORGANIZING_2026_11_27.md §9, build step 1).
A dream changes nothing by being recorded: it is a proposal until a person applies it. So the record keeps each operation’s base text and new text beside its base hash, which is what lets the Memory tab show a diff and revert an applied dream long after the memory’s own version history has been pruned (50 versions a file, 90 days). Nothing here prunes a dream.
It lives in the always-global identity store, beside the job-run ledger, so every channel and version on this computer
sees one record, and it is created on every open with no schema version bump (see work_claims::SCHEMA): an older build
ignores the tables.
This module stores and moves a dream between states; it runs no model, reads no memory file and applies nothing.
Modules§
- memory_
kind - Which memory a dream tidies.
- op
- A file operation a dream proposes (§2.5).
- state
- A dream’s states (§9).
heldcarries ahold_reason,failedanerror. - trigger
- What queued a dream (§3).
personis “Dream now”.
Structs§
- Dream
- One pass of the organizer. The JSON fields (
read_set,caps_hit) are written and read by the runner and the UI; the store keeps them as text and does not look inside. - DreamOp
- One operation of a dream’s proposal, on one file.
base_hashis the head version’s content hash the pass read, which apply compares with the head at apply time (§2.6);base_textandnew_textare kept with the record so the diff and a revert do not depend on the memory’s own version history.evidenceandflagsare JSON (§6). - Dream
Result - What a pass reports when its model call ends.
costisNonewhen the price is not known (a login’s quota is not dollars).