OpenTPW

Draft proposal: ECON-023 — Specify breakdown state ownership#

Current residual#

Hosted breakdown state spans visitor bridge and economy flag with rising-edge synchronization; headless immediate repair is intentional.

Source audit#

Missing evidence#

Trace break/repair/condemn transitions and save boundaries to establish whether split ownership changes behavior.

Bounded proposal#

Produce invariant and transition table before proposing one authoritative hosted state; explicitly preserve headless extension.

Acceptance plan#

  1. VAR_BREAKSTAT precedes script VAR_BROKEN.

  2. mechanic waits for clear before repaired state.

  3. condemned state cannot look repaired.

  4. headless tests retain immediate contract.

  5. Retain an evidence manifest with fixture origin/hash, baseline revision, observed trace and expected result; synthetic cases must be labeled synthetic.

  6. Re-run the affected existing test suite and compare deterministic state/RNG traces where relevant; these are future checks, not tests run by this proposal.

Ownership and dependencies#

Completion boundary#

Bounded implementation (2026-10-20)#

Restores the supported TPW original-save retained broken/condemned visitor-bridge state after script/coaster attachment, only for a unique matching saved/economy/runtime owner, closed saved/runtime state and an available script. It uses the economy's existing gauge normalization, does not replay a breakdown event, and never rewrites script words. Unsupported cases report a reason without mutation. Synthetic regression cases cover ownership, unsupported states, idempotence, script preservation and queue drainage. This is not original VM continuation: ECON-023 remains unresolved and the broader ownership transition ledger and original oracle are still outstanding.

Source: docs/proposals/econ-023-specify-breakdown-state-ownership.md in the project repository.