OpenTPW

TRACK-032: Restore saved controller semantics#

Status and classification#

Corrected native evidence#

Static examination of authorized tp.exe corrects the original proposal's terminology:

The verified field layout, addresses and parser policy are documented in TPWS-PAYLOAD.

Bounded implemented scope#

SaveTrackRideBlock reads a full outer container or an explicitly headerless subchunk body. It preserves every header word, unknown payload, duplicate identity/position, repeated reference request and stream order. Typed chunks use strict writer-shape sizes; this differs deliberately from native short-read zero-fill and excess-byte skipping. No runtime identity validation is implied.

Waypoint relocation keys remain absent (owner zero) or unresolved (owner nonzero). Existing owner headers alone cannot resolve them. There is no fabricated reference index, raw-pointer traversal or inferred circuit chain. All parsing is staged before a complete immutable document is returned; this establishes parser atomic return only, not park-restoration atomicity.

Remaining evidence and acceptance gates#

  1. Independently trace geometry-specific chunk-4 waypoint construction and all station/grid variants needed for a faithful chain.

  2. Trace the remaining raw-controller fields and saved-versus-re-derived walk verdict before runtime integration.

  3. Prove a saved controller differing from a fresh map walk restores duration, controller state and reference waypoint correctly.

  4. Test selector wrap, mandatory advancement, multiple markers, skipped grid waypoints and safely bounded malformed-chain refusal.

  5. Distinguish native first-match duplicate-coordinate lookup from any stricter managed ambiguity policy.

  6. Prove failed runtime restoration leaves the park unchanged, with independent source review and exact-head CI.

Review boundary#

The structural-reader increment is independently testable but does not close TRACK-032. No original executable/media is included in tests or documentation. Runtime work, approximation retirement and parity claims remain outside this increment.

Source: docs/proposals/track-032-restore-saved-controller-semantics.md in the project repository.