Add bounded MRT2 render worker protocol - #133
Closed
brxs wants to merge 3 commits into
Closed
Conversation
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
--render-workermode for PyTorch/CUDA MRT2 clip renderingframesauthoritative on requests; the native gateway owns the documented half-up seconds-to-frames conversionu64sequence and exact{jobId, sequence, frames, pcmBytes}response oracleWhy
The portable managed-runtime work needs a bounded contract between the native host and an out-of-process MRT2 clip renderer. Keeping render traffic separate from real-time deck control prevents unbounded PCM or malformed control sequences from entering the deck-worker protocol, while process termination gives cancellation deterministic CUDA cleanup even though upstream inference is not cooperatively cancellable.
This is a stacked Wave A change based on
codex/107-managed-runtime-finaland contributes to #107.User impact
There is no standalone UI change in this PR. It provides the reusable, warm PyTorch MRT2 render worker that the native Windows/Linux integration can supervise and consume without regressing the existing deck-worker behavior.
Validation
ruff format --check backend— 43 files already formattedruff check backend— passedpytest backend/tests/test_render_sidecar.py backend/tests/test_sidecar.py -q— 48 passedpytest backend/tests -q— 358 passed