glance documentation

@avarok/glance@0.1.0Updated View as markdown

Every page here is generated from the markdown in the repository's docs/ directory, so it says what the source says.

  • ACT Rules departures of axe-core 4.14.1: Generated on linux (canonical: linux, CI's ubuntu-latest). ACT Rules at act-rules.github.io commit 50d2bede1ee7, every case of an ACT rule that maps to an implemented glance rule. The reference…
  • Fast mode: Fast mode (axe.run(context, { fast: true }), a glance option axe-core does not have) may trade exactness for speed: it may miss findings or report them as incomplete, and it never reports a…
  • Reference integration fixtures still failing (axe-core 4.14.1): Fixtures from the reference's integration suite (conformance/fixtures/) that the reference itself fails under our runner. Nothing public explains them (gap G1, docs/spec/integration-fixtures.md §6).…
  • Known differences on the recorded pages: Per-node differences between glance and the reference that remain on the recorded real pages (conformance/real-pages/run.mjs, each engine on a fresh load of the phase-0 HARs). Each is listed in…
  • Compatibility with axe-core 4.14.1: glance matches the public interface of axe-core 4.14.1 as specified in docs/spec/. This page lists every public function and every rule, and says whether glance behaves the same or how it differs.…
  • glance: design: glance is an accessibility-rule engine whose rules run in Rust compiled to wasm32-unknown-unknown, over a snapshot of the page read in one pass. Its public interface follows axe-core 4.14.1;…
  • 1. The interface glance matches: Reference: axe-core 4.14.1 (npm, MPL-2.0), the version installed on 2026-11-29. The interface is specified in docs/spec/, written by separate spec agents from public documentation, standards and…
  • 2. Architecture: glance has three layers. Only the first touches the page.
  • 3. Where the speed comes from: Everything here is a hypothesis until the phase 5 harness measures it. The starting facts are the black-box profile in chapter 6. glance's authors have not read the reference's source, so this…
  • 4. Proof plan: 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…
  • 5. Phased plan: After launch, the other 35 rules (best-practice and experimental tags) follow, with the same gates per rule.
  • 6. Where the reference engine spends its time: Measured as a black box on 2026-11-29, before any design work, to decide whether the project was worth starting (phase 0 gate in REFRESH.md). Raw data: bench/phase0/results/phase0.jsonl; scripts in…
  • 7. Benchmark method: Follows the programme's benchmark rules (same machine, pinned versions, warmups, median of 5, raw JSONL committed, charts generated from the JSONL).
  • 8. Module contracts: The boundaries between the pieces of glance, fixed before implementation so that separate agents can build them in parallel. Behaviour comes from docs/spec/; this chapter only says where each piece…
  • 9. Live in-browser comparison (site, phase 7): Project rule of 2026-11-29: when the reference and glance both run in a browser, the site ships a live comparison that loads nothing until the visitor clicks. Both engines run in the page, so glance…
  • 10. Selectors: the inferred heuristic: target, ancestry and xpath are public API (results-selectors.md). The reference's generator is a heuristic, so we inferred it as a black box and implemented what we inferred. The code is…
  • Brief shared by every glance implementer agent: You are an IMPLEMENTER on glance: an MIT OR Apache-2.0, clean-room reimplementation of the npm package axe-core 4.14.1 (MPL-2.0). The rules run in Rust compiled to wasm32-unknown-unknown, and the…
  • Brief shared by every glance rule agent: Read docs/design/implementer-brief.md first and follow it exactly. Then this.