[
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.run",
      "channel-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "appliedOperationIds": [
        "handoff-move-01"
      ],
      "warnings": [],
      "diff": {
        "before": {
          "schemaVersion": 1,
          "revision": 0,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [],
          "warnings": []
        },
        "after": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6.25,
          "ratio": "16:9",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "handoff-move-01"
          ],
          "warnings": []
        },
        "changes": {
          "projectFields": [],
          "tracks": {
            "audio": {
              "added": [],
              "removed": [],
              "modified": [
                {
                  "id": "voice-source",
                  "fields": [
                    "start"
                  ],
                  "before": {
                    "start": 2
                  },
                  "after": {
                    "start": 3.25
                  }
                }
              ]
            }
          }
        }
      },
      "artifacts": {
        "project": "./results/channel-first.timeline"
      }
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.run",
      "channel-retry-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "appliedOperationIds": [],
      "warnings": [],
      "diff": {
        "before": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6.25,
          "ratio": "16:9",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "handoff-move-01"
          ],
          "warnings": []
        },
        "after": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6.25,
          "ratio": "16:9",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "handoff-move-01"
          ],
          "warnings": []
        },
        "changes": {
          "projectFields": [],
          "tracks": {}
        }
      },
      "artifacts": {
        "project": "./results/channel-retry.timeline"
      }
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.run",
      "channel-stale-plan.json"
    ],
    "exitCode": 1,
    "result": {
      "ok": false,
      "code": "REVISION_CONFLICT",
      "message": "Expected revision 0, found 1"
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.diff",
      "brief-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "appliedOperationIds": [
        "brief-tone-earlier-01"
      ],
      "warnings": [],
      "diff": {
        "before": {
          "schemaVersion": 1,
          "revision": 0,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 1,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [],
          "warnings": []
        },
        "after": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 1,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "brief-tone-earlier-01"
          ],
          "warnings": []
        },
        "changes": {
          "projectFields": [],
          "tracks": {
            "captions": {
              "added": [],
              "removed": [],
              "modified": [
                {
                  "id": "diagnostic-label",
                  "fields": [
                    "start",
                    "end"
                  ],
                  "before": {
                    "start": 2.25,
                    "end": 4.5
                  },
                  "after": {
                    "start": 1.25,
                    "end": 3.5
                  }
                }
              ]
            },
            "audio": {
              "added": [],
              "removed": [],
              "modified": [
                {
                  "id": "voice-source",
                  "fields": [
                    "start"
                  ],
                  "before": {
                    "start": 2
                  },
                  "after": {
                    "start": 1
                  }
                }
              ]
            }
          }
        }
      },
      "artifacts": {}
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.run",
      "brief-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "appliedOperationIds": [
        "brief-tone-earlier-01"
      ],
      "warnings": [],
      "diff": {
        "before": {
          "schemaVersion": 1,
          "revision": 0,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 1,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [],
          "warnings": []
        },
        "after": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 1,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "brief-tone-earlier-01"
          ],
          "warnings": []
        },
        "changes": {
          "projectFields": [],
          "tracks": {
            "captions": {
              "added": [],
              "removed": [],
              "modified": [
                {
                  "id": "diagnostic-label",
                  "fields": [
                    "start",
                    "end"
                  ],
                  "before": {
                    "start": 2.25,
                    "end": 4.5
                  },
                  "after": {
                    "start": 1.25,
                    "end": 3.5
                  }
                }
              ]
            },
            "audio": {
              "added": [],
              "removed": [],
              "modified": [
                {
                  "id": "voice-source",
                  "fields": [
                    "start"
                  ],
                  "before": {
                    "start": 2
                  },
                  "after": {
                    "start": 1
                  }
                }
              ]
            }
          }
        }
      },
      "artifacts": {
        "project": "./results/brief-edited.timeline"
      }
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.run",
      "archive-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "appliedOperationIds": [
        "archive-ratio-01"
      ],
      "warnings": [],
      "diff": {
        "before": {
          "schemaVersion": 1,
          "revision": 0,
          "duration": 6,
          "ratio": "16:9",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [],
          "warnings": []
        },
        "after": {
          "schemaVersion": 1,
          "revision": 1,
          "duration": 6,
          "ratio": "9:16",
          "tracks": {
            "captions": 0,
            "audio": 1,
            "visuals": 1,
            "stickers": 0,
            "overlays": 0,
            "music": 0
          },
          "appliedOperationIds": [
            "archive-ratio-01"
          ],
          "warnings": []
        },
        "changes": {
          "projectFields": [
            {
              "field": "ratioId",
              "before": "16:9",
              "after": "9:16"
            }
          ],
          "tracks": {}
        }
      },
      "artifacts": {
        "project": "./results/archive-edited.timeline"
      }
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.render",
      "render-plan.json"
    ],
    "exitCode": 0,
    "result": {
      "ok": true,
      "revision": 1,
      "artifacts": {
        "project": "./results/archive-edited.timeline",
        "video": "./results/archive-render.mp4"
      },
      "render": {
        "duration": 6,
        "width": 180,
        "height": 320,
        "frameRate": 24,
        "hasAudio": true,
        "codec": "h264",
        "container": "mp4"
      },
      "verification": {
        "duration": 6,
        "width": 180,
        "height": 320,
        "hasAudio": true
      }
    }
  },
  {
    "command": [
      "node",
      "run-command.mjs",
      "project.render",
      "unsupported-render-plan.json"
    ],
    "exitCode": 1,
    "result": {
      "ok": false,
      "code": "UNSUPPORTED_RENDER_FEATURE",
      "message": "Headless render does not yet support: captions"
    }
  }
]
