OpenTPW

UI-914: Scope information history residuals#

Status and classification#

Implemented boundary#

SaveParkStatistics resolves through OriginalParkImport's World-referenced model-13 analyser and reads five monthly histories, live arrivals and recent stays. Constructor, serializer, month producer and graph-consumer traces agree on the fixed TPW wire layout. The complete body and preceding capacities are checked before reading selected rings. Malformed selected metadata or active nonfinite happiness rejects the bundle before economy application. Signed values and each ring's independent physical head/wrapped state survive; inactive host slots become zero, while immutable parser records retain raw words.

ParkStatisticsHistory.Rating is independent of the financial ledger. Import creates no bank months. Month close samples rating once and shares that value with the ledger. Host JSON captures the ring, including an explicitly empty rating when ledger history exists. Only absent legacy rating or an absent legacy statistics section seeds rating from existing ledger months, once at restoration. The graph's live draw consumes the independent ring, and statistics remain outside the simulation digest.

TPI historical-import extension#

SaveThemeParkIncStatistics independently decodes the referenced TPI analyser's people/arrivals/happiness/stay/rating at monthly serializer positions 14/17/18/19/20 and Ring50. Running arrivals comes from ring 17's scratch word, not VisitorsThisMonth or ring 15. The bounded named-field walk permits variable unrelated counts; the six selected records require the fixed host capacities 144/50. Valid smaller selected native capacities are explicitly unsupported by this host profile. Raw wrapped-byte validation happens before bool collapse, active float samples must be finite, and signed samples and independent heads remain exact.

The production TPI factory applies the immutable bundle but retains its existing fresh economy, clock and calendar. This cross-boundary adaptation preserves prior relative history and combines imported partial inputs with the first new host month; it creates no bank months and is not exact native resume. The native graph's three selected series and the shared host five-series extension are documented separately in Theme Park Inc.

Evidence and tests#

Still open#

Ownership and acceptance#

Source: docs/proposals/ui-914-scope-information-history-residuals.md in the project repository.