# ISIS v2 WS09-003: RunPod Endpoint Image Build Manifest Pipeline

## Scope

Implemented a manifest-driven endpoint image build pipeline that automatically:

- Generates endpoint build + inventory manifests from workflow metadata and
  desired state.
- Produces per-endpoint model/custom-node inventory artifacts.
- Validates endpoint/image parity before image builds.
- Builds endpoint images through a generated GitHub Actions matrix.

## Implemented Artifacts

- Build config source:
  - `infra/runpod/endpoints/image-build-config.json`
- Generated aggregate manifest:
  - `infra/runpod/endpoints/image-build-manifest.json`
- Generated per-endpoint inventories:
  - `infra/runpod/endpoints/inventory/*.json`
- Generator script:
  - `scripts/isis/generate_runpod_endpoint_image_manifests.mjs`
- Validator script:
  - `scripts/isis/validate_runpod_endpoint_image_manifests.mjs`
- Matrix generator script:
  - `scripts/isis/generate_runpod_endpoint_image_build_matrix.mjs`
- CI workflow:
  - `.github/workflows/runpod-endpoint-image-build.yml`

## Validation and Build Flow

1. Validate desired-state schema (`validate_runpod_desired_state.py`).
2. Generate endpoint image manifests.
3. Validate generated manifests against desired-state managed endpoints.
4. Generate build matrix (all endpoint families or selected keys).
5. Build base image and endpoint-tagged images from matrix entries.

## Outcome

WS09-003 is now closed with reproducible, manifest-backed endpoint image builds
and explicit model/custom-node inventory artifacts for all managed RunPod
endpoint families.
