Infra Bootstrap (v2)
Default flow is v2 and requires explicit config.
Old heuristic flow is legacy and is not default.
Trigger Conditions
Use this skill when task is onboarding/preflight of a new Vast.ai GPU server for SDXL.
Input Contract
Pass one JSON file with explicit fields:
server:host,port,ssh_keyremote_dirs: list of directories tomkdir -pdataset:local_path,remote_pathmodel:local_path,remote_pathpython_checks:python_bin,required_imports
Example schema: references/config.example.json
Commands
Validate config only:
cd /Users/glebnikitin/Projects/CodexSkills
./skills/infra-bootstrap/scripts/run validate-config --config ./skills/infra-bootstrap/references/config.example.json
Run end-to-end v2:
cd /Users/glebnikitin/Projects/CodexSkills
./skills/infra-bootstrap/scripts/run setup --config ./skills/infra-bootstrap/references/config.example.json
Legacy flow (not default):
cd /Users/glebnikitin/Projects/CodexSkills
./skills/infra-bootstrap/scripts/run legacy setup --dataset <name> --server <server_name>
Safety and Idempotency
- Safe to run repeatedly.
- Default mode never uses delete sync behavior.
--destructiveis required to enablersync --deletefor dataset sync.- Fail-fast: report includes
failed_stepand error message.
Artifact Source Policy
- Production bootstrap uses ready artifacts from Storage Box / persistent storage only.
- This skill does not include model download from Google Drive as part of standard flow.
- Any Google Drive downloader scripts are legacy/pre-prod fallback tools and must be used outside normal bootstrap runs.
Report Format
setup writes one JSON report (default: ./logs/infra/bootstrap_v2_<timestamp>_<runid>.json):
version,status,started_utc,finished_utcconfig,destructivesteps[]:{step, status, details}- on failure:
failed_step,error
Troubleshooting
validate_config: fix missing paths/fields in config.connect_server: verify SSH host/port/key and network reachability.verify_gpu: ensure NVIDIA runtime is enabled andnvidia-smiworks on remote.validate_python_imports: install missing Python packages in remote environment.