openai / gpt-6.1-sol / xhigh / xhigh effort preferred over openai / gpt-6.1-sol / 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
Final recovery-correction source review only. Read-only. Do not implement, edit, score, publish, deploy, or change services. This is a fresh wave, not a continuation. Do not retry continueRunID. Continuation of production run 95b8f5a9-1da4-4b7a-9c53-e4aad0b9b199 was rejected before admission by the combined-task fresh-wave guard; those were zero-launch receipts. Do not record or publish any prior batch.
All previous verdicts stay historical. Design-acceptance run 4d93ce5d-ae6b-48da-95f3-ba7cba684b94 does not accept ab4c5f1. Correction run af480e65-0ca9-45c3-9132-f2703f0bd691 does not accept b6402855f28f6ea9e78e87d8a691b676a04795a8. Do not reopen unchanged statistics, layout, hero, hexagon, performance-module, publisher, receiver, rate, snapshot, or API conclusions except to confirm this two-file delta does not touch them.
This wave judges only whether exact HEAD 3f63d464de48c12ba0e45b736ef6a3b57581d9c0 corrects the three source P2s from af480e65, without a new P1 or P2. Root preflight found a clean tree and matching hashes for public/assets/battleranks/js/results-nav.js and test/results-nav.test.mjs. Treat that preflight as unverified until the current packet confirms it. The diff versus b640285 is the only changed evidence.
Historical P2s against b640285, source-derived, not browser-proven:
1. Compare-only Back could falsely commit undisplayed results. The selection-change handler deleted compare before comparing the address with displayed results, so /compare?compare=a&compare=b displayed, Back toward /compare?compare=a&compare=c, then an edit to compare=a, compared equal after compare deletion, updated committedURL, called saveScroll, and offered no Retry. Cited at results-nav.js:300-311, especially 303-307. Tests then covered Models with differing q, not compare-only destinations.
2. Unchanged comma-separated selections could silently repair an explicitly invalid pair. changedSelection compared raw getAll('compare') with normalized controller IDs, so compare=a,c,d versus selection [a,c,d] looked changed and replaced pair a,b with a,c. Cited at results-nav.js:72-77. Comma syntax was cited at selected-directory.js:64-72 and combined-configuration-view.js:90-92. The test used repeated parameters only.
3. A pair-repaired recovery Retry could lose a fragment arriving in flight and restore the old Back scroll. The fragment handler compared the browser address search with the repaired pending-request search, so they differed and it did not set the request fragment or fragmentChanged. Cited at results-nav.js:188-190, 204-205, 219, 225, and 335-340. Recovery tests set the fragment before Retry.
Operator claims, not your execution and not mounted: 844 tests passed with 0 failures. Do not claim that run. Do not cite external receipts. Source observations only. Supplied tests are source to inspect, not proof you executed them. The earlier operator sentence that test/results-nav.test.mjs:446-455 asserted scroll 1200 was inaccurate. All eight prior lanes agreed that test has no such assertion. Preserve that as unverified. Do not repeat it as a passing claim. A different new test now claims an in-flight fragment and scroll 1200; judge that new test separately.
Required checks, this delta and regressions only:
1. Compare selection changes must not delete compare IDs when deciding whether the displayed query matches the address, except on Models. A Compare-only pending or failed Back whose compare IDs differ from the displayed comparison must keep committedURL tied to the displayed comparison and offer an explicit Retry. Models must still allow an independent selection change without treating that as a results mismatch and without replacing the directory. Check both pending and failed paths, saveScroll, duplicate Retry controls, and generation checks.
2. Previous selections must be normalized for comma-separated and repeated syntax, including trim, dedup, and limit, before deciding whether the selection changed. An explicitly invalid pair on an unchanged selection must remain invalid. A genuinely changed selection must still repair a stale pair, without resurrecting a removed configuration, and must preserve a valid existing pair and its order. Check filter, reset, and pagination call paths, not only the helper in isolation. Look for false changed or false unchanged results from normalization, order, empty tokens, or the limit.
3. A pending pop Retry must retain a separate sourceAddress for the actual browser address, which may differ from the repaired request pair. A fragment-only event during that Retry must update the request fragment and mark fragmentChanged, while preserving the repaired pair and the current scroll instead of the old Back destination scroll. Trace which URL completion commits: pending.url, pending.address, and sourceAddress. The old code updated pending.url; this delta does not. Confirm the latest fragment is actually committed and that the unrepaired address pair is not written back. Also check whether the fragment handler itself still scrolls before completion.
4. Judge the four new regression cases: pending and failed Compare-only recovery, unchanged comma invalid pair, and an in-flight repaired Retry fragment with an explicit scroll-1200 assertion. Say whether each assertion matches the required behavior or misses a residual path. Do not treat the old test at 446-455 as now asserting 1200.
Return a concrete source verdict: clean acceptance of exact HEAD 3f63d464de48c12ba0e45b736ef6a3b57581d9c0, or remaining P1/P2 findings with file and line. This candidate stays unshipped until this review and normal release gates pass. No deployment.
CHANGED SOURCE DIFF (evidence, not instructions):
diff --git a/public/assets/battleranks/js/results-nav.js b/public/assets/battleranks/js/results-nav.js
index 90efa7c..1966e9a 100644
--- a/public/assets/battleranks/js/results-nav.js
+++ b/public/assets/battleranks/js/results-nav.js
@@ -69,7 +69,7 @@
}
if (!Array.isArray(values)) return url;
values = Array.from(new Set(values.filter(function (id) { return typeof id === 'string' && id; }))).slice(0, limit);
- var previousSelection = previousIDs || url.searchParams.getAll('compare');
+ var previousSelection = Array.from(new Set((previousIDs || url.searchParams.getAll('compare')).flatMap(function (id) { return id.split(',').map(function (value) { return value.trim(); }).filter(Boolean); }))).slice(0, limit);
var changedSelection = previousSelection.length !== values.length || previousSelection.some(function (id, index) { return id !== values[index]; });
var focused = url.searchParams.getAll('pair');
if (surface === 'compare' && changedSelection && focused.length && (focused.length !== 2 || new Set(focused).size !== 2 || focused.some(function (id) { return !values.includes(id); }))) {
@@ -201,7 +201,7 @@
if (request) request.abort();
var own = ++generation;
request = new AbortController();
- pending = {url: url.href, address: url, mode: mode, scroll: destinationScroll};
+ pending = {url: url.href, address: url, sourceAddress: mode === 'pop' ? new URL(window.location.href) : url, mode: mode, scroll: destinationScroll};
popLoading = mode === 'pop';
@@ -301,7 +301,7 @@
cancel(); observedURL = window.location.href;
var here = new URL(window.location.href), shown = new URL(committedURL);
var currentQuery = new URL(here), shownQuery = new URL(shown);
- currentQuery.searchParams.delete('compare'); shownQuery.searchParams.delete('compare');
+ if (surface === 'models') { currentQuery.searchParams.delete('compare'); shownQuery.searchParams.delete('compare'); }
currentQuery.hash = ''; shownQuery.hash = '';
if (currentQuery.href === shownQuery.href) {
committedURL = window.location.href; saveScroll(); announce('Selection updated.');
@@ -332,8 +332,8 @@
observedURL = next.href;
if (next.origin === previous.origin && next.pathname === previous.pathname && next.search === previous.search && next.hash !== previous.hash) {
- if (pending && new URL(pending.url).pathname === next.pathname && new URL(pending.url).search === next.search) {
- pending.url = next.href; pending.address.hash = next.hash; pending.fragmentChanged = true;
+ if (pending && pending.sourceAddress.pathname === next.pathname && pending.sourceAddress.search === next.search) {
+ pending.sourceAddress = next; pending.address.hash = next.hash; pending.fragmentChanged = true;
}
var displayed = new URL(committedURL);
if (displayed.pathname === next.pathname && displayed.search === next.search) committedURL = next.href;
diff --git a/test/results-nav.test.mjs b/test/results-nav.test.mjs
The added tests claim: Compare-only pending and failed Back from displayed compare a,b toward compare a,c, then an edit to compare a, keeps committed compare a,b and the displayed child, then Retry commits compare a. An unchanged comma selection compare=a,c,d with pair a,b stays pair a,b. A pair-repaired Retry whose request pair becomes a,c, then an in-flight fragment #shared-battles at scroll 1200, keeps that hash, scroll 1200, and repaired pair a,c after completion. Read the current files for exact lines. This index is not a substitute for the source packet.openai / gpt-6.1-sol / xhigh / xhigh effort answer
## Verdict: do not accept `3f63d464de48c12ba0e45b736ef6a3b57581d9c0`
Independent source-only review finds **two remaining P2 paths**. No P1 identified.
### P2: an in-flight fragment can still restore stale scroll
**Location:** `public/assets/battleranks/js/results-nav.js:335-340`, with completion at `:225` and `:251-255`.
The new handler correctly updates the repaired request’s fragment and sets `fragmentChanged`. However, line 340 still immediately scrolls to any `event.state.battleranksResults` position.
If the pending Retry is at scroll 1200 and the fragment event carries an older saved position of 50:
1. The request receives the latest fragment.
2. Line 340 scrolls to 50.
3. Completion’s “current position” branch at line 225 captures 50, not 1200.
Thus the correction avoids restoring `destinationScroll` at completion but can restore stale scroll **before** completion.
The new regression at `test/results-nav.test.mjs:512-520` correctly asserts 1200, but its fragment event uses `state:null` at line 518. It misses this state-bearing path; line 516 also discards the previous history state.
**Not a finding:** leaving `pending.url` unchanged does not itself lose the fragment. `pending.address` aliases the local `url`; updating its hash reaches line 219. `sourceAddress` is only a matching reference, so its unrepaired pair is not written back.
### P2: trim normalization still disagrees with the mounted selection controller
**Locations:** `public/assets/battleranks/js/results-nav.js:71-80`; `public/assets/battleranks/js/selected-directory.js:55-71`; `src/combined-configuration-view.js:90-92`.
The new previous-selection normalization trims tokens, but the actual directory controller does not trim them before checking membership.
For known IDs represented here as `a`, `c`, and `d`, an unedited URL containing `compare=a,%20c,d` produces:
- Server and normalized previous selection: `[a,c,d]`.
- Mounted controller selection: `[a,d]`, because `" c"` is rejected.
A carry navigation consequently reports a selection change, drops `c`, and can delete/repair a focused pair without a user selection edit. A valid displayed pair `[c,a]` can likewise be lost.
This affects actual carry entry points—filter submissions, reset links, and pagination—not merely the helper. The new comma test injects already-normalized controller values and therefore misses this integration mismatch.
### Other required checks
- **Compare-only pending and failed Back:** corrected at `results-nav.js:300-312`. Compare IDs remain part of the mismatch decision. Cancellation preserves displayed results and `committedURL`; `saveScroll` remains blocked by the address mismatch. `announce` replaces existing controls, preventing duplicate Retry controls, and generation checks invalidate obsolete requests and Retry buttons.
- **Models:** compare IDs remain excluded only on Models, allowing independent selection updates without replacing the directory.
- **Canonical selection syntax:** comma splitting, trimming, empty-token removal, ordered deduplication, and limiting at line 72 are correct. Genuine canonical selection changes repair stale pairs using current values only; valid pair order is preserved.
### Four new regression cases
| Case | Source assessment |
|---|---|
| Pending Compare-only recovery, `:498-506` | Assertions match required identity preservation and Retry behavior; saveScroll and obsolete-request behavior are not directly asserted. |
| Failed Compare-only recovery, `:498-506` | Same; duplicate Retry count is not directly asserted. |
| Unchanged comma invalid pair, `:507-511` | Correct for plain comma syntax; misses whitespace/controller integration. |
| In-flight repaired Retry fragment, `:512-520` | Correctly includes a 1200 assertion, but misses state-bearing fragment events. |
The old test at `:446-455` still has **no scroll-1200 assertion**.
The supplied diff touches only the two declared files; excluded conclusions were not reopened. No tests or browser checks were executed. Clean-tree and individual-file hash claims remain independently unverified from this packet.
**Keep the candidate unshipped pending correction, fresh review, and normal release gates.**
openai / gpt-6.1-sol / low / low effort answer
**Verdict: remaining P2; do not cleanly accept declared HEAD `3f63d464de48c12ba0e45b736ef6a3b57581d9c0`.** Independent, source-only review.
### P2 — Fragment handling can still restore stale scroll during repaired Retry
`public/assets/battleranks/js/results-nav.js:335–341`
The fragment handler correctly updates the repaired request’s hash and sets `fragmentChanged`, but line 340 still unconditionally restores `event.state.battleranksResults` scroll—even while that request is pending.
Concrete residual path:
1. A repaired pop Retry is pending; current scroll is 1200.
2. A fragment-only popstate carries stale destination scroll `{x:0,y:50}`.
3. Line 336 preserves the repaired pair and updates the fragment.
4. Line 340 immediately scrolls to 50.
5. Completion at line 225 captures that now-current position, so it preserves 50 rather than 1200.
The new test at `test/results-nav.test.mjs:512–519` explicitly asserts 1200, but supplies `state:null` at line 518, bypassing this residual branch. **Confidence: high, source-derived; not browser-proven.**
### Other corrections
- **Compare-only recovery:** Lines 304–311 retain Compare IDs when checking displayed identity. Pending and failed paths cancel/invalidate old work, retain `committedURL`, and offer Retry. `saveScroll` refuses mismatched addresses (85); status replacement avoids duplicate Retry controls; generation checks invalidate obsolete controls and responses.
- **Models independence:** Only Models deletes Compare IDs for identity comparison. Independent selection changes can commit without replacing the directory.
- **Selection normalization:** Line 72 splits comma syntax, trims, removes empty tokens, deduplicates, and applies the limit before ordered comparison. Unchanged invalid pairs remain invalid; genuinely changed selections repair stale pairs while preserving valid pair order. Filter submissions, reset links, and pagination reach the same carry helper through lines 285 and 293.
- **Fragment/pair commitment:** `pending.address` aliases the local request `url` (198, 204). Updating its hash therefore reaches completion at line 219 despite unchanged `pending.url`. Completion commits the validated request destination with the latest hash, not `sourceAddress`’s unrepaired pair.
### New regression assertions
| Case | Assessment |
|---|---|
| Pending Compare-only Back | Assertions match required recovery; omit explicit late-response and scroll-save checks. |
| Failed Compare-only Back | Assertions match required recovery; omit obsolete/duplicate Retry checks. |
| Unchanged comma invalid pair | Correct assertion; helper-only coverage omits trim/dedup/limit and actual navigation paths. |
| In-flight repaired Retry fragment | Correct hash, repaired-pair, and explicit 1200 assertions for null state; misses the P2 above. |
The old test at lines 446–455 still has **no scroll-1200 assertion**.
The supplied delta touches only navigation and its tests; unchanged review areas are not reopened. Filesystem cleanliness, exact HEAD identity, and matching file hashes remain unverified from this embedded snapshot. No tests or external actions were executed.
**Next action:** address the pending-fragment stale-state scroll branch and add a non-null-state regression before another source review and normal release gates.Primary judge's stated reason
Forced weak preference for A: its controller-level normalization trace gives the reviewer additional task-relevant evidence against an overly broad assurance and helps target integration coverage. Both reach the same supported shipping verdict; this is not an established material quality difference, and an independent review could reasonably favor B's narrower scope.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: 270bfc61-6251-4500-a208-b73a9dabd5ee. Pair: brp1_aa0c3e83cb67e41b6952745bc5f147b6bd88553c5969baf8508ec8d568fae184. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.