My Account List Orders Book Page

The Allocation Engine of Ur

Table of Contents

  • Chapter 1: The Ledger of Grain and Clay
  • Chapter 2: The Silent Tally
  • Chapter 3: Rations in the Dust
  • Chapter 4: The Bronze Wheels Beneath
  • Chapter 5: The Quartermaster’s Doubt
  • Chapter 6: Counting the Weakened
  • Chapter 7: The Cuneiform Code
  • Chapter 8: Empty Granaries, Full Records
  • Chapter 9: The Weight of an Ounce
  • Chapter 10: Beneath the Ziggurat Vaults
  • Chapter 11: The Phantom Deficit
  • Chapter 12: Whispers in the Garrison
  • Chapter 13: The First Sacrifice of War
  • Chapter 14: Iron Logic of the Ancients
  • Chapter 15: The Forgotten Variable
  • Chapter 16: Salt and Rations
  • Chapter 17: The Math of Starvation
  • Chapter 18: The Scribe’s Confession
  • Chapter 19: A Shift in the Gears
  • Chapter 20: The Mutiny of the Hungry
  • Chapter 21: Diverting the Tributary
  • Chapter 22: The Great Objective Function
  • Chapter 23: Breaking the Clay Seal
  • Chapter 24: The Engine's Ultimatum
  • Chapter 25: Reclaiming the Scales
  • Chapter 26: The Final Allocation

CHAPTER ONE: The Ledger of Grain and Clay

The dust inside the Central Storehouse of Ur did not drift; it settled with the heavy, unyielding permanence of river silt after a flood. It coated the stacked rows of sun-baked brick, the sealed oil jars, and the sheepskin wraps of Enkidu, the Senior Quartermaster of the Royal Garrison.

Enkidu wiped his thumb across a fresh tablet of soft grey clay. His skin was rough, calloused from twenty years of pressing reed styluses into wet earth, tallying barley by the gur, oil by the sila, and copper points by the dozen. Above him, high in the high-ceilinged archway of the storehouse vault, birds nested out of reach, their faint chirps echoing in the cool gloom. Outside, the midday sun baked the city of Ur into a shimmering expanse of yellow brick and mud, but inside the deep foundation of the depot, the air retained the chill of cold stone and forgotten years.

"Four hundred gur of winter barley," Enkidu muttered aloud, his voice flat and practiced. He brought the wedge-shaped end of his stylus down, making a neat, deep triangular impression in the clay. "Received from the southern canals. Certified by the chief measurer."

Beside him stood a younger scribe, Ubar, who clutched a wooden tray containing half a dozen unbaked tablets. Ubar looked pale, his linen tunic damp at the collar despite the storehouse's subterranean draft. His eyes flicked nervously toward the far wall of the chamber, where the masonry changed from the yellow mud-brick of the current dynasty to the dark, basalt blocks of a far older foundation.

"He hasn't touched the southern barley," Ubar whispered, his tone hushed as if he were standing inside the inner sanctuary of Nanna’s temple. "The captain sent two men from the second watch this morning. They were carrying the wooden pails. They stood at the gate for two hours waiting for the daily voucher, and then..."

"And then they left with half-pails of emmer," Enkidu said without looking up from his writing. He smoothed out a minor defect in the soft edge of his tablet with the flat of his palm. "I am aware. I saw the gate receipts."

"Half-pails, Quartermaster," Ubar pressed, taking a small step closer. "The men are digging the irrigation trench near the river bend. They are hauling basalt stones five miles in the heat. A half-pail of emmer is what we give to the weaver girls who sit in the shade all afternoon."

"The weaver girls produce eighty cubits of fine wool a week, Ubar. Wool trades for tin. Tin makes spears." Enkidu turned the tablet in his hand, checking the symmetry of his cuneiform impressions. "The math is simple."

"The diggers will faint before the second watch ends," Ubar said. "Captain Shulgi was furious. He threatened to throw his side-sword into the scale."

Enkidu sighed, a dry sound that matched the atmosphere of the room. He set the stylus down on a flat wooden bench next to a row of bronze tally-weights shaped like sleeping ducks. He was a broad-shouldered man, past his prime, with a short-cropped grey beard and eyes that had spent too many decades peering at faint markings by oil-lamp light. He did not care for angry captains, but he cared even less for inaccurate totals.

