← Model losses

Head-to-head comparison

openai / gpt-6-luna / low / low effort preferred over xai / grok-4.7-efficient / low / low effort · close win.

Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.

Reviewed public evidence

Task goal

Audit [REDACTED: private project name]'s lazy-video saved-position restore and editor-return seek lifecycle. Trace cold resume, target outside new native duration, metadata/seek stalls, unmount/inspection switch, and editor cancellation; identify only reproducible correctness defects, specify the smallest safe implementation and 0-3 targeted regression tests, preserving server watched-proof/certification boundaries.

openai / gpt-6-luna / low / low effort answer

## Finding

**Reproducible defect:** a saved target beyond the newly loaded video’s native duration can leave resume pending forever. In `useReviewResumePlayback.ts:55–63`, once metadata is valid, the hook repeatedly seeks to the original target when the video’s current time differs, and only completes when native and React times both match it. There is no check that `targetS` is within `video.duration`, nor a timeout outcome that clears the request; after 15 seconds it only pauses and displays a message (`:50–53`). If the browser clamps or rejects the seek, the request remains pending and `onReady` never fires. **Smallest safe fix:** validate the target against the loaded duration and settle to a defined safe position (or cancel with a retryable failure) instead of repeatedly seeking an unreachable target. Do not call `onReady` unless the existing native-time, React-cursor, and `canResume()` gates pass (`:62–67`).

**Other requested lifecycle cases:**
- **Cold resume:** the supplied test exercises native seek plus React cursor gating and shows readiness waits for both (`useReviewResumePlayback.test.tsx:23–46`).
- **Metadata/seek stalls:** missing metadata remains visibly pending after 15 seconds by design, and inspection change cancels it (`test:48–58`). A seek stall is not independently tested; the duration-out-of-range case is the concrete liveness defect identified above.
- **Unmount/inspection switch:** the effect cleanup clears the interval and request (`useReviewResumePlayback.ts:41–45, 69–70`); inspection changes also clear old notices rather than reviving them (`:19–23`; test:74–86). No reproducible defect shown.
- **Editor cancellation:** `shouldCancel` pauses and cancels pending resume (`:47–48`); the test verifies editing prevents later readiness (`test:60–72`). No reproducible defect shown.
- **Editor return seek:** consumed parameters are marked before navigation and resume work, preventing repeat consumption while the old route remains rendered (`useReviewReturnSeek.ts:23–35`; test:88–110). The imported coverage-recovery parser is outside the packet, so behavior for its exclusion cannot be independently assessed.

## Tests

Add one targeted regression test: load metadata with a finite duration shorter than the saved target, simulate native clamping/rejection, advance timers beyond the retry window, and assert the hook settles safely or exposes a retryable failure without repeatedly seeking or calling `onReady` for an unachieved target.

No server watched-proof or certification behavior is evidenced in this snapshot; preserve the current client-side readiness gates and do not infer or alter server proof semantics. **Confidence: medium-high** for the out-of-range liveness defect; lower for return-seek interactions dependent on omitted code.

xai / grok-4.7-efficient / low / low effort answer

The out-of-range bookmark is the only production correctness defect. Metadata stalls, inspection switches, unmount, and editor cancel match the tests. Do not treat a clamped end as a successful restore.

1. Conclusion
An unreachable saved position never settles and can disturb certification boundaries. In `useReviewResumePlayback.ts`, once `readyState >= 1` and duration is finite, any native time more than 0.1s from `request.targetS` calls `seek(request.targetS)` again (lines 55–60). If the bookmark is past the new duration, the element clamps and that difference stays above 0.1s, so the hook re-seeks about every 100ms until the 15s branch (lines 50–53). That branch pauses, sets “Could not restore…”, leaves `pendingRef` true, and does not call `onReady`. It does not latch, so every later tick calls `pause()` and `setMessage()` again. The first `begin()` seek (line 39) can already be past the end. Repeated end-seeks are the certification risk; `onReady` is the scanner handoff (file comment, lines 3 and 62–67) and must not run for a frame that does not exist. Confidence: high.

Cold resume, metadata stall, inspection switch, and editor cancel behave as the tests require. The interval waits for metadata, `seeking === false`, a native match, and a React `currentTime` match before `onReady` (lines 55–67). The 15s path keeps `pendingRef` true and does not call `onReady` (test lines 48–54). Inspection changes drop the notice during render (hook lines 21–23) and clear the request when the effect re-subscribes (lines 41–43, 69–70); A→B→A does not revive it. `shouldCancel` pauses and `cancel()`s, and a later ready frame does not call `onReady` (test lines 60–71). `useReviewReturnSeek` marks the key before navigation (lines 22–31), so stale `seek_s`/`resume_scan` renders do not double-fire (test lines 88–110).

Smallest safe fix, only in the interval after the existing cancel check: if duration is finite and `targetS > duration + 0.1`, or if the 15s deadline has passed, take one terminal failure. Pause once, set the existing failure message, keep `pendingRef` true, set `requestRef` to null so later ticks no-op, and do not seek again or call `onReady`. Do not clamp-and-complete.

2. Alternatives and discarded hypotheses
Discarded: clamping the bookmark to duration and calling `onReady` when both clocks match that end. That would release the scanner for media the saved frame is not in. Discarded: clearing `pendingRef` on that path. The timeout test requires it to stay true. Discarded: treating the 15s metadata hold itself as a bug. Late metadata must not auto-certify after the failure copy. Discarded: a Strict Mode wipe where effect setup and cleanup null `requestRef` (lines 42–43 and 69) after `useReviewReturnSeek` has consumed the key (lines 22–25), so a strict remount would not call `begin` again. Real unmount and inspection-id change should clear. Deps are stable, so this is dev-only, not a production defect. Discarded: the 100ms `shouldCancel` gap. An editor open and close inside one quiet interval could miss cancel. Not a realistic editor session.

3. Missing evidence
`parseCoverageRecoveryParams` is outside the packet (`../coverageRecovery`). If it returns non-null for `seek_s` plus `resume_scan=1`, the return-seek effect never consumes (hook line 20) and the guided-return test would not hold. Parent `onEnded` or watch-proof listeners are also outside the packet, so the certification risk of repeated end-seeks is inferred from this hook’s `onReady` gate, not from server code.

4. Next action
Add one regression: begin at a time past a finite duration, advance one interval, expect no further raw `seek` of that time, the failure notice, `pendingRef` still true, and `onReady` not called even after a React time equal to duration. Optionally add a second: after 15s without metadata, further 500ms advances do not call `pause` again. No third test.

Primary judge's stated reason

Forced, slight preference for B because its conclusions more consistently respect the evidence boundary around watched-proof and certification. This is not an established material quality difference: A's more actionable failure-state implementation is a substantial countervailing benefit.

This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.

Battle wave: e8b943ba-5475-4c9f-82d2-c82f9157debd. Pair: brp1_1ef26611e175256990fa457fda3f2c0658c4aa6f3ed880fdb4a6b08258bc7731. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.