UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 09 of 12

Pin09

verify_reconstruction

Verify reconstruction · shape compare · group Prove

Provecompare

Build and serve the generated project, render every base state of every crawled page the project contains at its viewport (each page at the route the project manifest uidna.generated.json records when it was generated from this scan, else at the route the document records; pages the generator left out are reported, not compared), and compare it with the original: pixel diff, SSIM, bounding-box geometry, computed styles, missing or extra elements. Then replay every recorded transition whose source state is reachable from a base state by a chain of at most 8 recorded transitions without side effects (locating each target by role and accessible name, then by the normalized name, then by its data-uidna-path attribute, then by tag and text): clicks, hovers, focus, keys, form fills with the recorded synthetic values, form submits (the request is blocked, as during the scan) and same-origin navigations through the original link, comparing the resulting role-tree change, URL and screenshot. Transitions that caused a side effect are never replayed, except a same-origin navigation that sent no non-GET request. With runGeneratedTests, also runs the generated Playwright behavior tests (npm run test:behavior) and reports each result. Returns a DiffReport with one finding per concrete difference, plus regressions and resolved findings relative to the previous attempt.

CLIuidna verify <scanId> <outDir>
MCPverify_reconstruction

03.09.1Effects

Writes artifactsunder the scan directory
Destructivenon-destructive
Idempotentnot idempotent
Networklocal only
Long-runningprogress and cancellation

03.09.2Input

FieldTypeRequiredDescription
scanIdstringrequiredScan id returned by scan_interface, e.g. scan_20261013_3f9a1c.
outDirstringrequiredThe generated project directory.
viewportsarray of integeroptionalViewport widths in CSS pixels. Heights are derived: ≥1200 → 800, ≥700 → 1024, otherwise 844.
thresholdsobjectoptional—
labelstringoptionalFree-text label for this attempt, e.g. "after fixing hero spacing".
buildbooleanoptionalRebuild the project before verifying. Default true.
runGeneratedTestsbooleanoptionalAlso run the generated Playwright behavior tests and report their outcome. Default false.
outRootstringoptional—

03.09.3Result fields

idscanIdoutDirattemptcreatedAtthresholdssummaryvisualbehavioralresponsiveregressionsresolvedpreviousAttemptlimitationsunknownsartifacts

Every field arrives inside the evidence envelope.