The Algorithm of Us

The Ex-Husband Algorithm

Mira’s phone buzzed against the damp wood of the bookstore counter, a frantic vibration that skittered across the surface like a trapped insect. She ignored it, her eyes fixed on the water stain spreading across the ceiling in a slow, deliberate map of failure. The buckets were still there, three days later, catching the remnants of a storm that had already moved on to harass Oakland.

Leo was shelving returns near the poetry section, his back to her, his movements deliberate and quiet. They hadn’t talked about the kiss. Not the wet, clumsy, desperate thing that had happened behind the store while rain poured down their necks and his hands had fumbled at her waist like he was trying to solve a puzzle he didn’t have the manual for.

Instead, they had retreated into their corners. Leo into his books. Mira into her laptop. The silence between them was thick as the fog rolling in from the bay, and twice as cold.

“You’re going to break that phone if you keep glaring at it,” Leo said without turning around.

“I’m not glaring. I’m assessing.”

“You’re glaring. I can feel the judgment from here. It’s like a heat signature.”

Mira picked up the phone. Seven missed calls. All from the same number. A number she had deleted from her contacts two years ago but still recognized with the sick familiarity of a scar you trace in the dark.

Ethan.

Her ex-husband.

The statistically perfect man who had turned out to be statistically perfect at hiding his emotional vacancy behind spreadsheets and quarterly reviews.

“Everything okay?” Leo finally turned, a battered copy of Neruda’s odes in his hand. His eyes scanned her face, and she watched him clock the tension in her jaw, the way her fingers had gone white around the phone.

“Fine. Spam.” She shoved the phone into her pocket. “Probably another robocall about my car’s extended warranty.”

“You don’t own a car.”

“They don’t know that.”

Leo raised an eyebrow but let it go. He slid the Neruda back onto the shelf with the care of someone handling a holy relic. “We need to talk about the gala.”

“What about it?”

“Julian’s PR team sent me a schedule. There’s a ‘couple’s photo opportunity’ at seven, followed by a ‘spontaneous moment of authentic connection’ at seven-fifteen.”

Mira winced. “They actually called it that?”

“In writing. With bullet points.” Leo walked over to the counter, close enough that she could smell the paper dust and coffee that clung to him like a second skin. “They want us to hold hands while looking at a sunset filter projected on a wall.”

“That’s not authentic.”

“No, it’s theater. But we signed up for the show.” He leaned against the counter, his arm brushing hers. Neither of them moved away. “You ready for it?”

“I’m ready to get this over with so I can go back to building something that actually matters.”

“The Unbound app?”

“Yes.” She looked up at him. “I’ve been thinking about the architecture. If we use a federated model, we can keep user data local while still allowing for cross-community recommendations. No central server, no data harvesting, no algorithm that knows you better than you know yourself.”

Leo’s mouth quirked. “You’re adorable when you talk tech.”

“I’m not adorable. I’m precise.”

“Same thing.”

The bell above the door chimed. A customer walked in, a woman in her sixties with silver hair and a canvas bag full of farmers’ market vegetables. She nodded at Leo like she knew him, then disappeared into the fiction aisle.

Mira’s phone buzzed again. She pulled it out, ready to block the number, when she saw the text message preview.

*Mira, I’m in town. Can we talk? I’m at the NovaTech event tonight. Please. - E.*

Her stomach dropped like an elevator with a cut cable.

“You’re pale,” Leo said. “Like, ghost pale. Victorian ghost pale.”

“I’m fine.”

“You keep saying that. It’s becoming less convincing each time.”

She pocketed the phone again, her mind racing. Ethan at the NovaTech event. The same event where she and Leo were supposed to perform their perfect algorithm-approved romance for the cameras. The same event where Julian would be watching her every move, waiting for her to slip.

“Mira.” Leo’s voice softened. “Who is it?”

She opened her mouth to lie, then closed it. The silence stretched between them, filled with the rustle of pages and the distant hum of a refrigerator in the back room.

“My ex-husband,” she said finally.

Leo’s face didn’t change, but something in his posture shifted. A subtle tightening of the shoulders, a slight tilt of the head. “The statistically perfect one?”

“That’s the one.”

“What does he want?”

“I don’t know. He says he’s in town. He’s coming to the gala.”

Leo let out a low whistle. “That’s going to be awkward.”

“That’s going to be a disaster.” Mira ran a hand through her hair, a nervous habit she thought she had broken years ago. “If Julian sees him, if anyone connects the dots, the whole narrative falls apart. The perfect HeartSync couple, and one of them is still tangled up with her ex.”

“Are you?”

“Am I what?”

“Tangled up.”

The question hung in the air, sharp and precise as a surgical incision. Mira looked at Leo, really looked at him. The way his hands rested on the counter, steady and sure. The way his eyes held hers without flinching. The way he had kissed her in the rain, like he was trying to memorize the shape of her mouth.

“No,” she said. “I’m not tangled up with him. I haven’t been for a long time.”

Leo nodded slowly. “Then we handle it. Together.”

“How?”

“We go to the gala. We smile for the cameras. We do our spontaneous moment of authentic connection at seven-fifteen. And if your ex shows up, we deal with him like adults.”

“That’s your plan? Be adults?”

“I’m a Luddite, not a barbarian.”

Despite herself, Mira laughed. It was a small, brittle sound, but it was real. “You’re impossible.”

“I prefer ‘delightfully stubborn.’” He reached out and took her hand, his fingers lacing through hers. “We’ve got this. One night of performance, and then we go back to building something real.”

