Files
BFM-decomp/docs/wiki/How-to-AI-decomp.md
T

3.9 KiB
Raw Blame History

How to AI-decomp

The transferable part of this project: thirteen chapters on running a byte-exact decompilation with AI agents, written at the close of BFM-decomp for whoever runs the next one — any console, any compiler, any game. They are distilled from records kept as it happened (the decision log, the PhaseEnds, the accelerators ledger, the wave playbook, the retrospective), and every number is a BFM measurement given with its denominator, so you can calibrate rather than copy. Start with chapter 00.

Chapter One line
00 Read me first Who this is for, the four prerequisites, the thesis in a paragraph, what transfers and what does not
01 Governance A static constitution, two human gates per phase, autonomy between them, rules that accumulate, a digest, and a checkpoint written to be replayed
02 The byte gate A function is done when the whole binary still hashes with it compiled from source; everything else is a filter, and each filter's blind spot has a rule
03 Bootstrap order Baseline → pin by evidence → honest census → propagation and integration tooling → the codegen map and the permuter → then crack, leverage-first; a 12-point checklist
04 Oracles and instruments A true number about a narrower world; the rules R32–R63 as a working set; the differential-oracle harness to build at 0%
05 Cards, lanes, waves The card as fuel, lanes with different clocks, free work before paid, the wave step by step with each guard's measurement
06 The knowledge base The cookbook, the symptom index, the harvest→distil→next-card flywheel and its four laws, siblings' spellings before dials
07 The compiler's source "Unsteerable" means "not yet read": the codegen map, dumps not guesses, reproducers before probes, a wall verdict names the pass
08 Models and budgets Routing drafters by measured difficulty, budgets per lane, the orchestrator's depth-vs-breadth doctrine, delegation shapes that worked
09 Economics Yield by size and population, throughput and capacity, where the tokens went, what did not cost much
10 Integration and propagation The integration classes and the reconcile ladder; dedup, families and twins; the honesty rules
11 Publishing Keep the bytes out from day one — or the rewrite, done safely; the recorded contract; generated numbers; no-ROM CI; licenses
12 The failure museum Thirty-six failures that looked right at the time, each with why, and the rule it produced

What transfers: the gate discipline, the oracle ladder, lanes and cards, draw-time refusal, free-before-paid, per-population clocks, model routing, the flywheel and its inert-lever law, the governance cadence, the publishing discipline, and the shape of the economics. What does not: the compiler idioms — the knowledge base is per-compiler; the machine that builds it is universal.

The framework the governance chapter describes is published separately as ProjectArchitect; this repository is its largest worked example. The project-side pages of this wiki — the matching workflow, the dedup engine, verification and progress — are the same machinery seen from inside one project.