Skip to content

Gemischte Bedarfsgemeinschaften#1164

Open
MImmesberger wants to merge 42 commits intogsia-rewritefrom
bg-gemischt
Open

Gemischte Bedarfsgemeinschaften#1164
MImmesberger wants to merge 42 commits intogsia-rewritefrom
bg-gemischt

Conversation

@MImmesberger
Copy link
Copy Markdown
Collaborator

@MImmesberger MImmesberger commented Mar 25, 2026

What problem do you want to solve?

Closes #1157 and #1146

Note: Some of the regression tests changed their expected outputs. I carefully checked each of them; and all of them perform better now. Main reason is that people are not eligible anymore after implementing the real eligibility check.

ToDo

  • Update GSiA tests to 2025 using calculator
  • Remove condition in Wohngeld

(This should be merged before #1156 before parts of this are already in there)

MImmesberger and others added 18 commits March 21, 2026 17:22
The SGB XII benefit unit (§ 27 Abs. 2) includes the couple plus their minor
unmarried children (< 18) in the same household, not just the couple as in
SGB II's Einstandsgemeinschaft. This adds sg_id and switches Grundsicherung
im Alter from _eg to _sg aggregation.

Changes:
- Add sg_id group creation function with sgb_xii_sg_id_formula (age < 18)
- Add SG aggregation functions in familie.py (ist_kind_in_sozialhilfegemeinschaft,
  anzahl_kinder_sg, anzahl_erwachsene_sg, anzahl_personen_sg)
- Rename _eg → _sg throughout grundsicherung/im_alter namespace
- Fix vermögensfreibetrag bug: was using _fg counts, now uses _sg counts
- Move p_id_einstandspartner to familie namespace (shared across SGB II/XII)
- Collapse date-split fg_id/eg_id functions into single functions
- Remove unused EG child/adult functions from familie.py
- Update documentation (hh_concepts.md, AGENTS.md)
- Skip hh_id_25 test (needs recomputation with SG grouping)

Closes #1147
Supersedes #738

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
commit 8983f95
Author: Marvin Immesberger <immesberger@posteo.de>
Date:   Tue Mar 24 17:09:20 2026 +0100

    Add regression test.

commit 2674c22
Author: Marvin Immesberger <immesberger@posteo.de>
Date:   Tue Mar 24 17:02:03 2026 +0100

    Add test for Musterberechnung.

commit 1df9140
Author: Marvin Immesberger <immesberger@posteo.de>
Date:   Tue Mar 24 16:48:06 2026 +0100

    Bedarfsanteilmethode
@MImmesberger MImmesberger changed the title Bg gemischt Gemischte Bedarfsgemeinschaften Mar 25, 2026
@MImmesberger MImmesberger marked this pull request as draft March 25, 2026 06:46
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@MImmesberger MImmesberger marked this pull request as ready for review March 25, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant