# suramya12/airt architecture

> Architecture diagram of the GitHub repository suramya12/airt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/suramya12/airt
- Repository: https://github.com/suramya12/airt

## Overview

AIRT is a guarded harness for AI-driven web penetration testing. The principal workflow is: a human supplies authorization and approves a run; an agent or pilot uses typed operations to map the target, test coverage cells, gather evidence, validate findings, and produce a report for human review. The README documents these major capabilities, but most implementation files were not sampled, so links among those subsystems are shown as unverified rather than asserted. Excerpts confirm browser reconnaissance feeds coverage, evidence, technology detection and hints, and the provider client invokes provider-specific request formats.

Main entry points: [`airt/ops.py`](https://github.com/suramya12/airt/blob/main/airt/ops.py) (Typed operations), [`airt/browser/ops.py`](https://github.com/suramya12/airt/blob/main/airt/browser/ops.py) (Browser reconnaissance), [`airt/evidence.py`](https://github.com/suramya12/airt/blob/main/airt/evidence.py) (Evidence records), [`airt/providers/client.py`](https://github.com/suramya12/airt/blob/main/airt/providers/client.py) (Model providers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_engagement["Engagement controls"]
  node_scope["Scope manifest<br/>[scope.py]"]
  node_authorization["Approval and guardrails<br/>[authz.py]"]
end

subgraph group_assessment["Assessment workflow"]
  node_coverage[("Coverage matrix<br/>[coverage.py]")]
  node_recon["Browser reconnaissance<br/>[ops.py]"]
  node_browser["Browser session<br/>[adapter.py]"]
  node_typedops["Typed operations<br/>[ops.py]"]
  node_checks["Security checks"]
  node_pilot["Pilot testing<br/>[pilot.py]"]
  node_probe["Request probing<br/>[probe.py]"]
end

subgraph group_evidence["Evidence and verdicts"]
  node_evidence[("Evidence records<br/>[evidence.py]")]
  node_hints["Testing hints<br/>[hints.py]"]
  node_findings["Findings and validation<br/>[findings.py]"]
  node_review["Human review<br/>[review.py]"]
  node_report["Assessment reports<br/>[report.py]"]
end

subgraph group_interaction["Clients and integrations"]
  node_chat["Built-in chat<br/>[review_chat.py]"]
  node_providers["Model providers<br/>[client.py]"]
  node_integrations["External adapters"]
end

subgraph group_runtime["Core runtime"]
  node_store[("Run data store<br/>[store.py]")]
  node_sessions["Target sessions<br/>[sessions.py]"]
  node_redact["Secret redaction<br/>[redact.py]"]
  node_technology["Technology detection<br/>[tech.py]"]
end

node_human(("Authorized user"))
node_target(("Authorized target"))
node_model(("AI model"))

node_human -->|"defines scope"| node_scope
node_human -->|"approves run"| node_authorization
node_model -->|"calls operations"| node_typedops
node_authorization -->|"gates calls"| node_typedops
node_scope -->|"constrains calls"| node_typedops
node_typedops -->|"dispatches browser ops"| node_recon
node_recon -->|"uses sessions"| node_browser
node_recon -->|"registers surface"| node_coverage
node_recon -->|"stores recon"| node_evidence
node_recon -->|"attaches hints"| node_hints
node_recon -->|"detects technology"| node_technology
node_browser -->|"requests pages"| node_target
node_typedops -.->|"dispatches tests"| node_probe
node_typedops -.->|"dispatches checks"| node_checks
node_pilot -.->|"uses operations"| node_typedops
node_probe -->|"sends in-scope requests"| node_target
node_probe -.->|"records proof"| node_evidence
node_evidence -->|"supports validation"| node_findings
node_findings -->|"replays proof"| node_target
node_model -->|"proposes findings"| node_findings
node_human -->|"confirms verdicts"| node_review
node_evidence -->|"builds report"| node_report
node_chat -.->|"requests completions"| node_providers
node_providers -.->|"sends prompts"| node_model
node_providers -.->|"uses provider adapters"| node_integrations
node_providers -->|"formats requests"| node_technology
node_typedops -.->|"records run state"| node_store
node_typedops -.->|"uses target sessions"| node_sessions
node_typedops -.->|"sanitizes results"| node_redact
node_coverage -.->|"persists matrix"| node_store
node_evidence -.->|"persists records"| node_store

click node_scope "https://github.com/suramya12/airt/blob/main/airt/scope.py"
click node_authorization "https://github.com/suramya12/airt/blob/main/airt/authz.py"
click node_coverage "https://github.com/suramya12/airt/blob/main/airt/coverage.py"
click node_recon "https://github.com/suramya12/airt/blob/main/airt/browser/ops.py"
click node_browser "https://github.com/suramya12/airt/blob/main/airt/browser/adapter.py"
click node_typedops "https://github.com/suramya12/airt/blob/main/airt/ops.py"
click node_checks "https://github.com/suramya12/airt/tree/main/airt/checks"
click node_pilot "https://github.com/suramya12/airt/blob/main/airt/pilot.py"
click node_probe "https://github.com/suramya12/airt/blob/main/airt/probe.py"
click node_evidence "https://github.com/suramya12/airt/blob/main/airt/evidence.py"
click node_hints "https://github.com/suramya12/airt/blob/main/airt/hints.py"
click node_findings "https://github.com/suramya12/airt/blob/main/airt/findings.py"
click node_review "https://github.com/suramya12/airt/blob/main/airt/review.py"
click node_report "https://github.com/suramya12/airt/blob/main/airt/report.py"
click node_store "https://github.com/suramya12/airt/blob/main/airt/store.py"
click node_sessions "https://github.com/suramya12/airt/blob/main/airt/sessions.py"
click node_redact "https://github.com/suramya12/airt/blob/main/airt/redact.py"
click node_technology "https://github.com/suramya12/airt/blob/main/airt/tech.py"
click node_chat "https://github.com/suramya12/airt/blob/main/airt/review_chat.py"
click node_providers "https://github.com/suramya12/airt/blob/main/airt/providers/client.py"
click node_integrations "https://github.com/suramya12/airt/tree/main/airt/adapters"

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_scope,node_authorization,node_human toneBlue
class node_coverage,node_recon,node_browser,node_typedops,node_checks,node_pilot,node_probe toneAmber
class node_evidence,node_hints,node_findings,node_review,node_report toneMint
class node_chat,node_providers,node_integrations toneRose
class node_store,node_sessions,node_redact,node_technology,node_target,node_model toneIndigo
```

## Components

### Engagement controls

- [Scope manifest](https://github.com/suramya12/airt/blob/main/airt/scope.py): `airt/scope.py`
- [Approval and guardrails](https://github.com/suramya12/airt/blob/main/airt/authz.py): `airt/authz.py`

### Assessment workflow

- [Coverage matrix](https://github.com/suramya12/airt/blob/main/airt/coverage.py): `airt/coverage.py`
- [Browser reconnaissance](https://github.com/suramya12/airt/blob/main/airt/browser/ops.py): `airt/browser/ops.py`
- [Browser session](https://github.com/suramya12/airt/blob/main/airt/browser/adapter.py): `airt/browser/adapter.py`
- [Typed operations](https://github.com/suramya12/airt/blob/main/airt/ops.py): `airt/ops.py`
- [Security checks](https://github.com/suramya12/airt/tree/main/airt/checks): `airt/checks`
- [Pilot testing](https://github.com/suramya12/airt/blob/main/airt/pilot.py): `airt/pilot.py`
- [Request probing](https://github.com/suramya12/airt/blob/main/airt/probe.py): `airt/probe.py`

### Evidence and verdicts

- [Evidence records](https://github.com/suramya12/airt/blob/main/airt/evidence.py): `airt/evidence.py`
- [Testing hints](https://github.com/suramya12/airt/blob/main/airt/hints.py): `airt/hints.py`
- [Findings and validation](https://github.com/suramya12/airt/blob/main/airt/findings.py): `airt/findings.py`
- [Human review](https://github.com/suramya12/airt/blob/main/airt/review.py): `airt/review.py`
- [Assessment reports](https://github.com/suramya12/airt/blob/main/airt/report.py): `airt/report.py`

### Clients and integrations

- [Built-in chat](https://github.com/suramya12/airt/blob/main/airt/review_chat.py): `airt/review_chat.py`
- [Model providers](https://github.com/suramya12/airt/blob/main/airt/providers/client.py): `airt/providers/client.py`
- [External adapters](https://github.com/suramya12/airt/tree/main/airt/adapters): `airt/adapters`

### Core runtime

- [Run data store](https://github.com/suramya12/airt/blob/main/airt/store.py): `airt/store.py`
- [Target sessions](https://github.com/suramya12/airt/blob/main/airt/sessions.py): `airt/sessions.py`
- [Secret redaction](https://github.com/suramya12/airt/blob/main/airt/redact.py): `airt/redact.py`
- [Technology detection](https://github.com/suramya12/airt/blob/main/airt/tech.py): `airt/tech.py`

### Other components

- **Authorized user**
- **Authorized target**
- **AI model**

## Connections

- Authorized user → Scope manifest: defines scope
- Authorized user → Approval and guardrails: approves run
- AI model → Typed operations: calls operations
- Approval and guardrails → Typed operations: gates calls
- Scope manifest → Typed operations: constrains calls
- Typed operations → Browser reconnaissance: dispatches browser ops (evidence: `airt/browser/ops.py`)
- Browser reconnaissance → Browser session: uses sessions (evidence: `airt/browser/ops.py`)
- Browser reconnaissance → Coverage matrix: registers surface (evidence: `airt/browser/ops.py`)
- Browser reconnaissance → Evidence records: stores recon (evidence: `airt/browser/ops.py`)
- Browser reconnaissance → Testing hints: attaches hints (evidence: `airt/browser/ops.py`)
- Browser reconnaissance → Technology detection: detects technology (evidence: `airt/browser/ops.py`)
- Browser session → Authorized target: requests pages
- Typed operations → Request probing: dispatches tests
- Typed operations → Security checks: dispatches checks
- Pilot testing → Typed operations: uses operations
- Request probing → Authorized target: sends in-scope requests
- Request probing → Evidence records: records proof
- Evidence records → Findings and validation: supports validation
- Findings and validation → Authorized target: replays proof
- AI model → Findings and validation: proposes findings
- Authorized user → Human review: confirms verdicts
- Evidence records → Assessment reports: builds report
- Built-in chat → Model providers: requests completions
- Model providers → AI model: sends prompts
- Model providers → External adapters: uses provider adapters
- Model providers → Technology detection: formats requests (evidence: `airt/providers/client.py`)
- Typed operations → Run data store: records run state
- Typed operations → Target sessions: uses target sessions
- Typed operations → Secret redaction: sanitizes results
- Coverage matrix → Run data store: persists matrix
- Evidence records → Run data store: persists records