"Captain Shulgi can throw his sword, his helmet, and his left boot onto the scale if he wishes," Enkidu said smoothly. "The weight will not change. The allotment for the diggers was drawn from the third tablet of the morning calculation. It is what the stone commands."

He pointed a thick finger toward the back of the storehouse, where the basalt wall met the brick floor. Embedded deep into the dark stone was a brass housing, dull with age and green verdigris. It was rectangular, roughly the size of a chieftain's chest, surrounded by intricate copper conduit pipes that disappeared into the foundational bedrock of Ur. From within the wall came a low, rhythmic sound—not a engine of steam or iron as a modern man might imagine, but a slow, heavy tick, like the dropping of heavy seeds onto a bronze shield, spaced precisely five heartbeats apart.

It was the Allocation Engine. The priests called it the Gift of the First Builders, claiming it had been set in place before the Great Flood to ensure the city never consumed more than the gods provided. The garrison simply called it the Copper Mouth.

Every morning, Enkidu or his predecessor would insert a small, perforated strip of dried clay into a narrow slot at the top of the casing. The strip bore the numbers of the day: how many spears were under arms, how many bushels of grain had arrived at the quays, how many barrels of salted fish lay in the cellars. The engine would groan, its internal bronze gears turning slowly deep within the dark stone, and after an hour, a small bronze tray would slide open at its base.

Inside the tray was a single burnt-clay seal, stamped with precise, tiny numbers. That seal was the law. It dictated exactly how many sacks of grain left the depot, down to the last handful. No quartermaster in three hundred years had successfully disputed the Copper Mouth's output. If you gave out more than the seal permitted, the ledger showed a deficit at the end of the month, and the Royal Inspector took the difference out of the quartermaster's personal property—or his skin.

"The engine calculated forty percent less for the trench diggers today," Ubar said, his voice dropping lower still. "I checked the input tablet twice, Enkidu. I stamped the numbers myself. Three hundred men. High exertion. The grain store is fuller than it was during the flood season! The granaries outside the North Gate are bursting! Why did it cut their rations?"

"Because the city's math is greater than your head, Ubar," Enkidu said, though his own brow furrowed slightly beneath his leather headband. He picked up his stylus again, but he did not press it into the clay. Instead, he stared at the faint bronze face of the device in the shadow.

It was true that the granaries were full. Enkidu had inspected the upper silos himself three days ago. The harvest along the Lower Euphrates had been extraordinary—the sun had been kind, the silt rich, and the floodwaters had receded at precisely the right moment. The city was choking on grain. Barges lined the riverbank, waiting for dockworkers to clear space in the overflow sheds.

Yet, for the past two weeks, every time Enkidu fed the total counts into the Copper Mouth, the resulting allocation seals came back smaller. First it had been the oil rations for the night patrols—reduced by a third. Then the salted onion portions for the gate guards—halved. Now, the heavy laborers digging the vital flood canals were receiving rations that wouldn't sustain a child.

"Go to the secondary vault," Enkidu instructed the young scribe. "Bring me the ledger tablets for the last three years. The late harvest records."

"The whole three years?" Ubar looked dismayed. "Those tablets are kept in the damp vault near the sewer conduit. They weigh a hundred pounds!"

"Then your arms will get stronger, which means the Allocation Engine might cut your rations tomorrow," Enkidu replied dryly. "Go on. Bring them."

As Ubar scurried off down the dark corridor, his sandals slapping softly against the stone tiles, Enkidu stepped off the wooden platform and walked slowly toward the back of the chamber.

The air grew cooler near the ancient basalt wall. The dark stone felt different from the rest of the storehouse; it was cold to the touch, dense, and polished smooth by centuries of dry dust. The brass housing of the Allocation Engine sat nestled within a carved niche, sealed around the edges with hardened bitumen.

Enkidu leaned in close. The low clack-clack inside the stone was steady, indifferent. He placed his flat hand against the side of the brass casing. He could feel the tiny vibrations—wheels moving against wheels, brass teeth stepping across iron tracks, deep inside the dark core of the ziggurat foundation.

