Add hard parity screenshot smoke
This commit is contained in:
parent
13b8e6e3e9
commit
51672e691e
109 changed files with 4358 additions and 9 deletions
90
docs/parity-testing-harness.md
Normal file
90
docs/parity-testing-harness.md
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
# Eve Parity Testing Harness
|
||||
|
||||
The parity harness is the shared evidence path for Eve runtimes. It does not
|
||||
try to prove byte-identical pixels. It proves that every runtime is aiming at
|
||||
the same provider-owned CultUI surface: same fixture, same retained tree, same
|
||||
style-token expectations, same control anatomy, and explicit capture gaps.
|
||||
|
||||
## Authority
|
||||
|
||||
- `tools/parity/parity-manifest.json` owns the fixture matrix, runtime list, and
|
||||
expectations.
|
||||
- `tools/parity/run-parity.mjs` owns semantic fixture checks and report
|
||||
generation.
|
||||
- Runtime capture adapters own screenshots or frame capture for their platform.
|
||||
- `artifacts/parity/latest.md` and `artifacts/parity/latest.json` are reports,
|
||||
not source truth.
|
||||
|
||||
The manifest is the cut line. If a fixture or runtime is not in the manifest,
|
||||
it is not part of the parity claim.
|
||||
|
||||
## Run
|
||||
|
||||
Semantic checks:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\run-parity-harness.ps1
|
||||
```
|
||||
|
||||
Hard screenshot smoke:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\run-parity-smoke.ps1
|
||||
```
|
||||
|
||||
The semantic runner writes:
|
||||
|
||||
- `artifacts/parity/latest.md`
|
||||
- `artifacts/parity/latest.json`
|
||||
- `artifacts/parity/<timestamp>/parity-report.md`
|
||||
- `artifacts/parity/<timestamp>/parity-report.json`
|
||||
|
||||
The smoke runner writes:
|
||||
|
||||
- `artifacts/parity-smoke/<timestamp>/parity-smoke.md`
|
||||
- `artifacts/parity-smoke/<timestamp>/parity-smoke.json`
|
||||
- one PNG per target that has a real capture body.
|
||||
|
||||
## Current Checks
|
||||
|
||||
The first pass is semantic and fixture-driven:
|
||||
|
||||
- compile local CultUI `.eve` fixtures;
|
||||
- load local JSON surface fixtures;
|
||||
- check provider id;
|
||||
- check required component kinds;
|
||||
- check minimum component counts where useful;
|
||||
- check required style tokens;
|
||||
- check required bindings;
|
||||
- check retained slider skins and control parts.
|
||||
|
||||
This already catches the most embarrassing class of parity lie: a runtime or
|
||||
fixture claiming to render CultUI while the retained tree no longer contains
|
||||
the partitions, bindings, tokens, or slider anatomy the renderer is supposed to
|
||||
lower.
|
||||
|
||||
## Runtime Status
|
||||
|
||||
The harness tracks every target runtime:
|
||||
|
||||
- Web reference: active semantic and screenshot target through Chrome headless.
|
||||
- iOS / UIKit: screenshot target through SSH and EveCanvas'
|
||||
`/var/mobile/Library/EveCanvas/capture-request` service.
|
||||
- Android / Kotlin: screenshot target through `adb install`, activity launch,
|
||||
and `adb exec-out screencap`.
|
||||
- Windows / Flutter: screenshot target through the Flutter parity golden smoke.
|
||||
- Linux / Flutter: requires a Linux runner. A Windows host must fail this
|
||||
target instead of pretending to be Linux.
|
||||
- Fensalir Direct2D: specialized native target, adapter/capture still missing.
|
||||
|
||||
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. Add a Linux runner or WSL/Linux desktop capture body for Flutter.
|
||||
4. Add Direct2D frame capture once the Eve-to-`AquariumUiDocument` adapter
|
||||
exists.
|
||||
|
|
@ -14,14 +14,19 @@ recognizable CultUI fidelity: the same partitions, fonts, colors, panel
|
|||
treatments, spacing, image sampling intent, and control anatomy lower cleanly
|
||||
enough that Repixelizer remains itself across runtimes.
|
||||
|
||||
The shared fixture/report path lives in
|
||||
[parity-testing-harness.md](./parity-testing-harness.md). That harness is the
|
||||
current evidence surface for semantic parity and runtime capture gaps.
|
||||
|
||||
## Current State
|
||||
|
||||
| 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 | Needs visual regression fixtures and command round-trip tests |
|
||||
| Flutter | Preferred shared graphical client candidate | Not installed locally | Needs toolchain, app scaffold, provider picker, CultUI tree lowerer, token mapping, and slider anatomy fixture |
|
||||
| iOS / UIKit | Native proof | Renders Odin's fullscreen interface wall from `surface.root`, generic provider trees, and a custom VoidBot cockpit with avatar images | 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 and shows broker/sensor status | 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 |
|
||||
| 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 PNGs | Needs command round-trip tests |
|
||||
| Windows / Flutter | Active shared graphical smoke target | `flutter/eve_parity` renders the CultUI Inspector surface and emits a golden PNG 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 PNGs | 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 |
|
||||
| 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
|
||||
|
|
|
|||
|
|
@ -247,3 +247,8 @@ The web reference remains the fastest behavior/debug oracle. Flutter should
|
|||
become the preferred graphical parity oracle if it proves the CultUI Inspector
|
||||
and Repixelizer fixtures can stay recognizable across its target platforms with
|
||||
less duplicate renderer work.
|
||||
|
||||
The first shared harness is documented in
|
||||
[parity-testing-harness.md](./parity-testing-harness.md). It currently checks
|
||||
semantic fixture parity and records runtime capture gaps; screenshot adapters
|
||||
plug into that manifest as each runtime becomes capture-capable.
|
||||
|
|
|
|||
Loading…
Reference in a new issue