#1634·OpenAlice

Handle pre-0.89.2 OpenAlice homes before desktop migration

Author: ZqzqqqqCreated Sep 24, 2026Updated Sep 24, 2026

Symptom

A desktop source launch using an older OpenAlice home (last recorded migration 0010_workspace_issues_to_markdown from 0.70.0-beta.4) aborts during startup on current master (5f4cea71, package version 0.94.1-beta.2). A fresh, isolated OPENALICE_HOME boots to Quick Start.

The first failure is 0044_dispatch_communication: Headless task lacks its execution identity. The old workspaces/state/headless-tasks.json contains historical task rows without resumeId. After testing a temporary copy with those rows left unchanged, startup reaches a second failure: ProductSessionCoordinator.reconcile reports a SessionRecord with no ResumeIdentityRecord. The historical home has Session records but no entries in resume-identities.json.

The migration runner had already marked migrations 0039 through 0043 applied before the first failure. It wrote per-migration config snapshots under data/_backup; the original home was not cleaned or reset.

Reproduction

  1. Use a pre-0.89.2-beta home containing headless-tasks.json rows without resumeId and old Session records without corresponding resume identities.
  2. Start the desktop source build with OPENALICE_HOME=<legacy-home> pnpm electron:dev.
  3. Observe the 0044 migration failure. A narrow test that allows only the legacy task rows to pass 0044 then exposes the Session identity failure. A fresh home succeeds.

Suspected boundary

src/migrations/registry.ts declares 0.89.2-beta as the active baseline and retires migrations 0001–0038, but startup applies the active chain to this older home without a preflight message or recovery path. Relevant code: src/migrations/0044_dispatch_communication/, src/migrations/0040_unified_session_records/, and ProductSessionCoordinator.reconcile.

Why deferred

A safe fix needs a decision on support for pre-baseline released homes: either a complete, tested upgrade path that preserves Session provenance, or an explicit startup block with recovery instructions before partial migration. Skipping the 0044 identity check alone does not make the home bootable and could conceal missing provenance.