feat(visual-verification): Phase 0 engine-agnostic eye-test harness - #226
Draft
IanFrelinger wants to merge 2 commits into
Draft
feat(visual-verification): Phase 0 engine-agnostic eye-test harness#226IanFrelinger wants to merge 2 commits into
IanFrelinger wants to merge 2 commits into
Conversation
Rejection tests R1-R7 authored before implementation: - tampered frame detection - wrong scenario golden mismatch - nondeterminism gate teeth - hollow-capture detection - golden isolation source scan - Ed25519 signature binding - perceptual epsilon boundary Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
- Core records, canonical hashing, dHash perceptual tier, Ed25519 signing - SimulatedDisplayProvider (CI path) and XvfbDisplayProvider (integration trait) - EyeTestHarness with mandatory double-run determinism gate - Deterministic ToyRenderer with xoshiro256** PRNG - Self-playing demo via dotnet run on Nexo.ToyRenderer - README with threat model and determinism prerequisites Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 0 of the visual verification vertical: an engine-agnostic harness that runs a target under a virtual display, replays deterministic scripted scenarios, captures frames, and emits Ed25519-signed eye-test session records.
Changes
Nexo.VisualVerification— core records, canonical scenario hashing, dHash perceptual tier (ε=5), frame content store, golden witness storage, Ed25519 signing (parallel sibling toCertifiedTransition)Nexo.VisualVerification.Providers—IDisplayProvider/ITargetAppProviderseams,SimulatedDisplayProvider(CI path),XvfbDisplayProvider(integration trait),EyeTestHarnesswith mandatory double-run determinism gateNexo.ToyRenderer— deterministic toy target (xoshiro256** PRNG, spawn/despawn/pause channels, software RGBA renderer) + self-playing demo entry pointNexo.VisualVerification.Tests— seven rejection tests (R1–R7) plus engine-agnostic core scan and checked-in demo scenariosamples/visual-verification/demo-scenario.json— seeded demo scenario for CIDesign decisions (open questions resolved)
CertifiedTransitionsubtype?EyeTestSessionRecordwith same Ed25519 authority via NSecR7_PerceptualEpsilonBoundary{storageRoot}/{sha256}.rawGoldenRecordStore/GoldenEyeTestRecordwitness-only; harness usesFrameExpectationSetTesting
dotnet test tests/Nexo.VisualVerification.Tests/Nexo.VisualVerification.Tests.csproj dotnet run --project tools/Nexo.ToyRenderer/Nexo.ToyRenderer.csproj -- /tmp/nexo-eye-demoXvfb/xwd/convertunavailablef91bb3e5→4677476f)Rejection tests (R1–R7)
MismatchNonDeterministic, signing throwsCaptureFailureChecklist
dotnet test tests/Nexo.VisualVerification.Testspasses locally (headless, no Xvfb)src/Nexo.VisualVerification/README.md)TODO/NotImplementedException