Skip to content

PHASE 6 COMPLETE: Reconciliation (Rollback-Resimulation)#5

Merged
harmandeeppal merged 3 commits into
mainfrom
feature/phase-6
Jan 9, 2026
Merged

PHASE 6 COMPLETE: Reconciliation (Rollback-Resimulation)#5
harmandeeppal merged 3 commits into
mainfrom
feature/phase-6

Conversation

@harmandeeppal
Copy link
Copy Markdown
Owner

Step 6.1: Client reconciliation implemented; Step 6.2: server helper + tests added; Step 6.3: ADR-013 recorded. All Phase 6 EditMode tests passing locally and CI (Unity Tests) green on self-hosted runner. Requesting review and merge.

Your Name added 3 commits January 9, 2026 21:01
… helper

Step 6.1: Implemented client reconciliation (buffered server state, PerformReconciliationIfNeeded, guards, and event).

Step 6.2: Added Phase 6 tests: Reconciliation_SmallCorrection_AppliesAndResimulates, Reconciliation_HardSnap, Reconciliation_ServerEmitCorrection_Applies.

Step 6.3: Added negative tests and TEST_REGISTRY updates.

Testing & Validation: Compiles clean; run EditMode tests locally next.
Step 6.1: Update tests to use GameObject.AddComponent<ServerEntity> (avoid MonoBehaviour 'new' error), ensure FakeNetworkPipe delivery is processed while client is subscribed, and increase HardSnap test simulation ticks to exceed MAX_RESIM_STEPS.

Testing & Validation: Tests compile; runs will be executed locally/CI.
Step 6.1: Client reconciliation implemented

- Implemented PerformReconciliationIfNeeded with batching, history/spiral/catastrophic guards, resimulation loop, and defensive authoritative writes; added DebugInjectServerState test helper.

Step 6.2: Server support & tests

- Added ServerEntity.EmitStateCorrection helper; added Phase6 EditMode tests: Reconciliation_SmallCorrection_AppliesAndResimulates, Reconciliation_HardSnap, Reconciliation_ServerEmitCorrection_Applies and negative tests: Reconciliation_BufferWrap_Safe, Reconciliation_NonApplicableCorrection_Ignored.

Step 6.3: ADR & Registry

- Added ADR-013 (Reconciliation Strategy) and updated TEST_REGISTRY.md.

Testing & Validation

- Local EditMode tests: all Phase 6 tests passing; CI: Unity Tests succeeded on self-hosted runner for feature/phase-6.

Performance

- Spiral guard (MAX_RESIM_STEPS) prevents frame budget blowouts; no allocations added to hot paths; further profiling pending.

CHECKPOINT 6: Phase 6 implemented, verified, and ready for merge after review.
@harmandeeppal harmandeeppal merged commit 6482487 into main Jan 9, 2026
1 check passed
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.

1 participant