Skip to content

Rewrite Grundsicherung im Alter (Kapitel 4, SGB XII)#1156

Open
MImmesberger wants to merge 5 commits intomainfrom
gsia-rewrite
Open

Rewrite Grundsicherung im Alter (Kapitel 4, SGB XII)#1156
MImmesberger wants to merge 5 commits intomainfrom
gsia-rewrite

Conversation

@MImmesberger
Copy link
Copy Markdown
Collaborator

This PR collects the changes made to Grundsicherung im Alter.

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Mar 20, 2026

Documentation build overview

📚 gettsim | 🛠️ Build #31991593 | 📁 Comparing c135d82 against latest (39f4e01)


🔍 Preview build

Show files changed (6 files in total): 📝 6 modified | ➕ 0 added | ➖ 0 deleted
File Status
changes.html 📝 modified
geps/gep-01.html 📝 modified
geps/gep-08.html 📝 modified
how_to_guides/modifications_of_policy_environments.html 📝 modified
tt_explanations/hh_concepts.html 📝 modified
tutorials/visualizing_the_system.html 📝 modified

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

❌ Patch coverage is 95.34884% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/gettsim/germany/ids.py 89.47% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

MImmesberger and others added 4 commits March 21, 2026 09:32
## Summary

- Update `parameter_vermögensfreibetrag` to 10,000 EUR per person from
2023-01-01 (§1 DurchführungsVO zu §90 Abs. 2 Nr. 9 SGB XII, amended by
Art. 9 Bürgergeld-Gesetz)
- Add test case verifying wealth above the new threshold denies benefits

Closes #1150

## Test plan

- [x] `pixi run ty` and `pixi run ty-jax` pass
- [x] `pixi run prek run --all-files` pass
- [x] Full test suite passes (`pixi run -e py314-jax tests -n 7`)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…1154)

## Summary

- The Freibetrag for zusätzliche Altersvorsorge (§82 Abs. 4/5 SGB XII)
was incorrectly applied from 2011. It was introduced by the
Betriebsrentenstärkungsgesetz (BGBl. I 2017, S. 3214), effective
**2018-01-01**.
- Berufsständische Versorgungswerke (§6 Abs. 1 SGB VI) were incorrectly
included in the Freibetrag. They are first-pillar Pflichtversicherung,
fail the "auf freiwilliger Grundlage" criterion in §82 Abs. 5 Satz 1,
and are explicitly listed as the baseline against which "zusätzliche
Altersvorsorge" is measured.
- The YAML parameter date was wrong (2005 → 2018) and the parameter has
been renamed from `anrechnungsfreier_anteil_private_renteneinkünfte` to
`anrechnungsfreier_anteil_zusätzliche_altersvorsorge` to match the legal
term.
- The GRV Freibetrag for Grundrentenbezieher was written up in a
confusing way; fixed that.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
## Summary

- Adds `eg_id` (Einsatzgemeinschaft) group for SGB XII, which includes
the couple plus their minor unmarried children (< 18) in the same
household (§ 27 Abs. 2 SGB XII)
- Switches Grundsicherung im Alter from `_bg` to `_eg` aggregation,
fixing incorrect benefit computation for households with minor children
- Fixes `vermögensfreibetrag` bug: was using `_fg`
(Familiengemeinschaft) counts instead of the correct group-level counts
- Moves `p_id_lebenspartner` (formerly `p_id_einstandspartner`) from
`arbeitslosengeld_2`/`bürgergeld` namespaces to `familie` (shared across
SGB II and SGB XII), collapsing date-split `fg_id` function into single
functions
- Renames `Einstandspartner` → `Lebenspartner` (`p_id_einstandspartner`
→ `p_id_lebenspartner`)

## Test plan

- [x] `pixi run ty` and `pixi run ty-jax` pass
- [x] `pixi run prek run --all-files` passes
- [x] `pixi run -e py314-jax tests -n 7` — 1285 passed, 528 skipped
- [x] Grouping tests verify correct `eg_id` values for various household
compositions
- [x] `skip_hh_id_25.yaml` (parent + child) needs expected values
recomputed with EG grouping — follow-up needed
- [x] Additional test cases with minor children should be added

Closes #1147
Supersedes #738
Related to #696

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant