Open
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was
linked to
issues
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
(This should be merged before #1156 before parts of this are already in there)