A robot that counts motion it isn't making is lying, and a robot that lies a little is much worse than one that lies a lot. You can't see it. You can only see the consequences, three weeks later, at a dock marker.

"Run it again," I said. "Wheels locked. Log everything."

Priya held the left wheel still with one hand and pressed the key with the other. For sixty seconds the shop room was quiet except for the low hum of the controller's fan. Then she read the count.

"Twenty-nine ghost ticks in sixty seconds. Left encoder only. The right is clean."

"Is the left encoder different?"

"New motor. Different encoder board. Everything else is the same."

"Then it's the motor," said Dex, already reaching for it. "Bad batch. Send it back."

"Wait." I put a hand on his wrist, harder than I meant to. "We burned a motor last week because I decided I knew the answer. Let's not do that again. What are our hypotheses?"

Priya was already on the whiteboard. She wrote them in a column, the way she writes everything, like a case file.

*H1: Defective encoder (new motor).* *H2: Electrical noise coupled into encoder wires from motor power.* *H3: Loose connector or cold solder joint.* *H4: Software: interrupt handling error.*

"For each one," I said, "what would we expect to see if it's true, and what test tells them apart?"

"H1 would show up even with the motor power off," Priya said. "The encoder has its own supply. If the ghosts persist with the drivers disabled, it's the encoder."

"H3 would depend on touching or wiggling the wire," said Dex.

"H4 would be there in the code even with a signal generator replacing the encoder," I said. "I could feed it a clean square wave and see if the count is exact."

"And H2," said Priya, "should correlate with motor activity. It should happen when the PWM is running. Not when it isn't."

"Right. So the first test is the cheapest. Disable the motor drivers. Leave everything else powered. Same sixty seconds."

She did. The log came back.

"Zero ghost ticks," said Priya. "Zero. In sixty seconds."

"So not H1," said Dex, a little deflated.

"And now the drivers on, but commanding zero output."

"That's PWM at zero duty," said Priya. "The signal's flat. Zero ghosts."

"And now PWM at a small duty cycle. Five percent. Not enough to move the wheel."

Priya set it. The robot sat. The motor, held by gearbox friction, drew a trickle of current.

"Twenty-seven ticks in sixty seconds."

We all looked at the plot. It was an ugly thing: a line that ought to have been flat and instead crawled, in tiny sudden steps, like a heartbeat on a bad monitor.

"H2," said Priya. "Noise. It only happens when the power stage is switching."

I'd like to say I'd predicted it. I hadn't. I'd have said H1 or H3, if I had been betting. I had to remind myself that a wrong guess costs nothing when you test it.

"Okay. Why? What's happening physically?"

Dex, to my surprise, answered. He sat on the bench, turning a pair of wire strippers in his hands. "The driver switches the motor voltage on and off, very fast. Twenty kilohertz. Each edge is a sudden change in current, and a changing current through a wire makes a magnetic field that changes, which induces a voltage in any wire nearby. Like a transformer. Motor wires and encoder wires, side by side in the same sleeve for thirty centimeters..."

"That's how I wired it," I said.

"It's how *I* wired it. Wire six goes right along the motor lead." Dex's face had gone red. "Tern had separate loom. I did this one fast, because we had no time. I put them all in one sleeve to make it neat."

"Neat is the enemy," Priya said, almost gently.

"There's also capacitive coupling," I said, thinking. "Two wires near each other form a tiny capacitor. A fast edge on one pushes a little charge across to the other. The encoder lines are high impedance, they're just pulled up by a resistor, so they pick up spikes easily."

"And the motor brushes," said Dex. "When a brush breaks contact with the commutator, there's a spark. Sparks are broadband noise. Every brushed motor does it."

"Then let's look at it."

Mr. Ruiz, who had been quietly marking papers in the corner, got up without a word, went to a locked cabinet, and came back with a gray plastic box the size of a deck of cards. A logic analyzer. A twelve-dollar clone with eight input channels, bought, he said, in 2016 for a class that never took off.

"It samples digital signals very fast," I said, delighted. "We can *see* the glitches."

We hooked it to the encoder channel A and to the motor driver's PWM input, one probe on each. Priya started the capture on the laptop. The trace appeared: a long flat line for channel A, with the PWM below it showing its regular comb of tiny pulses.

