Skip to content

GEP 11: Legal references - #1264

Draft
MImmesberger wants to merge 21 commits into
mainfrom
gep-11
Draft

MImmesberger wants to merge 21 commits into
mainfrom
gep-11

Conversation

@MImmesberger

@MImmesberger MImmesberger commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

What problem do you want to solve?

Adds a draft of GEP 11, which makes references to the law a required and machine-readable part of the policy functions and parameters shipped with GETTSIM.

  • A reference pairs a provision with the BGBl act that gave it its wording, e.g. § 66 Abs. 1 EStG idF Art. 6 G. v. 08.12.2022 BGBl. I S. 2230.
  • Policy functions carry references in a Reference: section of the docstring. Parameters carry them in the reference key of each date entry. The reference of a RoundingSpec follows the same rules.
  • TTSIM extracts references, and GETTSIM parses them and checks their format in a test with a baseline file.
  • find_node_by_legal_reference provides a lenient reverse lookup by provision and policy date.
  • Verifying references against law texts is out of scope for now (no historical, machine-readable source of German federal law is available).

GEP 3's section on the reference key now points to GEP 11, and its examples are updated. Other examples in GEP 3 still use the old reference style and would be updated together with the parameter files. GEP 5 now requires a reference for rounding rules.

Replaces #1263 (moved to the gep-11 branch).

Todo

  • Pick an appropriate title.
  • Put Closes #XXXX in the first PR comment to auto-close the relevant issue once
    the PR is accepted. This is not applicable if there is no corresponding issue.
  • Document PR in CHANGES.md.

Proposes a required, machine-readable reference format for policy
functions and parameters shipped with GETTSIM and amends GEP 3's
reference key accordingly.
@read-the-docs-community

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

Copy link
Copy Markdown

Documentation build overview

📚 gettsim | 🛠️ Build #36208770 | 📁 Comparing 982147d against latest (ff93042)

  🔍 Preview build  

7 files changed · + 1 added · ± 6 modified

+ Added

± Modified

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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