openai / gpt-6.1-sol / max / max 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.1-sol / max / max effort answer
## Conclusion
The snapshot establishes client-side defects in retry-state preservation, cross-lifecycle checkpoint ordering, and stale-state fencing. The **within-one-lifecycle range union and latest-tail drain are otherwise sound**.
This was an independent, read-only analysis. No tests or external actions were performed. No acceptance or certification outcome is inferred.
## Findings
### 1. Same-revision retry loses an unsaved navigation bookmark
**Evidence:** `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:34–43,119–128,161–180,205–214`; retry button at `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:2155–2159`.
**Shortest trigger:**
1. Server bookmark is 12; ordinary playback advances it locally to 14.
2. The pause checkpoint fails without persisting 14.
3. While still paused, the reviewer selects **Retry saving progress**.
4. GET returns the unchanged revision and bookmark 12.
Retry creates a new effect closure, discarding local `position` and `positionArmed`. Hydration installs 12 and marks its signature acknowledged. Paused playback cannot rearm position capture, so subsequent flushes skip the unchanged signature.
**Outcome:** The displayed bookmark regresses to 12, and retry never persists 14. Same-revision watched ranges survive; the navigation checkpoint does not.
**Smallest safe correction:** Retain the dirty bookmark across ordinary retry, scoped to reviewer, inspection, SHA and revision. Discard it on 409, confirmed revision change, restart or applicable invalidation. Calculate the acknowledgment signature from the **server bookmark**, not the retained dirty bookmark.
**Regression:** Failed checkpoint → paused retry → unchanged revision must preserve and submit 14 without another play event. Changed-revision and editor/recovery cases must not restore an obsolete cursor.
**Confidence:** High.
### 2. Retry can misclassify a paused first pass and erase its unsaved coverage
**Evidence:** `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:88–92,170–180`; `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:855–939,945–948`; `[REDACTED: private project name]/frontend/src/stores/useV3SessionStore.ts:1396–1440`.
**Shortest trigger:**
1. Server progress has `has_started: false` and empty ranges.
2. The reviewer starts, watches `[0,4]`, and pauses.
3. The first checkpoint fails.
4. Retry returns the same revision and unchanged server progress.
5. Before the next timer checkpoint, the reviewer selects Start.
Hydration correctly retains `[0,4]`, but line 178 overwrites the locally established `hasStarted` with server `false`. Shell consequently calls `startFreshReview`, seeks to zero and invokes `startQueueScanFromBeginning`, which clears coverage.
**Outcome:** Valid, unsaved same-revision footage disappears from client state without reaching persistence. This is **not an intentional Restart**; ordinary retry caused the wrong Start branch.
**Smallest safe correction:** During same-scope, same-revision hydration, preserve locally established started state, including retained valid ranges. Do not preserve that state across 409 or revision changes merely because `queueScanMode` remains true.
**Regression:** Failed first checkpoint → same-revision retry must leave `hasStarted` true and Start must resume without clearing coverage. Retain the changed-revision behavior asserted by `useReviewProgress.test.tsx:216–229`.
**Confidence:** High.
### 3. Checkpoint serialization ends at the effect boundary
**Evidence:** `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:46,104–129,194–205`; inspection transitions at `[REDACTED: private project name]/frontend/src/context/InspectionContext.tsx:177–183`.
**Shortest trigger:**
1. Inspection A’s checkpoint containing bookmark 11 remains awaiting its response.
2. A advances locally to 12, then navigation disposes its lifecycle. Cleanup waits to drain that tail.
3. The reviewer returns A→B→A. The new A lifecycle hydrates and successfully checkpoints bookmark 13.
4. The old response arrives; old cleanup then submits bookmark 12.
Each effect owns a separate `inFlight`. Disposal prevents old responses from merging into current UI state, but deliberately permits old flushes to finish.
**Outcome:** An obsolete bookmark is submitted after the newer bookmark. Under the checkpoint persistence contract, it can leave persistence at 12 while the current hook reports 13 saved and sees no reason to resubmit. Watched ranges remain protected by server union.
Reviewer revisions are not per-write sequence numbers: the backend corroborating test successfully reuses one revision across multiple writes (`[REDACTED: private project name]/backend/tests/test_review_progress.py:25–30`).
**Smallest safe correction:** Coordinate pending writes and cleanup drains across lifecycle instances, keyed by reviewer and inspection, retaining revision validation. A replacement lifecycle must wait for the previous same-key drain before hydration/writing. Adding a blanket `disposed` check to `flush` would instead lose legitimate unmount tails.
**Regression:** Deferred save → A→B→A → newer checkpoint → old acknowledgment must never produce a trailing older cursor. Also verify ordinary unmount-tail persistence and independence of other reviewers/inspections.
**Confidence:** High for the client ordering defect.
### 4. An old acknowledgment can undo an epoch invalidation
**Evidence:** `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:95–103,115–118,208–213`; `[REDACTED: private project name]/frontend/src/stores/useV3SessionStore.ts:1047–1061`.
**Shortest trigger:**
1. A checkpoint is in flight.
2. `bumpCoverageEpoch(currentInspection)` clears coverage, pass and submission.
3. Its older acknowledgment runs before the epoch effect processes that transition.
`mergeSaved` checks disposal and inspection identity, but not epoch identity. It restores the old ranges and creates a `review-progress:<old revision>` pass. The epoch effect subsequently sees a non-null pass and skips rehydration.
**Outcome:** Intentionally invalidated proof is resurrected, and the intended revision refresh is skipped. If the restored ranges match the acknowledged signature, unchanged flushes also remain no-ops.
**Smallest safe correction:** Fence acknowledgment application against applicable epoch invalidations. Record whether the transition invalidated the current lifecycle when it occurs; do not infer that afterward from a pass an old response can recreate. Ignore unrelated inspection-scoped bumps.
**Regression:** Deferred acknowledgment overlapping a current-inspection bump must not restore the old ranges/pass or suppress rehydration. An unrelated scoped bump must leave current progress untouched.
**Confidence:** High for client invalidation behavior. The initiating reset caller’s backend behavior is outside this packet; backend data loss is not asserted.
### 5. A SHA transition can pair old watched proof with the new pack identity
**Evidence:**
- Same-inspection metadata hydration preserves coverage/pass: `[REDACTED: private project name]/frontend/src/stores/useV3SessionStore.ts:948–956`.
- Progress invalidation happens in an effect: `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:33–37,205`.
- Shell uses its returned boolean: `[REDACTED: private project name]/frontend/src/components/v3-review/V3LayoutShell.tsx:1009–1019`.
- Attestation independently reads the new SHA: `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useFullVideoReviewAttestation.ts:51–95`.
**Shortest trigger:** Metadata refresh changes SHA while the same render makes an otherwise complete All-zones candidate eligible, with no existing submission for that pass.
That render still sees the old `reviewProgress.hydrated === true`, old pass and old ranges. Attestation combines them with the new SHA. Setting hydration false in the progress effect does not invalidate the candidate already captured by the attestation effect; the store’s submission guard checks inspection/pass, not SHA or progress revision.
**Outcome:** A full-review request can be attempted using watched evidence from the previous pack, labeled with the new pack identity. The packet does **not** establish whether the server accepts it.
**Smallest safe correction:** Bind exposed hydration readiness to the current reviewer/inspection/SHA identity synchronously during rendering. A scope change must immediately make it false, before downstream candidate construction; retain revision validation during subsequent hydration.
**Regression:** SHA change coincident with completion/All-zones eligibility must not POST until current progress hydration succeeds. Include the equivalent reviewer-change boundary.
**Confidence:** High for the stale-client-payload window, not for any server completion outcome.
## Verified lifecycle behavior and discarded false positives
- **Hydration:** `InspectionContext.tsx:233–261` supplies reviewed-zone metadata; the hook waits for matching inspection/session metadata, rejects a mismatched SHA, and retains local ranges only when revision and inspection match (`useReviewProgress.ts:37,161–177`).
- **Union and clipping:** `mergeReviewProgress.ts:7–24` preserves every positive gap. Checkpoints intersect ranges with the server interval without fabricating coverage (`useReviewProgress.ts:55–60`). The supplied merge tests and hook tests cover fractional gaps, in-flight earnings and boundary clipping.
- **Serialization within one effect:** Concurrent flushes await `inFlight` and recurse onto the latest tail (`104–129`). The pagehide test at `useReviewProgress.test.tsx:230–244` corroborates this.
- **Pause/unmount:** Pause flushes at `206–207`; cleanup starts a flush before disposal at `194–203`. Disposal suppressing UI merges is expected—not evidence that the tail cannot persist. Successful browser-unload delivery is not guaranteed by this packet.
- **409/restart:** 409 blocks saving, removes usable proof and requires rehydration. Restart waits for the existing checkpoint and retains old coverage until acknowledgment (`131–159`), as tested at `245–263`. Explicit fresh-pass/epoch clearing is expected; findings 2 and 4 concern incorrect triggering or resurrection.
- **Completion remains separate:** Progress GET/PUT wrappers at `api/inspections.ts:975–995` do not set completion. Attestation uses the canonical candidate builder, and completion status comes from server responses. Nothing here establishes acceptance or certification from partial progress.
## Limits and next action
`AuthContext`, `api/client`, played-range capture, resume/navigation helpers, the canonical completion predicate and backend implementation are outside the packet. Their behavior was not assumed beyond the supplied interfaces and tests.
Next useful action: add the focused deferred-response and same-revision retry cases above, then implement scoped pending-state retention, cross-lifecycle serialization and synchronous scope/generation fences—without weakening reviewer isolation, revision/409 handling or the no-gap 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.
Primary judge's stated reason
B provides materially more useful coverage of the requested lifecycle by identifying how ordinary retry can incorrectly trigger fresh-pass clearing, and proposes preserving same-revision started state with a targeted regression. This is a supported coverage advantage, not merely a forced slight preference or a reward for additional findings. Confidence remains limited by the timing qualifications needed for some other B findings.
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_48d4d0afb2415579ab0092b113c2133eae117fe3353042b0258b87868089e038. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.