reEngine — System Architecture
Synced Version: 0.7.0 (2026-11-29)
Scope: Runtime Topology, Assembly Boundaries, Execution Pipelines, File Inventory & Data Stores
License: Mozilla Public License Version 2.0 (MPL-2.0, root LICENSE)
1. System Context & Runtime Model
reEngine is a zero-daemon static recompilation package router, unified reEngine.Host.dll runtime host (native GPU contexts, live video filter + accessibility daltonization/flash-reduction pipeline, late-latch VRR pacing, SDL3 hot-switchable audio DSP & Sound Test, 4-port input with focus isolation and extended analog/hold-toggle/turbo/gyro tuning, dynamic device prompt glyphs, 10-rail two-column Deep Slate F1 overlay, full-screen Media Gate, native OS dialogs, and 100% controller navigation), WinForms-free SDL3 Suite Manager (reEngine.App), .decomp Bring-Up runner, <dataDir>\cache\ AOT assembly manager, and pure Win32 Setup installer (reEngine.Installer).
- Zero Background Footprint: Exiting the SDL3 Suite Manager UI or child engine leaves zero resident processes (
ReEnginePackagingConstants.AllowAutoStart = false,0 MBidle background memory, zero Windows Startup entries). - Peer User-Scope Suite Topology & Pure Win32 Setup: Non-admin installation uses
%LOCALAPPDATA%\Programs\StreamItAll\reEngine\{reEngine,toolchain,engines,games}\(umbrellaSubpath = "StreamItAll\\reEngine\\reEngine").reEngine.Installerruns pure Win32WizardControl.RunDialog()(Foundation.Installer v0.6.0), whileLegacyMigrationHelperpreserves all domain configs (settings.json,settings.video.json,settings.audio.json,settings.controls.json) and existing schema versions (Math.Max(existingSchemaVersion, 1)) with.bakrecovery across upgrades. - Canonical Split Storage (
<InstallRoot>\data\config\&<InstallRoot>\logs\):ProgramBootstrapHelperanchors--data-dir <InstallRoot>\data,--config <InstallRoot>\data\config\settings.json, and--log-dir <InstallRoot>\logs.SettingsDomainStore+HostSettingsStoreseparate runtime state acrosssettings.json(v2 core/execution + focus/prompt/accessibility defaults),settings.video.json(colorblindMode,isFlashReductionEnabled, display/filters),settings.audio.json, andsettings.controls.json(inputTuning+ 3-tier bindings + host actions) with automaticv1 -> v2migration (data\config_history\) and self-healingdata\quarantine\recovery. - Frontend Bridge, Engine Fallback, Bounded Shutdown & SDL3
.decompBring-Up: - Frontend game launchers route
.recomplaunches synchronously toreEngine.exe --open <pkg> --wait [--fullscreen] [--save-dir <dir>] [--shutdown-timeout-ms 3000]. - Root
reEngine.LauncherbindsLauncherJobObjectGuard(JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE) strictly whenShouldWaitForChildistrue; insidereEngine.App, during--waitcancellation,GracefulProcessTreeShutdownpostsWM_CLOSEacross the child process tree so saves flush cleanly into--save-dirwithinshutdownTimeoutMsbeforeJobObjectGuarddisposal, and abnormally exiting engines trigger prompt-first fallback relaunch (RecompLaunchCoordinator.TryCrashFallbackRelaunchAsync) assisted bySessionRecoveryLocator. - Double-clicking a
.decompfile from Windows Explorer opensReEngineSdlManagerWindowstraight onto theBring-Upshelf (MainShelfKind.BringUp) with automatic suite-tree media discovery (SuiteMediaTreeWalker),HostDialogServicepickers/prompts, standalone--verify-module, and interactive stage execution.
flowchart LR
User["User / Windows Shell\n(.recomp / .decomp)"] --> Launcher["reEngine.Launcher\n(reEngine.exe, single-file < 2 MB + wait-only JobObject)"]
Installer["reEngine.Installer\n(Pure Win32 Setup + installer.manifest.json)"] -->|Deploys peer suite & preserves split settings| Suite["%LOCALAPPDATA%\\Programs\\StreamItAll\\reEngine\\"]
Launcher -->|CWD path norm + sync-wait| App["reEngine.App\n(app\\reEngine.exe SDL3 Manager UI & CLI >=0.7.0)"]
App -->|Consumes| Core["reEngine.Core.dll\n(Compatibility, Recovery, Walker, D4_CleanSource, Verify)"]
App -->|Host Runtime & Presenters| Host["reEngine.Host.dll\n(5 Backends, 10-Rail UI, Prompts, Access, Tuning, Dialogs)"]
Suite --> ReDir["reEngine\\ (router + app\\)"]
Suite --> ToolDir["toolchain\\ (Full: CLI Ghidra + OpenJDK)"]
Suite --> EngDir["engines\\re<Platform>\\v<Ver>\\ (.ready)"]
Suite --> GameDir["games\\<GameRecomp>\\ (+ data\\rom\\)"]
App -->|--wait WM_CLOSE / crash fallback / detached| EngineExe["Child Platform Engine\n(reStation/reSlate, reCart/reCartOne/reNes)"]
App -->|2s feed check + resumable .part| Feed["Version Feed / .staging-<ver>"]
Core -->|AOT index + SHA-256 lock| Cache["<dataDir>\\cache\\aot-index.json"]
2. Assembly / .dll & Module Dependency Graph
The solution Dev\reEngine.slnx inherits Dev\Directory.Build.props (Version = 0.7.0, LangVersion = latest, Nullable = enable, TreatWarningsAsErrors = true, Deterministic = true, ContinuousIntegrationBuild = true in Release, <DebugType>none</DebugType>, and <PathMap> workspace scrubbing) and consumes Foundation v0.6.0 (WizardControl.RunDialog(), IAutomationSurfaceTarget, ExeboxStreamHelpers) from Dev\lib\.
graph TD
FC["Dev/lib/Foundation.Core.dll v0.6.0 (RO)"]
FR["Dev/lib/Foundation.Retro.dll v0.6.0 (RO)"]
FI["Dev/lib/Foundation.Installer.dll v0.6.0 (RO)"]
FL["Dev/lib/Foundation.Launcher.dll v0.6.0 (RO)"]
FA["Dev/lib/Foundation.Automation.dll v0.6.0 (RO, Debug/Test Only)"]
Core["reEngine.Core (net8.0)\nSDK, Compatibility, Recovery, SettingsDomainStore -> SharedLibs/reEngine/v0.7.0/"]
Host["reEngine.Host (net8.0;net8.0-windows)\n5 Backends, 10-Rail UI, Prompts, Access, Tuning -> SharedLibs/reEngine/v0.7.0/"]
App["reEngine.App (net8.0-windows)\nSDL3 Suite Manager UI, >=0.7.0 Flag Router, Fallback & .decomp Bring-Up"]
Launcher["reEngine.Launcher (net8.0-windows)\nSingle-File Root Stub (< 2 MB, LauncherJobObjectGuard)"]
Setup["reEngine.Installer (net8.0-windows)\nPure Win32 Setup EXE (ExitCode=2 Release guard)"]
Tests["reEngine.Tests (net8.0-windows)\n32 xUnit Verification Suites (163 Tests)"]
Core --> FC
Core --> FR
Host --> Core
Host --> FC
Host --> FR
Host -.->|Debug / ReEngineTestAutomation only| FA
App --> Core
App --> Host
App --> FC
App -.->|Debug / ReEngineTestAutomation only| FA
Setup --> Core
Setup --> FC
Setup --> FI
Setup --> FR
Setup -.->|Debug / ReEngineTestAutomation only| FA
Launcher -.->|Embedded GZip / Ref| FL
Tests --> Core
Tests --> Host
Tests --> Setup
| Assembly | Target | Allowed Dependencies | Boundary Constraints & Rules |
|---|---|---|---|
reEngine.Core |
net8.0 |
Foundation.Core, Foundation.Retro |
Zero WinForms/SDL UI deps; zero retail ROM/BIOS/generated assets |
reEngine.Host |
net8.0 / net8.0-windows |
reEngine.Core, Foundation.Core, Foundation.Retro, ppy.SDL3-CS, OS native GPU/dialog libs (opengl32/vulkan-1/d3d12/dxgi/comdlg32/shell32) (Foundation.Automation on Debug \| ReEngineTestAutomation=true only) |
Release net8.0 & net8.0-windows contain 0 Foundation.Automation, Foundation.UI, or System.Windows.Forms refs; direct clean-room P/Invoke/COM without heavy third-party UI SDKs |
reEngine.App |
net8.0-windows |
reEngine.Core, reEngine.Host, Foundation.Core, Foundation.Retro (Foundation.Automation/Foundation.UI on Debug \| ReEngineTestAutomation=true only) |
Release reEngine.dll contains 0 System.Windows.Forms, Foundation.Automation, or Foundation.UI refs; Fail-Closed ExitCode = 2 if --automation-port in Release; ExitCode = 6 on BackendUnavailableException |
reEngine.Launcher |
net8.0-windows |
Embedded Foundation.Launcher.dll |
Zero reEngine.Core or reEngine.Host ref (keeps single-file stub < 2 MB) |
reEngine.Installer |
net8.0-windows |
reEngine.Core, gzipped Foundation.{Core,Installer,Retro}, installer.manifest.json (Foundation.Automation/Foundation.UI on Debug \| ReEngineTestAutomation=true only) |
Release Setup contains 0 System.Windows.Forms, Foundation.Automation, or Foundation.UI refs; AllowAutoStart = false; preserves split configs & schemaVersion >= 1 |
reEngine.Tests |
net8.0-windows |
Core, Host, Installer + linked Launcher/App files + xUnit + Foundation.Automation |
Isolated APP_ISOLATED_TEST=1 temp roots only; Stage 2 visible-window sandbox E2E |
3. End-to-End Data Flow per Major Pipeline
3.1 .recomp Launch, Suite Media Fallback, Engine Resolution & Crash Recovery, --wait Teardown
- Shell double-click or CLI invokes root
reEngine.exe(reEngine.Launcher\Program.cs), which preserves--verify-module,--headless,--json, and--host-demo/--demo-cartsynchronously viaLauncherArgsHelper, normalizes caller-CWD relative paths (--rom,--disc,--media-path, selective--verify-module), handles optional-value--require-backend [<id>], attachesLauncherJobObjectGuard(JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE) strictly whenShouldWaitForChildistrue, and delegates toapp\reEngine.exe. Program.csdispatches interactive Explorer.decompor manager invocations directly ontoProgram.SdlManager.cs->ReEngineSdlManagerWindow(preserving Control IDsPill_Library,Pill_Engines,Pill_BringUp,Btn_ToggleDrawer,Drawer_Panel,Chk_Fullscreen,Btn_VerifyPackage,Btn_RunStage,Btn_VerifyDecomp,Btn_Close), runs--host-demo/--demo-cart(DemoCartSessionHelper), handles dual-mode--verify-module, or executesRecompLaunchCoordinator.EngineVersionResolverenforces resolution precedence: (1)pinnedEngineVersions(moduleId->engineId->EngineAliasCatalogaliases: exactSemVer,"bundled","target","latest"), (2) latest.ready-gatedre*candidate>= engineVersionNOT matchingincompatibleEngineVersions(EngineCompatibilityEvaluator), and (3) bundled fallback (TryResolveBundledOrTargetFallback).RecompLaunchPlanBuilder+RecompLaunchFlagRouternormalize backends (dx12/d3d12->directx,metal), throwBackendUnavailableException(ExitCode = 6) on--require-backend, fall back throughSuiteMediaTreeWalker, and route flags across< 0.3.0,>= 0.3.0,>= 0.6.0,>= 0.6.1, and>= 0.7.0(Supports070Routing).- On abnormal child exit (
not in {0, 6, 130}),RecompLaunchCoordinator.TryCrashFallbackRelaunchAsyncscansSessionRecoveryLocator(checkpoint > quickResume > quickSave/.state > saveVaultBackup > saveFile) and offers a prompt-first relaunch onto bundled/target fallback viaHostDialogService(suppressed cleanly underFOUNDATION_SUPPRESS_MODALS=1,--headless,--json,--dry-run, orAPP_ISOLATED_TEST=1). On synchronous--waitcancellation,GracefulProcessTreeShutdownpostsWM_CLOSEBEFOREJobObjectGuard.Dispose().
3.2 reEngine.Host Focus Isolation, Tuning, Dynamic Prompts, Accessibility & 10-Rail Menu
- Focus Isolation & Extended Input Tuning (
HostSessionInputBridge+HostInputTuningProcessor):HostSessionInputBridgeisolates unfocused keyboard/mouse events whenever!isWindowFocused(clearing held KBM keys immediately on focus loss), decouplesshouldPauseOnFocusLoss(pausesOnFrameTickAsync& mutes audio clock) fromallowBackgroundControllerInput(continues pollingPadPorts[0..3]when unfocused while KBM stays isolated), and delegates to allocation-freeHostInputTuningProcessor(12.0xfaster hot path) for inner/outer radial deadzones (5–50%/60–100%), stick curves (linear,exponential,smoothS), stick swap,isLookYInverted,mouseSensitivityY, Hold/Toggle latches (Sprint,AimBlock,Crouch,LockOn,FastForward, gated when menu open), deterministic Turbo (4–30 Hz), and 3D Gyro IMU delta scaling. - Dynamic Device Prompt Glyphs & Native Dialogs:
HostPromptGlyphProviderdetects the most recently actuated device family (Kbm,Xbox,PlayStation,Nintendo,SteamDeck,Generic) underpromptGlyphMode: "auto"(or honors explicit override) and renders clean-room geometric button badges ontoPixelOverlayCanvas.HostDialogServiceprovides WinForms-free native open-file, folder, Yes/No, and info dialogs honoringFOUNDATION_SUPPRESS_MODALS=1. - Accessibility Filters, Display/Filter Pipeline & Audio DSP:
HostAccessibilityFilterPassintegrates vectorized SIMD/fixed-pointcolorblindMode(none,deuteranopia,protanopia,tritanopia) 3x3 daltonization matrices and temporal luminanceisFlashReductionEnabledclamping (8.2xfaster) directly insideHostVideoFilterPipeline(zero-copy fast path preserved when disabled), alongsideHostFramePacingController,HostViewportGeometry(21:9 Hor++4:3FMVs),HostScreenshotService(F12), andHostAudioDspPipeline+HostSoundTestService. - 10-Rail Two-Column Deep Slate Overlay Menu +
Quit Game:F1SettingsDrawerViewdelegates layout toF1DrawerTwoColumnLayoutrendering Left Category Rail across all 10OrderedTabs(Quick Actions,Video,Audio,Controls,Keybinds,Accessibility,Packs & Mods,Manual / Notes,System,Media) + pinned redDrawer_QuitGamefooter button, Right Content Pane views (QuickActionsTabView,AccessibilityTabView,PacksAndManualTabViews,ControlsTuningSubView, etc.), and live footer device prompt hints viaIHostPromptGlyphProvider, with100%controller navigation (HostDrawerControllerNav).
3.3 .decomp, Root-Tree Media Discovery, D4_CleanSource & --verify-module Pipeline
SuiteMediaTreeWalkerperforms depth-capped (<= 5), reparse-safe, containment-checked media searches across module-local and<SuiteRoot>(games\*\data\rom\,gamedata\,data\rom\), flags multi-game ambiguities cleanly, and supports opt-inStageMediaIntoRomDirectoryAsynccopying.cue+ contained.bintracks (plus.fdsparity alongside.nes).DecompD4StrictnessValidatorenforces canonicalD4_CleanSourceacrossCanonicalCorpusTierswhile mapping legacyD4_FunctionalRewritewithout double counting.PackageVerificationServicevalidates.recompand.decompschema, clean-room integrity, engine/alias tracks, and media readiness (hasMediaReadywarning-only unless--require-media), emitting camelCase JSON (isPassed,generatedAtUtc,durationMs,exitCode).
4. Architecture Notes & SLOC Discipline (<= 250 / 400 / 600)
All v0.7.0 source and test modules (Dev/src/**/*.cs and Dev/tests/**/*.cs) stay below the 400 code-only SLOC soft ceiling (HostSessionRunner.cs 398 SLOC, ReEngineSdlManagerState.cs 346 SLOC, F1SettingsDrawerView.cs 298 SLOC, ControlsTabView.cs 253 SLOC, Program.cs 217 SLOC, reEngine.Installer\Program.cs 235 SLOC, HostInputTuningProcessor.cs 229 SLOC, HostAccessibilityFilterPass.cs 217 SLOC, HostPromptGlyphProvider.cs 187 SLOC, HostDialogService.cs 193 SLOC).
5. Settings, Manifest & State Store Ownership Map
reEngine uses zero SQLite databases; all runtime state persists in split atomic JSON domains with .bak, config_history\, and quarantine\ recovery:
File Store (under <dataDir>\) |
Owner Type | Canonical Keys | Backup / Locking Mechanism |
|---|---|---|---|
config\settings.json (template: Dev\settings.example.json) |
SettingsDomainStore / HostSettingsStore / LegacyMigrationHelper |
schemaVersion: 2, domain: "core", appId, updatedAtUtc, installProfile, executionTierMode, isJitEnabled, shouldPreloadMediaToRam, isFastBootEnabled, isSafeModeActive, shouldFastLoadData, shouldEnableRuntimeLogs, fastForwardMultiplier, shouldPauseOnFocusLoss, allowBackgroundControllerInput, promptGlyphMode, isFastTextEnabled, isFlashReductionEnabled, isSubtitlesEnabled, shutdownTimeoutMs, shouldCheckUpdates, shouldAutoStagePatches, pinnedEngineVersions, stagedUpdatePath, reEngineInstallDir, suiteInstallDir, umbrellaSubpath, decompSchemaVersion, goalDecompTier, targetDecompTier |
GranularSettingsManager .tmp atomic rename + .bak + config_history\ + quarantine\; [JsonExtensionData] preserves unknown keys |
config\settings.video.json |
SettingsDomainStore / HostSettingsStore |
schemaVersion: 2, domain: "video", backendId, resolutionScale, displayMode, monitorIndex, isFullscreen, isVsyncEnabled, frameRateMode, targetFps, backgroundFpsCap, aspectRatioMode, overscanCropPx, isFastForwardEnabled, isHdTexturePackEnabled, hudAnchorMode, videoFilterMode, isTrueColor24BitEnabled, isDitheringEnabled, screenshotCaptureMode, uiTextScale, isFpsOverlayEnabled, isCleanCaptureModeEnabled, colorblindMode, isFlashReductionEnabled |
Atomic .tmp + .bak + quarantine\ recovery |
config\settings.audio.json |
SettingsDomainStore / HostSettingsStore |
schemaVersion: 2, domain: "audio", audioDriver, audioOutputDevice, masterVolume, isAudioMuted, bgmVolume, sfxVolume, voiceVolume, shouldMuteOnFocusLoss, audioLowPassHz, audioHighPassHz, audioStereoWidthPercent, audioResamplingMode, fastForwardAudioMode |
Atomic .tmp + .bak + quarantine\ recovery |
config\settings.controls.json |
HostControlTierStore / HostInputTuningCodec |
schemaVersion, appId, domain ("controls"), updatedAtUtc, inputProfileMode, activeSchema, controlMode, mouseSensitivity, menuControllerChord, allowBackgroundControllerInput, promptGlyphMode, isLookYInverted, inputTuning (stickDeadzoneInnerPercent, stickDeadzoneOuterPercent, stickResponseCurve, isStickSwapped, mouseSensitivityY, holdToggleActions, turboActions, turboRateHz, gyroAimMode, gyroSensitivity), hostActionBindings, globalController, perGameController, perGameModern |
.tmp atomic replace with duplicate/hidden-slot validation, [JsonExtensionData] preservation, and SerializeDirtyCheckJson() idle disk-write suppression |
cache\aot-index.json |
AotCacheManager |
schemaVersion, entries[] (moduleId, romSha256, engineId, engineVersion, moduleVersion, fileSizeBytes, sha256Hex) |
.aot-index.lock cross-process mutex + .bak rotation + .tmp.<guid> atomic rename |
virtual_registry.json |
VirtualRegistryAssociationStore |
.recomp (reEngine.RecompModule), .decomp (reEngine.DecompModule), commandTemplate |
.tmp atomic replace strictly under APP_ISOLATED_TEST=1 |
modules\<moduleId>\settings.json |
Child re* engine (isolated by RecompLaunchPlanBuilder) |
Delegated to engine contract | Contained inside <dataDir>\modules\<moduleId>\ |
staged_updates\<engineId>\.staging-<ver>\*.part.meta.json & engines\<engineId>\v<Ver>\.ready |
UpdatePackageApplier |
.part.meta.json: engineId, version, downloadUrl, sha256Hex, expectedSizeBytes, fileSizeBytes, updatedAtUtc; .ready: engineId, version, completedAtUtc |
HTTP Range resume + SHA-256 verification + atomic staging directory rename |
6. Failure Modes & Resilience
- Dual-Binary Release Fail-Closed Automation Gate & Binary Purity:
reEngine.Host,reEngine.App, ANDreEngine.InstallerALL fail closed (ExitCode = 2) when--automation-portis supplied on aReleasebuild;Foundation.Automation.dll,Foundation.UI.dll, andSystem.Windows.Formsare omitted completely fromReleasereEngine.Core.dll,reEngine.Host.dll,reEngine.dll,reEngine.Installer.exe, andSharedLibs\reEngine\v0.7.0\. - Zip-Slip / Traversal & SSRF Guards:
RecompPackageReader.Load,DecompPipelineCoordinator.ParseManifest,SuiteMediaTreeWalker,HdPackResolver,SessionRecoveryLocator, andUpdatePackageApplier.ExtractArchiveSafelyreject rooted, symlink/reparse, or..-escaping paths;UpdatePackageApplier.AssertSafeRemoteUrlblocksfile://, loopback, RFC 1918, and link-local/metadata IP ranges. - Missing Engine, Crash Fallback & Backend Availability: Missing
.recompengine -> Exit1;--require-backend [<id>]unavailable -> Exit6(BackendUnavailableException);.decompunbuilt engine -> Exit3. Abnormal engine exits trigger prompt-first fallback relaunch (TryCrashFallbackRelaunchAsync) +SessionRecoveryLocatorartifact discovery. - Non-Quitting Host
Esc& Clean-Room Violations:HostSessionParityHelper.ApplyNonQuittingEscapenever terminates the host process (cancels keybind capture -> closes drawer -> passesEscto game if bound inperGameModern-> releases relative mouse capture; explicit exit usesDrawer_QuitGame,System_QuitGame,X, orAlt+F4). - Offline Update Feeds / Crashes:
UpdateCoordinatorskips unavailable feeds cleanly (NetworkUnavailable = true,[WARN],2sper-target poll timeout, Exit0unless--strictreturns Exit4). Fatal unhandled exceptions writelogs\crashes\crash_reengine_*.jsonviaCrashBundleService.
7. Security & Privacy Model
- Zero PII & Deterministic Paths:
Directory.Build.propsenablesDeterministic = trueandContinuousIntegrationBuild = true+<PathMap>in Release; release verification and archive exclusions (-xr!data -xr!logs) keepBuilds\,Releases\,SharedLibs\, andArchive\free of PII, machine paths, local workspace configs,.pdb,.env, and*secret*.json. - No Network Calls at Rest or Decomp: Zero telemetry servers, zero runtime Ghidra/OpenJDK downloads (
OfflineToolchainLocatoruses stagedtoolchain\only), and zero background daemons (AllowAutoStart = false). - Registry & Modal Isolation:
WindowsRegistryAssociationStorerefuses registry writes whensuppressHostMutations: trueorAPP_ISOLATED_TEST=1is active;HostDialogServicehonorsFOUNDATION_SUPPRESS_MODALS=1fail-closed. - Apache-2.0 / GPL Separation:
stage_offline_toolchain.ps1andOfflineToolchainLocatorreject unstrippedghidra\GPL\directories and requireTHIRDPARTY_LICENSES.txtalongsidetoolchain\.
8. Testing Strategy Map (32 Suites, 163 Unit/Contract Tests + Stage 2 Visible E2E)
Run isolated zero-warning unit & contract tests:
$env:APP_ISOLATED_TEST = "1"
dotnet test Dev\reEngine.slnx -c Release /warnaserror
dotnet test Dev\reEngine.slnx -c Debug -p:ReEngineTestAutomation=true /warnaserror
Run full Stage 2 visible-window sandbox E2E (Stage2V060Probes + Stage2V061ParityProbes + Stage2V070Probes [10-Rail Two-Column Overlay, Tab_QuickActions, Tab_Accessibility, Xbox prompt glyphs, Drawer_QuitGame, deuteranopia + --flash-reduction] + Dual-Binary Release ExitCode = 2):
powershell -NoProfile -ExecutionPolicy Bypass -File Dev\scripts\run_stage2_sandbox_e2e.ps1 -Version 0.7.0
- Suites (
32total;29priorv0.1.0–v0.6.2suites +3added inv0.7.0): - Prior (
29):ManifestAndResolverTests,DecompAndToolchainTests,DecompProviderAndD4ValidatorTests,AotCacheManagerTests,InstallerAndAppStatusTests,InstallerWizardAutoSortTests,AssociationUpdateAndContainmentTests,UpdateStagingAndTracksTests,UpdateSweepAndTelemetryTests,LauncherAndLaunchPlanTests,SettingsMigrationAndLaunchTests,HostSurfaceAndInputTests,HostUiDrawerAndGateTests,HostReleaseAutomationStripTests,HostMultiBackendAndAudioTests,HostMultiBindInputAndTouchTests,MediaTreeWalkerAndVerifyModuleTests,SyncWaitShutdownAndDecompUiTests,HostViewportGeometryAndPresentersTests,HostMultiPortInputAndHotkeysTests,EngineRoutingAndMediaDiscoveryTests,HostExecutionResilienceAndSettingsSplitTests,HostDisplayVrrFiltersAndCaptureTests,HostAudioDspAndJukeboxTests,AppV060RoutingAndUiTests,EngineResolutionV061AndCrashFallbackTests,HostParityUiScaleMediaGateAndControllerNavTests,HostNonQuittingEscMouseCaptureAndHotkeysTests,HostV062PrelaunchParityTests. - Added in
v0.7.0(3):HostV070FocusAndInputTuningTests.cs(focus-loss KBM isolation, background gamepad toggle, radial deadzones, stick curves, stick swap,isLookYInverted,mouseSensitivityY, Hold/Toggle latches, Turbo pulses, 3D Gyro aim,HostInputTuningCodec),HostV070PromptsAccessibilityAnd10RailTests.cs(HostPromptGlyphProviderauto/explicit device switching,HostAccessibilityFilterPass3x3 daltonization + flash reduction, 10-railF1DrawerTwoColumnLayout+Drawer_QuitGame+ controller rail/pane navigation),AppV070SdlManagerAndPurityTests.cs(ReEngineSdlManagerState+SdlManagerShelfRenderers,HostDialogServiceFOUNDATION_SUPPRESS_MODALS=1,v0.7.0CLI parser/router parity, Release binary purity checks).
9. Design Decisions Log (ADR)
- ADR-014 ·
2026-11-29·v0.7.0— EarlyreEngine.AppSDL3 Manager Cutover, Pure Win32 Setup, Focus Isolation, Extended Input Tuning, Dynamic Prompt Glyphs, Accessibility Passes & 10-Rail Two-Column Overlay: SyncedFoundation v0.6.0and migratedreEngine.Installeronto pure Win32WizardControl.RunDialog()(WizardAutomationSurfaceTargetDebug-only) plusreEngine.Apponto native SDL3 (ReEngineSdlManagerWindow,HostDialogService), eliminatingSystem.Windows.FormsandFoundation.UIfrom all Release binaries (reEngine.dll,reEngine.Installer.exe,SharedLibs\reEngine\v0.7.0\); decoupledshouldPauseOnFocusLossfromallowBackgroundControllerInputwith strict unfocused KBM isolation (HostSessionInputBridge); added allocation-freeHostInputTuningProcessor(12.0xfaster),HostPromptGlyphProvider(IHostPromptGlyphProvider), SIMD/fixed-pointHostAccessibilityFilterPass(8.2xfaster), 10-railF1DrawerTwoColumnLayout+ pinnedDrawer_QuitGame, symmetricalv0.7.0CLI routing (Supports070Routing),.github/workflows/ci.yml, andDev\docs\CHARTER.md. - ADR-013 ·
2026-11-23·v0.6.2— Thread-Safe Live Overlay Controls,HostSettingsStoreHydration/Dirty-Save,0 pxJitterF3HUD & Deferred Synthetic Tap Release: ExtractedHostSessionOverlayAndSettingsHelperfor thread-safe liveSetAotCompileState/SetMediaGateState/UpdateDrawerDescriptor, startup hydration + liveF1dirty-save persistence, Browse error banner retention,0 pxF3pill width, and 2-frame synthetic non-hotkey tap auto-release. - ADR-012 ·
2026-11-20·v0.6.1— Single-Host Parity Floor, Engine Precedence + Crash Fallback & Unified CLI/Launcher: DeliveredHostOverlayTextRenderer(1.45x * uiTextScale),HostActionBindingSet(hostActionBindings+menuControllerChord),HostRelativeMouseController, 4-step non-quittingEsc, Glass Media Gate,HostDrawerControllerNav,EngineCompatibilityEvaluator,SessionRecoveryLocator, and wait-onlyLauncherJobObjectGuard. - ADR-011 ·
2026-11-20·v0.6.0— Host Resilience, Split Config, 8 Video Filters, Late-Latch VRR & Audio DSP: Split JSON state (settings.jsonv2,video,audio,controls) withquarantine\/config_history\, addedBootCrashSentinel,MediaRamPreloader,ExecutionTierPolicy, 3 display modes, late-latch VRR,21:9+ HUD anchors, 8 filters,F12capture, and biquad Audio DSP + Sound Test. - ADR-010 ·
2026-11-20·v0.5.0—HostViewportGeometry, 4-Port / 3-Tier Input, DecoupledIHostAutomationBridge, 3-WayreCartAlias &hostProtocolVersionRouting. - ADR-001–ADR-009 (
v0.1.0–v0.4.0): Zero-daemon< 2 MBLauncher (AllowAutoStart = false), parent-rootapp\*.recompdiscovery, peer suite layout (StreamItAll\reEngine), shared SDL3reEngine.Host.dlloverPixelOverlayCanvas, native OpenGL/Vulkan/DirectX 12/ParallelCpupresenters,D4_CleanSource,SuiteMediaTreeWalker, and boundedWM_CLOSE--waitteardown.
10. Zero-Touch Extension Playbooks
- Adding a New Platform Engine (
reCart/reCartOne/reNes,reCart64/re64,reBlast16/reGenesis,reCube): Consume<SHARED_LIBS>\reEngine\v0.7.0\reEngine.Core.dllandreEngine.Host.dll(+Foundation v0.6.0), implementIHostSessionCallbacks,IHostSessionEventCallbacks, and optionalIHostSoundTestProvider/IHostPromptGlyphProvider, optionally inject Debug-onlyIHostAutomationBridgeviaHostSessionOptions.AutomationBridgeFactory, declareschemaVersion: 2,hostProtocolVersion: "0.7.0", andlegacyEngineIdsinengine.manifest.json, and install with.readyunder<SuiteRoot>\engines\<engineId>\v<Ver>\. - Adding a Game
.recomp/.decompModule: Shipmodule.recomp.json/module.decomp.jsondeclaringengineId,supportedEngineTracks, optionalincompatibleEngineVersions/defaultFramerateMode,backendId, andexecutionTierMode, while keeping userdata\rom\media untracked locally. - Adding a New Persisted Settings Field: Add a nullable camelCase property or read via
ReEngineSettings.ExtensionData, document it inINTERFACES.md+Dev\settings.example.json, register video/core keys inSettingsDomainStore, and preserve.bakrecovery. - Adding a CLI Subcommand/Flag: Add option parsing in
RecompLaunchOptionParser, register sync/value tokens inLauncherArgsHelper(keeping optional flags like--require-backend [<id>]explicitly handled), route inRecompLaunchFlagRouter, and add containment assertions for filesystem path options.