She squeezed his hand, drawing strength from the warmth of his palm against hers. “Okay. One night.”

---

The NovaTech gala was held at the company’s flagship headquarters, a glass tower that pierced the San Francisco skyline like a shard of polished arrogance. The lobby had been transformed into a glittering wonderland of holographic projections and minimalist furniture, all clean lines and cold surfaces.

Mira wore a dress she had borrowed from a coworker—deep blue, fitted, with a neckline that felt like a dare. Leo had shown up in a jacket that actually fit, though he had refused to remove his beanie, claiming it was “part of his brand.”

“You look like a poet who got lost on the way to a protest,” Mira said as they walked through the revolving doors.

“You look like you’re about to sell your soul and negotiate a better price.”

“That’s the nicest thing you’ve ever said to me.”

The crowd parted as they entered, phones already raised, cameras already flashing. Mira felt the familiar weight of scrutiny settle on her shoulders, the pressure to perform, to be the perfect product of her own creation.

Julian appeared at her elbow, his smile wide and predatory. “Mira! Leo! You’re here. The media is eating this up. We’ve already got three outlets asking for exclusive interviews.”

“Great,” Mira said, her voice flat. “Can’t wait.”

“The photo op is in ten minutes. I want you two by the east window. The sunset filter will be projected at seven sharp.”

“We know,” Leo said. “We got the memo. With bullet points.”

Julian’s smile flickered, but he recovered quickly. “Excellent. I’ll leave you to mingle.”

He disappeared into the crowd, leaving them alone in a sea of strangers. Mira scanned the room, her eyes darting from face to face, searching for a familiar set of features she had hoped never to see again.

“Relax,” Leo murmured, his hand finding the small of her back. “If he’s here, we’ll handle it.”

“I know. I just—” She stopped. Her breath caught in her throat.

Across the room, near the bar, stood Ethan. He looked the same as he always had: clean-shaven, well-dressed, his hair cut in a style that was fashionable without being memorable. He was holding a glass of sparkling water and looking directly at her.

“He’s here,” she said.

Leo followed her gaze. “The guy in the navy suit who looks like he was assembled in a boardroom?”

“That’s him.”

“He looks like a LinkedIn profile come to life.”

Mira laughed, the tension in her chest loosening slightly. “That’s exactly what he is.”

Ethan started walking toward them, weaving through the crowd with the practiced ease of someone who had spent years navigating corporate events. He stopped a few feet away, his smile carefully neutral.

“Mira. You look beautiful.”

“Ethan.” She kept her voice cool, professional. “This is Leo.”

Leo extended his hand. “The ex-husband. I’ve heard a lot about you.”

“All good, I hope.”

“All statistically accurate.”

Ethan’s smile tightened. He turned back to Mira, his eyes pleading. “Can we talk? Privately?”

“We’re kind of in the middle of something,” Leo said, his arm sliding around Mira’s waist. “Photo op in seven minutes.”

“It’ll only take a moment.” Ethan’s voice dropped, intimate and familiar. “Please, Mira. I made a mistake. I see that now. I want to fix things.”

Mira felt the old anger rise, hot and sharp. “You want to fix things? You divorced me because I was ‘too emotional’ and ‘not data-driven enough.’ You said our marriage was an inefficient system.”

“I was wrong. I was an idiot. I’ve changed.”

“People don’t change, Ethan. They just get better at hiding their defaults.”

Leo squeezed her waist, a silent signal of support. “I think that’s our cue. Come on, Mira. The sunset filter waits for no one.”

But Ethan wasn’t done. He stepped closer, his voice a whisper meant only for her. “I know about the app. I know about the deal with Julian. I know you’re faking this whole thing.”

Mira’s blood went cold. “What are you talking about?”

“I still have contacts at NovaTech. People talk.” Ethan’s eyes flicked to Leo, then back to her. “If you come with me now, I won’t say anything. We can start over. I’ll help you build something better than this.”

“You’re blackmailing me?”

“I’m giving you an out.”

Leo stepped between them, his body a wall of quiet defiance. “She doesn’t need an out. She needs you to walk away.”

Ethan’s smile turned ugly. “This doesn’t concern you, bookstore boy.”

“Everything about her concerns me.” Leo’s voice was low, steady, dangerous. “Now, I’m going to ask you one time. Leave. Or I make a scene that gets us all on the front page of the tech blogs tomorrow.”

For a long moment, the two men stared at each other. The crowd swirled around them, oblivious to the tension crackling in the air.

Then Ethan laughed, a short, bitter sound. “Fine. But this isn’t over, Mira. You can’t outrun your data.”

He turned and walked away, disappearing into the crowd.

Mira let out a breath she didn’t realize she had been holding. Her hands were shaking. “I can’t believe he did that.”

“I can.” Leo turned to face her, his hands cupping her face. “You okay?”

“I don’t know. I think so.”

“Good. Because we have a photo op in four minutes, and I need you to look at me like I’m the only person in this room.”

“That shouldn’t be hard.”

He smiled, and for a moment, the gala, the cameras, the threat of exposure—all of it faded away. There was only him, his hands on her face, his eyes holding hers.

“Ready?” he asked.

“Ready.”

They walked toward the east window, hand in hand, as the sunset filter flickered to life behind them. The cameras flashed. The crowd applauded.

And somewhere in the back of the room, Ethan watched, his phone already in his hand, his thumb hovering over a number that would change everything.