Feature: Check days against the Working Hours Act 

Description 

Every closed day with complete punches is checked against the German Working Hours Act: the daily maximum (dailyMaxExceeded), the required break (breakTooShort; the model's thresholds, never below 30 minutes above 6 hours and 45 minutes above 9 hours, counting only breaks of at least 15 minutes) and the rest since the last clock-out (restPeriodShort). Work on a Sunday or a public holiday is recorded as a notice (sundayWork, holidayWork) and flagged on the day (workedOnSunday, workedOnHoliday).

Where the company deducts missing breaks, the worked time of the day is reduced by the missing break, shown as deductedBreakSeconds with the flag breakDeducted, and no violation is raised.

Violations follow their day: a recalculation updates them, resolves those no longer broken and opens them again. WorkingTimeRuleViolated is published once per employee, date and rule; violations (not notices) notify the employee, their manager and HR (time.ruleViolation). listWorkingTimeViolations lists them in the shared scopes, the attendance day shows its own, and listAttendanceDays filters by hasViolations.

Impact 

New table working_time_violation and column attendance_day.deducted_break_seconds (migration). Every day is recalculated once on its next change, because its calculation now includes the check. A punch also recalculates the following day, whose rest period starts with it.