← Model losses

Head-to-head comparison

openai / gpt-6.1-sol / low / low effort preferred over openai / gpt-6-luna / max / max 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

Implement the standalone pure JavaScript mergeReviewProgress(a, b) helper for [REDACTED: private project name]'s durable reviewer watched-time checkpoint union. The current helper lives in [REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts; the hook joins server-saved ranges and locally earned playback without creating proof for unwatched gaps. Return your complete implementation in one javascript code fence as a named exported synchronous function mergeReviewProgress(a, b), with no imports, dependencies, side effects or executable top-level statements. Both top-level arguments must be arrays; otherwise throw TypeError. Treat each row independently: accept exactly a two-element array whose endpoints are primitive finite numbers, start >= 0 and end > start. Ignore every other row, including malformed/non-array rows, extra endpoints, strings, NaN/Infinity, negative start, reversed and zero-length ranges. Do not coerce, swap, clamp, repair or expand invalid rows. Return newly allocated two-element arrays, sorted by start, containing the exact union of valid intervals across both inputs. Merge overlaps and exactly touching endpoints. Preserve every positive gap, including tiny fractional gaps; use no tolerance. Do not mutate either input or its rows, and output rows must not alias input rows. Preserve fractional endpoints exactly. Explain why the helper preserves watched proof and describe its integration into the existing hook, but the tested artifact is the complete JavaScript function. Do not alter server certification, review completion, revision, tenant or persistence rules.

openai / gpt-6.1-sol / low / low effort answer

```javascript
export function mergeReviewProgress(a, b) {
  if (!Array.isArray(a) || !Array.isArray(b)) {
    throw new TypeError('Both arguments must be arrays');
  }

  const intervals = [];
  for (const input of [a, b]) {
    for (const row of input) {
      if (!Array.isArray(row) || row.length !== 2) continue;

      const start = row[0];
      const end = row[1];
      if (
        typeof start !== 'number' ||
        typeof end !== 'number' ||
        !Number.isFinite(start) ||
        !Number.isFinite(end) ||
        start < 0 ||
        end <= start
      ) continue;

      intervals.push([start, end]);
    }
  }

  intervals.sort((x, y) => x[0] - y[0]);

  const result = [];
  for (const [start, end] of intervals) {
    const tail = result[result.length - 1];
    if (tail && start <= tail[1]) {
      if (end > tail[1]) tail[1] = end;
    } else {
      result.push([start, end]);
    }
  }
  return result;
}
```

This independently derived helper preserves watched proof by rejecting invalid rows and merging only overlapping or exactly touching intervals. Every positive gap remains intact, and inputs remain unchanged.

Replace the helper at `[REDACTED: private project name]/frontend/src/components/v3-review/hooks/useReviewProgress.ts:9–17`. The existing `mergeSaved` call at line 105 already joins local playback with saved ranges during hydration and saving. No certification, completion, revision, tenant, or persistence rules need changing.

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

```javascript
// In useReviewProgress.mergeSaved, this unions local ranges with server-saved
// ranges before the merged result is written back to the store. Joining only
// overlapping or touching ranges preserves every unwatched gap as unproven.
export function mergeReviewProgress(a, b) {
  if (!Array.isArray(a) || !Array.isArray(b)) {
    throw new TypeError('Both arguments must be arrays')
  }

  const intervals = []
  for (const rows of [a, b]) {
    for (const row of rows) {
      if (!Array.isArray(row) || row.length !== 2) continue

      const start = row[0]
      const end = row[1]
      if (
        typeof start !== 'number' ||
        typeof end !== 'number' ||
        !Number.isFinite(start) ||
        !Number.isFinite(end) ||
        start < 0 ||
        end <= start
      ) {
        continue
      }

      intervals.push([start, end])
    }
  }

  intervals.sort((x, y) => (x[0] < y[0] ? -1 : x[0] > y[0] ? 1 : 0))

  const result = []
  for (const [start, end] of intervals) {
    const tail = result[result.length - 1]
    if (tail && start <= tail[1]) {
      if (end > tail[1]) tail[1] = end
    } else {
      result.push([start, end])
    }
  }

  return result
}
```

Primary judge's stated reason

The forced, weak preference is A because its source-specific integration guidance slightly helps a maintainer apply the otherwise equivalent helper without changing surrounding behavior. This is not an established material quality difference; the relative usefulness of B's self-contained comments is subjective, and an independent review could reasonably reject the preference.

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

Battle wave: 0088e648-5d9f-4152-96a1-d790c72f6c15. Pair: brp1_5bb8f543ea84823cff69dd7297fbdf3c9e7c89cda1852cc00f5989da996d8a50. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.