There is a command in Git called `bisect`, and it is the closest thing in software to a flashlight in a dark house.

"You tell it two facts," Priya said, typing in the pit with Heron on the cart beside her. "One commit where it worked. One where it's broken. Git picks the one in the middle and checks it out. You test it. You tell Git, *good* or *bad.* It cuts the remaining range in half and picks the middle again."

"Binary search," said Dex, nodding. "Like guessing a number from one to a hundred."

"Exactly. Seven guesses is enough for a hundred. For five commits it's three tests at most. For a thousand commits, ten." She turned the laptop. "And it works because we have a *known good,* the ninety-run tag, and a *known bad,* the head commit that lost Round One."

"Do we really know the tag is good?"

"Ninety out of ninety. I hashed it."

I stood behind her with my hands in my pockets, trying not to talk. It was harder than any controller I'd ever tuned.

"Here's the list," said Priya.

*C0 (tag, 90/90 pass)* *C1 — P.R.: logger buffer size* *C2 — N.H.: derivative filter 0.08 → 0.05* *C3 — N.H.: teleop deadband* *C4 — P.R.: ToF thresholds for field house* *C5 — N.H.: cleanup*

"The bad one is C5, the head," she said. "The bisect starts in the middle. C3."

"And what's a 'test?'" Dex asked.

"Pre-registered," said Priya, with a faint smile. She wrote it on a napkin. "Ten docks, run by Mr. Ruiz. Pass if at least nine stop within ±20 millimeters *and* the heading ring-down at the dock is under one degree. Fixed before we start. No retries."

"Why include the ring-down?" I said.

"Because that's the symptom we saw. Round One wasn't a stop-position failure alone. The heading hunted. I want the test to see what failed."

It was 3:50 p.m., Day 38. Round Two began at 5:30. We had practice-field access until five.

Priya checked out C3. The laptop compiled it and flashed the controller in ninety seconds. Mr. Ruiz placed the robot on the pegs.

Ten docks. Ten times the little robot ran its two meters, slowed, and stopped. Boyd's tape, borrowed for the afternoon, came out of Mr. Ruiz's pocket. He read the numbers out in his quiet voice. Plus 4, minus 1, plus 3, plus 6, minus 2. Nine of ten, then ten of ten. Ring-down: 0.4 degrees.

"C3 is good," said Priya. She typed `git bisect good`. "So the bug is after C3. It's in C4 or C5."

"Wait," I said, and the words came out of me before I could tape them. "C3 includes my filter change. C2. It passed. With C2, the ring-down is *better.* So it wasn't the filter."

"Not at C3," Priya said carefully. "At C3 it passed. We don't yet know about C4."

"But if the bug were C2, C3 would have failed."

"Yes."

"Which means I was wrong."

"Which means you were wrong," she agreed, "about *one hypothesis.* We have two commits left. C4 is mine. I changed the sensor thresholds. It's entirely possible *I* broke it."

"Not you."

"Say it again with less certainty."

I closed my mouth. We checked out C4.

Ten more docks. The robot ran. It stopped. Mr. Ruiz called numbers: plus 2, minus 3, plus 4, minus 2, plus 1. Ten of ten. Ring-down 0.4 degrees.

"C4 is good," said Priya, typing. A pause. Then the terminal printed something I had not expected to see on that day, in that building, under that vaulted ceiling.

*5d07a1e is the first bad commit.*

*commit 5d07a1e* *Author: N. Havel* *Date: Thu 12:44 AM* *cleanup*

We all looked at it.

"C5," said Dex. "The cleanup."

"The one that was just comments."

"I reordered some lines," I said.

Priya opened the diff. Red and green lines, a block of code. She read it aloud in a flat, careful voice.

*- error = target - heading;* *- derivative = (error - last_error) / dt;* *- last_error = error;* *+ derivative = (error - last_error) / dt;* *+ error = target - heading;* *+ last_error = error;*

"You moved the line that computes the new error *after* the line that uses it for the derivative," she said. "So the derivative is computed with the *previous* error. It's one sample stale."

"A one-sample delay," I said. My throat had gone dry. "In the derivative term. The damping is based on information five milliseconds old."

"Five milliseconds is nothing, normally."

"Normally. But the D term is the one that's supposed to be *ahead* of the system. A delay in the damper is a delay in the brake. With the filter at 0.08, the margin was big enough to hide it. With a tighter filter, and a loop that was already hunting at the field house..."

