Skip to content

conference: a world entity that leaves is deleted, not marked present = 0 - #1525

Merged
transfix merged 1 commit into
masterfrom
feat/entity-deletes
Nov 24, 2026
Merged

transfix merged 1 commit into
masterfrom
feat/entity-deletes

Conversation

@transfix

Copy link
Copy Markdown
Owner

The last thing in the room tree that still left softly. write_room_entities marked an entity the world no longer has present = 0, so the tree (and every client's copy and join snapshot) kept a subtree for every entity that ever ran. Deletes replicate since #1473, and #1483 already removes the room's scene objects, lights and avatar options that way; entities waited on #1469 (OW5j), which edited the lines beside this one and has merged.

What changes

  • section_writer::remove takes an entry (a leaf or a subtree) out of a revisioned section: one delete, which every peer applies, and whose tombstone keeps a peer that still holds the entry from bringing it back. It never removes the section itself.
  • write_room_entities removes each entity the section has that the world does not, before the commit that bumps the revision. So a reader that sees the new revision no longer finds it.
  • Readers are unchanged: they still take only entries with present = 1, which a write sets last.

Tests

  • pose_stream_test: RoomEntities.TheSectionCarriesThemAndRemovesTheOnesThatWent: the entity that went leaves the tree, and comes back with a later write.
  • world_rules_test: SectionTest.RemoveTakesAnEntryOut: a subtree, a leaf, an id never written, and never the section itself; the stamp stays.
  • Locally on this branch: pose_stream 14, world_rules 10, holon_sync 38, room_aoi 14, room_scene 21, and the 20 stock arisrv ctests.

… = 0

write_room_entities marked an entity the world no longer has present = 0, so the room tree, and
every client's copy and join snapshot, kept a subtree for every entity that ever ran. Deletes
replicate since #1473, and the room's scene objects, lights and avatar options are
removed that way since #1483; entities now are too.

- section_writer::remove takes an entry (a leaf or a subtree) out of a revisioned section: one
  delete, which every peer applies, and whose tombstone keeps a peer that still holds the entry
  from bringing it back. Never the section itself.
- write_room_entities removes each entity the section has that the world does not, before the
  commit that bumps the revision, so a reader that sees the new revision no longer finds it.
  Readers still take only entries with present = 1, which a write sets last.

Docs: room_entities.h, the conference roadmap's reaping note, ARIADNE_WORLDS.md's scene wire
format and old-relay note.
@transfix
transfix merged commit 06a82d2 into master Nov 24, 2026
30 checks passed
@transfix
transfix deleted the feat/entity-deletes branch November 24, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant