From 117db77c7b4bd9706617beded4db1e43e64d832c Mon Sep 17 00:00:00 2001 From: Cristian Cerroni Date: Sun, 25 Oct 2026 12:59:09 -0400 Subject: [PATCH] Clarify loader defaults provenance and record checkpoint packages --- docs/checkpoint/review.md | 14 ++++++++++++++ docs/checkpoint/scene-loader.md | 19 ++++++++++++++----- docs/compatibility.md | 5 +++++ docs/progress.md | 4 ++++ tests/test_checkpoint_scene_loader.py | 2 ++ tools/binary/checkpoint_scene_loader.py | 4 ++++ 6 files changed, 43 insertions(+), 5 deletions(-) diff --git a/docs/checkpoint/review.md b/docs/checkpoint/review.md index b36596b..a4e9fdf 100644 --- a/docs/checkpoint/review.md +++ b/docs/checkpoint/review.md @@ -45,6 +45,20 @@ in `artifacts/re-checkpoint/python-final.log`. Build succeeds without warnings. These are port/static checks; no new native Windows runtime or original whole-game runtime verification is claimed. Physical audio and original cadence remain open. +Self-contained Linux/Windows packages were rebuilt by `scripts/package.sh` from +clean531883a; both BUILD-INFO records identify that source and source_dirty=no. +The preserved baseline DLL hash remains distinct from the new binary. Linux +release launch from `/tmp` passes the60-frame Carl cutscene held-input lock check +(`linux-package-carl.log`); validation layers were unavailable in that package +invocation, unlike the enabled full integration runs. Subsequent changes only +refine loader evidence and this validation record, not runtime code. + +Final loader consistency review verifies that the lab predicate-zero writer is +in class-default initialization44D3D0, reached from constructor44F3B3 through +4749A0→completeB4→44F4B0. It is not inside base constructor44D2B0. Five targeted +loader regressions pass after adding that provenance. This strengthens the +old-game lifetime question rather than silently assuming pointer overwrite deletes it. + ## Plan continuation and exact next gates C3 investigation recovered fresh game input→Jimmy→fire order after physics. C5 diff --git a/docs/checkpoint/scene-loader.md b/docs/checkpoint/scene-loader.md index 650295d..fb51b9d 100644 --- a/docs/checkpoint/scene-loader.md +++ b/docs/checkpoint/scene-loader.md @@ -65,15 +65,24 @@ can be fields on the character object across a scene change. It does not prove every character field remains unchanged: initialization, property loading, gadget cleanup and PostLoad can reset fields independently. -The lab game object also explicitly sets predicate0 at44D456/44D472. An object's +The lab game object's class-default initializer sets predicate0 at44D456/44D472; +this is **not inside the constructor44D2B0 body** (which returns44D350). +Normal factory construction does nevertheless reach it: LV1B constructor44F300 +installs derived vtables44F36A/44F37C, passes its+8C interface to4749A0 at44F3B3, +and4749BE..4749CA converts back to complete and dispatches virtualB4. Complete +vtable4C3CD0+B4 resolves44F4B0, which calls base class-default initializer44D3D0 +at44F4D5. Therefore this writer is constructor-reachable through an explicit +virtual defaults bridge, not inferred from proximity or an editor-only caller. +An object's retention and the current-level global509948 are distinct: GAM loading assigns 509948 to the destination's game object at46E360 after factory construction. Further class-specific lifecycle flags or later predicate changes require their own evidence; do not generalize the constructor default into a full object map. **Critical integration consistency gate: old level-game ownership.** The lab game -is itself selected for preservation (interface4C386C slots200/204 resolve -4719B0/C0;44D456 pushes0 before44D472 dispatches204). Ordinary GAM loading then +is initialized for preservation (interface4C386C slots200/204 resolve +4719B0/C0; defaults bridge above reaches44D456's push0/44D472's dispatch204). +Later changes to that predicate remain part of the lifetime audit. GAM loading then constructs a new destination game. A bounded inspection of46E170 through factory 46E335 found prefix46E26C→4766E0, whose literal is`UnInitCaptions()` and whose registry is5099FC;46E271→479000 clears physics records rooted509B04. Neither @@ -186,8 +195,8 @@ transferring every arbitrary field unchanged would still be unsupported. The source chain and editor-reset correction replace an unbounded “loader unknown” task with these concrete tests. -Validation: five Python tests pass, covering the original hash,39 exact byte -sites,14 virtual targets, object factory/destruction/timer dependencies and R key +Validation: five Python tests pass, covering the original hash,42 exact byte +sites,15 virtual targets, object factory/destruction/timer dependencies and R key identity. Run `python3 -m unittest discover -s tests -p test_checkpoint_scene_loader.py -v`. Helper JSON is reproducible with `python3 tools/binary/checkpoint_scene_loader.py ../Original`. These are static diff --git a/docs/compatibility.md b/docs/compatibility.md index 5adcd93..a3a7ef4 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -10,6 +10,11 @@ errors. Final Python discovery passes62 tests including the additional source evidence follow-ups. All539 original hashes remain unchanged. These checks do not add native Windows or original whole-game runtime verification; earlier Windows user reports remain limited to their tested builds and route. +Self-contained Linux/Windows packages rebuilt from clean531883a. The Linux release +package passes the60-frame Carl held-input/control-lock smoke from `/tmp`; +validation layers were unavailable for that invocation. Current Windows release +is cross-published, not newly native-runtime verified. Later loader-provenance +edits affect evidence/tests only; runtime code is unchanged from that package. | Feature | Implemented / tested | Evidence and limits | |---|---|---| diff --git a/docs/progress.md b/docs/progress.md index 9bb00fc..2e76c28 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -24,6 +24,10 @@ duration/repeat clock and C7 selective ordinary loader follow-ups are documented All investigator ownership returned. Exact old level-game registry eligibility and retained-field reset traces gate scheduler integration; camera/audio/physics chunks have independent concrete evidence gates. See the execution ledger. +Linux/Windows self-contained packages rebuilt from clean531883a; Linux release +Carl held-input smoke passes from `/tmp` (validation unavailable there). Later +loader defaults-bridge provenance corrections pass five targeted byte checks and +do not change runtime. Package and test logs are in artifacts/re-checkpoint/. **The full reconstruction is incomplete.** The current implementation extends the user-verified Windows rendering checkpoint into an interactive original lab and diff --git a/tests/test_checkpoint_scene_loader.py b/tests/test_checkpoint_scene_loader.py index 9f6bc41..b22a8c6 100644 --- a/tests/test_checkpoint_scene_loader.py +++ b/tests/test_checkpoint_scene_loader.py @@ -51,6 +51,8 @@ class SceneLoaderEvidenceTests(unittest.TestCase): self.assertEqual(sites["lab_constructor_base"]["direct_call_target"], "0x44d2b0") self.assertEqual(sites["game_constructor_base"]["direct_call_target"], "0x4745a0") self.assertEqual(sites["game_constructor_clear_control"]["direct_call_target"], "0x475a40") + self.assertEqual(sites["lab_constructor_defaults_bridge"]["direct_call_target"], "0x4749a0") + self.assertEqual(sites["lab_defaults_base"]["direct_call_target"], "0x44d3d0") if __name__ == "__main__": diff --git a/tools/binary/checkpoint_scene_loader.py b/tools/binary/checkpoint_scene_loader.py index 714172b..29d7fc8 100644 --- a/tools/binary/checkpoint_scene_loader.py +++ b/tools/binary/checkpoint_scene_loader.py @@ -48,6 +48,9 @@ SITES = ( ("game_constructor_clear_control", 0x474683, "e8b8130000"), ("game_constructor_current_game", 0x474688, "893548995000"), ("lab_game_preserve_predicate", 0x44D472, "ff9004020000"), + ("lab_constructor_defaults_bridge", 0x44F3B3, "e8e8550200"), + ("game_defaults_virtual_dispatch", 0x4749CA, "ff92b4000000"), + ("lab_defaults_base", 0x44F4D5, "e8f6deffff"), ("keyboard_down_array", 0x46A370, "c6803898500001"), ("keyboard_up_array", 0x46A390, "c6803898500000"), ("acquired_reset_key_test", 0x4235D8, "a08a98500084c07423"), @@ -70,6 +73,7 @@ VTABLES = ( ("Jimmy key-gated reset", 0x4A373C, 0x3C8, 0x4235B0), ("lab game destruction predicate", 0x4C386C, 0x200, 0x4719B0), ("lab game predicate setter", 0x4C386C, 0x204, 0x4719C0), + ("lab game class-default initializer", 0x4C3CD0, 0xB4, 0x44F4B0), )