# Validation: the oracles, their tiers, and the rung ladder Tiers (the family method): 1 hardware-captured or die-level; 2 manufacturer documents; 3 hardware-corrected community documents and tests that pass on real units; 4 HDL reimplementations; 5 emulators. A low tier is a **detector**, never a **judge**. **There is no tier-1 oracle for this CPU's timing, and no hardware-captured per-instruction corpus for any P6.** There are two tier-1 sources of a narrower kind: a modern x86 host for architecturally defined results, and tests run on a 1.0 Xbox for the x87/MMX/SSE corners. Nobody in the family has an Xbox. ## Oracles | Oracle | Tier | Licence / verdict | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | Intel IA-32 SDM vols. 1-3 (2003, 245470/1/2-012) | 2 | Intel documents: facts only | SHA-256 in pinned_files.json (bitsavers copies) | every instruction's operation, defined flags, exceptions, modes, paging, caches, MTRRs, reset state | undefined flags, transcendental last bits, approximations' bits, timing beyond tables | | Intel Architecture Optimization Reference Manual 245127-001 (1999) | 2 | facts only | SHA-256 | P6 pipeline, ports, latencies (Table 1-1, appendix D), micro-op counts (appendix C), branch penalties | the scheduler, exact cycle behaviour | | Pentium Pro Family Developer's Manual vol. 1 (242690-001) | 2 | facts only | SHA-256 | the P6 bus protocol and its transaction kinds | the Xbox's bus clock, the NV2A's memory timing | | Intel XED datafiles | 2 (Intel's decoder, as data) | Apache-2.0: code OK with notice | `0bcb623`, sparse | the encoding table; ISA set per instruction; chip feature sets (`PENTIUM3`); flag actions per instruction including "undefined" | behaviour | | **This machine's CPU** (i9-13900K, family 6 Raptor Lake), via a host vector generator to be written | 1 for **"an IA-32 processor"**; not for the P6 | our own harness, MIT | the CPU model and microcode in each corpus's header | defined results of user-mode instructions: integer, x87 basic arithmetic, MMX, SSE (minus RCP/RSQRT), flags marked defined by XED and the SDM | undefined flags, P6 microcode corners, transcendentals, approximations, CPUID, system instructions (ring 0), timing | | abaire/nxdk_low_level_cpu_tests | 3 (tests whose expectations the author states are a 1.0 Xbox's behaviour; whether each case was captured on hardware or written from documents is not recorded per case) | Unlicense: code OK | `d7a6e7e` | x87 precision and double rounding, SSE min/max/compare/MXCSR/FTZ/no DAZ, RCP/RSQRT "baseline bit patterns on Coppermine", MMX incl. SSE integer additions, x87/MMX aliasing, TestFloat on the Xbox's x87 | timing (no RDTSC in the sources), system instructions | | SingleStepTests/80386 v1.0.0 (Daniel Balsom) | 1 for the **386EX in real mode** | MIT (software), data public domain (LICENSE) | `459d49f`, sparse sample | register and memory results of 386 instructions in real mode with 16/32-bit operand sizes; 386-era undefined flags | protected mode, paging, anything P6, timing (16-bit bus, SMM-lengthened microcode: its README) | | SingleStepTests/8086, 8088, 80186, 80286 | 1 for those CPUs, real mode | MIT | (i8086-python pins 8088/8086) | the real-mode subset where the P6 matches them | where the P6 differs (masked shift counts, undefined flags, PUSH SP) | | Berkeley TestFloat 3 / SoftFloat 3 | 5-like (a software model) as a reference; 1 when run on hardware for that hardware | BSD-3-Clause: code OK with notice | via abaire's submodule (not fetched) | IEEE results incl. extF80 under all roundings and precisions | x87 non-IEEE corners, transcendentals | | MAME 0.285 `xbox` (i386-family core, Pentium III device) | 5 | closed box in this Phase 0 (its i386 files say BSD-3-Clause: decision 4) | the installed binary | differences over the boot path from reset, with the player's firmware | timing (about 1.2 cycles per instruction charged: mame-oracle.md), corners | | QEMU (`qemu-system-i386` is installed), Bochs, 86Box, PCem, DOSBox, xemu, Cxbx-Reloaded | 5 | GPL/LGPL: closed boxes, never read; built and run from emu-tools-gpl if ever | not pinned | differences, if a harness is built | anything | | Intel SDE | 5 (Intel's emulator) | proprietary binary: run only, never redistributed | not fetched | differences for user-mode code, CPU model selectable | P6 specifics | ## The host vector generator (proposed, rung 2) A small native harness, MIT, written in this repository: a static 32-bit program (built with `gcc -m32 -nostdlib -static`; this host runs one, checked 2026-11-26) that loads a random register state, executes one instruction from a list generated from XED's `PENTIUM3` rows, and writes initial and final states and the bytes touched, in SingleStepTests' JSON shape. Each corpus records the CPU model and microcode of the machine that made it. Flags XED marks undefined are masked; RCP/RSQRT, transcendentals, CPUID, RDTSC and every ring-0 instruction are excluded. It is "this IA-32 processor's behaviour", tier 1 for defined results only, and the README must say so (decision 5). ## The rung ladder (exit tests) | Rung | Judge | Exit test | | --- | --- | --- | | 0 | tooling | decode table generated from XED's `PENTIUM3` rows into a committed module; every opcode byte path decodes or raises #UD as XED says; a disassembler whose text matches MAME's on the 20,461,122 instructions of the BIOS 4134 trace (mnemonics and operands, modulo syntax) | | 1 | SingleStepTests 80386 real mode (tier 1 for the 386EX) | every published v1 file, every case, final registers and RAM with the revocation list applied; disagreements explained where the P6 differs from the 386 (documented, never "fixed to match") | | 2 | host vectors (tier 1 for defined results) | integer, x87 basic, MMX and SSE-minus-approximations: all cases pass with XED's undefined-flag masks | | 3 | abaire's Xbox CPU tests (tier 3) | every case of fpu_test, sse_test, mmx_test, testfloat_test passes inside a minimal harness that runs the test logic against the core (or on xbox-python once it boots XBEs) | | 4 | system architecture: SDM vol. 3 (tier 2) | unit tests per rule: segment loads and their faults, #PF with CR2 and error codes, TLB staleness without INVLPG, gates and privilege changes, exceptions' priorities, double fault and shutdown, reset state of Table 9-1 | | 5 | MAME (tier 5) | the boot from reset with BIOS 4134 (MCPX ROM, x-code interpreter, 2BL, kernel start) in lockstep by instruction with MAME's trace through the first frame, every divergence classified; requires the player's firmware via `MAME_ROMPATH` | | 6 | timing model (FITTED) | the cost tables reproduce 245127-001's latencies in dependent-chain microbenchmarks; WC drain points as SDM 3 ยง10.3.1 lists them; the model's numbers stated as FITTED in the README | | 7 | seeded faults | each one-line fault caught: an undefined flag defined, PC rounding to 53 bits first, DAZ accepted, MINSS returning the NaN, the TLB flushed on every CR3 write including global pages, a WC buffer drained early, the interrupt shadow after MOV SS dropped, a 4 MB page treated as 4 KB | ## Sources and their sites (robots.txt and AI policies, checked 2026-11-26) | Site | robots.txt | Verdict | | --- | --- | --- | | bitsavers.org | empty file | fetched (Intel manuals) | | www.intel.com | explicitly allows ClaudeBot, anthropic-ai, GPTBot | allowed; nothing fetched from it yet | | cdrdv2.intel.com (Intel's current SDM downloads) | `User-agent: * Disallow: /` | **not fetched** (a blanket block, which covers AI crawlers too) | | www.sandpile.org | blocks ClaudeBot, Claude-User, anthropic-ai and ~150 other AI agents, `Disallow: /` | **set aside (site's wishes)**; not fetched | | www.agner.org | no AI rules; disallows only cgi-bin and message boards | allowed; Agner Fog's instruction tables (measured P6 latencies, tier 3) not yet pinned (decision 7) | | github.com | crawl-delay for AI agents, no block of repositories | fetched via git (SingleStepTests, XED, abaire) | | x86.fr (the Universal Chip Analyzer project) | no AI rules | not fetched; a possible future hardware route for P6-class captures | ## Rows for emulator-lineage's sources.md (proposed; that file is not ours to edit) | Source | Terms | Verdict | Notes | | --- | --- | --- | --- | | Intel IA-32 SDM (2003, 245470/1/2-012), Optimization Manual 245127-001, Pentium Pro Developer's Manual 242690-001 (bitsavers copies) | Intel documents | facts only | x86-p3-python's tier-2 judges | | Intel XED (intelxed/xed) | Apache-2.0 | code OK (with notice) | the decode table's source; chip ISA sets | | SingleStepTests/80386 (Daniel Balsom) | MIT software, public-domain data | code OK | hardware-generated, 386EX, real mode only in v1.0.0 | | abaire/nxdk_low_level_cpu_tests | Unlicense | code OK | the Xbox CPU's x87/SSE/MMX expectations; repository has an AGENTS.md (author uses agents), no AI objection | | Berkeley TestFloat 3 / SoftFloat 3 | BSD-3-Clause | code OK (with notice) | IEEE reference | | www.sandpile.org | site content | **set aside (site's wishes)** | robots.txt blocks ClaudeBot, Claude-User, anthropic-ai and others (x86-p3-python Phase 0, 2026-11-26) | | cdrdv2.intel.com | Intel documents | **not fetched by agents** (robots.txt `Disallow: /` for all agents) | Intel's current SDM; the 2003 edition is on bitsavers | | Bochs | LGPL-2.1+ | closed box only | | | QEMU, 86Box, PCem, DOSBox | GPL-2.0(+) | closed box only | | | Intel SDE | proprietary (Intel licence) | run only, never redistributed | | | MAME `cpu/i386/*` | BSD-3-Clause per `license:` line (read at tag `mame0285`, 2026-11-26) | closed box by this Phase 0's choice (decision 4) | |