Status: Accepted (in force). Reconstructed.

Context

Leave balances change for many reasons (accrual, usage, rollover, manual adjustment) and disputes are common ("why do I only have 3 days?"). Balances must support half-days and be auditable.

Decision

EmployeeLeaveBalance stores a decimal CurrentBalance (+ StartingBalance), and every change writes an EmployeeLeaveBalanceLog row (append-only). The balance is the running total; the log is the history.

Consequences

Good: half-day support; a complete audit trail to resolve disputes and debug accrual/rollover; adjustments are traceable.

Bad / costs: two things to keep in sync (balance + log) — a mutation that skips the log breaks auditability; decimal maths needs care (rounding).

Alternatives

Related

runbook §1, technical §3.