# uw-ssec/ada-compliance architecture

> Architecture diagram of the GitHub repository uw-ssec/ada-compliance, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uw-ssec/ada-compliance
- Repository: https://github.com/uw-ssec/ada-compliance
- Video tour (about a minute): https://gitdiagram.com/uw-ssec/ada-compliance/video

## Overview

This repository contains two independent products: a Streamlit document accessibility auditor/remediator and a Claude Code plugin for auditing code repositories. The PDF Tool workflow runs from upload and extraction through WCAG analysis, human approval, remediation or reconstruction, and reporting. The plugin provides repository-audit commands, reviewer agents, and WCAG reference skills. Source excerpts support the PDF Tool’s main processing links; plugin internals were not sampled, so its components are shown without speculative call relationships.

Main entry points: [`ada-pdf-tool/app.py`](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/app.py) (Streamlit workflow), [`ada-pdf-tool/core/analyzer.py`](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/analyzer.py) (WCAG analysis), [`ada-pdf-tool/core/backends/hyak_backend.py`](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/backends/hyak_backend.py) (LLM backend), [`ada-pdf-tool/core/dispatch.py`](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/dispatch.py) (Remediation dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pdf_app["Document audit app"]
  node_app["Streamlit workflow<br/>[app.py]"]
end

subgraph group_pdf_core["Audit and extraction"]
  node_extract["Document extraction<br/>[extractor.py]"]
  node_models["Audit data models<br/>[models.py]"]
  node_analyzer["WCAG analysis<br/>[analyzer.py]"]
  node_backend["LLM backend<br/>[hyak_backend.py]"]
  node_validation["Input validation<br/>[_validation.py]"]
end

subgraph group_pdf_fix["Remediation and output"]
  node_dispatch["Remediation dispatch<br/>[dispatch.py]"]
  node_remediator["PDF and Word fixes<br/>[remediator.py]"]
  node_rebuilder["PDF reconstruction<br/>[rebuilder.py]"]
  node_image_helpers["Image reconstruction helpers<br/>[_image_helpers.py]"]
  node_diff["Before-after report<br/>[diff_reporter.py]"]
end

subgraph group_plugin_ops["Repository audit plugin"]
  node_plugin_commands["Audit commands"]
  node_agents["Reviewer agents"]
end

subgraph group_plugin_knowledge["Compliance knowledge"]
  node_skills["WCAG reference skills"]
  node_policy_notes["Title II notes"]
end

node_staff(("Document staff"))
node_llm_service{{"Hyak or Anthropic"}}
node_plugin_user(("Developers"))

node_staff -->|"uploads document"| node_app
node_app -->|"validates input"| node_validation
node_app -->|"extracts content"| node_extract
node_app -->|"requests audit"| node_analyzer
node_analyzer -->|"calls audit"| node_backend
node_backend -->|"sends audit request"| node_llm_service
node_backend -->|"builds report"| node_models
node_analyzer -->|"classifies findings"| node_models
node_app -->|"dispatches approved fixes"| node_dispatch
node_dispatch -->|"applies document fixes"| node_remediator
node_dispatch -->|"reconstructs untagged PDFs"| node_rebuilder
node_rebuilder -->|"uses image helpers"| node_image_helpers
node_image_helpers -->|"uses bbox conversion"| node_extract
node_app -->|"generates report"| node_diff
node_plugin_user -->|"runs audit commands"| node_plugin_commands

click node_app "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/app.py"
click node_extract "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/extractor.py"
click node_models "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/models.py"
click node_analyzer "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/analyzer.py"
click node_backend "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/backends/hyak_backend.py"
click node_validation "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/_validation.py"
click node_dispatch "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/dispatch.py"
click node_remediator "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/remediator.py"
click node_rebuilder "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/rebuilder.py"
click node_image_helpers "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/_image_helpers.py"
click node_diff "https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/diff_reporter.py"
click node_plugin_commands "https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/commands"
click node_agents "https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/agents"
click node_skills "https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/skills"
click node_policy_notes "https://github.com/uw-ssec/ada-compliance/blob/main/plugins/ada-compliance/references/ada-title-ii-notes.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app toneBlue
class node_extract,node_models,node_analyzer,node_backend,node_validation toneAmber
class node_dispatch,node_remediator,node_rebuilder,node_image_helpers,node_diff toneMint
class node_plugin_commands,node_agents toneRose
class node_skills,node_policy_notes,node_staff,node_llm_service,node_plugin_user toneIndigo
```

## Components

### Document audit app

- [Streamlit workflow](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/app.py): `ada-pdf-tool/app.py`

### Audit and extraction

- [Document extraction](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/extractor.py): `ada-pdf-tool/core/extractor.py`
- [Audit data models](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/models.py): `ada-pdf-tool/core/models.py`
- [WCAG analysis](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/analyzer.py): `ada-pdf-tool/core/analyzer.py`
- [LLM backend](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/backends/hyak_backend.py): `ada-pdf-tool/core/backends/hyak_backend.py`
- [Input validation](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/_validation.py): `ada-pdf-tool/core/_validation.py`

### Remediation and output

- [Remediation dispatch](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/dispatch.py): `ada-pdf-tool/core/dispatch.py`
- [PDF and Word fixes](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/remediator.py): `ada-pdf-tool/core/remediator.py`
- [PDF reconstruction](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/rebuilder.py): `ada-pdf-tool/core/rebuilder.py`
- [Image reconstruction helpers](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/_image_helpers.py): `ada-pdf-tool/core/_image_helpers.py`
- [Before-after report](https://github.com/uw-ssec/ada-compliance/blob/main/ada-pdf-tool/core/diff_reporter.py): `ada-pdf-tool/core/diff_reporter.py`

### Repository audit plugin

- [Audit commands](https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/commands): `plugins/ada-compliance/commands`
- [Reviewer agents](https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/agents): `plugins/ada-compliance/agents`

### Compliance knowledge

- [WCAG reference skills](https://github.com/uw-ssec/ada-compliance/tree/main/plugins/ada-compliance/skills): `plugins/ada-compliance/skills`
- [Title II notes](https://github.com/uw-ssec/ada-compliance/blob/main/plugins/ada-compliance/references/ada-title-ii-notes.md): `plugins/ada-compliance/references/ada-title-ii-notes.md`

### Other components

- **Document staff**
- **Hyak or Anthropic**
- **Developers**

## Connections

- Document staff → Streamlit workflow: uploads document (evidence: `README.md`)
- Streamlit workflow → Input validation: validates input
- Streamlit workflow → Document extraction: extracts content (evidence: `ada-pdf-tool/app.py`)
- Streamlit workflow → WCAG analysis: requests audit (evidence: `ada-pdf-tool/app.py`)
- WCAG analysis → LLM backend: calls audit (evidence: `ada-pdf-tool/core/analyzer.py`)
- LLM backend → Hyak or Anthropic: sends audit request (evidence: `ada-pdf-tool/core/backends/hyak_backend.py`)
- LLM backend → Audit data models: builds report (evidence: `ada-pdf-tool/core/backends/hyak_backend.py`)
- WCAG analysis → Audit data models: classifies findings (evidence: `ada-pdf-tool/core/analyzer.py`)
- Streamlit workflow → Remediation dispatch: dispatches approved fixes (evidence: `ada-pdf-tool/app.py`)
- Remediation dispatch → PDF and Word fixes: applies document fixes (evidence: `ada-pdf-tool/core/dispatch.py`)
- Remediation dispatch → PDF reconstruction: reconstructs untagged PDFs (evidence: `ada-pdf-tool/core/dispatch.py`)
- PDF reconstruction → Image reconstruction helpers: uses image helpers (evidence: `ada-pdf-tool/core/rebuilder.py`)
- Image reconstruction helpers → Document extraction: uses bbox conversion (evidence: `ada-pdf-tool/core/_image_helpers.py`)
- Streamlit workflow → Before-after report: generates report (evidence: `ada-pdf-tool/app.py`)
- Developers → Audit commands: runs audit commands (evidence: `README.md`)
