Skip to content

Releases

Diligent 0.3.0: new accessibility checks and state law research

Choose a tag to compare

@github-actions github-actions released this 03 Nov 00:22

New accessibility checks and a first record of state accessibility and privacy law. Eight checks are new (five browser, three source), the SVG naming check is extended, and research-status authorities A70 to A78 are added for seven states and for Title VI. The new checks report needs_review rather than a pass or a fail whenever their evidence cannot settle the question, and every new DOM walk is bounded. The companion binary now has 33 browser checks and 23 source checks. Rules stay at research or draft, so an automated result is still evidence for a person to weigh, not a legal conclusion.

Added

  • Browser checks BRW-LABEL-ASSOC (form label association, WCAG 1.3.1, 3.3.2, 4.1.2), BRW-LIVE-REGION (status and alert regions, 4.1.3), BRW-DRAG-ALTERNATIVE (a single-pointer alternative to dragging, 2.5.7) and BRW-FOCUS-TRAP (focus stays inside a visible aria-modal dialog, 2.4.3). Each has authored fixtures with recorded captures.
  • BRW-REDUCED-MOTION, an advisory check that compares animation and transition durations under prefers-reduced-motion. It never fails and informs no success criterion: motion under reduced motion is WCAG 2.3.3, which is AAA and outside the AA packs.
  • Source checks SRC-AUTOCOMPLETE-REQUIRED (1.3.5), SRC-HEADING-OUTLINE (2.4.6) and SRC-ACCESSIBLE-AUTH (3.3.8). SRC-ACCESSIBLE-AUTH passes a login password field only when it carries autocomplete="current-password" or the form offers a passwordless alternative, reports needs_review otherwise, and skips sign-up fields.
  • SRC-SVG-NAME covers more SVG naming patterns and is listed on WCAG 4.1.2.
  • State accessibility and privacy authorities A70 to A77 (Colorado, California, Texas, Illinois, Minnesota, New York, Massachusetts) and A78 (Title VI and 28 CFR 42.405, recording that the EO 13166 language-access guidance was rescinded), all at research status, with a state overlay table in references/overlays.md.
  • entity_state and entity_type facts on the state and local profile, which select the state authorities.

Changed

  • Rule pack channel support follows the checks that exist: browser support is assisted for 2.4.3, 3.3.2, 4.1.3 and 2.5.7; source support is assisted for 2.4.6 and 3.3.8; SRC-SVG-NAME is listed on 4.1.2; BRW-LABEL-ASSOC replaces the nonexistent SRC-LABEL-ASSOC. 2.3.1 and 2.1.2 list no new check.
  • An advisory check (never_fails) may inform no rule; a check that can fail must still map to one.
  • docs/supported-checks.md counts and cells are recomputed from the packs: 17 (a11y-wcag20-aa), 6 (a11y-wcag21-aa), 4 (a11y-wcag22-aa), 52 in total.
  • The state and local profile claim boundary says state authorities are recorded at research status only, ship no rule pack and support no claim.

Fixed

  • The new checks report pass when their criterion is met, so a compliant page no longer reads as not_tested, and report needs_review instead of pass where the evidence is a heuristic: an aria-label-only control (3.3.2 needs a visible label), a live region whose timing is not observed, a move button matched only by a direction word, an autocomplete name matched by pattern.
  • Keyword and field-name matching uses whole words and tokens: "hotel" is not a phone field, "capacity" is not a city, "Sign up" is not a move control, "incomplete" is not a success message. An autocomplete value passes only when it is a valid token for the field; on, off and invalid values count as missing.
  • BRW-FOCUS-TRAP ignores <dialog open> (a capture cannot tell a modal from a non-modal dialog) and hidden dialogs, which used to fail ordinary pages on every focus stop.
  • BRW-LABEL-ASSOC finds <label for> and wrapping labels; aria-labelledby pointing at a missing id no longer counts as a label.
  • SRC-HEADING-OUTLINE counts a heading's own aria-label and aria-labelledby, and no longer reports a page-level pass for descriptiveness it does not judge.
  • DOM walks are bounded: no recursion over page depth and no quadratic scans. Adversarial tests cover 50,000-deep pages with an accessibility tree, 20,000-wide pages and parent cycles.
  • BRW-DRAG-ALTERNATIVE treats only draggable="true" as draggable.

