Implement behavior tree outcome synchronization #117

Open
opened 2025-12-17 03:27:47 +00:00 by siennathesane · 0 comments
siennathesane commented 2025-12-17 03:27:47 +00:00 (Migrated from github.com)

Description

Fast-changing behavior trees sync outcomes, not state.

Acceptance Criteria

Scenario: Behavior outcome sync works
  Given entities are owned by different peers
  When behavior tree executes
  Then outcome is synced (action completed, position updated)
  And intermediate state is not synced
  And sync latency is <100ms
  And all peers see consistent behavior results

Technical Notes

  • Outcome types: movement, interaction, state change
  • Sync strategy: deterministic schedule + outcome sync
  • Determinism: schedule generation is deterministic, behavior tree evaluation is deterministic
  • Desync detection: periodic state hash comparison
  • Reconciliation: if desync detected, re-sync from owner
  • Ownership determines authority: owner's outcome is truth

Size: M (4 points)
Priority: P0
Phase: 12 - Networking & Sync

## Description Fast-changing behavior trees sync outcomes, not state. ## Acceptance Criteria ```gherkin Scenario: Behavior outcome sync works Given entities are owned by different peers When behavior tree executes Then outcome is synced (action completed, position updated) And intermediate state is not synced And sync latency is <100ms And all peers see consistent behavior results ``` ## Technical Notes - Outcome types: movement, interaction, state change - Sync strategy: deterministic schedule + outcome sync - Determinism: schedule generation is deterministic, behavior tree evaluation is deterministic - Desync detection: periodic state hash comparison - Reconciliation: if desync detected, re-sync from owner - Ownership determines authority: owner's outcome is truth **Size:** M (4 points) **Priority:** P0 **Phase:** 12 - Networking & Sync
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: studio/marathon#117