Note · budding
A planted finding that showed up on four days out of seven
- Stage
- budding
- Links
- 1 out, 1 in
The demo of Inbound Outbound opens with generated history: 42 days of jobs with four effects planted in them. One driver unloads slowly, one driver pair is slower together, one dock is a hotspot and the ambient dock times drift upward. The nightly timing job has to find all four. It fits a model with crossed random effects, down-weights outlying jobs with a Huber loss, and applies Benjamini-Hochberg across the findings at a false discovery level of 0.10.
The failure
The slow driver’s finding was missing when the demo was opened on a Saturday, a Monday or a Tuesday. It sat close to the detection threshold, so the weekday decided whether it appeared.
The attempt that failed
My first change raised the driver’s weight, changed the effect sizes and cut the job count. The model’s baseline is the rest of the site, so a driver with a large share of the jobs pulls the baseline toward their own times. With the driver at weight 9, the estimated effect fell to 0.29 and 7 tests broke. I reverted it.
The fix
One number changed: days in DEMO_SIM_SPEC went from 42 to 56, about 560 jobs and 40 working days. More history gives every effect more rows without moving the baseline. I ran the nightly job on 21 consecutive simulated days, and all four findings appeared on every one.
Three things followed:
- The null-effect test, which checks the false finding rate on data with nothing planted, is pinned to 42 days so its bounds are unchanged.
- Two tests asserted no site-level drift. With ambient at 45 percent of the jobs the model now sees a smaller rise across the whole site, so they allow it.
- Each demo signup writes about a third more rows. The cap of 60 demos an hour and the hourly purge are unchanged.
A fixed seed gives the same data every run. The demo history depends on the day it is generated, so the tests had to sweep days as well as seeds.
Projects
- Inbound OutboundA multi-tenant SaaS for booking vehicles into a warehouse and calling them to a dock, built on Cloudflare in three days as a test of building real full-stack cloud applications.
Projects
- Inbound OutboundA multi-tenant SaaS for booking vehicles into a warehouse and calling them to a dock, built on Cloudflare in three days as a test of building real full-stack cloud applications.