简体中文

Park and reattach the 0.27 Dream queue

The 0.27 queue uses v5; 0.26 accepts only v4. Do not open v5 in 0.26 or delete the queue to bypass an error. It contains reports, budgets, unresolved requests and application receipts. Ordinary snapshots cover data, control and binding, not the entire memory.dream directory.

Single-machine, single-writer operation only: stop every DSH host, plugin process and CLI using the store and confirm there are no background writers. --offline-dream-disabled confirms these conditions; the script cannot detect every process, machine or remote job. Set dream.enabled: false in all relevant profiles, including 0.26. Keep it off until reattached; autoApply: false alone is not enough. Save settings before exit and recheck after restart. Do not manually run a Dream review or create a new queue.

  1. Make and verify an offline memory-store backup. Separately back up the entire memory.dream directory and protect potentially private source excerpts. Keep the backup, but do not assume it should overwrite future live state.
  2. From the 0.27 plugin directory, substitute your actual root:

    node scripts/dream-park.mjs park /absolute/path/to/memory --offline-dream-disabled
    

    This renames the directory to memory.dream.parked. An existing parked directory or SQLite journal files cause refusal. Prepared but undispatched batches are canceled. In-flight batches are marked uncertain; budgets are retained, with no automatic resend. Queued and unclaimed batches are kept. Parking does not cancel remote jobs.

  3. Run 0.26 with Dream disabled for every profile. Do not create a fresh queue or overwrite work done during rollback with the older snapshot. Current memory and withdrawal state remain in the store. Automatic application is not available in 0.26; verify memory-format compatibility separately.
  4. Before returning to 0.27, stop every writer again, keep Dream off and back up the current store. Run:

    node scripts/dream-park.mjs reattach /absolute/path/to/memory --offline-dream-disabled
    

    If memory.dream exists, the command will not overwrite it. Preserve it and investigate instead of deleting or merging it and assuming budget continuity. Check status, reports, current memory and withdrawn sources before deciding whether to re-enable Dream. Verify or explicitly abandon uncertain batches; abandonment retains reserved budget. Queued work resumes after re-enabling and must recheck current evidence.

If interrupted, keep writers stopped. Check whether memory.dream or memory.dream.parked exists before doing anything else. If both exist, preserve them and resolve manually. Parking is local; it is not a remote cancel or a full backup.