Skip to content

Harden runtime cleanup, cancellation, and event isolation#12

Merged
vamgan merged 1 commit into
mainfrom
fix/runtime-cleanup-cancellation-events
May 11, 2026
Merged

Harden runtime cleanup, cancellation, and event isolation#12
vamgan merged 1 commit into
mainfrom
fix/runtime-cleanup-cancellation-events

Conversation

@vamgan
Copy link
Copy Markdown
Contributor

@vamgan vamgan commented May 11, 2026

Summary

  • clean up provisioned runtime resources when startup/streaming fails after provisioning
  • prevent cancellation from mutating terminal tasks and avoid racing in-progress cancellation to succeeded
  • reject adapter events emitted for the wrong task ID before persistence
  • add regression coverage for cleanup failure paths, cancellation races, terminal cancellation, and event isolation

Closes #8
Closes #9
Closes #10

Tests

  • npm run typecheck
  • npm test -- --run
  • npm run build

@vamgan vamgan merged commit 2585ff1 into main May 11, 2026
1 check passed
@vamgan vamgan deleted the fix/runtime-cleanup-cancellation-events branch May 11, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant