Skip to content

fix(gateway): relay live gear changes to nearby peers - #662

Merged
Mathih13 merged 3 commits into
mainfrom
t3/research-fix-634
Oct 11, 2026
Merged

Mathih13 merged 3 commits into
mainfrom
t3/research-fix-634

Conversation

@Mathih13

Copy link
Copy Markdown
Contributor

Nearby Characters keep stale gear after an equip, swap, unequip or permanent enchant change. The item Relay sends updates only to the owner.

Add a peer Relay through the AOI audience on the same Shard. Each writer checks that its World Session still sees the Character. Peers receive only visible item fields. The first eligible writer reads the current slot occupant and shares that result with the other recipients, so a swap cannot clear replacement gear and each affected slot needs only one item-table scan.

Closes #634.

What you verified

  • Gateway suite: 2,143 passed. Four focused tests cover slot contents, enchant ID mapping, swaps, visibility, Transfer and private-field exclusion.
  • A disposable SpacetimeDB fixture passed the real Coordinator insert, update and delete callbacks. It checks enchant and Random Property changes, unequip, re-equip and deletion. CI now runs this test.
  • cargo fmt --all -- --check and workspace Clippy with all targets, all features and -D warnings passed.
  • Independent adversarial Standards and Spec reviews. Fixed the repeated table scans and added callback integration coverage. No remaining blockers.

What you did NOT verify

No real build-5875 client or production Realm check. The packet tests cover the existing visible-item codec; client rendering was not observed.

The pre-existing owner update for same-slot entry or Random Property changes made by debug reducers is outside this peer Relay fix.

Made with GPT-6-Astra and GPT-6.1-Sol through the Codex harness in T3 Code. Adversarial reviews used GPT-6-Astra.

@Mathih13
Mathih13 merged commit bb40302 into main Oct 11, 2026
10 of 12 checks passed
@Mathih13
Mathih13 deleted the t3/research-fix-634 branch October 11, 2026 18:21
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.

Peers do not see live gear and enchant changes until they sight the player again

1 participant