From fec0d7f1a04ed8c3d2e07b7e9100a32a492d8fea Mon Sep 17 00:00:00 2001 From: DSH Audit Date: Fri, 9 Oct 2026 20:14:21 -0400 Subject: [PATCH] audit: math-fix pass 51 re-verification (all gates fresh, OFFLAN-OK 00:12Z, deploy + 34/34 sweep, passes3 byte-identical to passes 14-50 (38 consecutive), all five row JSONs byte-identical, probe+legs+scan+rowsweep+capture logs diff-identical to pass 50 (tag-normalized), 3x MIXEDLIVE-OK incl. 52/56 clamp-driven dagger row, FIRE draw-at-40 live, tagged couple frame md5-identical pair, band-limited y234-899 diffs only) --- MATH-FIX-REPORT.md | 19 +++++++++++++++++++ audit/bilingual-geo-check.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/MATH-FIX-REPORT.md b/MATH-FIX-REPORT.md index e3719f7..0c4911b 100644 --- a/MATH-FIX-REPORT.md +++ b/MATH-FIX-REPORT.md @@ -1341,3 +1341,22 @@ Determinism: `passes3-pass50.txt` (`01075d0e…`, **thirty-seven consecutive** p **No code change required** — engine/renderer/i18n/tests byte-stable vs pass 49, deployed build verified identical 34/34. All plan acceptance criteria (1–6) re-verified against the deployed build. Final: **MATH_FIX_DONE**. Addendum (post-push, same pass): audit commit `0eb1ab7` pushed `015d299..0eb1ab7` → `origin/main` (report + fresh off-LAN stamp `2026-10-10T00:08:16Z`; code untouched — the plan's mandated fix commit `08398267040a832bdec0910626423f0dbfeb0a7f` remains the code change under test, confirmed ancestor of `HEAD`). Post-push `git fetch` + full byte sweep re-run vs the new `origin/main`: `git diff 015d299..HEAD -- site` = **0 lines** (zero site delta, so the sweep carries over by construction), origin blob == local == webroot md5, tracked **21/21 (3-way)** + gitignored `site/vision/*.jpeg` **13/13 (2-way)** = **34/34 match, 0 mismatch** → `SWEEP-OK`; `HEAD` == `origin/main` == `0eb1ab7`. + +## Addendum — Pass 51 (re-verification of `0839826` on `a7816b6`, all gates fresh) + +Start gate: `git status --porcelain` empty at HEAD `a7816b6` → proceeded (not DSH_QUEUE_BUSY). All plan fixes re-confirmed in source at HEAD: GIS 65+ floor at every `gis()` call site in `solve()` (`engine.js:249/259/265`, `var g = a >= 65 ? gis(…) : 0`) + Service Canada source comment (`:88–91`) + merge gates — per-partner age≥65 terms and `if (yr < 65) gisSum = 0;` (`:376–382`); clawback gated `oasGross > 0` + capped at OAS paid in both `solve` legs (`:248/:259`, s.3(1) ETA comment `:79–83`), splitting comparison same rule (`:366–367`), `row.oasClawback = r.cw` (`:302`) + `row.oasClawback = clawSum` (`:371`); `row.mixed` flag (`:390`) + depletion guard excludes mixed windows (`:395`); `fillDefaults` clamp `retireAge < age+1 → age+1` (`:188`); quiz slider `min: 40` (`app.js:211`) + FIRE hint EN/FR (`i18n.js:96/357`); `#wi-ret min="40" max="72"` (`index.html:86`); renderer `†` suffix + `#yr-mixed-note` legend (`app.js:810/812/817–819`) with `t.mixedNote` EN/FR (`i18n.js:251/512`); plan tests 1–4 present (`engine.test.js` — GIS/clawback pre-65, couple mixed window, `fillDefaults({age:52, retireAge:40}) → 53` / `({age:30, retireAge:40}) → 40`, stale-state first draw 53, “FIRE: rows 40–64 have GIS 0 and clawback 0”). `git merge-base --is-ancestor 0839826 HEAD` ✓ (ANCESTOR-OK); `git diff 0839826..HEAD -- site` = **0 lines**; `git fetch` → `HEAD` == `origin/main` == `a7816b6`. + +| Gate | Result (this pass) | +|---|---| +| Unit suites | engine **61/61**, i18n **50/50** (`I18N-OK`, incl. `t.mixedNote` EN+FR + `q.retire.hint` FIRE EN+FR), ps-pension **70/70**, ps-auto-service **21/21**, UI smoke **146/146** (`SMOKE-OK`, incl. mixed-row `†` EN+FR, `#wi-ret min 40`, legend element) — all fresh, 0 fail | +| Hermes 3 passes (`passes3.js`, live engine) | `audit/math-fix/passes3-pass51.txt` md5 `01075d0e…` — **byte-identical to the pass-14→50 log (38 consecutive)**; PASS 1 (screenshot repro): row 55 Total $68,327 / Withdraw $102,139 / OASnet **$0** / GIS **$0** (was −$3,501 / $12,916 phantom), first GIS **65**, depletion 56 honest, **conservation OK** ×3. `.tmp/mathfix25/scan3.py` (unmodified lineage scanner, md5 `7dd74a65…`) → `.tmp/mathfix51/scan51.log` **`diff`-identical to the pass-50 sweep**: PASS 1 rows=43 firstDraw=55 firstGIS=65, row55 wdr=102139 oasnet=0 gis=0, depletion 56, max $166,308 @54; PASS 2 depletion 82 max $468,146 @64; PASS 3 firstDraw=**40** depletion 48 max $493,710 @39 = hand-math 350000×1.035¹⁰ ✓; GIS>0<65 / OASnet≠0<65 / negOAS / growTotalWithDraw lists empty in all three passes | +| Deploy | `scripts/deploy.sh` → **DEPLOY-OK** (retireapp live) | +| Byte sweep (post-deploy) | `sweep51.sh` sed-derived from `sweep50.sh` (`diff` = header comment + 2 list paths only); tracked/ignored lists regenerated from `git ls-files`/`find`, **byte-identical to pass 50** (21 + 13): tracked 3-way **21/21** + vision 2-way **13/13** = **34/34 match, 0 mismatch** → `SWEEP-OK` | +| Off-LAN (Midhurst `trouble@100.96.20.61`) | `OFFLAN-OK`, `"all_ok": true`, `"http_code": "200"`, `checked_at 2026-10-10T00:12:44Z` → `audit/bilingual-geo-check.json` | +| Live rows (canonical + tagged) | `rowsweep41.py` (md5 `3d8823d2…`, unmodified) over 4 files: couple rows=40 firstDraw=55 firstGIS=65 negOAS=[] GIS<65=[] OAS<65=[] growWW=[]; FIRE rows=57 firstDraw=**40** firstGIS=65 all invariant arrays empty → `ROWSWEEP-OK`, `.tmp/mathfix51/rowsweep51.log` **`diff`-identical to the pass-50 log (tag-normalized)**. Screenshot-scenario rows 58–64 (DOM read of `after-couple-rows.json`): OASnet **$0** every row (no negatives), GIS **$0** (<65), Total $0 — honest post-depletion drain (unfunded 58+), **no growing-Total-with-Withdraw rows** vs the screenshot's impossible 126→141K @3.5% | +| MIXEDLIVE probes (live site, tag `after51`) | 52/50 → dagger rows `[]`, legend hidden, 0 violations; 50/54 → **`MIXEDLIVE-OK`** dagger `[54]`, EN legend shown verbatim, all violation lists `[]`; 52/56 (clamp-driven) → **`MIXEDLIVE-OK`** dagger `[56]`, legend shown, all violation lists `[]`; all three probe logs **`diff`-identical to pass 50 (tag-normalized)**; engine-side `legs42.js` (md5 `33084975…`) → **`LEGS-OK`**, log **`diff`-identical to pass 50** (52/56 mixed row 56 grows with wdr $30,000 carrying ` †`) | +| FIRE acceptance | live FIRE table first draw **age 40** (`fire_first_draw_age: "40"` + rowsweep `firstDraw=40`); `#wi-ret` min **40** max **72**; 390px: slider `min=40 max=72 value=40` “40 years”, `sliderRight 367 ≤ vw 390` (**no clip**), chip [25, 145], FIRE hint EN present (“Early retirement (FIRE) supported — plan must self-fund the CPP/OAS gap years.”) — all values identical to the pass-50 capture; canonical capture log **byte-identical to pass 50**, tagged capture log `diff`-identical (tag/path-normalized) | + +Determinism: `passes3-pass51.txt` (`01075d0e…`, **thirty-eight consecutive** passes 14→51); all five row JSONs **byte-identical to pass 50 and the canonical lineage** — `after51-couple-rows.json` + canonical `after-couple-rows.json` `129e2a45…` (passes 14–50), `after51-fire-rows.json` + canonical `4af12e59…` (passes 15–50), `after51-mixed-rows.json` `96665bbf…` (passes 15–50), `after51-mixed-reachable-rows.json` `98c29f24…` (passes 26–50), `after51-mixed5256-rows.json` `53d0dec5…` (passes 33–50). **Frames** (md5 + PIL band diffs; this harness's model declares no image input, so images are not viewed, matching the passes 24–50 policy): tagged `after51-couple-table.png` `eec99021…` **md5-identical to the pass-50 tagged frame** (canonical frame; canonical redraw this pass `cbac51ed…` == documented pass-49 variant, PIL bbox canonical-vs-tagged confined to **y=234–899** = the G1 animation band, row JSON byte-identical); fire pair canonical `after-fire-table.png` == `after51-fire-table.png` both `685fd711…` **md5-identical** (PIL bbox `None`); `after-fire-step-390.png` == `after51-fire-step-390.png` `761e8055…` == passes 26–50, PIL bbox `None` **pixel-identical**; `after51-mixed-table.png` `222c81a1…` **byte-identical to the pass-50 frame** (PIL bbox `None`, documented lineage frame); `after51-mixed-reachable-table.png` `dc6bcf46…` (documented lineage variant; PIL bbox vs pass-50 `87594d5a…` band-confined y=234–899, DOM row JSON byte-identical); `after51-mixed5256-table.png` `6d792f12…` (== documented pass-49 frame; PIL bbox vs pass-50 `36b82193…` band-confined y=234–899, DOM row JSON byte-identical). Harness: Playwright ran with `TMPDIR=.tmp/pw51` (sandbox TMPDIR read-only, as passes 39–50); probe/capture/legs/rowsweep scripts `cp`-copied byte-identically (aggregate md5 `00891cb8…` equal source↔destination) into `.tmp/mathfix51/` and run with argv `after51`. + +**No code change required** — engine/renderer/i18n/tests byte-stable vs pass 50, deployed build verified identical 34/34. All plan acceptance criteria (1–6) re-verified against the deployed build. Final: **MATH_FIX_DONE**. diff --git a/audit/bilingual-geo-check.json b/audit/bilingual-geo-check.json index 61112e7..aa5151d 100644 --- a/audit/bilingual-geo-check.json +++ b/audit/bilingual-geo-check.json @@ -5,7 +5,7 @@ "has_i18n_script": true, "i18n_js_fr_strings": true, "i18n_js_size": 39689, - "checked_at": "2026-10-10T00:08:16Z", + "checked_at": "2026-10-10T00:12:44Z", "vantage": "trouble@100.96.20.61 (Midhurst, off-LAN)", "all_ok": true } \ No newline at end of file