# open-montage-app/openmontage architecture

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

- Interactive diagram: https://gitdiagram.com/open-montage-app/openmontage
- Repository: https://github.com/open-montage-app/openmontage

## Overview

OpenMontage is an agent-orchestrated video production system; the files shown here are Python support modules, not the full production runtime. The documented user journey runs from a brief or reference video through research, planning, asset creation, editing, and final composition. This library covers pipeline configuration and resumability, media/corpus analysis, provider and style decisions, and quality checks. Several README capabilities have no corresponding implementation in the supplied tree, so their internal connections are not inferred.

Main entry points: [`lib/pipeline_loader.py`](https://github.com/open-montage-app/openmontage/blob/main/lib/pipeline_loader.py) (Pipeline manifests), [`lib/playbook_generator.py`](https://github.com/open-montage-app/openmontage/blob/main/lib/playbook_generator.py) (Custom playbooks), [`lib/corpus.py`](https://github.com/open-montage-app/openmontage/blob/main/lib/corpus.py) (Clip corpus), [`lib/checkpoint.py`](https://github.com/open-montage-app/openmontage/blob/main/lib/checkpoint.py) (Pipeline checkpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Pipeline planning"]
  node_pipelines["Pipeline manifests<br/>[pipeline_loader.py]"]
  node_playbooks["Custom playbooks"]
  node_config["Configuration model<br/>[config_model.py]"]
  node_environment["Environment loading<br/>[env_loader.py]"]
end

subgraph group_media["Media intelligence"]
  node_source_review["Source media review"]
  node_corpus[("Clip corpus<br/>[corpus.py]")]
  node_embeddings["Clip embeddings<br/>[clip_embedder.py]"]
  node_media_profiles["Media profiles<br/>[media_profiles.py]"]
end

subgraph group_creative["Creative decisions"]
  node_provider_scoring["Provider scoring<br/>[scoring.py]"]
  node_shot_prompts["Shot prompts"]
  node_style_bridge["Style translation"]
end

subgraph group_quality["Quality and state"]
  node_delivery["Delivery promise"]
  node_slideshow_risk["Slideshow risk<br/>[slideshow_risk.py]"]
  node_variation["Scene variation"]
  node_pacing["Scene pacing"]
  node_checkpoints[("Pipeline checkpoints<br/>[checkpoint.py]")]
end

node_creator(("User or agent"))

node_creator -->|"requests production"| node_pipelines
node_pipelines -.->|"defines stages"| node_checkpoints
node_checkpoints -->|"loads stage order"| node_pipelines
node_creator -->|"provides reference media"| node_source_review
node_creator -.->|"defines creative brief"| node_playbooks
node_creator -->|"requests footage search"| node_corpus
node_corpus -.->|"ranks clips"| node_embeddings
node_creator -->|"selects production path"| node_provider_scoring
node_creator -->|"plans scenes"| node_shot_prompts
node_playbooks -.->|"supplies visual style"| node_style_bridge
node_creator -->|"sets delivery promise"| node_delivery
node_creator -->|"validates plan"| node_slideshow_risk
node_creator -->|"checks scene variety"| node_variation
node_creator -.->|"checks pacing"| node_pacing

click node_pipelines "https://github.com/open-montage-app/openmontage/blob/main/lib/pipeline_loader.py"
click node_playbooks "https://github.com/open-montage-app/openmontage/blob/main/lib/playbook_generator.py"
click node_source_review "https://github.com/open-montage-app/openmontage/blob/main/lib/source_media_review.py"
click node_corpus "https://github.com/open-montage-app/openmontage/blob/main/lib/corpus.py"
click node_embeddings "https://github.com/open-montage-app/openmontage/blob/main/lib/clip_embedder.py"
click node_media_profiles "https://github.com/open-montage-app/openmontage/blob/main/lib/media_profiles.py"
click node_provider_scoring "https://github.com/open-montage-app/openmontage/blob/main/lib/scoring.py"
click node_shot_prompts "https://github.com/open-montage-app/openmontage/blob/main/lib/shot_prompt_builder.py"
click node_style_bridge "https://github.com/open-montage-app/openmontage/blob/main/lib/hyperframes_style_bridge.py"
click node_delivery "https://github.com/open-montage-app/openmontage/blob/main/lib/delivery_promise.py"
click node_slideshow_risk "https://github.com/open-montage-app/openmontage/blob/main/lib/slideshow_risk.py"
click node_variation "https://github.com/open-montage-app/openmontage/blob/main/lib/variation_checker.py"
click node_pacing "https://github.com/open-montage-app/openmontage/blob/main/lib/verify_scene_pacing.py"
click node_checkpoints "https://github.com/open-montage-app/openmontage/blob/main/lib/checkpoint.py"
click node_config "https://github.com/open-montage-app/openmontage/blob/main/lib/config_model.py"
click node_environment "https://github.com/open-montage-app/openmontage/blob/main/lib/env_loader.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_pipelines,node_playbooks,node_config,node_environment,node_creator toneBlue
class node_source_review,node_corpus,node_embeddings,node_media_profiles toneAmber
class node_provider_scoring,node_shot_prompts,node_style_bridge toneMint
class node_delivery,node_slideshow_risk,node_variation,node_pacing,node_checkpoints toneRose
```

## Components

### Pipeline planning

- [Pipeline manifests](https://github.com/open-montage-app/openmontage/blob/main/lib/pipeline_loader.py): `lib/pipeline_loader.py`
- [Custom playbooks](https://github.com/open-montage-app/openmontage/blob/main/lib/playbook_generator.py): `lib/playbook_generator.py`
- [Configuration model](https://github.com/open-montage-app/openmontage/blob/main/lib/config_model.py): `lib/config_model.py`
- [Environment loading](https://github.com/open-montage-app/openmontage/blob/main/lib/env_loader.py): `lib/env_loader.py`

### Media intelligence

- [Source media review](https://github.com/open-montage-app/openmontage/blob/main/lib/source_media_review.py): `lib/source_media_review.py`
- [Clip corpus](https://github.com/open-montage-app/openmontage/blob/main/lib/corpus.py): `lib/corpus.py`
- [Clip embeddings](https://github.com/open-montage-app/openmontage/blob/main/lib/clip_embedder.py): `lib/clip_embedder.py`
- [Media profiles](https://github.com/open-montage-app/openmontage/blob/main/lib/media_profiles.py): `lib/media_profiles.py`

### Creative decisions

- [Provider scoring](https://github.com/open-montage-app/openmontage/blob/main/lib/scoring.py): `lib/scoring.py`
- [Shot prompts](https://github.com/open-montage-app/openmontage/blob/main/lib/shot_prompt_builder.py): `lib/shot_prompt_builder.py`
- [Style translation](https://github.com/open-montage-app/openmontage/blob/main/lib/hyperframes_style_bridge.py): `lib/hyperframes_style_bridge.py`

### Quality and state

- [Delivery promise](https://github.com/open-montage-app/openmontage/blob/main/lib/delivery_promise.py): `lib/delivery_promise.py`
- [Slideshow risk](https://github.com/open-montage-app/openmontage/blob/main/lib/slideshow_risk.py): `lib/slideshow_risk.py`
- [Scene variation](https://github.com/open-montage-app/openmontage/blob/main/lib/variation_checker.py): `lib/variation_checker.py`
- [Scene pacing](https://github.com/open-montage-app/openmontage/blob/main/lib/verify_scene_pacing.py): `lib/verify_scene_pacing.py`
- [Pipeline checkpoints](https://github.com/open-montage-app/openmontage/blob/main/lib/checkpoint.py): `lib/checkpoint.py`

### Other components

- **User or agent**

## Connections

- User or agent → Pipeline manifests: requests production (evidence: `README.md`)
- Pipeline manifests → Pipeline checkpoints: defines stages (evidence: `lib/checkpoint.py`)
- Pipeline checkpoints → Pipeline manifests: loads stage order (evidence: `lib/checkpoint.py`)
- User or agent → Source media review: provides reference media (evidence: `README.md`)
- User or agent → Custom playbooks: defines creative brief
- User or agent → Clip corpus: requests footage search (evidence: `README.md`)
- Clip corpus → Clip embeddings: ranks clips
- User or agent → Provider scoring: selects production path (evidence: `README.md`)
- User or agent → Shot prompts: plans scenes (evidence: `README.md`)
- Custom playbooks → Style translation: supplies visual style
- User or agent → Delivery promise: sets delivery promise (evidence: `README.md`)
- User or agent → Slideshow risk: validates plan (evidence: `README.md`)
- User or agent → Scene variation: checks scene variety (evidence: `README.md`)
- User or agent → Scene pacing: checks pacing
