← Model losses

Head-to-head comparison

openai / gpt-6-astra / low / low effort preferred over openai / gpt-6-luna / low / low effort · clear 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

Review [REDACTED: private project name]'s persisted reviewer-progress lifecycle as a client-side concurrency/state problem. Trace hydration and stale-response guards, in-flight checkpoint serialization and latest-tail draining, unmount/stop flush, failure and retry, restart, and transitions when reviewer, inspection, review revision, or coverage epoch changes. Use the hook and tests as primary evidence, then verify the exact InspectionContext/V3LayoutShell/store/API/attestation callers named in the supplied paths. The backend test is corroborating evidence only for reviewer-scoped revisions and persistence; do not expand this into a backend audit. Identify only concrete source-proven correctness defects or explicitly conclude that the supplied evidence shows no defect; distinguish a real user-visible data-loss/stale-state scenario from expected disposal and epoch-reset behavior. Explain the shortest triggering sequence, affected state and persistence outcome, and the smallest safe correction with focused regression cases. Do not edit files, run tests, make API calls, or infer acceptance/certification from partial progress. Preserve reviewer isolation, inspection scoping, revision/409 semantics, server-owned completion, and the no-gap watched-range union.

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

## Conclusion

**One concrete data-loss defect is established: retrying a failed checkpoint can discard an unsaved navigation bookmark.** Watched ranges survive a same-revision retry, but the bookmark does not.

Independent, read-only analysis of the supplied snapshot; no tools, tests, or external actions.

### Finding: retry replaces the unsaved bookmark with the older server value

**Evidence:** `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:39–42, 81–85, 119–125, 161–178, 205–214`.

Shortest triggering sequence:

1. Hydrate revision R with server bookmark **12 seconds**.
2. Play and pause at **15 seconds**. `recordPosition()` stores 15 in the effect-local `position` and React state.
3. The pause checkpoint fails with a non-409 network/server error. The hook sets `blocked = true`, retaining the local bookmark and watched ranges.
4. Click **Retry saving progress**, the actual Shell control at `V3LayoutShell.tsx:2155–2158`.
5. `retry()` increments `attempt`, disposing the old effect and creating a new one. Cleanup cannot save because the old effect is blocked.
6. GET returns the unchanged revision R and bookmark 12. Hydration assigns `position = saved.resume_position_s`, losing 15. Unlike watched ranges, there is no retained same-revision bookmark to merge.
7. While paused, the new effect’s `positionArmed` is false, so neither the timer nor an ordinary flush recovers 15. Leaving and reopening resumes from 12.

**Outcome:** the latest navigation position is lost even though the reviewer followed the offered retry workflow. If ranges are unchanged, the new signature already equals `acknowledged`, so no replacement PUT occurs. If ranges changed, those ranges can be saved with the older bookmark.

This does **not** fabricate watched footage or establish completion.

**Confidence: high.** All necessary transitions and the user-facing retry caller appear in the supplied sources.

**Smallest safe correction:** retain a dirty bookmark across retry generations, explicitly scoped to reviewer, inspection, and revision. After GET, reuse it only when all identities still match; otherwise discard it. Keep that bookmark dirty until its matching PUT succeeds. Do not use the current paused video time as a substitute: the existing editor/recovery/source-reset protections deliberately reject that shortcut.

**Focused regression cases:**

- Failed pause PUT at 15 → retry GET returns 12 under the same revision → PUT persists 15.
- Repeat with additional disjoint watched ranges; preserve both the bookmark and exact gaps.
- Retry returns a different revision, or reviewer/inspection changes → old dirty bookmark is discarded.
- Retry while paused in an editor/recovery detour → preserve the original review bookmark without capturing the detour position.

## Lifecycle assessment

| Transition | Source-grounded behavior |
|---|---|
| **Initial hydration** | The hook requires enabled state, reviewer identity, matching inspection session, hydrated metadata, and SHA (`useReviewProgress.ts:33–37`). GET responses are ignored after disposal or inspection change and rejected on SHA mismatch (`161–163`). Local ranges are retained only when `playedCoverageRevision` matches the fetched revision (`169–177`). |
| **Checkpoint serialization** | Within one effect generation, `inFlight` permits one PUT. Additional flushes await it and recursively reevaluate the latest snapshot (`104–128`). A successful response unions server ranges with playback earned during the request (`95–103, 115–118`). |
| **Latest-tail draining** | A checkpoint arriving during a PUT waits and then sends any changed tail. The supplied test explicitly covers pagehide with `[0,5]` in flight and `[0,6]` pending (`useReviewProgress.test.tsx:230–244`). A lone PUT does not itself immediately drain later playback; the next timer/event supplies that flush. |
| **Pause/unmount** | Pause triggers a flush (`207`). Cleanup calls flush before setting `disposed`, then unsubscribes (`194–203`). An already-waiting cleanup flush can continue persisting its captured latest tail after disposal, while `mergeSaved()` refuses to mutate disposed UI state. Disposal alone is therefore not evidence of dropped coverage. |
| **Failure/409** | Any PUT failure blocks further checkpoints. A live 409 additionally removes hydration and clears coverage/pass/submission (`119–125`). Retry fetches authoritative revision state; changed-revision ranges are discarded rather than relabeled. The existing test covers this (`216–229`). |
| **Restart** | Restart prevents checkpoints, waits for the current PUT, and retains old coverage until the restart response succeeds (`131–158`). The Shell pauses first and starts a fresh pass only after success (`V3LayoutShell.tsx:981–985`). The test verifies acknowledgement-before-clearing and checkpoint suppression (`245–263`). |
| **Inspection changes** | `InspectionContext.tsx:181–183` establishes the session boundary in a layout effect; store initialization clears prior inspection coverage and scan state (`useV3SessionStore.ts:844–894`). The hook’s subscription ignores other inspections, preserving the old generation’s captured tail for cleanup. |
| **Reviewer/revision changes** | Reviewer identity is an effect dependency; fetched revision equality controls local-range reuse. The backend tests corroborate reviewer-specific revisions and 409 rejection after restart/pack rewrite (`test_review_progress.py:19–61`). No cross-reviewer successful persistence is established by this packet. |
| **Coverage epochs** | The hook requests rehydration on epoch change only if no pass remains (`209–213`). A fresh-from-top store transition deliberately clears coverage, creates a new pass, and increments the epoch (`1396–1440`); it therefore does not automatically rehydrate old ranges. Scoped invalidation preserves unrelated inspection coverage/pass (`1047–1060`). These intentional resets are not, by themselves, defects. |

