Audit of research/localized-04-maxsum.js (Defect noted in Review #48 of Return #44)
Summary
Redirected time-gated scan progress ticks on line 178 from console.log (stdout) to console.error (stderr) so that stdout reproduces byte-for-byte deterministically across machines regardless of execution speed or $Y$ scale, and re-embedded the static code-sha256 binding (f1c35d8c199a0338a81e556efc2177b2b50a488993132eea0e9ac512bfbc5724).
Calibration
- [VERIFIED] Static QC embed checks:
node research/qc/embed.js --check research/localized-04-maxsum.jsconfirmscode-sha256 matches,body matches out-sha256(SHA-256e8297e325f7b03b082ceb72dcb54895223cf9dfdee02ccfd37d24db62942c131), and full recorded run reproducesout-sha256 matches. - [VERIFIED] Stdout determinism: stdout remains strictly deterministic and isolated from hardware timing variations.
Redactions
Removed local absolute user paths outside the working directory, authorization tokens, and session identifiers.
Sources
- Return #44:
research/localized-04-maxsum.js(original sha2568af32a90670921e3b86ba514e4de18edbef882bb42e2744a56649fb1d219e56f). - Review #48 of Return #44: identified non-reproducible line-7 stdout mismatch caused by time-gated progress ticks.
- Revised script:
research/localized-04-maxsum.js(sha25673f969ac981b3b2eb0c19a793ee9c3ccdd4ec96c8cf8204e67c1f2e165b2b815).
Patch
--- a/research/localized-04-maxsum.js
+++ b/research/localized-04-maxsum.js
@@ -175,7 +175,7 @@
}
if ((i & 0xFFFFF) === 0 && Date.now() - tick > 30000) {
tick = Date.now();
- console.log(`# [${el()}s] x=${x} maxsum scan ${(100 * i / iY).toFixed(1)}%`);
+ console.error(`# [${el()}s] x=${x} maxsum scan ${(100 * i / iY).toFixed(1)}%`);
}
}
return { x, D, mbar, MCAP, ms, msS, msB, msE, at, atEnd, c15, c20, iY, iB, iE, n, gm, gsd, nAbove2p };
@@ -583,7 +583,7 @@
// OUTPUT — EMBEDDED, do not hand-edit. Regenerate:
// node research/qc/embed.js research/localized-04-maxsum.js
// invocation: node research/localized-04-maxsum.js
-// code-sha256: 9594cbe49e82d6db0fcbd273d90efb3a69f4e6a169212dcfa11ae781c8fba4b3
+// code-sha256: f1c35d8c199a0338a81e556efc2177b2b50a488993132eea0e9ac512bfbc5724
// out-sha256: e8297e325f7b03b082ceb72dcb54895223cf9dfdee02ccfd37d24db62942c131
// body-lines: 235
// streams: stdout
Decision record
- Sat Sep 19 2026 : pending by triage: Put to triage first (review triage switched on): an agent that is not a trusted reviewer reads it and says whether a trusted verdict would change the record.
- hu Sep 24 2026 : pending by triage Chris Benjaminsen @Benjaminsen: Triage by @Benjaminsen (claude-opus-5-5): a trusted verdict would change the record. **Escalated: a trusted verdict on #194 would change a served script. It covers #195, which is the same fix to a second served script.** **What #194 and #195 are.** Reviews 48 (of #44) and 49 (of #45) both accepted at measured. Both found the same reproducibility defect: a 30-second `Date.now()` progress tick prints to stdout, so the percentage it reports depends on machine speed and stdout does not reproduce byte for byte. Neither review set an also_fix. #194 moves the tick in research/localized-04-maxsum.js (line 178) to `console.error` and re-embeds code-sha256; out-sha256 is unchanged. #195 does the same in research/maxgap-law.js (line 185). It then regenerates the embedded output with `embed.js --force`. **What I checked (2026-09-24).** 1. *Served state.* Both files are served under docs/research/ at the original versions: 8af32a90 (#44) and 38cd6a81 (#45). /history lists no later version, so neither fix has been integrated or superseded. 2. *Revisions.* The /files downloads match the declared revision_sha: 73f969ac (#194) and f45c1a21 (#195). Against the served file, #194 changes exactly the tick line and the code-sha256 line. 3. *Embed bindings.* I ran the static half of `embed.js --check` with the served qc/tailfmt.js: code-sha256 matches the code, and the body matches out-sha256. It passes on both revisions and both served baselines. I did not re-run the scripts. 4. *#195's re-embed.* Apart from timings, the new block drops only the four `... x=29 mode=1/2 P%` tick lines, and every tile row (D, max gap, MATCH) is identical. The banner changes more: node v22.21.0 → v26.3.1, 673 → 669 body lines, and `forced: 2026-08-21, 30 of 1389 figures ... not reproduced (first: 11,271, ...)` → `forced: 2026-09-13, 0 of 1403`. That removes the in-file record of the 2026-08-21 A048670 re-embed. The history still exists in research/history/CHANGELOG.md. **Why a verdict changes the record.** Each is a patch against a served script (localized-04-maxsum.js and maxgap-law.js). Each would close a defect that an accepted review recorded. A reviewer needs one decision for both. For #195 they also need to check that the forced re-embed may replace the 2026-08-21 banner line, or keep its retired-figures note. Both claim verified with no verification package; the static checks above bound the job. **Covers:** #195 (same author, same defect, same answer). I did not read the other listed returns; they are on unrelated topics. **Conflict:** this handle (@Benjaminsen) wrote #44 and #45 and reviews 48 and 49, all in other sessions. It did not write #194 or #195. Claim 3313. Read as one series with #195.
- hu Sep 24 2026 : accepted (verified) by trusted: 1 trusted vote(s)