The black feed trough sitting under the auger downspout against the barn wall, framed exactly as the Paddock Back camera sees it — ideally with a cow leaning into the rim, mid-shove. Bonus version: the same frame with a faint overlay box and an x/y percentage readout on the trough, showing what the vision model actually reports. Real farm, real steel, not a render. Second option now that the sequel is in: the same trough shot twice from the camera's position, once lengthwise and once turned end-on, side by side — that pair is the whole article in one image, because the trough hasn't moved but its centre has.

Few weeks ago I wrote that the feed bin wasn't a feed decision, it was an API decision. Put grain in a bin with an auger under it and "feed the cows" stops being a chore and becomes a function call.

Here's what I've learned since: the physical world does not validate its own inputs.

The auger drops feed through a downspout into a black trough. The relay doesn't know whether the trough is under the downspout — it knows how to close a circuit for fifteen seconds. Let a few hundred pounds of cow lean on that rim overnight and walk the trough a foot to the left, and the auger fires exactly on schedule and pours a bucket of grain over a cow and onto the dirt. Every layer reports success. The switch turned on. The timer expired. The API returned 200.

In a rack that's a container restarting. Here it's cows eating dirt.

SO THE TROUGH GOT A WATCHER

Farm Watch already pulls a snapshot off the paddock camera every 300 seconds and hands it to qwen2.5vl:7b — a 7B vision model — on a used RTX 3060. That camera looks straight down the feed strip. I added four fields to the JSON it returns: is the trough visible, where is it as x/y percentages of the frame, and is there feed on the ground.

Home position isn't configured. It calibrates: median of five clear-view frames with zero cows in them. If the trough then sits more than 8% from home across three consecutive clear frames, it alerts.

WHY 8% IS SLOPPY ON PURPOSE

A 7B vision model doesn't measure, it estimates — in round numbers. Values come back as 50.0 and 40.0, then 52.5 and 47.5. Everything lands on 2.5% increments. That's the real resolution of the instrument: about ±2.5%, and it does not improve because I would like it to.

So: 8% tolerance, three-sample debounce, and a note in my own docs telling me not to tighten it below ~6%. Precision I demand past what the sensor has, I get back as false alarms — and false alarms train me to ignore the alert, which is worse than no alert.

Cows also stand directly in front of the trough. Occluded frames don't advance the streak and don't reset it. They just don't count. The watch is allowed to say it doesn't know.

It proved itself undramatically. On July 27 I walked out and shoved the trough back myself. Checking afterward: home was (50.0, 40.0), last clear observation (52.5, 47.5) — displacement 7.9 against a tolerance of 8.0. One tenth of a percent from firing. The drift was real and the watch had already seen it; I'd just happened to fix it first.

THE BUG THAT ONLY EXISTS ON A FARM

Detecting the move is worthless if the fix depends on me remembering. The fix is a kid walking out and pushing the trough back before the next feeding. So it announces on every Echo at 11:30, 1:30 and 4:00 until somebody deals with it.

I pointed that at the displaced-frame counter and immediately found the bug. The counter is momentary and only advances on clear frames — so the 11:30 question wasn't "is the trough out of place?" It was "is the trough out of place AND is no cow standing in front of it at this exact second?" Same broken world, different answer, three times a day.

The fix is a latch. A sticky "moved" flag flips true when the streak completes and stays true through cows, occlusion and restarts. It clears one way: a clear-view frame sees the trough back inside tolerance. It's deliberately independent of the six-hour Discord cooldown, because the cooldown throttles messages and the latch describes reality. Conflating those is how you end up believing a quiet system is a healthy one.

Which is the other rule: when the trough comes home it posts an explicit "back in place." And if the nag job can't reach Farm Watch, it posts a warning rather than quietly doing nothing. A dead watcher must never be able to impersonate everything's fine. That lesson costs exactly the same in a barn as in a cluster.

