council_tax_benefit switches from simulated to reported when a reform moves a household out of a simulated scheme, creating spurious losses
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Locate the council_tax_benefit variable in policyengine-uk and the where(scheme_supported, simulated, reported) fallback described in the issue; trace how council_tax_reduction_scheme_supported and simulated_council_tax_reduction_benunit are set for household 367. Reproduce the 2026-27 +£30 UC standard allowance reform on the certified build and compare source flags baseline vs reform. Done means reform scoring no longer substitutes reported for simulated (or an explicit source-switch flag is exposed), with a regression test covering the household.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
@juaristi22, could you take a look? It shows up as spurious losers in reform scoring on the certified build.
What's wrong
council_tax_benefit returns where(scheme_supported, simulated, reported). When a reform moves a household from a scheme the model simulates to one it doesn't, the household's reduction switches from the simulated amount to the survey-reported one. The resulting change is the gap between two different measurements, not an effect of the reform.
Example
policyengine 6.20.2 / policyengine-uk 2.177.7, certified build uk-frs-calibration-attempt-20261115T104657Z-fcfac709, 2026-27. Reform: +£30 a month on all four UC standard allowance rates (gov.dwp.universal_credit.standard_allowance.amount.*).
Household id 367 (England, Yorkshire; couple aged 66 and 59, cap-exempt, no UC in the baseline):
| Baseline | Reform | |
|---|---|---|
universal_credit |
£0.00 | £141.80 |
council_tax_reduction_pensioner |
true | false |
council_tax_reduction_scheme_supported |
true | false |
simulated_council_tax_reduction_benunit |
£1,426.09 | £0.00 |
council_tax_benefit |
£1,426.09 (simulated) | £293.67 (reported) |
hbai_household_net_income |
£17,250.23 | £16,259.61 (−£990.62) |
The small UC award ends the family's pension-age CTR. No English working-age scheme is simulated for this household (see also PolicyEngine/microcosm#1711: local_authority is absent and defaults to MAIDSTONE), so the model falls back to the reported £293.67. The household loses £1,132.43 of reduction from a £30 a month rise.
Suggestions
- Under a reform, hold the source (simulated or reported) fixed at its baseline value, or scale the reported amount by the change in the simulated one.
- At minimum, expose a flag when the source switches so reform analyses can find these cases.
- Ngôn ngữ chính
- Python
- Star
- 53
- Fork
- 34
- Merge trung bình
- 3 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 100
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/policyengine-uk
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PolicyEngine/policyengine-uk#2948 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Let the shard-assignment properties draw up to 16 shardsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
PolicyEngine/policyengine-uk#2920 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Lift the Universal Credit benefit cap for a claimant who receives War Widow's PensionCó thể đã có người làm @juaristi22 đã nhận 24 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PolicyEngine/policyengine-uk#2792 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
PolicyEngine/policyengine-uk#2947 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
PolicyEngine/policyengine-uk#2946 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của PolicyEngine/policyengine-uk
Issue tương tự
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NousResearch/hermes-official-plugins#538 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidateCó thể đã có người làm @houzhongyu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày