Operations Runbook — HMBackToNature-Recomp (MeadowValley-BackToEarth-SlateOne-04-Recomp)
- Last Updated:
2026-11-29(Enhanced RCv0.5.0; Next Active Milestone:v1.0.0Confirmed Gold) - Stack:
.NET 8.0(net8.0) ·Foundation v0.6.0·reEngine v0.7.0·reSlate v0.4.0(reStation.{Contracts,Core}ABI preserved) - Container Layout: Strictly 4 folders at project root (
Archive/,Builds/,Dev/,Releases/, dual-junctioned under<WORKSPACE_ROOT>\Releases\Personal\HMBackToNature-Recomp\and<WORKSPACE_ROOT>\Releases\Personal\MeadowValley-BackToEarth-SlateOne-04-Recomp\) — zeroInstallers/folder, zeroBuilds\v<Ver>\AGENTS.md. - Timed Input Playbook & E2E Ledger:
OPERATIONS.InputPlaybook.md·OPERATIONS.E2ECoverage.md
1. Build, Test, Dossier Audit & Release Verification Commands
Run all commands from the project root (Personal/HMBackToNature-Recomp/) with Python -B so zero __pycache__ artifacts remain:
# 1. Synthetic unit regression suite (131/131 passing in Release and Debug with /warnaserror, 0 warnings, 0 retail assets)
$env:APP_ISOLATED_TEST = "1"
dotnet test Dev\HMBackToNatureRecomp.slnx -c Release /p:TreatWarningsAsErrors=true
dotnet test Dev\HMBackToNatureRecomp.slnx -c Debug -p:HMBTNTestAutomation=true /p:TreatWarningsAsErrors=true
# 2. Single-pass release packaging (Build -> Signed Pure Win32 4-Pillar Setup -> Portable.zip + Releases\ -> Archive\.7z -> audit_installer)
powershell -NoProfile -ExecutionPolicy Bypass -File "Dev\scripts\build_release.ps1" -Version 0.5.0
# 3. Verify / refresh aot-recipe.json cleanly from upstream MeadowValley-BackToEarth-SlateOne-04.decomp (v0.2.1, 52 modules)
powershell -NoProfile -ExecutionPolicy Bypass -File "Dev\scripts\relift_slus01115.ps1" -DecompBundle "..\HarvestMoonBackToNature-PlayStation\MeadowValley-BackToEarth-SlateOne-04.decomp"
# 4. Stage 2 4-Drive Sandbox E2E verification (12/12 Foundation checks + Pure Win32 GUI Wizard + Missing-Media Gate + EADDRINUSE + Warm <5s + Setup/Portable + Release ExitCode=2)
powershell -NoProfile -ExecutionPolicy Bypass -File "Dev\scripts\run_stage2_sandbox_e2e.ps1" -Version 0.5.0
# 5. Live Gameplay & Tri-Backend Media E2E (OpenGL/ParallelCpu/Vulkan + Tests A-Q-F + Test G, exebox-stream http://127.0.0.1:5005)
powershell -NoProfile -ExecutionPolicy Bypass -File "Dev\scripts\run_live_gameplay_e2e.ps1" -Version 0.5.0 -DiscSourcePath "<path-to-slus01115-disc>"
# 6. Documentation, AGENTS.md, anti-overclaim & 4-folder layout audits
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.gemini\config\skills\scope\scripts\audit_dossier.ps1" -ProjectPath "."
powershell -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\.gemini\config\skills\graduate\scripts\scaffold_project.ps1" -ProjectName "HMBackToNature-Recomp" -Group "Personal" -AuditOnly
# 7. Offline task graph verification
python -B "..\R&D\Dev\task_graph_helper.py" --project HMBackToNature-Recomp
Compiler & Tooling Note (reSlate.Compiler on SharedLibs\reSlate\v0.4.0\)
SharedLibs\reSlate\v0.4.0\reSlate.Compiler.runtimeconfig.json specifies self-contained includedFrameworks. Dev\scripts\relift_slus01115.ps1 must resolve the runnable reSlate.Compiler.exe from installed reSlate\v0.4.0\app\ (or build output / standalone app drop) rather than invoking a bare copied .dll under Dev\lib\.
2. Canonical CLI, Binary Purity & Exit Code Verification
- Strict Release Binary Purity (
v0.3.0/v0.5.0Gate): Assert-BinaryPurity: Release Launcher (*.exe) & Module (*.recomp.dll) carry 0 PE metadata references toFoundation.AutomationorSystem.Windows.Forms.Assert-InstallerPurity: Release Setup executable (pure Win32WizardControl/InstallerWizardForm.RunDialog()+MessageBoxW) carries 0 PE metadata references toSystem.Windows.Forms,Foundation.UI,Foundation.Automation, orInstallerAutomationHook; invoking Release Launcher or Installer with--automation-port 5199fails closed immediately withExitCode = 2.- UI Preview Retirement: Legacy
--dump-ui-previewis retired atv0.3.0in favor of Debug/Test-onlyFoundation.AutomationStage 2 Sandbox E2E (WizardAutomationSurfaceTarget). - Stage 2 4-Drive Sandbox E2E (
v0.5.0—Dev\scripts\run_stage2_sandbox_e2e.ps1+Foundation\Dev\tools\run_sandbox_e2e.py): - Reports
GetThreadDesktop()preflight honestly upfront (WinSta0\exebox-*,IsPhysicalMonitor=False) and streams suite-wide over Test Viewer (http://127.0.0.1:5005), verifying ephemeral 4-drive mounts (SANDBOX_C_DRIVE,SANDBOX_D_DRIVE,SANDBOX_REMOVABLE_DRIVE,SANDBOX_DISC_DRIVEwithhostDiffCount == 0):- T5 Pre-Package CLI & Pure Win32 Wizard (
PASS,0Open Defects): Verified Release CLI containment (--verifyExit4,--save-direscape Exit3,--open/--no-rumble/--cdda-volume/--pad*-type/--fullscreen/--overscan/--audio-driverdry-run Exit0,--require-pure-static->--execution-tier staticAotOnly&--promote-profile->--profileExit0,--require-pure-static --jit-bringupExit2,--automation-portExit2),EADDRINUSE(port=64998 graceful=True), and Debug Win32 Wizard GUI (Lightweight (Module Only),Full (Bundle reEngine + reSlate), clean install/uninstallhostClean=true, unclipped labels verified ont5_wizard_01_confirmed.png). - T6 Installed Release Bundle (
build_release.ps1 -Version 0.5.0): Produces NTFS-hardlinked 7-fileReleases\v0.5.0\+Portable.zip, runs full 12-point sandbox (Setup Full,Portable.zip,.mcr/.rstmigration,--automation-portExitCode = 2), and purges$env:TEMP\hmbtn*(RETAIL_LEAK_COUNT = 0,TEMP_EXISTS_AFTER_PURGE = False).
- T5 Pre-Package CLI & Pure Win32 Wizard (
- Live Tri-Backend Gameplay & Media E2E (
v0.4.0Baseline /v0.5.0Coverage —OPERATIONS.E2ECoverage.md&OPERATIONS.InputPlaybook.md): v0.4.0certified42/42 VERIFIEDsurfaces (OpenGL 3.3143.1 FPS,ParallelCpu92.65 FPS,Vulkan69.62 FPS,Test QmaxCpuMs=8.95 ms,Test GDiary 22.72s,xaDrops=0);v0.5.0T5pre-package cleared22/50Stage 1 & Stage 2 CLI/Win32 Wizard surfaces (0failed,0open reports; live gameplay surfaces await BYO ROM +T6packaging).
v0.5.0 Optimization & Runtime Diagnostics Notes
- Pure Win32 Installer &
reSlate v0.4.0Lockstep: MigratedHMBackToNatureRecomp.InstallerontoFoundation.Installerv0.6.0pure Win32 dialogs (UseWindowsForms/Foundation.UIdropped from Release), keptInstallerPathResolversuite-first resolution + two-way Wizard auto-sort, and upgraded suite discovery ontoreSlate v0.4.0+reEngine v0.7.0. - Pure-Static
14/14Readiness,360°Analog Deadzone & Zero-RAM Rumble:Slus01115PureStaticReadinesschecksPsxCpu.EvaluatePureStaticReadiness()+14/14binary IDs (jit=0, threadedIr=0, interp=0),Slus01115NativeActionHook.ComputeRescaledAnalogVectorrescales0x5C..0xA4radial deadzones cleanly,Slus01115HapticRumbleControllerreads0x42–0x4Dmotor state strictly at committed tick-ends (0guest RAM writes), andSettingsMigrator.TryCheckNeedsMigrationUtf8continues zero-DOM UTF-8 fast-path verification (4KBdirty-page bitmask rollback preserved).
Exit Code Quick Reference (INTERFACES.md)
0 Pass / Clean Exit · 1 Fatal Fault · 2 Bad CLI Usage / Disallowed Release --automation-port · 3 Containment Fault · 4 Missing Engine/Module/Disc or SHA Mismatch · 5 --jit-bringup Watchdog · 6 Unavailable --require-backend · 130 Cancelled (SIGINT).
3. 2-Tier Log Roots & Production Safety Boundaries
Always sweep both log roots (reading the 20–50 lines preceding any warning/error) before diagnosing runtime issues:
1. Tier 1 Installed Production (Strictly Read-Only during audits/tests):
- Canonical v0.3.0 install: %LOCALAPPDATA%\Programs\StreamItAll\reEngine\games\MeadowValley-BackToEarth-SlateOne-04\logs\ (alongside any legacy %LOCALAPPDATA%\Programs\StreamItAll\reEngine\games\HMBackToNatureRecomp\logs\ or custom-path pre-cutover installs).
2. Tier 2 Development Workspace: Dev\logs\ (contains only .gitkeep at clean baseline).
- Read-Only Upstream Trees: Never edit upstream dependencies (
Foundation\,SharedLibs\Foundation\,reStation\,reEngine\, orHarvestMoonBackToNature-PlayStation\, keeping upstream corpus assets separated) directly inside this module workflow. Small additivereSlatePATCH+1runtime fixes go through upstream maintenance releases; broader host features (ContainerOffsetBytesfast-path forA_FILE.BIN, per-EXE overlayEntryAddresses,Original+targetFps=30decimation) are tracked via upstream issue reports inreStation\Dev\docs\reports\andreEngine\Dev\docs\reports\.
4. Public Release & 2-Channel Checklist (isPublicRepo: true, requireHumanReviewBeforePush: false)
Status of release & clean-room gates for v0.5.0 public rollout:
1. [x] Staged Safety Backup & Pruning: Archived full pre-scrub snapshot (Archive\pre-scrub-v0.3.0.7z, 12,925,878 B, 7z t OK) and pruned stale Builds\v0.1.1\, Builds\v0.2.0\, Builds\v0.3.4\, and -hf.* directories.
2. [x] Clean-Room & Hygiene Gates: Verified 0 untracked *.g.cs, *.Generated.dll, Builds\*\AGENTS.md, root Installers\, PII workstation paths, raw UUIDs, or commercial trademarks outside README.md ## License & Legal.
3. [x] Dual-Track Git Config: Updated .gitignore (ignores Setup EXEs, Dev/lib/reSlate/reSlate.{Compiler,Player}.exe, Dev/data/, Dev/logs/, **/data/rom/, Dev/docs/*/) and .gitattributes (*.py text eol=lf + binary markers for .png, .ico, .dll, .exe, .recomp, .decomp, .7z).
4. [x] Isolated %TEMP% History Scrub Dry-Run: Verified Dev\scripts\scrub_git_history.ps1 (git-filter-repo) in an isolated %TEMP% clone (SCRUB_OK, remainingViolations=0, authors=StreamItAllGit preserved).
5. [x] T6 Packaging, History Scrub, Public Flip & Release Publish (requireHumanReviewBeforePush: false): Execute T6 (build_release.ps1 -Version 0.5.0, run_stage2_sandbox_e2e.ps1 -Version 0.5.0, live scrub_git_history.ps1 -ConfirmLiveRewrite, tag v0.5.0, public GitHub flip + Pre-Release v0.5.0 + Discord /post).
6. Maintain Minor-Window Retention (current MINOR + 2 prior MINORs): keep 0.5.x, 0.4.x, and 0.3.x in CHANGELOG.md and Releases\, pruning 0.2.x cleanly at v0.5.0.