Repository navigation
Operational parity with ursa-bifrost v0.10.5–v0.10.12 plus native SSH file staging and
download for any Slurm cluster.
- New R1 tool
job_waitand CLIclusterwand wait <id>.... Polls listed jobs or job
arrays until completion ortimeout_s(default 120 s, safely below 180 s MCP client
timeouts; reserves 10 s before any caller deadline so timeouts return structured
{timed_out: true, hint: ...}instead of dropping the call). Streams MCP
notifications/progresswhen requested and automatically includes redacted stdout and
stderr log tails (failure_tails) for failed jobs. - New R1 tool
files_downloadand CLIclusterwand download PATH [--out DIR]. Copies
one regular file (text or binary: PNG, HDF5, CSV...) from the caller's home or scratch
folder toresults_dir/filesover the shared SSH connection, refusing hidden/credential
files, symlinks escaping user roots, and shared public roots. - Local-SSH input staging in
job_submit(inputs,unpack_archives) and CLI
clusterwand submit --input LOCAL[:REMOTE] --unpack. Validates local regular files or
inline text/base64 at prepare time (zero cluster writes), unpacks and checks.tar.gz/
.tgzarchives in Go before confirmation (refusing symlinks,..traversal, non-regular
entries, hidden/credential names, and archive bombs), snapshots the verified archive
bound by SHA-256 intoplan_hash, and streams it into~/clusterwand-jobs/<run>/inputs/
over SSH at confirm time. - Slurm job-array rollups and task selection on both plain-text and
--jsonpaths.
ParseSacctTextandAcctJobnow preserve array parent and task IDs (1650_2),
jobs_list(job_ids=["1650"])expands all array tasks without truncating tolen(job_ids)
and attachesarray_summaryrollups ("3 tasks: 1 COMPLETED, 1 FAILED, 1 RUNNING"),
job_show("1650_2")selects task 2 instead of task 0, andjob_explain("1650")surfaces
failed array tasks automatically. Emptysqueue -jresponses on--jsonnow fall through
cleanly tosacct. script_checkand site-profile upgrades: optionalpartitionoverride parameter
(clusterwand check --partition P),--mem-per-cpux CPUs overflow check, per-member
validation across comma-separated fallback partition lists (-p a,b), partition-scoped
modules (modules.module_partitions), bareapptainer/singularitymodule check and
container CUDA hint, and updatedsites/ursa-major/site.yaml(arm,tpu,tpuspot,
tpu6spot,gpu1v1,python-tpu,pytorch-tpu,public_roots, accuraterule_timeout).- Path, log, status, and duration ergonomics: relative path normalization (
.and
./sub, keeping..strictly denied), site-configurablepaths.public_rootswith strict
symlink containment, duration shorthands (24h,7d,30m,2w,now-1hour,
now-1day),cluster_statusoptionalpartitionfilter, graceful empty-log answers when
a running job has not created its log file yet, and GPU/TPU-aware stockout fallback advice. - Diagnosis rules, MCP annotations, and SSH hygiene:
"untrusted log line: "prefix on
quoted log evidence,swallowed-exceptionwarning when an exit-0COMPLETEDjob logged a
Python traceback,requeuedwarning onRestartCnt > 0pending jobs, CPUoom-log
suppressed on CUDA OOM, last 3 log lines quoted onscript-error,destructiveHint: true
onjob_submit_confirm, andPYTHONPATH/PYTHONHOMEstripped fromsshsubprocesses so
ProxyCommandhelpers (gcloud, Python wrappers) never crash on leaked caller Python envs. - Mutation check: 10 new guards (
v070*).
Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.7.0. Clients: docs/CLIENTS.md.