Plan reliability repairs and persistence before expanding worlds

This commit is contained in:
dingo
2026-09-11 06:33:36 -04:00
parent ca571577ad
commit aaf0a0c89b
4 changed files with 429 additions and 6 deletions
+17 -3
View File
@@ -103,6 +103,14 @@ versioned title/equipment/stat catalog that world owners apply and checkpoint.
## Durability and ownership
**September 11 review:** [the reliability and persistence plan](../planning/RELIABILITY-AND-PERSISTENCE.md)
verifies duplicate whole-world payload writes and projection synchronization under
the simulation lock. Revised milestone 4 now makes their bounded repair, followed
by partitioned durable storage and recovery qualification, prerequisites for the
expanding-world generator. Preserve the current ownership/fencing and atomic
lifecycle claims. The storage design below describes current behavior; the plan's
journal and asynchronous checkpoints are not implemented yet.
Milestone 7 adds copied character-owned spells/ranks/cooldowns and weapon XP,
preserved by travel and revival and absent from replacement characters. Go owns
learning, unlocks, cast release, useful-hit XP, and moving aura effects. Pending
@@ -143,9 +151,15 @@ database can reverse deaths and transfers, so production needs a restoration pol
**Prototype durability limit:** an abrupt crash can roll back up to one second of
position and daily play usage. Gameplay mutations are acknowledged after a save;
unacknowledged inputs can disappear. Whole-world JSON checkpoints occur under the
simulation lock and are deliberately a simple first implementation. Before public
permadeath or large worlds, replace this with a durable event log, asynchronous
checkpoints, versioned migrations, and crash/latency fault injection.
simulation lock, currently with two serializations/payload updates in the general
save path. The dirty-or-periodic trigger also saves unchanged worlds. Explored
resource layouts remain resident/persisted after mesh eviction, so every save grows
with exploration. This is an architectural limit, not only a tuning issue.
Separate fenced lease heartbeats before suppressing idle payload writes; offline
lifecycle deadlines must still run. Replace full-world saves with partitioned state,
a durable event log, asynchronous checkpoints, versioned migrations, and
crash/latency fault injection before expanding worlds. Do not remove retained
corpses or weaken permanent-death, daily-time, or transfer rules to reduce cost.
## Progression and permanent titles