Files
timmy-tower/artifacts/api-server
Replit Agent b0ac398cf2 fix(#26): apply decay before score mutations in recordSuccess/recordFailure
Previously recordSuccess/recordFailure read identity.trustScore (raw stored value)
and incremented/decremented from there. Long-absent identities could instantly
recover their pre-absence tier on the first interaction, defeating decay.

Fix: both methods now call applyDecay(identity) first to get the true current
baseline, then apply the score delta from there before persisting.
2026-03-19 16:11:36 +00:00
..