In the city of Meridian, every citizen wakes to a gentle chime and a perfect day. The Algorithm decides what you eat, where you work, who you love, and how long you live. Ivy, a nineteen-year-old textile worker with ginger hair and grey eyes, has always obeyed, because disobedience means her little sister Mara loses her place in the health queue. But when Ivy is pulled from the plant and assigned to the Core, the city's central tower, she discovers the perfect days are built on a lie.
Adrian, the Core's youngest systems engineer, has spent three years quietly breaking the Algorithm from the inside. Ash brown hair always messy, icy blue eyes always tired, he notices Ivy on her first day because she is the only new worker who looks at the walls instead of the floor. Together they find the files the city buried: the Reassignment List, the names of everyone scheduled to be erased when their usefulness ends. Mara's name is on it.
As Ivy learns to fight from a black-market medic and an old archivist who remembers paper books, she becomes the face of a rebellion she never wanted. Adrian builds her a way to speak to the whole city at once. But the Administrator, Silas, has been waiting for a rebel with exactly Ivy's face, and he has a plan that turns her anger into his weapon.
The city fractures. Mara's cough worsens. Adrian is arrested, and Ivy must choose between the sister she raised and the man she loves. In the end, Ivy does not burn the Algorithm down; she rewrites it, with her own hands, from inside the Core, and gives the city back the one thing it never had: choice. The final chapter finds Ivy and Adrian on a rooftop garden at dawn, listening to a chime that no longer commands anyone, free to decide for themselves what the day will be.