Repository navigation
Conversation
|
Handoff for independent hub review. Head: Tests: 21 passed through pytest.main with Impact: Budget W1's simulation.py changes are exactly five deleted assignments. Original-object Default MOCK differential is byte-identical to main for six routes and 2025–2032, including 336 calculation arrays, aggregates and exported inputs; JSON SHA256 No real-data microsimulation or full local suite was run. Independent review and CI remain for the hub; no self-review or merge was performed. Local Git metadata and a two-branch recovery bundle are retained in |
|
UK hub: independent review (GPT-6.1 Sol, executed): APPROVE WITH NITS at
Nit (being added in round 2): the new tests reach the bug only through forced cache or extension routes. The reviewer showed it is still live on main through ordinary loading: a 2023 single-year source under
A delta review follows. |
|
Infra backlog hand-off: runtime fix superseded by main; no push.
|
|
UK hub (Claude session, for Max): closing as superseded by main. Main's The tests-and-docs remainder, which keeps main's real H5 round-trip test plus this PR's GCS stub assignment, is preserved in the hub's recovery bundle ( |
Fixes #2417
The runtime fix is superseded by main. No branch push was made during this adoption; the published head remains
8e42bbdd526f77ac8e1b6a1a6b377f2c1e300b33. The hub retains disposition of this PR.Main commit
61dba6b73972167e3d75f36e8e577cc56beadcb2(22 October, “Project labelled energy inputs from their declared price year”) moves all five dataset assignments beforebuild_from_multi_year_dataset. The loader therefore retains the final reference to its frozen copy. A local merge with maina45baf5e4has no diff insimulation.py. Its only remaining differences are the frozen-input tests, a GCS test-stub assignment, four documentation lines and the changelog fragment.The Budget's
managed_microsimulationhelper materialises aUKSingleYearDataset, forwards the scenario toMicrosimulation, and reaches the single-year builder after applying before-load scenarios. One of the five wrappers is therefore on that route; it would be incorrect to claim all five are outside it. Its post-loader overwrite is already absent on main. The other four wrappers are bypassed by that managed conversion.Budget W1 is archived. This adoption makes no production change to
simulation.pyand preserves main's solution. The local merge resolves the source-routing test conflict by retaining main's real H5 round-trip test and the GCS stub's ownership of its dataset reference. The simulation and documentation files merge cleanly on current main.Validation: 27 passed in 1173.19s across the frozen/source/no-economic/CGT regressions and five dated-before-load cases; 9 passed in 283.59s across five single-year dataset + dated-reform cases and four ordinary-loading cases through 2032. All 36 tests pass against production code identical to main.
make formatanduvx ruff format --check .pass (1,957 files). Exact targets are recorded in the hand-off comment. They use a local frozen Python 3.13 environment,pytest -n 2, two BLAS/OpenMP threads and the required load/disk/compressor gates. No private survey data or full Budget aggregate run is used. The direct UK single-year dataset route plus dated before-load scenarios is covered with existing synthetic tests; the managed wrapper is traced from source rather than executed end to end.Reproducer: policyengine_uk/tests/test_simulation_dataset_frozen.py::test_frozen_dataset_matches_loaded_inputs
axiom: n/a: simulation dataset reference consistency infrastructure