"It got worse." Priya shook her head slowly. "And it didn't show up in the three runs on the practice field because the practice floor has more friction. It only hunted on the League floor, the polished concrete. Lower friction, less natural damping."

I sat down on the cart's edge. I felt like a person who has been told that the monster they'd been fighting was their own shadow.

"I was *sure* it was the filter."

"You were sure."

"If I'd just reverted the filter," I said, "I'd have lost the ring-down improvement. And the bug would have stayed. We'd have lost Round Two."

"Probably."

"It's a lesson," said Dex, a little shyly. "Isn't it? About being sure."

"It's several," I said. "The main one's this: a guess about *why* something broke is only a hypothesis. Bisecting doesn't ask me what I think. It asks the code."

I did the fix myself, but as a ticket. I wrote **TKT-014: revert C5** on the whiteboard, with the reason, the commit hash, and the evidence. Priya countersigned. We did a `git revert` on the cleanup, restoring the original order of lines, and kept C2, the filter change, which the test had cleared.

"Now," said Priya, "the regression." She said it like a prayer. "Not thirty runs. We don't have time. But ten, then ten more."

We ran twenty docks on the practice field: twenty of twenty. Ring-down 0.4 degrees, half of what it had been in the ninety-run baseline. The filter change, which I'd wanted to blame, had been exactly right all along.

"That's it," said Priya, at 4:58. She typed in the log: *20/20. Reverted C5. Filter change retained. Residual risk: only 20 runs on the revised build, vs. 90 on baseline. Logged.*

"Put that in the record," I said. "The risk. I'm not hiding it."

Round Two, at 5:30, was a different match from Round One before the first siren. Everyone in the pit felt it, though nobody said anything. I think we had stopped trying to win and begun trying to *know.*

Autonomous. The robot left the pegs, drove the two meters, slowed, and stopped, a clean motion that didn't look like anything in particular. The referee knelt with the tape.

"Four millimeters," Boyd called, from the field. She smiled when she said it.

Ten points.

Across the field, Kestrel docked at eleven millimeters. Ten for them too.

Teleop. The crowd was louder this time. I could feel it in the folding chairs. Heron loaded in 1.8 seconds, drove to the ramp, climbed, scored. Twelve seconds in, I realized I was watching the robot without a thought, the way you watch a person you trust cross a street.

Kestrel was beautiful. It cycled with a rhythm I'd have admired in any other circumstance, thirteen per match in the final. But in the second minute, Bennett overshot a dispenser alignment by a few centimeters and had to reset. It cost him a cycle and a half.

At 1:58, the lights on Kestrel's chassis flickered, just for an instant, a half-second blip so small that the crowd didn't notice. Tomi, beside me, grabbed my arm.

"I saw it," he whispered.

"I saw it."

"It flickered."

I watched Kestrel's ramp climb. The robot slowed fractionally at the lip, and kept going. No reboot. The lights came back on at once. It scored.

At 2:15, Heron's derating tripped for the first time, a fifth of a second slower on a climb, and the battery held. I felt something in my chest go quiet, a small satisfied click. A decision I'd made, three weeks before in a gym, had just paid for itself.

The siren.

**PELL CREEK HIGH SCHOOL 199. HALVORSEN ACADEMY 190.**

I didn't hear the crowd. I heard Dex, a wordless whoop, and Priya's voice, saying "one-one, one-one, it's one-one" like a mantra. I felt Mr. Ruiz's hand on the back of my neck.

Heron's score: dock 10, twelve ramp cycles for 180, one low-bin ingot 5, platform park 4. Kestrel: dock 10, twelve cycles. Nine points.

"One to one," I said, to nobody. "One more."

In the stands, I could see my mother standing with both fists up. Lena on the bleacher, screaming. Mr. Kessler, to my astonishment, with his hands over his mouth.

Marsh, in her lavender suit, had not moved. But her phone was no longer in her hand.

Bennett Cray came across the field while the crowd was still loud. He walked right up to our pit with his navy jacket unzipped and a small gray object in his hand, and stopped in front of me.

"Great match," he said. He had to say it twice to be heard.

"You too."

"I need to show you something." He glanced over his shoulder, once, at his coach. "Not here. After the round. Please don't tell Coach Brandt."

He pressed the object into my palm, and I closed my fingers around it. It was a USB drive, still warm from his pocket.