127 lines
5.4 KiB
Markdown
127 lines
5.4 KiB
Markdown
# Roadmap — M0 bis M6 (R1 + R3)
|
||
|
||
| Feld | Wert |
|
||
|---|---|
|
||
| Stand | 2026-10-24 |
|
||
| Aufwand | ~6–7 Wochen (solo, mit KI-Unterstützung) |
|
||
| Gerätebedarf | ab M3 (Performance), Pflicht in M6 (Abnahme) |
|
||
| Status | **M0 ✅ (2026-10-24) · M1 ✅ (2026-10-24)** · M2 als Nächstes |
|
||
|
||
Jeder Meilenstein hat ein **objektiv prüfbares Gate**. Kein Gate, kein Weiter.
|
||
|
||
---
|
||
|
||
## Übersicht
|
||
|
||
| # | Meilenstein | Dauer | Kern-Ergebnis | Gate |
|
||
|---|---|---|---|---|
|
||
| M0 | Skeleton & Toolchain | 1–2 Tage | Workspace, App, Bridge-Build | APK enthält `libffi.so` (arm64-v8a) |
|
||
| M1 | Sim-Kern | Woche 1–2 | deterministische Simulation + Tests | 10k Replays ⇒ identische Hashes |
|
||
| M2 | Content & Balance | Woche 2–3 | 2 Panzer, 6 Waffen, CLI | 100k Matches < 3 Min + CSV-Report |
|
||
| M3 | Flame-Client | Woche 3–4 | spielbares Match mit Drag-Aim | 3 Golden-Tests grün + 60 fps auf Gerät |
|
||
| M4 | Server (R3) | Woche 4–5 | Replay-Validator + Auth | Tamper-Replay ⇒ 409 |
|
||
| M5 | Async-PvP | Woche 5–6 | Ghost-Duelle Ende-zu-Ende | 2 Clients, Server-Verdict, Replay-Playback |
|
||
| M6 | Store-Härtung | Woche 6–7 | releasefähiges AAB | AAB + 16-KB-Check + 10-Min-Soak |
|
||
|
||
---
|
||
|
||
## M0 — Skeleton & Toolchain
|
||
|
||
**Inhalt**
|
||
- `git`-Repo, Cargo-Workspace, `rust-toolchain.toml` (1.85.0), `.cargo/config.toml` (Android-Linker)
|
||
- Flutter-Projekt `app/` (`--platforms=android`), `flutter_rust_bridge` 2.13 Template
|
||
- `tools/ci.sh`: `cargo fmt --check`, `clippy -D warnings`, `cargo test`, `flutter analyze`, `flutter build apk --debug`
|
||
|
||
**Definition of Done**
|
||
- `cargo test` läuft (auch wenn nur ein Smoke-Test existiert)
|
||
- `flutter build apk --debug` erfolgreich
|
||
- `unzip -l app-debug.apk | grep lib/arm64-v8a/libffi.so` findet die Rust-Bibliothek
|
||
- `targetSdk 36`, `minSdk 24` im Manifest
|
||
|
||
## M1 — Sim-Kern (Determinismus zuerst)
|
||
|
||
**Inhalt**
|
||
- `fixed.rs` (Q16.16, LUT via `build.rs`, `isqrt`), `rng.rs` (PCG32)
|
||
- `terrain.rs` (Heightmap 1024 Samples, Materialien, Kollaps), `ballistics.rs` (60-Hz-Integration, DDA)
|
||
- `damage.rs`, `state.rs` (Phasen, Züge, Timer), `hash.rs` (FNV-1a-Kette), `replay.rs` (v1)
|
||
- Tests: `determinism`, `replay_roundtrip`, `proptest_invariants`, 3 Golden-Replays
|
||
|
||
**Definition of Done**
|
||
- 10.000 Seeds × 200 Commands ⇒ identischer `final_hash` bei Wiederholung
|
||
- `replay → sim → replay'` byte-identisch
|
||
- Clippy-Deny auf `float_arithmetic` aktiv, CI-Grep auf `f32`/`f64` leer
|
||
- Laufzeit: 1 Match (4000 Ticks) < 10 ms auf Host
|
||
|
||
## M2 — Content & Balance
|
||
|
||
**Inhalt**
|
||
- `crates/content`: serde-Modelle, JSON (Waffen, Panzer, Map-Presets), Validierung, `content_hash` (blake3)
|
||
- `tools/balance`: CLI mit Heuristik-AI, `--matches N`, CSV (Win-Rates pro Panzer/Waffe/Map)
|
||
|
||
**Definition of Done**
|
||
- 100k Matches in < 3 Minuten, CSV reproduzierbar (gleicher Seed-Satz ⇒ gleiche Datei)
|
||
- Kaputtes Content-JSON ⇒ Test rot mit klarer Fehlermeldung
|
||
- Kein Panzer außerhalb 45–55 % Win-Rate (oder dokumentierte Ausnahme)
|
||
|
||
## M3 — Flame-Client
|
||
|
||
**Inhalt**
|
||
- `crates/ffi` (frb-API), Dart-`MatchController`, Snapshot-Interpolation
|
||
- Terrain-Renderer (`Vertices`, Dirty-Flag), Panzer/Projektil-Components, Drag-Aim, HUD, Kamera-Shake, Partikel
|
||
- `tools/device/*` (connect/steckbrief/install/smoke/perf/logs)
|
||
|
||
**Definition of Done**
|
||
- 3 Golden-Tests (Canvas) headless grün, bei UI-Änderung bewusst `--update-goldens`
|
||
- Hotseat-Match bis Sieger-Screen auf Gerät
|
||
- `perf.sh`: p90-Framezeit < 16,7 ms, Jank < 5 % (Profil-Build, Mid-Range-Gerät)
|
||
|
||
## M4 — Server (R3)
|
||
|
||
**Inhalt**
|
||
- `crates/server`: axum, Routen aus [protocol.md](protocol.md), `sqlx`/SQLite, HMAC-Tokens, `tower-governor`
|
||
- Dockerfile (multi-stage), podman-Build, Healthcheck
|
||
|
||
**Definition of Done**
|
||
- Integrationstests (reqwest gegen Testserver) für alle 7 Endpoints
|
||
- Tamper-Test: manipuliertes HP im Replay ⇒ `409 hash_mismatch`
|
||
- 200 req/s lokal ohne Fehler; Image < 60 MB; Kaltstart < 300 ms
|
||
|
||
## M5 — Async-PvP
|
||
|
||
**Inhalt**
|
||
- Matchmaking-Queue (Ghost-Auswahl nach Trophäen-Band), Turn-Submit mit `expect_hash`
|
||
- Replay-Playback im Client (Gegnerzug als Animation), Offline-Queue + Retry, Reconnect
|
||
|
||
**Definition of Done**
|
||
- Zwei Clients spielen asynchron ein Match zu Ende
|
||
- Client-Replay-Hash == Server-Hash
|
||
- Offline gespielter Match wird nach Netz-Rückkehr validiert und gutgeschrieben
|
||
- Manipulierter Client wird abgelehnt, UI zeigt „wird geprüft" statt Crash
|
||
|
||
## M6 — Store-Härtung
|
||
|
||
**Inhalt**
|
||
- `targetSdk 36`, R8-Keep-Rules (frb/JNI), `native-debug-symbols.zip`, 16-KB-Page-Check
|
||
- Data-Safety-Entwurf, Consent-Skeleton (UMP), Crash-Reporting (optional Crashlytics)
|
||
- Store-Assets (Icon, Feature-Graphic, Screenshots, Video), 12-Tester-Closed-Test starten
|
||
|
||
**Definition of Done**
|
||
- `flutter build appbundle --release` + `bundletool validate`
|
||
- `zipalign -c -P 16 -v 4` erfolgreich; `readelf -lW libffi.so` zeigt 0x4000-Alignment
|
||
- 10-Minuten-Soak auf Gerät ohne Crash, Crash-free Session = 100 %
|
||
- Checkliste in [compliance-play-store.md](compliance-play-store.md) vollständig abgehakt oder mit Owner versehen
|
||
|
||
---
|
||
|
||
## Abhängigkeiten & Puffer
|
||
|
||
- M3 setzt M1+M2 voraus (Snapshot-Felder müssen stehen).
|
||
- M4 kann parallel zu M3 beginnen, sobald M1 stabil ist (Server nutzt nur `sim`).
|
||
- Puffer: 1 Woche in M3/M5 für Perf- und Determinismus-Fixes.
|
||
- **Kritischer Pfad:** M1 → M2 → M3; M4/M5 sind unabhängig verschiebbar.
|
||
|
||
## Bewusst NICHT in M0–M6
|
||
|
||
Monetarisierung (M7), Kampagne, 2v2, Seasons, LiveOps, iOS. Diese kommen nach dem
|
||
Soft Launch — Entscheidung anhand der KPI-Gates in [monetization.md](monetization.md).
|