Skip to content

Port UK compact source stages and 2024-25 refresh from uk-data #145

Description

@MaxGhenis

Parent: #144.

Why

Populace UK can replace the local-geography/matrix path, and the current compact H5 already carries several recent uk-data columns. But if policyengine-uk-data is archived, Populace needs to own the source-stage logic and provenance for those columns instead of relying on uk-data build history.

Scope migrated from uk-data

Open PRs:

Recent merged PRs that need Populace-owned source-stage equivalents:

Acceptance criteria

  • Populace has UK source-stage modules/manifests for these compact-data inputs, with no policyengine_uk_data imports.
  • The compact artifact can be rebuilt for at least the current Populace UK release year and the FRS 2024-25 refresh path.
  • Export-variable gates prove the compact H5 includes the same PolicyEngine-UK variables expected by policyengine.py.
  • Determinism tests cover every stochastic assignment on the live build path.
  • Source flags and diagnostics make synthetic SPI/capital-gains support inspectable without row-order inference.

2026-08-12 update — this issue is workstream E of the UK-migration master epic #665 (it absorbs the source-stage track of the now-closed #144).

Full item list to port, each as a declarative source stage + gate (children filed as picked up); order constraints: wealth before consumption (num_vehicles), income before capital gains.

Acceptance: the microcosm-built spine replaces the certified incumbent H5 in the national build; eFRS parity fixtures beat or match the incumbent on the frozen register with signed differences.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions