#!/usr/bin/env bash set -euo pipefail SNF_ROOT="$(cd "$(dirname "$0")/.." && pwd)" # Weights/results remain outside the container. Abort on the first failed phase. bash "$SNF_ROOT/packaging/start.sh" doctor bash "$SNF_ROOT/packaging/start.sh" fetch --models all bash "$SNF_ROOT/packaging/start.sh" run --profile smoke --output /outputs/smoke --render-motion --resume SNF_TASKS="${1:-/data/tasks.curated.jsonl}" if [ "$#" -eq 0 ]; then bash "$SNF_ROOT/packaging/start.sh" create-tasks --output "$SNF_TASKS"; fi for SNF_MODEL in meissonic momask showo; do bash "$SNF_ROOT/packaging/start.sh" probe --model "$SNF_MODEL" --tasks "$SNF_TASKS" --output "/outputs/probes/$SNF_MODEL" done bash "$SNF_ROOT/packaging/start.sh" run --profile pilot --tasks "$SNF_TASKS" --output /outputs/pilot --render-motion --resume bash "$SNF_ROOT/packaging/start.sh" run --profile full --tasks "$SNF_TASKS" --output /outputs/full --render-motion --resume bash "$SNF_ROOT/packaging/start.sh" recover --run /outputs/full --tasks "$SNF_TASKS" --output /outputs/recovery-plan bash "$SNF_ROOT/packaging/start.sh" run --jobs /outputs/recovery-plan/jobs.jsonl --tasks "$SNF_TASKS" --output /outputs/recovery-test --render-motion --resume bash "$SNF_ROOT/packaging/start.sh" evaluate --run /outputs/full if [ -n "${SNF_CALIBRATION_TARGETS:-}" ]; then bash "$SNF_ROOT/packaging/start.sh" calibrate --run /outputs/full --tasks "$SNF_TASKS" --targets="$SNF_CALIBRATION_TARGETS" --output /outputs/calibration-plan bash "$SNF_ROOT/packaging/start.sh" run --jobs /outputs/calibration-plan/jobs.jsonl --tasks "$SNF_TASKS" --output /outputs/calibration-test --render-motion --resume fi