Skip to content

Add UK pipeline alignment planning doc (#1621)#1723

Open
vahid-ahmadi wants to merge 1 commit into
mainfrom
vahid-ahmadi/issue-1621-pipeline-alignment-plan
Open

Add UK pipeline alignment planning doc (#1621)#1723
vahid-ahmadi wants to merge 1 commit into
mainfrom
vahid-ahmadi/issue-1621-pipeline-alignment-plan

Conversation

@vahid-ahmadi
Copy link
Copy Markdown
Collaborator

Summary

Key findings from auditing the issue body against the current code:

The page captures the remaining architectural gaps:

  1. Runtime _reported consultation in would_claim_housing_benefit / _IS / _WTC / _CTC — needs conversion to input-only matching the UC/PC pattern, with stochastic assignment in policyengine-uk-data.
  2. Take-up assignment in policyengine-uk-data ignores reported data — needs port of the US assign_takeup_with_reported_anchors helper.
  3. Second-stage QRF gap on SPI donors (analogous to policyengine-us-data#589) so consequential FRS-only variables (rent, gift_aid, pension contributions, *_reported benefits) come out consistent with imputed income.

Plus residual aggregate gaps against OBR (income_support, esa_contrib, attendance_allowance, tax_free_childcare) and a candidate PR sequence with the safest item first.

Test plan

  • Markdown lints cleanly (tables, links, MyST admonition).
  • Docs build job picks up the new page under assumptions/.

🤖 Generated with Claude Code

#1621 is an umbrella tracker. Persist it in-repo as a docs page so the
queue of architectural fixes has a stable reference.

Auditing the current state:

- The three small bugs flagged in the issue body (tax_credits min_benefit
  unit, benunit_weekly_hours label, state_pension_type heuristic) have
  all been fixed since the issue was filed. Note them as done.
- The state pension residual is documented separately in #1632 (now
  covered by docs/book/programs/gov/dwp/state-pension.md), so this page
  links there rather than restating.

The remaining architectural gaps captured:

- runtime _reported consultation in would_claim_housing_benefit,
  would_claim_IS, would_claim_WTC, would_claim_CTC — needs conversion
  to input-only matching the UC/PC pattern, with stochastic assignment
  in policyengine-uk-data;
- take-up assignment in uk-data ignores reported data — needs port of
  the US assign_takeup_with_reported_anchors helper;
- second-stage QRF gap on SPI donors (analogous to
  policyengine-us-data#589) so consequential FRS-only variables
  (rent, gift_aid, pension contributions, *_reported benefits) are
  consistent with imputed income;
- residual aggregate gaps against OBR (income_support, esa_contrib,
  attendance_allowance, tax_free_childcare, state_pension).

Ends with a candidate PR sequence so the receiving repos (this one +
policyengine-uk-data) have a low-risk-first ordering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant