跳转到内容

梦境

Nightly creative narratives generated after light sleep; not factual memory. Persisted as a content_block with semantic component dream, parented to the agent world’s dated diary_entry.

梦境是数字生命记忆巩固的想象性对应物。它不提取事实、不更新语义记忆库——而是根据当日的情绪基调与随机情景片段,生成超现实的第一人称叙事。

ConditionResult
No limbic brick with intensity > 0.5 in the day’s creation windowSkip (no_strong_emotion)
Dream block already exists for that day’s diarySkip (already_dreamed)
At least one strong limbic anchor produced that dayGenerate dream

触发纯由情绪驱动(无随机掷骰)。不要求 conversation 活动;情景片段可为空。

  1. Emotional tone — top 3 limbic content_blocks whose created_at falls in [conversation day 00:00 CST, next day 06:00 CST) where intensity > 0.5.
  2. 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 components content_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
SurfacePurpose
diary_get / content_block_list (component=dream)Read dream narrative
Shell /diaryBrowse dream blocks labeled「梦境」(只读)

No independent /dream Shell module or dream ToolSet.

  • 梦境不会注入系统提示或常驻记忆。
  • 准确性明确不是目标;联想与隐喻才是。

See also: sleep.md, memory.md, entity-model.md.