Skip to content

Latest commit

 

History

History
191 lines (140 loc) · 34.8 KB

VERIFICATION.md

File metadata and controls

191 lines (140 loc) · 34.8 KB

P3P3DS — Technical Claim Verification Registry

This registry tracks the verification status of all technical claims, hardware parameters, memory addresses, and architectural assumptions in the P3P3DS project, adhering to the MEASURE FIRST engineering principle.

Current execution and coverage measurements: CURRENT_STATE.md. Earlier milestone/decoder rows below record historical observations and must not be read as the latest frontier or current lowering coverage.


p3p-cpk patch (#83, 2026-11-06)

  • [VERIFIED] The Russian translation's EBOOT patch applies to the local decrypted EBOOT with a matching Adler-32 (one window). 47,707 bytes differ: .rodata 29,798, .data 17,907, .text 2.
  • [VERIFIED] python tools/cpk/check.py: 31/31 CLI tests, with synthetic ADD, COPY, RUN, overlapping copy, bad checksum, secondary compression, truncated input and 150 damaged patches (exit 0 or 2, never a panic). Unit test of the RFC 3284 code table landmarks.

p3p-cpk diff (#76, 2026-11-06)

Local ULUS-10512 ISO, Windows, Zig 0.17.1 -Doptimize=safe:

  • [VERIFIED] All of umd0.cpk as the mod, against the image's umd0.cpk and umd1.cpk: mod files=5860 added=0 changed=0 same=5860 case_differs=0 base files=6198, exit 0, 6 s. Each file is extracted from both sides.
  • [VERIFIED] A mod built from real game files, compared with both archives: AICALC.TBL stored uncompressed is same (compressed in the game); battle_pack2.bin with one byte flipped, same size, is changed; v100001.afs from umd1.cpk is same; a lower-case name is same ... case-differs; a new file is added. Exit 1. Against umd0.cpk alone the umd1.cpk file is added.
  • [VERIFIED] The CriFsV2Lib sample CPK, written by another tool: 3 files added, exit 1.
  • [VERIFIED] python tools/cpk/check.py: 24/24 CLI tests, including 150 damaged mods through diff (exit 0, 1 or 2, never a panic).

CPK host CLI (#65, 2026-11-06)

Local ULUS-10512 ISO, Windows, Zig 0.17.1 -Doptimize=safe, oracle experiments/cpk-check (CriFsV2Lib):

  • [VERIFIED] list: umd0.cpk (5,860 files) and umd1.cpk (338) match the oracle's listing line for line in name, offset, stored and extracted size.
  • [VERIFIED] extract: all 6,198 files are byte-identical to the oracle's extraction, one oracle process per file and cmp; 5,018 of them are CRILAYLA-compressed.
  • [VERIFIED] check-trace on an --io-trace from the 20M replay: both print cpk reads=40 header/toc=4 file_matched=36 mismatched=0 unclassified=0 non_cpk=2493, exit 0. With the hash of one file read changed, both print the same MISMATCH line and mismatched=1, exit 1.
  • [VERIFIED] list flags a file as compressed from the TOC (ExtractSize differs from FileSize), the same 5,018 files as reading each file's CRILAYLA magic. extract still decides by the magic.
  • [INFERRED] Reading the magic of every file made a first list take 33.2 s, against 0.13-0.14 s when repeated: 5,860 reads across the image on a cold disk. Only that one cold run was seen.
  • [VERIFIED] Warm file cache, final build: list umd0.cpk 46-67 ms against the oracle's 89-142 ms (5 runs each); check-trace 47-56 ms against 217-865 ms (3 runs each). Both are mostly process startup. What matters here is that the tool needs no .NET SDK or NuGet restore.
  • [VERIFIED] python tools/cpk/check.py: format check, Debug and safe unit tests, 18/18 CLI tests on synthetic fixtures: stored and CRILAYLA files, masked tables, an ISO, path traversal, truncated tables, 250 randomly damaged archives through list and extract (exit 0 or 2, never a panic).
  • [VERIFIED] The build before the stdout fix exits with code 3 (panic) in test_output_to_a_full_asynchronous_pipe, so the test detects the bug. The pipes of Python's subprocess are synchronous and never showed it.
  • [VERIFIED] CI job CPK tool passes on ubuntu-24.04 and windows-2022, including the CLI tests. On Linux the asynchronous pipe test is skipped.

BinDiff host CLI (#59, 2026-11-05)

  • [VERIFIED] tools/bindiff/src/diff.zig::parseElf checks ELF32/LE/MIPS, table and payload bounds, load sizes, address overflow and section-name termination. It accepts PSP PRX type 0xFFA0 as in recomp/PSPRecomp/include/psprecomp/elf32.hpp::kElfTypePspPrx. It deliberately reads metadata only; PSP loading, relocations, imports and Allegrex analysis remain in PSPRecomp. compareElf pairs entries by index and compares file payloads; NOBITS has no file payload.
  • [VERIFIED] Windows, Zig 0.17.1: python tools/bindiff/check.py --zig <compiler> passes format checking, 4/4 Debug and 4/4 safe unit tests, safe build and 14/14 Python CLI tests. tools/bindiff/test_cli.py::pair compares actual repeated JSON output bytes; test_randomized_positional_oracle checks 40 seeded file pairs against an independent Python oracle. Other cases cover structural additions/removals, content and header changes, absent section tables, non-UTF8 names, malformed inputs, read/write errors and input/report limits. No speed comparison with other languages was measured.
  • [VERIFIED] The official Windows 0.17.1 archive matches SHA-256 b03f477a1943673e02aca0f570e8030dffd536ce1f45cbc4d3326ec31159562e from https://ziglang.org/download/index.json. The installed compiler reports 0.17.1 in the installation process and a fresh PowerShell process using the persisted user PATH. Installation file lengths sum to 378,964,486 bytes (19,520 files), excluding archives/build caches.
  • [VERIFIED] Windows GetFileInformationByHandleEx(FileStandardInfo).AllocationSize summed across those files reports 407,097,752 allocated bytes; local measurement: .tmp/zig-install/disk-usage.json. The first Windows CI formatter failure was CRLF checkout conversion; .gitattributes pins LF for the tool. A clean core.autocrlf=true index checkout passed the unchanged formatter gate, followed by all BinDiff checks (.tmp/bindiff-worktree/.tmp/bindiff-check-eol.log).
  • [VERIFIED] After merging origin/master (0b4845e), a separate no-game Windows Release CMake build and full CTest completed (19 passed, 6 skipped, no failures); local evidence: .tmp/bindiff-worktree/.tmp/ctest-bindiff-merged.log. BinDiff checks also passed again (bindiff-check-merged.log in the same directory). Local P3P ELF self-comparison emitted no structural/byte changes and code 0 (.tmp/bindiff-worktree/.tmp/bindiff-evidence/real-elf.json). No proprietary fixtures are committed.
  • [VERIFIED] python tools/bindiff/check.py --download verified/extracted the official Windows archive and passed all checks (.tmp/bindiff-worktree/.tmp/bindiff-check.log). A safe x86_64-linux cross-build passed (.tmp/bindiff-worktree/.tmp/bindiff-linux-build.log). [UNVERIFIED] Linux execution before CI. .github/workflows/ci.yml::bindiff installs Python 3.13 and downloads official SHA-256-pinned Zig 0.17.1 for each Windows/Linux runner, then runs the shared checks without game data.

Host time audit and Rust candidates (#50, 2026-11-05)

  • [VERIFIED] Commit f876554, Windows 11, i5-12400F (12 threads), host GCC 16.1 (WinLibs), devkitARM GCC 16.1. Each process was measured on its own, single runs unless noted. Logs and the summary are under .tmp/rust-audit/ (REPORT.md, builder_run1.log, ninja_stats.txt, ctest.log, interp_diff*.txt/.log, run/, python_tools.txt).
  • [VERIFIED] Builder CLI, clean ISO -> .3dsx with a package built by make_release.py (--cli --iso <ISO> --devkitpro <dir> --work <fresh dir>, automatic job count chose 7): 282 s total. ISO read and EBOOT decryption 0.36 s, psp_recomp generation 8.1 s (2.9 %), devkitARM GCC on 238 units 252.1 s (89.4 %), link 19.6 s (6.9 %), 3dsxtool/smdhtool 2.0 s. Stage boundaries are taken from the timestamped CLI progress lines.
  • [VERIFIED] Host development build, last run of each target in build/.ninja_log, commands that produce several outputs counted once: host GCC on the 237 AOT units 5,676 CPU-s (95.9 %), the single psp_recomp command 9.1 s (0.2 %), all runtime, test and tool sources and links about 4 %. No-op build 1.5 s.
  • [VERIFIED] ctest --test-dir build -j6 --output-on-failure: 27/27 in 57 s, of which p3p_interpreter_differential 50 s. Alone it takes 28.0 s; with 1 function 0.74 s, with 100 functions 7.35 s (default 400 functions, 1,200 cases, 27,640 guest transfers). [INFERRED] Most of the about 22 ms per case goes into restoring and copying the 32 MiB guest RAM and the VRAM for each of the two executions (tests/test_interpreter_diff.cpp, restore() and execute), not into guest code. Tracked in #48.
  • [VERIFIED] PC runner, diagnostic build, --run-until-blocker --max-dispatches 20000000 --ms0 .tmp/ms0: 52.3 s and 52.6 s, 29.5 s with --render-from 9999999. Both event dumps have SHA-256 1a5f566002148933522c869ed3febb9eae3d652764501d20e8437b3b1898e605, the same as the earlier replays. Sampling profile (--sample, tools/profile_symbols.py, 26,410 samples): GE software renderer 38 %, system DLLs 30 % (ntdll 22.9 %, [UNVERIFIED] cause), psprecomp runtime 21 % (event maps with std::map<std::string> about 8 %, guest memory accessors about 12 %), AOT units 2.9 %. Tracked in #49.
  • [VERIFIED] Python tools: prepare_game.py --check-only 0.24 s, full extraction of 1.2 GB 38.8 s against 29.3 s for a plain cp of the 1.32 GB ISO on the same disk; run_autotests.py 2.7 s, verify_aot_layout.py 0.23 s, summarize_events.py on a 10 MB dump 0.22 s, sync_agent_skills.py --check 0.12 s.
  • [INFERRED] No measured stage contains P3P3DS CPU-bound code that is at least 10 % of the stage and limited by the language. Our hot spots come from algorithms and data structures (whole-RAM copies, per-pixel software rendering, string-keyed event maps), which C++ changes address without a second toolchain. The dominant costs are external: GCC on generated code and the devkitARM linker (#47). Decision: no Rust migration of host tooling; revisit only for a new CPU-bound host tool. This agrees with #34 and #36. The 3DS runtime was not re-measured; its hardware split is in CURRENT_STATE.md (2026-10-11).

PSPRecomp AUTO lowering benchmark (#34, 2026-11-04)

  • [VERIFIED] The AUTO emitter calls four text passes after emit_function_source (recomp/PSPRecomp/tools/codegen_main.cpp:1739-1742). The experiment timed analyze_program, initial emission, each pass, and unit writes separately in a scratch copy of generate_auto from db836c1. The prototypes replaced the aligned-memory regex at its 20 emission sites with an enum for six load/store operations. One used a C++ switch, the other a Rust match behind one C ABI call per emitted access. The Rust variant included DLL loading and calls in the measured emission time. Both retained the old prefixes on the manual emission path.
  • [VERIFIED] Windows x64, GCC 16.1.0 (-O3 -DNDEBUG -std=c++20) and Rust 1.98.0 (x86_64-pc-windows-msvc, -O --crate-type cdylib). Three rotating rounds with a fresh directory per variant. Command shape from the repository root: <variant.exe> profiles/p3p/game/eboot.elf --auto <fresh-dir> 0x08804000 16384 build/generated/patches.txt --no-transfer-records. ELF SHA-256 be2abbd43a4ae7ce5aa2f1f146083ffe0d924fc2eb1874e6fcdc21cba40d49db; patch list SHA-256 0c8682ea7e1e5c54aab1158d26c8543aea644b354dd1ad158a3e4762f6db49df.
  • [VERIFIED] Median baseline stages in seconds: analysis 0.50, emission 0.58, GPR 0.21, FPR 2.39, aligned memory 2.31, VFPU 28.41, unit writes 1.03. Other work is included in wall time. Median wall time was 37.26 s baseline (37.23–38.57), 38.53 s C++ (36.46–43.28), and 35.88 s Rust (35.72–37.44). Median emission was 0.59 s for C++ and 0.87 s for Rust. Median process peak working sets were 219.8, 220.1, and 220.4 MiB respectively, including the Rust DLL in the same process.
  • [VERIFIED] The nine comparison runs and initial instrumented run matched the unmodified generator by filename and SHA-256 for all 240 outputs, including 237 units, the header, the registry and auto_codegen_report.json. Local artifacts: .tmp/psprecomp-34/{build.ps1,benchmark.ps1,instrument.py,memory_lower.rs,timings.txt,output-sha256.txt}. The SHA-256 of the manifest is 6ee69504bda0cb7f4ba46326564092ac108b0db0e9ebb91248e205344ee40861.
  • [INFERRED] Both prototypes remove the aligned-memory text scan. Unit-write time varied from 0.72 to 5.64 s across the runs, and the timed Rust emission did not consistently beat C++ across the three rounds. This experiment does not isolate a Rust speed advantage or demonstrate a correctness improvement over typed C++. Adoption would add Rust build tooling and a DLL in the measured configuration. Decision for #34: retain the production C++ path. The largest measured opportunity is the separate VFPU pass.

Production VFPU prefilter (#38, 2026-11-05)

  • [VERIFIED] recomp/PSPRecomp/tools/codegen_main.cpp::replace_vfpu_calls uses a literal search before matching the existing regex at each candidate. lower_constant_vfpu_accesses retains the order, regex patterns and replacement formats from b35d2cc.
  • [VERIFIED] Windows Release build (cmake --build build --config Release --parallel 6) generated 237 units and rewrote zero in its existing output directory. Independently, psp_recomp profiles/p3p/game/eboot.elf --auto <fresh-dir> 0x08804000 16384 build/generated/patches.txt took 9.26 s with the filter and 40.31 s before it. A fresh run with --no-transfer-records took 7.50 s. Each of the two modes matched its own original 240-file manifest by filename and SHA-256. tools/verify_aot_layout.py <fresh-dir> 237 16384 passed for both modes. Timings, original diagnostic output, fresh outputs, manifests and build log are in .tmp/vfpu-production/. The earlier unmodified release output used for comparison is .tmp/host-language-research/a.
  • [VERIFIED] SHA-256 of the diagnostic manifest (diagnostic-sha256.txt) is 0f3b7406d056ad0e6e268f46bacca6f12c064c62a08a6acaadc4956a499b6ff1. SHA-256 of the release manifest (release-sha256.txt) is 6ee69504bda0cb7f4ba46326564092ac108b0db0e9ebb91248e205344ee40861.

Thread-entry frontier provenance micro-sprint

  • [VERIFIED] The SceWaveMain UID 5 initial context switch installs its stored entry 0x08B64FE0 without a guest JAL to that address. Evidence: core/src/hle/threadman.cpp::start_thread, platform/pc/telemetry.hpp::blocker_type, .tmp/thread-entry-before.json and .tmp/thread-entry-check/report.json. The new thread_entry_transfer record is one-shot and is invalidated by guest execution/transfer or another switch.
  • [VERIFIED] The relocated ELF analyzer (.tmp/thread-entry-analysis_functions_auto.csv, sub_08B64FE0) and p3p_frontier_check --thread-entry report a closed supported CFG of 454 instructions and 107 blocks with an independent predecessor return/delay slot. The 21-seed AOT executes that entry and reaches missing sceAudioOutputBlocking, NID 0x136CAF51 (references/uofw/src/kd/audio/exports.exp:51). Full CTest 12/12 and two identical final replays (SHA-256 9999960D59DC3166FE03051390EAD0DA4139321DD3A79081AF1EDBC6034A629B) confirm this PC-host result; no hardware execution or audio output is claimed.

VFPU text lowering comparison (#36, 2026-11-04)

  • [VERIFIED] recomp/PSPRecomp/tools/codegen_main.cpp::lower_constant_vfpu_accesses applies 12 ordered regex replacements to each generated unit. A Windows scratch harness based on ddd57e1 timed each replacement. It compared the original implementation with a C++ literal-name prefilter that invokes the existing regex only at candidate offsets, and with a Rust parser that validates arguments at those offsets. All variants kept the order of the 12 rules. The Rust pass timer includes one DLL call, UTF-8 validation and the output copy per unit.
  • [VERIFIED] Three rotating rounds used fresh output directories and the same Windows executable and ULUS-10512 inputs. GCC 16.1.0 with -O3 -DNDEBUG -std=c++20, Rust 1.98.0 with -O -C panic=abort --crate-type cdylib on x86_64-pc-windows-msvc. Command shape from the repo root with P3P_VFPU_EXPERIMENT set to baseline, cpp or rust: profile.exe profiles/p3p/game/eboot.elf --auto <fresh-dir> 0x08804000 16384 build/generated/patches.txt --no-transfer-records. ELF SHA-256 be2abbd43a4ae7ce5aa2f1f146083ffe0d924fc2eb1874e6fcdc21cba40d49db; patch list SHA-256 0c8682ea7e1e5c54aab1158d26c8543aea644b354dd1ad158a3e4762f6db49df.
  • [VERIFIED] Median VFPU stage time was 29.747 s baseline (29.344–30.904), 0.835 s C++ (0.796–1.024), and 0.362 s Rust (0.351–0.368). Baseline medians for the individual replacements ranged from 2.406 s for scalar reads to 2.530 s for vcmp. Median generator wall times were 43.98 s (40.11–67.55), 21.11 s (13.24–23.45), and 15.05 s (9.54–18.87). File writing and other work outside the VFPU timer varied across runs. Median peak working sets were 219.9, 219.6, and 219.7 MiB respectively.
  • [VERIFIED] All nine runs matched the unmodified generator by filename and SHA-256 for all 240 outputs. The C++ filter matched each rule on the game corpus. A separate fixture exercised all 12 Rust rules, nested scalar reads/writes and unsupported argument forms against the original regex patterns. Artifacts are under .tmp/vfpu-lowering/ (vfpu.rs, instrument.py, build.ps1, benchmark.ps1, verify_fixture.py, timings.txt, per-run stderr, output-sha256.txt). The manifest SHA-256 is 6ee69504bda0cb7f4ba46326564092ac108b0db0e9ebb91248e205344ee40861.
  • [INFERRED] The literal filter accounts for about 98% of the measured reduction in VFPU stage time. The Rust parser saves another 0.47 s per complete generation compared with this C++ prototype. The prototype also replaces the 12 regex rules with a separate parser and uses a Rust-built DLL. The comparison supports evaluating the small C++ filter for production first. These are Windows generator measurements with the original C++ output.

Audio reservation micro-sprint

  • [VERIFIED] ULUS-10512 first calls sceAudioChReserve(-1,448,0) at 0x08B64264; after return it tests the sign of V0 and stores the channel number. Evidence: build/generated/p3p_generated.cpp:L_08B64254/L_08B6426C, .tmp/audio-before.json, .tmp/audio-reserve-1.json. A temporary register probe established A3=0x08E10000 and V0_before=0x08E10CA0 and was removed.
  • [VERIFIED] uOFW references/uofw/src/kd/audio/audio.c:440-500, PSPSDK psp/pspsdk/src/audio/pspaudio.h:31-56,69-97 and inspected pspautotests references/pspautotests/tests/audio/sceaudio/reserve.expected:1-70 support descending free-channel selection and the implemented channel, size and format errors. The PC runtime reserves channels 7, 6, 5, 4 and resumes guest execution; focused test tests/test_hle_audio.cpp and two deterministic replays establish the limited host behavior. No hardware autotest was run, and no audio samples were played.

Observed UMD wait micro-sprint

  • [VERIFIED] The executed P3P call at 0x08AA1608 passes A0=0x20 to sceUmdWaitDriveStat and resumes at 0x08AA1610 without testing V0; evidence: build/generated/p3p_generated.cpp:L_08AA1608/L_08AA1610, .tmp/umd-wait-before.json, .tmp/umd-wait-final-1.json. uOFW calls this bit SCE_UMD_READABLE (references/uofw/include/mediaman.h:55-67); PSPSDK labels the same numeric bit PSP_UMD_READY (psp/pspsdk/src/umd/pspumd.h:46-53).
  • [VERIFIED] The limited host handler succeeds only for mask 0x20 with medium present and activation requested; otherwise it stops explicitly. Full CTest is 11/11; two final event files are identical at SHA-256 E9CBBB420D3549174813B41B762171D4C78E5F0392C6EBA5135386A758044368, reaching missing guest function 0x08A9B934 from 0x08AB29BC. [INFERRED] The existing flags approximate readable status for this PC launch; no physical drive or filesystem mount was verified. See docs/CURRENT_STATE.md for full evidence and limits.

New reference snapshot and oracle research (2026-09-28)

  • [VERIFIED] Seven source snapshots were imported with exact SHAs (registry docs/UPSTREAMS.md, removed on 2026-10-06 when the research sources stopped being tracked; see its git history). The imported directories have no nested .git; upstream license files remain present where supplied. GLASS has an MPL-2.0 notice in references/GLASS/Include/GLASS.h:4-8 but no root license file. The comparative evidence and limits are in docs/REPOSITORIES.md section 2.
  • [VERIFIED] PPSSPP's WebSocket debugger event protocol is implemented in references/ppsspp/Core/Debugger/WebSocket.cpp:30-50; CPU state, breakpoint and memory handlers are under Core/Debugger/WebSocket/. This confirms an API surface, not a successful P3P capture.
  • [UNVERIFIED] The proposed differential oracle has not yet observed original ULUS-10512 execution in PPSSPP. No HLE or runtime conclusion follows from the static API survey alone.
  • [VERIFIED] Research-sprint regression on this HEAD: cmake --build build --config Release --parallel 2, full ctest --test-dir build --output-on-failure (11/11 on rerun), build/p3p_pc_bootstrap.exe --verify-bootstrap (PASS), and two --run-until-blocker --dump-events .tmp/reference-replay-{1,2}.json runs. Both JSON files have SHA-256 33505F22B89F16D42B3EBCA31A2C808A550BA56DC68F0D33E55202BAD9861566; both final blockers are missing sceUmdActivate at 0x08B80124 from 0x08AA15F8 on thread UID 2. An initial sandboxed CTest run could not create a temporary CSV inside workspace .tmp; the full rerun with workspace file access passed. No runtime frontier changed.

UMD callback registration micro-sprint

  • [VERIFIED] Medium presence is explicit per-kernel state, absent by default and present by PC bootstrap configuration. sceUmdCheckMedium returns 0/1 from that state; tests exercise both states and removal. Contract: references/uofw/include/mediaman_user.h:74-79, psp/pspsdk/src/umd/pspumd.h:69-73. Native replay returns 1 to 0x08AA15EC, then stops at missing sceUmdActivate (0x08B80124). Two event traces match SHA-256 33505F22B89F16D42B3EBCA31A2C808A550BA56DC68F0D33E55202BAD9861566; see CURRENT_STATE. Presence does not imply implemented activation/readiness/mounting.

  • [VERIFIED] Registration requires a Callback-type UID; zero/invalid/non-callback return 0x80010016, valid/repeat return zero and retain one registered UID. Primary sources: references/uofw/src/kd/mediaman/mediaman.c:590-607, references/uofw/include/mediaman_user.h:54-62, references/pspautotests/tests/umd/register.expected:1-6. Implementation: core/include/p3p3ds/hle/umd.hpp::UmdState::register_callback; deterministic regression: tests/test_hle_umd.cpp.

  • [VERIFIED] P3P registers owned callback UID 4 at stub 0x08B80114, returns zero and enters guest 0x08AA15DC; next missing service is sceUmdCheckMedium at 0x08B800EC. Two native replays match SHA-256 26DD4607202D819D5516386AD7F4D5E7D73FDB266ED4C469A103A3F40DDEADFB. See CURRENT_STATE for reproduction and limitations; callback delivery and visual output remain unimplemented/unproven.

Status Classification

  • [VERIFIED]: Confirmed against primary source code, executable disassembly, or empirical hardware/runtime test.
  • [INFERRED]: Supported by architectural evidence, but not yet directly measured on target hardware.
  • [UNVERIFIED]: Hypothesis requiring experimental testing.
  • [WRONG]: Refuted claim (kept for historical record to prevent regressions).

1. Game & Executable (Persona 3 Portable ULUS-10512)

[VERIFIED] Automated frontier checkpoint: 17 execution-proven managed seeds, native user execution, stable bootstrap and 10/10 tests. First committed CPU VRAM store: 0x08AB2B38 (0xAE220004) -> 0x04154004, 4 bytes, UID 2. Sources: profiles/p3p/config/frontier_checkpoint.json, platform/pc/main.cpp VRAM observer, GuestMemory::store32; reproduction and hashes in CURRENT_STATE.md. [INFERRED] Allocator/resource metadata; not a verified pixel/frame.

Claim Status Primary Source / Citation Notes
P3P US Product Code is ULUS-10512 [VERIFIED] p3p/p3p-patches/ULUS10512.ini:1 Confirmed as primary target.
PSP User PRX Virtual Base is 0x08804000 [VERIFIED] psp/pspsdk/include/pspkerneltypes.h, recomp/PSP-recompilation-project/README.md:55 Standard base for decrypted game ELFs.
Runtime Entry Point is 0x08804108 (module_start) [VERIFIED] profiles/p3p/game/eboot.elf (header e_entry + base 0x08804000), experiments/p3p-analysis/independent_analysis.json Exact initial execution address.
Total relocations in executable: 178,513 [VERIFIED] recomp/PSPRecomp/src/elf32.cpp:206-296, experiments/p3p-analysis/analyze_elf.py 81,398 R_26, 45,148 R_LO16, 37,395 R_HI16, 14,572 R_32 (0 invalid, 0 unsupported).
Total library import stubs: 221 across 22 libraries [VERIFIED] experiments/p3p-analysis/compare_analysis.py Exact multiset match (Counter / canonical sorted tuples) between independent parser and PSPRecomp for all 221 import tuples.
Recompiled P3P module_start executes on PC [VERIFIED] platform/pc/main.cpp, runtime execution test build/p3p_pc_bootstrap.exe Recompiled C++ code executes guest blocks and branches natively.
Deterministic execution milestone reached [VERIFIED] build/p3p_pc_bootstrap.exe --verify-milestone Starts at 0x08804108, executes SysMemUserForUser::0x35669D4C (sceKernelSetCompiledSdkVersion600_602, SDK 0x06020010), returns to 0x0880413C, executes SysMemUserForUser::0xF77D77CB (sceKernelSetCompilerVersion, version 0x00030306), returns to 0x08804148, branches to out-of-line block 0x08804210, jumps back to 0x08804188, creates thread via ThreadManForUser::0x446D8DE6 (sceKernelCreateThread), starts thread via ThreadManForUser::0xF475845D (sceKernelStartThread), context switches to user_main [UID 2] at 0x0880421C, executes its prologue and initial blocks, and halts on call to uncompiled sub_08B4E6A0 at PC 0x08B4E6A0, $ra=0x08804268.
Control-flow target breakdown: J vs JAL [VERIFIED] experiments/p3p-analysis/analyze_elf.py 21,845 j sites (14,362 targets), 59,553 jal sites (7,698 targets), combined 81,398 sites (21,470 targets).
All .text instructions recognized by baseline decoder [WRONG] Empirical decoder test (psprecomp::decode_allegrex) 912,337 instructions (99.9209%) recognized; 722 instructions (0.0791%) currently unsupported in baseline (madd, break, msub).
Baseline decoder recognizes 99.92% of .text (912,337 / 913,059) [VERIFIED] historical (superseded: now 912,808 lowerable, 251 unsupported, all break; CURRENT_STATE.md) Empirical decoder pass over .text using verify_p3p_decoder Exactly 722 instructions unsupported: 468 madd (fn=0x1C), 251 break (fn=0x0D), 3 msub (fn=0x2E). Sum: 468 + 251 + 3 = 722.
Codegen lowering covers 99.91% of .text (912,275 / 913,059) [VERIFIED] Audit of codegen_main.cpp lowering rules in verify_p3p_decoder 912,275 instructions directly lowerable; 62 decoded instructions (10 vfpu1, 52 vfpu4) hit unlowered generic VFPU stub.
Intro Skip Hook address is 0x002594A4 (li $v0, 6) [VERIFIED] p3p/p3p-patches/ULUS10512.ini:4 Forces title screen state.
Mod Loader path prefix is ms0:/PSP/GAME/P3P/%s at 0x00395EE4 [WRONG] p3p/p3p-patches/ULUS10512.ini:6-9 The four words 0x3A30736D 0x5053502F 0x5033502F 0x0073252F (little-endian) spell ms0:/PSP/P3P/%s, as used by the runners and CURRENT_STATE.md.
Mod Loader path prefix is ms0:/PSP/P3P/%s at 0x00395EE4 [VERIFIED] p3p/p3p-patches/ULUS10512.ini:6-9; profiles/p3p/config/mod_paths.hpp Memory string replacement for loose file redirection. Both runners mount the alias at the profile's prefix.
Mod Loader search sequence is bind/ -> mod.cpk -> mod1.cpk -> mod2.cpk -> mod3.cpk [VERIFIED] p3p/p3p-patches/ULUS10512.ini:10-24 Verified from community CWCheat table.
P3P event scripts are compiled .bf bytecode, not native MIPS [VERIFIED] tools/Atlus-Script-Tools/Source/AtlusScriptCompiler/, p3p/Persona-3-Portable-Mod-Menu/ModMenu.flow Game engine uses an internal bytecode interpreter.
P3P uses CriWare CPK archives (data.cpk) [WRONG] for the name: ULUS-10512 uses USRDIR/umd0.cpk, umd1.cpk, MEMST.CPK (ISO9660 listing); CPK format itself [VERIFIED] tools/CriFsV2Lib, tools/CriPakTools, UMD file structure Main asset container.
P3P has exactly 21,965 individual functions [INFERRED] experiments/p3p-analysis/p3p_report.json 21,965 are heuristic analyzer seeds (prologue signatures / call targets); actual verified function boundaries require execution-driven discovery.
P3P has no self-modifying code [UNVERIFIED] Static inspection of .text No evidence observed so far; runtime proof across all gameplay states requires live execution tracking.
jal 0 at 0x0880433C is the executed source of the former PC-zero stop [WRONG] Generated-code probes in .tmp/p3p_generated_jal0_probe.cpp; fixed-run trace .tmp/sparse_dispatch_fixed_trace.txt The current path never enters 0x0880432C, 0x08804334, or 0x0880433C.
Runtime 0x0880433C contains an unrelocated literal jal 0 [VERIFIED] profiles/p3p/game/eboot.elf file offset 0x3DC; all 178,513 SHT_PRX_RELOC entries scanned; recomp/PSPRecomp/src/elf32.cpp:206-295 Raw and relocated words are both 0x0C000000; no relocation exists at PRX-relative offset 0x33C.
Sparse generated JR dispatch must select on local_pc [VERIFIED] recomp/PSPRecomp/tools/codegen_main.cpp; .tmp/jal0_probe_trace2.txt; .tmp/sparse_dispatch_fixed_trace.txt Stale ctx.pc repeated the 0x08B1D0B0 epilogue 2,048 times and manufactured PC zero. Selecting local_pc returns once to 0x08AB306C and advances to 0x08B17054.
Execution frontier advances through ten proven guest functions to 0x08B1C594 [VERIFIED] profiles/p3p/config/p3p_functions.csv; build/generated/p3p_generated.cpp; logs/p3p_bootstrap_latest.log; executable disassembly at 0x08AB315C and 0x08B1C594 The final run reaches executable word 0x0E2C7165 (jal 0x08B1C594) at 0x08AB315C with $ra = 0x08AB3164. The target is a distinct, currently unregistered function boundary. Runtime, HLE, and codegen semantics are unchanged; graphics counters remain zero.
P3P is 100% viable for static recompilation [INFERRED] Clean relocation handling + entry point execution milestone Bootstrap and entry point succeed; viability of remaining complex subsystems (VFPU, overlays, indirect jumps) requires incremental verification.
A new PSP thread starts with VFPU source/target prefixes 0xE4 and destination prefix 0 [VERIFIED] pspautotests cpu/vfpu/{callout,convert_scaled,minmax}.expected match exactly only with this initial state (tests/autotest_baseline.txt, 2026-10-08) Before: all-zero vfpu_ctrl, every lane read X on a thread's first prefixed VFPU op.
Russian fan translation is 100% asset-only with no EBOOT patches [WRONG]: v0.8.3 ships an EBOOT xdelta patch for the menu text (#80) Community packaging analysis While scripts (.bmd) and fonts are asset-level, potential EBOOT localization patches (character spacing, glyph width) need empirical testing.

2. PSP Architecture & Emulation

Claim Status Primary Source / Citation Notes
Standard PSP has 32 MiB User RAM + 2 MiB VRAM + 16 KiB Scratchpad [VERIFIED] recomp/PSPRecomp/src/guest_memory.cpp:74-76, references/ppsspp/Core/MemMap.h:20 Fixed physical layout; no TLB page walking.
PSP CPU Allegrex is MIPS32r2 with VFPU coprocessor [VERIFIED] psp/vfpu-docs/README.md, references/ppsspp/Core/MIPS/ VFPU instructions use custom opcodes and prefix registers.
Yakumo successfully statically recompiled all 355 MHP3rd HD overlays [VERIFIED] recomp/Yakumo/README.ru.md:49, recomp/Yakumo/AGENTS.md:7 Proves viability of large-scale PSP static recompilation.
sal063 static recompiler utilizes pure C runtime (src/rt/) [VERIFIED] recomp/PSP-recompilation-project/src/rt/recomp.c Lightweight runtime reference without heavy C++ dependencies.

3. Nintendo 3DS Hardware & Platform

Claim Status Primary Source / Citation Notes
New 3DS CPU clock boost to 804 MHz enabled via osSetSpeedupEnable(true) [VERIFIED] 3ds/libctru/include/3ds/os.h:58 Triples CPU frequency and enables L2 cache.
New 3DS exposes Core 2 to user applications via APT_SetAppCpuTimeLimit [WRONG] 3ds/libctru/libctru/include/3ds/thread.h (threadCreate notes) APT_SetAppCpuTimeLimit allows one thread on Core 1 (system core). Core 2 needs exheader kernel flag 0x2000 or the BASE memory region. The runtime uses no second core yet.
Core 2 is usable by the .3dsx under the Homebrew Launcher [VERIFIED] New 2DS XL, build 7eabbb8 (2026-10-11): start probe core2 ok, parallel x1.98; DaedalusX64-3DS also creates a Core 2 thread (Source/SysCTR/HLEAudio/AudioPluginCTR.cpp) platform/3ds/main.cpp probe_cores; docs/CURRENT_STATE.md, "Hardware: GE on core 2".
Multi-threaded worker thread affinity (Core 0 vs Core 2) yields performance gain [VERIFIED] New 2DS XL, 0.3.0 build 7eabbb8: battle 16-25 fps (0.2.7: 5-7.5 fps), the game's thread waits for the worker 0.0-4.3 % of the time GE back end (not list parsing) on Core 2. Audio on Core 2 not tested yet.
New 3DS has 256 MB FCRAM with 124 MB application mode [VERIFIED] 3ds/libctru/include/3ds/os.h:40 Ample headroom for 34 MB guest arena and recompiled code.
PICA200 texture sampling requires Morton 8x8 tiled layout [VERIFIED] 3ds/citro3d/source/texture.c:12, references/DaedalusX64-3DS/Source/SysCTR/Graphics/NativeTextureCTR.cpp:115 Native GPU sampler layout requirement.
Optimal texture conversion pipeline (CPU swizzle vs C3D display transfer) [UNVERIFIED] Needs citro3d benchmark Must profile texture cache overhead vs GPU display transfer on real hardware.
3DS DSP (ndsp) supports 24 hardware-mixed audio channels [VERIFIED] 3ds/libctru/include/3ds/ndsp/ndsp.h:18 Hardware mixing for music and sound effects.
Recompiled P3P code will fit in New 3DS memory [VERIFIED] Hardware run, CURRENT_STATE.md (2026-10-02) .3dsx on a New 3DS: APPLICATION region 126,976 KiB, heap 71,220 KiB with 60,284 KiB in use (about 10.7 MiB free).
Recompiled P3P will run at 90-100% native speed on New 3DS [WRONG] Hardware and Azahar reports, CURRENT_STATE.md Measured: about 90 % of real time in the field, 18-25 % (hardware, 0.2.7) and 33 % (Azahar, 0.2.8) in the first battle.
PICA200 can maintain 30 FPS for Tartarus 3D dungeons [UNVERIFIED] Needs citro3d benchmark Working hypothesis based on geometry complexity vs DaedalusX64-3DS.

Run logs (logs/, written by tools/run_p3p_trace.sh) and generated AOT code (build/generated/) are not tracked: the logs and evidence cited above are local artifacts of those runs, and generated code is rebuilt from the user's EBOOT.