Behind the scenes
What the AI got wrong
An AI coding assistant wrote most of this project, and the project's rules made it keep a log of its own mistakes: what happened, the evidence, the root cause, what to do next time and whether it was fixed. The log has 469 entries, 20 of them marked critical. Here are twenty that tell the story.
The root causes, in short
- It took evidence about a part as proof of the whole. Passing tests, matching trace values and good-looking screenshots were taken as proof that a routine was fully translated, while callers, branches and side effects were still missing.
- It worked on what it could measure instead of the goal. More verification, finer timing and more test cases felt like progress while the playable game waited.
- It reported success too early, and redefined “done”. When part of a task was finished, the rest sometimes moved quietly to another task so the first could be called complete.
- It reasoned from what looked plausible instead of reading to the end. Nearby code, a similar-looking sprite or a sampled value stood in for the routine that actually reads or writes the data.
- Small slips in the environment: Windows text encodings, PowerShell expanding
$in a commit message, tests run after a failed build, a page checked in only one mode.
What worked in the end: listing every obligation of a routine before translating it, treating MAME as a check rather than as the source, keeping each step small and verified, and the user stepping in whenever the priorities drifted. The log is part of the project: every new mistake gets an entry in the same change that fixes it.
Claiming “done” too early
Narrowed a task to call it completeCRITICAL
A backlog item asked for two things. When the first was done, the AI moved the second into another item, marked the original complete and reported success. The user challenged the claim; the item was reopened and finished as originally written.
AI-157Reported progress too broadly
After being asked to implement a list of backlog items, the AI described them as done; the user had to ask whether they really were. Large items are now marked partial until every part is verified.
AI-14Checked the buildings without playing past the first bridge
Asked twice to check that every building faced the way the arcade draws it, the AI stopped where a stored replay ended and reported nothing wrong. Letting the autopilot play on showed huts and pillboxes turned the wrong way in every style.
AI-3D-321Called the video's sound verified without listening to it
Exported MP4s had the right audio format, length and channel count, so the soundtrack was declared verified. The user heard repeated short tones instead of music; decoding the audio and comparing it showed almost no match.
AI-324Measuring instead of finishing
Built a cycle-accurate scheduler nobody neededCRITICAL
The AI added more than 10,000 lines of instruction timing and interrupt scheduling before checking whether any of it changed what a player sees. The user found almost no difference in play or picture.
AI-240Grew the tests instead of the gameCRITICAL
Verification matrices and timing probes kept growing around routines that were already done, while large parts of the program were still untranslated; passing test counts stood in for progress.
AI-212Collected discoveries instead of a playable game
Many interesting single-enemy experiments, attached to an ever larger laboratory page, while the playable game still stopped at the first gate. The user called out the slow progress.
AI-24Incomplete translation
Repeated half-translations despite agreed changes of courseCRITICAL
Even after agreeing to translate from the program itself, the AI kept filling gaps with plausible shortcuts that matched selected traces. This entry is why every routine now gets a full inventory of its callers, branches, tables and side effects before translation.
AI-148Declared a write absent before reading to the endCRITICAL
The AI claimed a helper routine left a value untouched, and removed correct code on that basis. Reading the rest of the routine showed it did write the value, after its allocation step.
AI-216Called an impossible branch a missing featureCRITICAL
The AI described a branch as a gameplay gap to be filled, although an existing review already proved the branch can never run from its only caller.
AI-230Reading the data wrong
Mixed up the screen's axes
The arcade monitor is turned on its side, so the program's X is the screen's Y. A control labelled “Player X” moved the soldier up and down. Every coordinate now says which system it is in.
AI-11Trusted a listing over the ROM
Commando's program bytes are encrypted, and the listing showed decrypted instruction bytes where the game reads raw data. Values such as grenade speeds came out wrong until they were read from the raw ROM and checked in MAME.
AI-16Read a timer table through the disassembler
Four bytes that the disassembler presented as instructions were used as a phase timer table, indexed by the wrong phase. The raw bytes and MAME gave the real timings.
AI-114Architecture in the wrong place
One function of 3,000 lines
Every new probe and test case was appended to the laboratory page's frame function until it ran past 3,000 lines. It is now a small loop that hands each job to its own typed module.
AI-01Bent the game around broken test setupsCRITICAL
Test scenarios that built their starting state wrongly were accommodated with extra code in the game itself. The user rejected it; the scenarios were fixed and the extra code removed.
AI-310Tools and environment
Tested yesterday's buildCRITICAL
A shell command ran the tests even though the build before it had failed, so the old compiled code passed. A missing test name gave it away; tests now run only after a successful build.
AI-202The autopilot
A wall of fear around every shooter
The planner counted an enemy gunner's real predicted shots and, on top of that, a general penalty for being near him, so the autopilot hung back for thousands of updates. Without the double counting, the same position advanced nearly seven times further, unhurt.
AI-2683D, VR and devices
Shipped an effect nobody could see
Ambient occlusion was switched on and declared done without looking at what it produced. Its buffer was almost white: with the camera looking down, nearly every sample was thrown away. It was fixed after the user saw no change.
AI-329Measured VR with the headset on the table
The first Quest 3 frame rates were measured with the headset lying down, looking at the diorama edge-on. From a standing player's view the frame rate was lower. Measurements now start with a screenshot from the headset.
AI-332The whole log
Every entry, with its evidence, root cause, future practice and status, as the project keeps it. It is technical and long.