function partitionForFrames
universe/src/partition.ts:57
partitionForFrames(galaxy: GalaxyId, frameChain: readonly FrameId[], position: UniverseVector) → PartitionKey
The partition owning something standing in a chain of frames.
Authority follows the frame, not the address: a ship has no address at all, but a ship inside Sol belongs to Sol's partition, and falling back to the galactic cell is only right out in interstellar space.
It lives here, with the two grammars it spans, because it previously did not:
the debug overlay open-coded it by scanning the chain for an s: prefix and
returning the frame id, which matched partitionForAddress only by
coincidence (ADR-0008). Two callers now need the answer — the overlay and the
authority the client joins — and two open-codings of a coincidence is how the
router and the tool you would use to debug the router come to disagree.
- galaxyGalaxyId
- Undocumented
- frameChainreadonly FrameId[]
- Undocumented
- positionUniverseVector
- Undocumented
ReturnsPartitionKey