These capture the notable architecture decisions in Payroll — the "why it's built this way" that isn't obvious from the code and that newcomers keep re-litigating. Each record states the context, the decision, its consequences, and the alternatives that were (implicitly or explicitly) rejected.
These are reconstructed from the current implementation (2026-07-17), not from original design meetings — they document the de facto decisions the code embodies. Where intent is inferred, it's marked
⚠️ VERIFY. New forward-looking RFDs should follow the same template.
| # | Decision | Status |
|---|---|---|
| 001 | Compute payroll in T-SQL stored procedures, not C# | Accepted (in force) |
| 002 | Two-phase Prepare→Submit via Temp/preview tables | Accepted (in force) |
| 003 | "Clone columns" for last-previewed display values | Accepted (in force) |
| 004 | Per-company PayrollMonitor lock + single-transaction runs |
Accepted (in force) |
Template for new RFDs: Context → Decision → Consequences (good & bad) → Alternatives considered → Status.
RFD-001: compute Payroll in t-SQL, not c#
RFD-002: two-phase prepare→submit via temp/preview tables
RFD-003: "clone columns" for last-previewed display values
RFD-004: per-company PayrollMonitor lock + single-transaction runs