Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/1207-uk-dense-bus-floor-21-families.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The UK dense solve's loss-share floor for DfT's bus journeys moves from 1.25% to 1.15% (microcosm#1207; María's ruling of 16 November 2026). Binding England's PIP cases in five broad age bands made `dwp_pip` the twenty-first family at the nation and region grain of the dense surface, so the bus journeys' share under the doctrine's rule fell from a twentieth of that grain's quarter (1.25%) to a twenty-first (about 1.19%), and the floor refused the first dense build at that commit before its solve. The floor stays a check, never a change to the rule's arithmetic: 1.15% admits twenty-one families and refuses a twenty-second, so the next family bound at that grain comes back for a ruling. Local energy's 2.5% floor is unchanged.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Four of the UK local line's gate-only national target-fit entries are renewed until 14 December 2026 (microcosm#1301; María's approval of 16 November 2026): HMRC's dividend income bands from £20,000 to £50,000 and its private pension income band from £12,570 to £15,000. They expired on 16 November and the dense build of that day still breaches them, so its sign-off would have kept them at that expiry beside approvals of the same day, which the national graph test's review invariant refuses. Each entry now cites that build, with the sign-off's approval, wording and local-line scope.
1 change: 1 addition & 0 deletions changelog.d/1301-uk-dense-signoff-2026-11-16.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sign dense build 1's gate-only failures for the local line (microcosm#1301, attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae): 3 national target-fit rows, 12 local target-fit cells and 0 areas below the support floor, approved 2026-11-16; 9 entries that build 2 would fail are retired. Every signed row stays bound in the solve, each entry suppresses only the local line's release fence, and a build in which a signed row passes fails its entry as stale.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,41 @@
"description": "Reviewed target-fit exclusions for the UK terminal battery (schema 2 per #610). Each entry defers one calibration target whose |relative error| breaches the 25% release bound, with the defect diagnosed, tracked, and owned elsewhere; the receipt records the reasoning, approver, adjudication reference, approval date, and expiry. The gate keeps the target BOUND in calibration (exclusion applies to the release fence only, never the solve), reports dormant entries, FAILS stale ones (targets back inside the bound), and FAILS expired ones until the adjudication is renewed, so this register cannot rot.",
"exclusions": {
"hmrc/dividend_income_income_band_20_000_to_30_000@2025": {
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_20_000_to_30_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261018T161007Z-35fb4c89 (full gate report sha256 46d42e6abf5fa8eaf08e3301a982703f113838c41cb7869340a3a41bafc6407f) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_20_000_to_30_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "Gate-only sign-off of the local release's measured build, drafted from its run (microcosm#1301, microcosm#1310).",
"approved_on": "2026-10-19",
"expires_on": "2026-11-16",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
},
"hmrc/dividend_income_income_band_30_000_to_40_000@2025": {
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_30_000_to_40_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261018T161007Z-35fb4c89 (full gate report sha256 46d42e6abf5fa8eaf08e3301a982703f113838c41cb7869340a3a41bafc6407f) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_30_000_to_40_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "Gate-only sign-off of the local release's measured build, drafted from its run (microcosm#1301, microcosm#1310).",
"approved_on": "2026-10-19",
"expires_on": "2026-11-16",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
},
"hmrc/dividend_income_income_band_40_000_to_50_000@2025": {
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_40_000_to_50_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261018T161007Z-35fb4c89 (full gate report sha256 46d42e6abf5fa8eaf08e3301a982703f113838c41cb7869340a3a41bafc6407f) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"reason": "Gate-only sign-off of the national target row hmrc/dividend_income_income_band_40_000_to_50_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "Gate-only sign-off of the local release's measured build, drafted from its run (microcosm#1301, microcosm#1310).",
"approved_on": "2026-10-19",
"expires_on": "2026-11-16",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
},
"hmrc/private_pension_income_income_band_12_570_to_15_000@2025": {
"reason": "Gate-only sign-off of the national target row hmrc/private_pension_income_income_band_12_570_to_15_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261018T161007Z-35fb4c89 (full gate report sha256 46d42e6abf5fa8eaf08e3301a982703f113838c41cb7869340a3a41bafc6407f) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"reason": "Gate-only sign-off of the national target row hmrc/private_pension_income_income_band_12_570_to_15_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "Gate-only sign-off of the local release's measured build, drafted from its run (microcosm#1301, microcosm#1310).",
"approved_on": "2026-10-19",
"expires_on": "2026-11-16",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
Expand Down Expand Up @@ -131,6 +131,36 @@
"release_lines": [
"local"
]
},
"dwp/uc_payment_dist/COUPLE_WITH_CHILDREN_annual_payment_19_200_to_20_400@2025": {
"reason": "Gate-only sign-off of the national target row dwp/uc_payment_dist/COUPLE_WITH_CHILDREN_annual_payment_19_200_to_20_400@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
},
"hmrc.spi.savings_interest_income.amount_by_total_income_band.band_12570@2025": {
"reason": "Gate-only sign-off of the national target row hmrc.spi.savings_interest_income.amount_by_total_income_band.band_12570@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
},
"hmrc/state_pension_count_income_band_500_000_to_1_000_000@2025": {
"reason": "Gate-only sign-off of the national target row hmrc/state_pension_count_income_band_500_000_to_1_000_000@2025 on the local line (microcosm#1301). On dense build-1 attempt uk-local-candidate-f100-s42-20261116T010526Z-602766ae (full gate report sha256 405033ef697fda5e04ca08a28dba5cf59e44c56d7918738a0ee4164e76c3bbaf) it breached the target-fit release bound (max_abs_relative_error 0.25). It stays bound in the solve: this entry suppresses only the release fence on the local line, and a build in which it is back inside the bound fails the entry as stale.",
"approved_by": "juaristi22",
"adjudication": "María's approval of the gate-only sign-off for the pair built from microcosm main on 2026-11-15, with the bus-floor ruling of 2026-11-16 (microcosm#1301, microcosm#1207)",
"approved_on": "2026-11-16",
"expires_on": "2026-12-14",
"release_lines": [
"local"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,24 @@ def uk_weight_grains(grain_labels: Sequence[str]) -> list[str]:
#: (microcosm#1207, ruling of 2026-10-14: a check on the rule, never a change
#: to its arithmetic). Under the doctrine's rule DESNZ's local energy is one of
#: nine local-authority families (about 2.8 % of the loss) and the BUS01 region
#: journeys one of seventeen nation and region families (about 1.5 %); a
#: surface or a rule that dilutes either below its floor is refused before
#: the solve runs. Families are the census families (local) and the register
#: families (national), as the rule reads them. María's ruling of 2026-10-15:
#: 2.5 % and 1.25 %, checked under the doctrine's row-metadata rules only (the
#: ``uniform`` and ``grain_equal`` overrides carry no family and stay usable
#: for experiments; a release candidate refuses them anyway).
#: journeys one of the nation and region families (seventeen at the ruling,
#: about 1.5 %); a surface or a rule that dilutes either below its floor is
#: refused before the solve runs. Families are the census families (local) and
#: the register families (national), as the rule reads them. María's ruling of
#: 2026-10-15: 2.5 % and 1.25 %, checked under the doctrine's row-metadata
#: rules only (the ``uniform`` and ``grain_equal`` overrides carry no family
#: and stay usable for experiments; a release candidate refuses them anyway).
#: María's ruling of 2026-11-16 ("Lower the floor") takes bus to 1.15 %:
#: binding England's PIP cases by age (her call 7 of 2026-11-11) made
#: ``dwp_pip`` the twenty-first nation and region family of the dense surface,
#: so the bus journeys' share fell from 1/20 to 1/21 of that grain's quarter
#: (1.25 % to about 1.19 %). 1.15 % admits twenty-one families and refuses a
#: twenty-second, so the next family bound at that grain comes back for a
#: ruling.
UK_LOCAL_FAMILY_LOSS_SHARE_FLOORS: Mapping[str, float] = MappingProxyType(
{
"domestic_energy": 0.025,
"dft_bus_journeys": 0.0125,
"dft_bus_journeys": 0.0115,
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,15 @@ def test_doctrine_constants_are_the_declared_contract() -> None:
assert UKLocalSolveDoctrine(target_weight_rule="uniform").target_weight_rule == (
"uniform"
)
# microcosm#1207: check-only loss-share floors for the two new families.
# microcosm#1207: check-only loss-share floors for the two new families
# (bus lowered from 1.25 % to 1.15 % on 2026-11-16 for the PIP family).
from microcosm.build.uk_runtime.local_doctrine import (
UK_LOCAL_FAMILY_LOSS_SHARE_FLOORS,
)

assert dict(UK_LOCAL_FAMILY_LOSS_SHARE_FLOORS) == {
"domestic_energy": 0.025,
"dft_bus_journeys": 0.0125,
"dft_bus_journeys": 0.0115,
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,51 @@ def test_a_floored_family_off_the_surface_is_recorded_absent() -> None:
assert_uk_family_loss_share_floors(rows, np.zeros(2))


def _bus_surface(n_region_families: int):
"""Four grains; bus journeys one of ``n_region_families`` at nation/region."""

return _rows(
_local(
"c1/hh",
"constituency",
"E14000001",
"households",
"census_households",
4.0e4,
),
_local("l1/gas", "la", "E06000001", "energy/gas_kwh", "domestic_energy", 1.0e6),
_national("obr/it", "obr", "K02000001", "gbp", 2.0e11),
_national("bus/ne", "dft_bus_journeys", "E12000001", "count", 1.4e8),
*(
_national(f"r{i}", f"region_family_{i}", "E92000001", "count", 1.0e6)
for i in range(n_region_families - 1)
),
)


def test_the_bus_floor_admits_21_region_families_and_refuses_22() -> None:
"""María, 2026-11-16: binding PIP made the dense surface's 21st region family.

Under the doctrine's rule the bus journeys take a twenty-first of the
nation/region grain's quarter (about 1.19 %), which meets the 1.15 % floor;
a twenty-second family (about 1.14 %) comes back for a ruling.
"""

rule = UK_LOCAL_SOLVE_DOCTRINE.target_weight_rule
rows = _bus_surface(21)
weights = uk_target_loss_weights_for_rows(rows, rule=rule)
bus = assert_uk_family_loss_share_floors(rows, weights)["families"][
"dft_bus_journeys"
]
assert bus["status"] == "met"
assert bus["loss_share"] == pytest.approx(0.25 / 21)
rows = _bus_surface(22)
with pytest.raises(ValueError, match=r"dft_bus_journeys \(1\.1364% < 1\.1500%\)"):
assert_uk_family_loss_share_floors(
rows, uk_target_loss_weights_for_rows(rows, rule=rule)
)


def test_a_share_equal_to_its_floor_meets_it() -> None:
"""One family in forty (2.5 %) meets a 2.5 % floor despite rounding."""

Expand Down
Loading
Loading