Skip to content

fix: preserve task and entity type safety - #5

Merged
K-Mistele merged 1 commit into
mainfrom
fix/remove-type-laundering
Aug 31, 2026
Merged

fix: preserve task and entity type safety#5
K-Mistele merged 1 commit into
mainfrom
fix/remove-type-laundering

Conversation

@K-Mistele

Copy link
Copy Markdown

Summary

  • preserve exact state and event schema definitions through MachineEntity
  • make .task() retain its state, event, error, and service types without any or diagnostic suppressions
  • require shorthand tasks without onSuccess to return a valid machine event and guard that invariant at runtime
  • add compile-time regressions and a patch changeset

Validation

  • bun run gate
  • 299 tests passing

@K-Mistele
K-Mistele merged commit c7a574f into main Aug 31, 2026
2 checks passed
@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