Add reconnect state retention QA gate

This commit is contained in:
2026-05-19 14:05:17 -07:00
parent 428918bc75
commit 74c670a0e1
3 changed files with 122 additions and 1 deletions
+25
View File
@@ -179,3 +179,28 @@ Required evidence:
This gate is gameplay/server-relevant and should be covered by the next server
package deployment.
## Reconnect State Retention
The reconnect state retention gate proves a player can disconnect, reconnect,
and recover the MVP state that matters for a continuing survival session instead
of starting over from a blank pawn.
Required evidence:
- `AAgrarianGameGameMode::Logout` captures a player snapshot before the pawn is
released.
- `AAgrarianGameGameMode::RestartPlayer` restores a matching snapshot after the
normal MVP spawn path.
- `UAgrarianPersistenceSubsystem::SavePlayerSnapshot` and
`RestorePlayerSnapshot` preserve transform, safe player identity, survival,
care history, and inventory.
- Inventory restore uses `RestoreSavedItems` so derived carry weight and
inventory listeners refresh after reconnect.
- If no matching snapshot exists, the player falls back to the normal MVP spawn
point instead of failing the join.
- The manual two-client test records reconnect evidence alongside world
time/weather consistency.
This gate is server-relevant and must be rechecked after multiplayer package
deployment.