video-accessibility/backend/app
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
..
api/v1 feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
core feat(pause-insert): adaptive buffer, forward-snap, timeline drag + share link fix 2026-05-01 16:09:09 +01:00
lib feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
middleware fix(middleware): add word boundaries to injection patterns; default role to admin 2026-05-06 09:45:28 +01:00
migrations fix(migrations): correct listCollections cursor parsing, add processing_failed+cancelled to status enum 2026-04-30 20:47:21 +01:00
models feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
prompts feat: per-client glossary — hybrid exact/vector retrieval + AI injection 2026-04-29 13:03:38 +01:00
schemas feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
services feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
tasks feat(translation): enforce EN-first pipeline with cue-preserving translations 2026-05-06 12:11:35 +01:00
telemetry chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
main.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00