Chapter 31 : The Algorithm Learns
The alarm triggered seventeen times in two nights.
Not the passive hum of detection — the sharp, staccato pulse of contacts entering and exiting array zones with a frequency that turned sleep into a series of interrupted naps, each one shorter than the last. My awareness jumped between nodes like a switchboard operator patching calls: south wall, north door, east garden, Section Three corridor, west approach, south wall again.
The Grievers were probing.
Not attacking. Not breaching. Probing. Each contact followed the same pattern: approach the detection radius at standard patrol speed, enter the field for three to five seconds — long enough for my array to register the signature — then withdraw. Wait. Approach from a different angle. Enter. Withdraw. Repeat.
By 4 AM on the second night, I'd mapped the probing pattern and my throat had gone dry.
They were triangulating.
Each approach vector, each brief entry into a detection field, gave the algorithm data about the array's range, sensitivity, and response characteristics. Three approaches from three different angles was enough to calculate the field's exact boundaries. Five approaches refined the estimate. Seventeen approaches across six arrays over two nights gave the algorithm a comprehensive map of my detection network's coverage — including, critically, the gaps.
I'd built the network with overlapping fields where possible, but twelve arrays couldn't cover every approach to a Glade surrounded by four Maze entrances and sixty feet of wall on every side. The gaps were small — ten to fifteen meters of blind corridor between array zones — but they existed. And now the algorithm knew exactly where they were.
"We have a problem." I laid the probe data on the Map Room table at 6 AM, the charts showing approach vectors and timing patterns that even Alby could read. Minho stood beside me, arms folded, his expression carrying the grim focus of a man who understood tactical intelligence even when the delivery system baffled him. Newt leaned against the wall, favoring his bad leg more than usual — the stress of consecutive alarm nights wearing on a body that carried its own hidden damage.
"They're mapping my coverage," I said. "Testing every array, recording the response, building a picture of where we can see and where we can't."
"So they know where the blind spots are," Minho said.
"They will soon. Another two nights of probing, and the algorithm will have enough data to route Grievers through the gaps without triggering a single alarm."
Silence. The Map Room's paper-covered walls — months of accumulated intelligence, patrol charts, route analyses — suddenly looked fragile. Everything I'd built was a defense against an enemy I could track. An enemy that could see the tracking was a different problem entirely.
"More arrays," I said. "I need materials for at least six more formations to close the coverage gaps. Metal, plant catalyst, inscription medium. And I need them today."
Alby rubbed his jaw. The gesture was familiar — the physical tell of a leader weighing resource allocation against competing priorities. "The Box delivery brought limited materials. Gally needs metal for the Homestead reinforcements. Winston needs supplies for the Blood House."
"Gally's reinforcements won't stop a Griever. My arrays will."
"Your arrays might," Gally said from the doorway. He'd been listening — or had timed his arrival for maximum dramatic impact, which amounted to the same thing. "Or they might not. We've been betting this whole Glade on your shuck magic for a month, and now you're telling us the enemy figured it out?"
"I'm telling you the enemy is adapting. Which means we need to adapt faster."
"Or maybe we need to stop depending on one person's tricks and start building actual walls."
The argument had roots that went deeper than resource allocation. Gally's opposition to me had evolved from personal suspicion into something structural — a philosophical position that the Glade's safety should rest on physical defenses (walls, weapons, watchtowers) rather than Walker Bancroft's inexplicable abilities. The position wasn't unreasonable. In a community where one person's death or departure could collapse the entire security architecture, diversification was basic risk management.
The problem was that physical defenses didn't work against Grievers. Three years of walls and poles and watchtowers had produced exactly zero Griever kills and an unknown number of Glader deaths. My arrays had produced two kills, multiple deterrences, and a detection network that had saved lives repeatedly.
Results should have settled the argument. In the Glade, where survival was the only metric that mattered, results were gospel. But Gally's faction didn't operate on results alone. They operated on trust, and they didn't trust me.
"Split the materials," Newt said. The compromise was delivered in his mediator's voice — calm, practical, giving both sides something while satisfying neither. "Gally gets half for physical reinforcements. Walker gets half for arrays. We defend both ways."
Alby looked at Gally. At me. At Newt. The decision was already made — Newt's compromises had a way of becoming policy before anyone formally agreed — but the leader's approval was the mechanism that converted suggestion into action.
"Do it," Alby said. "Gally — Homestead walls. Walker — arrays. Both of you have until sunset."
Gally left without another word. The absence of argument was more concerning than the argument itself — the Builder had stopped fighting because he'd decided the political battle was unwinnable and was redirecting his energy toward something else. Coalition building, maybe. Or contingency planning for the day Walker Bancroft's defenses failed.
"He's scared," Newt said quietly, after Gally's footsteps faded. We were alone in the Map Room — Minho had left to brief the Runners, Alby to organize the material distribution. "Gally. That's what drives him. Not anger, not jealousy. Fear."
"I know."
"Do you?" Newt's gaze was steady. "Three years he's kept this place running. Three years of building, repairing, maintaining. Then you show up and in a month you've changed everything — the defenses, the hierarchy, the way people think about the Maze. You made his three years of work obsolete. That's not something a person gets over by seeing results."
The insight was characteristic Newt — empathetic, precise, uncomfortable in its accuracy. Gally's opposition wasn't irrational. It was the rational response of a craftsman watching his craft be superseded by technology he couldn't understand or replicate.
"What do you suggest?" I asked.
"Include him. The reinforcements he builds — integrate them with your arrays. Make the physical defenses work with your system, not parallel to it. Give him ownership of something that matters."
"That's... actually smart."
"Don't sound so surprised." The corner of his mouth twitched. "I've been managing egos longer than you've been drawing circles in the dirt."
I laughed. The sound surprised me — genuine, unforced, the kind of laugh that came from being seen by someone perceptive enough to find your blind spots and kind enough to point them out gently. Newt had a gift for that. The moral compass who could navigate the space between competing truths and find the path that preserved the most dignity for the most people.
In the source material, this was the person who'd beg Thomas to kill him when the Flare took hold. The thought cut through the laughter and left me hollow.
"I'll talk to Gally," I said.
---
[The Glade — Perimeter, Day 36, 3:00 AM]
The alarm fired at 3:07 AM. A single contact, approaching the East Door detection array from the north. Standard patrol speed. Standard biomechanical signature.
But instead of entering the field and withdrawing — the probing pattern I'd cataloged over two nights — the Griever accelerated. Full speed. Straight through the detection zone, past the East Door disruption array, and into the threshold gap between the door frame and the first Maze corridor.
The disruption array caught it. The nerve-fiber formation fired its electromagnetic pulse, and the Griever's mechanical legs seized for three seconds — the same motor disruption that had slowed the first daylight intruder. The creature stumbled, hit the door frame, and produced the shrieking alarm sound that carried through the Maze and into the Glade.
Then it withdrew. Back through the threshold. Past the detection field. Into the Maze corridors, moving fast, damaged but operational.
Three seconds of disruption. The same duration as before. No improvement in the array's effectiveness despite improved materials and refined inscription.
But the Griever's approach had been different. It had run the disruption gauntlet deliberately — knowing the array was there, knowing the effect, accepting the three-second seizure as the cost of testing the defense at full engagement. The algorithm hadn't sent the Griever to attack. It had sent it to gather combat data.
The alarm woke the Glade. Night watch scrambled. Torches flared. Gally's crew grabbed poles. By the time I reached the East Door, the Griever was gone and the disruption array was humming its steady post-activation cycle, the nerve fiber glowing faint blue in the darkness.
"Anything?" Alby arrived, dressed and armed with the speed of a man who'd been sleeping in his boots.
"One contact. Deliberately triggered the door array and withdrew. It was testing the defense."
"Testing how?"
"Running through at speed to measure the disruption effect. The algorithm wanted to know exactly how long the seizure lasts and how much damage it causes."
Alby stared at the dark Maze corridor beyond the East Door. The stone walls held their nightly configuration, ivy-covered and silent, betraying nothing about what moved through them.
"It's learning how to beat you," he said.
"Yes."
The word hung between us. The Glade's leader and its Maze Analyst, standing at the threshold of a defense that was being systematically deconstructed by an adversary with infinite patience and zero emotional investment.
"How long do we have?" Alby asked.
I'd been running that calculation for two days. The algorithm's learning curve, based on the probing frequency and the combat test, suggested it would have a comprehensive counter-strategy within five to seven days. After that, the arrays would be obstacles rather than barriers — known quantities that the Grievers could navigate around or power through.
"A week. Maybe less."
"And then?"
"Then we need to be somewhere else."
The statement landed with the weight of its implications. Somewhere else meant the Maze. The Maze meant the escape — the Griever Hole, the code, the desperate run through corridors filled with everything WCKD had built to keep them trapped.
Alby didn't respond. He turned and walked back toward the Homestead, and the set of his shoulders said he'd heard exactly what I meant.
Author's Note / Promotion:
Your Reviews and Power Stones are the best way to show support. They help me know what you're enjoying and bring in new readers!
You don't have to. Get instant access to more content by supporting me on Patreon. I have three options so you can pick how far ahead you want to be:
Silver Tier ($6): Read 10 chapters ahead of the public site.
Gold Tier ($9): Get 15-20 chapters ahead of the public site.
Platinum Tier ($15): The ultimate experience. Get new chapters the second I finish them. No waiting for weekly drops, just pure, instant access.
Your support helps me write more. Find it all at patreon.com/fanficwriter1
we just added free chapters on unwrittenrealm.com — plus the whole novel is translated into 14 languages. read it in your language for free.
