Add tests for controller fire attempt suppression and usecode interpreter functionality

- Enhanced isometric_controls_tests.cpp to include assertions for controller fire attempt suppression under various conditions.
- Added tests for the Usecode interpreter in usecode_vm_tests.cpp, verifying script execution and stack manipulation.
- Introduced a new PowerShell script, clean-old-build-artifacts.ps1, to facilitate the cleanup of old build artifacts in specified directories.
This commit is contained in:
Maddo 2026-10-08 09:01:31 +02:00
commit ffb1918f35
41 changed files with 3611 additions and 349 deletions

View file

@ -40,7 +40,7 @@ Current blocker: the normal host window resolves egg `0x1e` from map 1 and place
### Current Blocker
Recompute `Item_Grab` candidates and eligible usecode events from item 1 at the destination pad, then prove reachability and implement one visible, original-script-backed mutation. The staging-point scan below is historical. The original startup call chain, game scheduler, and full source draw/camera behavior also remain incomplete.
The first reachable map-1 retail interaction now passes a deterministic host regression through item search, owner-row event selection, nested VM dispatch, and a rendered chest-frame mutation. Original `Item_Grab` and `Usecode_ItemCallEvent` are still not integrated into normal gameplay, and the chest's later `0x70` loot search and full script completion remain unsupported. The original startup call chain, game scheduler, and source draw/camera behavior are also incomplete.
## Current Inputs
@ -140,14 +140,19 @@ Exit criteria: deterministic tests cover camera projection/inverse bounds, zoom
Goal: execute game scripts from original `EUSECODE.FLX`.
Current foundation: `UsecodeProcessTask` already tracks class/event identity, bytecode PC, process frame, value stack, and nested routine/call frames. The context factory also models owner/source pointers in emulated runtime memory. Opcode support remains partial, so this is a VM foundation rather than full execution or debugger parity.
Work:
- import and type `EntityVmRuntime`, owner-resource, context, and slot-entry families
- parse usecode chunks and dispatch tables
- implement VM value stack, globals, calls, and event dispatch
- add an optional debugger state derived from VM tasks: unit/class/event, bytecode PC and available line metadata, source cursor, frame/evaluation context, and a balanced current-entry stack across nested calls and returns
- implement breakpoint and single-step hooks against that structured state; emulate segmented pointers only where binary parity requires them
- add descriptor/watch evaluation only as the corresponding source metadata and VM services become supported
- cross-check against existing usecode extraction tools
Exit criteria: selected map triggers and object interactions execute through the host VM with traceable parity against known extracted usecode behavior.
Exit criteria: selected map triggers and object interactions execute through the host VM with traceable parity against known extracted usecode behavior. When debugger support is enabled, supported instructions produce deterministic line/call-stack snapshots and balanced entry/return transitions; unsupported opcodes and unavailable source metadata are reported rather than guessed. This does not claim full watch/inspect or original VM parity until descriptor evaluation and required runtime services are implemented.
### Phase 7: Gameplay Systems
@ -254,7 +259,7 @@ The standalone `AreaSearch_SweepTestPt` bounds stage (`10e0:0b39`) clamps X/Y to
## First Interactive Windows Game Shell
`rebuild/remorse/out/build-nmake/remorse_game.exe` is the first windowed application target. It locates the game data root from its own executable path (or the current directory), defaults to map 1, and accepts either an optional fixed-map index from 0 through 255 or the original-style direct warp options.
`rebuild/remorse/out/build/Debug/remorse_game.exe` is the first windowed application target in the Debug configuration. It locates the game data root from its own executable path (or the current directory), defaults to map 1, and accepts either an optional fixed-map index from 0 through 255 or the original-style direct warp options.
The default window now opens directly onto the retail-map traversal test with no diagnostic HUD, synthetic Stand/keyboard processes, or `F` release shortcut. Its map-1 host startup follows the staging egg `0x1e` through active trigger `0x63` to destination egg item 6812 at `(30328, 29656, 16)` before rendering. Pass `--diagnostics` (before or after the map number) to restore the diagnostic harness and its HUD. The map-1 startup midpoint is checked against the same collision bodies as the window, with at least one legal neighboring move. This is a **retail-data movement test**, not yet the real game: the player is host-created, rendering uses a static map preview, movement uses host polling/step policy, and neither the original startup/game loop nor item USECODE/mission interactions are running. Do not use this mode split as the roadmap's playable-game exit criterion.
@ -262,13 +267,13 @@ From the repository root:
```powershell
rebuild\remorse\build_msvc.cmd Debug
.\rebuild\remorse\out\build-nmake\remorse_game.exe 1
.\rebuild\remorse\out\build\Debug\remorse_game.exe 1
```
For a direct coordinate warp, use `-warp <mission> <x> <y> <z> [-mapoff <delta>]`. The target map is the retail mission-table base plus the offset; the coordinates are staged world coordinates, and the normal map-1 teleporter startup is bypassed. This verified command starts on map 1 at the chest/computer test area:
```powershell
.\rebuild\remorse\out\build-nmake\remorse_game.exe -warp 0 30463 29951 0 -mapoff 1
.\rebuild\remorse\out\build\Debug\remorse_game.exe -warp 0 30463 29951 0 -mapoff 1
```
The window title reports the resolved map and direct coordinates. Coordinates must be X/Y `0..32767` and Z `0..255`.
@ -296,6 +301,8 @@ On Windows, `remorse_game.exe`, `remorse_rebuild.exe`, and `remorse_map_preview.
This is the first interactive gameplay slice, not yet a playable game: movement uses approximate host collision rather than the original actor response, and there are no live enemies, triggers, sound, saves, or USECODE execution. The rendered map is the retail static scene, not a live simulation.
The `Controller_HandleKeyEvent` (`1130:2211`) prior-fire-sleep guard is now a dedicated compiled `remorse_core` slice: when that state is true, nonzero-mode Space events and Ins releases are suppressed, while Ins presses remain eligible. Focused tests cover the condition matrix. The Windows loop does not yet populate the state because `Crusader_TryToFireWeapon` and the original global-state update path remain unported, so this closes the gate implementation but not runtime weapon firing parity. The busy in-place-turn model also remains incomplete: `Anim_1130_0f94` (`1130:0f94`) rate-limits walk/run direction updates when `1478:6046` is set, using the system timer and mouse-speed configuration; the host does not yet model that state or throttle.
## Import-Slice Tool
The first source-conversion helper is `rebuild/remorse/tools/import_export_slice.py`.
@ -504,7 +511,7 @@ Current local toolchain finding:
- `vswhere` selects the registered Visual Studio Community 2026 installation at `C:\Program Files\Microsoft Visual Studio\18\Community`; the existing `out/build` cache points at an older `I:\Apps\VS\18\Community` path that CMake cannot resolve as an installed instance.
- `vcvars64.bat`, MSVC `19.51.36246.0`, and VS-bundled CMake `4.2.3` are usable through the registered Visual Studio developer environment.
- Plain `cmake` is still not available before the Visual Studio environment is initialized. `build_msvc.cmd` initializes MSVC with `vswhere`/`vcvars64.bat` and configures a separate NMake build under `out/build-nmake`.
- Plain `cmake` is still not available before the Visual Studio environment is initialized. `build_msvc.cmd` initializes MSVC with `vswhere`/`vcvars64.bat` and configures the Visual Studio build under `out/build`.
### Host Harness
@ -525,7 +532,7 @@ From the repository root, the repeatable MSVC path is:
rebuild\remorse\build_msvc.cmd Debug
```
The wrapper's NMake build writes `remorse_rebuild.exe` directly under `rebuild/remorse/out/build-nmake/`; it leaves the existing Visual Studio generator cache under `out/build/` untouched.
The wrapper reuses the Visual Studio generator tree under `rebuild/remorse/out/build/`; configuration-specific executables are written under `out/build/Debug/` or the selected configuration directory.
### Staging One Export Slice
@ -558,24 +565,24 @@ Use this sequence to move the normal Windows launch path from host-modeled behav
| Path | Current normal-path implementation | Original path and status | Host boundary and recovery target |
|---|---|---|---|
| Startup and spawn | [`loadSceneAsync`](../rebuild/remorse/src/windowed_game_main.cpp#L471) loads retail data, creates the host avatar/item state, then models the two teleports to map 1's level-start pad. | `Game_Start` (`1020:0000`), `Teleporter_CreateProcessDirect`, and original wait-list lifecycle are **not integrated**; spawn is host-modeled. | Keep data-root/file access and worker/window notification at the host edge. Port the startup/teleporter call chain and initialize world ownership through it. |
| Tick and scheduler | [`updatePlayer`](../rebuild/remorse/src/windowed_game_main.cpp#L1084) is driven by Win32 `WM_TIMER`/performance-counter timing and calls the host `ProcessKernel`. Selected scheduler predicates and process behavior are translated, but the original loop and general vtable dispatch are absent. | `Kernel_11d0_31cf` / scan `11d0:0255` are **partial translations, not original-loop parity**; normal simulation remains host-driven. | Inject elapsed ticks through a replaceable clock/timer adapter; move scheduling and process dispatch into the recovered core path. |
| Input | [`windowProcedure`](../rebuild/remorse/src/windowed_game_main.cpp#L1345) maps Win32 key messages and modifier state into synthesized `KeyEvent`s queued on the host kernel. The recovered keyboard filter/copy behavior is only partial and does not provide the original input pipeline. | Keyboard process/registration functions (`11b8:02e1`, `11b8:03ad`, `11e0:172a`, `11d0:3b74`) are **partially translated**; original queue, interrupt, daemon, and controller dispatch are not integrated. | Keep Win32 message handling as an input adapter; pass normalized events into platform-neutral queue and recovered handlers. |
| Startup and spawn | [`loadSceneAsync`](../rebuild/remorse/src/windowed_game_main.cpp#L471) loads retail data and calls `startFreshGameMapOne` in `remorse_core` for normal map-1 startup; direct warp and diagnostics remain separate. | A fresh-game `Game_Start` slice initializes the avatar, executes the `1/0x1e` teleporter process, and follows the verified active `0x63` level-start trigger. Full `Game_Start`, original `Process_WaitFor` list semantics, and original item/NPC cache initialization are not integrated. | Keep data-root/file access and worker/window notification at the host edge. Replace the staged item and wait-list models with source-derived cache/process state. |
| Tick and scheduler | [`updatePlayer`](../rebuild/remorse/src/windowed_game_main.cpp#L1084) receives Win32 timer/performance-counter events; movement animation advances through a bounded `remorse_core` scheduler pass. | A retail boot-and-tick regression verifies timer delivery, scheduler dispatch, and avatar animation-state advancement. The scan gate/group selector are compiled source-derived slices; `Kernel_11d0_31cf`'s infinite loop, timer interrupt delivery, original keyboard/controller dispatch, and general vtable resolver remain absent. | Keep Win32 timing/input as adapters and continue replacing host callback/process behavior with recovered core dispatch. |
| Input | [`windowProcedure`](../rebuild/remorse/src/windowed_game_main.cpp#L1345) adapts Win32 key-down/up messages into `KeyEvent`s; `remorse_core` now runs them through the source-derived subscriber queue/gates in `kernel_keyboard_interrupt_dispatch.cpp`. | Registration and interrupt fanout rules are partially ported, and a retail test routes an Up event into movement selection before a scheduler tick. The original process-vtable callback resolver and controller behavior remain unported; movement still uses the host `ControllerMovementState` adapter. | Keep Win32 message translation at the host edge. Identify and port the actual game input consumer; do not treat subscriber fanout alone as original player-input parity. |
| Movement and animation | [`updatePlayer`](../rebuild/remorse/src/windowed_game_main.cpp#L1084) drives `ControllerMovementState`, host animation processes, and approximate TYPEFLAG collision against the shared mutable item 1. | Some direction/modifier rules are **translated**, but the original controller/process call chain, actor collision response, and scheduler-driven player update are **stand-ins/unported**. | Keep world rules and input-to-action behavior in the core; replace the step policy and approximate collision with recovered actor, animation, and collision paths. |
| Interaction | [`startNearbyUsecode`](../rebuild/remorse/src/windowed_game_main.cpp#L287) and [`runUsecodeTasks`](../rebuild/remorse/src/windowed_game_main.cpp#L319) perform host candidate selection, context/task setup, and a bounded VM subset. | Item search has source-derived/translated pieces, but original `Item_Grab` (`10a0:2970`), `Usecode_ItemCallEvent` (`1420:0e3a`), and event dispatch are **not integrated end to end**; no verified reachable spawn interaction yet. | Keep archive/resource reads and memory allocation behind host services; execute recovered search, dispatch, and VM behavior in the core. |
| Interaction | [`startNearbyUsecode`](../rebuild/remorse/src/windowed_game_main.cpp#L287) and [`runUsecodeTasks`](../rebuild/remorse/src/windowed_game_main.cpp#L319) still perform host candidate selection, context/task setup, and a bounded VM subset. | A retail regression reaches item 6747 (`CHEST_EW`), dispatches a nested `FREE` event, and verifies shape/frame `1360/0 -> 1355/1` with changed target pixels. Original `Item_Grab` (`10a0:2970`), `Usecode_ItemCallEvent` (`1420:0e3a`), the later `0x70` loot search, and normal-window interaction integration remain **unported**. | Keep archive/resource reads and memory allocation behind host services; replace the regression's host path with recovered search, dispatch, and VM behavior in the core. |
| Presentation | [`paintWindow`](../rebuild/remorse/src/windowed_game_main.cpp#L884) crops a rendered fixed-map image and composites a separately rendered live-player patch; the renderer refreshes that patch and sometimes rebuilds the full scene. | Retail asset decoding and host sorting are implemented, but the original live draw-list, source order, and camera path are **not ported**; this remains preview-style presentation. | Keep pixel buffers and projection platform-neutral; isolate GDI presentation, then replace static-scene recentering with recovered live rendering. |
2. **Prove the source-to-build pipeline (complete for one primitive):** `EntityDispatchEntry::SetGroupId` (`11e0:02a8`) is now a separately compiled `remorse_core` translation unit derived from `exports/src_remorse/functions/classes/Remorse/EntityDispatchEntry/SetGroupId@11e0_02a8.c`. Its corrected host signature receives the entry and 32-element count table explicitly; the existing `EntityDispatchEntry::setGroupId` boundary preserves the host exception for invalid IDs and delegates the verified low-five-bit update/count transitions to the compiled body. `entity_dispatch_entry_tests` passes through initialization, same-group preservation, reassignment, and count updates. This proves one source-to-build integration slice, not general export compatibility or binary runtime parity. Continue with a stateful scheduler primitive whose globals and call path can be represented explicitly; the import helper remains staging only.
3. **Restore the original startup and tick path:** port the minimum dependency chain for `Game_Start` (`1020:0000`), teleporter placement/waiting, kernel scheduler, timer, and item/NPC ownership. Route normal startup and simulation through these compiled functions; retain modeled startup and host polling only as diagnostics until parity checks pass.
2. **Prove the source-to-build pipeline (four compiled slices):** `EntityDispatchEntry::SetGroupId` (`11e0:02a8`) and `IncrementGroupId` (`11e0:0405`) live in a separately compiled `remorse_core` translation unit derived from their exported functions. The corrected signatures pass the entry, 32-element group-count table, and `ProcessKernel` explicitly. The host boundary retains exception-based assertion handling; the compiled transitions update the low-five-bit group identity/counts, enforce the active-group and group-29 gates, and notify the kernel so its selection-pending flag changes only when the active group changes. The scan now calls separately compiled partial slices from `FUN_11d0_0255` and `Kernel_11d0_0445`: per-entry run eligibility/one-pass syncing and highest ordinary-group selection. `entity_dispatch_entry_tests` covers these slices and the existing group transition cases. These are four compiled source-derived slices, not full-function translations, general export compatibility, or original-loop parity. The remaining scan iteration, wait/sleep lifecycle, timer and keyboard interrupts, early exit, and process maintenance remain host-owned or unported; the import helper remains staging only.
3. **Restore the original startup and tick path (basic threshold reached):** the normal Windows map-1 loader calls a core fresh-start entry that follows the reduced `Game_Start` path through teleporter `0x1e` and the verified active `0x63` trigger. A retail integration test then delivers a timer event and runs the bounded scheduler pass to advance an animation process owned by that same avatar. This establishes a basic rebuilt-code boot-and-tick prototype, not full `Game_Start`, original wait-list semantics, or `Kernel_11d0_31cf` parity. Next replace host wait-list/stasis and item-cache models, then move input and process behavior onto recovered keyboard/controller dispatch.
4. **Move player behavior onto that path:** replace host-created avatar/controller state, movement-step policy, and approximate collision with the recovered item, keyboard, controller, animation, and collision call chain. Feed Win32 input and timing into explicit host-service adapters; the game logic must not depend directly on Win32 APIs.
5. **Reconnect presentation and interaction:** render the live mutable world through recovered draw-list/order and camera behavior, then complete one reachable map-1 interaction through original item search, event dispatch, VM execution, and a visible world mutation. Keep the static preview as a regression oracle, not the normal gameplay renderer.
5. **Reconnect presentation and interaction:** the first reachable map-1 interaction now passes a retail-data regression through host item search, owner-row selection, nested VM dispatch, and a pixel-verified chest mutation. This closes the initial interaction milestone only; integrate original `Item_Grab`/`Usecode_ItemCallEvent`, implement the later `0x70` loot search, and connect live rendering to recovered draw-list/order and camera behavior. Keep the static preview as a regression oracle, not the normal gameplay renderer.
6. **Gate each replacement:** for every slice, record source address, exported function, unresolved decompiler assumptions, host substitutions, and tests; verify it is compiled into and called by `remorse_game`. Remove a stand-in from the normal path only after deterministic behavior checks pass. Update the function counts and parity status in this roadmap as slices land.
7. **Preserve the portability path:** keep recovered game logic and resource formats platform-neutral, with Win32 window/input/timing services behind replaceable interfaces. Once the original loop works through those interfaces, select and validate a portable host such as SDL; do not count the current Win32-only window as multi-platform support.
## Near-Term Next Actions
1. **Close the event path:** identify and reach an eligible retail `use` target from the actual level-start pad at `(30328, 29656, 16)`. The retail `Item_Grab` search now has a regression at that destination: it returns items `6812, 6811, 6810, 6804, 6786, 6785` in source order, and none has eligible `use` event 1. This replaces the historical staging-point candidate result but does not establish reachability beyond the six-item search area. Map-wide evidence includes the inactive/map-array `PANELNS`, a `CARD_NS` whose authorized state requires keycard 6, and a frame-0 `CHEST_EW` at staged `(1087, 2559, 0)` whose recovered handler attempts a legal shape swap to `0x054b` before animating. The host implements `Item.setShape` (`0x24`), but `FREE.slot_2d`'s family check, `Item.legal_create`, and temporary-item lifecycle are still missing; the chest's collision route is unverified. Next trace candidate searches along a verified movement route from the pad, then implement only the required recovered services and exercise owner selection, context creation, VM execution, and a process/world-state effect. The BOX_NS regression still verifies candidate-driven selection and visible frame output from a fixture origin only; it does not close this action or establish `Usecode_ItemCallEvent` parity.
2. **Integrate the map-1 loop:** port `Game_Start` (`1020:0000`) and replace host initialization; the window now models the clear-stasis waiter and both same-map teleports to the level-start pad, but does not implement the original wait lists or call chain. Next port the original target-map transition and item search, collision/fall, then move input and animation onto the recovered kernel loop. The current tests cover egg resolution and host stasis ordering, shared item-1 mutation, and host input/scheduler behavior, not binary lifecycle parity or source draw-order/camera behavior. Keep the normal window on the original path before calling the vertical slice accepted.
1. **Extend the reachable event path:** `flex_archive_tests` now reaches retail `CHEST_EW` item 6747 from the destination pad by a 295-step route, selects its `use` event through host item search and owner-row selection, executes nested VM dispatch, and verifies shape/frame `1360/0 -> 1355/1` with a target-only pixel change and no earlier VM error. Integrate original `Item_Grab`/`Usecode_ItemCallEvent`, then recover the later `0x70` nearby-loot search before claiming full chest-event parity. The test intentionally stops at the first visible mutation, before that optional loot scan; the BOX_NS fixture regression remains separate evidence.
2. **Continue integrating the map-1 loop:** the normal window calls the `remorse_core` fresh-game entry; the retail test queues an Up event through the source-derived keyboard fanout, creates the requested animation process, and advances it on a timer-driven scheduler pass. The boot entry is a reduced `Game_Start` translation; waiter links and map/NPC cache initialization remain host models. The event fanout still ends at a host callback, so recover the original process callback/consumer and controller path next. The full playable vertical slice still requires source-backed movement, live rendering, and a reachable interaction.
## Current Bottom Line
@ -584,3 +591,25 @@ Use this sequence to move the normal Windows launch path from host-modeled behav
The retail `flex_archive_tests` startup path now runs the existing source-derived `Item_Grab` search after the modeled two-hop startup places item 1 at item 6812. It asserts the six search results in source order and runs each through the retail USECODE owner-row/event selector; all six reject `use` event 1. This resolves the roadmap's stale staging-point search question only. No reachable event target, original event dispatcher, or interaction is established.
The host now materializes archive-backed USECODE chunks and builds tested 0x124-byte contexts with bounded source pointers and an initialized 0x82-byte call stack. Its window routes use-request candidates through owner-row selection into a context-backed task; the BOX_NS regression verifies VM-driven frame changes, rendered output, and cleanup. Retail tests now verify the complete map-1 startup placement from egg `0x1e` through active trigger item 1598/ID `0x63` to destination egg item 6812 at `(30328, 29656, 16)`, with item 1 and persistent runtime processes intact. The normal window has been confirmed at that destination, and the player sprite anchor was aligned with map-object rendering. The no-eligible-event result at egg `0x1e` describes only the former staging point; the destination search now confirms six nearby items and no eligible event. A deterministic host input/tick test verifies that the item-owned animation process moves item 1. Original `Game_Start`, full `Process_WaitFor` parity, cross-map teleporter lifecycle, `Usecode_ItemCallEvent`/context-dispatch, owner-resource callback parity, a reachable retail interaction, and original loop/render parity remain incomplete. Whole-game and playable-game acceptance remain unmet.
### Scheduler Port Slices (2026-10-07)
The `11d0:0255` decompilation's per-entry dispatch gate is now compiled in `remorse_core` and called by `ProcessKernel::scanRunnableProcesses`. It consumes the one-pass syncing flag and applies the sleep, linked-state (`+0x24/+0x26`), waiting, group, and daemon gates. Host wait-list readiness is passed explicitly; the host still owns scan iteration, sleep/wait processing, vtable callbacks, and cleanup. The `Kernel_11d0_0445` highest-group selection loop is also a compiled helper called when the host observes an empty active group; the wrapper applies the selected group and clears its pending flag. Tests preserve source behavior for occupied terminated slots and exclusions of groups 30/31. The MSVC build, all 15 CTests, and rebuild harness pass. These slices improve the compiled runtime used by the window but do not integrate the original scheduler loop or establish binary runtime parity.
### Basic Map Boot And Tick (2026-10-07)
The normal `remorse_game` launch now calls `startFreshGameMapOne` in `remorse_core`. This reduced fresh-start translation initializes the live avatar, creates/runs the source-shaped `TeleporterProcess` for map 1 egg `0x1e`, resolves the retail active trigger `0x63`, and runs the second teleporter process to item 6812 at `(30328, 29656, 16)`. The retail integration test continues from that same state: it creates an owned animation process, delivers one system-timer event, runs `runTimedSchedulerPass`, and verifies the avatar animation frame advances. The Windows target builds and all 15 CTests plus the harness pass.
This reaches the narrow basic-build threshold: a normal Windows map-1 boot reaches the level-start area and rebuilt source-derived process code advances the avatar runtime on a tick. The retail test now sends an Up scan-code event through the compiled keyboard fanout and uses its host movement adapter to select the animation; the clip remains a deterministic fixture and does not prove retail movement/collision parity. It is not a playable source port. `Game_Start`'s surrounding initialization, original wait-list linked structures, item/NPC cache ownership, continuous `Kernel_11d0_31cf` loop, original input/controller consumer, and full process vtable routing remain incomplete or host-adapted.
### Keyboard Interrupt Fanout Slice (2026-10-07)
The `Kernel_CallProcKeyboardInterrupts` behavior is now isolated in `remorse_core` as `kernel_keyboard_interrupt_dispatch.cpp`. It drains the host-fed event queue, walks registered subscriber IDs, applies the source-derived allocation/flag/group gate, copies each queued 12-byte event for the subscriber, and calls the injected handler with selector `0x10` and filter `0`. The Win32 adapter supplies key scan codes/modifiers; `flex_archive_tests` boots map 1, sends Up through this fanout, verifies a walk request, delivers a timer event, and confirms the resulting avatar animation process advances. The build, all 15 CTests, and the harness pass.
This does not yet dispatch through the original per-process function table. Live Ghidra shows the `Controller` vtable's `+0x28` slot is a no-op; the movement callback used by the window/test is explicitly host-side. `KeyboardProcess_HandleKeyEvent` and the original controller input consumer still need to be placed on their true runtime paths before claiming source-backed player input.
### Reachable Retail Interaction (2026-10-08)
The retail integration test reaches item 6747 (`CHEST_EW`) from the level-start area in 295 route steps (296 expanded nodes), selects its `use` event, and executes the replacement sequence through nested VM dispatch. At the clean checkpoint the target changes from shape/frame `1360/0` to `1355/1`; rendering the isolated target before and after confirms different pixels. The assertion requires nested dispatch, no VM error before the checkpoint, and the actual pixel difference. The test reports one nested event (`2572/50`); the full MSVC gate passes all 15 CTests and the rebuild/export harness.
This closes the reachable visible-mutation milestone, not original runtime parity. Search, context creation, and task scheduling remain host-integrated rather than calls through original `Item_Grab` and `Usecode_ItemCallEvent`; the later chest `0x70` loot search and broader VM/list semantics are still unimplemented. The regression stops at the first visible mutation, and normal-window interaction wiring, original startup/scheduler, and source rendering remain outstanding.