Eleven ports in a day: what a machine-readable contract buys you
On the evening of June 16, UnoDOS had been ported to a handful of machines, each one a project. By one o'clock the next afternoon it had eleven more. In the order they landed: Sega Master System, NES, Game Boy, Game Gear, Game Boy Advance, VIC-20, WonderSwan, PC Engine, Raspberry Pi, PinePhone, PowerPC Macintosh. First landing 20:23:14, last landing 12:58:53: sixteen hours and thirty-five minutes, with a seven-hour gap overnight where nothing happened at all.
I want to tell this story carefully, because the easy version of it is wrong in a way that matters. The easy version is "the AI cranked out eleven operating system ports overnight." What actually happened is that twenty hours earlier the project had done something that made each port cheap, and the ports were the receipt.
The day before
55d5a7fe, June 15, 23:17: "unodef: Phase 0 — author the first UNODEF contract (no behavior change)."
Until that commit, UnoDOS's definition of itself was the x86 source. If you wanted to know what a window was, how many bytes a window entry occupied, what the syscall table looked like, you read the assembly and the existing ports (C64, Amiga, Macintosh, Genesis, SNES) had each re-derived the answers by reading it too. The contract commit wrote those answers down once, as data, in unodef/unodef.toml, with a generator (unogen) that emits each port's system-interface include from it, and a design document (docs/CONTRACT-ARCH.md) whose stated goal is to "Lower the cost of a new port to a small, specified, generated surface." The same document does something quietly radical to the x86 code: it is "demoted from 'the definition' to 'first consumer + conformance oracle.'" The original is no longer the truth. It is the first thing that has to agree with the truth.
Two more things landed on June 16 before any port did. A redesigned window model, wmgen, went from RFC (22e47430, 12:29) to engine-wide adoption (868af032, 13:07) to QEMU-verified on x86 (a5f3d0d7, 16:00) in under four hours, and its entry shrank from 32 bytes to 16 (f2974722, 17:04). And the contract's conformance script, unodef/conformance/conformance.py, which the docs call "PORT-SPEC §6 made executable", carried what the repo calls the Phase-1 trust anchor: the generated x86 geometry must equal values already known to be good. If the generator ever drifted, the anchor would go red before any port was built on the drift.
Then, at 20:04, a docs commit (64165fce) recorded the decision: "3.1 window ABI decided + shipped on x86; SMS port is the lead next direction." Nineteen minutes later the SMS port landed.
The day
| # | port | landed | files, lines added |
|---|---|---|---|
| 1 | sms | 06-16 20:23 | 13, +1,509 |
| 2 | nes | 06-16 21:55 | 13, +602 |
| 3 | gb | 06-17 00:34 | 24, +2,786 |
| 4 | gg | 06-17 01:01 | 20, +3,262 |
| 5 | gba | 06-17 02:02 | 26, +2,956 |
| 6 | vic20 | 06-17 09:42 | 20, +2,243 |
| 7 | ws | 06-17 10:15 | 25, +2,222 |
| 8 | pce | 06-17 10:46 | 23, +2,778 |
| 9 | rpi | 06-17 12:28 | 29, +2,728 |
| 10 | pinephone | 06-17 12:40 | 22, +2,366 |
| 11 | ppcmac | 06-17 12:58 | 22, +2,492 |
Twenty-two commits, 27,944 lines added across 237 files, every one a direct commit to master, no branches, no merges, no reverts. Author date equals commit date on each, so the timestamps are wall-clock and they never overlap: this was one agent, working serially, in a single session that paused for the night. I say that plainly because the series plan for this post, written before anyone audited the history, called it "the agent-fleet workflow post." There was no fleet on June 16. The fleet comes later in this series, and it is a less flattering story.
Each port's commit message follows the same shape, and the shape is the method. The contract gets a [world.X] and [port.X] block and the generator emits gen/X/sys_gen.inc. The message asserts "Trust anchor stays green." The port climbs a milestone ladder, M1 to M3: boots and draws, then input, then the shared app set running. And the proof is not a claim. The Game Boy commit describes its test build: "AUTOTEST targets… replace the live $FF00 read with a scripted pad — one Mesen screenshot proves each via the same input path." The WonderSwan and PC Engine messages both contain the phrase "nothing faked." Each port reused a named donor: Game Gear "reuses [SMS's] hardware bring-up… and the Dostris algorithm"; PinePhone "reuses the Raspberry Pi AArch64 core"; PC Engine was "reusing the NES's 4-column icon-grid launcher." The messages count themselves as they go: "The SEVENTH fresh contract-driven port."
The generated surface per port is tiny. unodef/gen/nes/sys_gen.inc is seven lines; the SMS one is twenty-one. Everything else is hand-written assembly in the target's own instruction set, and this is where the skeptic should be listened to rather than argued with.
What "port" means here, honestly
The project's own comparison document classes these as "Native asm per-CPU, bare-metal reimplementations (each its own assembly, sharing no code)." At the current tip the hand-written per-port code runs from 1,643 lines (WonderSwan) to 7,141 (PinePhone). Nothing is cross-compiled. What is shared is not code but answers: the geometry, the ABI, the app behaviours, the shape of the launcher, the algorithm of each game. The parity document puts it exactly: "New ports re-express these in the native ISA, they are not redesigns."
So the honest claim is not that one codebase was recompiled eleven times. It is that eleven bare-metal reimplementations, each in a different assembly language, were produced in a day without any of them having to rediscover what the OS was, because the contract answered that before they started. That is a smaller claim than "eleven ports overnight" and a much more useful one, because it transfers. Your codebase will not be recompiled for the WonderSwan either. The question it raises for your codebase is whether the answers live anywhere other than the code.
Two more things the day did not produce. Every fresh port landed with the base apps and one game; four of the eleven reference apps (Tracker, OutLast, Pac-Man, Paint) and the storage layer were missing on all of them, and the parity document records it as "the same gap on every fresh port." Filling that gap took until July. And the contract's own plan was wrong about one target: CONTRACT-ARCH.md lists the GBA as "C (devkitARM)"; the port that shipped is ARM7TDMI assembly.
The afternoon, on metal
The part of the day that I think about most happened after the last port landed.
At 14:22 on June 17, dd2daafd: the NES port booted on a real AV Famicom, "first fresh-3.1 port on silicon", with the 2A03 sound chip and the $4016 controller read confirmed on the hardware. Same day, the Raspberry Pi build booted a real Pi 3 to the desktop, with two faults logged immediately and honestly: the background rendered brown (a channel-order swap) and input was serial-only, no USB keyboard. And the PinePhone image, emulator-verified that morning, "does not boot on a real PinePhone." That line is still in the claims ledger today. The clock hypothesis died on June 25; every display register has since been matched against the working reference; it still does not boot, and the ledger says "should be treated as untested on hardware" rather than hoping.
The PC Engine port is the one that shows the method's edge. It was "structurally complete but had only ever been eyeballed blind in Mesen… which is why it sat unverified." The resolution was not to stare at the emulator harder; it was to write a ROM-free, instruction-level HuC6280 harness that executes the built binary on the host and checks what it draws. A uniform-colour hang that had looked like a bug was declared "a Mesen capture/diagnosis artifact, not a code defect." That verdict lasted six hours. Flashed to a Turbo EverDrive, the port booted to a black screen, and two commits the same evening (662c0f15, bb4cb627) found two real bugs the harness could not see: an uninitialised video colour encoder, and the HuC6280's relocated zero page, which the harness's 6502 core did not model, so every store to the video chip had been landing in RAM. The port then ran on the real PC Engine, with its own caveat recorded: it boots under the TEOS firmware only; the stock Krikzz OS rejects the ROM with "Error 32". The harness that had declared it done is marked superseded, and the whole episode gets an essay of its own later in this series.
The ports plan states the order the project uses, and it is the opposite of the order most people would guess: "ROM-free scripted harness first, real emulator second, real hardware last." An emulator is a second opinion you cannot interrogate. A harness you wrote executes the actual bytes and lets you diff the screen. Real hardware is the only judge, and it is consulted last because it is slow and because by then you want to know exactly which question you are asking it.
Where the eleven stand now
From the claims ledger at v3.34.0: six of the eleven (NES, SMS, GBA, Pi, PinePhone, PowerPC Mac) carry the full eleven-app set. Five (Game Boy, Game Gear, WonderSwan, PC Engine, VIC-20) carry seven, with "Four apps are launcher placeholders" stated in each row. Three have run on real hardware: the Famicom, the PC Engine with its firmware caveat, the Pi 3 with its two faults. Seven are emulator or harness verified only, several with "Audio never verified by ear." One does not boot. The ledger's own headline sentence covers all of it: "'Emulator-verified' and 'runs on the real machine' are different claims, and the distance between them is where operating systems actually break."
And one postscript that belongs to a later essay but has to be flagged here because it is about these ports: in July, an audit of the project concluded that the June parity work on the eleven had never been done. The audit was wrong. The work was committed and pushed, on a branch the survey had not looked at. That is article 16.
The lesson
The number in the title is real and it is not the point. A port got cheap the moment the OS's definition stopped living in the code of its first implementation. Before the contract, every new target began by reading x86 assembly and guessing which parts were the OS and which parts were the x86. After it, a new target began by reading a TOML file, and the first implementation had become just another thing that had to match it.
The transferable version: ask what in your system is known only because the original code happens to do it that way. Window geometry. A wire format. The order two subsystems initialise in. Whatever the answer is, that is the thing a second implementation, a second team, or an agent working alone at two in the morning will get wrong, not because it is hard, but because nobody wrote it down as a fact rather than as code. The contract did not make the agent smarter. It made the questions fewer. The next essay is about where that contract came from: 106 syscalls, from ad hoc API calls in January to a machine-readable contract in June. UNODEF, the single source for twenty consumers, and why prose specifications die, comes a few essays later.
Sources: https://github.com/hmofet/unodos, commits 55d5a7fe through f918813a and dd2daafd, June 15-17; docs/CONTRACT-ARCH.md, docs/PORTS-PLAN.md, docs/PARITY-PUSH.md, docs/PLATFORM-COMPARISON.md, PLATFORMS.md as reconciled 2026-08-21.