video-accessibility/backend/app/api/v1
Vadym Samoilenko fddf803b74 feat(translation): enforce EN-first pipeline with cue-preserving translations
All translations now derive strictly from the approved English master VTT,
eliminating the cue-count and timestamp drift reported by linguists
(e.g. PL AD = 11 cues vs EN AD = 17 cues).

Key changes:
- Remove video_native translation mode entirely; all languages go through
  translate_vtt() which guarantees 1:1 cue alignment with EN master
- Transcreation languages now use translate_vtt(style="transcreate") —
  same cue-preserving contract, culturally-adapted instructions
- Post-translation cue alignment validator added (VTTEditor.assert_cue_alignment)
- After ingestion, job moves to PENDING_QC (EN-only) instead of TRANSLATING;
  translation pipeline dispatches automatically when EN QC is approved
- New POST /jobs/{id}/retranslate-language endpoint for PM/admin to fix
  legacy video_native jobs on demand
- Frontend: origin badge (EN-aligned / transcreated / video-native warning),
  EN-first gate banner on target-language cards, Re-translate from EN button
  with confirm modal, removed translation mode selector from NewJob

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 12:11:35 +01:00
..
routes_admin.py fix(qc): show captions on accessible video + allow admin/PM as linguist/reviewer 2026-05-01 18:07:55 +01:00
routes_admin_production.py feat(ux): T-2/PR-7/PR-8 — status color helper, queue stats widget, upload-final-VTT override 2026-04-30 11:12:36 +01:00
routes_auth.py feat(mt-16): JWT org_ids claim + transient user.org_ids in deps 2026-04-29 20:46:39 +01:00
routes_briefs.py feat(briefs+notify+downloads): fix projects dropdown, add assignee, expand languages, fix PM email, add Download All 2026-04-30 21:47:28 +01:00
routes_clients.py fix(briefs): fix Project/Assign-To dropdowns and expand Requested Outputs 2026-05-01 17:54:21 +01:00
routes_files.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
routes_glossaries.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
routes_invitations.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
routes_jobs.py feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
routes_language_qc.py fix(rbac): allow reviewer role to assign linguists and reviewers 2026-05-01 14:29:15 +01:00
routes_organizations.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
routes_review_notes.py fix(authz): MT-3/6/7/8 org isolation + P1 English-first QC enforcement 2026-05-01 11:43:10 +01:00
routes_share.py feat(share): client review form on share link; hide client role from UI 2026-05-06 09:51:58 +01:00
routes_tts.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
routes_vtt_versions.py fix(authz): MT-3/6/7/8 org isolation + P1 English-first QC enforcement 2026-05-01 11:43:10 +01:00
routes_websockets.py fix(authz): MT-3/6/7/8 org isolation + P1 English-first QC enforcement 2026-05-01 11:43:10 +01:00