Skip to content

Harden spawned actor source persistence - #5671

Merged
davidkpiano merged 2 commits into
nextfrom
feature/enq-spawn-persistence
Aug 22, 2026
Merged

Harden spawned actor source persistence#5671
davidkpiano merged 2 commits into
nextfrom
feature/enq-spawn-persistence

Conversation

@davidkpiano

@davidkpiano davidkpiano commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary:

  • add typed enq.spawn("worker", options) for registered actor sources while retaining logic-value spawning
  • resolve string sources immediately and persist the exact authored key; duplicate keys may share logic and later diverge through provide, extend, or migration
  • propagate actor-map typing so required input and returned event/snapshot/output types come from the selected source; unknown registered keys are type errors
  • keep logic-value reverse lookup as convenience, using the first matching key, and keep unregistered inline children non-persistable
  • preserve actor refs and children[id] as the communication model; no family or descriptor abstraction
  • document persistence/failure behavior and cover runtime, types, provide/extend, migration, and durable descriptors

Verification:

  • pnpm test:core (2,326 passed; 32 skipped; 3 todo)
  • pnpm typecheck
  • pnpm lint
  • pnpm format:check
  • pnpm build
  • production bundle smoke test

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 23e2567

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
xstate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@davidkpiano
davidkpiano force-pushed the feature/enq-spawn-persistence branch from ebee273 to e91c1cb Compare August 22, 2026 19:08
@davidkpiano
davidkpiano merged commit 30eb784 into next Aug 22, 2026
2 checks passed
@davidkpiano
davidkpiano deleted the feature/enq-spawn-persistence branch August 22, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant