Skip to content

fix: validate and settle deferred actor replies - #71

Merged
cevr merged 1 commit into
mainfrom
fix/deferred-reply-validation
Sep 6, 2026
Merged

cevr merged 1 commit into
mainfrom
fix/deferred-reply-validation

Conversation

@cevr

@cevr cevr commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

Validate deferred actor replies against the declared reply schema.
Keep the waiting caller from hanging when state exit interrupts decoding.

Changes

  • Keep the reply schema with the pending request.
  • Decode before reply completion. Preserve decode defects and interruption causes.
  • Add tests for decoded values, invalid values, repeated replies, postponed requests, and shutdown.
  • Document the deferred reply contract and add a patch Changeset.

Test Plan

  • Full gate: 354 tests passed. Typecheck, lint, formatting, build, and examples passed.
  • Independent focused check: reply and eager Effect setup tests passed.
  • Gated decoder test: state exit interrupts decoding, settles the caller, and leaves the actor available.

Prepared with Codex.

@cevr
cevr merged commit 24a421b into main Sep 6, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Sep 6, 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