Build cross-runtime CultUI parity smoke

This commit is contained in:
Meta Vens 2026-06-05 22:07:43 +01:00
commit c12d78726a
29 changed files with 1435 additions and 156 deletions

View file

@ -375,6 +375,33 @@ Runtime lowerers must report capability gaps. If Android cannot yet render
Repixelizer's pixel-art image preview or cleanup canvas, the surface should say
that plainly instead of faking a control that cannot carry the command.
### Parity Unit Boundary
CultUI layout values are portable design units. A runtime may map them through
device scale for normal application rendering, but parity capture must make
that mapping explicit. The screenshot harness treats responsive web sizes,
Flutter test surface sizes, Android `wm size` captures, and native panel
captures as different verification layers.
Renderer defaults are forbidden writers for portable geometry. A runtime can
choose the local primitive that draws a slider, graph, card, dialogue panel, or
button, but the portable surface owns:
- component kind;
- child order;
- partition split, size, padding, gap, and alignment;
- style tokens and variants;
- element anatomy such as slider track/fill/thumb/bleed;
- embedded surface identity such as `embed.norn` or `embed.tex`;
- command identity and payload shape.
The current parity harness exposes this boundary with five fixtures:
CultUI Inspector, Repixelizer, Sai VN, Reactive DSL, and Huginn `.cc`. The
current screenshot body emits web, Windows Flutter, Linux Flutter on Nightwing,
iOS/UIKit, and Android/Kotlin captures. Fensalir Direct2D remains a named
pending target until the Eve-to-`AquariumUiDocument` adapter and Direct2D frame
capture exist.
## Style Patches
Style controls emit `style.patch`. The provider accepts, rejects, or reconciles

View file

@ -109,11 +109,13 @@ Pending runtimes are allowed. Silent fake parity is not.
## Next Cuts
1. Move the Flutter parity renderer from hardcoded inspector anatomy to the
compiled `gamecult.eve.surface.v1` fixture.
2. Wire iOS and Android capture to select a manifest fixture before capture,
instead of only launching the current app body.
3. Replace Flutter golden screenshots with native window captures once the
1. Add screenshot comparison metrics that score structure, color tokens,
bounding boxes, and text presence without pretending byte-identical pixels
are the goal.
2. Normalize text scale and font loading across web, Flutter, Android, and iOS.
3. Give iOS a real `vn.stage` scene compositor instead of compact stacked
fixture lowering.
4. Replace Flutter golden screenshots with native window captures once the
Flutter app body can emit a desktop frame without test harness help.
4. Add Direct2D frame capture once the Eve-to-`AquariumUiDocument` adapter
5. Add Direct2D frame capture once the Eve-to-`AquariumUiDocument` adapter
exists.

View file

@ -23,10 +23,10 @@ current evidence surface for semantic parity and runtime capture gaps.
| Renderer | Status | Proof | Gap |
| --- | --- | --- | --- |
| Web reference | Active reference/debug renderer | `web/` renders live VoidBot and fixture surfaces through the provider picker; compiles indentation CultUI; lowers partitions, field rows, and slider anatomy; Chrome headless capture emits phone/tablet/desktop PNGs | Needs command round-trip tests |
| Windows / Flutter | Active shared graphical smoke target | `flutter/eve_parity` renders the CultUI Inspector surface and emits phone/tablet/desktop golden PNGs through `capture-flutter-parity.ps1` | Needs lowerer fed by compiled `gamecult.eve.surface.v1` instead of hardcoded inspector widget |
| Linux / Flutter | Runner-blocked shared graphical target | Flutter Linux platform scaffold exists | Needs a Linux host/runner to emit a real Linux PNG |
| iOS / UIKit | Native proof | Renders Odin's fullscreen interface wall from `surface.root`, generic provider trees, and a custom VoidBot cockpit with avatar images; SSH capture emits PNGs | Needs provider picker, Repixelizer style token lowering, and a decision on what UIKit still owns if Flutter covers the shared graphical path |
| Android / Kotlin | Device-edge proof | APK builds, Periwinkle attaches through adb, and smoke capture emits phone/tablet/desktop PNGs via `adb shell wm size` | Needs provider picker, full surface tree rendering, style token lowering, asset image lowering, command controls, and a decision on what Kotlin still owns if Flutter covers the shared graphical path |
| Windows / Flutter | Active shared graphical smoke target | `flutter/eve_parity` loads exported `gamecult.eve.surface.v1` fixture JSON and emits phone/tablet/desktop golden PNGs through `capture-flutter-parity.ps1` | Needs native window capture and tighter text/style normalization |
| Linux / Flutter | Active shared graphical smoke target | Nightwing runs the Flutter parity goldens over SSH and returns phone/tablet/desktop PNGs | Needs native window capture and runner health checks |
| iOS / UIKit | Active native screenshot target | SSH capture stages selected fixture JSON, EveCanvas renders it, and emits a PNG from `/var/mobile/Library/EveCanvas/latest-screenshot.png` | Needs real scene composition for `vn.stage`, Repixelizer token fidelity, and responsive/simulator capture |
| Android / Kotlin | Active device screenshot target | APK builds with selected fixture assets; Periwinkle captures phone/tablet/desktop plus native portrait/landscape PNGs through adb | Needs text scale/font normalization, image lowering, and command controls |
| Fensalir Direct2D | Specialized native/game-runtime landing zone | Existing `AquariumUiDocument` and `DirectWriteOverlay` path | Needs adapter from Eve surface document to `AquariumUiDocument`, DirectWrite/Direct2D token lowering, and a clear reason to stay separate from Flutter for desktop UI |
## Spawned Surfaces