What the collector does
npm run evidence refuses to run against an offline build. It starts the built site on a separate port, loads every route in dist/data/routes.json, and records:
- route, page title, and HTTP status;
- browser version and viewport;
- git revision, baseline release, and run id;
- uncaught page errors;
- Guidepup virtual transcripts for initial and state-specific conditions;
- invalid and valid form attempts; a
validstate is recorded only when the status region confirms the submission. An unconfirmed attempt is recorded asvalid-failed, shown as a gap in coverage, and fails validation unless--allow-evidence-failuresis used; - an ARIA inventory;
- screenshots for light, dark, and selected states;
- axe results for the initial route state and for every declared component state, after any required activation, under the default light fixture condition;
- matched baseline/experiment screenshots at 900 × 900 for light, dark, forced-colours, and increased-contrast browser conditions;
- per-state violation lists so the build can classify baseline-only, experiment-only, and shared findings;
- a pass/fail collection result for each route.
Files
reports/latest/
MANIFEST.json
SUMMARY.md
COVERAGE.md
performance.json
<route>.md
guidepup/<route>/<state>.md
screenshots/<route>-<state>.png
reports/runs/<run-id>/
...immutable copy of the run...
The build publishes reports/latest under dist/evidence/latest and renders each Markdown file as semantic HTML. The Evidence page links to the summary, coverage matrix, per-route reports, and screenshots.
Performance evidence
performance.json records three cold-context runs per fixture route at 1280 × 850, light colour scheme, localhost, and 4× CPU throttling. It includes Resource Timing bytes/requests by group, DOM count, navigation/paint timings, LCP/CLS/long tasks, and an approximate TBT. The median and min–max are shown; hard byte/request/DOM budgets are in data/performance-budgets.json; timing thresholds are warnings only. This is not a Lighthouse score, a field Web Vitals sample, or an accessibility metric. See PERFORMANCE.md.
Captures and conditions
Captured images live under pairs/<component>/<state>--<condition>--<side>.png in the current run. They are produced in one browser engine with a fixed 900 × 900 viewport, device scale factor 1, default text, LTR, default spacing, and no reduced motion. Only the listed browser condition varies. Forced colours and increased contrast are Playwright browser emulation, not real Windows High Contrast Mode.
The build copies captures into dist/evidence/latest and the evaluation workspace decodes them in the browser for pixel comparison. A missing pair is displayed as a coverage gap. Pixel counts are visual measurements, never accessibility scores.
Automated real screen-reader evidence
A separate macOS workflow (at-voiceover.yml) automates the real VoiceOver screen reader with Guidepup and uploads JSON spoken-phrase logs plus Playwright traces/reports. This is not part of the main evidence run: it needs an OS desktop, takes longer, and can be flaky. It is automated AT evidence, not human testing, and the published static build does not claim a fresh VoiceOver run. See AT-EVIDENCE.md.
Manual results
data/manual-tests.json contains definitions only. The evaluation workspace stores results in the reviewer's browser and exports JSON or Markdown. Published evidence records zero completed manual tests; a human must perform the test and attach the export to the review record. The decision log remains the approval surface.
Immutability and stale evidence
reports/latestis cleared at the start of every run.MANIFEST.jsonis written in arunningstate before collection and finalized on every exit path, including a top-level failure.- A crashed run leaves a failed manifest, not a previous successful one.
dist/evidenceis deleted on every build and rebuilt only from the currentlatestrun.- Historical runs under
reports/runsare preserved and are not rewritten.
Provenance
The manifest records the baseline release, USWDS version, git revision, browser, timestamp, and run id. data/sources.lock.json records the release commit, package-lock hash, and USWDS asset hashes. A build with mismatched hashes fails in strict mode.
Method labels
Every transcript says:
Guidepup virtual screen reader over a DOM snapshot. Not a real VoiceOver, NVDA, or JAWS test.
A transcript difference is a signal to investigate. It may reflect a real semantic difference, a simulator limitation, or a bug. It is never automatically a regression or an approval.
Human review
Automated evidence is an observation. The decision log (docs/EXPERIMENT-DECISIONS.md) is the approval surface. A reviewer must read the transcripts, inspect the DOM and focus behavior, evaluate forced colors and preferences, and record limitations or conditions in one row. The evidence details stay in the run. AI may draft the material but cannot make the decision.
Retention
reports/latest and reports/runs are gitignored. CI uploads them as artifacts. Large screenshots are not committed; concise Markdown and selected screenshots can be published from the build. Links to evidence/latest/... are stable only for the current build; pinned historical claims must cite the run id and an artifact.
Not tested
- Real screen readers and speech input.
- A real Windows High Contrast session.
- Every browser/OS/zoom/text-spacing combination.
- Adoption, maintenance cost, or upstream compatibility beyond the recorded release.
- OGDS custom-element shadow DOM is not traversed by Guidepup over jsdom; those transcripts cover slotted light-DOM text only. Browser tests, axe, and screenshots are the primary evidence for OGDS routes.