Spec 03
Tools
Pin 09 of 12
verify_reconstruction
Verify reconstruction · shape compare · group Prove
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.
uidna verify <scanId> <outDir>verify_reconstruction03.09.1Effects
03.09.2Input
| Field | Type | Required | Description |
|---|---|---|---|
scanId | string | required | Scan id returned by scan_interface, e.g. scan_20261013_3f9a1c. |
outDir | string | required | The generated project directory. |
viewports | array of integer | optional | Viewport widths in CSS pixels. Heights are derived: ≥1200 → 800, ≥700 → 1024, otherwise 844. |
thresholds | object | optional | — |
label | string | optional | Free-text label for this attempt, e.g. "after fixing hero spacing". |
build | boolean | optional | Rebuild the project before verifying. Default true. |
runGeneratedTests | boolean | optional | Also run the generated Playwright behavior tests and report their outcome. Default false. |
outRoot | string | optional | — |
03.09.3Result fields
idscanIdoutDirattemptcreatedAtthresholdssummaryvisualbehavioralresponsiveregressionsresolvedpreviousAttemptlimitationsunknownsartifactsEvery field arrives inside the evidence envelope.