# gustason/vmm-audit architecture

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

- Interactive diagram: https://gitdiagram.com/gustason/vmm-audit
- Repository: https://github.com/gustason/vmm-audit

## Overview

vmm-audit is a reproducibility artifact for the ProofVMM research paper. Its main workflow queries the Prove2Me campaign, records audit data, and regenerates summary tables; a separate script checks L3 and sibling missions. The repository also provides Lean examples for compilation and a static paper-consistency checker. The README documents these capabilities, but the paper source it names is not in the supplied tree. The graph reflects shown calls and documented behavior; it does not assume how unsampled code connects.

Main entry points: [`scripts/audit_campaign.py`](https://github.com/gustason/vmm-audit/blob/master/scripts/audit_campaign.py) (Campaign auditor), [`scripts/l3_check.py`](https://github.com/gustason/vmm-audit/blob/master/scripts/l3_check.py) (L3 checker), [`scripts/make_tables_v2.py`](https://github.com/gustason/vmm-audit/blob/master/scripts/make_tables_v2.py) (Table generator), [`lean/CheckVMMExamples.lean`](https://github.com/gustason/vmm-audit/blob/master/lean/CheckVMMExamples.lean) (Lean examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_campaign_audit["Campaign audit"]
  node_campaign_auditor["Campaign auditor<br/>[audit_campaign.py]"]
  node_platform_api{{"Prove2Me API"}}
  node_l3_checker["L3 checker<br/>[l3_check.py]"]
end

subgraph group_reproduction["Reproduction outputs"]
  node_campaign_data["Campaign snapshot"]
  node_l3_data["L3 snapshot"]
  node_table_generator["Table generator<br/>[make_tables_v2.py]"]
  node_audit_tables["Audit tables"]
end

subgraph group_formal["Formal verification"]
  node_lean_examples["Lean examples"]
  node_lean_toolchain["Lean toolchain"]
end

subgraph group_paper_checks["Paper checks"]
  node_paper_checker["Paper checker<br/>[check_paper.py]"]
end

node_engineer(("Researcher"))

node_engineer -->|"runs"| node_campaign_auditor
node_campaign_auditor -->|"queries"| node_platform_api
node_campaign_auditor -->|"records results"| node_campaign_data
node_engineer -->|"runs"| node_l3_checker
node_l3_checker -->|"checks missions"| node_platform_api
node_l3_checker -->|"records results"| node_l3_data
node_engineer -->|"runs"| node_table_generator
node_table_generator -->|"reads"| node_campaign_data
node_table_generator -->|"generates"| node_audit_tables
node_engineer -->|"verifies"| node_lean_examples
node_lean_examples -.->|"uses"| node_lean_toolchain
node_engineer -->|"runs"| node_paper_checker

click node_campaign_auditor "https://github.com/gustason/vmm-audit/blob/master/scripts/audit_campaign.py"
click node_l3_checker "https://github.com/gustason/vmm-audit/blob/master/scripts/l3_check.py"
click node_campaign_data "https://github.com/gustason/vmm-audit/blob/master/data/campaign_audit.json"
click node_l3_data "https://github.com/gustason/vmm-audit/blob/master/data/l3_and_sibling_check.json"
click node_table_generator "https://github.com/gustason/vmm-audit/blob/master/scripts/make_tables_v2.py"
click node_audit_tables "https://github.com/gustason/vmm-audit/blob/master/audit/campaign_audit_table.md"
click node_lean_examples "https://github.com/gustason/vmm-audit/blob/master/lean/CheckVMMExamples.lean"
click node_lean_toolchain "https://github.com/gustason/vmm-audit/blob/master/lean/lean-toolchain"
click node_paper_checker "https://github.com/gustason/vmm-audit/blob/master/scripts/check_paper.py"

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_campaign_auditor,node_platform_api,node_l3_checker toneBlue
class node_campaign_data,node_l3_data,node_table_generator,node_audit_tables toneAmber
class node_lean_examples,node_lean_toolchain toneMint
class node_paper_checker toneRose
class node_engineer toneIndigo
```

## Components

### Campaign audit

- [Campaign auditor](https://github.com/gustason/vmm-audit/blob/master/scripts/audit_campaign.py): `scripts/audit_campaign.py`
- **Prove2Me API**
- [L3 checker](https://github.com/gustason/vmm-audit/blob/master/scripts/l3_check.py): `scripts/l3_check.py`

### Reproduction outputs

- [Campaign snapshot](https://github.com/gustason/vmm-audit/blob/master/data/campaign_audit.json): `data/campaign_audit.json`
- [L3 snapshot](https://github.com/gustason/vmm-audit/blob/master/data/l3_and_sibling_check.json): `data/l3_and_sibling_check.json`
- [Table generator](https://github.com/gustason/vmm-audit/blob/master/scripts/make_tables_v2.py): `scripts/make_tables_v2.py`
- [Audit tables](https://github.com/gustason/vmm-audit/blob/master/audit/campaign_audit_table.md): `audit/campaign_audit_table.md`

### Formal verification

- [Lean examples](https://github.com/gustason/vmm-audit/blob/master/lean/CheckVMMExamples.lean): `lean/CheckVMMExamples.lean`
- [Lean toolchain](https://github.com/gustason/vmm-audit/blob/master/lean/lean-toolchain): `lean/lean-toolchain`

### Paper checks

- [Paper checker](https://github.com/gustason/vmm-audit/blob/master/scripts/check_paper.py): `scripts/check_paper.py`

### Other components

- **Researcher**

## Connections

- Researcher → Campaign auditor: runs (evidence: `README.md`)
- Campaign auditor → Prove2Me API: queries (evidence: `scripts/audit_campaign.py`)
- Campaign auditor → Campaign snapshot: records results (evidence: `README.md`)
- Researcher → L3 checker: runs (evidence: `README.md`)
- L3 checker → Prove2Me API: checks missions (evidence: `scripts/l3_check.py`)
- L3 checker → L3 snapshot: records results (evidence: `README.md`)
- Researcher → Table generator: runs (evidence: `README.md`)
- Table generator → Campaign snapshot: reads (evidence: `scripts/make_tables_v2.py`)
- Table generator → Audit tables: generates (evidence: `README.md`)
- Researcher → Lean examples: verifies (evidence: `README.md`)
- Lean examples → Lean toolchain: uses
- Researcher → Paper checker: runs (evidence: `README.md`)
