Skip to content

Conversation

markfields
Copy link
Member

@markfields markfields commented Sep 13, 2025

Description

Copilot's summary of the change after we chatted about it a bit:

Implement one-hop, load-time datastore migration during first realization only. Old runtime instantiates, exposes migrationInfo (with portableData + newPackagePath). Context detects it, disposes old runtime without binding, swaps pkg, loads new factory via an extended migratable factory interface, instantiates new runtime with instantiateForMigration, binds it, emits telemetry, and proceeds normally. Summaries then carry new package path. Failures are fatal.

Breaking Changes

Some short-term back compat will be needed across the datastore / runtime boundary.

Reviewer Guidance

Proof of concept for now.

TODO:

  • Implement sample migration in a DataStoreRuntime
  • Put together a sample test
  • Think about barrier op. Need that ack before getting the migration data.
  • ...

@github-actions github-actions bot added area: runtime Runtime related issues base: main PRs targeted against main branch labels Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: runtime Runtime related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant