05 · Collection embedding
Five Embeddings, Three Games
One Host operation attaches Alpha twice, Beta twice, and Gamma once. The workspace retains three unique managed Games but displays five embedding paths, and the Host observes initialization independently at every occurrence.
The identity distinction
A repeated reference is not a copied document.
Alpha has one authoritative child identity even though it occurs twice in the Host’s collection. The same is true for Beta. Gamma occurs once. Initialization runs once per unique managed child, while the Host’s occurrence-scoped listener reacts at all five paths.
Document identity controls child-session reuse. Occurrence identity controls where the child is embedded and where the parent applies its event.
Host /children ├─ /alphaHome ── Alpha Game ─┐ ├─ /alphaAway ─ Alpha Game ─┘ one child ├─ /betaHome ─── Beta Game ──┐ ├─ /betaAway ─── Beta Game ──┘ one child └─ /gamma ────── Gamma Game ─── one child 5 paths · 3 sessions · 5 Host events distribution: Alpha 2 / Beta 2 / Gamma 1
Run it
One request builds the whole graph.
This lesson uses one deliberately dense operation so the exact request, deduplication boundary, and occurrence-scoped results can be compared side by side.
What this teaches
Deduplication must happen at the right layer.
Collapsing equal references into one child session is correct. Collapsing their parent occurrences would lose meaning and events.
Alice’s Agent uses an active Operation Mandate to gain one exact power and loses it again after termination.