# cyber-shuttle/cybershuttle-ai4science-foundry architecture

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

- Interactive diagram: https://gitdiagram.com/cyber-shuttle/cybershuttle-ai4science-foundry
- Repository: https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry

## Overview

The Foundry is a metadata registry for making AI4Science models reproducible and executable across computing systems. Its documented workflow moves models from registration through validation, benchmarking, optimization, and workflow readiness; researchers use model metadata alongside task recipes and resource profiles to generate and run workflows. The checked-in tree contains model records, recipes, Nexus profiles, benchmark results, and Pydantic schemas. Optimization profiles and workflow-generation/execution components are documented capabilities, but are not present in this tree; their links reflect the README, not inspected implementation.

Main entry points: [`registry/models`](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/registry/models) (Model Records), [`recipes`](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/recipes) (Execution Recipes), [`resource-profiles`](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/resource-profiles) (Resource Profiles), [`benchmarks/results`](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/benchmarks/results) (Benchmark Results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Model Catalog"]
  node_model_records["Model Records"]
  node_schema_definitions["Schema Definitions<br/>[schemas.py]"]
end

subgraph group_execution["Run Configuration"]
  node_recipes["Execution Recipes"]
  node_resource_profiles["Resource Profiles"]
  node_optimization_profiles["Optimization Profiles"]
  node_workflow_generation["Workflow Generation"]
end

subgraph group_validation["Validation and Readiness"]
  node_benchmark_results["Benchmark Results"]
  node_readiness["Lifecycle Readiness"]
end

node_researcher(("Researcher"))
node_compute_system{{"Compute Systems"}}

node_researcher -->|"selects models"| node_model_records
node_model_records -->|"validated by"| node_schema_definitions
node_model_records -->|"references recipes"| node_recipes
node_model_records -->|"references resources"| node_resource_profiles
node_model_records -->|"references optimizations"| node_optimization_profiles
node_model_records -->|"supplies metadata"| node_workflow_generation
node_recipes -->|"configures tasks"| node_workflow_generation
node_resource_profiles -->|"configures resources"| node_workflow_generation
node_optimization_profiles -->|"configures optimization"| node_workflow_generation
node_workflow_generation -->|"launches workflow"| node_compute_system
node_compute_system -.->|"produces measurements"| node_benchmark_results
node_benchmark_results -->|"informs status"| node_readiness

click node_model_records "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/registry/models"
click node_schema_definitions "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/blob/main/tools/schemas/schemas.py"
click node_recipes "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/recipes"
click node_resource_profiles "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/resource-profiles"
click node_benchmark_results "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/benchmarks/results"
click node_readiness "https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/registry/models"

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_model_records,node_schema_definitions toneBlue
class node_recipes,node_resource_profiles,node_optimization_profiles,node_workflow_generation toneAmber
class node_benchmark_results,node_readiness toneMint
class node_researcher,node_compute_system toneIndigo
```

## Components

### Model Catalog

- [Model Records](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/registry/models): `registry/models`
- [Schema Definitions](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/blob/main/tools/schemas/schemas.py): `tools/schemas/schemas.py`

### Run Configuration

- [Execution Recipes](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/recipes): `recipes`
- [Resource Profiles](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/resource-profiles): `resource-profiles`
- **Optimization Profiles**
- **Workflow Generation**

### Validation and Readiness

- [Benchmark Results](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/benchmarks/results): `benchmarks/results`
- [Lifecycle Readiness](https://github.com/cyber-shuttle/cybershuttle-ai4science-foundry/tree/main/registry/models): `registry/models`

### Other components

- **Researcher**
- **Compute Systems**

## Connections

- Researcher → Model Records: selects models (evidence: `README.md`)
- Model Records → Schema Definitions: validated by (evidence: `README.md`)
- Model Records → Execution Recipes: references recipes (evidence: `README.md`)
- Model Records → Resource Profiles: references resources (evidence: `README.md`)
- Model Records → Optimization Profiles: references optimizations (evidence: `README.md`)
- Model Records → Workflow Generation: supplies metadata (evidence: `README.md`)
- Execution Recipes → Workflow Generation: configures tasks (evidence: `README.md`)
- Resource Profiles → Workflow Generation: configures resources (evidence: `README.md`)
- Optimization Profiles → Workflow Generation: configures optimization (evidence: `README.md`)
- Workflow Generation → Compute Systems: launches workflow (evidence: `README.md`)
- Compute Systems → Benchmark Results: produces measurements
- Benchmark Results → Lifecycle Readiness: informs status (evidence: `README.md`)
