Audit Log
Middleware sitting in front of every save that records which fields changed, what they changed from and to, and who changed them.
The problem
Operations managers wanted to know who had changed a rate or a stop. When a bad rate cost money, there was no way to find out which agent was responsible, or whether a system had made the change at all.
What was built
A lightweight middleware layered into the save path that records field-level changes per entity type.
What I'd do differently
It was originally opt-out, until one forgotten table multiplied our storage footprint by ten. We switched to opt-in, and that is where I would start next time. I would also design auditing into the entities up front instead of hand-writing storage, lookup, and display logic separately for each one - and compress the logs, which today sit as raw uncompressed JSON.