None of this replaced a person. The trough still gets moved back by a kid with hands, when needed. What changed is the kid gets dispatched with a reason and a deadline instead of somebody noticing feed on the ground two days later. The automation didn't remove the labor — it found it, named it, and put a clock on it.

THE PART THAT ACTUALLY STOPS THE AUGER

Monitoring tells me the trough moved. It doesn't stop the feeding. Say "Alexa, feed the cows" with the trough three feet off its mark and the grain goes on the ground exactly as before — the announcement I ignored at 11:30 was the only thing in the way.

So the interlock is built: a small service that asks Farm Watch whether the trough is home before the auger is energized, and refuses out loud if it isn't. Not a warning — a refusal, with a reason, out of the kitchen speaker. If Farm Watch is unreachable it feeds anyway and says so, because hungry cattle beat fifteen seconds of wasted feed and a human is standing right there.

It is not finished. It runs with the auger disarmed, and the Echo hasn't discovered it yet, so today it makes the right decision without being in the path of the words. That last mile is the work.

THE UPDATE I DIDN'T WANT TO WRITE

Everything above was true when I wrote it. One part of it was wrong in a way that took three weeks to surface.

On August 25 the watch latched "moved," and stayed latched for six days. Nobody touched the trough in that time. It was sitting under the downspout the whole while and the cows were eating out of it — I have the frames.

What I'd missed is that a trough is not a point. It's a long steel box, and it can sit lengthwise to the camera or endwise. Turn it ninety degrees and its centre shifts several percent across the frame while the trough itself hasn't gone anywhere. I was comparing centre against centre. The watcher had no way to tell "someone spun it" from "it drifted out from under the spout," and it confidently reported the wrong one.

I wrote up there that the model's resolution was about ±2.5% and wouldn't improve because I wanted it to. That was generous. I went back and pulled every reading from a forty-eight hour stretch on a trough nobody had touched: the vertical estimate came back as six different values spanning about a fifth of the frame height. My 8% tolerance was built for jitter a fraction of that size. The trough hadn't moved a foot in a week — the measurement had wandered all over the barn wall.

And the nagging wasn't the damage. Further up the same decision path, "the trough is out of place" gets checked before "call the cows in," and when it fires it stops there. So for six days the system never made the feed call at all. Three times a day it asked somebody to go move a trough that was already right, and not once did it do the job it exists for.

Nothing errored. The container was healthy, the camera was up, the model answered in five seconds, every scheduled job reported success. I'd been calling the cows in myself, out loud, in the evenings — and I hadn't noticed I'd quietly started doing the automation's job for it.

The fix wasn't a tighter tolerance. It was a better question. Ask a vision model "is the trough under the auger tube, so feed would land in it?" and you're asking about a spatial relationship, which is the sort of thing it reads well. Ask it "where is the centre of that object, to the nearest percent?" and you're asking for a measurement it cannot make. I'd been asking the second question and treating the answer as though it were the first. A rotated trough that's still under the spout now answers yes, because it is.

The other change is a rule I expect to reuse: a reading that's been stuck for a day is a broken sensor, not a fresh instruction. It might still be right, so the system keeps saying it — it just doesn't get to block anything any more. After twenty-four hours the feed call goes out regardless, with the unresolved trough noted next to it.

Last time the rule was: software must never be the only thing between a full bin and a buried trough. Then: validate the physical preconditions before you actuate. Here's the third, and it's the one that cost me a week — a guard is a dependency. Anything with the authority to stop the job needs an expiry, a way to be wrong out loud, and someone checking that the thing it measures is the thing it actually cares about. Mine had none of the three. And the failure it produced never once looked like a failure: every dashboard stayed green, and the only symptom was a man walking out at dusk to say "Alexa, feed the cows," and never asking himself why he had to.

— To read more click here: https://dizydiz.com/blog/the-auger-doesnt-know-the-trough-moved.html