Skip to content

Releases

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 18:39
d784cfa

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_wait and CLI clusterwand wait <id>.... Polls listed jobs or job
    arrays until completion or timeout_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/progress when requested and automatically includes redacted stdout and
    stderr log tails (failure_tails) for failed jobs.
  • New R1 tool files_download and CLI clusterwand download PATH [--out DIR]. Copies
    one regular file (text or binary: PNG, HDF5, CSV...) from the caller's home or scratch
    folder to results_dir/files over 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 /
    .tgz archives in Go before confirmation (refusing symlinks, .. traversal, non-regular
    entries, hidden/credential names, and archive bombs), snapshots the verified archive
    bound by SHA-256 into plan_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 --json paths.
    ParseSacctText and AcctJob now preserve array parent and task IDs (1650_2),
    jobs_list(job_ids=["1650"]) expands all array tasks without truncating to len(job_ids)
    and attaches array_summary rollups ("3 tasks: 1 COMPLETED, 1 FAILED, 1 RUNNING"),
    job_show("1650_2") selects task 2 instead of task 0, and job_explain("1650") surfaces
    failed array tasks automatically. Empty squeue -j responses on --json now fall through
    cleanly to sacct.
  • script_check and site-profile upgrades: optional partition override parameter
    (clusterwand check --partition P), --mem-per-cpu x CPUs overflow check, per-member
    validation across comma-separated fallback partition lists (-p a,b), partition-scoped
    modules (modules.module_partitions), bare apptainer/singularity module check and
    container CUDA hint, and updated sites/ursa-major/site.yaml (arm, tpu, tpuspot,
    tpu6spot, gpu1v1, python-tpu, pytorch-tpu, public_roots, accurate rule_timeout).
  • Path, log, status, and duration ergonomics: relative path normalization (. and
    ./sub, keeping .. strictly denied), site-configurable paths.public_roots with strict
    symlink containment, duration shorthands (24h, 7d, 30m, 2w, now-1hour,
    now-1day), cluster_status optional partition filter, 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-exception warning when an exit-0 COMPLETED job logged a
    Python traceback, requeued warning on RestartCnt > 0 pending jobs, CPU oom-log
    suppressed on CUDA OOM, last 3 log lines quoted on script-error, destructiveHint: true
    on job_submit_confirm, and PYTHONPATH/PYTHONHOME stripped from ssh subprocesses so
    ProxyCommand helpers (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.

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 15:14
2d3e841

Cleanup: ClusterWand's core and spec now describe only what ClusterWand is.

  • Removed dead hosted-mode plumbing from the core. None of it was reachable from the
    CLI or the stdio MCP server: the cross-user shared cache and single-flight
    (SharedCache, Command.public), the per-caller in-flight cap and server-wide
    accounting gate (MaxInFlight, Gate), program clients (Program, ProgramOwnCaps,
    Principal), sealed A1 state (StateSealer) and the remote-service download refusal.
    Every CLI command and MCP tool answers as before: the Ursa Major goldens are unchanged.
  • Fix: tool descriptions follow cost visibility. cluster_status no longer promises
    "$/hour" and partitions no longer promises a price to a caller who cannot see them
    (show_cost: false, a tier outside show_cost_tiers, or a site not charged in
    dollars). Sites can word both variants (tool_cluster_status_nocost,
    tool_partitions_nocost); Ursa Major does. The synthetic SU site's cluster_status
    description changed accordingly (its only golden change).
  • Docs: docs/SPEC.md rewritten as a ClusterWand spec (what it is,
    SSH-only identity, site profiles, Slurm adapter, discover, tool catalog as built,
    safety model, config, testing, roadmap). The inherited ursa-bifrost spec moved unchanged
    to docs/history/URSA_BIFROST_SPEC_v0.10.1.md.
  • Mutation check: 14 guards for removed code dropped, 2 new (v060*).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.6.0. Clients: docs/CLIENTS.md.

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 13:57
c85c37d

Fixes from a fresh-eyes adversarial review of v0.5.0.

  • Fix: job arrays now count against the caps per task. job_submit priced an
    #SBATCH --array job as one task, so a 1000-task array of one-hour jobs was planned at
    1/1000 of its real worst case and passed the per-job and per-day caps; -a was not read
    at all. The worst case (and script_check's estimate) now multiply by the number of
    tasks, a spec that cannot be counted is refused, and heterogeneous jobs
    (#SBATCH hetjob/packjob, whose later components escape the enforced flags) are
    refused.
  • Fix: job_results checks the job folder itself. A job whose working directory was
    hidden or credential-like (~/.config/app, ~/secrets/run), or a symlink leading out of
    the allowed roots or into such a folder, was listed and readable. The folder is now
    resolved on the cluster and checked like files_list paths.
  • Fix: audit_path: "-" writes to stderr, not stdout, where it would corrupt the MCP
    stdio stream.
  • Docs: the mutation-guard count is no longer pinned (it said 148).
  • Mutation check: 10 new guards (v051*).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.5.1. Clients: docs/CLIENTS.md.

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 13:17
faa07f4
  • Live campaign on Ursa Major over plain SSH (docs/LIVE_CAMPAIGN_F4.md):
    every R1, R2 and A1 tool through the CLI and the stdio MCP server, 25 negative cases
    (injected job ids, path escapes, hidden and credential files, bad module/command/user
    names, over-cap submit, bogus and reused confirm tokens), a 10-call parallel burst, one
    real two-step submit on check read back with the tools, and discover run live.
  • Fix: job_results honours the hidden/credential rule. It used to list, read and
    download files such as .gitignore, .git/*, macOS ._* files or id_* keys inside a
    job folder, which files_read refuses. They are now left out (counted in left_out), and
    a whole-folder download skips them.
  • New diagnosis rule build-failure: compiler and linker errors (undefined reference,
    collect2: error: ld returned, file.c:12:3: error:) with build advice. Sample is the
    real log tail of a failed source build on Ursa.
  • Confirm-token errors no longer read "[REDACTED] the action again" in the audit log.
  • Mutation check: 3 new guards (f4*).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.5.0. Clients: docs/CLIENTS.md.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 05:38
d05462e
  • clusterwand discover --site <name> --host <ssh alias>. Read-only probes on the
    login node (sinfo --version, scontrol -o show partition, scontrol -o show nodes,
    scontrol show config filtered to 15 keys, $HOME and scratch folders named after you,
    module -t avail) draft sites/<name>/site.yaml and catalog.json. Both carry
    approved: false and are refused until a person approves them. Roles are inferred from
    facts only (default partition, shortest open partition for env_check, open GPU and
    high-memory partitions, CLOUD nodes, AVX2-only features); prices, fallbacks, wording and
    help stay for a person to fill in. Never overwrites a profile; --force replaces only an
    unapproved draft.
  • Host-key pinning. A profile's host_keys (discover records the keys your own ssh
    already trusts) makes ClusterWand connect with StrictHostKeyChecking=yes against those
    keys alone (own known_hosts file, own control socket).
  • Local catalogs. catalog_file: in your own profile reads a catalog kept next to it
    instead of one on the cluster; a draft ("approved": false) is refused.
  • --record DIR writes anonymised probe fixtures (user, private IPs, account and group
    names, people in node reasons replaced); --compare lists differences from a reviewed
    profile. Recorded Ursa Major probe in testdata/discover/ursa-25.11.
  • Mutation check: 23 new guards (f3*).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.4.0. Clients: docs/CLIENTS.md.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 04:09
08ae5ac
  • Slurm text adapter. Scheduler reads use plain-text formats by default (squeue -O,
    sacct -P with a header, scontrol -o show nodes|partition, sacct -B for stored
    scripts), which read the same on Slurm 21.08 to 25.11. --json (Slurm 25.11's
    data_parser) is opt-in per site: slurm: {json: true} in the site profile. Answers are
    identical either way: on the fixtures (every tool, field by field) and live on Ursa Major.
    Slurm 21.08 works without Restarts/StdOut (a finished job's log path is then unknown,
    never guessed). doctor reports the Slurm release instead of probing sinfo --json.
  • Lab-locked partitions. Partitions limited by AllowAccounts, DenyAccounts or
    AllowGroups are read live with your associations (sacctmgr show user <you> withassoc) and groups. partitions lists only those you may use (restricted_to marks
    limited ones); script_check and job_submit refuse a partition your account may not
    use and name one of your accounts that may (#SBATCH --account=...); interactive_help
    and the stockout advice skip them. Unreadable limits hide or refuse nothing.
  • Tests. Real text recordings from Slurm 25.11.4 (Ursa, anonymized) and 21.08.6
    (container); JSON/text parity tests; the v0.2.0 goldens kept as the JSON-path golden;
    optional slurm workflow runs every text read against containerised Slurm 21.08.
  • Mutation check: 30 new guards (text reads, parsers, lab-lock rules).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.3.0. Clients: docs/CLIENTS.md.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 03:58
65b89c1

Release v0.2.1. See CHANGELOG.md.

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.2.1. Clients: docs/CLIENTS.md.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 01:35
20bd02c
  • Site profiles. Everything ClusterWand knows about a cluster beyond plain Slurm now
    lives in a site profile (internal/site): paths, partition roles and fallbacks, CPU notes,
    catalog location, cloud-node wording, charge model and site wording. Ursa Major's is
    sites/ursa-major/site.yaml (shipped in the binary; site: ursa-major). Your own:
    site_file: ~/.config/clusterwand/mysite.yaml with approved: true. No profile: a generic
    one (home only, no catalog, no charges, no env_check partition).
  • Charge models. usd_per_node_hour (as before), su_per_core_hour (service units per
    core-hour per partition, SU caps per job and per day; refuses submits without caps or to
    an unpriced partition), none (no cost figures; node, hour and submit caps still hold).
  • Upgrade note. The default cluster is no longer ursa-major. Ursa users add
    site: ursa-major (or keep cluster: ursa-major, which selects the profile).
    config init writes site: ursa-major as an example.
  • Tests. Golden tests for every MCP tool, prompt and resource and every CLI renderer:
    byte-identical to v0.1.0 on the Ursa fixtures. A synthetic second site (SU charges, other
    partitions and paths) checks that no Ursa string or dollar figure leaks.
  • Fixed: on a non-dollar site, partition prices, job cost, waste and allocation no longer
    show figures in usd fields.
  • Mutation check: 167 guards (12 repointed to moved code, 19 new for site validation and
    charge models).

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.2.0. Clients: docs/CLIENTS.md.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 22:49
74fb15f

ClusterWand: the Bifrost between AI and your HPC cluster. First release, forked from
ursa-bifrost v0.10.1 (77cb4cd) with full history, then cut down to SSH only. The local
tools (CLI and stdio MCP) behave as in ursa-bifrost v0.10.1; what changed is names,
layout, docs, and the removal of everything hosted.

  • SSH only. ClusterWand runs on your own machine and reaches clusters through your own
    OpenSSH config, keys and agent. Removed, with their tests and mutation guards: the hosted
    server (serve, internal/server: Streamable HTTP, OAuth 2.1, Google sign-in,
    users.yaml, program clients), the IAP/OS Login backend (backend: iap) and the
    ssh.gcloud connect mode, Cloud Storage staging (internal/staging; the tools
    results_link, upload_prepare, uploads_list and job_submit inputs), the ursa-agent
    dashboard, the Cloud Run deploy, prototypes/, the Dockerfile and
    scripts/onboard_lab.py. interactive_help now gives ssh <ssh.host> as the way in.
    Job results still come to your machine with clusterwand results <id> --download over
    the same SSH connection.
  • Renamed. Go module github.com/UCR-Research-Computing/clusterwand; binary
    clusterwand, with a wand alias installed by scripts/get.sh, scripts/install.sh
    and shipped in release archives (clusterwand_<version>_<os>_<arch>.tar.gz).
  • New default paths (upgrade note for ursa-bifrost users). Config
    ~/.config/clusterwand/config.yaml, audit and A1 state under ~/.local/share/clusterwand/,
    downloads in ~/clusterwand-results. Nothing is migrated: copy your old config if you
    want it, and drop any ssh.gcloud block (set ssh.host to an alias instead). Installer
    variables are CLUSTERWAND_VERSION and CLUSTERWAND_DIR.
  • On the cluster. Submitted jobs run in ~/clusterwand-jobs/<stamp>-<name> (config
    jobs_root: clusterwand-jobs), carry the sbatch comment clusterwand:<plan hash>, and the
    env_check job is named clusterwand-env-check. The MCP server name is clusterwand, the
    SSH control socket cw-%C.
  • Docs. New README (60-second fixture demo, laptop + any cluster over SSH, client
    setup for Claude Code, Hermes, Gemini CLI, GitHub Copilot, Codex, OpenCode), new
    docs/SSH.md (keys, agent, ProxyJump, ControlMaster, MFA once per ControlPersist window),
    docs/CLIENTS.md rewritten for stdio, GitHub Pages site published from docs/ by a new
    pages workflow, sites/ursa-major/README.md, SPEC fork and SSH-only notes.
    examples/mcp_client.py is now a stdio client.
  • Repo hygiene. Dependabot for Go modules and GitHub Actions; issue forms ask for the
    Slurm version; CONTRIBUTING adds "nothing site-specific in the core". The CI agent
    check (required by the ruleset) now checks the Python helper scripts.
  • Mutation check: 148 guards (219 minus 71 for removed code), all killed.

Install: download the archive for your platform, or go install github.com/UCR-Research-Computing/clusterwand/cmd/clusterwand@v0.1.0. Clients: docs/CLIENTS.md.