## Verified invariants and limits

- **No-gap union:** `mergeReviewProgress.ts:19–23` merges only overlaps/exact touches; tests explicitly retain tiny positive gaps. Checkpoint clipping intersects ranges with the server interval without bridging gaps (`useReviewProgress.ts:55–60`).
- **Completion remains separate:** progress hydration/checkpointing does not set server completion. The attestation caller constructs a completion candidate separately, submits through `/full-video-review`, and applies responses through inspection/pass guards (`useFullVideoReviewAttestation.ts:57–94`; `fullVideoReview.ts:143–195`; `useV3SessionStore.ts:1076–1138`; `api/inspections.ts:255–285`).
- **Existing tests do not cover the finding:** their authentication identity and inspection are fixed; they cover successful bookmarks, detours, range merging, 409 retry, pagehide draining, and acknowledged restart, but not a non-409 bookmark failure followed by retry.
- **Evidence boundary:** the API client’s authentication/transport behavior and the playback-range producer are outside this packet. Consequently, actual browser-exit delivery guarantees and transport-level account-switch behavior cannot be established here.

**Next useful action:** implement the scoped dirty-bookmark retention and add the focused failure/retry regressions above.

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

## Conclusion

A concrete stale-checkpoint race is visible in `useReviewProgress.ts`: a successful in-flight save can overwrite a newer restart’s revision and coverage.

**Trigger:** begin a normal checkpoint save, then invoke `restart()` while that save is pending. After the first save resolves, `restart()` sends its reset and receives the new revision. But the first save’s continuation also runs `mergeSaved()` (lines 115–117), which merges its old-revision ranges into the store; `mergeSaved()` checks only inspection identity (lines 95–102), not whether the save still belongs to the current revision or restart. The restarted hook then sets `latest = []` and clears coverage (lines 139–147), but a late merge can repopulate old coverage after that reset.

This is more than expected disposal: if the late merge happens after the restart acknowledgement, the UI can show pre-restart coverage and the next checkpoint can try to save those ranges using the new revision. The server may reject or persist them, depending on ordering; either way the client’s acknowledged reset is not reliably reflected. The test at `useReviewProgress.test.tsx:245–263` covers a checkpoint arriving *during* restart, but not the old save response’s merge after restart acknowledgement.

**Smallest safe correction:** bind each async save response to the revision/reset generation that launched it, and ignore its merge/state effects if that generation is no longer current. Add a deferred-save regression that resolves the old save after restart succeeds, asserting coverage stays cleared and no old ranges are submitted under the new revision.

## Other lifecycle assessment

- Hydration is inspection-session guarded: fetch checks `disposed` and `sameInspection()` before applying results (`useReviewProgress.ts:161–179`). Revision mismatch through the 409 path clears hydration and coverage rather than relabeling old samples (`:119–125`); the corresponding retry test confirms this (`useReviewProgress.test.tsx:216–228`).
- In-flight checkpoints serialize through `inFlight`; subsequent flushes wait and recursively drain the latest tail (`useReviewProgress.ts:104–129`). Pagehide/visibility flushes use that path (`:190–204`), and the test verifies latest-tail draining (`useReviewProgress.test.tsx:230–243`). Unmount calls flush before marking the instance disposed (`:194–204`), so the request can continue, while its UI/store merge is still inspection-guarded.
- Non-409 failures block further writes until retry (`useReviewProgress.ts:119–125`); retry recreates the effect via `attempt` (`:205, 214`). This appears intentional fail-closed behavior, not silent acceptance.
- Inspection changes reset session-scoped state in `InspectionContext.tsx:181–183` and the store (`useV3SessionStore.ts:844–894`). Coverage epoch changes trigger a retry only when no full-video pass exists (`useReviewProgress.ts:208–213`); restart and session transitions intentionally invalidate coverage. The packet does not establish a separate reviewer-change teardown beyond the hook’s `reviewerId` effect dependency.
- Range merging preserves disjoint gaps (`mergeReviewProgress.ts:17–24`), and partial checkpoints do not mark completion; completion remains tied to the server-owned attestation path (`useFullVideoReviewAttestation.ts:18–25`, `fullVideoReview.ts:135–195`).

**Uncertainty:** the packet does not include API/backend implementation details beyond the corroborating backend tests, so the exact server outcome of a stale range submitted with a new revision cannot be determined. The client-side stale-state race itself is supported by the supplied hook and test paths.

Primary judge's stated reason

B provides an actionable, source-supported bookmark-loss diagnosis rather than directing correction toward A's unestablished restart race. This is a clear task-correctness advantage, not merely a forced slight preference; neither answer demonstrates executed behavior or tests.

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

Battle wave: 67ab98b0-26bb-40e8-b4d2-2ac3636a541c. Pair: brp1_1489016dabd9e0a7956df33c1d3aadb579e0305b6ad4141c9f043615f432efed. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.