"What are you counting?" Enkidu murmured to the cold metal. "We have the barley. The men are hungry. What do you see that I don't?"

The engine, of course, did not answer. It merely clicked once more, a heavy, metallic drop that signaled another cycle of its hidden internal tally.

Enkidu looked down at the bronze tray at the base of the machine. The daily clay seal sat there, hard and dry from the small oil-burner that baked the output deep inside the slot. He picked it up. The cuneiform characters were microscopic, cut with a precision no human hand could match without a magnifying lens of crystal.

It read: GARRISON LABOR FORCE - SECTOR FOUR - ALLOCATION: 120 SILA EMMER.

One hundred and twenty sila. For three hundred men. It was a slow death sentence by exhaustion.

Enkidu pocketed the seal, his jaw tightening. He was a practical man. He did not believe in ancient curses, nor did he believe the gods spent their mornings fiddling with copper gears in the basement of a storehouse. The engine was a tool—an incredibly old, complex tool built by men whose names were lost to the desert sands, but a tool nonetheless. And when a tool delivered a broken result, it usually meant someone had fed it broken wood.

He looked around the empty depot. The long shadows stretched between the columns of stacked jars. Somewhere above, the city of Ur was bustling—merchants shouting, priests chanting from the upper terraces of the Ziggurat, soldiers marching out through the city gates. None of them knew that the math governing their bread had begun to warp.

"We shall see," Enkidu muttered to himself, stepping back into the warm light of his counting lamp. "We shall see what the clay says."


CHAPTER TWO: The Silent Tally

The damp vault near the sewer conduit smelled of ancient mud and stagnant river water. Ubar returned nearly an hour later, his linen tunic stained black across the knees and his chest heaving under the weight of three massive clay tablets. He dumped them onto Enkidu’s heavy cedar workbench with a hollow thud that kicked up a small cloud of red dust.

"The bottom shelf was flooding again," Ubar panted, rubbing his red, chafed forearms. "The lower records from the reign of Shulgi the Great are turning back into river mud. If we leave them down there another winter, the entire second century of the dynasty will be washed down the drain."

"The dead kings can survive a little water," Enkidu said, reaching for the topmost tablet. It was dark, heavy, and thick as a patio tile, its surface cross-hatched with thousands of tiny, razor-sharp cuneiform wedges. "The living soldiers cannot survive a winter of air for dinner. Help me clear the lamp oil."

Together, they set to work in the dim flame of three olive-oil lamps. The storehouse was quiet now, save for the distant, muffled echoes of the city above and the relentless, subterranean clack-clack of the Allocation Engine behind the basalt wall.

Enkidu aligned the historical tablets beside his own daily logs. He was looking for patterns—not the high, poetic declarations of victory that the King’s scribes carved onto royal monuments, but the hard, cold reality of consumption. The bronze teeth inside the engine did not care who won the battle of Elam or how many gold goblets were dedicated to Nanna; they cared about calories, volume, transport time, and storage decay.

"Look here," Enkidu said, pointing his ivory stylus at a line of text preserved from forty years ago, during the Great Canal Drought. "Four thousand garrison troops stationed at the border posts. Harvest yield down by half. What did the Copper Mouth allocate?"

Ubar leaned over, squinting at the archaic handwriting of a dead scribal master. "Two sila of barley per man, per day. Plus dried fish and half a measure of sesame oil."

"Precisely," Enkidu said. "A lean diet, but enough to keep a man standing upright with a shield. The engine recognized a shortage, adjusted the reserve ratio, and distributed enough grain to keep the line from collapsing."

He pulled his fresh clay log toward him and pointed at the bottom line—the tally he had received just that morning. "Now look at today. The river is high. The grain silos are full to their timber roofs. We have eight hundred thousand gur of barley sitting in the public granaries outside the gates. Yet the engine allocates less than half a sila to the men digging the ditches. It is giving them less grain during an era of plenty than it gave during a famine."

Ubar rubbed his chin, leaving a streak of grey clay across his jaw. "Perhaps the input slot is dirty? A piece of grit in the gears?"

