Skip to content

test: assert event emission order for task lifecycle (Closes #128) - #210

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:test/event-emission-order-128
Open

test: assert event emission order for task lifecycle (Closes #128)#210
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:test/event-emission-order-128

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds regression tests asserting the correct ordering of runtime task lifecycle events, addressing bounty issue #128 ($90).

Changes

  • New test file: tests/event-emission-order.test.ts
  • Asserts runtime.task.received is emitted before runtime.task.completed on successful task execution
  • Asserts runtime.task.received is emitted before runtime.task.failed when tool execution throws
  • Verifies that terminal events (completed/failed) are mutually exclusive per execution path

Testing

All tests pass locally with vitest. No CI configured on upstream repo.

Bounty

Closes #128 ($90) — uncontested bounty for event emission order validation.

/cc @Lilly-Protocol

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.

[Bounty: $90] Add event emission order test for task lifecycle

1 participant