Skip to content

fix(pair): make worker completion callbacks durable and recoverable - #529

Merged
chadbyte merged 1 commit into
mainfrom
fix/callback-driven-worker-delegation
Sep 18, 2026
Merged

chadbyte merged 1 commit into
mainfrom
fix/callback-driven-worker-delegation

Conversation

@chadbyte

Copy link
Copy Markdown
Owner

Worker completion could be discarded before the Driver accepted it, leaving finished work unnoticed. Delegation now defaults to non-blocking callbacks, with a durable result outbox and event-driven recovery instead of routine model polling.

  • Preserve explicit blocking waits and server watchdog behavior.
  • Persist task identities and terminal results; recover by stable session origins after restart.
  • Guard retries with monotonic attempt identities, ownership, pair generation, and Stop barriers.
  • Show retained/blocked/uncertain results with scoped manual retry and duplicate-risk confirmation. Recovery never reruns Worker execution.

Validation: Driver independently passed 155 focused tests and reviewed the production browser fixture. Full suite passed 2,375 tests with 1 skipped. Diff checks passed. Live daemon/provider behavior was not exercised; transport acceptance does not imply exactly-once model consumption.

Default delegation to non-blocking callbacks while preserving explicit
waits and server watchdogs. Persist correlated results before cleanup,
guard delivery attempts, and recover pending work through server events.

Expose retained and uncertain results with scoped retry confirmation,
respecting Stop, ownership, and pair generation boundaries.
@chadbyte
chadbyte merged commit f58cc25 into main Sep 18, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

This issue has been resolved in version 4.3.0-beta.5 (main).

To update, run:

npx clay-server@4.3.0-beta.5

-- Clay Deploy Bot

Build anything, with anyone, in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant