refactor(world): canonicalize live physics host ownership

This commit is contained in:
Erik 2026-07-21 14:05:34 +02:00
parent 5882b308c1
commit fcb66198fc
21 changed files with 1546 additions and 323 deletions

View file

@ -1202,7 +1202,10 @@ public sealed class ProjectileControllerTests
fixture.Live.SetRemoteMotionRuntime(Guid, replacement);
remote.CellId = CellB;
Assert.Equal(CellA, record.FullCellId);
Assert.Equal(0u, remote.CellId);
// A displaced component retains read-only access to its exact
// incarnation through exit_world; its guarded write cannot mutate the
// current canonical owner.
Assert.Equal(CellA, remote.CellId);
replacement.CellId = CellB;
Assert.Equal(CellB, record.FullCellId);
}