Repository navigation
Move the UK spine to geography first (#931) - #1538
Conversation
|
Per-commit notes for groups (0), WAS and land, and (a), moved here from the PR body on 11 Nov to make room for (b) and (c). They are as they stood in the body; "below" and "the next section" mean the body's Arm a1 section. Group (0)After the move, the dense build's per-clone engine blocks are no longer identical copies. policyengine-uk's
Data changes in group (0): only the annual-income factor's float32 step, kept by ruling on 7 Nov. Everything else is inert until G1. What moves without being an output:
The spine graph declaration ( For Max:
WAS and land
What moves:
Group (a)Commits 1a to 7 are in with their review follow-ups, as are the 8 and 9 Nov follow-ups and ruling commits and the transport kernels' derived binding rule (354296a to 4df4065). So are the rest of the 9 Nov (late) rulings for the UK and the ISA doc correction (b289e8f to 30fe64f). Arm a1 ran on 10 Nov (below), and aed673d and fce5828 came out of it.
What moves in (a):
|
cf8432c to
690f0a2
Compare
c7daedb to
2b0a792
Compare
…ad (#931) The rebase onto #1519's new head merged the generated files hunk by hunk, and the housing shell's council-tax commit (644a2e04c) brought in parts of the old line's regeneration, so the files mixed both sides. This commit regenerates them once from the rebased spec and code, as 690f0a2 did on #1519. Every command ran from the repository root on main's lock (policyengine-uk 2.177.7), in this order: 1. `load_country_spec("uk")` loads with 63 stages, and `uk/source_stages.json` equals the typed projection of `uk/spec/sources.yaml` that the loader checks, so it does not move. 2. `tools/vendor_uk_ledger_facts.py --check` against a local export of the Chronicle consumer artifact at the feed pin 4ce631f5: all 43 register resources ok, exit 0. Nothing is re-vendored: the Scottish Band D resource is byte for byte what the tool writes from that feed. 3. `tools/graph_uk_spine_fixture.py`, then the same with `--check`: the folder "regenerates byte-identically", exit 0, and no stale file is left in it. 4. `tools/build_uk_release_input_coverage_manifest.py` without `--candidate-h5`, then the same with `--check`: "current", exit 0. 5. The UK gate battery's contract pins, derived from the live producer as `test_gate_battery_contract_pins` derives them: all twelve equal the committed ones in `microcosm/data/contract.py`, so neither it nor `test_contract.py` moves. 6. The stage totals the changelog fragments and docs state already match the loaded spec, so none moves: the spine's 63 stages (in `docs/uk-full-build-graph.md` and `931-spine-localises-council-tax`), and the totals after the earlier changes (63 after the area stages, 62 after the home-value localiser). Counts that describe one commit's own key moves stay as that commit wrote them. What moved, and why: - `sources/fixture.json`, the H2 stage declarations, now holds the merged spec's 63 stages. Main's `pip_points` stage returns: where main's stage and #1538's `private_rent` were inserted at one sorted place, the rebase kept #1538's side. `frs_council_tax` takes the merged notes and operations (main's `verify_vendored_fact_resource` and `level_scottish_council_tax`, then #1538's `derive` of the bill's provenance), and `frs_spine`, `frs_take_up` and `uc_capital_coherence` take the merged notes, so no declaration in the file names policyengine-uk 2.174.1. `spi_housing_shell` stays 644a2e04c's, and `config`, `inputs` and `description` stay #1538's. - `uk_spine.json` is written from the merged graph: it now declares main's `pip_points` and `uc_limited_capability` nodes, and each stage node's contract hash follows the merged declarations, code and vendored resources. - `sources/cgt_asset_type_facts.json` and `sources/property_purchase_targets.json` are re-sized by the tool to the frames the merged legacy oracle builds on policyengine-uk 2.177.7, and `sources/property_rental_facts.json` returns to main's, which #1538 never changed. Their shapes do not move, only their synthetic values. - `release_input_coverage_manifest.json`: main's `pip_points` family returns (the same sorted-place conflict dropped it), and every family's `source_manifest_sha256` is the current `source_stages.json`'s. No other field moves. No other file in the H2 folder moves: the CSVs, the FRS tabs, `schema.json`, the toy supports, `NORMALIZATION.md` and `PRODUCED_BY.txt` regenerate byte for byte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review of Settled by the rebase
Should, and needs a decision before the move merges
Should
Nit
Checked and fine
Evidence gaps
Readiness against 30 November The rebase onto #1519 is done, and the stack is consistent. The remaining sequence is:
Each step is feasible, but none has slack. I'd treat the land overlay on today's local-area release as the working plan unless CI is green here by about 23 November. 🤖 Generated with Claude Code |
|
Independent review at Verdict. The core held (see "Checked and fine"). One test fails at this head and needs a commit before the first CI run. Two items need a sentence or a decision in the description. The rest are gaps in gates, proofs and build cost, and most are cheap to close. Before the first CI run1.
Needs a line or a decision in the description2. The high-value support copies are now six identical rows
3. The nesting claim stops at
Should4. A release candidate no longer checks the localisation resources of a bound spine
5. The Child Benefit gate counts child rows over every clone
6. The identity tool's E4 and E5 can print PASS without a comparison
7. The two mapping-integrity gates cannot fail on content
8. Nothing before merge runs the spine at K > 1
9. The full K = 15 build: disk, memory and time
10. The Northern Ireland copies' engine call runs outside the population guard
Smaller11. 12. Inverclyde's 2024-25 Band D is vendored at the nominal £1,547.01. The council gave a one-off credit equal to the 8.2 per cent rise (budget notice, equality assessment of the credit), so households paid at the frozen £1,429.77 level. The engine's 2025-26 figure, £1,551.30, is £1,429.77 × 1.085. G6 prices each Inverclyde clone 8.2 per cent high, and the same figure feeds stage 5's Scottish level. This needs a ruling: a sourced exception, or a note that the nominal rate is kept. Also, nothing that runs in CI holds the 318 England and Wales values to their source (the one test skips unless four 13. The dense candidate manifest's 14. Lower:
Checked and fine
Not checked
Two disclosure-control items went to the author separately. 🤖 Generated with Claude Code |
|
Reply to the independent review of 17 Nov. The fixes are on the branch, now at 54d66ca, which also merges main (fd1d709) now that #1519 has merged. Each item names its commit or commits. Before the first CI run1. 561745e regenerates Needs a line or a decision in the description2. The description now says it. The high-value support copies keep their parent's value, area and geography key (C-19), so the stage adds rows, not distinct values. G8 runs before the split, and 614c101 replaced 3. 614c101 (María's ruling of 17 Nov) changes how G8 ranks owners. Each owner is now ranked within its assigned constituency and geographic clone, at a keyed point inside its own weight slice. The regional factor's mean is now taken over geographic clone 0's FRS-base owners, in G8 and in the uprating alike. So clone 0 of K clones now takes the one-clone values, to rounding ( Should4. 76ad295 and 586832f change what a
The national certifier does the same. Default taken: recompute from the supports. Alternative: pin one committed definition digest, which needs no new flags. 4e1d183 documents the checks. 5. 5a86883 makes the Child Benefit gate count clone 0's child rows. Default taken: clone 0's rows; alternative: sources. The K-constants guard now also matches minima and unit counts, and the table classifies what that finds. 6. 033ca4b: E4 now compares the columns that 7. 20bcd98: the two mapping gates now hold their record's digests to the spine's geography block, and re-derive the frame's areas on the pinned supports. A missing block, support or frame makes them evidence_absent. 282b30c updates their notes, and fb0e0a7 re-pins. 8. b5f9b7e adds three tests:
9. 779cd09: the council-tax check now copies only the columns it reads. The disk and time notes are in the description. 10. 0f63f65: the three-system test now holds the Northern Ireland copies' sub-pool BRMAs equal to a whole-frame call, at K = 1 and 2. The adapter mode is not done, because it is not a small change. Smaller11. 42b85ee. 12. 3d23a80 refuses an off-pence English Band D. Not done:
13. 5a24881, with a test that reads the dense chain. 14. The lower items:
Not done in item 14:
The two items sent separately are addressed. Also: 7482e58 moves the area draw's three column names into a module that holds them alone, so the mapping gates (item 7) and the national line do not key on Checked here: the full engine-free set before the merge (20,913 tests; the only failures need the Orrery Node package or an environment without the UK engine), every engine-free file the merge and its fixes touch after it, the UK engine files the changes touch, H2 parity, the staging smoke, and the after-merge clone test at one and four clones. CI runs now that the PR targets main. 🤖 Generated with Claude Code |
|
Reply to the review of 16 Nov ( 1. The home-value key. G8 still reads the constituency knots. Two options are open for María:
2. Sorting applied twice. Addressed by 614c101 (María's ruling of 17 Nov):
3. Band and value. They are not tied yet. A band × value-decile table by region goes into the checks on the next head build. Whether to tie them in this PR or before the overlay is open for María. 4. The ratio path (D8 on #20). Open for María. The within-authority, within-band spread of London bills before and after G6 is to be measured on the next head build. 5. The land rows. The two register entries are María's sign-offs. The calibrate-only rerun, their wording beside the fragment and the expiry date are hers to settle, so nothing changes here yet. 6. Discounts on the statute path. To be measured on the next head build: the statute bill against the old cell mean, by band. 7. The reduction on statute rows. Agreed: scaling the reduction by the ratio can leave a household on full reduction paying the difference. The fix scales it by the bill's own change, capped at the bill. It moves G6's values, so it waits for María. 8. Scotland after G6. One line comparing the Scottish total with the level goes into the checks on the next head build. 9. Release columns. Whether to keep 10. Renumbered ids in a batch's receipt. Not done yet. It is a small receipt field in the adapter, and it waits until CI on main is green. 11. The G6 sentence. Fixed in the description: the England and Wales file is read at 🤖 Generated with Claude Code |
vahid-ahmadi
left a comment
There was a problem hiding this comment.
Follow-up at 6dfb657, covering the reply to the 16 Nov review and the PR's own commits since 2b0a792a3.
The 16 Nov items. Each claim in the reply holds at this head.
- Item 2 is fixed by
614c101e6and5b9543494. G8 now reads each owner's value at a keyed point inside its weighted slice of constituency × geographic clone (uk_runtime/property_localisation.py:288-388). The ordering follows the segment-2 draw. Clone 0 of K reproduces the one-clone values by construction: same ids, weights scaled by 1/K, so the slice fractions are unchanged. Empty, zero-weight, single-owner and tied slices are handled. - Item 11 is fixed in the description.
- Items 1 and 3–10 are unchanged at the places cited, as the reply says. They wait on María (7 is an agreed fix that moves values) or on the next head build (3, 4, 6, 8). Item 10 waits for CI on main.
One request on these: the body's "Open for María" list carries only the 17 Nov review's items 2, 12 and 14. Could the 16 Nov items still open (1, 4, 5, 7 and 9) go there too, so the list is the one place to see what's pending? Item 1 asked for its outcome to be settled in the body.
The PR's own commits since 2b0a792a3. These are the review fixes, the merge of main at fd1d7099e and the four test commits after 54d66ca. No new defects found, and the narrow engine-free tests around them pass (260). Two small things:
- The merge left a duplicated fragment in the pin comment at
packages/microcosm-build/tests/engine_workflow/us/test_us_multispine_pool_tool.py:366: "attested bytes." repeats line 360's ending. - The re-pinned US
spec_sha256at:368hasn't been confirmed by an engine-us run yet, since every engine-us run since the merge was cancelled or is still running. The engine-free and engine-us jobs are pending at this head.
Review drafted with AI assistance and checked against the code at 6dfb657.
|
Reply to the follow-up review of 17 Nov (
The description also lists the CI fixes since the merge. All are in tests. 🤖 Generated with Claude Code |
|
@PavelMakarchuk, could you build the 15-clone UK spine for this PR on a larger machine? It is the one step of #931 that does not fit María's laptop. The dense calibration and the comparisons then run on her machine, from your spine. What it is. One full-sample UK spine at 15 geographic clones, built as a release candidate (the dense line's spine). Nothing else: no calibration, no publication. One command builds it, The machine. No full-sample spine at 15 clones has run yet, so these are estimates from the one-clone spine and a 10% sample at 15 clones:
The data: nothing to download by hand. The command fetches every input from Hugging Face at its pinned revision into
It does not need the Chronicle artifact. A second run reuses inputs that are already there and still match their pins. Before the build: two things.
The build, at the commit I reply with: cd <your microcosm checkout>
git fetch origin claude/uk-931-geography-first-move-b38c04
git checkout --detach <commit>
uv sync --all-packages --locked --extra uk
export HF_TOKEN=…
MICROCOSM_UK_TERMINAL_GATE_SIGNING_KEY="$(security find-generic-password -a "$USER" -s microcosm-uk-gate-signing-key -w)" \
uv run --no-sync python tools/run_uk_cut.py dense-spine --label k15 \
--allow-off-main 'María Juaristi: the #931 15-clone spine for #1538 (18 Nov)'On Linux, set The command fetches each input and checks it against its pin, then checks the checkout, the key, the registers' expiry dates and the disk, and only then builds, into At the end it prints one upload command, What to post back here: the outcome, the wall time and the Hugging Face commit link only. Please don't paste log lines or gate details; they can carry survey values. If the build stops, post the step and exit code, keep the Edited 18 Nov: the memory figure is corrected (one clone's frame measures 0.39 GiB in memory, so about 6 GiB at 15 clones; 658378b removed two of its copies), and the data section is added. 🤖 Generated with Claude Code |
The dense-spine preflight (tools/run_uk_cut.py dense-spine) refuses an expired register entry. On this branch eleven local-line target-fit entries expired on 2026-11-16, one more expires on 2026-11-23 and three on 2026-11-24, so the #931 15-clone spine could not build at the branch head. This carries María's renewal of 2026-11-22 (a26cefb on main, from #1687) unchanged: the same fifteen local cells and one national row, the same adjudication, approval date and 28-day window. The earliest expiry is now 2026-12-01. The battery tests' clock moves to 2026-11-22, the latest approval on this branch; its comment names this branch's approvals only. (cherry picked from commit a26cefb) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The dense spine builds again, at 6fff0bc. At 658378b, The conflicts with main don't block the build: the runner builds any pushed commit given 🤖 Generated with Claude Code |
|
The K=15 spine at 6fff0bc is built and uploaded. What the run took, for next time:
To run this on a VM again, pin This spine binds only a dense build at 6fff0bc, and the next register expiry is 1 Dec. The logs stay private, since they can carry survey values. 🤖 Generated with Claude Code |
…led engine in the three-system test (#931) Since 2d06486, high_value_home_support makes one engine call over its Northern Ireland copies' households, on a scratch frame without the clone index, as spi_copy_areas does. Only a stand-in engine ran it, and the H2 fixture has no Northern Ireland household, so no test reached the call on the real engine (the second review of 26 Nov, item 5). The three-system engine test now runs the stage after council_tax_localise, at one clone and at two, on the stand-in's frame with every household invented as an owner, its home worth more the less its row weighs, so the stage's packaged stratum copies households of Northern Ireland and of Great Britain. It holds: - one engine call, of one simulation, over the Northern Ireland copies' households alone, whose BRMAs are frs_brma's draw on that call's frame; Great Britain's copies read the area-to-BRMA layer for their new areas, and every other row keeps its BRMA; - that call's frame equals the rows of the frame the stage cut it from, less the clone index, and gives the copies the LHA_category, and so the BRMAs, a call over that whole frame gives them; at two clones the whole frame's call runs clone by clone under the adapter's guard. The two calls agree at both clone counts. Invented data only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecording, so CI can record Linux (#931) The merge of main at 8c51b6e recorded test_uk_spi_forest_release.py's digests of this branch's draws on macOS arm64 only and removed the Linux x86_64 entry, so the frozen-digest tests skip in both engine-free CI legs (the second review of 26 Nov, item 3). The machine that records lacks Docker's x86_64 emulation. On a platform without a recording, the test now computes its digests first and warns with them, and the library versions it ran with, before it skips. pytest's warnings summary prints the warning, from xdist's workers too and under CI's flags, so this commit's engine-free run on Linux x86_64 reports the digests to record there. A follow-up commit records them from that log, after which the tests run in CI again; until then they skip as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…raphy block (#931) Since 2d06486, high_value_home_support draws its copies' areas on the conditioned supports and keeps the validation outcome, the definition's digest and the supports' digests under copy_areas in its receipt. The two other stages that draw areas, atomic_area_assign and spi_copy_areas, each have a mapping-integrity gate that holds that record to the spine's geography block; the third had only its mass gate (the second review of 26 Nov, item 4). gates.json adds uk_high_value_copy_area_mapping_integrity, a release-blocking stage-health gate at the transferred boundary, beside the SPI-copy stage's. It is the same check: the record's outcome (pass, or not_run on a frame without a high-value copy) and scope, its digests against the block's definition and support pins, and the frame's areas re-derived on the pinned supports. The check reads a stage's record under the receipt key its new evidence_record parameter names, here copy_areas; the stage-health binding routes the key, and a receipt without that record fails closed. UK_SPINE_GATE_SCOPE adds the gate, and microcosm.data.contract adds its entry and re-pins the battery's policy, manifest and fingerprint digests and the spine part's from the live producer. Tests: the packaged gate's parameters; it passes on a high-value receipt with the copy stage's record nested under copy_areas, through the battery too, with evidence_absent where the block, the supports or the frame is missing; it fails closed on a record at the receipt's top or none; the gate lists and the contract mirrors follow. The build-graph page and the high-value fragment name the gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the 25 Nov rules (#931) Five changelog fragments of this PR, which ship in one entry with the fragments of the 25 Nov fixes, still said what those fixes replaced: that high-value support copies keep their parent's area, and that SPI copies and band donors draw at L3 with both draw inputs missing, after spi_income_band_donors. The after-merge H2 test's module docstring said the same, though its code follows the new rules (the second review of 26 Nov, item 7). They now say that SPI copies and band donors draw after spi_housing_shell, at L2, their region by the households of the band the shell drew, where the region holds that band, else at L3; that the shell's reference is taken per (region, band) cell at the level the draw's chooser gives it; and that each high-value copy keeps its parent's value but draws its own key and area and takes its new authority's council tax. Text only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…econd review's fixes (#931) One regeneration for the series 59188f7..75e6234. The H2 spine fixture is unchanged: its households hold no statute-row reduction, so G6's new rule moves none of its values, and only the copy of council_tax_localise's notes in the sources fixture moves. The release-input coverage manifest follows gates.json and the stage notes, and --check passes. Checked here at this tree: the UK engine-free tests (9,746 pass; the one failure is the test that needs an environment without the UK engine), the engine-tier files the series touches with H2 parity, the UK graph and the after-merge clone test at one and four clones (55), and the staging smoke (2). The UK target surface compiled on the pinned feed with the new partition rule: its only absent partition members are the two signed UC child-bucket cells. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tages in the four-clone test (#931) Main's uc_housing_costs_claim (B1 of microcosm#1710), merged in a4770ed, runs after uc_limited_capability. The clone-first nesting test requires every post-clone stage to say, in the roster's order, where its clone 0 is held to the one-clone run, so it failed CI's engine-free job on a4770ed until the stage was classified. Like uc_limited_capability it calls the engine, so its clone 0 is held only after merge, by test_h2_clone_first.py at four clones, whose stage count moves from 64 to 65. Checks: with policyengine-uk hidden, as in CI's engine-free job, the nesting test and three other files that name the roster's last stages; and 20,968 UK, shared, graph and data engine-free tests, none failing, before the sweep stopped for the next merge of main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The branch is rebased onto main 35ec6c7 without its twelve merge commits. This commit holds what those merges changed beyond main's own commits, so the head's tree is again the tree of the tested merge 3a9dcb5: - the regenerated stage table, coverage manifest, parity fixture and gate contract; - the stamps for main's fact feed on the Scottish Band D facts; - the adaptations of the UK graph, gates, national frame, data contract, tests, CI workflow, cut tool and guide to main's changes; - lines from main that earlier commits of the rebase left out, where a branch commit changed the same lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#931) The dense calibration on the geography-first K=15 spine built at f366de7 stopped at the problem node: the rowwise driver's support check refused four cells with a nonzero target and no household in the pool. Two are three-or-more-children UC cells, Bromsgrove's (E14001138) and Stone, Great Wyrley and Penkridge's (E14001523); two are council-tax band cells, Sandwell's band G (E08000028) and Rhondda Cynon Taf's band I (W06000016). The dense pool on main's route carried all four. The spine's SPI copies now draw their area by their band's weight, as FRS rows do, so none lands in Sandwell's band G. The local line defers the two UC seats under uc_children_constituency_spine_support_absent, as Wokingham's and Stratford-on-Avon's cells are deferred; Rhondda Cynon Taf under council_tax_band_i_spine_support_absent, as Carmarthenshire's cell is; and Sandwell under the new signed reason council_tax_band_g_spine_support_absent. So the spine can be calibrated and compared with main's route; the assignment's support for the four cells stays open under #931 (María's ruling of 28 November 2026). The parity tool reads the band-G reason beside the small-cell rules, so the incumbent's three cells become fixture-only rows that carry their deferral's rationale; Rhondda Cynon Taf's band-I row, which the incumbent never carried, leaves the receipt. Both resources were regenerated from the rows of the pinned Chronicle e4d46c93 feed that a local selector matches. Every other reference, membership record and parity row is byte-identical to the committed files, except that Sandwell's band-G uprating hold leaves with its cell and the UC child-bucket drift rationale quotes 2,523 rows instead of 2,525. No kernel hashes either tool, and the spine gate declarations do not move, so the spine built at f366de7 still binds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The branch is rebased onto main 18eb1b6. Both sides had moved four US and shared spec-engine pins; the merge recomputed them on the merged code and regenerated the spec-engine coverage report. The rebased commits carry three of the pins and the report already; this commit holds the last one, the US spec digest in the multi-spine pool test, so the head's tree is the merge's tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The copy id table renumbers copy rows, so the weighted sums of their ids move with no change in the data: a K=15 dense build failed uk_input_mass_parity on the three source ids alone. The shared input_mass_totals now takes the identifier columns a country declares and skips them as it skips entity ids; input_mass_structural_columns gives the skipped set, which uk_input_mass_carriers reads in place of its own copy. The UK declares UK_LINEAGE_IDENTIFIER_COLUMNS: each entity's build id and source id, and the true source. The US passes none, so its totals do not move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9e1b220 to
bdbaea3
Compare
|
Third independent review, at How far it went. One reviewer read the late commits. Four more passes covered the areas and council tax of copies, the fixes of the earlier reviews, main's newer stages on K clones, and the input totals that moved against main's control. Every item below was then checked again, by reading the code or by a small run on invented frames and the repository's toy supports. No licensed data was read and no build ran. Tests run at this head, all passing: the after-merge clone test at one and four clones (34 tests, which pull-request CI skips), the SPI forest test on macOS arm64 (48 tests, none skipped), the UK binding-rule tests, the gate contract pin tests, and the input-mass and partition tests. At 11:22 UTC on 29 Nov, CI's engine-uk jobs had passed on this head; engine-free and engine-us were still running. Verdict. No blocker found in the code. The late fixes do what the description says, with the exceptions below. Six items should be settled before merge or before the next K = 15 spine. The rest are small. Should, before merge1. Clone 0 is not the one-clone spine at four more places, and no test can see it
2. The gate manifest has 2,011 characters of room, not 5,845
3. The support deferrals are facts about one spine, and nothing tests them again
4. The area mapping gates hold the region, the decile and the ladder, not the draw
5. The release-candidate pin check leaves out inputs that the spine's values come from (17 Nov, item 4)
6. A moved high-value copy keeps a home value read at another constituency's knots
Smaller7. Hashes of commits that the branch no longer holds. Two fragments give binding claims against 8. Texts that the 25 Nov rules and the rebases left behind (item 7 of the 26 Nov review is not complete):
9. The population declaration's label is one engine release old. It says that it was reviewed on policyengine-uk 2.179.2; the lock holds 2.180.0. Its pinned hashes equal the installed engine's files, so only the label is stale. 10. No test holds the high-value rescale to G6 itself. The test compares 11. The K-constants table lacks the pool floors of main's new stages ( 12. 13. On
14. 15. The memory floor of
16. Dense-era code is still in a module that two stage kernels hash (17 Nov, item 14). 17. A statute row with a zero old bill and a positive reduction still takes the cell's ratio ( Checked and fine
Still open, as the description says
Five disclosure-control items went to the author separately. Two of them are from 26 Nov and still stand. 🤖 Generated with Claude Code |
Texts only: no stage behaviour, gate or declaration changes. - Fragments that named commits the rebases replaced: the K = 15 cell deferrals now name 081595f (f366de7 before the 29 Nov rebase), and the children-seat deferrals say that no spine's binding moves. - Stage counts in the rebased history, which holds main's two newest stages from the base on: 65, 64 and 65 at the area, home-value and council-tax commits, and 51 of the 59 stages after the root that bind the keyed-draw helpers. - The 25 Nov rules: a high-value copy draws its own area in its parent's draw cell and reads its authority, BRMA, flag and council tax there again; the copy-agreement layer holds it on region and clone index only; SPI copies drew at L3 until 09ea61c gave them the shell's band. - The geography doc, the identity and draw-status docstrings, the after-merge test's notes (G8's keyed point in its constituency and clone, clone 0's copy areas, the stage count) and the build-graph guide (six stages read the conditioned supports). - The release pin check: the guide, the cut runbook and its docstring now say that it holds declared resources and declared tables and files only, not the stage code, the stage declarations, a resource a stage reads without declaring it, or an artifact with neither a table nor a filename. - The K-constants table's reason for the high-value stratum: a mid-rank over every clone's owners, whose share holds at every K while clone 0's selected rows differ from one clone's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…them (#931) The reviewed area-draw operation still declared both draw inputs missing on the SPI support channel's copies. Since 09ea61c only the decile is: a copy's band input is the band the housing shell drew, read whatever its flag. The declaration now says so on each input: the decile names `missing_on_copies_of` and the band `drawn_on_copies_of`, both the support channel, in sources.yaml, source_stages.json and the stage's expected operation. No reader takes either key, so no draw, value or pin of a resource or table moves; the stage's key moves with its spec. The H2 fixture is regenerated once, after the series. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests only; no stage, gate or declaration changes. - The full gate manifest's room: a test fails while the serialized manifest still leaves fewer than 1,024 characters under the graph schema's string limit, and names the cause. It has 2,011 at this head. - The high-value rescale against G6 itself: on the G6 test frame at one and three clones, households placed again in another authority of their draw cell take G6's own bill, rebate and reductions at that authority, to rounding (four ulps, five roundings apart), on statute, FRS ratio and support-channel paths, and the same rows are capped. - The K-constants table gains the pool floors of the Universal Credit take-up, the new-claimant draw and the Child Benefit copy cells, each counted in true sources over every clone and kept, and the Child Benefit receipt floor, taken up later. - Main's two newest stages get a test frame with a clone index. At two clones the housing costs claim gives each clone its unit's one-clone flag, and the new-claimant draw keeps the pool's and each clone's share below each probe near the probe; its clone 0 is not the one-clone draw, since it ranks every clone's units together. The nesting test classes the two stages by these tests in place of after merge only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#931) The area mapping check accepted the not_run that the SPI-copy area stage and the high-value placement record on a frame without a copy, but it accepted it on any frame, so the real frame with a not_run record passed. It now fails a not_run record where the phase's frame marks a row a copy of the branch that stage places (the copy lineage's marker column), and says so. The check's docstring now says what it does not hold: it repeats no draw and reads no key, so it cannot tell a draw without the band weights from the declared one, or a copy left at its parent's area within its region and decile, and it reads no BRMA, fuel duty relief flag or council tax. The packaged gates' declarations do not change, so the spine gate digests and every bound spine's binding stay as they were. Tests: the packaged high-value gate on the stage's own receipt and frame, which holds its copies, at one and three clones, passing, and failing with a not_run record; the SPI-copy gate failing a not_run record on the copy stage's frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… non-finite floor (#931) - The floor read the host's total physical memory, so in a container whose limit is below it the check passed and the build stopped in the SPI income stage. It now reads cgroup v2's memory.max, else cgroup v1's memory.limit_in_bytes, and takes the lower of that limit and the host's memory; "max" and v1's near-2**63 value mean no limit. - --min-memory-gib nan turned the floor off without saying so, since a comparison with nan is false. The flag refuses a value that is not a finite number, and the check refuses such a floor too. - The build-graph guide says that the spine tool itself checks no floor, and that run_uk_cut.py dense-spine checks it before it builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lisation (#931) The band mixes' loaders (load_band_mix, load_scotland_band_mix, BandMix), the band draw (localise_bands, its helper and monotone_violations), localise_values and spine_keys_are_clone_invariant served only the dense localisation nodes that #931 retired. No stage, tool or other test reads them, so they go with their tests, the two module constants only they read, and their names in __all__. The module is bound to was_wealth and high_value_home_support, so those stages and every one after them re-key; every stage's key moved already with bdbaea3, and no value moves. The committed band-mix resources and their declarations stay, so no spine's resource pins move. The fragments that called the code kept now say when it went. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… country (#931) source_household_id is a shared concept (microcosm.frame.concepts), and other countries' frames carry it, but bdbaea3 had the UK alone declare it an identifier, so the shared helper still summed it for any caller that passes no column list. The shared structural set now holds it, and the UK's declaration keeps its own six: each entity's build id and {entity}_source_id. The UK's totals and carriers do not move. The US passes no identifiers; its totals leave out source_household_id where a US frame carries it, and its release gate compares two frames of one run with the same code, so no stored reference moves. The fragment says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ne-uk 2.180.0 (#931) The declaration said it was reviewed on policyengine-uk 2.179.2 while the lock holds 2.180.0. Its validation rests on the pinned sources' digests, which are byte-equal between the two releases (CI's UK engine test holds them on 2.180.0 at this head), so only the label was stale. The label and the module docstring now name 2.180.0 and say that the review was on 2.179.2. The label enters the declaration's JSON and so the keys of the engine-calling stages, which moved already; no value moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…declared draw inputs (#931) One regeneration for the series 95acf45..f2f0242. The H2 fixture (tools/graph_uk_spine_fixture.py, through the engine slot) and the release-input coverage manifest follow a830c60's draw inputs; in the manifest only the source manifest's SHA-256 moves. Neither file is a resource a spine stage declares, so no spine's pins move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
María signed the degenerate-surface register's household.atomic_area_basis exclusion for the national line on 29 Nov 2026, beside the local line. The national line builds on a geography-first spine of one clone, whose areas the same assignment spec draws, so the column is "assigned" on every row there too. So require_national_exclusion_signed passes on the committed register, and the national preparation no longer refuses every national build; no code changes. The entry keeps its approval and expiry dates. As with every reviewed register edit, the data contract's pin of the degenerate evidence digest, and its test's copy, move to the new register. The policy-of-record test and the posture test that held the unsigned state now hold the signed one. The register is no spine resource, so no spine's pins or spine gate digests move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The cut runbook said that the release checks hold the bound spine's "spine gate list"; they also hold three digests of its spine gate declarations, so an edit of a spine gate's notes stops the spine binding. It says so again. - The nesting test's class for the housing costs claim says that it is exact on equal inputs: in a spine the stage's inputs come through stages that nest only in distribution. - The new-claimant test's assert that clone 0 is not the one-clone draw says that it turns round when the draw ranks within each clone. - property_localisation drops the six module constants that only the removed band and value code read. The constants a test reads stay. No value, pin or spine gate declaration moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ounts (#931) e3bcaaa removed SCOTLAND_BAND_MIX_RESOURCE, the last place where property_localisation named scotgov_chargeable_dwellings_by_band.json. The vendoring register still named that module as the file's reader, so test_register_consumers_are_modules_that_read_the_resource_today failed in both engine-free jobs. This commit makes the register say what reads the file now. What changed: - ledger_fact_vendor_selections.json: the CTAXBASE entry's reader is uk_runtime.stock_cell_declarations, which names the file as Scotland's part of the UK dwelling split. tools/build_uk_stock_cells.py reads the file's all-band totals for that split. The purpose says so, and says that no spine stage reads the file. - scotgov_chargeable_dwellings_by_band.json: regenerated with tools/vendor_uk_ledger_facts.py --resource, as the file's policy requires. The local feed's two hashes were checked against the committed pin first. The tool read only the feed's CTAXBASE band rows, so it ran with --allow-unpinned-feed. Only purpose and consumers change; the rows, selections, generator and feed identity are as they were. - test_country_spec.py: two comments said that property_localisation keeps its loader. They now say that the stock-cell tool reads the file. - The removal fragment says that the register named the module as the reader, and what it names now. Keys and values: keys only. Both files are in the UK country package, so the UK country fingerprint and the solve fingerprint move, and every kernel that hashes them re-keys. Neither file is a resource pin of a bound spine, and no spine gate declaration moves, so a bound K=15 spine still binds. No value moves. The touched tests pass with the UK engine hidden, and the release input coverage manifest needs no change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed constant (#931) `toy_property_resources` in the UK atomic-support fixtures still built a toy band mix by LSOA and a toy Scottish band file. Only the band-mix loaders' tests read them, and c871074 removed those loaders. e3bcaaa then removed `COUNCIL_TAX_BANDS` from `property_localisation`, but the fixture still imported it, so `test_resource_loaders_validate_shape` failed with an ImportError in both engine-free jobs. The fixture's one caller reads only the knots, so the fixture now builds and returns only the knots. The engine-free runner stops at the first failure, so the run on a766cc1 did not reach 1,776 of its 37,527 tests. The 131 files from 20 files before the failure to the end of the list pass with the UK engine hidden, as in CI: 3,667 passed and 15 skipped. Only test support changes, so no key, pin or value moves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Four files conflicted, each on pins that both sides moved: spec_engine/inventory_coverage.py (seed_map, seed_protocol), the minimal bundle's golden vector in test_spec_engine_loader.py, the US bundle's spec_sha256 in engine_workflow/us/test_us_multispine_pool_tool.py, and docs/evidence/spec-engine/us-f0-coverage.json. #1538 (#931) adds functions to stochastic_assignment, one of the US seed protocol's attested kernel modules (main's f055c15), and this branch moves the same pins with policyengine-us 2.145.3. The resolution keeps this branch's lines, adds a comment line for #931's move, and re-derives the pins on the merged tree in the repinner's order: --legacy-only, the US bundle generator (byte-identical), the repinner (a second pass: the coverage tool test's pins read the coverage report), and tools/spec_engine_coverage.py (50842/50842 configuration fields, 41/41 inventory checks). Both --check runs pass. docs/agent-guide.md, test_transport_evidence_kernels.py and test_uk_receipt_counts.py merged without conflict and keep both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tten again main is 319 commits ahead, with the geography-first move of microcosm#931 (PR #1538). Six files conflicted, each a generated pin or a count of the spec-engine ledger. Each takes main's side, plus the three declaration fields that this branch adds (one resource row of the US manifest): 32,641 authored fields and 50,845 configuration fields. Both pin tools ran, and both --check pass. main changed the shared operator for #931: a share_of_parent partition may miss a member that a signed deferral leaves off the frame. So the reference copy of the bit-for-bit test is now main's file at dc77fa3 (it was the file at e29843d). The sets of definitions that this branch changed or added are the same, and the operator tests pass against the new copy. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Summary
Closes #931. This is the output-moving half of the geography-first UK spine, stacked on #1519, which changes no outputs.
The spine clones every FRS household K times at its start: K=15 on the dense line, K=1 on national. Each clone gets its own small area and its own later draws (wealth, consumption, SPI copies and so on). Clone 0 of the K=15 dense spine is the K=1 national spine on every column through
area_brma; the SPI copies and the band donors keep the one-clone households and seats; every later stage matches K=1 in distribution only, since several rank or pool over every clone (third review, below).#1519 merged on 17 Nov, so this PR targets main, and CI runs on it. It is rebased onto main at 18eb1b6 (below).
Rebases (16 to 29 Nov)
María ruled linear rebases onto #1519's head 70e5ac1 (15 Nov), then main at 35ec6c7 (27 Nov) and 18eb1b6 (29 Nov). Each keeps messages and authors; the hashes here are new. 081595f carries what the dropped merges changed beyond main, and ba9880d the 29 Nov merge's last pin, so its tree is that merge's. Only the head is tested. The first's commits and defaults are in edits before 25 Nov.
Slice rank, review fixes and main (17 Nov)
rank_basisisweighted_slice_within_constituency_and_clone.council_tax_band_observedor the bill's provenance stays at release, with #20.tools/run_uk_cut.py dense-spine(be94f64, 943a3e6) builds that spine alone on a larger machine and prints its upload (docs/uk-cut-anyone.md, The dense spine alone); c7a16c8 and 1e816d6 cut two of the transferred gates' frame copies.K = 15 calibration comparisons (24 to 29 Nov)
Each K = 15 spine is calibrated here beside main, with the same settings. Both head calibrations first stopped at the problem node on cells with a nonzero target and no household in the pool, which main's route carried. 33f8ca4 defers Wokingham's UC two-children cell and Stratford-on-Avon's three-or-more-children cell (on the first K = 15 spine, built at 6fff0bc before the rebases, whose 63-stage code no commit here holds; María's ruling of 24 Nov). 3bb7175 defers the three-or-more-children cells of Bromsgrove and of Stone, Great Wyrley and Penkridge, Rhondda Cynon Taf's band-I cell and, under a new reason, Sandwell's band-G cell, where no SPI copy lands now that the copies draw their area by their band's weight (spine at 081595f; ruling of 28 Nov). Whether the assignment should carry these cells stays open under #931. The spines still bind: no kernel hashes the two tools. 3cf5b43 lets a share-of-parent partition miss a member that a signed deferral leaves off the frame; the receipt lists it under
members_absent, and an exhaustive partition still refuses. In the second, the head's one gate block beyond main's,uk_input_mass_parity, summed the ids the copy id table renumbers; bdbaea3 stops that, and a reference resolved before it must be resolved again.Merge of main (25 to 27 Nov, before the rebase)
Nine merges of main, 8f2db66 (cac12ab) to 3a9dcb5 (35ec6c7), were dropped by the 27 Nov rebase; their messages give the pull requests and resolutions, and 081595f carries what they changed beyond main. They brought #1687 (policyengine-uk 2.179.2, the UC new-claimant draw), #1663 (the PIP split, the LCWRA imputation), #1718 (policyengine-uk 2.180.0, the 65th stage
uc_housing_costs_claim, the SPI copies' Child Benefit redraw) and #1736 (Chronicle e4d46c93). ad0d327 reviews the engine-population declaration again on 2.179.2.Fixes from the K = 15 comparison (25 Nov)
María ruled on 25 Nov to fix the comparison's three findings in this PR, with one new K = 15 spine for all three:
hmrc_spi_employed_incomeat zero. The HMRC identity adds the SPI tape's miscellaneous employment leaf, which is below zero on some records, anduk_nonnegative_columnsblocked the head's build on it. The receipt counts the floored rows' sources, banded.spi_copy_areasnow runs afterspi_housing_shell, and draws each copy at L2 (its region, by the households of the band the shell drew) where the region holds that band, else at L3. Before, copies drew at L3 and the shell drew their band without the area, so band and authority were nearly independent, and one authority's Band G row started past the solver's cap. The shell prices each copy's bill at the expected Band D of that same cell. A copy's area now follows its drawn band, so clone 0's SPI copies hold K = 1's areas only where the shell draws the same band, as their council tax already did.uk_copy_area_agreementnow holds these copies to their parent's region and clone index alone.Second review (26 Nov)
The second review is answered here. Items 1 and 2 land before the next K = 15 spine, which must be built at 081595f or later:
share_of_parentpartition may miss a member only where a signed deferral leaves its cell off the frame; any other gap refuses, naming the partition, the area and the member.uk_high_value_copy_area_mapping_integrityholds the high-value stage's placement record to the geography block.dense-spinerefuses a host under 72 GiB of memory before it fetches the inputs.Third review (29 Nov)
The third review found no blocker. Its fixes that need no new spine are in: stale texts (95acf45), G2's declared draw inputs on SPI copies (a830c60), the missing tests (ce7b102), the mapping gates'
not_run(a9e6e1a), the memory floor (b7ae439), the unread dense code (c871074), the shared true source in input mass (0a5544d), the engine label (f2f0242), the regenerated files (7249746), round two's leftovers (e3bcaaa, with CI fixes a766cc1 and c50cfbc). None moves a spine value, pin or gate declaration, so the f366de7 spine (081595f after the 29 Nov rebase) still binds. Waiting for the next spine: ranking or pooling within the clone where a stage pools over every clone, the high-value copies' value, a pin check over the whole package, the mapping gates' notes and a boundary redraw (editing a spine gate's declaration unbinds a bound spine), and an item that went to the author separately. Not taken: the deferrals' mechanism (item 3, María's ruling), main's secondcountedbinding inuc_take_up(main's code) and the after-merge job's trigger (a push to main runs every country by design). María then signed the area-basis exclusion for the national line (d0d0102), so main builds national cuts after the merge; no national build has run on this PR yet.Commit groups
frs_brmafold, the SPI-copy area draw, G7, G8 inside the WAS chain, gates, dense re-basingGroups (0), WAS and land, and (a)
Their per-commit notes, with what moves at each commit, are in this comment.
Group (b)
Six commits, as designed and ruled on 10 Nov. Stage numbers in these notes keep the order before commit 3, which inserts G1 and G1b and moves stages 14 and 15 up.
ReplicaFold.key_group), and checks record ids by sorting. It adds the shared, country-neutral clone expansion core,microcosm.build.clone_expansion(CloneIdRule,CloneDeclaration,expand_clones), which takes the country's details as a declaration (decision 10; for Max). No value moves: every spine is one clone today.geographic_expand, and G1b,geographic_identity, bound to no stage yet.geography_household_keyas the dense line'suk.full.identitydid; (c) 4 retires that node.geographic_clones, which every counting stage and the dense kernels that read the names hash.frs_hmrc_spine_leaves,frs_annual_income_spells) ahead of stage 10 and wires G1 and G1b in after them at K = 1 (decision 3). Stages 10 to 13 now run on every clone, and stages 10 to 12 count their receipts' support in source households.expand_geographic_clonesandkey_households_by_clone_path(for Max). K sits on G1's graph node, never in a stage contract.imd_decileandcouncil_tax_band_observed, which the release drops and no receipt reports. microdf-python's version enters every node key (decision 2). The 10 Nov text items, stage 53's tie clause among them (decision 1), ride the one H2 regeneration.fold_geographic_clones. On more than one clone, its evidence gainsgeographic_fold: the clone count, the source households the fit selected, how many of them have clones that differ on what the fit reads, and their share.twin_identities); each copy's uniforms stay keyed on its own identity.funding_within_shareandfunding_matches_bands; on a capped seating its band counts are rounded source households. The band donor check reads the booleans and, on a capped seating, recomputes the seats from the transferred phase's frame.--n-clones(1 to 100, one by default), and hands it to G1 and the engine, which runs one simulation per clone after G1. The engine's identity does not take K.--stage-profile-dirruns every spine kernel inside the stage profiler without moving any node key (the memory guard ruled on 6 Nov). Profiles keep failure messages, so they are not published.--spine-sidecarand checks K against it. E4 and E5 compare only what their own stages last wrote, on the inputs those stages read: a column a later stage declares rewriting is reported underrewritten_later(E5'sstudent_loan_balance, E4's take-up flags), and E4 rebuildsLHA_categoryand the apprentice walk's weights as those stages saw them. E8 reports stage 17 in the stage's own receipt forms.geographic_clone_count.engine_after_merge/uk/category whoseengine-uk-after-mergejob runs on pushes to main; the engine-uk cap was main's 90 minutes (135 now). The module is renamedtest_h2_clone_first.py: as an acceptance-suite file it failed the graph acceptance burndown's checks, which the lint job runs. No node key moves.microcosm.frame.adapters.engine_identifiers(for Max), hands a simulation the frame's tables unchanged where no entity's stored ids repeat. Where an entity's would, its ids become 1 plus their rank in that simulation and memberships follow, so a clone-by-clone call ranks each clone's rows.EntityIdWarning, refusing to build if that class moves.Group (c)
Twelve commits, designed on 11 Nov on defaults listed for María's review, and numbered by that design. Commits 1 to 11 are in. Commit 8 is the first to move values at K = 1.
choose_fallback_levelsinatomic_support_conditioning(for Max), and its review follow-up. Nothing calls it yet, and no node key moves.atomic_area_conditioning), G2 to G5 and the SPI-copy area stage (spine_geography), and G7 (spine_private_rent). No stage declares them yet; a later commit of the group declares them and regenerates H2. As ruled on 11 Nov, Northern Ireland's SPI copies re-draw their BRMA.strataon the sharedassign_binary_with_anchored_residual(for Max), so clone 0 takes a one-clone spine's flags at that stage; the lateruc_take_updraws the claims again at pool rates over every clone. E4 recomputes each row's clone. K = 1 is bit for bit on H2 (the oracle and the fixture); the root and 48 of the 55 stage kernels re-key, and no transport kernel does.geography_first_roster), checked byspine_posture; the check runs again on the sidecar the build authenticates and on the spine it composes. No spine built from this code passes yet, so dense refuses every spine, dry runs included, until commit 11. No value or node key moves.--geography-assignment, the three atomic-support inputs and their three pins, and--source-lineage-modulus.--n-clonesonly asserts the spine's K. A dense--sample-fractionother than 1.0 or any--sample-seedis refused by name, a dense build id carries the spine's rung, and a release candidate on a sampled spine is refused.country_adapter.uk_spine_geography_binding_failureschecks it, and the release pre-flight uses the same helper. The spine's own--release-candidatetakes 15 only on a geography-first roster.weight_tables' result keys change. A release candidate on a spine request is refused as recording no geography binding until commit 8 composes that route's block.area_home_values), stage 25's factor helper, a shared check that copies agree with their parents on declared columns (copy_agreement, for Max), and threestage_healthchecks (atomic mapping integrity, area home values, copy-area agreement). The reused enum-domain, ladder and local-authority evaluators' failure texts no longer carry counts, and was_wealth's capped-row evidence fields are banded (C-40). Commit 11 declares them.tools/measure_uk_atomic_assignment.py) at the spine's own area draw, for the a2 arm's assignment-only receipt and decision 9's Northern Ireland check. It binds a spine checkpoint, clones and keys its base rows with G1 and G1b, and draws two laws on them: today's region-only one and G2's conditioned one. It records expected against realized area support, the ladder gate's verdict and Northern Ireland's district placements."publishable": false; an output path inside a checkout is refused) and follow a stricter disclosure rule, rule 2; evidence written before keeps the rule it was written under.atomic_area_assign,local_authority,rfdr).area_brmatakesfrs_brma's place afterfrs_household_draws.spi_copy_areasgives every SPI copy and income band donor a key and an area of its own.private_rentreads each Great Britain private renter's rent off its BRMA's list.local_authorityandin_rural_fuel_duty_relief_area. Great Britain's BRMAs come from the drawn area. Northern Ireland's households keep the BRMAfrs_brmadrew, and its SPI copies draw their own (ruled 11 Nov). Great Britain private renters' rents follow their BRMA. Through the engine, council tax reduction, LHA and fuel duty move for the households these columns reach, and so do the later stages that read the engine's income. The take-up, person and household draws do not move, since they read no area column.frs_person_drawsdo not bindtake_up_contract.jsonin their stage contracts. This predates UK graph: move geography assignment ahead of enrichment (geography-first reordering) #931 and goes to a follow-up. Not verified locally, for want of Node modules:test_uk_orrery_reconstruction's dense-declaration test and the Node checks intest_graph_evidenceandtest_graph_orrery. CI's engine-free job checks them.regional_home_valuesand registers the spine's geography gates. The spine now has 60 stages. This is the group's second H2 regeneration and its one gates digest break.was_wealthdeclares the home-value localiser (localise_main_residence_value, G8) after the chain's second segment. Each England and Wales owner's main residence is read off its assigned constituency's knots, at its rank within its FRS region, and the chain's later segments condition on that value.regional_property_upratingnow divides by the draw G8 keeps, so it returns each localised home to its knot value.regional_home_valuesretires.localise_main_residence_valuekind and an optionaldenominatoronuprate_to_regional_reference, andassign_regional_home_valuesleaves the schema andALLOWED_SOURCE_OPERATION_KINDS.uk_stage_area_home_values_ranking, on the constituency knots. The local battery's BRMA recheck retires, so the local contract has six gates. No gate kind is added. A spine built before this commit no longer binds.--expected-constituency-vintageretires.uk.stage.regional_home_values@1goes, and 78 of the other 88 UK kernels move; every spine, dense and national node re-keys. Outside the UK, only the shared transport gate battery re-keys, again through the allowed operation kinds, so the same four NZ transport nodes re-key (the cause accepted on 12 Nov). No US, AM or BE kernel or fingerprint moves.household.atomic_area_basisapplies on the national line and is in force on the build's--review-date. At this commit the entry lists the local line alone, so every national build is still refused; d0d0102, María's signature of 29 Nov, lifts the refusal with no code change.national_frame. Every spine, dense and national node re-keys. Outside the UK no kernel, fingerprint or node key moves.household.atomic_area_basisto the national line is d0d0102 (29 Nov).Group (d)
G6 runs just before WAS (María, 13 Nov). On her 6 Nov rulings, each clone's FRS bill is scaled by its authority's 2024-25 Band D over the expected Band D of its draw cell, and reported CTR and the rebate are scaled by the same ratio. SPI copies and band donors are localised at their own draw cell. WAS's bill predictor reads the pre-G6 paid bill (
council_tax_frs_bill, dropped at release), and its HBAI income reads the localised bill. On her 14 Nov rulings, the 2024-25 statute sets the bill where the gross bill was not observed (a missing bill, or a reduction of unknown size) and the band was, and reductions are capped at the bill outside Northern Ireland. Defaults for review: the stage-5 bill provenance, with a fourth value for Northern Ireland, and the form of the CTR ≤ council-tax gate.The group has six commits. Commit 5 alone moves values, with the group's one H2 regeneration. Commit 6 adds the gate. It is a second gates digest break for the plan's new spine gates, which the plan put in one ((c) 11's), so it extends the plan (D-27). The 10 Nov Child Benefit tolerance change (9973b02) also re-pinned the battery's digests.
uk/council_tax_band_d_england_wales_2024_25.json, built by the newtools/build_uk_council_tax_band_d.pyfrom two raw-only Chronicle registrations (MHCLG's Table 8 and StatsWales), read at Chronicle commit80a3482, each raw file held to its own sha256 (the feed's pin is not that commit;34871f6d5). Its--checkrebuilds the file byte for byte. Scotland:uk/scotgov_band_d_council_tax_2024_25.json, vendored from the pinned feed (CTAS 2026, 32 council areas).uk_runtime.council_tax_band_dmerges both over the roster's 350 Great Britain codes as exact rationals. It refuses a Northern Ireland code, a missing or repeated authority, and an English or Scottish value off pence.area_brmare-keys (65 of 90), the gate nodes through their kernels and the rest by chain, and so do the dense and national nodes after them. No stage contract, gate phase code or H2 file moves. Outside the UK no key moves.--check; the vendor--checkover every register entry; 36 engine-free files (the touched ones, the named guards and every reader of the package, the register or the fingerprints); through the engine slot, the engine-tier parity test and the H2 fixture check; the coverage manifest check.atomic_support_expectations.draw_cell_expectations, a draw cell's exact expected value under the draw's own weights (G6's reference), andbounded_amounts.amounts_within_bound, booleans that hold amounts within a bound (the reduction-within-bill check). No key moves.frs_council_tax):derive_council_tax_provenancenames the branch each household's bill took (observed_gross,missingorunknown_reduction), andnot_leviedin Northern Ireland, from the bill's own masks. The bill is bit for bit unchanged. The provenance's receipt form counts distinct source households before the copies, rounded, sofrs_council_taxjoins the counting stages.stage_health.council_tax_reduction_within_billholds each household's rebate and reported reductions (summed over its persons) within its bill, through the sharedbounded_amounts, with Northern Ireland left out. Its details are booleans. The stage-health binding routes its keys, and the gate registry gainsbounded_amounts.graph_kernels) and the spine, full-battery and national gate kernels. Every spine node and H2's bundle re-key; on a bound spine, dense re-keys 5 of its 11 nodes and national 1 of 6. No stage contract, gate phase code, fingerprint or H2 file moves. Outside the UK no key moves.council_tax_localise) as one new module,uk_runtime.spine_council_tax, unwired: no source manifest declares the stage and only its own tests import it, so no key or value moves.draw_cell_expectations). The ratio is the row's own authority's Band D over that reference. SPI copies and band donors use their L3 cell (since 09ea61c, the cell of the band the housing shell drew). A guard refuses a row whose drawn area is not in its recomputed cell.council_tax_frs_bill: the bill less the rebate, floored at zero) for WAS's predictor. Its evidence holds booleans, digests and rounded counts of source households; every field but the clone count is the same at every clone count.deriveoperation forcouncil_tax_bill_provenanceand writes it with the bill, from the same branch masks; the bill is unchanged. G6 declares its four operations in order, its two Band D resources with their hashes required, the kept bill as its one output and its three rewrites (council_tax,council_tax_rebate,council_tax_benefit_reported). A strictlocalise_council_taxoperation kind joins the source schema.was_wealth.recipient_predictors, whichwas_lisaalso calls, takes the bill predictor fromcouncil_tax_frs_billand refuses a frame without it; neither WAS declaration changes. The HBAI income both read sees the localised bill and reduction. The release boundary drops both new columns. The roster names G6, so the dense and national lines refuse a spine built before this commit.uk.stage.council_tax_localise@1is new. Every node re-keys in the spine (90 → 92 nodes), H2's bundle (88 → 90), dense and national. Outside the UK only the shared gate battery re-keys, throughsource_manifest: with fixed donors, exactly New Zealand's terminal gate, export prepare and readback, and package nodes, the cause María accepted on 12 Nov. No AM, BE or US key moves.source_stages.json, H2'suk_spine.json,fixture.jsonandcgt_asset_type_facts.json, and the coverage manifest.uk_council_tax_reduction_within_bill: a stage-health entry oncouncil_tax_localiseat the transferred boundary, right afteruk_copy_area_agreement, release-blocking, withevidence_absent_blocks. It runs (d) 3's check. Outsideexcluded_regions(NORTHERN_IRELAND, which G6 leaves uncapped), each household's rebate, and its persons' reported reductions summed, must be at most its bill plusabsolute_tolerance(1e-9), and every value it reads must be finite and non-negative. Its details are booleans, and its texts name the stage, the check and the columns only. A spine without G6's receipt fails it closed. It sits at the transferred boundary because no spine stage after G6 writes the bill or a reduction.high_value_support,cgt_support_split,cgt_incidence_clone,cgt_residential_split) also hold each copy to its parent oncouncil_taxandcouncil_tax_rebate(since 324bbe0 the high-value layer holds region and clone index only). The support channel's layer is unchanged, since G6 prices those copies at their own cell. The kept bill is dropped at release, so the agreement leaves it out (D-26).columnsparameter) and the exempt ones (main_residence_value,property_wealth). Text only: its parameters are unchanged.UK_SPINE_GATE_SCOPEgains the gate, and the spine's transferred phase code also hashesbounded_amounts.microcosm.data.contractis re-pinned from the live producer: the battery's three digests and the spine part's two. Every spine built before this commit no longer binds, commit 5's included.area_brmare-key (67 of 92); dense and national re-key; H2's bundle keeps every key. Outside the UK no key moves, the NZ nodes with fixed donors included.localise_council_taxoperation kind and its strict schema variant, G6's bitwise class, F10, andbounded_amountsin the spine's transferred phase code.uk.full.gates.preflight,uk.full.gates.calibrated) carry as a parameter, is 2,011 characters under the graph schema's string limit at this head (earlier figures here were wrong), which Orrery's bound matches;test_uk_gate_manifest_roomfails below 1,024. A longer note or another gate needs that shared limit raised, or those nodes to carry a digest or a note-free manifest (Max).Group (e)
Group (e) has the housing shell price the council tax of Great Britain's SPI copies and band donors by the 2024-25 statute at their region's expected Band D, the reference G6 takes for their draw cell, after its band draw. The bill reads neither the copy's drawn area nor its local authority, so G6 stays the one localiser (D-37). On María's 14 Nov rulings, the band is drawn as today, from the income classifier, and Northern Ireland's copies keep the bill and reduction the shell draws.
council_taxstays in the chained QRF, so the chain's other draws are unchanged: in Great Britain the drawn bill is replaced after the chain, and the reduction is capped at the statute bill. Commit 2 moves values and regenerates H2 once. No gates entry, contract pin, operation kind or schema changes.uk_runtime.spi_housing_council_tax, unwired, so no key or value moves: each SPI copy's reference Band D (draw_cell_expectationsat its L3 cell, its region by households, with G6's arguments), from the region and the conditioned supports, never an area column; and the statute bill there for its nation, drawn band and single-adult discount, in Great Britain only. Its tests run G6 on these bills: within 4 ulps of the statute at each copy's own authority, with no copy capped.spi_housing_shell: the value-moving commit, with one H2 regeneration.deriveforcouncil_tax. The shell reads the conditioned supports as graph sources and no household area column, so (d) 5's guard pin stands. The roster names the derive, so dense and national refuse an older spine.microcosm.data.contract's pin at its own head.Group (f)
Group (f) brings the docs, docstrings and comments in line with the clone-first spine. No value moves.
docs/uk-atomic-household-lineage.md: true sources, copy paths, the copy-id fields and the geography key.docs/geography-assignment.md; the 10 September paragraph stays as written.docs/uk-full-build-graph.mdand seven neighbour docs up to date, with the national line's refusals and the certifier's geography check.Arms a1, b-K1 and b-K15 (10 and 11 Nov)
Their statements are in this description's edit history before 17 Nov; their outputs are not published. a1 (full f100 spines at K = 1, against main and a0) and b-K1 passed every spine and stage-health gate; b-K15 (f010, K = 15) blocked at the transferred phase on two checks that fail the same way at f010 K = 1, and its 32-bit id wrap led to per-call rank ids.
Rulings applied
exact.copy_rulesays so;copy_rulenames that one exception (the 8 Nov rule of never correcting a copy cannot always keep the total bitwise exact: in the synthetic nesting test at K = 7 and 13, no whole household can carry the correction);cgt_structurein stages 26 and 46 stays a listed refusal-only check;uk.full.expand, is reworded so it holds at any clone count, at (b)'s next stage-17 regeneration, so the H2 fixture regenerates once.copy_rulenames it;regional_home_valueskeepsSeedSource.NONE;microcosm.graphexports lazily, and the create kernel's H2-only use ofload_sourceis a listed stop;graph_framesmove stays.frs_spineandfrs_relationshipsleave the target kernels' hashes;microcosm.graph.canonicalin the transport compile kernels;calibration_runstays off the preflight's and the solve's key, throughgate_scopes.copy_ruletexts of stages 42 and 26 say the exact-total correction takes tied weights in row order, and stage 53's declaration says tied balances share a rank (itswithin_bandfield allows onlyuniform, so (b) settles the form);integer_record_keys' uniqueness check becomes sort-based, in (b);engine_batcheswhen a call batches, and declared at the next lock bump;source_person_idandsource_benunit_idare not minted until something reads them;ALLOWED_SOURCE_OPERATION_KINDSinsource_manifest.py. The shared transport gate battery hashes that file, so four NZ transport nodes re-key (nz.gates.terminal,nz.export.prepare,nz.export.readback,nz.package), as group (b)'s two kinds did. María accepted the move. (c) commit 11's kind change (localise_main_residence_valuein,assign_regional_home_valuesout) re-keys the same four nodes by the same cause.--expected-constituency-vintageflag retires (commit 11, 5285cb7);household.atomic_area_basis, which is constant by construction in the UK, extends to the national line, in its own commit after commit 12;council_tax_frs_billfor WAS's bill predictor, dropped at release. WAS and LISA's net-income predictor reads the localised bill. SPI copies and band donors are localised at their own draw cell.Proof plan
🤖 Generated with Claude Code