Skip to content

Preserve per-unit missingness for UC advance cash inputs #2578

Closed

Description

@MaxGhenis

PR #2574 introduces uc_advance_repayment_amount with a float default of zero. Core constructs one population-wide input array if any benefit unit supplies this input, filling omitted units with zero and bypassing their fallback formula.

A 2025 single claimant aged 30 with ADVANCE_ONLY and latent rate 0.1 should retain an annual fallback of £480.168 when another benefit unit supplies an explicit zero. Currently both units receive zero advance deductions.

Keep missingness per unit using the existing negative-sentinel cash input convention, preserve explicit zero, and test fully supplied, partially supplied and unsupplied populations. Include a Hypothesis property showing a unit's deduction is independent of other units' supplied cash.

This tracks the P2 in the UK hub independent review. The fix will be a separate draft PR stacked on fix-uc-advance-cash-2410; no changes will be pushed to #2574's branch.

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. MaxGhenis commented on Oct 31, 2026

    @MaxGhenis
    CollaboratorAuthor

    uc_advance_repayment_amount now defaults to −1, so a unit that supplies no amount keeps its fallback while another unit supplies zero (5220120). test_advance_deduction_is_independent_of_peers_supplied_cash covers this case, and all 8 tests in test_uc_advance_repayment_properties.py pass at 2da212a.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions