Commit Graph
32 Commits
Author SHA1 Message Date
ulw-execute a10e45321b feat(arkkdm): reconstruct+verify wave 3 13 functions 2026-11-29 06:22:11 -05:00
ulw-execute 4ec9b20d90 feat(gamekdm): reconstruct+verify wave 2 19 functions 2026-11-29 06:19:13 -05:00
ulw-execute 589f7525b4 feat(arkkdmtest): reconstruct+verify wave 7 18 functions 2026-11-29 06:12:48 -05:00
ulw-execute f445abd537 feat(arkkdmtest): reconstruct+verify wave 6 18 functions 2026-11-29 05:49:12 -05:00
ulw-execute fe755498ec feat(arkkdm): reconstruct+verify wave 2 12 functions 2026-11-29 05:47:31 -05:00
ulw-execute 9e3b64df4a feat(arkkdmtest): reconstruct+verify wave 5 17 functions 2026-11-29 05:25:47 -05:00
ulw-execute b2cf140a54 feat(arkkdmtest): reconstruct+verify wave 4 14 functions
Wave 4 on arkkdmtest.dll: a bounded leaf-first shard of 14 pure internal leaves
(zero callees, zero globals) reconstructed as MinGW C++ and verified against the
shipping binary via the T1 faithful differential, with per-function injected-bug
non-vacuity and the globals-first gate.

Functions (orig -> verified), fp_model=none, portability=port:
  0x10003c10 WordNotEqualB   __thiscall ret 4  *self != *other (AL)
  0x10003c30 SetHeadPointerC __thiscall ret 8  *self = value (2nd arg ignored)
  0x10003e90 StorePair       __thiscall ret 8  self[0]=*a, self[1]=*b
  0x10003cf0 ReturnArg3cf0   __cdecl           return first arg
  0x10003d00 ReturnArg3d00   __cdecl           return first arg
  0x10003d10 ReturnArg3d10   __cdecl           return first arg
  0x10003d20 ReturnArg3d20   __cdecl           return first arg
  0x10003e70 ReturnArg3e70   __cdecl           return first arg
  0x10003e80 ReturnArg3e80   __cdecl           return first arg
  0x10003eb0 ReturnArg3eb0   __cdecl           return first arg
  0x10003ed0 ReturnArg3ed0   __cdecl           return first arg
  0x10003ef0 ReturnArg3ef0   __cdecl           return first arg
  0x10003f00 ReturnArg3f00   __cdecl           return first arg
  0x10003f10 ReturnArg3f10   __cdecl           return first arg

Conventions and operand sizes read from the Ghidra disasm. The four red-black
tree node-traversal leaves in this range (0x3c50/0x3c70/0x3ca0/0x3e10) stay orig:
proving them needs a multi-node same-image pointer fixture, deferred.

