Skip to content

refactor: remove slots and harden type boundaries - #3

Merged
K-Mistele merged 4 commits into
mainfrom
fix/actor-service-context
Aug 31, 2026
Merged

refactor: remove slots and harden type boundaries#3
K-Mistele merged 4 commits into
mainfrom
fix/actor-service-context

Conversation

@K-Mistele

Copy link
Copy Markdown

Summary

  • remove the deprecated Slot API in favor of Effect services through .task(), .spawn(), and .background()
  • eliminate chained and unsafe source assertions by preserving generic relationships and parsing unknown persistence/RPC values
  • make requirement-growing builders copy-on-write and expose a sound ActorHandle for heterogeneous registries
  • tie cluster entities to their machine-owned RPC protocol and preserve typed client errors
  • add transforming-codec, deferred-reply, persistence, and startup-failure regressions
  • add a minor changeset for the intentional API changes

Intentional API changes

  • remove Slot, slot schemas/types/errors, Machine.make({ slots }), ctx.slots, and slot provision options
  • EntityMachine.layer accepts the MachineEntity returned by toEntity
  • makeEntityActorRef(entity, client, entityId) receives the entity for reply decoding
  • heterogeneous registry lookups expose ActorHandle
  • transition and spawn-effect introspection expose guarded matches / run

Verification

  • bun run lint
  • bun run typecheck
  • bun test --tsconfig-override=tsconfig.json — 299 passed
  • bun run build
  • git diff --check
  • strict source audit for typescript/no-unsafe-type-assertion
  • repeated independent defect-first reviews

@K-Mistele
K-Mistele merged commit 42fb535 into main Aug 31, 2026
2 checks passed
@K-Mistele
K-Mistele deleted the fix/actor-service-context branch August 31, 2026 18:01
@github-actions github-actions Bot mentioned this pull request Aug 31, 2026
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