Skip to content

test: cover guard race table directly - #25

Open
edenbuilds wants to merge 1 commit into
loop-js:masterfrom
edenbuilds:codex/test-guard-race-table
Open

test: cover guard race table directly#25
edenbuilds wants to merge 1 commit into
loop-js:masterfrom
edenbuilds:codex/test-guard-race-table

Conversation

@edenbuilds

Copy link
Copy Markdown

Closes #8

Adds direct tests for the shared guard machine's race table:

  • a round timer interrupting a pending phase step
  • cancellation winning while the final step drains
  • budget cutoff after exactly one overshooting step
  • the configured consecutive-error retry cap

These tests exercise drivePhase and withErrorCap directly, complementing the existing whole-loop coverage without changing runtime behavior.

Verification:

  • bun run check
  • bun test (419 passed, 2 skipped live Claude smoke tests)

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.

test: the guard race table gets direct tests

1 participant