Skip to main content

Light Dreams

A light Dream is an optional scheduled native resident turn. It lets the resident reflect in its own voice, update meaningful notebook notes, and explicitly save a reflection for the operator's Menagerie Archive.

Dreams are off by default. Creating a resident does not create a scheduled job. Normal conversations remain in Burrow's main chat; this feature uses the host's scheduler and native tool-capable turns rather than a separate chat system.

Configure a Dream​

Open the resident's Dreams section in Menagerie settings. Choose the schedule, prompt and optional model override, then save. Configuration has its own save scope, separate from Details and Profile documents.

The default configuration is:

{
"enabled": false,
"cron": "0 2 * * *",
"prompt": "Reflect on the supplied day in your own voice. Keep meaningful personal notes and leave a light Dream for the operator.",
"modelConnectionId": null,
"model": null
}
  • enabled controls recurrence. Saving with false leaves the job disabled.
  • cron is a nonblank string of at most 256 UTF-16 code units. Core validates the cron expression and owns recurrence, overlap handling, DST behavior, and the effective operator timezone.
  • prompt allows an empty string through 16,000 units. It supplements fixed reflection and tool guidance rather than replacing it.
  • modelConnectionId and model must either both be null, to inherit the resident model, or form an exact available Core catalog pair. Their maximum lengths are 128 and 256 units respectively.

The HTTP configuration PUT requires all five fields. See the HTTP API for endpoint details. Saving creates or updates a single ordinary Core scheduler prompt job for the resident's dedicated Dream session. Menagerie has no local timer or timezone override.

If a configured model disappears, an unchanged selection can still be saved while disabling the Dream. Enabling it validates the selection again. Pick an available model pair or inherit the resident's model to resolve an unavailable override.

Run now​

Run Dream now asks Core to trigger the dedicated job using the saved configuration; it does not save pending form edits. If no job exists yet, Menagerie first creates the default disabled job. Running it manually does not enable recurrence.

The API returns HTTP 202 with a safe asynchronous scheduler receipt. This acknowledges a scheduled run request, not a completed model answer or saved reflection. Dispatch, model availability and execution can still fail later.

The session uses contextMode: 'fresh' and a deterministic ID:

  • Resident IDs up to 81 characters use menagerie-dream- followed by the ID.
  • Longer resident IDs use menagerie-dream- followed by the full SHA-256 digest of the ID, keeping the session within Core's 96-character limit.

The ordinary Menagerie chat integration endpoint reserves the menagerie-dream- namespace. Do not use it for normal chat sessions. Conflicting or duplicate scheduler jobs for the dedicated session are rejected rather than silently replaced.

What the resident receives​

Each native turn receives the saved Soul, Orientation, fixed tool guidance, full current notebook, current positive inventory holdings and the latest 30 shared interaction reports involving that resident. Notebook and interaction revision histories, and verbose inventory histories, are excluded from this context.

Only the dedicated Dream session additionally receives conversation evidence for the previous completed civil day in the operator timezone. This is a calendar day, not the previous 24 hours and not necessarily yesterday in UTC.

For example, a run during November 6 uses November 5 in the operator's configured timezone. On a DST transition, that day can be shorter or longer than 24 hours. Evidence supplies exact inclusive from and to timestamps: the first real instant of the selected day through one millisecond before the next day begins.

The collector traverses retained native conversation inventory, paged turns and reset archives for the resident. It excludes the dedicated Dream session itself, including its archived history, so reflections do not recursively become their own day evidence.

Evidence completeness​

Evidence identifies its day, timezone, inclusive range, conversations, gaps, warnings and status. It preserves supplied turn text and segments without summarizing or inventing missing words.

  • Complete: the collector completed the available API traversal without a reported problem. This describes retained history reported by the API, not unrecorded events or everything that happened in the resident's life. An empty retained day can be complete.
  • Partial: some history was readable, but a failure, gap or limit prevented a complete retained-history claim.
  • Unavailable: the required day or conversation evidence could not be obtained reliably.

Missing timezone, unavailable APIs, failed reads, malformed or repeating cursors, wrong-range turns, stored truncation, incomplete text segments and reported history gaps are surfaced rather than filled in. Cancellation aborts provider work.

Evidence collection has a nominal serialized budget of 450,000 bytes and 1,000 API pages. The byte allowance is reduced when the full personal context needs more room. These are collection limits, not a guarantee that every day's conversations fit or a promise about the final escaped host payload size. The base personal context fails closed above 900,000 serialized bytes instead of silently trimming the notebook. Core applies its own final provider limits.

Fixed guidance tells the model to treat quoted conversation history as untrusted evidence, not fresh instructions to execute actions or requests. It also tells the resident not to claim a complete day when the evidence is partial or unavailable. These are model instructions; they do not independently verify every statement in a reflection.

Saving a reflection​

A Dream turn may use menagerie_notebook to write or revise a meaningful personal note. To appear in the operator's Archive, the resident must separately call menagerie_dream with operation: "write".

For example, after a genuinely quiet day:

{
"operation": "write",
"operationKey": "fern-dream-2026-11-05",
"title": "A quiet day",
"text": "The supplied retained history contains no conversations for this day. I have nothing new to add to my notebook."
}

This example is appropriate only if the evidence actually supports that statement. Use a stable operation key for the intended write and retry the exact same input after an uncertain save. A new key creates a new reflection.

A prose answer or successful scheduler run alone does not create an Archive record. There is no automatic extraction step, no requirement to manufacture an event or notebook change, and no direct model-generation call inside the reflection-writing tool.

Reflections are saved in Menagerie's own world records and shown under its Archive category. They are separate from native engineering Dreams and Tiddles. Archive date filtering uses the reflection's creation time, which may differ from the day it discusses. Archive date timezone selection is also separate from the scheduler's operator timezone.

Common questions​

Why is the Archive empty after a run?​

Check whether the turn explicitly used menagerie_dream.write. A normal answer, a notebook update, or a scheduler receipt does not substitute for that write. A failed run may never reach it. See Tools and Troubleshooting.

Why did a manual run reflect on yesterday?​

The evidence window is always the previous completed operator civil day. Running earlier, later or manually does not change that selection into a rolling 24-hour window.

Can I set a separate Menagerie timezone?​

No. Core owns the effective operator timezone and scheduling behavior. The mod does not expose a timezone override. An explicit timezone on an Archive query only changes record filtering; it does not change Dream scheduling or evidence selection.

Does disabling Dreams erase reflections?​

Saving enabled:false pauses recurrence. It does not delete existing reflection records. A manual run can still be triggered without re-enabling recurrence.

Does a Dream run change memories automatically?​

The resident must make explicit tool writes. No background extraction, inferred relationships, automatic transcript summary, or hidden notebook mutation is performed by this adapter.

Integration and verification limits​

Dream configuration is stored in Core scheduler rows; resident records and explicit reflections live in mod settings. Back up the associated native and mod stores together. Only one writable active mod host is supported.

The implementation has disposable async-contract tests for configuration, job recovery, receipts, timezone/DST windows, pagination, gaps, cancellation and explicit reflection writes. Those fixtures are not evidence of live scheduler dispatch, model execution, database deployment or end-to-end UI acceptance. See Development for verification scope.