Priya zoomed in. At the left edge of one PWM pulse, channel A had a spike, a narrow upward needle, just forty nanoseconds wide, then back to low.

At the right edge, another.

At every edge.

"There," she whispered. "It's synchronous with the PWM. The spike appears on every edge. Most of them don't cross the threshold, but some do."

"Most of them are too small to be counted as pulses," I said. "A few, when the brush arcs at the same moment, get large enough. That's why it's occasional, not constant."

"So now we know what and why," said Priya. "What do we change?"

"One thing at a time," I said. "Because if we change four things and the ghosts vanish, we won't know which one mattered. And because the Verification Build Log wants each change recorded with a reason. So we use that."

I took a marker. On the whiteboard I drew a table, and we wrote the baseline at the top.

*Baseline: 27–29 ghost ticks/min.*

*Change 1: Separate encoder cable from motor leads (route on opposite side of chassis, 8 cm apart). Result: 11 ghost ticks/min.*

"Dex did that in twenty minutes," said Priya. "Down by more than half. That's the coupling distance."

*Change 2: 0.1 µF ceramic capacitor across the motor terminals, soldered at the motor.*

I explained it to Tomi, who was watching with wide eyes. "A motor brush arcing is a fast spike. The capacitor soaks it up, like a little shock absorber for voltage. It's cheap: a few cents. Every brushed motor should have one."

Dex soldered it. Priya reran the log. "Three per minute."

*Change 3: twist the two motor leads together along their length.*

"Why twisted?" said Tomi.

"Because the current goes out one wire and returns on the other. If they're side by side and twisted, their magnetic fields nearly cancel. A tiny loop area. Less to induce into other wires."

"Zero point six per minute."

*Change 4: twisted pair for encoder lines, with each signal wire twisted with its own ground, and a 100 pF capacitor from each channel to ground at the controller, plus software debounce: reject any pulse shorter than 2 microseconds.*

"That's an RC low-pass at the input," I said. "It lets slow pulses through and stops fast spikes. And the software refuses pulses too short to be real. At a top wheel speed of 600 rpm, the shortest real encoder pulse is about 500 microseconds. So 2 microseconds is far below anything legitimate. We lose nothing."

"Zero ghost ticks in sixty seconds," Priya said. She ran it again. "Zero in five minutes. Zero in twenty."

A strange feeling in the shop room. A bright, small hush.

"We lost an entire evening to *capacitors,*" said Dex.

"We lost an entire evening to *not knowing.*" I wrote the final line on the board and underlined it. *Final: 0 ghost ticks / 20 min. Four changes, each logged.* "Five if you count not blaming the new motor."

Priya took photographs of every step and hashed them. The Build Log entry for that evening was the longest yet. Four changes, four photographs, four numbers, one rule I added at the bottom, partly for the record and partly as penance: *No change is complete until its effect is measured.*

"It's amazing how often the answer is cheap," said Tomi, thoughtfully.

"It's amazing how often it's *wiring,*" said Mr. Ruiz, from the corner. "I've told every class for thirty-one years that the cause of every strange problem is either power, ground, or a connector. They roll their eyes, and then they spend a week on the compiler."

At 9:40 p.m. my phone vibrated against the bench. Not a text from anyone in the shop. An unknown number, with a Cleveland area code.

*Mr. Havel. Colleen Marsh, Aldren Dynamics. We haven't been properly introduced. I'd like to buy you lunch tomorrow. No lawyers, no agenda, no recording. Just a conversation about your future. Please say yes.*

I stared at it. I felt Priya stand behind me, reading over my shoulder.

"That's her," Priya said. "The woman in the cream suit."

"The woman who funds the League," said Dex, flat. "And the report."

I looked at the board. At the table of four changes. At *Final: 0.*

"Are you going to say yes?" said Tomi.

"I'm going to find out what she wants," I said, "because the cheapest answer to a strange problem is usually that somebody's been wiring it."

I didn't text back that night. I put the phone face down. But I knew, with the sick certainty of someone whose gyro has just been calibrated, that this was the thing the last two weeks had been measuring toward.