Files
hyperframes/packages
Vance IngallsandClaude Opus 5.5 c890cb38f0 fix(producer): a failed pipelined blend fails its render, not the server (#8775)
* fix(producer): a failed pipelined blend fails its render, not the server

The hybrid layered loop kept each in-flight blend+encode as a slot promise
and only awaited it when the slot came round again, so a blend, encoder or
cancel failure could sit as an unobserved rejection and end the process.
Slot promises now hand their failure to the loop, which wakes every worker
through the reorder buffer, settles every in-flight blend, and only then
fails the render.

Page transition entries are checked before use (finite times, string scene
ids, a registered shader or none), the transition registry and scene map
have no prototype, and the public server attributes any rejection that
still escapes a render to that render and fails it, instead of exiting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(producer): report an escaped rejection as the render's failure, not a cancel

Aborting with the plain error sent the render down the cancel branch: job
status "cancelled" and no failure telemetry. The abort reason is now an
EscapedRejectionError, which the orchestrator treats like an audio failure:
the render fails with the original message. The server test now runs two
renders through a real unobserved rejection and the process handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(producer): trim comments added in the blend-failure fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(producer): address review on the blend-failure fix

- Bun stage-test mocks of hdrCompositor.js export sanitizeTransitionMeta.
- The rejection log carries the stack.
- EscapedRejectionError keeps the cause's code/owner/retryable fields.
- The hybrid-loop test covers a render that succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:57:42 -08:00
..
2026-11-24 15:30:29 +00:00
2026-11-24 15:30:29 +00:00