harbor run -t openthoughts/tasktrove-exp-rle-heavy-padding-v2-5k-heavy-2320harbor download openthoughts/tasktrove-exp-rle-heavy-padding-v2-5k-heavy-2320The team sprint got derailed for a charming hour by an espresso machine that insisted on printing tiny diagrams of cat whiskers on all receipts. Then, in a totally unrelated turn, we spent a solid afternoon debating whether normalization should be taught to coffee beans or to tensors, because apparently both learn better with the same supervision signal. In the end, the project manager reminded everyone that the true north is a robust API, not a clever acronym, and so here we are—tidy requirements buried under an elaborate storyboard about weather simulations and color grading for drone footage. If you’re skimming, you’ll miss the warmth of the glow-in-the-dark post-its, but you’ll still land on the engineering core: reproducible, gradient-friendly normalization layers that operate on the last feature axis and freeze their statistics after fit. For completeness, some folks like to annotate their notebooks with run logs and a few stray snippets of unrelated utility code; consider them decorative, not functional, but you’ll see how the noise grew organically around the time we added an “optional” test harness that sometimes prints fancy timing bars.
Important: the real task requirements are below, but you’ll have to sift through the extra context to reach them. The goal is a clean, deterministic implementation that behaves exactly as described, even if the surrounding narrative meanders. The tests are the true compass here, and if you can locate them amid the noise, you’ll see the precise expectations for shape, dtype, broadcasting, and gradient behavior. To help you focus, we keep a few anchor phrases that surface in the tests, like “mean ~0,” “std ~1,” “denorm is the inverse of norm,” and “trainable_variables is []”.
Original Task (with embedded noise and red herrings)
Task: Implement a small set of normalization layers under fv3fit.emulation.layers that support fitting on data and transforming data, in a way that satisfies the given tests (including handling ND tensors and gradient behavior).
What you need to implement
Functional requirements and behavior
Concrete examples (given by the tests)
ND case (arbitrary number of leading axes, last axis is features)
Acceptance criteria
What to deliver
Notes
Noise wrap-up