OpenTPW

Own-format save/weather roundtrip audit#

Audit base: 3a47751a749afe2126a54693f9822a72ebd3f233 (2026-10-13). ACCEPT within the synthetic subsystem scope; no new production defect found. This audit adds missing full-envelope and file coverage without changing weather rules, save versions, restore ordering, UI, help or prototype behavior.

The prior direct weather-snapshot tests already cover the schedule, random stream, drops, lightning/thunder clocks and settings-dependent validation. Relevant saved history also records the completed forecast-day restoration fix and the accepted coaster/prototype save reviews. Their earlier original-data and GPU evidence is historical evidence, not a fresh qualification performed by this audit.

ParkResumeWeatherRoundtripTests uses real FixedStepClock, GuestSimulation, ParkEconomy, ParkWeather, cell-map and script-world capture/restore APIs. Its empty-object park has a live seeded visitor and explicit synthetic weather keys. The strict ParkResumeSaveFile codec and real .otpw file save/load carry the whole envelope into fresh runtime modules. Tests compare complete recaptured serialized envelopes, including weather and diagnostics; the gameplay digest alone would not prove weather preservation because it excludes weather state.

Five new cases cover:

Verification: 44 synthetic/related cases passed; two original-data cases skipped with OPENTPW_GAME_PATH unset. The full solution Release build succeeded with zero errors (141 warnings). The new-file style/whitespace checks, CRLF-aware diff check, fidelity register check and its eleven Python tests passed. No original asset files, binaries or GPU captures were opened or executed.

Limits: the fixture uses a synthetic manifest and no placed objects, scripts, coasters or prototype. It exercises the strict file path and fresh subsystem restores, not an asset-backed Level constructor, destination catalog/asset manifest qualification, rejected-level transaction, or renderer/presenter/audio attachment. Those integration paths and original weather parity remain deferred until their required assets and capture environment are available. In particular, the branch-local older prototype/coaster refusals are not changed by this audit; their accepted save work is integrated separately.

env -u OPENTPW_GAME_PATH dotnet test source/OpenTPW.Tests/OpenTPW.Tests.csproj \
  --filter 'FullyQualifiedName~ParkResumeWeatherRoundtripTests|FullyQualifiedName~ParkWeatherSnapshotTests|FullyQualifiedName~ParkWeatherTests|FullyQualifiedName~ParkResumeSaveFileTests|FullyQualifiedName~ParkResumeEconomyTests|FullyQualifiedName~ParkResumeValidationTests|FullyQualifiedName~FixedStepClockTests'
dotnet build source/OpenTPW.sln -c Release --no-restore

Independent review of f7cdd0b89514549c597b0db4f334fd8466b0c3f0 confirms ACCEPT within the same synthetic subsystem scope. The author filter passed 44 cases with two private-data cases skipped. The review added actual corrupted nested-weather JSON on deserialize (missing/null strikes, unknown members and a nonfinite or overflowing coordinates), plus explicit restored drops/bands/forecast and nonempty once-only thunder assertions. Pause now also compares against the pre-frame state, beyond equality between the two timelines. With these additions, 45 cases pass and the same two private-data cases skip. No production behavior changed. Build, changed-file style, fidelity and CRLF-aware whitespace checks pass; the integration limits above still apply.

Source: docs/SAVE-WEATHER-ROUNDTRIP.md in the project repository.