xai / grok-4.7-efficient / xhigh / xhigh effort preferred over xai / grok-4.7-efficient / high / high 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.xai / grok-4.7-efficient / xhigh / xhigh effort answer
**Verdict: clean acceptance of the packet source presented as HEAD `3f63d464de48c12ba0e45b736ef6a3b57581d9c0`. No remaining P1 or P2.**
The two-file delta corrects all three historical source P2s. Static trace of `public/assets/battleranks/js/results-nav.js` and `test/results-nav.test.mjs` shows no new P1 or P2. This is source review only. Tests were not executed. The candidate stays unshipped.
## 1. Conclusion
The compare-only false commit is fixed. At `results-nav.js:304`, `compare` is deleted only when `surface === 'models'`. On Compare, `results-nav.js:306-311` compares the full query, including compare IDs. A pending or failed Back from displayed `compare=a&compare=b` toward `compare=a&compare=c`, then an edit to `compare=a`, does not match, does not assign `committedURL`, does not call `saveScroll`, and calls `offerRetry`. `cancel()` at `results-nav.js:301` bumps `generation` and aborts the in-flight pop before that offer. The failed pop’s earlier Retry is cleared by `announce()` `replaceChildren` at `results-nav.js:92` before the new Retry is appended at `results-nav.js:195`. The obsolete click is also generation-gated at `results-nav.js:186`. `saveScroll` at `results-nav.js:85` still no-ops when `window.location.href !== committedURL`. On Models, compare-only edits still match after the delete, update `committedURL`, and do not call `navigate`, so the directory is not replaced.
Comma and repeated selections are normalized before the changed-selection decision. `results-nav.js:72` splits commas, trims, drops empty tokens, dedups in first-seen order, and applies the same limit as `values` at `results-nav.js:71`. `compare=a,c,d` versus controller `[a,c,d]` is unchanged, so the invalid pair `a,b` is not repaired at `results-nav.js:75-77`. A real change still repairs only an invalid pair, using `values.slice(0, 2)`, so a removed ID is not resurrected. A valid pair and its order are left in place. That helper is the carry path for clicks (`results-nav.js:285`, including reset and pagination links), filter submit (`results-nav.js:293`), and selection Retry (`results-nav.js:188-189` with `previousIDs`). Editor, destination, pop, and retry intents still return before repair (`results-nav.js:56-61`). Normalization does not sort, so order itself is not a false change. Limit is applied on both sides, so an over-limit suffix does not by itself look changed; an invalid pair on that effective selection stays invalid, as required.
The in-flight fragment on a repaired pop Retry is fixed. `results-nav.js:204` stores `sourceAddress` as a separate copy of the browser address only for `mode === 'pop'`. Selection Retry is pop (`results-nav.js:190`). The fragment handler at `results-nav.js:335-336` matches that browser search, not the repaired request search, sets `pending.address.hash`, and sets `fragmentChanged`. It does not copy `next.search` onto `pending.address`. `pending.url` is no longer updated and is never read. Completion still commits the request object: `pending.address` is the same object as `url` (`results-nav.js:198` and `204`), `view.url.hash = url.hash` at `results-nav.js:219`, and pop completion `replaceState`s `view.url.href` at `results-nav.js:243-246`. The latest fragment is committed. The unrepaired address pair is not written back. Because `fragmentChanged` is set, `results-nav.js:225` uses `position()` instead of `destinationScroll`. The fragment handler still scrolls at `results-nav.js:340`, but only if that event’s own `battleranksResults` state is present. A hash arrival with `state: null` does not scroll there, and `saveScroll` no-ops while `popLoading` is true (`results-nav.js:85`). That does not reintroduce the old Back `destinationScroll`.
The four new cases match the required behavior. They do not miss a residual source path that is still wrong.
- `test/results-nav.test.mjs:498-506`, pending and failed: assertions match. Committed compare stays `a,b`, the displayed child stays, Retry is offered, and Retry commits `compare=a`. They do not assert replacement count, a single Retry node, or abort. Those are still correct in source, as traced above.
- `test/results-nav.test.mjs:507-511`: the assertion matches. Unchanged `compare=a,c,d` keeps pair `a,b`. It does not assert trim, dedup, empty tokens, limit, order, or the filter, reset, and pagination callers. Those callers all use `selectionURL` carry, and the helper implements those rules.
- `test/results-nav.test.mjs:512-520`: the assertions match and are not the old test. Hash `#shared-battles`, scroll `1200`, and repaired pair `a,c` are what completion writes. `state: null` means line 340 does not scroll. The contrast is `1200` versus `{0,0}`, because `replaceState({}, …)` cleared the Back scroll before Retry captured it. If `fragmentChanged` were missed, the assertion would fail. `test/results-nav.test.mjs:446-455` still has no scroll-`1200` assertion. That prior claim stays unverified and is not a pass.
The supplied diff changes only `results-nav.js` and `test/results-nav.test.mjs`. It does not touch statistics, layout, hero, hexagon, performance, publisher, receiver, rate, snapshot, or API code. Comma parsing cited at `selected-directory.js:64-72` and `src/combined-configuration-view.js:90-92` is context. Those files are not in the delta.
Confidence: high.
## 2. Discarded hypotheses
- Line 340 was not filed as a P2. It restores the fragment event’s own history scroll, not `pending.scroll`. The cited loss was completion using `destinationScroll` when the repaired search failed the old `pending.url` match. A new hash entry’s popstate state is null, which is what `512-520` drives. Back/Forward onto an entry that itself saved a scroll should still restore that entry.
- Order-sensitive equality was not filed. Both sides keep first-seen order. The cited false change was raw `['a,c,d']` versus `['a','c','d']`, which normalization removes. A later reorder is a real selection change.
- Directory missing trim at `selected-directory.js:68-69` was not filed. Spaced tokens already looked changed before this delta, because raw `getAll` did not equal controller IDs. Config IDs in the cited case have no spaces. The no-space comma case is fixed.
- Non-pop `sourceAddress` aliasing `url` was not filed. The required repaired recovery Retry is pop, and `results-nav.js:204` copies `window.location.href` only in that mode.
- A false Retry when compare strings differ but the ID set is the same is not a P2. The defect was a false commit. The new Compare path fails closed.
## 3. Missing evidence
Git preflight hashes and a clean-tree proof are not in this packet, so that preflight stays unverified here. The embedded `results-nav.js` does contain the four described hunks at lines 72, 204, 304, and 335-336. No tests were run, so the operator’s 844-test sentence is not claimed. `model-compare.js` is outside the packet. Models behavior was judged only from the `surface === 'models'` branch and the existing Models test at `test/results-nav.test.mjs:485-496`.
## 4. Next useful action
Keep this candidate unshipped until the other lanes agree and the normal release gates pass. No implementation, scoring, or deploy from this review.xai / grok-4.7-efficient / high / high effort answer
Clean acceptance of the embedded candidate for exact HEAD 3f63d464de48c12ba0e45b736ef6a3b57581d9c0. No remaining P1 or P2 in this two-file delta. Direct packet review only; tests were not executed, and the operator 844-pass claim is not adopted.
The three source P2s are corrected in `public/assets/battleranks/js/results-nav.js`. The other packet files are unchanged context. Statistics, layout, hero, hexagon, performance, publisher, receiver, rate, snapshot, and API conclusions are not reopened.
1. Compare-only Back no longer drops compare IDs before the address check, except on Models. At lines 303–307, `delete('compare')` runs only when `surface === 'models'`. A displayed `/compare?compare=a&compare=b` versus an edited `/compare?compare=a` therefore fails the href match. `committedURL` stays on the displayed comparison, `saveScroll()` is not called, and lines 308–311 announce a mismatch and offer one Retry. `cancel()` at line 301 aborts a pending Back and bumps `generation`, so a failed-path Retry from lines 264–267 is cleared by `announce()`’s `replaceChildren` and cannot fire (`current()` at line 186). Retry uses displayed compare IDs only as `previousIDs` (line 311) and navigates the live selection (lines 188–190), so it commits `compare=a`, not the undisplayed Back pair. On Models, compare is still ignored, so a compare-only edit still matches, updates `committedURL`, and does not replace the directory. `saveScroll()` at lines 84–85 also refuses a write when `location !== committedURL`.
2. Previous selections are normalized before the changed-selection decision. Line 72 splits commas, trims, drops empty tokens, dedups, and slices to the controller limit, matching `readCombinedCompare` at `src/combined-configuration-view.js:90–92`. `compare=a,c,d` versus `[a,c,d]` is unchanged, so lines 75–78 do not replace pair `a,b`. A real change still repairs a stale pair from current `values` only (no removed ID resurrected) and leaves a valid pair and its order alone. Carry is the filter, reset, and pagination path: submit at lines 287–293, click at lines 283–285, and the links in `src/combined-head-to-head.js:16` and `:32`. Order-only differences stay changed for membership, but a still-valid pair is not rewritten. Limit slicing on both sides does not create a false repair of an unchanged invalid pair.
3. A pop Retry keeps the browser address separate from the repaired request. Line 204 sets `sourceAddress` to `window.location` only for `pop`, and `address` to the request URL object. Lines 335–336 match that browser search, set `pending.address.hash`, and set `fragmentChanged`. They do not write `pending.url` or `sourceAddress` into the commit. Completion copies `url.hash` (the same object as `pending.address`) at line 219, then history-writes `view.url` at lines 241–246, so the latest fragment is committed and the unrepaired pair is not written back. Line 225 uses `position()` when `fragmentChanged` is set, so the Retry’s old Back `destinationScroll` is not applied. The handler at line 340 still scrolls only if that fragment event itself carries `battleranksResults`. A new in-flight fragment has null state, so it does not apply the Back scroll; a traverse that brings its own saved scroll is a different event.
The four new cases match the required behavior. Lines 498–506, pending and failed, keep committed `a,b` and the displayed child, then Retry commits `a`. They do not assert `saveScroll`, generation, or button count; those paths are correct in source. Lines 507–511 keep pair `a,b` for unchanged `compare=a,c,d`. That case is helper-only; filter, reset, and pagination still hit the same carry helper. Lines 512–520 repair to pair `a,c`, then an in-flight `#shared-battles` at scroll 1200 keeps that hash, scroll 1200, and pair `a,c`. Lines 446–455 do not assert scroll 1200. That remains an observation about the test text, not a pass claim.
Discarded as findings: line 340’s conditional scroll (null-state arrival does not restore Back scroll); directory `fromURL` still not trimming (`selected-directory.js:68–70`), which is outside the delta and does not reopen the no-space comma bug; Retry using pop scroll `{0,0}` when history state was wiped, which is pre-existing mismatch-retry behavior and not a false commit.
Preflight hashes and git HEAD were not re-verified in this lane. The judgment is of the embedded snapshot (packet digest `sha256:d4b42ea962927b066d434ec5d695d257218ab43b5bd3f84f92034e5979b4defd`), which contains the stated delta. No tests were run here. This candidate stays unshipped until this review and normal release gates pass.
Next useful action: independent review can accept this delta; do not deploy from this lane.Primary judge's stated reason
B offers a slightly more useful account of the new regression's actual scroll coverage, helping a reviewer avoid confusing its setup with preservation of the original Back scroll. This is a forced, weak preference between near-equivalent reviews, not an established material quality difference; an independent review could reasonably reject it.
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_9d7838be40033865b391bb2ac26280391f8eefd475d018507d9d75b117cbf66b. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.