MeadowValley BackToEarth (SlateOne) 04 Recomp

Operations Runbook — HMBackToNature-Recomp (MeadowValley-BackToEarth-SlateOne-04-Recomp)

  • Last Updated: 2026-11-29 (Enhanced RC v0.5.0; Next Active Milestone: v1.0.0 Confirmed 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\) — zero Installers/ folder, zero Builds\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.0 Gate):
  • Assert-BinaryPurity: Release Launcher (*.exe) & Module (*.recomp.dll) carry 0 PE metadata references to Foundation.Automation or System.Windows.Forms.
  • Assert-InstallerPurity: Release Setup executable (pure Win32 WizardControl / InstallerWizardForm.RunDialog() + MessageBoxW) carries 0 PE metadata references to System.Windows.Forms, Foundation.UI, Foundation.Automation, or InstallerAutomationHook; invoking Release Launcher or Installer with --automation-port 5199 fails closed immediately with ExitCode = 2.
  • UI Preview Retirement: Legacy --dump-ui-preview is retired at v0.3.0 in favor of Debug/Test-only Foundation.Automation Stage 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_DRIVE with hostDiffCount == 0):
    1. T5 Pre-Package CLI & Pure Win32 Wizard (PASS, 0 Open Defects): Verified Release CLI containment (--verify Exit 4, --save-dir escape Exit 3, --open/--no-rumble/--cdda-volume/--pad*-type/--fullscreen/--overscan/--audio-driver dry-run Exit 0, --require-pure-static -> --execution-tier staticAotOnly & --promote-profile -> --profile Exit 0, --require-pure-static --jit-bringup Exit 2, --automation-port Exit 2), EADDRINUSE (port=64998 graceful=True), and Debug Win32 Wizard GUI (Lightweight (Module Only), Full (Bundle reEngine + reSlate), clean install/uninstall hostClean=true, unclipped labels verified on t5_wizard_01_confirmed.png).
    2. T6 Installed Release Bundle (build_release.ps1 -Version 0.5.0): Produces NTFS-hardlinked 7-file Releases\v0.5.0\ + Portable.zip, runs full 12-point sandbox (Setup Full, Portable.zip, .mcr/.rst migration, --automation-port ExitCode = 2), and purges $env:TEMP\hmbtn* (RETAIL_LEAK_COUNT = 0, TEMP_EXISTS_AFTER_PURGE = False).
  • Live Tri-Backend Gameplay & Media E2E (v0.4.0 Baseline / v0.5.0 Coverage — OPERATIONS.E2ECoverage.md & OPERATIONS.InputPlaybook.md):
  • v0.4.0 certified 42/42 VERIFIED surfaces (OpenGL 3.3 143.1 FPS, ParallelCpu 92.65 FPS, Vulkan 69.62 FPS, Test Q maxCpuMs=8.95 ms, Test G Diary 2 2.72s, xaDrops=0); v0.5.0 T5 pre-package cleared 22/50 Stage 1 & Stage 2 CLI/Win32 Wizard surfaces (0 failed, 0 open reports; live gameplay surfaces await BYO ROM + T6 packaging).

v0.5.0 Optimization & Runtime Diagnostics Notes

  • Pure Win32 Installer & reSlate v0.4.0 Lockstep: Migrated HMBackToNatureRecomp.Installer onto Foundation.Installer v0.6.0 pure Win32 dialogs (UseWindowsForms / Foundation.UI dropped from Release), kept InstallerPathResolver suite-first resolution + two-way Wizard auto-sort, and upgraded suite discovery onto reSlate v0.4.0 + reEngine v0.7.0.
  • Pure-Static 14/14 Readiness, 360° Analog Deadzone & Zero-RAM Rumble: Slus01115PureStaticReadiness checks PsxCpu.EvaluatePureStaticReadiness() + 14/14 binary IDs (jit=0, threadedIr=0, interp=0), Slus01115NativeActionHook.ComputeRescaledAnalogVector rescales 0x5C..0xA4 radial deadzones cleanly, Slus01115HapticRumbleController reads 0x42–0x4D motor state strictly at committed tick-ends (0 guest RAM writes), and SettingsMigrator.TryCheckNeedsMigrationUtf8 continues zero-DOM UTF-8 fast-path verification (4KB dirty-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\, or HarvestMoonBackToNature-PlayStation\, keeping upstream corpus assets separated) directly inside this module workflow. Small additive reSlate PATCH+1 runtime fixes go through upstream maintenance releases; broader host features (ContainerOffsetBytes fast-path for A_FILE.BIN, per-EXE overlay EntryAddresses, Original+targetFps=30 decimation) are tracked via upstream issue reports in reStation\Dev\docs\reports\ and reEngine\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.