Skip to content

Convert all references to the law to GEP 11 - #1266

Draft
MImmesberger wants to merge 14 commits into
claude/project-thread-y388yxfrom
claude/project-thread-y388yx-references
Draft

MImmesberger wants to merge 14 commits into
claude/project-thread-y388yxfrom
claude/project-thread-y388yx-references

Conversation

@MImmesberger

@MImmesberger MImmesberger commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

What problem do you want to solve?

Converts every reference to the law in src/gettsim/germany to the GEP 11 format, so that the enforcement tests from #1265 pass. Stacked on #1265.

  • Policy functions get a Reference: section, RoundingSpecs get reference=..., every date entry in the parameter YAMLs gets a reference key (<provision> idF <act>, or none (<reason>)).
  • The act cited is the one that last changed the cited part as of the relevant date. Acts were verified on buzer.de and, before 2007, in the BGBl I full text (offenegesetze.de).
  • Court decisions moved into the docstring prose.
  • laws.yaml now lists all laws and Verordnungen cited.
  • docs/geps/params-schema.json accepts a list of references.
  • Abbreviations follow gesetze-im-internet.de or, for laws no longer in force, the title of the act (e.g. 3. RAV, 2. RAV, SolzG 1995, SVBezGrG 2007). Acts without an abbreviation (SVBezGrV before 2013, BeiSaV 2009, HG 1993, Mindestunterhaltsverordnung, SVBezGrV-Ost 1991) are cited by their publication, e.g. § 3 Abs. 1 Nr. 1 V. v. 02.12.2011 BGBl. I S. 2421.

Value and date fixes found along the way

Sozialversicherung

  • Minijobgrenze 630 DM from 1999-04-01 (not 2000-01-01); Ost/West distinction ends 1999-03-31 (Art. 1 Nr. 2 G. v. 24.03.1999 BGBl. I S. 388).
  • Midijobgrenze 1300 € from 2019-07-01 (not 2019-01-01).
  • KV BBG 2004: 3488 → 3487.5.
  • PV Beitragssatz 1.7 % from 1996-07-01; 1.95 % from 2008-07-01.
  • ALV Beitragssatz: new 1985-06-01 = 4.1 %; 1986 4.1 % → 4.0 %; new 1991-04-01 = 6.8 %; 2008 3.2 % → 3.3 %; new 1994 and 1998 entries.
  • Sozialversicherungspauschale: 21 % from 2005 (§ 133 Abs. 1 SGB III); 2012 key → 2012-04-01.
  • ALG Anspruchsdauer tables 1998, 2006-02, 2008, 2012-04; Mindestversicherungsmonate from 1998-01-01; Stundengrenze 1998-2012 18 → 15.
  • GRV Beitragssatz 19.2 % from 1985-06-01; new 1991-04-01 = 17.7 %; new 1999-04-01 = 19.5 %. Alpha 0.25 from 2004-08-01.

Rente

  • Entgeltpunkte Ost 1990-06-01 → 1990-07-01.
  • Wartezeit / Mindestpflichtbeitragsjahre: new 1992-01-01 entries; new 2014-07-01 = 18.
  • Altersgrenzen wegen Arbeitslosigkeit: several cohort corrections.
  • Hinzuverdienstgrenze 2002: 350 → 325; new 2003-04, 2004, 2006 entries; monthly → yearly switch 2017-01-01 → 2017-07-01; new 2022 = 46060.
  • Erwerbsminderung: min. Zugangsfaktor from 2001; Altersgrenze Grundbewertung 16 → 17 (§ 72 Abs. 2 SGB VI idF WFG 1997); new 2008 Altersgrenze 63 / Wartezeit 35.

Einkommensteuer / Lohnsteuer / Soli

  • Behinderten-Pauschbetrag GdB 70 from 2021: 1140 → 1440.
  • Werbungskostenpauschale 1000 € from 2011-01-01.
  • Besteuerungsanteil table from 2023-01-01 (Wachstumschancengesetz, retroactive).
  • Alleinerziehende, Altersentlastung, Sonderausgaben, Vorsorge: start 1990 instead of 1988/1989; new Alleinerziehende 2022 = 4008; Vorsorge 1992 entry removed.
  • Minderungsanteil KV from 2010-01-01.
  • Lohnsteuer thresholds (§ 39b Abs. 2 Satz 7 EStG): 2005 third threshold 200000 → 10000000; new 2007, 2015-07-23 entries; 2009 → 2009-03-06; 2024 first threshold 13279 → 13432.
  • Vorsorgepauschale Mindestanteil end date 2026-01-01.