"If grit fell into those gears, the bronze would jam, or the spring-teeth would snap, and the output tray would stay shut," Enkidu replied, shaking his head. "I have seen the engine jam once, twenty years ago, when a fool of a junior scribe dropped a piece of unbaked clay into the slot. The machine screeched like a wounded mule and didn't drop a seal for three days until the High Master of Mechanics came down from Ur-Namma’s tomb with his copper picks."

He leaned back, his joints popping in the cool dampness of the room. "No, it isn't jammed. It is calculating. It is running its internal wheels just as it always does. The math is moving, Ubar. But it is arriving at a number that makes no sense."

"Could someone be lying on the input tablets?" Ubar asked softly, glancing toward the arched doorway as if expecting the Royal Inspectors to drop from the ceiling. "If the Palace Scribes are recording fake totals—if they are telling the engine we have less grain than we actually do—"

"To what end?" Enkidu interrupted. "If the palace reports low totals, the engine cuts the garrison's rations, but it also cuts the palace's own kitchen allocations. The Vizier wouldn't starve himself just to spite the trench diggers. Besides, I inspect the input tablets myself every dawn. The weight of grain coming off the river barges matches the intake stamps. The numbers we feed into the slot are true."

"Then the Copper Mouth has gone mad," Ubar said bluntly.

Enkidu did not answer immediately. In his world, things did not simply "go mad." A donkey went mad when it drank bad water; a man went mad when the sun beat on his bare head for too long. But a brass box filled with copper shafts, lead counterweights, and bronze gears had no mind to lose. It followed rules laid down by the ancients—rules carved into the shapes of its teeth and the spacing of its internal cams.

He stood up and walked back to the brass face embedded in the basalt wall. The green verdigris was thicker around the lower rivets, where moisture seeped out of the ancient stone foundation. He raised his lamp, holding the open flame close to the narrow slot where the perforated clay strips were inserted each morning.

Deep inside the slot, far past the reach of a human finger, something gleamed softly in the yellow lamplight. It was not brass, nor was it the dark bronze of the frame. It was a pale, dull metal—lead, perhaps, or tin—hardly visible beneath a thin film of black axle-oil.

Enkidu lowered the lamp and tapped the brass frame with the heavy brass handle of his stylus. The metal rang out with a dull, clear chime that hummed through the cool air of the vault.

"Ubar," he said softly.

"Yes, Quartermaster?"

"Tomorrow morning, when we prepare the tally strip for the garrison, we are going to lie."

Ubar’s eyes widened so far the white rings showed clearly in the lamplight. "Lie to the engine? Enkidu, that is high treason against the Royal Treasury! If the Chief Ledger Keeper finds a discrepancy between the quay receipts and the input strip—"

"The Chief Ledger Keeper hasn't come down these stairs since the last King died," Enkidu snapped. "His knees are too swollen with gout to manage the vault steps. He reads our summary tablets in his courtyard while eating grapes."

He turned away from the wall, his face set in hard lines. "We are going to tell the engine that the granaries are completely empty. We will report that the southern river barges were sunk by pirates, that the harvest failed, and that we have zero gur of barley in reserve."

Ubar looked horrified. "If it is already starving the men when the granaries are full, what will it do if it thinks we have nothing at all? It will allocate zero! The captain will have us flayed!"

"If it were a man, yes," Enkidu said, a small, grim smile touching the corners of his mouth. "A man who thinks he is poor will hoard his last crust of bread. But this is not a man. It is a set of balances. Let us see how the scales tip when we throw a mountain of air onto the pan."

He picked up a fresh piece of wet clay from the trough, slapping it down onto his working board with a firm, decisive smack. He pulled his reed stylus from behind his ear and began to cut the false symbols into the surface, his hand steady and fast.

Outside the storehouse, the sound of marching feet echoed down the stone alleyway. The evening watch was changing. Men with bronze-tipped spears and heavy leather shields were returning from the outer walls, their sandals heavy with dust, their bellies empty, waiting for a meal that was growing smaller by the day. Inside the dark vault, the ancient engine ticked on, oblivious to the city above, dropping its silent tallies into the cold dark beneath the earth.


This is a sample preview. The complete book contains 27 sections.