1
0
Fork 0
polaris-task-force/tests
Z8MB1E 98d5ec63f8 feat(minigames): make Bomperator own-seat movement server-authoritative
Four prediction generations shipped and production still disagreed with the
server: v0.12.16's ack-sized envelope, wall-clock catch-up with a 1s cap,
ghost parity in both sims, and a forward-only replay clock. The last playtest
(n=645, rtt 41-69ms) still read gapP50 1.26, gapP95 7.05, 30% of snapshots
easing, with frameMax 17ms and zero server-side jumps. A second simulation
cannot be kept in agreement with the server by tuning.

Remove the second simulation instead:

- own seat renders the server's snapshot position through the same one-pole
  ease as remote players (shorter constant, 0.6 vs 0.4 per frame, because
  easing reads as input lag), snapping only past 1.5 cells (respawn/reset)
- drop the pending ledger, ack drain, input-to-ack EMA, envelope, trim and
  ease correction, optimistic kick overlay, and the local movement copy
- drop ghosts stay as visual feedback, placed at the server's own copy of our
  cell so they align with where the charge will appear
- telemetry now reports the ease's own-seat trail, own/remote snaps, snapshot
  cadence, frame max, ghost rows and RTT
- delete bomperator/prediction.ts, its offline harness and the prod-RTT
  fixture: they covered a mechanism that no longer exists

Input stays level-triggered on the monotonic seq + 400ms keepalive path. Cost
is one tick of queue (~25ms) plus one-way latency, the explicit trade for a
render that cannot diverge from the server.

tsc clean; bomperator-registry 19/19.
2026-10-21 11:42:32 -04:00
..
audit test(audit): support exact route filtering in the mobile audit 2026-10-13 10:38:45 -04:00
e2e test(test-db): template database + schema-hash cache + clone primitives 2026-10-21 10:03:33 -04:00
int feat(minigames): make Bomperator own-seat movement server-authoritative 2026-10-21 11:42:32 -04:00
push-schema.ts test(int-suite): auto-accept drizzle push prompts in tests/push-schema.ts 2026-10-21 10:03:33 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-global.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-marker.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-reporter.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-teardown.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00
vitest-worker-setup.ts test(vitest): parallel forks with per-worker database clones 2026-10-21 10:41:57 -04:00