Verification¶
Structure, browser behavior and Axure roundtrip are separate checks. They answer different questions and are never merged into one "it works" claim.
| Layer | Question it answers | How to run |
|---|---|---|
| Structure audit | Are records parseable, references closed, widgets and states consistent? | Runs on every generate_prototype; verify for existing files |
| Browser behavior | Do clicks, navigation and state changes actually work? | Preview scenarios and assertions |
| Native roundtrip | Does Axure open, save, reopen and preview the file? | gui_roundtrip, optionally with preview: true |
Structure audit¶
Every generation runs structure checks and reports zero-error status for unparseable records,
dangling references and container problems. strictAudit: true additionally requires the
aesthetic audit to pass; when a font size or spacing token fires a soft warning, the audit names
the offending widget, its current value and the allowed token table.
verify({ "path": "/abs/file.rp", "deep": true }) inspects a file without creating working
copies. Duplicate widget names are reported per page in duplicates; cross-page duplicates from
shared components are summarised in duplicateSummary, expandable with
includeCrossPageDuplicates: true.
Browser behavior¶
Browser previews exercise real interaction scenarios: clicks, navigation between pages and state changes. Navigation and saved observations are inspected in the browser before delivery, not inferred from the source.
HTML / CSS / JS export produces a standalone build you can review or embed.
Native roundtrip¶
gui_roundtrip drives the native host: open, save, close, reopen, and optionally Publish →
Preview. It returns outputSha256 so the artifact can be matched after the roundtrip.
The host reports stages separately — opened, saved, closed, reopened, preview — because
they can succeed independently. Axure may skip writing an unmodified document; the host then
returns saved: false while recording saveCommandIssued: true. Acceptance uses the issued save
command, and the actual write is judged by file modification time.
What each layer does not prove¶
- Local layout or thin-page rendering is a layout convergence tool, not host acceptance. Anything relying on rotation, gradients, shadows, nesting or font fallback must be checked in Axure's own preview or after opening the file in the GUI.
- A GUI save/reopen does not prove the preview generated every page — check the preview page range separately.
- Structure health does not imply visual fidelity. Some effects ship as embedded raster assets; fonts and rendering depend on the host.