Skip to content

feat(deadline): terminiert + reference DeadlineRule types#8

Merged
JoschaMetze merged 2 commits into
mainfrom
feat/deadline-terminiert-reference
Jul 2, 2026
Merged

feat(deadline): terminiert + reference DeadlineRule types#8
JoschaMetze merged 2 commits into
mainfrom
feat/deadline-terminiert-reference

Conversation

@JoschaMetze

Copy link
Copy Markdown
Contributor

Part 1/3 of clearing the sequence-diagram Frist [REVIEW] badges via a three-bucket
deadline scheme (design doc: mako_prozesse/docs/plans/2026-07-02-frist-review-buckets-design.md).

What

DeadlineRule gains direction / anchor / recurring (all optional → existing rows
deserialize unchanged) and two new type values:

  • terminiert — a spätester-ÜT/ÜZ deadline fixed relative to an external anchor
    (Zahlungsziel, Änderungstermin, …) or recurring daily. _deadline_tag renders a
    compact inline tag: {≤20WT vor Änderungstermin}, {≤Zahlungsziel}, {täglich ≤14:00},
    {≤11WT nach #2}.
  • reference — a real but irreducible Frist (points to another table/SD/contract, or
    is conditional/a range). _deadline_note renders it as an (i) Frist: … note without
    [REVIEW], so extract_review_notes no longer surfaces it as "Prüfung nötig".

markdown.py legend now lists only the marker kinds present on each diagram.

Verification

152 passed, 1 skipped; mypy + pylint 10/10 on changed files.

Ship dependency

The parser (makorele) and webapp consume this. This must be released to PyPI first
makorele pins makoralle>=0.0.1 from PyPI, so its companion PR only goes green against a
release that includes these types. Then: regenerate the dataset → bump DATA_VERSION in
mako_prozesse.

🤖 Generated with Claude Code

JoschaMetze and others added 2 commits July 2, 2026 15:47
DeadlineRule gains direction/anchor/recurring fields and two new types:
- 'terminiert': a spätester-ÜT/ÜZ deadline fixed relative to an external anchor
  (Zahlungsziel, Änderungstermin, …) or recurring daily; rendered as a compact
  inline tag ({≤20WT vor Änderungstermin}, {≤Zahlungsziel}, {täglich ≤14:00}).
- 'reference': a real but irreducible Frist (points to another table/SD/contract,
  or is conditional/a range); rendered as an (i) note WITHOUT [REVIEW] so
  extract_review_notes no longer surfaces it as 'Prüfung nötig'.

Markdown legend now lists only the marker kinds present on each diagram.
All fields optional/defaulted → existing rules deserialize unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The new terminiert/reference rendering introduced German words in src comments
and Literal values that codespell mistakes for English typos.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JoschaMetze JoschaMetze merged commit 3e8c348 into main Jul 2, 2026
19 checks passed
@JoschaMetze JoschaMetze deleted the feat/deadline-terminiert-reference branch July 2, 2026 19:42
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