---
title: "4. Proof plan · glance"
description: "The claim is \"drop-in\": for the rules glance implements, the same page gives the same results object as the reference, apart from message wording. The claim…"
canonical: "https://glance.avarok.net/docs/design/04-proof/"
lastmod: "2026-11-30T16:15:16Z"
tokens: 1951
---

1. [Docs](https://glance.avarok.net/docs/)
2. [Design](https://glance.avarok.net/docs/design/)

# 4\. Proof plan

@avarok/glance@0.1.0·Updated 2026-11-30·4 min read·[View as markdown](https://glance.avarok.net/docs/design/04-proof/index.md)

The claim is "drop-in": for the rules glance implements, the same page gives the same results object as the reference, apart from message wording. The claim rests on the following evidence, in order of authority.

## 4.1 W3C ACT rules test cases (primary conformance suite)

The ACT Rules Community Group publishes test cases (passed, failed, inapplicable) for the rules that map to WCAG. CI fetches them at a pinned commit of act-rules.github.io at job time and runs every case that maps to an implemented rule. The test cases are not committed to this repository. The mapping from ACT rule to glance rule id is our own table (`conformance/act-map.json`).

- Pass criterion: glance's outcome for each case equals the reference's outcome on the same case. Where the reference itself disagrees with the ACT expectation, that case is listed in COMPAT-ACT.md with the reference's behaviour, which glance follows.

## 4.2 Differential test against the reference

`conformance/differential/` runs the reference (axe-core 4.14.1, installed as a devDependency at an exact version) and glance on the same pages in the same browser, and compares the results objects field by field. The only fields excluded are the human-readable ones (`description`, `help`, `message`, `failureSummary`) and `timestamp`.

Corpus: the spec's black-box cases (docs/spec/), the ACT cases, the three phase 0 pages from HAR, and generated pages (property tests below). A rule is "implemented" in COMPAT.md only when its differential pass rate is 100% on the corpus.

## 4.3 The reference's own integration fixtures

The reference's repository has per-rule integration fixtures (HTML plus expected results). They are MPL-licensed: CI fetches them at the pinned tag v4.14.1 at job time and runs them against glance through our own runner. They are never committed, and glance's implementers read only the pass/fail lines and assertion messages, never the fixture source (clean-room protocol, REFRESH.md).

Calibration. The runner's own choices are checked by running every fixture under the reference too (black box). glance runs only the fixtures whose rule it implements (60 of 97; the other 37 name rules glance has not built). Those 37 run under the reference only, so they still calibrate the runner. The record, from the CI log alone:

| Run | Reference | Change and the evidence for it                                                                                                                                                                                 |
| --- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1   | 49/60     | first run (reference on glance's 60 only)                                                                                                                                                                      |
| 2   | 85/97     | frame pages were requested under `/integration/...` and the bundle as `/axe.js` (404 log): serve the repository root, then `test/`, and the engine under test at `/axe.js`. Fixed the three frame fixtures     |
| 3   | 87/97     | fixtures expected a `#fixture` node, and never `html`/`head`/`body`, where every element is judged: the container is `#fixture` and the run's context is that container. Fixed duplicate-id and hidden-content |

Variables probed that changed nothing for the reference: the engine loaded in the head before the fragment versus injected after load; an 800x600 viewport versus 1280x900; a 1.5 s wait before the run; the fragment assigned by `innerHTML` after load (its scripts never run) versus parsed with the page; Chromium 131, 140 and 159. No fixture raised an uncaught page error. The whole document as context broke only hidden-content.

Where the reference still fails a fixture (listed under `$reference` in known.json, so a new reference failure or a stale entry fails the job), glance passes if it meets the fixture or mismatches it exactly as the reference does; any other mismatch is glance's (`conformance/fixtures/calibrate.mjs`).

Gap G1 (open, for the spec): ten fixtures the reference fails under this runner, identically under every variant above. aria-allowed-attr/failures (`#fail11` not a violation), aria-allowed-attr/passes (`#pass105` not a pass), aria-required-attr/required-attr and aria-required-parent (`#pass15` a violation), aria-required-children (`#pass20` a violation, `#pass21` incomplete), aria-valid-attr-value (`#internals-pass` a violation), list (`#internalul`, `#internalol` violations), listitem (`#internal` a violation), heading-order (`#heading9` a pass) and target-size (`#incomplete8` a violation). Questions: (a) does the reference's integration harness set anything up in the page before the run beyond loading the fixture HTML, such as custom-element definitions, element internals or helpers its test files provide; (b) what options or `axe.configure` calls does it pass besides the one rule; (c) is the context `#fixture`, or something else that also excludes `html`/`head`/`body`; (d) does it compare exactly, or allow some listed nodes to be absent. Answered as far as public sources allow in `docs/spec/integration-fixtures.md` §6: the ten are consistent with ElementInternals the reference's own harness exposes, and are recorded as inherent in `docs/COMPAT.md`.

## 4.4 Rust tests on the pure core

- Unit tests per fact, per check and per rule over hand-built snapshots (no browser).
- Property tests (proptest): colour parsing and compositing round-trips; the contrast ratio is symmetric and bounded by \[1, 21\]; the accessible name is stable under attribute reordering; hiddenness is monotone down the tree.
- Fuzzing (cargo-fuzz): the snapshot decoder and the CSS colour parser, the two places that parse input.
- No concurrency handshakes exist (the core is single-threaded), so loom has nothing to model. That is recorded here so its absence is a decision.

## 4.5 Negative controls

Every new check is shown to fail: one rule broken on purpose (a role table entry removed, a contrast threshold changed), the differential and ACT jobs seen to go red, then restored. The record lives in REFRESH.md.

## 4.6 Benchmarks

[Chapter 7](https://glance.avarok.net/docs/design/07-bench/).

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://thomaspbraun.com/#person",
      "@type": "Person",
      "name": "Thomas Braun",
      "sameAs": [
        "https://github.com/tbraun96",
        "https://x.com/tbraun96"
      ],
      "url": "https://thomaspbraun.com",
      "worksFor": {
        "@type": "Organization",
        "name": "Avarok",
        "url": "https://avarok.net"
      }
    },
    {
      "@id": "https://glance.avarok.net/docs/design/04-proof/",
      "@type": "WebPage",
      "author": {
        "@id": "https://thomaspbraun.com/#person"
      },
      "dateModified": "2026-11-30T16:15:16Z",
      "description": "The claim is \"drop-in\": for the rules glance implements, the same page gives the same results object as the reference, apart from message wording. The claim…",
      "inLanguage": "en",
      "isPartOf": {
        "@id": "https://glance.avarok.net/#website",
        "@type": "WebSite",
        "name": "glance",
        "url": "https://glance.avarok.net/"
      },
      "name": "4. Proof plan · glance",
      "url": "https://glance.avarok.net/docs/design/04-proof/"
    }
  ]
}
```
