USWDS Futures LabIndependent research and comparison pilot

Documentation

Evidence

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:

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

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

Back to methodology · Source lock