fix(video): refresh decoder capabilities and attach source before playback #1530
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 538 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.376
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1530"
general
weight: 0.35
qwts
Motivation
Closes #1529. Overlook 0.78.0 on macOS marked HEVC originals preserved-only even though its own later codec probes returned
probably. Its debugger also caught “play() request was interrupted by a new load request”: native play ran before React committed the source.Description
Documentation
ADR-0026 clarifies settled device discovery before the capability implementation commit. Common-video acceptance separates deterministic DOM evidence, real encrypted H.264/AAC and H.264/PCM decoder assertions, and signed macOS HEVC verification. Synthetic fixture commands and hashes are recorded alongside the fixtures.
Changeset
Acceptance coverage
Testing
Cheap gates ran sequentially:
All passed. Final player/test deltas also passed targeted ESLint and DOM compile. Full tests: 2,885 unit passes, 10 expected skips, 145 DOM passes, paging check pass. The 14 targeted regressions include delayed discovery, true refusal, shared work, container isolation, failed discovery, first play, retry, replay, refreshed-source cleanup, late rejection, pause while pending, stale resume failures, settled screen-reader announcements, and remux pause/resume ownership. Docs governance: 130 documents, zero findings.
Hosted exact-head qualification passed at run 47062089615 on
0e3565bb567d4f53a04bef5946b3d25880cf9888: all 15 current-head checks successful, including coverage/build/Storybook, Windows x64, Docs governance, CodeQL and both required aggregate gates. E2E executed 147 passes with 7 expected skips; both real QuickTime AAC and PCM first-play/replay scenarios passed (4.4 seconds each). All three review findings have visible fixing-commit replies and are resolved. Each real-decoder E2E scenario captures video dimensions, time and decoded audio bytes in one evaluation on both first play and replay and retains those exact snapshots indecoded-video-and-audio.json; presence of player controls alone is insufficient. No heavy local lanes ran.Manual Testing
1. On the affected signed macOS build, import the synthetic H.264/AAC, H.264/PCM and HEVC/AAC fixtures plus representative iPhone HEVC/AAC and HEVC/PCM originals. Opening must not autoplay; settled decoder discovery must restore the Play control where supported.
2. One click starts video with audio. Pause, seek, let it end, replay, page away, close and lock; earlier playback must stop and retry must require a fresh play action.
3. Export originals and compare source hashes.
The user's installed-build codec verdicts and debugger breakpoint identify the original defects. They are not presented as a post-fix signed-package run.
<!-- agent-bot-write: ghw_4df2325807a42a93 session=f601b21bf418 bot=trueline-codex-agent[bot] conversation_id=video-playback-macos conversation_id_source=self-reported -->