Port selectively: validated provider payload construction, complete-audio identity checks, media probing, caption timing, native assembly fixes and the selective-revision invariants. Audit the functions and their meaningful tests; do not import the old workflow's entire dependency tree.
Rewrite: orchestration and status projection around a small durable job table, immutable asset versions and a dependency list. Database transactions prevent double claims; idempotent callbacks and restart recovery reconcile existing task IDs. One read model drives the page.
Test the failures that cost money: a crash after submission, duplicate callbacks, unknown billing, stale acceptance, wrong media hash, an inaccessible reviewer, accidental regeneration of accepted siblings and publishing the wrong full-film version.
Condense the documentation: a short operating contract for no substitutions, audio, product state and facial evidence, plus provider-specific references. Keep source measurements in source records. Do not turn one experiment's genre, numbers or plot into system policy.