Priya wrote the protocol during the stop-work order, in a conference-room voice, on a single page.

*HERON AUTONOMOUS RELIABILITY TEST* *A run is one complete 15-second autonomous sequence from the start pegs: drive 2.0 m, dock, stop. A run PASSES if the final stop is within ±20 mm of the marker, measured by the referee tape. Anything else FAILS.* *Thirty runs. Operator: someone other than the author of the code. No discarded runs. No retries. If a run is interrupted by an external event, it is recorded as a failure with a note. The pass/fail criterion is fixed before the first run and cannot change.* *Every log is hashed and pushed within five minutes.*

"Why *before?*" said Tomi, reading it over her shoulder. "Why does the criterion have to be fixed before?"

"Because if you pick the criterion afterward," Priya said, "you'll pick the one that makes you look good." She stapled it to the wall. "It's called pre-registration. Scientists do it for exactly this reason. They write down what they're going to measure and what counts as a success, so they can't change the target after they see where the arrow landed."

"Who's the operator?" I asked.

"Mr. Ruiz." She said it with an air of destiny. "He doesn't write code. He's the only person here with no stake."

"I have a considerable stake," said Mr. Ruiz, from the corner. "I just don't have any skill."

The stop-work order expired at 9:14 on Saturday morning. Patel, who'd been told to confirm it, peeled the red tag off Heron's chassis, photographed the serial plates, and checked every number against the new change ticket stapled to the wall. Dex had filled it out, signed it, and had Priya countersign it. The sticky note was pinned on top, like a trophy.

"Compliant," said Patel. He gave Dex a tiny nod. Dex looked as though he'd been awarded a medal.

On Saturday at 3 p.m. in the Pell Creek gym, we ran the first thirty.

The gym had a row of tall west-facing windows near the ceiling, and in the afternoon a long diagonal bar of sunlight lay across one end of the practice field. We hadn't thought about it. We should have. The dock marker, the wall behind it, the whole last meter of the autonomous run, lay in a bright warm trapezoid of Ohio spring.

Mr. Ruiz placed the robot, pressed the button, and measured.

Run one: plus 2. Run two: minus 3. Run three: plus 5.

"Good," said Priya. She had a clipboard and a chewed pen.

Run nine: plus 4. Run twelve: minus 1.

Run thirteen. The robot drove, slowed, and stopped. Mr. Ruiz laid the tape.

"Forty-one millimeters," he said. "Long."

"Failure," said Priya, writing. "Run thirteen, fail, +41."

"Sorry," said Mr. Ruiz, as though it were his fault.

"Don't be. You're doing it right."

Runs fourteen through seventeen passed. Eighteen failed, minus 27. Nineteen passed. Twenty-two failed, plus 33.

By run twenty-seven we were at 26 of 27 passes. Then, for the last three, with the sun now higher in the window frame, run twenty-eight failed by 52.

"Twenty-six out of thirty," Priya said at the end. "Eighty-six point seven percent. Four failures."

"That's not good enough," said Dex.

"It's not good enough," I agreed. "It's something even better. It's *information.* Priya?"

She'd already pulled the failed logs. She put all four on screen, side by side, with the front time-of-flight reading in red.

"The failures aren't random," she said slowly. "Look at the timestamps. Run thirteen at 3:41. Eighteen at 4:02. Twenty-two at 4:17. Twenty-eight at 4:33." She looked up at the windows. "The sun was on the dock wall."

"And the front sensor?"

"In every failure, the reading at the end of the run is garbage. Run thirteen, it reports a distance 45 millimeters too long for about a quarter second. Run twenty-eight, the sensor reports 8,190 millimeters. That's the sensor's way of saying *out of range.*"

"Which the firmware accepted as real," I said.

"It didn't check."

I put my hands on my face and thought about the datasheet. "The time-of-flight sensor sends out a pulse of 940-nanometer infrared light and measures how long the pulse takes to come back. But sunlight contains a lot of infrared. In bright sun, the sensor's detector is flooded with ambient light, and the faint returning pulse is buried in noise. The sensor knows it. It returns a status code with every reading: *signal fail, phase fail, wraparound.* And a *signal rate*, a number saying how strong the return was."

"We weren't reading the status," said Priya.

"No. We trusted the distance. I wrote the driver in an afternoon from an example, and the example ignored the status byte." I looked at the four red lines on the plot. "It's the same mistake as every other. I was so sure it worked in the shop that I forgot the shop isn't the only room."

"The Nationals arena had no windows," Dex said, thoughtfully. "The State Tech field house..."

