Engineering case studySpaceLumin

Verified playable build

Player-state prediction inside a running browser game.

SpaceLumin / Lumin Flow: Utopia Run is a Three.js game and a systems testbed for runtime telemetry, Markov next-state prediction, adaptive gameplay architecture, and leakage-safe evaluation.

01 / Scope

System and contribution

A playable project with inspectable implementation evidence.

The engineering question: can a game observe meaningful player state, predict the next encoded state, and evaluate that prediction without contaminating gameplay?

I designed and implemented the gameplay systems, telemetry pipeline, Markov prediction model, runtime overlay, leakage-safe evaluation system, deterministic tests, and supporting PWA tooling.

02 / Runtime architecture

Prediction ownership

Read-only instrumentation boundary
  1. 01Game inputmovement · combat · flow
  2. 02TelemetryServiceruntime observations
  3. 03State encodingepoch-scoped state
  4. 04PredictiveAIMarkov next-state model
  5. 05Directorgame-owned predictions
  6. 06Evaluation adapterisolated scoring hooks
  7. 07Evidence outputsF3 overlay · immutable ledger
01

Encode behaviour

Runtime signals are reduced to discrete states so transition counts can be updated and queried without blocking the game loop.

02

Predict next state

The Markov model estimates the most likely next encoded state from observed transitions. It does not claim to predict a human mistake.

03

Deduplicate frames

A state epoch prevents repeated render frames from counting the same prediction opportunity multiple times.

04

Prevent leakage

Predictions are frozen before the outcome is observed; the evaluator receives completed events through an adapter.

05

Separate modes

Frozen-model and prequential learning modes remain distinct so their measurements stay interpretable.

03 / Evaluation design

Evidence without leakage

Human sessions pending
Mode A

Frozen evaluation

Scores a fixed model so outcomes can be interpreted without online training changing the evaluated transition counts.

Mode B

Prequential evaluation

Predicts first, observes the completed transition, scores it, and only then updates the online model.

Verified repository evidence

Evaluator architecture and runtime proof

Claims below describe the current implementation, not future results.

Verified16/16 evaluator tests

Deterministic coverage of event resolution, deduplication, model isolation, and exception-safe instrumentation.

VerifiedImmutable event ledger

Completed prediction events remain inspectable after scoring.

VerifiedProduction isolation

Scoring does not replace the prediction selected by gameplay.

VerifiedException-safe hooks

Instrumentation failure is isolated from the running game.

VerifiedState epochs

Repeated frames do not create duplicate prediction opportunities.

VerifiedF3 overlay

Prediction and telemetry state can be inspected during play.

In evaluation

No final accuracy claim yet

Controlled human-session data collection has not been completed. Accuracy, baseline comparison, latency distribution, calibration, aggregate export, and confidence intervals therefore remain pending.

Accuracy
Pending sessions
Baseline
Planned comparison
Latency
Distribution pending
Confidence
Intervals pending

04 / Engineering constraints

Known limitations

Explicitly documented

KernelMapper, NeuroFlowController, and CognitiveOverloadDetector advanced update paths are currently inactive or unreachable.

Director adaptive multipliers are calculated but are not yet consumed by gameplay systems.

A documented Director ownership/reference integration defect remains unresolved.

No claim is made for statistically superior prediction or validated frame rate across all mobile devices.

SpaceLumin is a working engineering system and an active evaluation project. The repository separates what runs today from what still needs evidence.

Inspect the implementation