Skip to content

Add long-lived worker sessions and typed protocol - #10

Draft
mjc wants to merge 16 commits into
mjc/abav1-214-stack-02-cli-domain-hardeningfrom
mjc/abav1-214-stack-03-worker-session-protocol
Draft

Add long-lived worker sessions and typed protocol#10
mjc wants to merge 16 commits into
mjc/abav1-214-stack-02-cli-domain-hardeningfrom
mjc/abav1-214-stack-03-worker-session-protocol

Conversation

@mjc

@mjc mjc commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Stack 4 of 13. Depends on 02-cli-domain-hardening.

This introduces the long-lived WebSocket worker loop, reconnect backoff, typed Phoenix protocol messages, job assignment and result flow, protocol rejection handling, tracing, and an isolated worker-job execution path.

A worker can now join, announce capabilities, pull work repeatedly, recover connections, run CRF searches, and publish structured results without weakening the existing CLI and ffmpeg argument contracts.

Tests added in this branch run a WebSocket harness through join, announce, no-work polling, assignment, cancellation, disconnect/reconnect, protocol mismatch, and CRF completion. Protocol tests cover current and future payload shapes, structured results and failures, heartbeat metadata, isolated job paths, transfer framing validation, corrupt/duplicate/out-of-order chunks, size limits, resume behavior, and refusal to overwrite destinations.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: abc558f5-c9c5-42fa-a063-4f2609eaf204

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mjc mjc mentioned this pull request Aug 10, 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