PolicyEngine / PolicyEngine/policyengine-app-v2

Bug in UK household calculation [MOVE TO API]

Open
#358 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
1
Forks
3
Avg merge
1d 50m
Merged PRs (30d)
39

Description

Calculation fails for this set of input data

Policy:

Image

Household Body
{ "status": "ok", "message": null, "result": { "id": 56307, "country_id": "uk", "label": null, "api_version": "2.39.0", "household_json": { "people": { "you": { "age": { "2025": 40 }, "employment_income": { "2025": 100 } }, "your first dependent": { "age": { "2025": 10 }, "employment_income": { "2025": 10 } } }, "benunits": { "your benefit unit": { "members": [ "you", "your first dependent" ] } }, "households": { "your household": { "brma": { "2025": "AYLESBURY" }, "region": { "2025": "NORTH_EAST" }, "members": [ "you", "your first dependent" ], "local_authority": { "2025": "ABERDEENSHIRE" } } } }, "household_hash": "SpfJVcrqS8dnLsbt3oW7WkLzWN7AGfoLKlgxmtCx9Ho=" } }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the household JSON in the issue and determine which API path now owns the UK household calculation. Confirm the expected result with the issue reporter or current API documentation; done means this exact input calculates successfully in the intended API location.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.