Known limitations

  • SRC-ACCESSIBLE-AUTH reads only inline onpaste. Paste blocking done by script, and the live sign-in flow, need a person.
  • BRW-LIVE-REGION does not observe when announcements happen, only the region's markup and text.
  • State authorities are research only. They ship no rule pack and support no claim.
  • The issuer of FR 2025-06366 and the current text of 28 CFR 42.405(d)(1) are not yet verified against a primary source.

Diligent 0.2.1: developer integration

Choose a tag to compare

@github-actions github-actions released this 20 Oct 14:20

Developer integration lands: SARIF output for code scanning, a reusable GitHub Action, baseline and diff for backlog management, and Storybook component mode. The native gate and rules validator run through the companion binary when it is present, source-pass template support covers JSX, Vue, Svelte, Astro, Twig and Liquid, and 45 engine-informed rules were reviewed against primary sources and promoted to draft.

Added

  • diligent audit --storybook <url> audits the stories of a built Storybook (7 or 8) as components: each sampled story is captured and assessed with the element-level checks, whole-page obligations are recorded as not tested, a component gate sets the exit code, and COMPONENT-BASELINE.json records each story. A component audit is not a site claim. diligent-rs assess --component and checks list --json (scope) support it. See docs/storybook-mode.md.
  • diligent sarif --run <id> | --dir <run-dir> [--out <file>] [--baseline <file>] emits SARIF 2.1.0 from a run so results can be uploaded to GitHub code scanning. Every fail and needs_review check result becomes a SARIF result with a stable fingerprint, the rule's obligation text as its description, and the lifecycle note carried into the result. Hand-authored FINDINGS.json entries are emitted alongside when present. See docs/sarif.md.
  • diligent baseline write --run <id> --out <file> records the fingerprints of a run, and diligent diff --run <id> --baseline <file> [--fail-on new|any|none] partitions a later run into new, known, resolved and unverified. A team can accept a backlog and block only new problems. With --baseline, diligent sarif marks each result new or unchanged. See docs/baseline-diff.md.
  • diligent-rs infra --preload-lookup asks hstspreload.org whether the registrable domain is on the Chromium HSTS preload list and records the answer as inference evidence on the INFRA-02-hsts-preload row. Off by default; the Node orchestrator does not pass it in this release.
  • A reusable GitHub Action (uses: Simple-Cortex/diligent@<tag>, action.yml at the repository root) audits one URL on a Linux x86-64 runner, downloads the companion binary from the release and verifies it against SHA256SUMS, uploads the SARIF file to code scanning and the audit directory as an artifact, and fails the job only on the condition you choose (fail-on: gate | new | any | none). baseline-out writes a baseline for a write-on-main, diff-on-pull-request pair. See docs/github-action.md.
  • diligent-rs source scan reads .jsx, .tsx, .vue, .svelte, .astro, .twig and .liquid files as well as HTML, and every finding now carries a source line, a column and a byte offset when the file contains the element. Expressions, components and attribute spreads are opaque and turn a result into needs_review; a template with no html or body tag is treated as a fragment and skips document-level checks. SARIF results for these findings point at the file and line. See docs/source-pass.md.
  • plugins/vite-plugin-diligent-src is a Vite plugin that adds data-diligent-src="<file>:<line>" to native elements in JSX, Vue, Svelte and Astro files during development, and diligent-rs assess records the attribute as a source_ref on the finding it belongs to. The plugin lives in the repository and is not part of the npm package.
  • npm run shadow:rules compares diligent rules validate in Node against the companion binary over 25 mutation cases and fails on any difference. CI runs it on every push.
  • diligent-rs gate ports the regulatory gate to the companion binary. npm run shadow:gate runs the Node gate and the binary over every gate fixture, including a real audit directory from a GitHub runner, with and without --json, and fails on any difference in exit code, output, ASSESSMENT.json, EVENTS.jsonl or RUN.json. The Node gate stays authoritative. See docs/rust-shadow-notes.md.

Changed

  • 45 engine-informed rules were reviewed against their primary sources (clause locator, modality word, baseline id) and promoted from research to draft; FED-12 and INFRA-12 stay at research. Four modality words changed (FED-05 shall, FED-08 must, FED-18 must, FED-29 should). review-packet.mjs gained apply, and promote now refuses a rule whose clause locator is still unatomized. See docs/review/2026-10-20-source-review-packet.md.
  • Authority A43 (OMB M-15-13) now points at the archived memo; https.cio.gov no longer resolves.
  • The gate's limitation sentence and the claim boundary no longer say Diligent runs no automated website checks; they say automated checks run only through the separately installed diligent-rs binary, in both the Node and native gates.
  • diligent gate and diligent rules validate run the diligent-rs binary when one reporting protocol 1 is present and fall back to the Node scripts otherwise; DILIGENT_ENGINE=node forces Node, and diligent --version --json lists the delegated commands. Argument errors from diligent-rs gate now carry the diligent: prefix to match Node.
  • Artifact and rules-data JSON parse errors no longer quote the JavaScript engine's message; they read <file>: not valid JSON so the Node and native outputs match.

