| 1 | Classify leave type | AI Agent | Agent identifies from request or free text: annual leave, special leave, educational leave, flexitime, child sick day? Assigns correct legal basis |
| 2 | Calculate entitlement (hierarchy) | Rule engine | Statutory leave law + collective agreement + company governance framework + employment contract = total entitlement. Apply most-favourable principle |
| 3 | Determine remaining entitlement | Rule engine | Entitlement - taken - planned = available. On part-time change: prorated recalculation per case law |
| 4 | Check team conflict and minimum staffing | AI Agent | Agent checks team calendar, company shutdowns, minimum staffing. Detects overlaps and calculates available capacity |
| 5 | Generate approval recommendation | AI Agent + Rule engine | All rules met: "Approval recommended" to line manager. Forwarded with context and recommendation |
| 6 | Escalate leave conflict | Human | Two employees, same week, minimum staffing breached. Social considerations (school-age children, single parents) require human judgement - employee representation law demands it |
| 7 | Calculate sick pay continuation deadline | Rule engine | Statutory sick pay period per case. On recurrence: waiting period and prior-employment rules apply |
| 8 | Check return-to-work threshold | Rule engine | 42+ sick days in 12 months (rolling). Automatic trigger to HR and employee representatives. Health data separated |
| 9 | Process digital sick note and write back | Rule engine | Digital sick note from insurer: book absence, notify payroll and shift planning, update calendar |
| 10 | Generate audit entry | Rule engine | Decision, rule basis, decision maker, timestamp, input hash - append-only, SHA-256 signed |