# aossie-org/openverifiablellm architecture

> Architecture diagram of the GitHub repository aossie-org/openverifiablellm, 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/aossie-org/openverifiablellm
- Repository: https://github.com/aossie-org/openverifiablellm

## Overview

OpenVerifiableLLM combines model reproducibility research with artifact verification and publishing, alongside a larger evidence-backed training and rental pipeline. The user-facing verification path resolves a model, checks its manifest and weight integrity, optionally replays training, then checks publisher provenance. The graph also preserves documented training, publication, and pipeline operations. Some pipeline modules are represented at subsystem level because their implementations were not sampled; those links are included only where the README or SOURCE INDEX supports them.

Main entry points: [`scripts/run_rental_controller.py`](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_rental_controller.py) (Rental controller), [`src/experiment.py`](https://github.com/aossie-org/openverifiablellm/blob/main/src/experiment.py) (Training experiments), [`scripts/run_sustained_pilot.py`](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_sustained_pilot.py) (Sustained pilot runner), [`src/verifier.py`](https://github.com/aossie-org/openverifiablellm/blob/main/src/verifier.py) (Artifact verifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_verify["Artifact verification"]
  node_cli["ovllm CLI<br/>[ovllm.py]"]
  node_verifier["Artifact verifier<br/>[verifier.py]"]
  node_publish["Publish preparation<br/>[publish.py]"]
end

subgraph group_research["Reproducibility research"]
  node_experiment["Training experiments<br/>[experiment.py]"]
  node_replay["Segmented replay<br/>[reproducibility.py]"]
  node_dataset["Dataset loading<br/>[dataset.py]"]
  node_model["Model<br/>[model.py]"]
  node_device["Device control<br/>[device.py]"]
  node_artifacts["Artifact integrity<br/>[artifacts.py]"]
end

subgraph group_pipeline["Evidence pipeline"]
  node_training["Pipeline training<br/>[training.py]"]
  node_release["Production release"]
  node_storage["Lifecycle storage"]
end

subgraph group_operations["Compute operations"]
  node_podclient["Off-pod job client<br/>[pod_job_client.py]"]
  node_podworker["Pod job worker<br/>[pod_job_worker.py]"]
  node_transfer["Pod transfer<br/>[pod_transfer.py]"]
  node_rental["Rental controller"]
  node_provider["Provider deadline probe"]
  node_preflight["Provider preflight"]
  node_pilot["Sustained pilot runner"]
  node_selection["Pilot selection"]
end

subgraph group_foundation["Shared foundations"]
  node_canonical["Canonical evidence<br/>[canonical.py]"]
  node_schema["Evidence schemas<br/>[schema.py]"]
  node_budget["Cost budgets<br/>[budget.py]"]
  node_supervision["Rental supervision<br/>[supervision.py]"]
end

node_user(("Model consumer"))
node_huggingface["Hugging Face"]
node_sigstore["Sigstore provenance"]

node_user -->|"requests verification"| node_cli
node_cli -->|"dispatches verify"| node_verifier
node_verifier -->|"resolves model"| node_huggingface
node_verifier -->|"checks provenance"| node_sigstore
node_verifier -->|"optionally replays"| node_replay
node_user -->|"prepares artifact"| node_publish
node_publish -->|"publishes model"| node_huggingface
node_experiment -->|"uses device control"| node_device
node_experiment -->|"uses model"| node_model
node_experiment -->|"loads dataset"| node_dataset
node_experiment -->|"writes artifacts"| node_artifacts
node_replay -->|"draws batches"| node_dataset
node_replay -->|"replays training"| node_model
node_replay -->|"selects device"| node_device
node_podclient -->|"transfers job data"| node_transfer
node_podclient -->|"launches worker"| node_podworker
node_rental -->|"probes provider"| node_provider
node_rental -->|"checks preflight"| node_preflight
node_rental -->|"uses supervision policy"| node_supervision
node_rental -->|"checks cost limits"| node_budget
node_pilot -->|"uses job client"| node_podclient
node_pilot -->|"uses job worker"| node_podworker
node_pilot -->|"uses rental controller"| node_rental
node_pilot -->|"uses pilot selection"| node_selection
node_selection -->|"queries job client"| node_podclient
node_selection -->|"queries job worker"| node_podworker
node_schema -->|"uses canonical primitives"| node_canonical
node_supervision -->|"uses budget rules"| node_budget
node_supervision -->|"uses evidence primitives"| node_canonical
node_supervision -->|"validates fields"| node_schema
node_training -.->|"supports release pipeline"| node_release
node_storage -->|"downloads publication data"| node_huggingface

click node_cli "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovllm.py"
click node_verifier "https://github.com/aossie-org/openverifiablellm/blob/main/src/verifier.py"
click node_publish "https://github.com/aossie-org/openverifiablellm/blob/main/src/publish.py"
click node_experiment "https://github.com/aossie-org/openverifiablellm/blob/main/src/experiment.py"
click node_replay "https://github.com/aossie-org/openverifiablellm/blob/main/src/reproducibility.py"
click node_dataset "https://github.com/aossie-org/openverifiablellm/blob/main/src/dataset.py"
click node_model "https://github.com/aossie-org/openverifiablellm/blob/main/src/model.py"
click node_device "https://github.com/aossie-org/openverifiablellm/blob/main/src/device.py"
click node_artifacts "https://github.com/aossie-org/openverifiablellm/blob/main/src/artifacts.py"
click node_podclient "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_job_client.py"
click node_podworker "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_job_worker.py"
click node_transfer "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_transfer.py"
click node_rental "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_rental_controller.py"
click node_provider "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/probe_provider_deadline.py"
click node_preflight "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/provider_preflight.py"
click node_pilot "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_sustained_pilot.py"
click node_selection "https://github.com/aossie-org/openverifiablellm/blob/main/scripts/sustained_pilot_selection.py"
click node_canonical "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/canonical.py"
click node_schema "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/schema.py"
click node_budget "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/budget.py"
click node_supervision "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/supervision.py"
click node_training "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/training.py"
click node_release "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/production_release.py"
click node_storage "https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/lifecycle_storage.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_cli,node_verifier,node_publish toneBlue
class node_experiment,node_replay,node_dataset,node_model,node_device,node_artifacts toneAmber
class node_training,node_release,node_storage toneMint
class node_podclient,node_podworker,node_transfer,node_rental,node_provider,node_preflight,node_pilot,node_selection toneRose
class node_canonical,node_schema,node_budget,node_supervision,node_user,node_huggingface,node_sigstore toneIndigo
```

## Components

### Artifact verification

- [ovllm CLI](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovllm.py): `src/ovllm.py`
- [Artifact verifier](https://github.com/aossie-org/openverifiablellm/blob/main/src/verifier.py): `src/verifier.py`
- [Publish preparation](https://github.com/aossie-org/openverifiablellm/blob/main/src/publish.py): `src/publish.py`

### Reproducibility research

- [Training experiments](https://github.com/aossie-org/openverifiablellm/blob/main/src/experiment.py): `src/experiment.py`
- [Segmented replay](https://github.com/aossie-org/openverifiablellm/blob/main/src/reproducibility.py): `src/reproducibility.py`
- [Dataset loading](https://github.com/aossie-org/openverifiablellm/blob/main/src/dataset.py): `src/dataset.py`
- [Model](https://github.com/aossie-org/openverifiablellm/blob/main/src/model.py): `src/model.py`
- [Device control](https://github.com/aossie-org/openverifiablellm/blob/main/src/device.py): `src/device.py`
- [Artifact integrity](https://github.com/aossie-org/openverifiablellm/blob/main/src/artifacts.py): `src/artifacts.py`

### Evidence pipeline

- [Pipeline training](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/training.py): `src/ovl_pipeline/training.py`
- [Production release](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/production_release.py): `src/ovl_pipeline/production_release.py`
- [Lifecycle storage](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/lifecycle_storage.py): `src/ovl_pipeline/lifecycle_storage.py`

### Compute operations

- [Off-pod job client](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_job_client.py): `scripts/pod_job_client.py`
- [Pod job worker](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_job_worker.py): `scripts/pod_job_worker.py`
- [Pod transfer](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/pod_transfer.py): `scripts/pod_transfer.py`
- [Rental controller](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_rental_controller.py): `scripts/run_rental_controller.py`
- [Provider deadline probe](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/probe_provider_deadline.py): `scripts/probe_provider_deadline.py`
- [Provider preflight](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/provider_preflight.py): `scripts/provider_preflight.py`
- [Sustained pilot runner](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/run_sustained_pilot.py): `scripts/run_sustained_pilot.py`
- [Pilot selection](https://github.com/aossie-org/openverifiablellm/blob/main/scripts/sustained_pilot_selection.py): `scripts/sustained_pilot_selection.py`

### Shared foundations

- [Canonical evidence](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/canonical.py): `src/ovl_pipeline/canonical.py`
- [Evidence schemas](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/schema.py): `src/ovl_pipeline/schema.py`
- [Cost budgets](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/budget.py): `src/ovl_pipeline/budget.py`
- [Rental supervision](https://github.com/aossie-org/openverifiablellm/blob/main/src/ovl_pipeline/supervision.py): `src/ovl_pipeline/supervision.py`

### Other components

- **Model consumer**
- **Hugging Face**
- **Sigstore provenance**

## Connections

- Model consumer → ovllm CLI: requests verification (evidence: `README.md`)
- ovllm CLI → Artifact verifier: dispatches verify (evidence: `src/ovllm.py`)
- Artifact verifier → Hugging Face: resolves model (evidence: `README.md`)
- Artifact verifier → Sigstore provenance: checks provenance (evidence: `README.md`)
- Artifact verifier → Segmented replay: optionally replays (evidence: `README.md`)
- Model consumer → Publish preparation: prepares artifact (evidence: `README.md`)
- Publish preparation → Hugging Face: publishes model (evidence: `README.md`)
- Training experiments → Device control: uses device control (evidence: `src/experiment.py`)
- Training experiments → Model: uses model (evidence: `src/experiment.py`)
- Training experiments → Dataset loading: loads dataset (evidence: `src/experiment.py`)
- Training experiments → Artifact integrity: writes artifacts (evidence: `src/experiment.py`)
- Segmented replay → Dataset loading: draws batches (evidence: `src/reproducibility.py`)
- Segmented replay → Model: replays training (evidence: `src/reproducibility.py`)
- Segmented replay → Device control: selects device (evidence: `src/reproducibility.py`)
- Off-pod job client → Pod transfer: transfers job data (evidence: `scripts/pod_job_client.py`)
- Off-pod job client → Pod job worker: launches worker (evidence: `scripts/pod_job_client.py`)
- Rental controller → Provider deadline probe: probes provider (evidence: `scripts/run_rental_controller.py`)
- Rental controller → Provider preflight: checks preflight (evidence: `scripts/run_rental_controller.py`)
- Rental controller → Rental supervision: uses supervision policy (evidence: `scripts/run_rental_controller.py`)
- Rental controller → Cost budgets: checks cost limits (evidence: `scripts/run_rental_controller.py`)
- Sustained pilot runner → Off-pod job client: uses job client (evidence: `scripts/run_sustained_pilot.py`)
- Sustained pilot runner → Pod job worker: uses job worker (evidence: `scripts/run_sustained_pilot.py`)
- Sustained pilot runner → Rental controller: uses rental controller (evidence: `scripts/run_sustained_pilot.py`)
- Sustained pilot runner → Pilot selection: uses pilot selection (evidence: `scripts/run_sustained_pilot.py`)
- Pilot selection → Off-pod job client: queries job client (evidence: `scripts/sustained_pilot_selection.py`)
- Pilot selection → Pod job worker: queries job worker (evidence: `scripts/sustained_pilot_selection.py`)
- Evidence schemas → Canonical evidence: uses canonical primitives (evidence: `src/ovl_pipeline/schema.py`)
- Rental supervision → Cost budgets: uses budget rules (evidence: `src/ovl_pipeline/supervision.py`)
- Rental supervision → Canonical evidence: uses evidence primitives (evidence: `src/ovl_pipeline/supervision.py`)
- Rental supervision → Evidence schemas: validates fields (evidence: `src/ovl_pipeline/supervision.py`)
- Pipeline training → Production release: supports release pipeline
- Lifecycle storage → Hugging Face: downloads publication data (evidence: `src/ovl_pipeline/lifecycle_storage.py`)