Diligent 0.2.0: engine preview

Choose a tag to compare

@github-actions github-actions released this 18 Oct 23:00

Engine preview: the first release with automated website checks. They run in a companion binary, diligent-rs, that you install separately. The Node package still runs no checks by itself. Every rule stays at the research lifecycle, so an automated result is evidence for a person to weigh, not a legal conclusion.

Added

  • diligent audit --url <https://host/> runs the whole chain against a live site: scope with the facts you supply, applicability, inventory, sampling, collection, assessment, network checks, gate and report. It requires the companion binary, never downloads it, limits network access to the origin you name, and exits with the gate's code.
  • diligent audit --replay <replay.json> audits recorded captures offline with the real binary, with no Chrome and no network. The run records that it was a replay.
  • The diligent-rs companion binary is built in CI for macOS (Apple silicon and Intel) and Linux x86-64, with a SHA256SUMS file. Windows is not built. Chrome or Chromium is needed for browser checks. docs/install.md explains downloading, verifying and placing it, and the Rust source is now in the public repository.
  • diligent-rs checks list [--json] prints every browser check, signal, source check and network check the build knows, with the rules each informs.
  • diligent-rs assess runs 28 deterministic checks over captured pages without a browser: 17 accessibility checks (contrast, focus, ARIA, labels in names, target size, reflow, text spacing, bypass blocks, table headers, element language) and 11 federal public web checks (official-website banner, identifier and its links, search, Digital Analytics Program script, privacy and accessibility links, title and description, contact, language access, 320 px viewport). The matching cells in docs/supported-checks.md move from unsupported to automated or assisted. Checks that inform pending standards never fail.
  • diligent-rs collect captures pages with headless Chrome at four viewports and four media modes, including lab Core Web Vitals and computed styles. diligent-rs infra runs network checks on an origin (HTTPS, certificate, HSTS, SPF, DMARC, disclosure files, robots.txt, sitemap, security headers, DAP script, privacy link, .gov suffix), and diligent-rs source scan checks static HTML.
  • diligent-rs inventory reads robots.txt and sitemaps, crawls same-origin links, clusters pages into templates, and writes INVENTORY.json and SAMPLE.json: a structured and a seeded random sample with the seed, coverage counts and remaining work. A sample never supports a whole-site conformance claim.
  • A content-addressed evidence store (diligent-rs evidence ingest | verify | resume-plan) with an append-only index, reuse logs and tombstones. collect resumes interrupted runs and reuses earlier work only when its cache key and versions match and every object still re-hashes.
  • Optional axe-core corroboration (--corroborate axe, off by default, vendored 4.14.0 under MPL-2.0). Agreement changes nothing. A disagreement moves the result to needs_review, and violations the checks missed become needs_review leads. Profiles gain an optional corroboration.browser list.
  • Advisory signals in SIGNALS.jsonl (30 signals): plain readings of text, type, spacing, colour margin, motion, form patterns and lab Core Web Vitals. Signals cite a practice source and a confidence, are never normative, and never change a result or the gate. diligent report shows them in a new section 10, "Craft and clarity (not legal obligations)", and shows accessibility results under the three separate WCAG mappings.
  • Browser worker protocol 1.3.0 (additive over 1.0), which adds the axe-core and performance captures.
  • npm run release:gate runs every release check in order, including an end-to-end smoke against a local site and an offline replay of six recorded captures. scripts/review-packet.mjs writes a review packet per rule that any check informs and promotes reviewed rules to draft.

Changed

  • The runtime manifest reports the Rust engine as a companion (status: "companion") instead of a scaffold.
  • docs/supported-checks.md and docs/known-limitations.md describe the Node package and the companion binary separately, and add rows for platforms, Chrome, replay, sampling and lab performance.

Install

Download the archive for your platform, verify it against SHA256SUMS, and put diligent-rs on your PATH (or set DILIGENT_RS_BIN). Chrome is required for the browser stages (DILIGENT_CHROME). The Node skill never downloads anything; see docs/install.md.