Skip to content

Reference

This page is the complete reference for all commands, options, exit codes, error identifiers, and schemas in the Accessibility Suite.

CommandDescription
a11y-lint scan <path>Scan a file or directory for accessible error message patterns
a11y-lint scan <path> --artifact-dir <dir>Scan and write outputs to the specified artifact directory
CommandDescription
a11y-ci gate --artifact-dir <dir>Run the policy gate against scorecards in the artifact directory
a11y-ci gate --artifact-dir <dir> --fail-on <level>Set the severity threshold (minor, moderate, serious)
a11y-ci comment --mcp <evidence.json> --platform <platform>Generate a PR comment from an evidence bundle
a11y-ci comment --mcp <evidence.json> --platform <platform> --top <n>Limit the comment to the top N findings
CommandDescription
a11y-assist help --rule <rule-id>Get remediation guidance for a specific rule
a11y-assist explain --json <file> --profile <profile>Explain a failure with profile-specific guidance

Profiles: standard, low-vision, screen-reader, dyslexia, cognitive-load

CommandDescription
a11y-engine scan <path> --out <dir>Scan HTML files and emit evidence with provenance records
CommandDescription
a11y-mcpStart the MCP server (default, for use with MCP clients)
mcp-server-a11y --evidence-dir <dir>Start with a pre-existing evidence directory
ToolDescription
a11y.evidenceCapture tamper-evident evidence bundles from HTML, CLI logs, or other inputs
a11y.diagnoseRun WCAG rule checks over evidence bundles with provenance verification

All CLI tools in the suite follow this exit code convention:

CodeMeaningWhen it happens
0Success / PASSThe operation completed successfully or the gate passed
1Internal errorAn unexpected error in the tool itself
2Input errorInvalid scorecard schema, missing required file, unwritable directory
3Gate failedPolicy violation, regression detected, or expired waiver (a11y-ci only)

Error IDs are standardized across the suite. They are grep-friendly and stable across versions. When reporting issues, include the error ID.

Error IDMeaning
A11Y.SCAN.IOInput path does not exist or is not readable
A11Y.SCAN.SCHEMAOutput directory does not exist or is not writable
Error IDMeaning
A11Y.CI.Schema.InvalidScorecard JSON is malformed or missing required fields
A11Y.CI.Gate.FailedOpen violations exceed the severity threshold

The scorecard is the primary data exchange format between a11y-lint and a11y-ci. It follows cli.error.schema.v0.1.json:

{
"meta": {
"tool": "a11y-lint",
"version": "1.0.0"
},
"findings": [
{
"id": "color-contrast",
"severity": "serious",
"message": "Element has insufficient color contrast ratio",
"location": "src/components/Button.tsx:42"
}
]
}

Required fields:

  • meta.tool — name of the tool that produced the scorecard
  • meta.version — version of the tool
  • findings[].id — unique identifier for the rule
  • findings[].severity — severity level (minor, moderate, serious, critical)
  • findings[].message — human-readable description

Optional fields:

  • findings[].location — file path and line number

The evidence bundle follows evidence.bundle.schema.v0.1.json. It extends the scorecard with provenance chains and integrity digests:

  • Traceability metadata linking findings back to source artifacts
  • SHA-256 hashes for each artifact (scorecard, screenshots, DOM snapshots)
  • prov-spec method IDs identifying the provenance steps
[
{
"id": "color-contrast",
"owner": "team-frontend",
"expires": "2026-06-01",
"ticket": "JIRA-1234"
}
]

Required fields:

  • id or fingerprint — which finding to suppress
  • owner — who approved the waiver
  • expires — ISO date when the waiver expires

Optional fields:

  • ticket — reference to a tracking issue

All tools read from and write to .a11y_artifacts/ by default. Here is the complete listing:

FileProduced byDescription
current.scorecard.jsona11y-lintCurrent scan results
baseline.scorecard.jsonCI baseline workflowPrevious known-good state for regression detection
allowlist.jsonHuman-authoredExpiring suppressions (waivers)
gate-result.jsona11y-ciStructured pass/fail result
report.txta11y-ciHuman-readable report
evidence.jsona11y-ciEvidence bundle with provenance
comment.mda11y-ciPR comment markdown
result.jsona11y-lintDetailed scanner results
evidence-manifest.jsona11y-evidence-engineManifest linking screenshots and DOM snapshots

Every finding produced by the evidence engine carries a prov-spec provenance record. Provenance records use stable, versioned method IDs so you can verify them across tool versions. The SHA-256 integrity digests ensure that findings have not been tampered with after generation.

For the full provenance specification, see docs/prov-spec/ in the repository.