## 🔧 Field Note 05: The Challenge of Backdating Leavers ### Backdating leavers with a single timeline causes system amnesia **By Lund Consulting | Der Maschinenraum** In Season 2, we transition from the high-level concepts of bitemporality into a practical, technical case study. This season makes the theoretical foundations we explored in Season 1 [[FN 02 - The Two Clocks]] concrete by implementing the Compensation Engine—the processing unit that reads our bitemporal HR data, applies business logic, and generates the definitive ledger of what people are owed. When building a calculation engine, the hardest challenge isn’t the math. Computing a pro-rated salary or a 5% commission tier is straightforward. The real complexity arises when human data entry hits financial reporting deadlines. Specifically, when changes apply retroactively to a past period. ## 1. The Scenario: The Backdated "Good Leaver" Imagine an executive named Marcus exits the company on March 31st. HR records his departure in the system with an Effective Date of March 31st. This is the timeline coordinate where the real-world change occurs—what we called the Event Date in Season 1. Based on the initial paperwork, he is classified as a "Normal Leaver". When the Compensation Engine runs its end-of-March payroll calculation cycle, it reads that status and executes the standard rules: - **Unvested Equity:** His unvested equity is immediately canceled. - **Annual Bonus:** His annual performance bonus is forfeited. The final calculation yields a payout of $0, and the financial books for March are officially closed. Two months later, in May, Marcus’s lawyers reach a settlement. The agreement states he must be re-classified as a "Good Leaver," backdated to his original departure on March 31st. As a "Good Leaver," his equity should have vested and his bonus should have been pro-rated. The engine now needs to calculate a payout for a payroll period that closed two months ago. --- ## 2. The Single-Timeline Approach In a standard data architecture with a single timeline, updating a record overwrites the past. When HR changes Marcus to a "Good Leaver" in May, the old "Normal Leaver" entry disappears. *Before Change* | Employee | Attribute | Value | Effective Date | |---|---|---|---| | Marcus | Leaver_Status | Normal Leaver | 2026-03-31 | *After Change* | Employee | Attribute | Value | Effective Date | |---|---|---|---| | Marcus | Leaver_Status | Good Leaver | 2026-03-31 | To compute the retroactive adjustment, a single-timeline system relies on a standard routine: - **Context Switching:** The engine is pointed back at the closed March payroll period. - **Environment Isolation:** The engine pulls historical variables tied specifically to that past window—like the March stock valuation or Q1 tax thresholds. This ensures it doesn't accidentally apply May's environment variables to an older period. - **The Reconciliation:** The engine evaluates the calculation using those historical inputs ($50,000), checks the historical payout records to find what was actually issued ($0), and calculates the difference. While this method calculates the correct dollar delta to pay out in May, it highlights the structural limitation we explored in Season 1: the system has amnesia. Because the single timeline overwrote the original data inputs, the engine loses the context of why it originally calculated $0 in March. It can show the financial team what was paid, but it cannot reconstruct the exact state of knowledge that justified the original March calculation. --- ## 3. The Transition: Saving the CFO As mentioned in Season 1 [[FN 04 - The Payoff (Saving the CFO)]], to give the CFO and corporate auditors absolute visibility, we want to switch to a native bitemporal design. We want the power to not just pay the delta, but cleanly trace the evolution of the data that caused it. We don't need a heavy, custom retroactive module to manage this. By utilizing the bitemporal foundation we laid in Season 1, we can let the data schema handle the timeline context automatically. In our next Field Note, we will show you exactly how to do it. We will map out the specific database tables, look at the parameterized queries, and demonstrate how a simple relational delta loop automates backdated calculations without changing a single line of your core business logic.