{
  "schema": "cryostack.pilot.interactive-tutorial.v1",
  "title": "Icepack: bring your own script on Remote HPC",
  "video_sha256": "a3f1d527fe2a4d1576d49bea251c664ad0e5d1cfcb1fe5f608769f16fd73cf5b",
  "duration_seconds": 264.0,
  "steps": [
    {
      "id": "icepack-01",
      "logical_id": "goal",
      "title": "Run your own Icepack script on Remote HPC",
      "start": 0,
      "end": 14.0,
      "instructions": [
        "Run your Python shelf script on your HPC allocation."
      ],
      "why": "Keep your source, helpers and data together in a reviewed workflow.",
      "expected": "Have run.py, validate_dataset.py, a JSON input and your Connector ready.",
      "note": "",
      "pauseAfter": false,
      "source_scene_ids": [
        "icepack-01"
      ]
    },
    {
      "id": "icepack-02",
      "logical_id": "mode",
      "title": "1. Choose Remote HPC and Icepack",
      "start": 14.0,
      "end": 24.0,
      "instructions": [
        "Choose Remote HPC → Advanced → Icepack."
      ],
      "why": "Keep your own scripts and data in an editable example.",
      "expected": "Remote HPC and Advanced are selected.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-02"
      ]
    },
    {
      "id": "icepack-03",
      "logical_id": "example",
      "title": "2. Create an owned example",
      "start": 24.0,
      "end": 44.0,
      "instructions": [
        "Enter a new name, then choose New example.",
        "Wait for the created-workspace confirmation."
      ],
      "why": "An owned example keeps your files together.",
      "expected": "The file list is empty and the new example is selected.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-03",
        "icepack-04"
      ]
    },
    {
      "id": "icepack-05",
      "logical_id": "scripts",
      "title": "3. Import the entry script and helper",
      "start": 44.0,
      "end": 66.0,
      "instructions": [
        "Choose run.py and validate_dataset.py together.",
        "Choose Import script files and wait for Files are saved."
      ],
      "why": "The validator is a helper imported by the entry script.",
      "expected": "The saved message names run.py and validate_dataset.py.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-05",
        "icepack-06"
      ]
    },
    {
      "id": "icepack-07",
      "logical_id": "upload",
      "title": "4. Upload the tutorial JSON",
      "start": 66.0,
      "end": 86.0,
      "instructions": [
        "Choose the tutorial JSON input in Datasets.",
        "Choose Upload and confirm the stored JSON filename."
      ],
      "why": "Selection prepares a file; Upload stores it in your library.",
      "expected": "The upload count returns to zero.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-07",
        "icepack-08"
      ]
    },
    {
      "id": "icepack-09",
      "logical_id": "reference",
      "title": "5. Reference the expected dataset alias",
      "start": 86.0,
      "end": 108.0,
      "instructions": [
        "Set alias icepack-shelf-small-v1.json, then choose Reference in example.",
        "Confirm that the JSON is referenced by this example."
      ],
      "why": "The unchanged script reads this path beneath data/.",
      "expected": "The reference confirmation names data/icepack-shelf-small-v1.json.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-09",
        "icepack-10"
      ]
    },
    {
      "id": "icepack-11",
      "logical_id": "target",
      "title": "6. Set the run target",
      "start": 108.0,
      "end": 118.0,
      "instructions": [
        "Set Action to Run and Run target to run.py."
      ],
      "why": "Helpers stay beside the entry script; they are not separate jobs.",
      "expected": "run.py is the selected entrypoint.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-11"
      ]
    },
    {
      "id": "icepack-12",
      "logical_id": "backend",
      "title": "7. Select the tested container",
      "start": 118.0,
      "end": 130.0,
      "instructions": [
        "Use ICESEE-Container with the tested Combined v1.0.2 image."
      ],
      "why": "The tested image supplies Icepack, Firedrake and PETSc together.",
      "expected": "The tested container profile is selected.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-12"
      ]
    },
    {
      "id": "icepack-13",
      "logical_id": "resources",
      "title": "8. Review the requested resources",
      "start": 130.0,
      "end": 144.0,
      "instructions": [
        "Review 1 node, 1 task, 1 task per node and a bounded wall time."
      ],
      "why": "This Icepack workflow currently uses one Python process.",
      "expected": "One task, 16 GiB and a 30-minute ceiling; use your own authorized account.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-13"
      ]
    },
    {
      "id": "icepack-14",
      "logical_id": "submit",
      "title": "9. Submit the reviewed example once",
      "start": 144.0,
      "end": 154.0,
      "instructions": [
        "Choose Submit job once after reviewing your example."
      ],
      "why": "This is the explicit action that starts the native model.",
      "expected": "Submit job is the launch control.",
      "note": "The launch-control close-up was captured after the single real submission. It did not launch another job.",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-14"
      ]
    },
    {
      "id": "icepack-15",
      "logical_id": "monitor",
      "title": "10. Follow this run to completion",
      "start": 154.0,
      "end": 176.0,
      "instructions": [
        "Follow your new job in Run Log.",
        "Wait for Completed before opening the native results."
      ],
      "why": "Queue and image startup are separate from model runtime.",
      "expected": "Startup: 19 s; batch wall time: 44 s; script interval: 24.12 s.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-15",
        "icepack-16"
      ]
    },
    {
      "id": "icepack-17",
      "logical_id": "results",
      "title": "11. Fetch and render native fields",
      "start": 176.0,
      "end": 212.0,
      "instructions": [
        "Fetch the completed outputs, then choose Preview results.",
        "Choose icepack → velocity, then Render.",
        "Choose thickness and Render, then read the units and colour scale."
      ],
      "why": "Retrieval brings the completed native output into your workspace.",
      "expected": "Thickness is positive, about 300–500 meters.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-17",
        "icepack-18",
        "icepack-19"
      ]
    },
    {
      "id": "icepack-20",
      "logical_id": "download",
      "title": "12. Prepare and save the result archive",
      "start": 212.0,
      "end": 234.0,
      "instructions": [
        "Choose Download results to prepare the archive link.",
        "Open the prepared HTTPS link to save this run’s archive.",
        "Confirm that your browser saved the archive before leaving the page."
      ],
      "why": "Keep the native outputs and input manifest with your scripts.",
      "expected": "The prepared Download results_bundle…zip link is visible for this run.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-20",
        "icepack-21"
      ]
    },
    {
      "id": "icepack-22",
      "logical_id": "interpret",
      "title": "13. Interpret the saved native field",
      "start": 234.0,
      "end": 250.0,
      "instructions": [
        "Read the native thickness map and its units."
      ],
      "why": "This saved result follows one 0.01-year step on a 10 km square.",
      "expected": "Thickness is 300.023–499.981 m; x and y are metres; 25 vertices and 32 triangles.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-22"
      ]
    },
    {
      "id": "icepack-23",
      "logical_id": "scope",
      "title": "14. Retain the run and try your own case",
      "start": 250.0,
      "end": 264.0,
      "instructions": [
        "Keep the result, input hashes and model versions together."
      ],
      "why": "Start your own scientific case with a bounded compatibility run.",
      "expected": "This synthetic teaching case checks the workflow; it is not a scientific accuracy claim.",
      "note": "",
      "pauseAfter": true,
      "source_scene_ids": [
        "icepack-23"
      ]
    }
  ]
}
