Provenance (v1)
Cosmos emits machine-readable JSON artifacts that document how media was produced. These artifacts support reproducibility, auditability, and stable downstream joins.
Artifact categories
Run-level artifacts
cosmos_ingest_run.v1.json: ingest environment, options, encoder preferencescosmos_crop_run.v1.json: crop jobs and environmentcosmos_optimize_run.v1.json: optimize mode/options, hashes, environmentcosmos_crop_preview_run.v1.json: preview selectors, render options, per-clip plans
Artifact-level sidecars
*.mp4.cosmos_clip.v1.json: ingest output metadata and hash*.mp4.cosmos_view.v1.json: crop output metadata, source linkage, hash*.mp4.cosmos_optimized.v1.json: optimize output metadata, source linkage, hashpreview_<clip>_<hash>/preview_plan.v1.json: per-clip preview contract and output map
Canonical join keys
view.source.sha256 == clip.output.sha256optimized.source.sha256may match either ingest clip output or crop view outputclip.ingest_run_idjoins to ingest run-level filesview.crop_run_idjoins to crop run-level files
Schema reference
- ingest_run.v1.json
- clip.v1.json
- crop_run.v1.json
- view.v1.json
- optimize_run.v1.json
- optimized.v1.json
- crop_preview_run.v1.json
- crop_preview_plan.v1.json
Example clip artifact
{
"$schema": "https://docs.polli.ai/cosmos/schemas/clip.v1.json",
"schema_version": "1.0.0",
"clip_id": "clip_...",
"ingest_run_id": "ing_...",
"name": "CLIP1",
"output": {"path": "clips/CLIP1.mp4", "sha256": "...", "bytes": 12345678},
"video": {
"width": 4096,
"height": 2160,
"fps": 29.97,
"pix_fmt": "yuv420p",
"color_space": "bt709"
},
"encode": {"impl": "h264_nvenc", "crf": 18, "filtergraph": "..."},
"env": {
"ffmpeg": {"version": "ffmpeg 6.1.1 ..."},
"system": {"os": "macOS 14.6 ..."}
}
}
Operational guidance
- Keep sidecar JSON files with the MP4s when copying outputs.
- Dry-runs emit run-level plans only; artifact sidecars require real outputs.
- Preview bundles are designed for GUI seed workflows:
preview_plan.v1.jsonis the machine contract- image artifacts (
frames,sheets,stacked) are review outputs