Every programmer had one bug they couldn't kill.
Not the loud ones. The loud ones were easy. The loud ones crashed the program and threw a stack trace in your face like a drunk throwing a punch, and you followed the trace back to line 412 and fixed the typo and went to bed. The ones that kept you up were the quiet ones. The ones that only happened on Tuesdays. The ones that vanished the second you attached a debugger, as if they knew you were watching.
Buffy had been chasing a quiet one since September.
She just hadn't known its name.
The envelope came on the last Thursday in January, in the regular mail, which was the first strange thing. Nobody sent Buffy regular mail. Colleges sent it, and the dentist, and once a very confused letter from the AARP that Peter had framed.
No return address. Her name in block capitals. Inside, a single sheet of graph paper, folded into eighths.
She knew that fold.
Stairwell B. Sat. 4:00. Bring the ball.
"The ball," said BB, from her desk, with enormous dignity, "has a name."
"He means you."
"I know he means me. I'm saying the ball has a name."
Buffy turned the paper over. Nothing on the back. She held it up to the lamp. Nothing hidden in the grid, no pencil impressions, no clever little cipher. Just Mahmed's handwriting, small and cramped and careful.
"I don't work there anymore," she said out loud, to nobody. "My badge is dead. I can't get past the lobby. He knows that."
BB considered this. "Maybe he doesn't mean the inside of Stairwell B."
Buffy looked at him.
"Stairwells have two ends," BB said.
The bottom end of Stairwell B let out onto Twenty-Fourth Street, through a gray steel fire door with a sign on it that said EMERGENCY EXIT ONLY ALARM WILL SOUND.
The alarm did not sound. Somebody had wedged the door open two inches with a paperback, and when Buffy crouched to look, it was a volume of Naruto, battered and swollen from rain, Sasuke glowering on the cover.
She pulled the door open and slipped through.
Concrete stairs. The smell of old paint. The hum of the building's guts somewhere in the walls. And on the bottom step, below the turnstiles, below the badge readers, below everything Eden could see, sat Mahmed, with his knees pulled up and his enormous headphones around his neck.
He looked up.
He looked bad. Not sick, exactly. Just thin, and gray around the edges, like a photo of himself that had been printed on cheap paper. His clunky frames were held together on one side with tape.
"There's no cameras on this landing," he said. "Fire code thing."
"I remember."
"And no badge reader till the next floor up. Technically this is the street." He almost smiled. "Technically you're not trespassing."
"Technically," said Buffy, and sat down on the step beside him. BB floated down between them and dimmed his light to almost nothing.
For a while neither of them said anything. Somewhere far above, a door clanged and echoed down the shaft.
"You left," Buffy said. "Christmas Eve. Adam said you hugged them on the corner and walked off into the snow."
"Yeah."
"You didn't answer my texts."
"I know. I'm sorry." Mahmed rubbed his face with both hands. "I quit on the twenty-seventh. Walked in, handed in my laptop, signed a thing. The HR lady cried, which was weird, because I'd met her once." He let his hands drop. "Then they started interviewing everybody. Everyone on eighteen. Greer's people. Two guys in gray suits in a conference cube asking where you were on Christmas Eve, and did you notice anything unusual, and did you know anyone who might have an axe to grind." He made a face. "They called me. Twice. I said I was home with my mom watching It's a Wonderful Life. Which I've seen, so I could describe it."
"Did they believe you?"
"Allie looped the cameras. There's nothing to not believe." He looked at the steel door, at the paperback holding it open. "But I didn't want you anywhere near me for a while. In case somebody was watching me. That's why I didn't text back."
Buffy thought about that. She thought about how she'd spent a month assuming he was angry, or scared, or done with all of it, and how she'd never once considered that he might be protecting her.
Mahmed, who'd tried to kill her in Thessa with somebody else's hands. Mahmed, who'd drawn her father fixing the sky.
"Okay," she said. "So why now?"
He reached into the front pocket of his hoodie and took out a USB drive.
It was shaped like a tiny Sasuke.
"Don't," said Mahmed, before she could say anything. "It was the only one at the bodega."
"I wasn't going to say anything."
"Your face was saying something."
"My face is always saying something. Ask anyone." She looked at the drive in his palm. "What's on it?"
Mahmed was quiet for a second. When he spoke, he spoke to his own knees.
"On the twenty-third," he said, "the day before, I still had my credentials. And I kept thinking about what you said in November, about the code that wasn't yours. The red eyes. The stuff that got into me." He turned the drive over in his fingers. "I wanted to know what was in my head, Buffy. When I woke up in that hospital, I had a month I didn't remember and a verse stuck in my mouth like a piece of food. I wanted to know what put it there. So I went looking."
"Where?"
"There's an internal mirror. Not the main repo. The main repo's clean. I checked that months ago, same as you. This is a backup server in the basement that syncs once a night from somewhere else, somewhere I couldn't see. Nobody on the floor knew about it. I only found it because it was eating bandwidth on my team's switch and I got curious." He held the drive out to her. "I copied the whole thing. Fourteen gigs. Then I deleted my access logs, which I'm pretty sure is a felony, and went home and threw up."
Buffy took the drive.
It was warm from his hand. Tiny Sasuke glared up at her.
"What's in it?" she asked again, softer.
Mahmed finally looked at her.
"One directory," he said. "The name is S1N. Capital S, number one, capital N."
Buffy's whole body went still.
"It stands for Synaptic Instruction Network," Mahmed said. "That's what the readme says. But that's not what anyone calls it. I found Slack exports in the mirror too, old ones. The engineers who worked on it just called it sin. Like, sin's throwing errors again. Who pushed to sin on a Friday. Sin needs more memory." He laughed, and it wasn't a laugh. "Like a joke. Like it was cute."
"S1N," Buffy said slowly.
Of course it was.
She'd spent six years in her bedroom building a world without God, and she'd called her own secret weapon a conscience module, and been very pleased with herself about it. And all that time, a few floors above her glass cube, the most elegant programmer she'd ever met had been building a machine to reach into people's bodies and make them do things they didn't choose. And he'd named it sin. Without irony, apparently. Or with the kind of irony that was so dry it came all the way back around to honesty.
The devil's own codebase had a better theological naming convention than hers. She would have found that funny if she weren't sitting on a cold step trying not to be sick.
"It's the motor layer. The thing that talks to your hands." His voice went flat. "And Buffy. You remember your variable? The one I yelled at you about, the first day? `$s2x`?"
Of course she remembered. She'd spent four months being accused of writing it.
"It's not a variable," Mahmed said. "It's a build tag. S-two-x. S1N, version two point x. The experimental branch." He swallowed. "That's the one they tested in Thessa. That's the one that was in me."
The stairwell was very quiet.
"And the signature," Buffy said. She already knew. She asked anyway. "Whose key?"
"Not the joint one," Mahmed said. "Not the one with two names. I checked that first, because of what you told me about your dad." He shook his head. "Every single commit in S1N is signed with one half. Just one. Tanaka, Sai."
So her father had never touched it.
The relief hit her so hard she had to put her hand flat on the cold concrete step to stay upright. She hadn't let herself think about it, not really, not out loud, but it had been sitting in the back of her head since November like a process she couldn't kill: What if Dad helped build this? What if the key with his name on it opened this too?
He hadn't. It was all Sai. Every line.
"It's his own code," Mahmed said. "He didn't let anyone else sign it. Engineers wrote pieces, I think, from the Slack stuff, but he signed it all himself. Like he wanted it to be his." He pulled his headphones up onto his ears, then pulled one side off again, the way he had in December. "That's all. That's what I came to give you."
"Mahmed."
"I don't want to be part of the team," he said quickly. "I know that's what you're going to say. I'm not brave like Peter. I'm not a genius like you. I just want to sleep through the night without dreaming about a gray city." He looked at the paperback in the door. "I'm going to go back to school. Community college, in the fall. Something with drawing. My mom's happy."
"Okay," Buffy said. And meant it.
He stood up. He picked up the Naruto and the fire door swung shut with a soft clunk, and the stairwell went dimmer.
"The verse," Buffy said. "In Thessa. You kept saying it when you were—when it had you. First Corinthians."
Mahmed stopped with his hand on the push bar.
"Love is patient, love is kind," he said. "Yeah. That was mine. My mom used to say it to me every night when I was little. I don't think sin knew what to do with it. I think it just kept coming up, like a hiccup, every time it tried to make me hurt somebody." He looked at her over his taped glasses. "I think that's why I missed."
He pushed the door open. Cold air and street noise poured in.
"If you need me," he said, "you know where the stairwell is."
"Oh," said Buffy, at eleven o'clock that night, in the lab, out loud, to no one. "Oh, that's beautiful. I hate it."
"Which part?" said Rod.
He'd come down from Westchester for the weekend, the way he did now, and he'd come straight to Xander's lab without being asked, which she was still deciding how to feel about. He was sitting in the second chair at the obsidian desk with a legal pad, taking notes in neat military capitals while she read, because her hands were busy and her brain was busier.
Xander was asleep on the sofa under a cashmere throw. He'd lasted until the readme.
"All of it." Buffy scrolled. Lines of code went past on the giant floating monitor like a river. "Look at this. Look at the structure. There's no waste. Every function does one thing. The names are perfect. There's a comment on every block, and the comments are actually useful, which nobody does, because nobody has time, because everyone's sprinting toward a release date. He had time. He had all the time in the world." She stopped on a function and jabbed the glass. "That's the cleanest motor-cortex interface I've ever seen. I didn't know you could do that with a band behind the ear. I didn't think the physics allowed it."
"So he's good," Rod said.
"He's really good." She sat back. It was a deeply unpleasant thing to admit about the man who'd put her father in a gray box. "He's better than me. At this. Not at everything. At this."
"Okay," said Rod, writing. "Sai, better at evil. Noted."
She laughed despite herself. "That's not what I said."
"It's what I wrote."
BB floated over Rod's shoulder, reading upside down. "Your handwriting is very neat."
"Military school."
"I like it," said BB. "It's like a font."
Buffy ignored them and pulled up the architecture map. It took a while to build. BB had to crawl the whole fourteen gigs to draw it. But when it bloomed on the monitor, she sat very still.
It was two layers.
On top, the part she knew. Eden Pure. She'd seen the slides. She'd written some of the slides, in a glass cube on the eighteenth floor, before she knew what they were for. The scoring engine. Civic Risk and Civic Merit. The cameras and the bands, reading the patterns that came before harm, and the gentle corrective nudges for opted-in citizens. The gold leaf by your name. The whole shiny, terrible, brilliant face of it.
And underneath, connected to it by a hundred thin threads, was S1N.
It was bigger. Much bigger. Eden Pure was a building; S1N was the bedrock it stood on. Every nudge Eden Pure decided to send went down through those threads into S1N, and S1N turned it into instructions. Not please stop. Not have you considered pausing. Instructions. Muscle by muscle. Open the hand. Lift the left foot. Hold the face like this.
Smile, BB had said, on Christmas Eve. Smile is the worst one.
"Eden Pure's the front end," Buffy said.
Rod looked up from his pad.
"It's the UI," she said. "The score, the nudges, the gold leaves. That's the part with a logo. That's the part they put on a billboard and announced at a town hall and let the press fight about. That's the part I fought, on Christmas Eve. I went all the way up through the sky to kill a user interface." She pressed the heels of her hands into her eyes. "And the actual program was underneath it the whole time. Running. In everybody's band. It doesn't need Eden Pure. Eden Pure is just one app that calls it."
"So when you knocked out Eden Pure—"
"I knocked out the front end. My patch blocks S1N at the root. I know it does, I can see it in the logs." She dropped her hands. "But the patch was written to catch Eden Pure's commands. Big ones. Loud ones. Stop. Walk. Smile. I wrote it to recognize those shapes."
"And if S1N sends a different shape?"
Buffy didn't answer.
She was already scrolling. Down through the directory tree, past `core/` and `motor/` and `calibration/`, to a folder near the bottom she'd skimmed past on the first read because the name was so innocuous it hadn't registered.
`adapt/`
Inside it, one file. Short. Dense. Beautiful, like everything else.
And at the top of it, the only comment in the whole repository that wasn't technical:
`// A garden grows around a stone. —S.T.`
"What does that mean?" said Rod.
"It means," Buffy said, and her voice came out very small, "that if something blocks it, it learns. It tries a different path. It keeps trying until it finds one the block doesn't cover." She scrolled down through the logic, and the logic was clear, and that was the worst part, because she understood every line. "My patch is the stone."
Rod put his pen down.
He didn't say anything comforting. She was grateful for that. He just sat there beside her in the blue light of the monitor and looked at the comment, at the initials, for a long time.
"Can I ask you something?" he said finally. "Not about this."
"Sure."
"You said sometimes. That you'd tell me things. About him." He kept his eyes on the screen. "What would he do? Right now. If he were sitting here."
Buffy thought about it. Really thought, the way she hadn't let herself in six years, because thinking about what Dad would do meant admitting Dad wasn't there to do it.
"He'd make tea," she said. "Badly. He always left the bag in too long. And then he'd sit down and say, 'Okay, Bug. Every bug is just the code telling you the truth about what you actually wrote. So what's it telling us?'" She swallowed. "He said it so many times I used to mouth it along with him to make Peter laugh."
"So what's it telling us?"
Buffy looked at the comment. A garden grows around a stone.
"That I wrote a wall," she said slowly. "And he wrote water."
Rod picked his pen back up and wrote that down too, in neat military capitals, and underlined it twice.
Luke called at 12:40 a.m.
She almost didn't pick up. His face on her phone screen was the one from Christmas Eve, gray and tieless and holding the phone too tightly. He was at a desk somewhere with three monitors behind him and the blinds drawn.
"Are you near a screen?" he said. "A big one?"
"Always."
"I'm sending you something. It's from Tokyo. Exodus still has telemetry on the Shibuya pilot district. My uncle hasn't cut me off yet. I don't know why." He said my uncle like it was something sharp he had to hold carefully. "I think he wants me to see this."
The file landed. BB put it up on the giant monitor.
It was a phone video, vertical, shaky, the way all real videos are. A game arcade, the kind with a thousand blinking machines and music from fifteen sources at once. A teenage girl in a school uniform was standing in front of a rhythm game, the kind where you hit lit-up drums in time, and she was very good. Her hands blurred. Her friends were filming and laughing and shouting in Japanese.
Then she stopped.
Her hands stopped mid-beat, raised, perfectly still. The game kept going without her, notes scrolling past, MISS MISS MISS. Her friends' laughter wobbled.
She turned toward the camera.
Her eyes were red.
Not bloodshot. Red. The irises, a deep, glossy, unmistakable red, the red Buffy had seen on Mahmed in Thessa, on a hundred blurry forum photos in the fall, on Peter's friend's cousin's friend who'd tried to fight a mailbox.
Behind her ear, the slim gray curve of a band.
The girl blinked, once. Then she walked out of the frame, calm, pleasant, empty, and the video swung wildly as her friends ran after her, and the last thing it showed before it cut off was the Shibuya crossing outside, the light turning to WALK, and a girl in a school uniform stepping off the curb on her left foot, perfectly in time with three strangers who had also just stopped whatever they were doing.
The video ended.
Nobody said anything. On the sofa, Xander had woken up at some point; he was sitting with the cashmere throw clutched to his chest.
"Thirty-one cases," Luke said. "In four days. All Shibuya pilot district. All free-band wearers, the ones they handed out before Christmas. They come out of it after a few minutes and don't remember. Eden's PR team in Tokyo is calling it a heat-related reaction to the arcade lights." A pause. "It's January."
"The patch should catch that," Rod said. "Shouldn't it? You said it blocks S1N at the root."
"It blocks the commands it knows." Buffy was staring at the frozen last frame. The girl's left foot, an inch off the curb. "Look at the timing. Run it back, BB. Slow."
BB ran it back.
"She doesn't stop all at once," Buffy said. "Watch her hands. They stutter. Tiny. Like a dozen little twitches, each one too small to mean anything. Then they stop." She got up and went to the monitor and put her finger on the girl's wrist. "It's not sending stop. It's sending a hundred things that aren't quite stop, so small and so scattered the patch doesn't recognize them as a command. And they add up to stop."
"Like whispering under a smoke detector," said BB quietly.
"Like whispering under a smoke detector." She turned around. "It's adapting. Exactly like the comment says. My patch is the stone, and it's growing around me. In Tokyo first, because that's where the most bands are. And then here."
"How long?" said Luke.
"I don't know."
"Guess."
"I can't guess, Luke. I don't have enough data. I can read what S1N is supposed to do. I can see that it's doing something, in a video, from the outside." She sat down on the edge of the desk. "I can't see what it's doing in there. In a person. Which neurons. How deep. Whether it leaves anything behind when you take the band off. Whether it's sitting in thirty-one heads in Shibuya right now, quiet, waiting."
"So find a way to see in there," Luke said.
"Sure. I'll just go buy a neuroscientist and an MRI machine and a few thousand volunteers."
"Buffy—"
"I'm sorry." She rubbed her eyes. "I'm sorry. I'm tired. Thank you for sending it."
Luke was quiet. Then he said, very low: "My dad's still in that clinic. With a band on. They never took it off, Buffy. They said it was helping monitor him." His jaw worked. "I want to know what it's doing in there."
He hung up before she could say anything.
She went up to the roof of her building at two in the morning, which was a terrible idea in January, and found Peter already there.
He was in the old lawn chair under the broken alarm, wrapped in two blankets and a hat with a pom-pom, typing on his phone with his thumbs. He didn't look up.
"Emails," he said. "Lady in Queens. Her son won't take his band off. He says he feels calmer with it. He says when it's off his hands shake." He typed something, deleted it, typed it again. "I don't know what to tell her. I'm not a doctor."
Buffy sat down on the cold gravel beside the chair and pulled her knees up and looked at the water tower.
He says he feels calmer.
Allie had said almost exactly that, a week ago, about her dad. Allie's dad, who'd stood frozen in his kitchen mid-sentence on Christmas Eve. Who had come back, afterward, mostly. Who smiled a little too long now, Allie said, at things that weren't funny. Who'd made Allie promise not to throw out his band because he got headaches without it. Who hadn't told a single terrible pun since Christmas, and Allie's dad, Allie said, used to tell four a day, minimum, like a vitamin.
Buffy had read every line of S1N tonight. She could tell Peter exactly what it was designed to do to the lady's son. She could draw it on a whiteboard.
She couldn't tell him what it had actually done.
And that was the whole problem. Code was a promise. It told you what a program meant to do. It didn't tell you what it had done to the person it ran on. For that, you needed to look inside. You needed something that could sit beside a living person, read the electrical weather of their brain without cutting it open, and recognize a pattern that wasn't supposed to be there. Something non-invasive. Something smart enough to tell the difference between a person's own thoughts and a hundred little whispers that weren't quite stop.
She knew what that thing looked like.
She'd designed it.
At fifteen, at a scuffed table in the Olympus robotics lab, she'd sketched a health-aide robot with a diagnostic visor that could read neural activity through the skull and run it through a pattern-recognition model she'd trained herself, on nights and weekends, on every public EEG dataset she could find. It was supposed to catch seizures before they happened. She'd been so proud of the visor. She'd left it half-finished on the team server the week she quit.
And somebody had picked it up, and polished it, and slapped a nurse's cap on it, and won a state title.
Buffy put her forehead down on her knees.
"What?" said Peter, finally looking up from his phone. "What's that noise? Are you crying? Are you laughing?"
"I'm doing both," Buffy said into her knees. "Do you remember Dr. AI?"
Peter was quiet for a second.
"The pink thing," he said slowly. "The Jigglypuff with a stethoscope. At James Ruben's party."
"That's the only thing on earth that can see inside a head the way I need to." She lifted her face. The wind off the river was so cold her eyes were watering, and she decided that was why. "And James Ruben owns it."
Peter stared at her.
Then he put his phone down, very carefully, on the blanket in his lap.
"Oh," he said. "Oh, you're going to have to ask him."
"I would," said Buffy, "genuinely rather be deleted."