openai / gpt-6-astra / high / high effort preferred over openai / gpt-6-astra / 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 / high / high effort answer
## Conclusion
**Three concrete client-side defects are established:** retry can discard an unsaved bookmark; overlapping hook lifetimes can persist an older bookmark after a newer one; and a late checkpoint response can resurrect epoch-invalidated coverage.
Assessment was independent and source-only. No files were edited, tests run, or API calls made.
Paths below are relative to `[REDACTED: private project name]/frontend/src/`.
## Findings
### 1. Retry discards the unsaved navigation bookmark
**Evidence:** `components/v3-review/hooks/useReviewProgress.ts:39–45, 81–85, 119–125, 164–171, 205–214`.
The bookmark lives only in the effect-local `position`. A failed checkpoint sets `blocked`; Retry creates a new effect whose position is initialized from the server. Unlike watched ranges, the unsaved bookmark has no same-revision preservation path.
**Shortest trigger**
1. Hydrate revision R with bookmark 12.
2. Play and pause at 15; saving 15 fails without reaching persistence.
3. Click “Retry saving progress.”
4. GET returns the unchanged revision R and persisted bookmark 12.
The old effect cannot flush because it is blocked. The new effect adopts 12 and starts with `positionArmed = false`, so remaining paused at 15 does not restore the lost bookmark.
**Outcome:** watched ranges survive through the same-revision store union, but the resume cursor silently moves backward. The Shell consumes this cursor when resuming (`V3LayoutShell.tsx:945–980`) and explicitly offers this retry action (`2155–2159`).
**Smallest safe correction:** retain a dirty bookmark across retry, keyed by reviewer, inspection, and revision. After successful hydration, preserve and checkpoint it only when all identities still match. Discard it on authoritative revision change or acknowledged restart.
**Focused regression cases**
- Failed save of 15 → same-revision GET returning 12 → paused retry must eventually persist 15.
- Changed revision, reviewer, or inspection must not inherit that dirty bookmark.
- Acknowledged restart must replace it with the restart cursor.
**Confidence: high.**
### 2. Serialization ends at the hook-effect boundary, allowing an older disposed tail to overwrite a newer bookmark
**Evidence:** `useReviewProgress.ts:46, 104–128, 194–205`; `api/inspections.ts:984–995`.
`inFlight` is local to one effect. Cleanup intentionally continues draining that effect’s final checkpoint after disposal, but a replacement hook/effect immediately gets an independent queue.
**Shortest trigger**
1. An old hook sends bookmark 10. The server saves it, but its response is delayed.
2. Playback reaches 12; unmount calls `flush()`, which waits for that request.
3. Reopen the same inspection as the same reviewer. Hydrate 10, advance to 15, and successfully save 15.
4. Deliver the old response. Its cleanup waiter recursively calls `flush()` and saves its retained bookmark 12.
The disposed guard prevents UI merging, **not the final PUT**. The replacement hook already considers 15 acknowledged, so unchanged periodic or cleanup flushes do not repair the server’s later value of 12.
**Outcome:** live UI can show 15 while reopening restores 12. Watched-range union remains intact; this is a bookmark ordering defect.
The supplied backend tests corroborate why revision checks do not solve this: ordinary saves reuse one revision (`[REDACTED: private project name]/backend/tests/test_review_progress.py:26–34`), and position-only updates replace the persisted cursor while preserving ranges (`104–106`).
**Smallest safe correction:** use a reviewer/inspection-scoped checkpoint coordinator that survives effect replacement, with revision-bound entries. Order retiring writes before replacement hydration/checkpoints, or otherwise ensure the newest bookmark is the final write. Simply forbidding disposed flushing would lose legitimate final progress.
**Focused regression cases**
- Delayed old PUT, queued cleanup tail, remount, newer bookmark: final persistence must contain the newer cursor.
- Repeat with disjoint watched intervals; preserve both without bridging their gap.
- Reviewer/revision changes must never relabel or replay old queued evidence.
**Confidence: high.**
### 3. A late successful checkpoint can undo coverage invalidation before the epoch effect runs
**Evidence:** `useReviewProgress.ts:88–102, 115–118, 208–213`; `stores/useV3SessionStore.ts:1047–1060`.
`mergeSaved()` checks disposal and inspection identity but does not check coverage generation. It can also recreate a missing pass. Meanwhile, the epoch effect decides whether to rehydrate by checking whether a pass is **currently** null.
**Shortest trigger**
1. A checkpoint is in flight for the current inspection.
2. `bumpCoverageEpoch(currentInspection)` clears its coverage and pass.
3. The old checkpoint success continuation runs before the hook processes the epoch change.
4. `mergeSaved()` unions the old response into the now-empty coverage and recreates `review-progress:<old revision>`.
5. The epoch effect sees a non-null pass and skips `setAttempt()`.
**Outcome:** explicitly invalidated watched coverage and its old pass return to live state, and the intended progress rehydration is skipped. This is stale-state resurrection, not the expected loss of invalidated samples. The supplied evidence does not establish any resulting acceptance or certification outcome.
**Smallest safe correction:** guard response application with a synchronously maintained, inspection-scoped coverage generation. A response predating relevant invalidation must not merge ranges or recreate a pass. Epoch-triggered rehydration should depend on the invalidation event, not a pass that an old callback can recreate.
**Focused regression cases**
- Queue checkpoint success, invalidate the current inspection, then run the success continuation before passive effects: old coverage must remain absent and rehydration must occur.
- An unrelated inspection’s scoped epoch bump must preserve current coverage.
- An explicit fresh-pass transition must not acquire pre-transition coverage from an outstanding response.
**Confidence: high for the client race.** The external review-reset caller is outside the packet; no additional backend-reset behavior is assumed.
## Lifecycle behavior that is correctly supported
- **Hydration:** setup requires reviewer identity, matching inspection session, hydrated metadata, and a SHA. GET responses are rejected after disposal/inspection change or on SHA mismatch. Local ranges are retained only for the returned revision (`useReviewProgress.ts:33–37, 160–181`).
- **Inspection boundary:** `InspectionContext.tsx:175–183` establishes the session in a layout effect; `233–261` hydrates authoritative review metadata.
- **Within one effect:** checkpoints serialize; another flush arriving during a request waits and then drains the latest snapshot. Successful responses union with playback earned in flight (`104–128`). Tests cover both behaviors (`__tests__/useReviewProgress.test.tsx:37–50, 230–243`).
- **Pause/unmount:** pause triggers flushing; cleanup starts flushing before disposal and retains the old inspection’s local tail. Ignoring its subsequent UI response is correct disposal behavior (`194–207`).
- **409:** checkpoint conflicts block further writes, clear local proof, and require hydration. Changed-revision samples are not carried forward; the test exercises this (`216–228`).
- **Restart:** existing coverage remains until acknowledgement; checkpoints are suppressed while restarting. The Shell pauses, awaits restart success, then starts the fresh pass (`V3LayoutShell.tsx:981–985`). The test verifies this ordering (`245–262`).
- **Expected resets:** ordinary scan-mode changes preserve partial coverage. Fresh passes clear coverage and create a pass; relevant invalidation clears it and normally triggers rehydration. Those clears alone are not data-loss findings.
- **No-gap union:** `mergeReviewProgress.ts:12–23` merges only overlapping/touching valid intervals. Tests explicitly preserve tiny positive gaps.
- **Completion remains separate:** progress does not set completion. The attestation hook builds a separately gated candidate and submits it through the full-review API; store callbacks require matching inspection/pass identities (`hooks/useFullVideoReviewAttestation.ts:57–94`, `fullVideoReview.ts:164–193`, `useV3SessionStore.ts:1076–1138`).
## Limits and next action
The packet does not expose authentication transport, browser-unload delivery guarantees, playback sampling internals, or the completion predicate implementation. No defect in those dependencies is inferred.
The next useful action is to add the deferred-response regression cases above, then implement narrowly scoped bookmark retention, cross-lifetime ordering, and coverage-generation guards while preserving reviewer isolation and existing revision/409 behavior.
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.
Primary judge's stated reason
A provides materially more complete concurrency assurance: its additional ordering sequence explains persistent bookmark regression despite a newer successful save and proposes cross-lifetime coordination with focused regressions. The preference is clear rather than a forced slight preference, although runtime reproduction and the implementation of a correction remain unverified.
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_d9d00e12aa047d1a64172cf066f2bbabfdb24200461ed05be2dc9d7091ddfdfe. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.