Proof: ALL DIFFERENTIALS PASS (233 cases across 65 functions), NON-VACUITY PASS
(per-function injected bug for all 65), GLOBALS-FIRST PASS.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 65/2163.
2026-11-29 04:51:21 -05:00
ulw-execute 7eba0240c0 feat(gamekdm): reconstruct+verify wave 1 20 functions 2026-11-29 04:42:27 -05:00
ulw-execute 7bed51950d feat(arkkdmtest): recover+verify named-value lookup batch (51 functions)
Recovered the wave-3 worker's uncommitted WIP (dead on a 429): FindNamedValue
(0x3700, orig->verified) plus globals-first hardening of the wave-3 leaves
(ClearDwords/FieldAt* unsigned address arithmetic, owned-state capture gate,
extra boundary cases). T1 differential prove_arkkdmtest.py: 201 cases across 51
functions original==reconstructed, per-function injected-bug non-vacuity, and
globals-first PASS for the 19 wave-3 functions.
2026-11-29 04:41:51 -05:00
ulw-execute 40a16e28b5 feat(arkkdm): reconstruct+verify wave 1 20 functions\n\nWave 1 on arkkdm.dll: reconstruct the first leaf-first shard of pure internal\nleaves (zero callees, zero import deps, zero globals) as MinGW C++ and verify\neach against the shipping binary via the T1 faithful differential.\n\nFunctions (orig -> verified), fp_model=none, portability=port:\n 0x10003bf0 ClearField30 __thiscall\n 0x10004980 ResetHeader __thiscall\n 0x10005090 GetFlagF4 __thiscall\n 0x100050a0 SetFlagF4 __thiscall\n 0x100050b0 GetFlagF5 __thiscall\n 0x10005110 GetFlagF6 __thiscall\n 0x100052b0 SetByteTrue __stdcall\n 0x10005330 arkNetworkGetPropertyWait __stdcall (export)\n 0x10005370 arkPauseBackgroundProcess __stdcall (export)\n 0x10005380 TestObjectSlot __thiscall\n 0x100054c0 ClearSixWords __stdcall\n 0x100054e0 ReturnZeroTwoArgs __stdcall\n 0x100054f0 SetByteFalse __stdcall\n 0x10005520 GetSlot19c __thiscall\n 0x10005540 GetField184 __thiscall\n 0x10005550 GetField190 __thiscall\n 0x10005560 GetField188 __thiscall\n 0x10005570 GetField18c __thiscall\n 0x10005580 GetField198 __thiscall\n 0x10005590 GetField21c __thiscall\n\nVerification: tools/unicorn_diff/recon_arkkdm_harness.cpp (21 modes) +\nre/arkkdm/prove_arkkdm.py run the Unicorn-vs-wine faithful differential:\nALL DIFFERENTIALS PASS (44 cases) plus per-function injected-bug non-vacuity.\nConventions (ret N cleanup, thiscall ecx) read from disasm. Globals-first gate\ntrivially satisfied (no callees/globals). validate_rvadb.py: RVADB_VALID\nfunctions=2330. Coverage 20/2330. 2026-11-29 04:16:31 -05:00
ulw-execute 26be336079 feat(diff): register-input ABIs + multi-register/x87 returns + same-image pointers + indirect-call tables + SEH 2026-11-29 03:46:41 -05:00
ulw-execute 9e0bb4b01e feat(arkkdmtest): reconstruct+verify wave 3 18 functions 2026-11-29 03:24:20 -05:00
ulw-execute 2bdee72528 feat(arkkdmtest): reconstruct+verify wave 2 20 functions 2026-11-29 03:04:44 -05:00
ulw-execute c00bbf3064 fix(diff): globals-first gate fails closed on undeclared stub-side global access 2026-11-29 02:59:24 -05:00
ulw-execute da8ef25e63 feat(diff): global-delta + external-import stubs + void observability for stateful functions 2026-11-29 02:35:55 -05:00
ulw-execute e52aff129a feat(arkkdmtest): reconstruct+verify 12 pure leaf ops (0x11a0-0x17a0)
Wave 1 on arkkdmtest.dll: reconstruct the first shard of T1-differentiable
internal call-graph leaves (zero callees, zero globals) as MinGW C++ and verify
each against the shipping binary.

Functions (orig -> verified), fp_model=none:
  0x100011a0 StringLength        __cdecl
  0x100011e0 CopyByte            __cdecl
  0x10001220 ElementPointerAt    __thiscall
  0x100012e0 RangeContains       __thiscall
  0x10001360 SetHeadPointer      __thiscall
  0x10001370 AdvanceHeadPointer  __thiscall
  0x10001500 FillDwords          __cdecl
  0x10001590 GrowthCapacity      __thiscall
  0x100015c0 SetHeadPointerB     __thiscall
  0x100015d0 AdvanceHeadPointerB __thiscall
  0x100016f0 DwordEquals         __thiscall
  0x100017a0 ZeroFillDwords      __cdecl

Verification: tools/unicorn_diff/recon_ark_harness.cpp (12 modes) +
re/arkkdmtest/prove_arkkdmtest.py run the Unicorn-vs-wine faithful differential:
ALL DIFFERENTIALS PASS (39 cases) plus per-function injected-bug non-vacuity.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 12/2163.

