infrastructure tier

infrastructure-web-ada-compliance

WCAG/ADA accessibility compliance checker implementing foundation-web-analysis::Analyzer -- image alt text, heading hierarchy, ARIA landmarks, form labels, link text, page language, and table/media caption checks against a fetched page's DOM

WCAG/ADA accessibility compliance checker implementing foundation-web-analysis::Analyzer -- image alt text, heading hierarchy, ARIA landmarks, form labels, link text, page language, and table/media caption checks against a fetched page's DOM

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/web-ada-compliance
Edition2021
Targetsinfrastructure_web_ada_compliance
Public items26 across 2 modules
Tests45

What it is for

# infrastructure-web-ada-compliance

WCAG/ADA accessibility compliance checker implementing foundation_web_analysis::Analyzer. Statically inspects a fetched page's DOM for image alt text, heading hierarchy, ARIA landmarks/labels, form-field labeling, link text quality, page-language declaration, and table/media caption presence. Color contrast and keyboard navigation cannot be determined without a browser and are always flagged for manual review via ManualReviewItem.

Lifted from plumber/src/analyzers/ada_checker.rs and plumber/src/models/ada_compliance.rs (sprint 3.46, wave 2 — see CHANGELOG.md for provenance).

Capabilities

checker (other)

ADA/WCAG accessibility checker.

Item
pub const DEFAULT_MAX_BYTES: usize

AdaChecker

ADA/WCAG accessibility checker.

Item
pub struct AdaChecker
AdaChecker :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>
AdaChecker :: fn with_max_bytes(mut self, max_bytes : usize) -> Self
AdaChecker :: fn default() -> Self
AdaChecker :: fn name(& self) -> & 'static str
AdaChecker :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
AdaChecker :: fn requires_link_graph(& self) -> bool
AdaChecker :: fn cache_ttl_days(& self) -> u32

AdaCompliance

WCAG/ADA accessibility compliance data model.

Item
pub struct AdaCompliance
AdaCompliance :: fn default() -> Self
AdaCompliance :: fn new(organization_id : Uuid, url : & str) -> Self
AdaCompliance :: fn alt_text_percentage(& self) -> f32
AdaCompliance :: fn form_label_percentage(& self) -> f32
AdaCompliance :: fn violations_by_impact(& self, impact : ViolationImpact) -> usize
AdaCompliance :: fn max_impact(& self) -> Option <ViolationImpact>
AdaCompliance :: fn passes_basic_checks(& self) -> bool
AdaCompliance :: fn wcag_compliance_level(& self) -> WcagLevel

AdaViolation

WCAG/ADA accessibility compliance data model.

Item
pub struct AdaViolation

AdaWarning

WCAG/ADA accessibility compliance data model.

Item
pub struct AdaWarning

AltTextQuality

WCAG/ADA accessibility compliance data model.

Item
pub enum AltTextQuality

HeadingLevel

WCAG/ADA accessibility compliance data model.

Item
pub struct HeadingLevel

ViolationImpact

WCAG/ADA accessibility compliance data model.

Item
pub enum ViolationImpact
ViolationImpact :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

WcagLevel

WCAG/ADA accessibility compliance data model.

Item
pub enum WcagLevel
WcagLevel :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

infrastructure_web_ada_compliance

flowchart TD
  n_infrastructure_web_ada_compliance["infrastructure_web_ada_compliance"]
  n_infrastructure_web_ada_compliance --> n_checker["checker"]
  n_infrastructure_web_ada_compliance --> n_models["models"]

Public surface

`checker`

ItemWhat it is
pub const DEFAULT_MAX_BYTES: usizeResponse body byte cap for a fetched page (Gate 1.5.6 input limit).
pub struct AdaCheckerAnalyzer for ADA/WCAG accessibility compliance
AdaChecker :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>Build a checker with the default byte cap (DEFAULT_MAX_BYTES) and timeout (infrastructure_fetcher::safe_http::DEFAULT_TIMEOUT, 30s).
AdaChecker :: fn with_max_bytes(mut self, max_bytes : usize) -> SelfOverride the response body byte cap.
AdaChecker :: fn default() -> Self# Panics Panics if the underlying SafeHttpClient cannot be built (TLS backend init failure) -- matches the source's expect-on-construction posture (Client::builder()...expect("Failed to build HTTP client")).
AdaChecker :: fn name(& self) -> & 'static str
AdaChecker :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
AdaChecker :: fn requires_link_graph(& self) -> bool
AdaChecker :: fn cache_ttl_days(& self) -> u32

`models`

ItemWhat it is
pub struct AdaComplianceADA/WCAG accessibility compliance analysis for one page.
pub struct HeadingLevel
pub enum AltTextQuality
pub struct AdaViolation
pub enum ViolationImpact
ViolationImpact :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result
pub struct AdaWarning
AdaCompliance :: fn default() -> Self
AdaCompliance :: fn new(organization_id : Uuid, url : & str) -> Self
AdaCompliance :: fn alt_text_percentage(& self) -> f32Percentage of images carrying a (non-empty) alt attribute
AdaCompliance :: fn form_label_percentage(& self) -> f32Percentage of form fields carrying either a <label> or an aria-label/aria-labelledby
AdaCompliance :: fn violations_by_impact(& self, impact : ViolationImpact) -> usize
AdaCompliance :: fn max_impact(& self) -> Option <ViolationImpact>
AdaCompliance :: fn passes_basic_checks(& self) -> boolCoarse pass/fail gate independent of the WCAG-criteria-mapped scores: page language declared, exactly one h1, no skipped heading levels, 90%+ alt-text coverage, 100% form-label coverage, no empty links.
AdaCompliance :: fn wcag_compliance_level(& self) -> WcagLevelCoarse WCAG level estimate from violation severity -- NOT a substitute for a manual audit (contrast and keyboard-navigation criteria are flagged requires_*_review, never auto-decided).
pub enum WcagLevel
WcagLevel :: fn fmt(& self, f : & mut std::fmt::Formatter <'_>) -> std::fmt::Result

Re-exports. Exported here, defined elsewhere.

ExportDefined in
{AdaChecker,DEFAULT_MAX_BYTES}checker::{AdaChecker,DEFAULT_MAX_BYTES}
{AdaCompliance,AdaViolation,AdaWarning,AltTextQuality,HeadingLevel,ViolationImpact,WcagLevel,}models::{AdaCompliance,AdaViolation,AdaWarning,AltTextQuality,HeadingLevel,ViolationImpact,WcagLevel,}

Boundary

Reaches into foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/web-ada-compliance
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-web-analysis`foundationnoalways
`infrastructure-fetcher`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
chrono^0.4serdenoalways
scraper^0.20noalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
url^2noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1full, full, test-utilnoalways
tokio-test^0.4noalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["infrastructure-web-ada-compliance"]
  SELF -->|runtime| n_foundation_web_analysis["foundation-web-analysis"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libinfrastructure_web_ada_compliance`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests45
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
checker200
models700

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc1026
Public modules with a //! block22
pie showData
    title Public items with rustdoc
    "Documented" : 10
    "No rustdoc detected" : 16

Metrics

MetricValue
Rust source files3
Source lines1416
Code lines1168
Public API items26
Public modules2
Tests45
Examples0
Cargo features0
Direct runtime dependencies10
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 1
    "enum" : 3
    "method" : 17
    "struct" : 5
pie showData
    title Rust source composition
    "Code" : 1168
    "Blank or comment" : 248

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All infrastructure · Manual