feat(ffi): prove dart-to-rust pipeline and arm64 determinism on device

This commit is contained in:
2026-10-24 22:27:48 +02:00
parent 214ab7aac7
commit e371c72a35
11 changed files with 276 additions and 114 deletions
+18
View File
@@ -55,6 +55,24 @@
- Schaden fällt linear statt quadratisch ab (Balancing-Entscheidung offen).
- Spawn-Positionen fest (220 / WORLD_W-220); Karten-Presets folgen in M2.
## Gerät verifiziert (2026-10-24)
| Punkt | Wert |
|---|---|
| Gerät | Xiaomi M2101K7AG (Redmi Note 10), Android 12 / API 31, `arm64-v8a` |
| Display | 1080x2400 @ 440 dpi, 60 Hz, Notch 93 px, Ecken 106 px |
| GPU / RAM | Adreno 612 / 3,5 GB |
| APK | Debug, arm64-only, 144 MB (inkl. Debug-Symbole) |
| FFI | `DynamicLibrary.open("libffi.so")` → `iron_arc_abi_marker` = `1a2b3c4d` |
| **Determinismus** | Geräte-Hash == Host-Hash: `11470816335946967992` (Seed 42, 300 Ticks) |
| Nachweis | Screenshot mit grünem Banner „DETERMINISM PASS (arm64 == x86_64)" |
| Tooling | `tools/device/{steckbrief,install,smoke,perf,logs}.sh` |
**Lesson learned:** Dart-`int` ist vorzeichenbehaftet. Ein `uint64`-Rückgabewert muss als
`BigInt.toUnsigned(64)` formatiert werden, sonst zeigt die UI einen falschen „Mismatch"
(`-6975927737762583624` ist bitgleich mit `11470816335946967992`).
## Nächste Schritte (M2 zuerst)
1. `crates/content`: serde-Modelle + `content_hash` (blake3), JSON für 2 Panzer und 6 Waffen.