The sharder's literal first shard is external PE import thunks (jmp [IAT] into
absent DLLs), which T1 cannot execute and T2 would prove vacuously; those and
the function-pointer/__fastcall leaves stay orig for a later wave.
2026-11-29 02:23:17 -05:00
ulw-execute b451a5dbcc feat(diff): per-module differential + T2 non-emulatable harness + struct-DB bring-up 2026-11-29 01:48:58 -05:00
ulw-execute 373cad9c47 fix(seam): seam-symbol check matches exact identities (reject decoy-suffixed) 2026-11-29 01:14:16 -05:00
ulw-execute 9f96ef8ffc feat(arch): portable-core seam + gk::fp dual-fidelity + i386-gated ABI + seam-symbol check
Introduce the core/platform/host header seam under include/gk/ (portable value
types in core/, Kinect/PE mirror layouts in platform/, the camera-elevation
service interface in host/); the existing include/gk/structs/* paths become
compatibility forwards so no definition is duplicated. Add include/gk/fp.h with
gk::fp::round32 (binary32 rounding barrier) and gk::fp::ExtendedAcc (long double
faithful / double portable), and a GK_FIDELITY=faithful|portable CMake knob
paired with -mfpmath; faithful stays the drop-in differential target. i386-gate
GK_CDECL/STDCALL/THISCALL so non-i386 GNU builds get empty macros (native
-Werror). Migrate the three proven slice functions onto the seam without
behaviour change: box_distance expresses FP through gk/fp.h while keeping the
volatile spill the differential pins; the bodies stay in src/game/*.cpp where
prove_t11.py compiles and greps them. Add tools/seam_symbol_check.py (G5) and
re/game/seam_symbols.json asserting each flagged seam RVA ships as a
non-inlined, addressable symbol.

Verified: prove_t11.py exit 0 / ALL DIFFERENTIALS PASS (faithful, exact-FP from
df1620e); native GK_FIDELITY=portable validity compile under -Werror; macro
cross-check; G5 tool reports all three seam symbols addressable.
2026-11-29 00:54:30 -05:00
ulw-execute df1620eb62 fix(diff): faithful mode compares NaN payloads bit-exactly (portable keeps NaN-equal) 2026-11-29 00:12:03 -05:00
ulw-execute f0d839fe41 docs(wave): document SCC verification exception (combined differential; external prereqs) 2026-11-28 23:58:19 -05:00
ulw-execute 89c66ad684 fix(tools): gen_importlibs reads clean orig/ layout + arkkdmtest 2026-11-28 23:48:23 -05:00
ulw-execute b4a9c00ee3 fix(diff): exact faithful-mode FP comparison + rounding negative control 2026-11-28 23:47:51 -05:00
ulw-execute f84c9c2893 feat(tools): wave sharding + CallSpec scaffolder + SCC + coverage ledger 2026-11-28 23:43:36 -05:00
ulw-execute dfbd0f1c4b chore(re): pin 9 clean-oracle SHA-256 + readiness check 2026-11-28 23:19:43 -05:00
ulw-execute 1db04b0aa9 fix(re): generalize rvadb tooling + preserve notes/portability/fp_model 2026-11-28 23:19:00 -05:00
ulw-execute 9c4e9bc507 feat(slice): reconstruct+verify validity/cursor slice incl vtable fn via differential 2026-11-28 05:55:39 -05:00
ulw-execute 39f01099a5 feat(verify): unicorn per-function differential harness (x87 ST0 capture, rvadb convention) 2026-11-28 05:19:39 -05:00
ulw-execute 16f2556b23 chore(re): per-DLL Ghidra projects import script for companions 2026-11-28 05:04:47 -05:00
ulw-execute 749a6cd145 feat(importlibs): gendef+dlltool import libs + convention table 2026-11-28 04:37:04 -05:00
ulw-execute a0d649cf57 feat(re): headless Ghidra RVA symbol DB exporter + validator 2026-11-28 04:27:11 -05:00
ulw-execute 091dd18d9e chore(repo): layered source tree + CMake mingw toolchain + gamekdm.def 2026-11-28 03:42:33 -05:00