Files

3.8 KiB
Raw Permalink Blame History

Direct peer teleport lifecycle — 2026-11-27

The existing remote-speed pipeline fixture passes 322 checks, including 149 new direct 0xc5 checks, against the pinned runtime75d0ba65 library snapshot. Source/header base is6dc6e75a (the parent’s test-only integration on that runtime). Reused the exact library snapshot from the accepted173-check time-skipped run; hashes, result, receipt. Only the changed fixture was compiled/run; no native/codec build, full gate or client actions.

Reused contract

Source /mnt/Games/@project/build/source-server-main-20261124/source/src/game/Movement/MovementPacketSender.cpp:162, SendTeleportToObservers, emits packed mover GUID and complete MovementInfo with destination coordinates, immediately to observers excluding the controlling player. Handlers/MovementHandler.cpp:255, Player::ExecuteTeleportNear, emits around the old and new position. These justify complete observer packets and the selected-player negative; this fixture does not simulate the complete source teleport acknowledgement transaction.

Maintained native writer /mnt/Games/@project/servers/trinity-forever/src/server/game/Server/Packets/MovementPackets.cpp:825, MoveUpdateTeleport::Write, writes MovementInfo, force count, and optional speed bits. Existing src/remote_speeds.cpp supplies the observer mapping/status conversion with zero forces/absent optional speeds. Existing native/entity_translation.cpp:220–260 checks current unit presentation and named peer generation and invalidates the rejected target’s source pose. This task reuses that route and the existing exact positive wire golden; no new reader dispatch or client semantics are asserted.

Added assertions

Existing fixture, new direct cases uses NativeEntityTranslation::translate, with a codec callback that throws if invoked. No substitute route implementation is used. Requests in all admission tests contain the full packed GUID plus movement body; the source speed field is removed because it is not part of a teleport snapshot.

  • Exact single0x60000f packet/body matching the existing positive golden; a valid stationary teleport establishes peer pose.
  • Sixteen direct rejection cases: unsent, ineligible, zero actor generation, wrong presentation realm/map, wrong native identity, missing/unnamed/blocked/stale-generation peer metadata, non-unit actor kind, removed actor, changed call realm/map, selected self, and unknown peer.
  • Every rejection emits no packet, increments unsupported once, and leaves no pose for the rejected target. Each state is primed with a genuine valid teleport first; restoring presentation in the same translator then produces the exact valid packet again.
  • Recreated peer with stale naming generation remains held; matching its naming generation admits the complete teleport.
  • All source truncations and a trailing byte are independently rejected using a valid named peer, followed by exact recovery. These are not counted as evidence for self or lifecycle policy.

The existing173 checks, including0x319, remain in the same changed executable and pass. New cases pass the unchanged runtime: this closes a coverage gap, not a demonstrated runtime bug. No failing-before regression is claimed.

Scope and remaining boundary

Only tests/native_remote_speed_pipeline_test.cpp and this evidence directory change. No0x172 tests or parent runtime files touched. Actor retirement/recreation is tested by explicit binding-state transitions; complete world teardown/source create-destroy transactions, native reader dispatch, and live teleport acceptance remain outside this result. The old ledger’s direct0xc5 host admission gap is closed at the entity translator boundary without promoting it to client acceptance.