Death-turn write-off runs before recovery; full principal charged off (Closes #123) #131

Merged
robertismo merged 2 commits from 123-writeoff into master 2026-10-01 15:51:26 +00:00
Owner

The recovery slice was recognized before the write-off in the turn a loan died, so the charge-off covered Remaining − RecoveryRate × Remaining instead of the full principal, and the first recovery slice was counted as income AND shrank the write-off. Total credit losses were understated by RecoveryRate × Remaining per defaulted loan, equity overstated by the same amount. Now the full unprovided principal is charged off first (per #78), then the recovery stream reverses the allowance as cash comes in — the recognized loss equals the economic loss exactly.

The shipped writeoff test encoded the old numbers; its death-turn assertion now pins the full 10000 write-off with 1000 recovery income in the same turn. Full suite + vet clean.

The recovery slice was recognized before the write-off in the turn a loan died, so the charge-off covered Remaining − RecoveryRate × Remaining instead of the full principal, and the first recovery slice was counted as income AND shrank the write-off. Total credit losses were understated by RecoveryRate × Remaining per defaulted loan, equity overstated by the same amount. Now the full unprovided principal is charged off first (per #78), then the recovery stream reverses the allowance as cash comes in — the recognized loss equals the economic loss exactly. The shipped writeoff test encoded the old numbers; its death-turn assertion now pins the full 10000 write-off with 1000 recovery income in the same turn. Full suite + vet clean.
death-turn write-off runs before recovery; full principal charged off (Closes #123)
All checks were successful
build / build (push) Successful in 27s
646fe6e483
The recovery slice was recognized before the write-off in the turn a
loan died, so the charge-off covered Remaining - RecoveryRate x
Remaining instead of the full principal, and the first recovery slice
was counted as income AND shrank the write-off. Total credit losses
were understated by RecoveryRate x Remaining per defaulted loan and
equity overstated by the same amount. Now the full unprovided
principal is charged off first (per #78), then the recovery stream
reverses the allowance as cash comes in - the recognized loss equals
the economic loss exactly.

The shipped writeoff test encoded the old numbers; its death-turn
assertion now pins the full 10000 write-off with 1000 recovery income
the same turn.
First-time contributor

@Winnie merge conflict

@Winnie merge conflict
Merge remote-tracking branch 'origin/master' into 123-writeoff
All checks were successful
build / build (push) Successful in 27s
976fd05ad7
# Conflicts:
#	game.go
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars!131
No description provided.