"Might have a skylight." I grabbed my phone and typed a quick question to a number I had saved under *Calderón (office).* Her reply came in two minutes: *Roof is a barrel vault with a clerestory. South-facing glass. You'd have sun on the field from 2 to 4.*

"The rematch starts at three," said Priya. "On a field with a skylight."

"Then it's the best failure we could have had."

That night, the fix. I wrote it in the notebook as three layers, because one layer is never enough.

*Layer 1: Read the status byte. Reject any reading flagged invalid, and any whose signal rate is below a threshold.* *Layer 2: Median of five readings. A single bad sample can't move a median.* *Layer 3: Gating against odometry. The encoders predict where the robot should be; reject any distance reading that differs from the prediction by more than 30 mm. If the sensor and the wheels disagree, trust the wheels and let the sensor try again.*

"The three layers fail in different ways," I told Tomi. "The status byte catches bad readings the sensor knows about. The median catches isolated spikes. The odometry check catches *plausible but wrong* readings, the ones that pass the first two."

Dex, who'd been listening while adding an entry to the change ticket, said, "That's like a smoke detector, a sprinkler, and a door."

"That's *exactly* like it."

We reran on Sunday at 3:30, with the bar of sunlight in the same place, and I felt my stomach go cold when Mr. Ruiz laid the tape on run one. Plus 3. Run two: minus 4. By run thirty, Priya turned the clipboard.

"Thirty out of thirty."

"Zero failures," I said.

"Zero failures in thirty runs." She held up a hand. "Does that mean the failure rate is zero?"

"No."

"What does it mean?"

I thought. It was one of those things I knew from a statistics unit I hadn't paid attention to, and from Calderón's board, and from a drawer in my memory. "It means we didn't observe a failure. It doesn't say there's none. If the true failure rate were ten percent, the chance of seeing thirty straight passes would be about 4 percent. Point nine to the thirtieth power is 0.042."

"Under five," said Priya. "So we can say, with ninety-five percent confidence, the failure rate is below about ten percent."

"There's a shortcut," I said. "It's called the *rule of three.* If you see zero failures in n trials, the upper limit of the failure rate at ninety-five percent confidence is about three over n. Three over thirty is ten percent."

"It's *unsatisfying.*"

"It's honest. Thirty runs can't prove a robot is reliable. It can only rule out *very unreliable.* If we want to say 'under three percent,' we need about a hundred runs."

"We don't have time for a hundred."

"We have Sunday through Wednesday," said Mr. Ruiz, quietly. "Ninety is enough for three and a third percent."

So we ran sixty more. Sunday evening, Monday morning, Tuesday after school, Tuesday night under the gym lights and in the afternoon sun. Different batteries, charged and half-charged, one deliberately warm and one cold from the van. Different operators. Mr. Ruiz, Dr. Oyelaran, who came in her blazer to hold the tape and looked as though she'd been waiting her entire career to do so, and my mother, who measured run seventy-one with an exactness that made Priya cry.

Ninety of ninety.

"Zero failures in ninety runs," Priya wrote on the board. "Three over ninety is 3.3 percent. We can say with ninety-five percent confidence that the true failure rate is under three point three percent, in these conditions, with this robot. And I want to put *in these conditions* in bold."

"Print it," I said.

She printed it. We stuck it on the wall, next to the pre-registered protocol and the four red failures from Saturday, which she insisted on leaving up. *Keep the failures,* she said. *They're how you know the successes mean something.*

Wednesday, Day 36, Patel arrived for the third scheduled inspection. He checked the serials against the log, photographed every ticket, glanced at the 90/90 sheet, and wrote on his tablet for a long time.

"Anything?" I asked.

"No non-conformances," he said. "I'd tell you more but I'm not allowed." He glanced at the windows and lowered his voice. "Chief Inspector says to say: *the record and the machine agree.*"

I laughed, a short startled bark, and Dex punched the air with a restraint I'd never seen on him.

That night Heron sat in its crate on the shop floor, tagged, packed, and ready for the morning van. The team had gone home. Priya, always last, had left the log open on the screen.

I looked at it for a while. Ninety runs. I scrolled through the dock stops, and I noticed something that hadn't bothered me before.

At the very end of the dock, the heading wobbled. It was tiny: eight tenths of a degree, a little ring-down in the last half second, before it settled. It didn't affect the stop. It was well within tolerance. But it was there, in every run, like a pulse you can feel with your thumb.

I knew exactly what caused it. The derivative filter was set a bit too loose. If I tightened the filter constant, from 0.08 to 0.05, it would ring less.

I looked at the clock. 11:12 p.m. The van left at 6.

I opened the firmware file.