Operations Playbook — Timed Input Storyboards & Control Memory
Per-project Stage 2 E2E input-handling memory for reCart (Dev\scripts\run_stage2_sandbox_e2e.ps1 + exebox-stream at http://127.0.0.1:5005). Ephemeral captures and traces stay strictly in gitignored Dev\docs\tests\.
1. Coordinate & Camera Axes Mapping
- Host Window & Viewport (
1280x720SDL3):reEngine.Hostrenders the256x240NES framebuffer pillarboxed insideHostViewport(nativePar8:7pixel aspect ratio by default). Resizing to1440x620preserves side black pillarbox bands (L/RRGB sum<= 120atx=16andx=width-17). - Ironframe Clean-Room Demo Cart (
ironframe-outerfortress-cart-01): - Spawn coordinate:
(X=120, Y=112)in256x240NES screen space. - D-Pad /
RIGHT(+X),LEFT(-X),DOWN(+Y),UP(-Y) move the 16x16 amber operator metasprite at2 px/frame(4 px/frameunder Fast-ForwardF6/Grave). - NES
$4016controller bitmask:0x01A,0x02B,0x04Select,0x08Start,0x10Up,0x20Down,0x40Left,0x80Right.
2. Menu & Cursor Defaults
- Empty
data\rom\Boot: LaunchesFirstRunMediaGateViewimmediately withCLEAN-ROOM MEDIA GATE - reCart v0.1.4(never auto-starts retail media;AllowAutoStart = false). Focusable buttons in fallback order:MediaGate_BrowseButton,MediaGate_SelectModuleButton,MediaGate_LaunchDemoButton, plusMediaGate_DropZone. - F1 Settings Drawer (
Tab_Videodefault): OpeningF1defaults toTab_Video.ExtraRow_OverscanCropcycles0 -> 8 -> 16 -> 0and refreshes viaRefreshDrawerDescriptor(), whilereEngine.Host's nativeVideo_Toggle_Overscan(0px -> 8px -> 16px -> 0px) persists across restarts to<dataDir>\settings.video.json(or<dataDir>\config\settings.video.jsonwhen--configis passed). Tab_System: Interactive controls in/v1/treeincludeExtraRow_Region(cyclesNTSC -> PAL -> DendyviaRefreshDrawerDescriptor()),System_QuickSave,System_QuickLoad,System_ToggleFastForward,System_SkipCutscene,System_ToggleRuntimeLogs, andSystem_QuitGame;Mapper: NROM (#0)andExecution Tier: AOT Primary(IsInteractive: false) render as static canvas text. (DuplicateExtraRow_FastForward/ExtraRow_CutsceneSkiprows were removed inv0.1.4.)- Setup Wizard (
reCart.Installer):Wizard_InstallDirauto-sorts into<suiteRoot>\engines\reCart\v<Version>;Wizard_PrimaryButtontransitions fromInstall->Finish/Close.
3. Hold Thresholds, Settle Delays & Frame-Pacing Quirks
- Cold AOT Compile Settle (Critical): On a fresh
--demo-cartboot,ColdAotCacheCompilercompiles<dataDir>\cache\ironframe-outerfortress-cart-01.Generated.dllasynchronously behindHostAotCompileOverlayView. Never send gameplay keys orESCafter a blind500 mssleep—poll untilcache\*.Generated.dllexists andAotCompile_Progressdisappears from/v1/tree(~2–15sdepending on host load; timeout45s), then settle400 ms. - Tap & Motion Pacing:
PlayerAutomationBridgemaps/v1/keyboardpress(RIGHT,DOWN,LEFT,UP,F1,F3,F5,F9,F11,ESC,Grave) intoHostSessionRunner.EnqueueKeyPress, whereHostInputMapperauto-releases synthetic taps after 2 frames (~33 ms). Issue3spaced presses (120 mscadence) followed by a300 mssettle before snappingrecart_gameplay_after.png(~0.65stotal beat). - Audio Synthesis Quirk (
v0.1.4): While_runtimeis mounting or falling back toSynthesizeDemoAudio, idle frames emit silent PCM (maxAbs == 0) and sound plays only on player input (RIGHT/DOWN/action) or once cold-AOTCartMachineHostPulse1 starts. Always driveRIGHT/DOWNbefore assertingAssert-WavAudible. - Clean Exit Order: Try
ESC(3swait); if a modal/drawer absorbedESC, fall back toF1->Tab_System->System_QuitGamerather than killing the process.
4. Calibrated Waypoints, Obstacles & Bounds
- Playfield Bounds (
256x240): Clamped playable interiorX in [18..224]($12..$E0),Y in [18..208]($12..$D0). - Tactical Obstacles: Perimeter border tiles at row
0/29and column0/31; corner pylons at(row 6, col 8),(row 6, col 23),(row 23, col 8),(row 23, col 23). Spawn(120, 112)has clear+X/+Ytravel for> 40 pxwithout colliding with any pylon.
5. Proven Timed Storyboards (Dev\scripts\run_stage2_sandbox_e2e.ps1)
| Beat | Target Overlay / Screen | Pre-Condition | Action / Hold / Clear Sequence | Timing Window | Post-Condition Assert | Live-Correct Fallback |
|---|---|---|---|---|---|---|
WIZ-01 |
Setup Wizard GUI | Fresh 4-Drive Sandbox | Verify Wizard_InstallDir, click Wizard_PrimaryButton (Install -> Finish) |
~22s max |
.ready + engine.manifest.json + sibling reSlate intact |
Read Wizard_StatusLabel via /v1/tree + snapshot PNG |
L1-01 |
Empty-Media Gate | Empty data\rom\ |
Boot reCart.Player, verify MediaGate_* IDs, snap PNG, clean exit |
< 5s |
MediaGate_BrowseButton/SelectModuleButton/LaunchDemoButton visible |
F1 -> Tab_System -> System_QuitGame if ESC absorbed |
B01 |
Cold AOT Settle | --demo-cart booted |
Poll cache\*.Generated.dll + absent AOT overlay, settle 400 ms |
<= 45s |
.Generated.dll created, gameplay viewport active |
Inspect /v1/tree + recart.player.log |
B02 |
Demo Gameplay + Audio | B01 settled |
Snap before.png; RIGHT+DOWN x3 (120 ms step) + 300 ms settle; snap after.png |
~1.0s |
diffCount >= 25, SHA-256 changed, wavPeak >= 50 |
Capture /v1/snapshot.png, verify HostViewport focus |
B03 |
F3 HUD + F1 Drawer |
Active gameplay | Press F3 (250 ms), F1 (250 ms), cycle ExtraRow_OverscanCrop x3 (0->8->16->0), click Video_Toggle_Overscan (8px), click Tab_System, verify ExtraRow_Region + 0 dupes, snap PNG, touch all remaining tabs, close F1 |
~2.2s |
ExtraRow_Region present; zero ExtraRow_FastForward/CutsceneSkip dupes; reCart v0.1.4 + Mapper/Execution Tier crisp |
Read /v1/tree node tree & inspect recart_f1_f3_live.png |
B04 |
Resize + F11 + F5/F9 |
Drawer closed | MoveWindow(1440,620) (350 ms), F11 x2 (350/250 ms), F5 (250 ms), F9 (250 ms), clean ESC exit |
~2.0s |
Pillarbox edges black, Fullscreen -> True/False, .slot0.savstate, AudioDroppedSamples=0 |
Inspect recart_resized_aspect.png & recart_fullscreen_live.png |
L3-01 |
Cross-Restart Persistence | B04 exited 0 |
Relaunch --demo-cart on same --data-dir, open F1, verify persisted Video_Toggle_Overscan (8px) + settings.video.json, quit + reEngine --open --wait |
~4.0s |
settings.video.json present, Video_Toggle_Overscan retains 8, routedPng > 500 B |
Inspect <dataDir>\settings.video.json + reEngine log |