Familie

  • Kindergeld 1979: 2nd child 100 → 80 (Jan) and 120 → 100 (Jul); 2009-12-01 → 2010-01-01; 2015-07-01 → 2015-01-01; Altersgrenze from 1996; new 1998 Einkommensgrenze 12360 DM.
  • Kinderbonus 2022 = 100 added; kinderbonus ends 2022-12-31.
  • Unterhaltsvorschuss bis 2008: rounding down → up (§ 9 Abs. 3 Satz 2 UhVorschG).
  • Kinderzuschlag: new 2016-07-01 = 160; 2022 Vorjahressatz 224 → 205.
  • Elterngeld 2011 upper threshold 1201 → 1200.
  • Erziehungsgeld: 2004-02-09 → 2004-01-01 (HBeglG 2004); end markers 2009-01-01.

Grundsicherung / Wohngeld

  • Regelbedarfsstufe 6 2017: 236 → 237 (Besitzschutz, § 8 Abs. 2 RBEG).
  • Vermögensfreibetrag: start 2005; Kinder 2005 0 → 256, 2023 10000 → 500.
  • Mehrbedarf Merkzeichen G: new 2005-01-01 = 17 %.
  • Wohngeld Höchstbeträge 1986-01-01 and 1992-01-01 (retroactive); Abzugsbeträge 30 % throughout, 10/20/30 % from 2001; Kinderfreibeträge 1986 / 2001; Freibetrag Behinderung from 1990-10-01.

Test expectations updated for these fixes

  • 30 Erwerbsminderung cases (29 *_preliminary_products.yaml, 2025-01-01/entgeltpunkte_ohne_ost_west_unterschied.yaml): recomputed with the belegungsfähiger Gesamtzeitraum from age 17 instead of 16. Only entgeltpunkte_west (and betrag_m in the 2025 case) change.
  • sozialversicherung/beiträge/1999-04-01/geringfügig_beschäftigt_nur_west.yaml → geringfügig_beschäftigt_ost_und_west.yaml: from 1999-04-01 the 630 DM limit applies in East and West alike, so the East German person is now geringfügig beschäftigt as well.

Open questions

  • Anlage is not in the grammar; values from an Anlage cite the § that refers to it, with the Anlage in note.
  • Where the last amending act before 2006 could not be traced, the Bekanntmachung of the consolidated text is cited.
  • Article numbers with a letter (Art. 4 Nr. 7b) cannot be expressed in the act part.

Not modelled / possible bugs found (not changed)

  • Grundsicherungsgeld and the Kinderzuschlag Vermögen rules from 2026-07-01 (G. v. 16.04.2026 BGBl. 2026 I Nr. 107).
  • Erziehungsgeld: Abschlagsfaktor 5.2 % applied to the Budget (law: 7.2 %); income reduction; rounding to full euros.
  • Rente: Zurechnungszeit becomes negative when the pension starts after the Zurechnungszeitgrenze (see 2004-01-01/voll_erwerbsgemindert_birthyear_1943, where the Entgeltpunkte fall below the person's own 18); Hinzuverdienstdeckel 2020-2022; Wartezeit 45 counting 2012-2014; langjährig vorzeitig for pre-1948 cohorts.
  • § 9a Satz 3 EStG from 2026.
  • Spouse Vermögensfreibetrag in Grundsicherung (614 € vs 2600 €).

Todo

  • Document PR in CHANGES.md.

MImmesberger and others added 4 commits November 27, 2026 15:10
Cite the provision and the act that gave it its wording for every policy function,
RoundingSpec and parameter date entry, verified against buzer.de and the BGBl. Fix
parameter values and dates that do not match the law.
@read-the-docs-community

read-the-docs-community Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

…hub.com/ttsim-dev/gettsim into claude/project-thread-y388yx-references

# Conflicts:
#	src/gettsim/germany/lohnsteuer/vorsorge.yaml
#	src/gettsim/germany/unterhaltsvorschuss/unterhaltsvorschuss.yaml
#	src/gettsim/germany/wohngeld/einkommen.yaml
#	src/gettsim/germany/wohngeld/miete.yaml
The Erwerbsminderung cases use the belegungsfähiger Gesamtzeitraum from the
age of 17 (§ 72 Abs. 2 SGB VI idF WFG 1997). From 1999-04-01 the
Geringfügigkeitsgrenze of 630 DM applies in East and West Germany alike.
Abbreviations follow gesetze-im-internet.de or, for laws no longer in
force, the title of the act: 3. RAV, 2. RAV, SolzG 1995, SVBezGrG 2007.
The SVBezGrV before 2013, BeiSaV 2009, HG 1993, the Mindestunterhalts-
verordnung and the SVBezGrV-Ost 1991 have no abbreviation and are cited by
their publication in the BGBl.
…im-dev/gettsim into claude/project-thread-y388yx-references

# Conflicts:
#	src/gettsim/legal_references/laws.yaml
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