梦境
Nightly creative narratives generated after light sleep; not factual memory. Persisted as a
content_blockwith semantic componentdream, parented to the agent world’s dateddiary_entry.
梦境是数字生命记忆巩固的想象性对应物。它不提取事实、不更新语义记忆库——而是根据当日的情绪基调与随机情景片段,生成超现实的第一人称叙事。
| Condition | Result |
|---|---|
No limbic brick with intensity > 0.5 in the day’s creation window | Skip (no_strong_emotion) |
| Dream block already exists for that day’s diary | Skip (already_dreamed) |
| At least one strong limbic anchor produced that day | Generate dream |
触发纯由情绪驱动(无随机掷骰)。不要求 conversation 活动;情景片段可为空。
- Emotional tone — top 3 limbic
content_blocks whosecreated_atfalls in[conversation day 00:00 CST, next day 06:00 CST)whereintensity > 0.5. - Episodic fragments — random sample of user/assistant messages from the day’s sessions, capped ~4k chars.
须先完成浅睡第 2 阶段,以确保感性锚点已写入。
- Ensure agent default private world diary for CST
dream_day(create empty shell if missing). - Insert
content_block(block_type: text) with componentscontent_block+dream. - 仅追加;创建后内容不更新。
- Does not create notification inbox entries.
Legacy dream_memory / dream_entry rows are backfilled and removed in
Drizzle migration 20260717180000_memory_bricks_to_diary.
Sleep-cycle DAG node dream (unchanged topology):
light-sleep ├─► deep-sleep ──► memory-ref-sync ├─► dream (parallel) └─► self-layer-refresh工具与 UI
Section titled “工具与 UI”| Surface | Purpose |
|---|---|
diary_get / content_block_list (component=dream) | Read dream narrative |
Shell /diary | Browse dream blocks labeled「梦境」(只读) |
No independent /dream Shell module or dream ToolSet.
- 梦境不会注入系统提示或常驻记忆。
- 准确性明确不是目标;联想与隐喻才是。
See also: sleep.md, memory.md,
entity-model.md.