Repository navigation
Correct the Ubuntu vs macOS reproducibility page (#1209) - #1730
Merged
vahid-ahmadi merged 5 commits intoOct 24, 2026
Merged
Conversation
vahid-ahmadi
force-pushed
the
vahid-ahmadi/issue-1209-ubuntu-macos-diagnosis
branch
from
October 8, 2026 14:53
9520af9 to
4810381
Compare
#1209 reported PolicyEngine UK producing slightly different aggregates on ubuntu-latest vs macos-latest CI. The triage narrowed it to dict-iteration-order differences in apply_uprating's tree walk (closed fix attempt PR #1223). A series of follow-on PRs since rebuilt the affected uprating code path: - #1254 added multi-year datasets and separated uprating into a discrete pipeline step; - PRs #1543 / #1544 / commit 13a4ac7 rebuilt uprate_rent which was the primary visible site of divergence; - #1523 skipped a redundant dataset copy in apply_uprating. CI runs on ubuntu-latest only, so there's no live cross-OS test to prove the issue is fully resolved. Persist the diagnosis as a known- issue page so that, if reproducibility regression resurfaces, the next person doesn't have to re-derive the root-cause shape. Includes a sketched minimal regression test for reintroducing deterministic ordering once a cross-OS CI matrix is restored.
Correct the root cause to the import-time growth-factor table (#1223), record that #1254 removed it, and add the October 2026 check that the parameter tree is byte-identical on macOS and Linux. Replace the regression-test sketch, which needed a default dataset and compared two runs on one OS, with a checksum check. Type the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Test job is now the sharded test suite on ubuntu-24.04-arm. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi
force-pushed
the
vahid-ahmadi/issue-1209-ubuntu-macos-diagnosis
branch
from
October 12, 2026 09:05
4810381 to
3613e85
Compare
Main already carries this page (#2386) and released its changelog line in 2.143.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page reached main through #2386 and its changelog line shipped in 2.143.0, so this drops the released .added fragment and corrects main's copy: - Cause: the page presented #1223's import-time BASELINE_GROWFACTORS theory, but at a1832dc that table only read parameters and, with print_diff=False, returned the stored CSV. The dumps on #1209 differ in exactly 82 DWP parameters, all uprated through gov.benefit_uprating_cpi (itself chained from OBR CPI), main tree only; core then loaded directories with unsorted os.listdir. Labelled as an inference, with core#490/#491. - #1092 added macOS alongside Ubuntu; #1205 and #1207 made it macOS-only. - #1205 was the second case after #1091. - apply_uprating is dataset uprating; parameter uprating is core's. - Python tests now run on five shards (c0c010d). - No source sizes the effect on aggregates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
UK hub (Claude build session, for Max) Head: Read this first. The page is already on main, word for word, through #2386 ( This branch now:
Against main, the diff is the page and the fragment. Suggested title on landing: "Correct the Ubuntu vs macOS reproducibility page". Claims checked
Corrections: 8. Uncertain
Full ledger: |
3 of 5 tasks
vahid-ahmadi
deleted the
vahid-ahmadi/issue-1209-ubuntu-macos-diagnosis
branch
October 24, 2026 10:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrects the Ubuntu vs macOS reproducibility diagnosis page (
docs/book/validation/ubuntu-vs-macos.md), written for #1209.The page itself is already on main: it shipped in #2386 (merged 21 October 2026), and its original
.addedchangelog entry was released in 2.143.0. This branch has merged main, dropped the released fragment and now carries only corrections to main's copy of the page.What this PR corrects (from its changelog fragment):
The claim-by-claim review behind these corrections, with sources, is in the "Ready for hub review" comment on this PR.
The corrected page notes that #1209 can be closed (the parameter tree is byte-identical across macOS and Linux and CI is back on Linux); the issue itself is left for its author to close.
changelog.d/1209-ubuntu-macos-corrections.changed.md(changed).🤖 Generated with Claude Code