mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 12:54:29 +00:00
Seed PR for the Phase 1 staged refactor of `executeRenderJob`. Creates the new `packages/producer/src/services/render/stages/` directory and adds two files that subsequent stage-extraction PRs build on: - `planHash.ts`: a content-addressed sha256 helper plus a canonical-JSON serializer, with unit tests covering determinism, asset-order independence, sensitivity to each hashed component, and a delimiter- framing test against path/sha boundary collisions. - `freezePlan.ts`: signature-only skeleton (throws "not implemented") for the eventual plan-freeze step. No callers; the body lands later when the distributed-render primitives compose the Phase 1 stages. Zero behavior change. No code in `executeRenderJob` is touched and no existing exports move. The new files are not yet referenced anywhere outside the `stages/` directory. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>