Skip to content

Changelog

All notable changes to this project are documented here. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.21.0 - 2026-11-29

Added

  • mushin.show now ends its table with the latest run's progress, such as run 3f2a9c1e, started 2026-11-29 10:02 UTC: 12 of 24 cells done (11 completed, 1 failed), 2 running, 10 not started; not finished, and returns it as .progress (completed, failed, skipped, running, queued, cells, finished and more). It counts only the cells of the run the sweep's multirun.yaml names, so an earlier run's completed rows in a reused working_dir no longer make a rerun look further along, and finished says whether that run has written its mushin_sweep_manifest.json, which a run that raised or was killed has not. A finished run's counts are its manifest's verdicts, so a cell whose job died before recording anything is counted too. The manifest now records the run that wrote it (run_id). The agent guide tells a finished sweep by it: its earlier recipe, counting completed rows or finding a manifest, could call a rerun done before it was. (#434)

Fixed

  • A sweep over the string "???" (multirun(["???", ...])) is now refused before launch, a dry run included, with a ValueError naming the key. OmegaConf reads "???" as a missing value wherever a config holds it, so the cell ran with the key unset, and the run raised a KeyError ("swept override ... not found in the job config") once its cells had been launched. (#435)

Misc

  • 418, #424, #425, #426, #427, #428, #429, #431, #432

0.20.0 - 2026-11-14

Added

  • pip install "mushin-py[slurm]" installs hydra-submitit-launcher (1.2.0 or later, the first release that takes account), the Hydra plugin behind launcher="submitit_slurm". The docs and examples now install it that way, and the error for a missing submitit launcher now names the extra. (#349)
  • mushin.slurm(gpus=, cpus=, mem_gb=, timeout_min=, partition=, account=, qos=, setup=) builds the launcher_config of a sweep whose cells each run as one SLURM job of one task, for launcher="submitit_slurm", without importing Lightning; mushin.submitit_slurm_config stays the helper for DDP cells, which run a task per GPU. Other fields of the plugin's SLURM config pass through as given. Where scontrol answers, it refuses a named partition that does not exist, or a time limit past the partition's, before anything is submitted, naming the partitions that fit (check=False skips it). It judges the partition, time and QoS sbatch will use, so an SBATCH_PARTITION, SBATCH_TIMELIMIT or SBATCH_QOS in the environment counts (and warns when it overrides an argument); it never picks a partition, and leaves GPUs and accounts to SLURM. (#356)
  • Each job's .hydra/hydra.yaml now names the run() that launched it (hydra.job.mushin_run_id), as the cell's status record does (run_id). The override that sets it is also listed in hydra.overrides.hydra and in the sweep's multirun.yaml, so two otherwise identical runs now differ there. When mushin's submitit launchers record a job that died before Hydra made its dir, over no record or an unfinished one, the snapshot they write names this run too, instead of an earlier run's left in a reused dir. (#361)
  • A new guide, Running a sweep on SLURM, covers an ordinary sweep on a cluster without an sbatch script of your own: installing the slurm extra, describing each cell's job with mushin.slurm, submitting from a login node and keeping the driver running, what the jobs need (a shared filesystem), where each cell's directory and job logs are, watching, failed cells, resuming and cancelling. The packing guide gains a section on running a sweep inside one SLURM allocation, and the agent guide routes "run each cell as a SLURM job" to the new guide. (#367)
  • run() now warns, before submitting anything, when max_total_seconds will be disabled because launcher_config gives each cell several tasks (tasks_per_node or nodes above 1). Each task already warned, but only in its job's log. (#380)
  • A cell run by a submitit launcher names its job in mushin_cell_status.json: a submitit entry holds the job's id, its log folder (each task's <id>_<task>_log.out and .err), the node it ran on and, on SLURM, its partition. A job that died before its code started names only its id and logs, and a cell a resume reused keeps the entry of the job that computed it (#345). (#402)
  • mushin.show lists a cell whose submitit job is submitted but has not started as queued, and show(jobs=True) adds each cell's job id, host and log folder (job, host, logs). The launcher names each submission's jobs in a file under <working_dir>/mushin_jobs/ and removes it once it has waited on them. During a resume, a cell sent to a job again is queued in place of its earlier record until that job starts; best(over=) counts queued cells as unfinished (#345). (#403)
  • mushin.cancel(working_dir, dry_run=False) cancels a SLURM sweep's jobs that are still queued or running, from a login node, with the driver running or not, and returns their ids. It reads the submissions the driver recorded under <working_dir>/mushin_jobs/, asks scontrol about each job array, and runs scancel once. A job is cancelled only when its script or logs lie under the sweep's submitit folder, so a job id SLURM has since given another job is left alone, with a warning. When scontrol cannot be read for a job, nothing is cancelled and the error names the scancel command to run by hand. submitit_local jobs, and jobs sent to another cluster with --clusters, are skipped with a warning (#345). (#405)
  • On launcher="submitit_slurm" or "submitit_local", launcher_config={"cells_per_job": k} (or mushin.slurm(..., cells_per_job=k)) runs up to k of a sweep's cells in each job, one after another in one Python process, so a sweep of many short cells costs fewer jobs and stays under the cluster's job-array and queue limits. Cells are grouped in submission order, after a resume, sample= or cache_dir has set aside the cells that need no job. Each cell keeps its own directory, record, metrics file and .hydra/ snapshot, a cell that raises does not stop its job, and a requeued job skips the cells it finished. timeout_min is the whole job's limit. When a job ends without returning, the cells it finished keep their results when their records hold them, and the cell it was running and those it had not reached fail, each with the job's error; a resume runs them again. mushin.show lists the cells a running job has not reached as queued, with its job id. Several tasks per job (tasks_per_node or nodes above 1) and a plain Hydra task function are refused before anything is submitted, and run() refuses a cells_per_job key in launcher_config for any other launcher. mushin's launcher config is the plugin's plus this one field, which defaults to 1, one cell per job, as before. (#412)
  • run(..., wait=False) on launcher="submitit_slurm" or "submitit_local" submits the sweep's jobs and returns at once, a dict of the working_dir, the run's id, the number of cells submitted and the job ids, so the driver no longer has to stay alive in tmux or an sbatch job while they queue and run. Once they have ended, the new mushin.collect(working_dir) (or the workflow's collect()) finishes the run as a waiting run() would have, from any Python session: a cell whose job ended without a result is recorded failed, the manifest is written, and the dataset is returned. It raises, writing nothing, while any job is queued or running. wait=False needs a working_dir and Hydra's basic sweeper. A run() into the working_dir of a run submitted this way is refused until the run is collected or its jobs have ended, and, where those jobs cannot be checked, raises a RuntimeError instead of only warning. Breaking for a sweep whose task, pre_task or config has its own wait: run(wait=...) used to pass the value to the task, and now raises a ValueError for such a sweep, whatever the value. Pass it as an override instead: run(overrides=["++wait=5"], ...) in place of run(wait=5, ...). (#414)

Changed

  • On launcher="submitit_slurm" or "submitit_local", a resume now submits jobs only for the cells it must compute, sample= only for the cells it keeps, and a cache_dir hit no job at all: the driver settles the others before anything is queued, recording each as its job would have. A resume that fills 3 cells of 1,000 queues 3 jobs, not 1,000. A cell the driver cannot judge as its job would (a config it cannot resolve, or one that reads ${oc.env:...}, whose environment the job's may not match) is still submitted, and its job decides as before; so is every cell of a sweep with Hydra callbacks, which run in each job. (#359)
  • A cell's checkpoint (mushin_resume.last_ckpt) is handed only to an attempt under the config and task code that wrote it. A re-run whose config or task code changed (same swept values, another fixed value) was handed the previous run's checkpoint (for a completed cell, right after mushin warned that it re-ran the cell for that change); with Lightning, restoring a finished run's last.ckpt skips training, so the old weights' metrics were recorded for the new config (#391). Such a cell now trains from scratch, with is_resume still True. To continue from the old checkpoint on purpose (a raised max_epochs), load it from mushin_resume.dir yourself. A config holding a resolver whose value changes from run to run (${now:...}) changes the fingerprint each run, so its cells are not handed a checkpoint across runs; a requeued attempt of the same run still is. (#399)
  • run() now refuses a working_dir whose earlier jobs, submitted by launcher="submitit_slurm" or "submitit_local", may still be queued or running, whatever launcher the new run uses, where it went ahead before: a resume started while a killed driver's jobs still ran submitted their cells again, and two jobs then wrote one cell. It raises a ValueError naming the submission's file under mushin_jobs/ for a job SLURM lists as not ended (pending, running, or preempted, which SLURM may requeue), or a local job whose process runs; wait for the jobs to end, or cancel them (mushin.cancel), then run again. It raises a RuntimeError when scontrol is found but gives no answer it can read, and for jobs sent to another cluster (--clusters), which plain scontrol does not see. Where the jobs cannot be checked (no scontrol, or submitit_local jobs of another machine), it warns and goes ahead. A run that goes ahead removes the files of the submissions it found over. mushin.show and mushin.cancel now also count a submitit_local job whose process has exited but was not reaped (a zombie) as ended. (#410)

Fixed

  • On launcher="submitit_slurm" or "submitit_local", a job that ends without returning (killed out of memory, on a failed node, by scancel, or at a time limit that ends the process before Python can act, or stopped by an error outside the task, such as failing to import it) no longer aborts a sweep run with on_error="nan". Its cell is NaN and recorded as failed, as the multinode guide says, and the cell's mushin_error.txt names the job's log. Under the default on_error="raise" the error is raised once the jobs launched with it have ended, rather than at the first such job while the others go on unobserved. launcher="submitit_slurm" and "submitit_local" (or the same hydra/launcher= override) now run on mushin's subclass of the plugin's launcher, so a cell's .hydra/hydra.yaml names mushin_submitit_slurm (or mushin_submitit_local). (#350)
  • A fixed value holding an interpolation that cannot be resolved once the sweep's jobs have run, such as out="${hydra:runtime.output_dir}", no longer makes run() raise after every cell has completed, nor makes a reload of the directory or target_dir_multirun_overrides raise: mushin reads that value unresolved instead. An interpolation the driver can resolve, such as "${base_lr}", reads as its value in multirun_task_overrides and the dataset, as before; target_dir_multirun_overrides, which reads each earlier job's overrides without that job's config, reads it unresolved where it raised before. (#352)
  • On launcher="submitit_slurm" or "submitit_local", a job of one task that ends without returning after its cell has completed (its result reached the driver too late, say) can now keep the cell's result rather than become a failed cell. A cell's mushin_cell_status.json now records the run that wrote it and its job (run_id, job_id), and, for a completed cell, a digest of the metrics file it wrote when that file holds the result whole (metrics), which is how mushin tells the job's own completed record from one an earlier run left. (#354)
  • On Windows, writing a cell's status or metrics file no longer fails the cell while another process is reading the file, such as mushin.show on a running sweep: mushin retries for up to about two seconds. Removing a cell's earlier metrics file (when it is skipped, fails, or its job dies) waits the same way, where it used to leave the old metrics beside the new record, for show, best and export to list. A process that holds a file longer (a sync client, an antivirus scan) still fails the write. (#358)
  • A second sweep into the same working_dir no longer leaves an earlier sweep's mushin_metrics.json in a cell whose task returns no metrics: the cell's first record in a run removes a file another run left (in a job of several tasks, a task that starts after another finished keeps what that one wrote). Reloading such a cell gives it NaN, as the run does (#364), instead of the earlier sweep's value. (#360)
  • A reload (load_from_dir) no longer takes an earlier sweep's record and metrics for a cell whose job died after Hydra wrote its .hydra/ snapshot and before the cell recorded anything, in a directory a later sweep reused: a record older than that snapshot, from another run than the one the snapshot names, is not the cell's. The cell is NaN and counts as not run, or failed when its own run's manifest says so. A sweep copied without its files' times keeps every result. One case now reloads as not run where it showed a valid result: a resume interrupted in a cell between Hydra's snapshot and the cell's record, until the next resume reuses it. (#362)
  • mushin.show, mushin.best, mushin.diff and the CSV export no longer list an earlier sweep's record and metrics for a cell whose job died after Hydra wrote its .hydra/ snapshot (in the default .hydra folder) and before the cell recorded anything, in a directory a later sweep reused: they leave that cell out, where load_from_dir counts it as not run, or failed when its own run's manifest says so. As for the reload, a resume interrupted in a cell between Hydra's snapshot and the cell's record leaves that cell out until the next resume reuses it. (#363)
  • A max_total_seconds budget is now disabled for a cell run as one task of a job of several on submitit_local (tasks_per_node > 1), as it already was on SLURM and under torchrun: those tasks set only submitit's own variables, so a late task could find the deadline passed, record the cell skipped and remove the metrics the first task wrote, while the run reported that task's result. A warning filter that turns the disable warning into an error no longer fails the cell. (#372)
  • A reload (load_from_dir) no longer raises FileNotFoundError for a completed cell whose task returned None: from this version on, the cell's record says it wrote no mushin_metrics.json, so the reload gives it NaN, as the run does. A cell recorded by an earlier version still raises, now with a note to re-run it, and so do a lost metrics file and a missing file of your own. (#374)
  • A cell that SLURM requeued after the max_total_seconds deadline, having recorded itself completed before it was preempted, now runs again instead of being recorded skipped and losing its metrics file: a cell this run already recorded as finished started under its budget, as a running one did. (#375)
  • seed_everything_per_rank now gives each task of a submitit_local job of several (tasks_per_node > 1) its own rank, read from SUBMITIT_LOCAL_GLOBALID, where every task got rank 0, and so the same seed, unless it exported RANK itself. (#376)
  • The resilience guide's Lightning recipe for a cell that resumes its own training now writes the checkpoint where mushin_resume.last_ckpt looks: ModelCheckpoint(dirpath=mushin_resume.dir, save_last=True). The recipe it gave (default_root_dir with ModelCheckpoint(save_last=True)) saved it under lightning_logs/, so last_ckpt was always None and the cell never resumed. The guide also no longer says a cell is never handed another cell's checkpoint: a sweep over another grid in the same working_dir can do that, so run it in a new one. (#381)
  • A cell swept over a non-finite value (inf, -inf, NaN) is now recorded so it reads back as that value: mushin.show, best, diff and the CSV export list the finished cell (show dropped it once its sweep finished), its resume finds its own checkpoint, a resume after the sweep's manifest was lost reuses it, and mushin's submitit launchers keep its result when its job's return is lost. When a cell is matched with its record, a swept NaN is no longer taken for a swept None (both were stored as null), nor True for 1. A record written by an earlier version keeps a NaN as null, which reads back as None. (#382)
  • A swept value written as an interpolation is now keyed by what the sweep's cells resolved it to, not resolved again when the sweep is read back: the value they agree on (so ${base_lr} keys as 0.01, as before), else the interpolation's text. A cell whose value resolves differently later (${now:...}, a counter) is no longer NaN, an interpolation of another swept value (${model_name}_x) and a swept ${hydra:...} no longer stop run() and a reload, and a reload keys the cells as the run did. (#386)
  • A task that returns a Mapping other than a dict (a UserDict, a MappingProxyType, an OmegaConf DictConfig) now writes its metrics file as a dict does, so a reload, show/best and a launcher that lost the job's return read its values. A reload raised FileNotFoundError for it, and a nested Mapping value was written as its text. (#387)
  • A resume now reuses a completed cell whose task returned None, as it reuses one that wrote metrics, instead of running it again: its record says it completed with no metrics (#364). A cell recorded by an earlier version, whose record cannot say so, still runs again. (#388)
  • In a job of several tasks (tasks_per_node > 1, or several nodes), a cell now fails when any of its tasks raises, under on_error="nan" as under "raise". The run took the first task's result even when another task had raised, and the cell's record was whichever task wrote last, so a reload could call the cell failed while the run had its value, or completed (with another task's metrics) while the run had failed it. A completed record such a job leaves is now recorded failed when mushin collects the job, with its metrics file and its cache_dir entry removed. (#389)
  • A cell that runs in a directory another cell used (a sweep over another grid in the same working_dir) is no longer handed that cell's checkpoint as mushin_resume.last_ckpt: when its record replaces the other cell's, it marks the checkpoints there (their names, and the newest time among them), and a checkpoint so marked and no newer is never handed to it, on a resume, a plain re-run of a completed cell, or a sample= fill-in, where it had resumed from the other cell's weights. Nothing is moved or deleted. A directory taken over by an earlier version, and a checkpoint in a subfolder, are not covered. (#390)
  • A fixed value written as an interpolation (stamp="${now:%Y}") now reads as the value the sweep's jobs resolved when they agree (the run's year), and as its text when they differ (${now:...} to the microsecond, a job's own ${hydra:...}), instead of as the reader resolves it at the time; a config-group option chosen through an interpolation reads as the option's name. The run saves that value in its manifest, so every reload of it reads the same, except when the run's config reads the environment (${oc.env:...}, directly or through another key): such a value is never written to disk, and a reload reads it again, as before. A task run without a wrapper (task_fn_wrapper=None), which may change its config, keeps the reader's reading. (#392)
  • mushin's submitit launchers now keep the result a job recorded before it died even when the cell's swept value resolves differently each time it is read (${now:...}, a custom counter): the driver tells the job's own record by this run and the job's id as well as by the cell's values, which it resolves again and so did not match. Such a cell failed, though its result was on disk. (#393)
  • A cell's mushin_provenance.json records its config as written: an interpolation such as ${oc.env:DB_URL} is kept as its text. hydra-zen's zen, the default task wrapper, resolves a job's config in place before the task runs, and the record was taken after that, so every value an interpolation read, an environment variable included, was written to disk whatever its key's name (#383). Records written by earlier versions may hold such values: the mushin_provenance.json in each cell's directory, and the provenance attribute of a dataset built by to_xarray (and of a netCDF file saved from it). Check or delete them before sharing a sweep. A config holding a value json cannot write now gets a record (an Enum by its name, a Path as its text); it got none. The MCP get_config docs now say what it serves, the config as written. (#398)
  • A resume that reuses a completed cell keeps the config and task-code fingerprints its metrics were computed under. A resume whose config could not be resolved (an ${oc.env:...} variable unset, say) has no fingerprint, so it reused the cell and rewrote its record without one; a later resume under another config then had nothing to compare and reused the old result for it, with no warning (#396). (#400)
  • The workflows guide says how a string holding ${...} passed to run() reaches the task: a backslash right before the ${ arrives as a backslash (a Windows path), so an escaped \${...} cannot be passed that way, and the default zen wrapper resolves the config before the task, so a task may not receive the text ${...} even from the config (#397). (#401)
  • On launcher="submitit_slurm" or "submitit_local", a cell whose job ended without a result after its task had finished (a job of several tasks one of which died, or a result submitit could not save) is now recorded failed, as the run reports it, so a resume runs it again: before, its record stayed completed, and a resume reused the value the run had failed, as did a reload (load_from_dir), mushin.show and a later run with the same cache_dir. Its metrics file and its cache_dir entry are now removed. When a cell's job died before the cell started, in a working_dir an earlier run had used, a reload returned that run's result for the cell; with on_error="nan" it now reports the cell failed, as the run did, show leaves the cell out, and a resume can still reuse the earlier result. (#408)
  • The MCP server's get_metrics serves a run directory's mushin_metrics.json only when the directory's record says its run completed, and is the run its .hydra/ snapshot names. It paired each directory's config with whatever metrics file was there, so a cell whose job had failed, was still running, or died before its first record in a reused working_dir was served an earlier run's metrics as its own (#407). A directory with no record (a plain Hydra run) is served as before. (#409)
  • On launcher="submitit_slurm" or "submitit_local", a cell whose job ended without a result no longer takes as its own a record of the same run and job that names another cell's job number, and mushin.show no longer takes such a record as a sign that the cell's job started. This matters where cells share a job id, as the cells of one job that runs several in turn do: the cell took the other cell's result, and show listed no row for the cells the job had not reached. A record with no job number is still judged by its job id alone. (#411)

Misc

  • 343, #379, #385, #416

0.19.0 - 2026-11-10

Changed

  • A swept string that would not reach the task as written is now refused before launch, a dry run included, with a ValueError naming each such value and how it would arrive. multirun sweeps through Hydra's choice(), which writes each job's value without its quotes. So multirun(["true", "false"]) reached the task as True and False (its cells NaN in the dataset), "null" as None, and "1", "1.5" or "1e3" as a number. A string Hydra cannot write unquoted, such as "it's", one holding # or ~, or a non-ASCII one, failed inside the launch. The check covers any value written as a string, such as a NumPy string, a Path or a Decimal. A field the composed config types str (a defaults-list group's config included) turns some values back ("1" arrives as "1"), and those still run; to_dictconfig=True drops those types. A config group's option named like a number would fail in its job and is refused too. A field under a config group the sweep also sweeps is not checked, since each job's option types it. A job directory target_job_dirs= cannot write is refused with its own message. A sweep under a sweeper other than Hydra's basic one is not checked. Every sweep the check does not refuse runs exactly as before, each job's override unchanged.

Migration: a sweep such as multirun(["1", "2"]) into an untyped key, which handed the task ints, now raises. Pass the values as the type the task used (multirun([1, 2])), or sweep the strings through a raw comma sweep, whose values keep their quotes, in place of the multirun argument. The error names that override, such as overrides=["+c='1','2'"]. A one-value sweep has no such form: pass the value fixed (c="1"). (#341)

Fixed

  • A driver script's code record now counts the names in a string that a type-hint reader resolves in a type alias an annotation names, where the alias is written as a type expression: Alias = list["T"] or typing.Optional["T"] with def task(x: Alias), through other aliases too, one declared Alias: TypeAlias = "T" or a type statement, and a functional NamedTuple's, TypedDict's or make_dataclass's field types, a TypeVar's bound or constraints, a NewType's supertype and ForwardRef("T"). Editing such a name (T = int to T = str) reused the completed cells on resume=True or cache_dir=, though typing.get_type_hints and pydantic see the new value. In an alias, a string that is no type (a dict key, a lookup, a field's name, an Enum member) is not counted, so extending a grid named like one is not an edit. A script whose counted code has such an alias recomputes once after upgrading. (#334)
  • In a notebook, resume=True and cache_dir= now compare a function or class defined in a cell that an annotation of the reached code names: a parameter's, a return's, a class attribute's (a dataclass field's) or a type parameter's, in a string too (def task(x: Helper), x: "Helper", list["Helper"]), and what such a definition reaches in turn. Before, editing such a class and resuming reused the completed cells, though typing.get_type_hints, pydantic and hydra-zen's builds(..., populate_full_signature=True) read it. On Python 3.13 and earlier, an annotation that is not a string holds the class its name meant when its cell ran: after editing such a class, re-run the cell that annotates with it too. A class an annotation reaches only through a type alias (Opt = Optional[Helper]) is not compared. A resume keeps the record a reused cell was written with, so a sweep started on 0.18.2 or earlier does not compare such a definition for its completed cells: after editing one, use a new working_dir. A notebook task whose record gains such an entry misses cache_dir once after upgrading. (#335)
  • A driver script's code record now reads a function defined with def in a top-level if, try, with, loop or match block as it reads a top-level one: its parameters, its locals and a generic function's own type parameters (and a type statement's) no longer count as reads of the script's names. Before, a grid named like such a function's parameter (lr = [0.1, 0.01] beside if HAS_GPU: def helper(lr): ...) made extending it an edit on resume=True or cache_dir=. The main block's own statements are still read as top-level ones. A class in a block, and a function there that holds a class, is still read whole, since a class body can read a script name it binds; a lambda's parameters and a comprehension's variables still count, at the top level as in a block. A script whose record counted a statement only through such a name recomputes once after upgrading. (#337)
  • A driver script's code record now counts a script name that a class body reads before binding it, since Python reads the script's value until a binding in the class body runs. This covers lr = lr, lr += [3], for lr in lr:, a read before lr = ..., a read after a binding inside an if, and a method's default or a decorator argument before the binding. It also covers any read of a name the class body can unbind (a del of it anywhere in the body, or an except ... as lr handler, outside that handler) and a comprehension's read of a class name, since a comprehension never sees the class's names. Before, editing such a name (lr = 0.1 to lr = 0.2) reused the completed cells on resume=True or cache_dir= for a class at the top level, in the main block or in a function. That included a comprehension's read on Python 3.12 and later, which inlines comprehensions, and += in a class anywhere. A class in a top-level block was already read whole. A read after a binding that runs only in some branches (a try that binds the name in each) or after a walrus also counts, as does any read of a name a del at the end of the class body removes, which may recompute once too often. A script whose class body reads such a name recomputes once after upgrading. (#338)
  • On Python 3.14 and later, a task whose annotations name an import made only for type checking now runs. That covers if TYPE_CHECKING: from decimal import Decimal then def task(a: int, h: Decimal = None), and a submodule imported that way (h: pkg.sub.T). Before, .run() raised NameError or AttributeError, because mushin, and hydra-zen's zen through it, read the task's signature by evaluating its annotations. When evaluating them fails, mushin now reads the signature with each annotation kept as its text. That applies to the task, pre_task, validate(), and a metric passed to compare_llms. As a result, a misspelled name in such an annotation is no longer caught at .run(); Python 3.14 already stopped catching it at the definition. A name the task's body also uses still fails, in the cell that runs it. A parallel launcher (launcher="joblib", submitit) sends a task defined in a script or a notebook with its annotations evaluated, so such a task cannot run under one. .run() now says so before anything launches; define the task in an importable module, add from __future__ import annotations to its file, or run it without a parallel launcher. hydra-zen's own builds(task, populate_full_signature=True) in your code still evaluates the annotations. validate() now also leaves out a task's mushin_resume parameter, as .run() does. (#339)
  • A hydra_list value now reaches the task as written. A backslash is no longer doubled (hydra_list(["a\\b"]) arrived as ['a\\\\b']), and None arrives as None, not the string 'None'. A nested tuple, dict or range, and a NumPy array (as nested lists, in a multirun too), now reach the task where they used to fail to parse. A nested hydra_list, multirun or OmegaConf ListConfig still arrives as a list, a ListConfig's interpolation (${a}) written unresolved, for the job. An element of another type, such as a set, reaches the task as its text, as a swept value of that type does.

A dict key that would not reach the task as itself is now refused before launch with a ValueError naming it. That covers a string key that reads as another type ("1" arrived as 1), one holding = or : or a leading or trailing space, and a None key, which OmegaConf does not take. Hydra has no quoted dict keys, so use a key Hydra writes as itself, or build the dict in the task. A key mixing str into an Enum is written as its value, and a NumPy NaN key is kept.

HydraDDP now quotes a re-launched rank's run directory and job name as Hydra's own writer does. A " in the run directory, or = or , in job_name=, used to break every child rank.

Not changed: in a string holding ${, a backslash that is neither right before the ${ nor inside the interpolation may still arrive doubled; write such a path with /, or put the value in the config. (#340)

0.18.2 - 2026-11-09

Fixed

  • A driver script's code record now counts the names its annotations read as text. A module-level name that only a string annotation named (def task(x: "Config"), list["T"]), or under from __future__ import annotations only a method's, a nested function's or a class body's annotation, was not compared. Editing it (T = int to T = str, or the import a type comes from) then reused the completed cells on resume=True or cache_dir=, though whatever reads the type hints (hydra-zen's builds(..., populate_full_signature=True), a dataclass config's field types) sees the new value. A string inside Literal[...], or in Annotated[...] after its type, is a value and still names nothing. A script whose counted code has such an annotation recomputes once after upgrading. On Python 3.14+, @mushin.sweep also no longer raises when the task's annotation names a class defined below it, as plain Python allows (#326). (#328)

0.18.1 - 2026-11-08

Fixed

  • mushin.show and mushin.export.table no longer lose the values of a swept parameter named status: the cell status overwrote them, and the column appeared twice. The parameter is now the column status (param), as a metric that clashes is already <name> (metric); status is always the cell status. Likewise mushin.diff keeps a swept parameter named deltas, as deltas (param) in its rows and table. (#317)
  • A sweep over lists or dicts of strings (a=multirun([["x"], ["yy"]])), or a raw comma sweep of quoted strings (overrides=["+a='x','yy'"]), no longer gives an all-NaN dataset: Hydra kept those strings quoted, so no cell matched its grid coordinate. The coordinates and the dry-run preview now show the plain values. Sweep values that would share a cell are now refused as duplicates, as two equal values already were: two spellings of one string ('x',"x"), or a string and a number of one text. multirun(["1", 1]), for one, ran before with one cell's result overwriting the other's. (#318)
  • A backslash in a string passed to run, swept or fixed ("C:\data", multirun(["a\\b", "c"])), no longer reaches the task doubled: mushin escaped every backslash, but Hydra unescapes only one that precedes a quote. A string holding an interpolation (${...}), which OmegaConf parses with escapes of its own, is written as before. A glob sweep's error now says glob(...) is not supported and names the parameter without its +. (#320)
  • On Python 3.12+, a top-level generic definition in a driver script (def task[T](x: T), class task[T](Base[T]), type Vec[T] = list[T]) no longer counts its own type parameter as a read of a module-level name of the same name. Editing such a binding (a leftover T = TypeVar("T")) recomputed every cell on resume=True or cache_dir=, though the task never read it. A script with such a binding recomputes once after upgrading. (#322)

Misc

  • 312, #313, #314, #316

0.18.0 - 2026-11-07

Changed

  • Study.from_checkpoints now builds the study through the constructor, so a Study subclass's __init__ runs, receiving methods=None and seeds=None. (#305)
  • A test= or correction= that is not a string (such as a list) is now reported as an unknown name with ValueError by every compare function, where compare_methods raised TypeError. (#305)

Fixed

  • Taking the project-code record (each cell's status record, and the one resume=True and cache_dir= compare) no longer imports a module loaded through importlib.util.LazyLoader (as lazy_loader.load does). In a notebook it imported each such module a notebook name held, even one the task does not use, and in a script one the task imports or a functools.partial binds; an error from that import was hidden, and the module was left half loaded, so the user's next read of it raised an AttributeError instead of the error. The record now reads these modules without running them and records the same files. Provenance no longer imports a lazily loaded torch that the task did not use. Hydra's launch can still import such a module, so one that fails to import can now make a notebook's run() raise its error, as a script's already could: import such a module yourself before run(). (#304)

Removed

  • mushin.BaseWorkflow and mushin.RobustnessCurve, deprecated since 0.4.0, are removed from the top level. Import them from mushin.workflows: from mushin.workflows import BaseWorkflow, RobustnessCurve. (#309)
  • run() no longer reads a workflow's legacy evaluation_task method for its pre-launch checks (parameter names, required parameters). Each cell always ran task, so a workflow that defined only evaluation_task never ran; define task instead. (#307)

Misc

  • 302, #310

0.17.2 - 2026-11-07

Fixed

  • For a task defined in a notebook, resume=True and cache_dir= now notice an edit to a function or lambda defined below a line holding a form feed, a vertical tab, U+2028 or another character that ends a line for Python's str.splitlines but not for compile. Before, such an edit was missed and a resume reused cells computed with the old code. mushin now reads such a cell as Python compiled it, from the shell's input history or from the cells it saw run after import mushin, and reads the project modules such a cell imports and the classes it states the same way. A cell that neither holds (such as one %run runs from a notebook or an .ipy file, a silent one, or one a magic ran inside another cell before import mushin) may still not be compared. A function in a kept cell whose definition is not found where its code says, in such a cell or any other (one an earlier version of a cell defined, once the cell has run again under the same name), now re-runs its cells instead of keeping one fixed digest that missed every edit to it. After upgrading, a resume can re-run the cells once for a task that reaches a function or class defined below such a character. (#299)

0.17.1 - 2026-11-06

Fixed

  • In a notebook, resume=True and cache_dir= now compare a project submodule the task reaches through its package (a cell's import pkg.sub, then pkg.sub.X in the task, a helper, a class's bases, a function's decorator or a default), and the project modules a notebook function imports inside its body. Before, editing pkg/sub.py and resuming reused the completed cells. A resume keeps the record a reused cell was written with, so a sweep started on 0.17.0 still does not compare such a submodule: after editing one, use a new working_dir. A notebook task whose record gains such a file misses cache_dir once after upgrading. (#291)
  • In a notebook, resume=True and cache_dir= now also compare a project submodule the task reaches through an alias of its package (m = pkg, s = pkg.sub, a parameter defaulting to pkg), through the import of a function a class or a decorator is made in, or through a class-body import a method's default names. (#293)
  • For a task defined in a notebook, resume=True and cache_dir= now compare every project module a cell imports, whether or not the task names it, as from pkg import sub already did. A submodule the task reaches through an argument, a call's result, a parameter's default or a local name such as m = pkg if a else None is compared too. On Python 3.15, a second cache_dir run in the same kernel now reuses the cells when the task reads a module past a lazy import pkg.sub. With cache_dir=, importing another project module in a cell can now make the cells compute again. A resume keeps the record a reused cell was written with, so a sweep started on an earlier version does not compare these modules for its completed cells: after editing one, use a new working_dir. (#294)
  • For a task defined in a notebook, resume=True and cache_dir= now compare a class with no method of its own (a dataclass or an Enum of fields, a class of constants) by its class statement, and a class whose every method a notebook decorator wraps. In a running IPython shell mushin notes which cell made each class (one alive at the cell's end that was not at its start): a class whose cell states it is read from that statement, and one that a cell run after import mushin makes without stating it (in a %%time cell, by exec, %run or a global factory, or a copy such as dataclass(slots=True)(C)) re-runs its cells instead of reusing results, whenever that cell runs again and after a restart. So does a class whose kept versions cannot be told apart. A resume re-runs the cells once after upgrading for a task that reaches a class with no method of its own. (#295)

Misc

0.17.0 - 2026-11-03

Added

  • The agent guide reaches agents inside their tools. mushin-mcp serves it as the guide prompt (/mushin:guide (MCP) in Claude Code) and the mushin://guide resource, and its instructions say so. The repository is a Claude Code plugin marketplace: /plugin marketplace add martinez-hub/mushin then /plugin install mushin@mushin installs the /mushin:guide skill, which prints the guide of the installed mushin. python -m mushin guide, the prompt and the resource all render through one function, so they cannot drift. (#266)
  • The API reference covers every public name, and a test keeps it so. compare_methods, IncompleteSweepError, the Task registry (Task, register_task, get_task, list_tasks) and the metric batteries join the benchmark page; ResumeContext the workflows page; HydraFSDP, seed_everything_per_rank, submitit_slurm_config and pin_gpu_round_robin the lightning page; and the llm page describes its System, Metric and Example types. (#267)
  • mushin.best(root, metric, over="seed") returns the configuration whose metric, averaged over the named swept parameters, is best, so picking a configuration no longer rewards one lucky seed. combo omits the averaged parameters, value and metrics are means, n counts the cells and dirs lists their job dirs. Only complete groups count: those with a result at every seed where any configuration has one. The others are skipped with a warning, as is a sweep still running, whose bar is the seeds reached so far. best() without over= is unchanged (its dir is now typed Path | None, so typed callers narrow it), except that an infinite metric value, or an integer beyond float range, no longer counts as finite: it cannot be the best cell, and diff prints no delta for it instead of an infinite or NaN one; a metrics sidecar holding an integer past the JSON parser's digit limit reads as corrupt, like any unreadable sidecar, instead of aborting the offline views. (#268)
  • The docs site serves llms-full.txt, every page but the contributing guide and the changelog as one Markdown file, with the guides' example code, the API reference and the notebooks' code inlined, so an agent can load the whole site in one fetch; llms.txt and the For AI agents page link to it. (#279)
  • Python 3.15 is now supported and tested on Linux, Windows and Apple Silicon. It needs torch 2.15 or later, and the hydra-zen floor is now 0.17.1, the first release that imports on 3.15. A sweep recorded on an earlier Python and resumed on 3.15 still reuses its completed cells: the syntax trees resume and cache_dir compare leave out the field 3.15 adds to every import (PEP 810's is_lazy), which would otherwise have changed the record of every file that imports anything. In a notebook, they also compare the project modules a lazy import names (lazy import m, or any import under -X lazy_imports=all), which stays unresolved until the task first runs. PyYAML has no 3.15 wheel yet, so it builds from source; without libyaml, hydra.yaml files are read through OmegaConf, with the same results, more slowly. (#283)

Changed

  • load_from_dir, and the MCP tools that read a sweep directory, are about 4.5x faster: reloading a 1000-cell sweep took 1.6 s instead of 7.3 s. Each cell's .hydra/hydra.yaml is now parsed by the libyaml that PyYAML's wheels include, instead of being built into an OmegaConf config. The parse is used only when OmegaConf would accept every value in the file and writing the parsed tree back as Hydra writes hydra.yaml reproduces the file exactly; any other file, hand-edited or malformed, goes through OmegaConf as before, with the same result or error. PyYAML, which OmegaConf already installs, becomes a direct dependency (pyyaml >= 6.0.3). load_from_dir on a directory with no job directories now raises a FileNotFoundError that says why, instead of ValueError: not enough values to unpack; one that fails partway leaves nothing behind, so a later call reloads; and a mistyped path leaves the workflow as it was. (#261)
  • compare_llms and compare_scores compute their item-level bootstrap about 2.7x faster (5 systems x 5,000 items: 0.6 s instead of 1.6 s; 10 systems: 2.4 s instead of 7.4 s), with results identical to the last digit. The pairs of one metric resample the same eval set, so their indices, which took most of the time, are now drawn once and shared. (#262)
  • run records each cell's Hydra job number and config-group choices in the cell's status sidecar (mushin_cell_status.json), and load_from_dir and the MCP server read them from there instead of parsing the cell's hydra.yaml, which was most of a reload's time: a 1000-cell sweep run on this version reloads in about 0.5 s instead of 1.5 s. Sweeps from earlier versions, and a cell whose hydra.yaml is newer than its sidecar, are read as before; a cell whose sidecar records the fields no longer has its hydra.yaml opened or checked on reload. (#263)
  • Each cell's mushin_provenance.json records the accelerator (CUDA and cuDNN build, device) from the process that ran the cell, once its task has returned, instead of from the process that called run() before the first cell. A task that imports torch inside its body, and a sweep launched from a login node with submitit, now record the device the cell ran on; the device is named once the task has initialized CUDA, and provenance itself makes no CUDA call. A sweep that never imports torch no longer imports it for the record, which saves the torch import (about half a second here) on every run(); its accelerator is null when the cell's process never loaded torch (so a task that uses a GPU through JAX or a subprocess in such a process records null too), while a process with torch loaded records torch's view even if the task did not use it: the wheel's CUDA and cuDNN build, and the device only once the task initialized CUDA (records from earlier releases named a present GPU even for a task that stayed on the CPU, so mushin.diff against such a sweep reports a device change once). wf.provenance, show and diff stand one cell's record for the sweep: now the first that has an accelerator, within the first few cells, else the first (so its config and timestamp can be a later cell's when the first cell failed before its task imported torch). mushin.diff compares the accelerator only when both sweeps recorded one, so a torch sweep against a scikit-learn sweep on the same machine reports no hardware change, while a CPU-only torch build against a GPU box still does. (#264)
  • resume=True and cache_dir= now notice edits to the project code a cell can run, not only to the task function itself. Each cell records every project file its task's module imports (and pre_task's), directly or through other project files, at any depth (imports inside functions included), and the modules of the classes its config names (_target_, or hydra-zen's just() and zen_meta), each with the __init__.py of the packages it is in, since importing a module runs them. Each file is compared as a whole, by its syntax tree without its main block and docstrings, so an edit anywhere in it re-runs the cells and a comment, a docstring or formatting does not; the task function's own source is compared as text, as before, so any edit to it counts. A task defined in the driver script is compared by what its definition can reach by name in the script (its helpers and constants), not by the run(...) call, top-level calls, print calls or what only they read, so extending a grid and resuming still reuses the completed cells; the script is read when the run starts, so editing it while a sweep runs does not change what its cells record. A cell completed under different project code re-runs with a warning naming the file (helpers (file)). Files are compared as they are on disk, so after editing a module in a running process, reload it (or restart) before resuming or using the cache: the old code still runs (mushin warns when it recorded the file earlier in that process). The standard library, installed packages other than editable ones, and mushin are left out. The cache key includes the same record, so a cache entry written by an earlier mushin is recomputed once; a partial task is still never cached, as before, and its bound arguments are not compared (the modules of the functions it binds are). Study covers the project files its training functions' modules import the same way, and its methods fingerprint is unchanged. Sweeps recorded without the new field resume without comparing it. Taking the record can import a module loaded through importlib.util.LazyLoader (as lazy_loader.load does), and an error from that import may go unreported; if such a module has side effects or can fail to import, import it yourself before calling run(). (#270)
  • The diff table heads its delta columns <metric>(b-a) instead of Δ<metric>, a character cp1252 and cp437 lack (migration: code that parses DiffResult.table matches acc(b-a) where it matched Δacc; the header still splits on whitespace into one token per column, and DiffResult.rows is unchanged). export.table(root, path=...) writes its CSV in UTF-8 without a byte-order mark on every platform instead of the locale's encoding (cp1252 on Western Windows, which failed on a metric name outside it); pandas and polars read it as is (migration: in Excel on Windows, open it with Data > From Text/CSV, or the import wizard, and choose UTF-8). (#272)
  • resume=True and cache_dir= read more of a driver script the way it runs. A decorator alias, a match capture and a from __future__ import now count, so an edit there re-runs the cells, and so does moving an assignment between a main block's body and its else. A comprehension variable, a nested function's local and an annotation without a value are no longer taken for code the task reads, so editing them does not re-run cells. A definition registered inside a block (if ENABLED: @register class ...) and a class body reading the module's name it shadows (SCALE = SCALE) are still not compared. (#277)
  • resume=True and cache_dir= now notice edits to code defined in a notebook. A task defined in a notebook cell is compared by the definitions its code reaches by name in the kernel when the run starts: each function and class defined in a cell (through decorators, a partial, a bound method or an instance). Re-running an edited cell and resuming re-runs the cells, with a warning naming it (helper (notebook)), and the cache recomputes them; re-running an unchanged cell, extending the grid or a restart that replays the cells does not. No value is compared (a number, a string, a dict config, what a default or a closure holds): a value is only safe to compare when every writer of it is known, which a notebook does not allow, so pass values the results depend on as swept parameters, or use a new working_dir after editing one. A function reached only through a container (a registry), a closure or a default, a name one of the notebook's functions rebinds (global helper), a _target_ defined in the notebook, and code whose text the kernel does not keep (a %%time cell, exec, a %run file) are not compared either. A name rebound through globals() or exec, or by a function the notebook's names do not lead to (one kept only in an object's attributes), is still compared, so once a run rebinds it in the kernel, a resume re-runs the cells; the resilience guide lists where mushin looks. A cell's import pkg.sub binds only pkg, so edits to pkg/sub.py may not be compared: after editing a submodule the task reaches that way, use a new working_dir. (#278)

Fixed

  • The underpowered-test warning of compare_methods, compare and Study now accounts for the correction over the method pairs: under Holm or Bonferroni the smallest p-value must clear alpha / m for m pairs, so Wilcoxon needs 7 seeds for 3 methods and 8 for 4, not 6, and the warning says so instead of staying silent while no pair can be significant. It is judged per metric, since a method masked as constant leaves that metric's family, and names the metrics it holds for when they are not all of them; a best case landing exactly on alpha now warns, matching the strict comparison that decides significance. warn_if_underpowered takes the family size and the correction as optional arguments. (#269)
  • max_total_seconds now holds under a parallel launcher. Under launcher="joblib" every job unpickled the task runner with no deadline of its own, so the budget never fired and every cell ran. Now the sweep's first computed cell, in whichever worker runs it, records the start in a hidden file in the sweep directory (.mushin_budget_start.<id>), each worker process keeps the deadline it derives from it, and no worker starts a cell once max_total_seconds have passed since then: the budget bounds the sweep's elapsed time, not the compute summed over the workers, and each worker can finish a cell it started just before the deadline. run removes the file when its launch returns normally; a launch that raises (a failed cell under on_error="raise", Ctrl-C, a submitit timeout) leaves it, so jobs a scheduler still holds keep the same deadline. Each run() names its own start file, so no later run reads it, and a resume=True that passes max_total_seconds again starts a new clock. A cell that SLURM preempts and requeues after the deadline still runs, since it started before it. The default sequential launcher keeps the deadline in memory, as before, and writes no file. Across nodes (submitit), the workers need the shared filesystem submitit already requires and synchronized clocks; a cell that runs on several ranks still disables the budget. (#271)
  • mushin's own console output no longer fails with UnicodeEncodeError on a console that cannot encode what it prints (a Windows pipe in cp1252, a cp437 console, PYTHONIOENCODING=ascii). show, diff and the dry_run=True preview print a metric name or other value outside the console's encoding as a backslash escape such as \u03b1, with the table's columns still aligned, while the returned .table keeps the text itself. python -m mushin guide --path prints only a real path: one the console's encoding cannot represent goes out as the path's own bytes when stdout's encoding is the file system's, and otherwise (a Windows pipe in cp1252, for one) the command exits with status 1 and a message saying how to widen stdout. The text files mushin writes are UTF-8 on every platform, and mushin reads them as UTF-8. With on_error="nan", a cell whose error message the locale's encoding lacked no longer ends the sweep, since mushin_error.txt is now UTF-8; the MCP server's get_failures reads it as UTF-8, falling back to the locale's code page for a file an earlier release wrote (in UTF-8 mode too). capture_env=True decodes uv's output as UTF-8: decoded in the locale's encoding, it raised on any non-ASCII byte under an ASCII locale, and under cp1252 on characters such as Á whose UTF-8 holds a byte the code page leaves undefined, and the snapshot then silently fell back to the bare package list. The default metric_load_fn reads a JSON metrics file as UTF-8, UTF-16 or UTF-32, with or without a byte-order mark (such a file went to torch.load and failed), and falls back to the locale's code page, so a UTF-8 file no longer reads garbled on Windows. Provenance records a non-ASCII git branch name as UTF-8. mushin's own console text, warnings and error messages are now plain ASCII; the dry-run preview opens with Dry run: N cells. target_job_dirs naming a file now says the path is not a directory rather than that it does not exist. (#272)

Misc

  • 259, #260, #276, #282, #285, #288

0.16.0 - 2026-10-22

This release adds a usage guide for AI coding agents, printed by python -m mushin guide. It also fixes how a sweep reloaded from disk reports the cells that have no result: before, compare_methods could treat an incomplete reloaded sweep as complete.

Added

  • The docs site now serves llms.txt, an index of every page written for LLMs and coding agents (the llms.txt convention), and the repository gains an AGENTS.md for agents contributing to mushin. (#249)
  • mushin now ships a usage guide for AI coding agents that set up experiments: which API to use for which job, a tested template, the pitfalls that give wrong results, how to run long sweeps from an agent, and what to check before reporting. python -m mushin guide prints it (--path gives its file), the new For AI agents page shows it with a block to paste into a project's AGENTS.md or CLAUDE.md, and llms.txt and the README point to it. help(mushin) now describes the package and points to the guide, and on a core install it renders, as do from mushin import * and inspect.getmembers(mushin). dir(mushin) no longer lists the deprecated BaseWorkflow and RobustnessCurve aliases, which still import with a warning. (#255)

Fixed

  • The Tutorial and seven guides (Workflows & sweeps, Comparing methods, Built-in batteries, LLM evaluation, Studies, Segmentation, and Custom metrics & predict_fn) show their example code again. Since ruff 0.16 reformatted the docs' example includes in July 2026, those pages had shown a --8 < --"examples/..." line where the code belonged. (#253)
  • A sweep reloaded with load_from_dir now reports every cell of its grid that has no result, as .run() does: failed cells in .failures, and the rest (skipped, still running, or never started because the sweep was killed) in .skipped. to_xarray() carries them as the mushin_failures / mushin_skipped attrs, and is_complete reflects them. Before, compare_methods on such a reloaded sweep compared it as if it were complete instead of raising IncompleteSweepError. Holm correction then covered fewer comparisons, so it could report a pair as significant that the complete sweep does not support. (#254)

Misc

  • 248, #256, #257

0.15.1 - 2026-10-15

No changes to mushin's code since 0.15.0. This release fixes the source tree's uv configuration, which uv 0.12.14 and later could not re-resolve (#243).

Misc

  • 242, #243, #245, #247

0.15.0 - 2026-10-14

Changed

  • Sweeps now require hydra-zen 0.17.0 or newer, which builds Hydra sweepers through the plugin registry. mushin no longer needs its workaround for hydra-core refusing the hydra._internal sweeper target, and that code is gone. hydra-core must now be 1.3.7 or newer: on 1.3.6, hydra-zen 0.17.0 fails to instantiate any config that carries a callable, and 1.3.7 also fixes the hydra-core security advisory GHSA-mwj6-rfh8-7qf4. (#235)

Fixed

  • The statistics guide said 5 seeds make a Wilcoxon test viable; the floor is 6 (its best-case two-sided p-value is 2 ** (1 - n_seeds)), so the documented remedy for the underpowered-test warning produced the same warning. The guide no longer recommends the default Wilcoxon test for small seed counts either, and the LLM guide's seed-count advice no longer states a fixed threshold as if power were independent of effect size. (#228)

Removed

  • Python 3.10 is no longer supported: it reached end-of-life on 2026-10-01, and mushin now requires Python >= 3.11. Python 3.15 is not supported yet; the install guide explains what it is waiting on. (#236)
  • Intel macOS (x86_64) is no longer supported: PyTorch publishes no x86_64 macOS wheels after torch 2.2, which held mushin there to torch 2.2.x and NumPy 1.x. mushin 0.14.x, which supports Intel Macs on Python 3.10 and 3.11, is the last series that runs there (python3.11 -m pip install "mushin-py<0.15"). Apple Silicon Macs remain fully supported and tested. (#239)

Misc

  • 221, #229, #240

0.14.2 - 2026-09-23

Added

  • The workflows guide now documents a known upstream incompatibility: on hydra-core >= 1.3.6, a config built with both zen_partial=True and zen_wrappers= raises InstantiationException: Callable targets cannot return partial subclasses. hydra-core 1.3.6 hardened instantiate so a callable target may no longer return a functools.partial subclass, which is what hydra-zen produces when those two options are combined — either alone is fine. The hardening carries forward, so 1.3.7 rejects it too. mushin itself is unaffected (it uses zen(), a different feature, and never zen_wrappers), but the error names neither Hydra nor hydra-zen, so it is easy to mistake for a bug in your own task function. The note gives the fix: change the config — drop one of the two options — rather than the dependency. (Pinning cannot help here: the rejection is deliberate security hardening that still applies on 1.3.7, and every version an exclusion falls back to carries a high-severity advisory the newer release fixes.) (#205)

Fixed

  • Sweeps work again on hydra-core 1.3.7. 1.3.7 refuses to instantiate the hydra._internal sweeper target that hydra-zen's launch names directly, so every multirun raised InstantiationException on a fresh install. mushin now marks that one target trusted around its own launch call — the same exemption Hydra applies to its own sweeper — rather than capping hydra-core, which would have withheld 1.3.7's security fix (GHSA-mwj6-rfh8-7qf4, high, hydra-core >= 1.3.4, < 1.3.7) and put a hard upper bound on a library. The fix belongs upstream in hydra-zen; it can be deleted once launch routes the sweeper through Plugins. (#211)
  • Corrected the workflows guide's advice on the zen_partial + zen_wrappers incompatibility. It previously suggested pinning hydra-core != 1.3.6, which does not work: the rejection is deliberate security hardening that still applies on 1.3.7, and every version the exclusion would fall back to carries a high-severity advisory the newer release fixes. The guide now says to change the config instead, and the section is retitled for hydra-core >= 1.3.6 rather than 1.3.6 alone. (#214)

Misc

  • 198, #200, #201, #203, #204

0.14.1 - 2026-08-24

Added

  • New notebook LLM examples end to end walks the LLM-evaluation layer in one place: compare_scores when another harness already produced your per-item scores, why the seed axis and the item axis can disagree, clusters= for grouped items, compare_llms when you want mushin to run the systems, and the sweep half surviving a simulated rate-limit outage with on_error="nan" and resume=True. Self-contained — no API keys, no network, and deterministic, so the numbers are the same on every machine.

Changed

  • Each of the three LLM examples now opens with a "The mushin part, in full" block in its module docstring, showing the actual API calls before the scaffolding that surrounds them. examples/inspect_ai_compare.py is 395 lines of which two call mushin — the Inspect adapter and the print formatting are the bulk — so a reader opening the file to learn the library could reasonably conclude they never saw any mushin code. report() in that example also drops from 117 lines to 57 by extracting its two verdict formatters, leaving the compare_scores call and the columns it returns visible rather than buried. No behaviour changes: all three demos produce byte-identical output.

Fixed

  • examples/inspect_ai_compare.py now sorts question ids in their own order rather than as strings. Inspect numbers samples 1, 2, 3... by default, and sorting those lexicographically returned [1, 10, 11, ... 2, 20]. Comparisons were correct either way — every model got the same order, and building clusters= from the returned id list (as documented) gave identical results before and after — but the surprising order was a trap for anyone lining clusters= up against their own ascending item order instead. Ids with no total order (mixed types) still fall back to string ordering. Separately, a sample that errored during a real run is now reported as unscored: Inspect writes scores={} for those, not None, so the check missed them and they surfaced as a confusing "pass scorer=" error instead. The adapter is now tested against real inspect_ai EvalLog objects rather than only duck-typed stand-ins, which is what surfaced the scores={} behaviour.

0.14.0 - 2026-08-23

Added

  • compare_llms now reports a paired item-level bootstrap (item_diff, item_ci_low, item_ci_high, item_p) beside the seed-based test, so you can see whether a difference would survive a different sample of eval items — usually the larger uncertainty. Disable with item_bootstrap=0. (#183)
  • LLM evaluation gains clusters= for grouped eval items (several questions per passage): resampling whole groups instead of individual items, because ignoring the grouping covers a nominal 95% interval only about half the time. NaN group labels are rejected rather than silently dropped, and the small-sample warning counts groups rather than items. New compare_scores runs the same analysis on per-item scores you already have from another harness, so you can use mushin's statistics without adopting its execution loop. (#185)
  • New examples/inspect_ai_compare.py answers the question Inspect AI leaves open — your eval says one model scored 60% and another 56.7%, but is that gap real? It checks whether the difference survives a re-run (Inspect epochs) and whether it would survive a different set of questions (an item bootstrap), and reports a plain verdict. Run --demo to see it on two scenarios with known ground truth. Questions are matched across logs by sample.id rather than by position, since matching positionally would compare unrelated questions. (#186)
  • New examples/prompt_injection_eval.py measures resistance to indirect prompt injection — the attack arriving inside retrieved content rather than from the user — using both halves of mushin: compare_llms for whether a resistance gap survives a re-run and a different attack set, and @mushin.sweep to break the result down by attack shape. The demo shows why the breakdown matters: the system with the better aggregate score is quietly weaker against one attack family. Detection uses an inert canary; --demo needs no model or keys. (#187)
  • New examples/llm_prompt_sweep.py shows the sweep half of mushin on an LLM tuning problem: prompt template x temperature x seed, where every cell costs money and cells fail transiently. on_error="nan" keeps the completed cells when a call is rate-limited, resume=True retries only the holes, and the labelled dataset makes picking the best configuration one reduction over named dimensions. Run --demo to see it without keys or network. (#188)
  • compare_llms and compare_scores now report item_p_corrected beside item_p: the item-level bootstrap p-value under the same multiplicity correction, and over the same family (the comparisons within one metric), that p_value gets as p_corrected. Comparing three systems multiplies the chance of a spurious item-level "win" exactly as it does on the seed axis, so a corrected seed p-value reported next to a raw item p-value understated one of the two risks. With a single comparison the two columns are equal.

Misc

  • 182, #189

0.13.0 - 2026-08-19

Added

  • Python 3.14 is now supported and tested on Linux, Windows, and Apple Silicon. (#179)

Misc

  • 172, #174, #175, #176, #177, #178

0.12.0 - 2026-08-13

Changed

  • Migrated the MCP server to the MCP Python SDK v2 (the v2 SDK removes the mcp.server.fastmcp module the server was built on, so an uncapped 1.x install would break at import time): the mcp extra now requires mcp >= 2, < 3 (the 1.x line is in maintenance mode upstream). The server's tools, transport (stdio), and mushin-mcp --root CLI are unchanged; if you pin mcp 1.x elsewhere in your environment, stay on the previous mushin release until you can upgrade. (#162, #163)
  • Moved off Hydra's deprecated 1.1 compatibility mode ahead of its removal in Hydra 1.4: run()'s version_base now defaults to "1.3", and the hydra-core floor rises from 1.2 to 1.3. Behavior is unchanged — run() has always pinned hydra.job.chdir=True explicitly, so each job still executes in its own working directory — and hydra-core 1.3.5's new Hydra14MigrationWarning no longer fires on every launch. HydraDDP / HydraFSDP now locate the job's saved config via Hydra's runtime output directory instead of the process CWD, so they also work when launched with version_base >= "1.2" semantics (no per-job chdir) outside of run(). (#167)

Fixed

  • Corrected HydraDDP's docstring, which still said the saved config.yaml must live in the process's current working directory: since the version_base migration it is located via the job's Hydra output directory, so DDP re-launching no longer depends on the CWD. (#169)

0.11.1 - 2026-07-27

Changed

  • The PyPI summary, docs landing page, and docs-site metadata now match the README: "reproducible machine-learning experiment sweeps" (the identity line previously said "workflows" on those three surfaces). (#152)

Misc

0.11.0 - 2026-07-23

Added

  • A missing Hydra launcher plugin now raises with the exact pip install package name (e.g. hydra-submitit-launcher) instead of Hydra's bare "Could not find" listing. (#149)
  • run() accepts launcher_config= — launcher fields (e.g. from submitit_slurm_config()) are applied as hydra.launcher.* overrides internally, so cluster sweeps no longer need hand-rolled override strings. (#149)

Fixed

  • max_total_seconds is disabled (with a warning) for cells running as one rank of an external multi-rank launch (submitit DDP/FSDP) — per-rank deadlines could diverge and hang the ranks at NCCL rendezvous; bound those jobs with the scheduler's time limit instead. (#149)
  • HydraDDP's docstring example now runs on supported Lightning (devices=2, not the removed gpus=2); the multinode example uses the standard workflow API; the multinode guide gained a "Preemption & resume" section covering SLURM requeue and recovery. (#149)
  • Provenance now records the Apple Silicon MPS accelerator (device: "mps (<chip>)") when CUDA is absent — M-series runs are no longer hardware-blind; the install guide documents Apple Silicon support explicitly. (#150)

0.10.1 - 2026-07-22

Changed

  • Repositioned the project description everywhere (README, PyPI, docs site + metadata, citation, paper): mushin is a framework-agnostic sweep engine built on hydra-zen, with first-class PyTorch Lightning integration — the sweep layer never imports Lightning (Lightning ships in the base install for the deep-learning path). (#146)

Fixed

  • A second run() on the same workflow instance no longer reuses the previous sweep's cached overrides, which silently NaN-filled the new grid. (#145)
  • ±Inf metric values survive the sidecar round-trip with their sign instead of collapsing to NaN. (#145)
  • load_from_dir now recovers each cell's config-group choice, so a finished group sweep reloads with real values instead of an all-NaN grid. (#145)
  • diff no longer reports metric deltas from failed/skipped cells, and a failing cell removes the metrics sidecar left by a prior successful attempt. (#145)
  • show/best/diff/export.table now scope to the latest sweep's manifest, excluding stale cell dirs left by an earlier sweep in a reused working_dir (the mid-sweep live view is preserved). (#145)
  • Study training-sweep resume now fingerprints the methods mapping: renaming, reordering, or editing a method (including a functools.partial's bound arguments) re-runs cells instead of silently reusing checkpoints trained by old code. One-time cost: the first resume of a sweep created before this change re-runs all cells (its cells lack the fingerprint). (#145)
  • Fail-soft, sampled, and budget-skipped sweeps can now be reloaded from disk: failed/skipped cells NaN-fill instead of load_metrics raising FileNotFoundError, and a stale sidecar in a failed cell's dir is never loaded. (#145)
  • compare_methods(allow_incomplete=True) masks constant (zero-variance) methods over the completed seeds and keeps ±Inf cells in the pairing instead of silently excluding them; summary(reference=...) rejects unknown method names. (#147)
  • max_total_seconds runs on a monotonic clock — a wall-clock step (NTP/DST) mid-sweep can no longer stretch or prematurely expire the budget. (#147)
  • show/export.table: a metric sharing a swept param's name renders as <name> (metric) instead of overwriting the param column, and a typo'd metrics= entry raises instead of silently dropping the column. (#147)
  • The grid accounting (dry-run preview, confirm_above gate, sample= selection) no longer silently excludes user params whose names merely start with "hydra" (e.g. hydraulic=). (#147)
  • dry_run reports the sampled cell count when sample= is set (the cell-count gate still applies to the full grid, since every cell is launched regardless of sampling); a fresh run reusing a working_dir no longer inherits the prior sweep's notes/tags, and tags=[] on resume clears them. (#147)
  • MCP get_failures/get_provenance raise for a nonexistent path instead of reporting an empty-but-valid result; MetricsCallback writes standalone trainer.validate() metrics to validate_metrics.pt; seed_everything_per_rank falls back to LOCAL_RANK; provenance records dirty: null when git status cannot be verified. (#147)
  • working_dir paths containing = or , (e.g. dirs named lr=0.1) now work; duplicate sweep values via raw overrides= are rejected instead of silently collapsing to one cell. (#147)

Removed

  • Removed the dead pre-Lightning-1.6 HydraDDP code path (~130 lines) — the dependency floor is pytorch-lightning >= 2.4. (#147)

Misc

  • Reframed the workflows guide's hyperparameter-search section: mushin does grid and random search (often the whole job for a small discrete space, with the labeled dataset + stats as a bonus); it does not do adaptive/Bayesian search over large or continuous spaces, which is where a dedicated optimizer like Optuna is complementary. Replaces the earlier "mushin is not a hyperparameter optimizer" overstatement.
  • The README shows a "latest release" badge linking to the newest GitHub release and its notes, alongside the existing PyPI version badge.

0.10.0 - 2026-07-22

Added

  • A pre-launch cell-count gate guards against an accidentally huge grid. run(..., confirm_above=N) refuses to launch a sweep with more than N cells, raising a ValueError that reports the count and how to proceed (preview with dry_run=True, or raise the ceiling). The MUSHIN_MAX_CELLS environment variable supplies a default ceiling when a call doesn't set one — so a shared cluster or CI profile can cap every sweep — and an explicit confirm_above= wins over it. A malformed MUSHIN_MAX_CELLS is ignored, and dry_run=True bypasses the gate so an over-limit sweep can still be previewed.
  • mushin.best(root, metric) returns the completed cell that optimizes a metric across a sweep — mode="max" (default) or mode="min". Like mushin.show it reads the per-cell sidecars directly (offline, no Hydra/xarray). The returned BestResult carries the winning combo (swept params), the optimized value, the full metrics dict, the cell status, and its job dir (for locating checkpoints/artifacts). Failed/running/skipped cells and non-finite metric values are ignored; an unknown metric raises a ValueError that lists the available scalar metrics.
  • mushin.diff(a, b) compares two sweep directories. It aligns cells by their swept-parameter combination and, for each shared cell, reports the delta b - a of every metric that is a finite scalar in both — printed as a Δmetric table. Cells present in only one sweep are listed (only_in_a / only_in_b), and the two runs' environment provenance is diffed field-by-field (git/packages/python/accelerator), excluding volatile fields like the per-cell timestamp. Like show/best it reads the per-cell sidecars directly (offline, no Hydra/xarray); the returned DiffResult exposes .rows, .only_in_a, .only_in_b, .provenance, and .table.
  • mushin.export.table(root) exports a sweep as CSV — one row per cell with its swept parameters, status, and metrics. It reads the per-cell sidecars directly (offline, no Hydra/xarray) and writes full-precision values so pandas parses numbers numerically. Returns the CSV string, or writes to path= and returns the Path; metrics= restricts the metric columns. A durable, spreadsheet-friendly substrate for researchers who prefer pandas to xarray.
  • mushin.show(root) prints (and returns) a status/metrics table for a sweep directory. It reads each cell's status and metrics sidecars directly — pure JSON, so it needs neither Hydra nor xarray and works mid-sweep — making it handy for watching a live sweep or eyeballing a finished one before the full to_xarray load. Each row carries the cell's swept parameters, its status (completed/running/failed/skipped/…), and its metric values; metrics= restricts the metric columns and sort= orders the rows. The returned ShowResult exposes .rows (one dict per cell) and .table.
  • run() now validates up front that every required task (and pre_task) parameter is satisfied — by the base config, an override, or the raw overrides=[...] list — and raises a clear ValueError naming the missing parameter(s) before launching. Previously a genuinely missing parameter surfaced as an opaque per-job Hydra ConfigAttributeError after the sweep had already started, once per cell. A parameter supplied only via an override is still valid (the common decorator case, where the base config is empty), so this adds no false positives.
  • run(..., cache_dir=...) adds a content-addressed cache of completed cells that is shared across working_dirs. A cell whose resolved config AND task source match a previously-computed cell — keyed on the same fingerprints as resume — reuses that result instead of recomputing, so a cell computed in one sweep is free in another (a coarse grid refined into a finer one, a re-run in a fresh directory). Newly-computed cells are stored in the cache automatically. It complements resume (which reuses only within a single working_dir); a changed non-swept config value or an edited task body is a cache miss. Cache writes are best-effort and never fail the cell.
  • run(..., dry_run=True) (and @mushin.sweep .run(dry_run=True)) previews a sweep instead of launching it: it prints the cell count and each swept axis with its values — so a range typo shows up as an unexpectedly wide axis before any compute is spent — and returns a summary dict (num_cells, axes, fixed, working_dir) with no jobs run.
  • run(..., max_total_seconds=T) adds a graceful wall-clock budget. Once the budget is exhausted the remaining grid cells are skipped — recorded 'skipped' in the manifest and per-cell status, NaN in the dataset, and surfaced in self.skipped (and a mushin_skipped dataset attr) — instead of the sweep running to the end. The clock starts at the first computed cell, so at least one cell always runs and resume cache hits don't consume the budget; a cell already running is never interrupted. Because a skipped cell is not completed, a later resume=True with more time finishes exactly the skipped cells. The budget is measured per launcher process, so it's best paired with the default sequential launcher.
  • run(..., notes="...", tags=[...]) annotates a sweep with free-form lineage. The note and tags are recorded in the sweep manifest, exposed on the workflow as wf.notes / wf.tags (and preserved when a sweep is reloaded with load_from_dir), and carried on the dataset as the mushin_notes / mushin_tags attrs — so "why did I run this?" travels with the results. tags must be a list of strings and notes a string. A resume that does not re-pass notes/tags preserves the original run's lineage rather than wiping it.
  • run(..., sample=K) runs only a random K-cell subset of the grid — the rest are skipped (NaN, and listed in self.skipped) — for fast exploration of a large grid without paying for every cell. The subset is chosen deterministically from the Hydra job indices (seeded by sample_seed, default 0), so it is reproducible and identical across a resume; resuming without sample fills in the remaining cells. sample >= n_cells runs everything. Because selection is by job index it is launcher- and axis-type-agnostic. Note: the full grid is still composed by Hydra (only the sampled cells run), and a sampled sweep is intentionally incomplete (is_complete is False).

Fixed

  • A batch of defensive-handling fixes: corrupt-but-valid-JSON cell-status sidecars now degrade (resume treats a null/"3" attempt or a wrong-shape record as absent) instead of crashing; load_from_dir raises a real FileNotFoundError for a missing config (not a -O-stripped assert); the resume contextvar no longer leaks when a status write fails; RobustnessCurve.plot no longer leaks a figure when plotting raises; a malformed tuning pin reaches its friendly "delete it or retune" guard; mushin.lightning/benchmark/mcp/testing are reachable as lazy submodules after import mushin; compare/compare_llms reject an unknown correction= before any evaluation runs; the MCP get_failures/get_provenance tools tolerate wrong-type sidecar JSON; and a value_check message typo ("None orof") is fixed.
  • A typo'd sweep-axis name is now caught before launch instead of silently producing a wrong dataset. Passing run(lrate=multirun(...)) when the task parameter is lr previously ran to completion and added a phantom lrate dimension of constant values; it now raises a ValueError that names the likely intended parameter. Only near-misses of a real target are rejected — deliberate overrides beyond the task's own parameters (values consumed by pre_task, config groups, interpolations) and tasks declaring **kwargs are unaffected.
  • Fixed trainer.validate() under HydraDDP/HydraFSDP: the child ranks were told to run fit (train) while rank 0 validated — a collective mismatch that hangs or crashes. The launcher now maps Lightning's _validate_impl to a pl_validating flag and _pl_main dispatches trainer.validate accordingly, alongside the existing test/predict paths.
  • Fixed a cluster of silent-wrong-results bugs in the override → grid pipeline: a fixed (non-multirun) string containing , or = is no longer re-split into an accidental sweep and "true"/"1" stay strings; a duplicated sweep-axis value is rejected instead of silently collapsing two cells into one; combo_key is now injective (delimiter-containing values can't collide with a different combination); a dotted sweep (model.width) on a config field that already exists no longer crashes; and a batching sweeper's multi-batch job list is flattened instead of failing after every job ran.
  • Fixed five defects found by an adversarial review of the exploration features:

  • cache_dir is now resolved to an absolute path (expanduser().resolve()) before launching. A relative or ~-prefixed cache_dir was previously dereferenced inside each per-cell job dir (Hydra chdirs into it), so cross-cell/cross-directory reuse silently never hit.

  • resume=True with sample= is now rejected with a clear error. Combining them overwrote already-completed cells (skipped by job index) to skipped/NaN, silently discarding prior results; resume WITHOUT sample fills the rest.
  • The cell count (used by sample=, confirm_above=/MUSHIN_MAX_CELLS, and dry_run) now counts sweep axes supplied via the raw overrides=[...] list, not only param=multirun(...) kwargs — so those no longer undercount the grid.
  • compare_methods(allow_incomplete=True) now computes each comparison over only the seeds completed for both methods (dropping NaN cells), fulfilling its documented promise instead of feeding NaN into the tests and returning all-NaN statistics.
  • mushin.show(sort=...) places NaN metric values last deterministically (they no longer break the sort's total order) and raises a clear error when sort names a column that isn't present.
  • Fixed metric-value coercion into the JSON sidecar: a task returning a nested-dict metric containing numpy/torch values (or a datetime/Path) no longer crashes the sidecar write after the task succeeded (which left the cell stuck and aborted the sweep); non-finite metrics (NaN/±Inf) now serialize as valid JSON (null) instead of the non-strict NaN/Infinity literals that broke strict parsers, and read back as NaN so metric columns stay float dtype on resume; a non-scalar battery metric (numpy array/list, not just a torch tensor) now gives the crafted "must return scalar" error.
  • Provenance no longer leaks secrets: mushin_provenance.json records the config with resolve=False (so a ${oc.env:SECRET} interpolation is kept as an unresolved reference instead of baking the resolved secret into the file), and values under secret-named keys (api_key, token, password, ...) or shaped like provider tokens (sk-..., hf_...) are redacted. This also fixes the MCP get_provenance(include_config=True) tool, which re-served the on-disk record.
  • Reloading a sweep offline with load_from_dir(dir, "mushin_metrics.json") no longer crashes. The default metric_load_fn now sniffs the file — it reads the JSON metrics sidecar (written by any task that returns a dict, including @mushin.sweep/decorator sweeps) with json and falls back to torch.load only for torch pickle/.pt files. Previously it was hard-wired to torch.load, which raised UnpicklingError on the JSON sidecar unless you overrode the loader.
  • Resume now guards against stale-code reuse: editing a task body and re-running with resume=True (same config, same swept params) re-runs the affected cells — with a clear warning — instead of silently returning the previous run’s cached metrics. A per-cell hash of the task source is stored alongside the config fingerprint; a completed cell is reused only when both still match. Legacy sweeps (no recorded code hash) resume as before.
  • Resuming a sweep after changing the grid shape (adding or removing an axis) no longer silently reuses the wrong cells: previously, with legacy (pre-fingerprint) sidecars, adding an axis projected every new cell onto the old parameters, reused a stale cell across every new axis value, dropped the new dimension entirely, and reported the sweep complete. The resume now keys reuse on the current swept parameters, so a shape change re-runs the full grid, with a one-time warning.
  • Resuming into a working_dir whose numeric job dirs get reused for different cells no longer leaves stale metrics behind: on a cache hit the reused cell now writes its metrics and status into the current job dir, so the dir stays consistent with the config Hydra wrote there. Previously a reused cell (e.g. a=3) kept the leftover metrics of whatever cell last used that dir (e.g. a=1), so the manifest and an offline load_from_dir mis-keyed the value.
  • compare_methods now refuses a sweep that has skipped/never-run cells, not just failed ones. Previously it keyed only on mushin_failures, so a sample= subset or a max_total_seconds-limited sweep — both of which leave NaN cells — would compute statistics silently over a partial grid. It now also keys on the mushin_skipped completeness signal and raises IncompleteSweepError. A new allow_incomplete=True argument bypasses the guard (with a warning) to compute stats over only the completed cells, for exploratory analysis of a partial sweep. As before, the guard keys on the completeness signals (attrs), never on raw NaN values, so a metric that is legitimately NaN for other reasons does not trigger it.

Misc

  • Documentation fixes: load_from_checkpoint docstring corrected (its three params default to None, not "state_dict"/"model"; no load_module param; returns the passed nn.Module, not a LightningModule); run()/wrapper docstrings reference hydra_zen.zen (not the nonexistent mushin.zen); capture_env/resume/load_metrics/workflow_overrides docstrings match actual behavior; the Python support matrix reads 3.10–3.13 (3.14 is not yet a required CI leg); study.md/concepts.md list all seven task batteries; and the correction= option is documented in the compare/LLM/index guides.
  • Documented the sweep-analysis API. mushin.show, mushin.best, mushin.diff, and mushin.export.table now have an API reference page (reference/analysis), and the exploration-to-paper guide covers max_total_seconds, notes=, and tags=. The workflows guide also gains a "Using mushin alongside a hyperparameter search" section documenting the Optuna/Ax/Nevergrad → mushin two-phase pattern (searcher finds configs; mushin runs the reproducible final grid), with no new dependency.
  • Fixed several tests that did not test what they claimed: the LLM "clear winner flagged significant" test now uses seed-varying systems and asserts the comparison is actually flagged significant (its old deterministic systems made the comparison masked, so it asserted nothing about significance); the Holm "is monotone" test now pins the exact step-down values and the monotonicity property; test_on_error_raise asserts the specific RuntimeError("boom") rather than any exception; a conditional-pass tuning test now visibly pytest.skips instead of silently returning; a workflow test no longer scatters multirun/ into the repo root; and a config-group test cleans up its ConfigStore entry.
  • New guide, "From exploration to a paper-ready sweep", documenting the convention for moving from fast throwaway exploration (sample=, cache_dir=, dry_run, show/best/diff) to a clean, complete, reproducible paper run — including why the paper grid must be run fresh (code-era mixing, winner's curse) rather than grown from the exploration directory.
  • Repo hygiene & example fixes: the crashing MNIST examples (compare_classifiers, study_mnist) now name torchvision in their install hint; batteries.py skips (not fails, exit 0) batteries whose optional extra is missing and drops the false "Run one"; two tracked stray mushin_seed*.json files are removed and gitignored; the omegaconf/typing-extensions dependency floors are raised to versions that actually resolve; mushin-mcp on a core install gives an actionable "install [mcp]" message instead of a bare ModuleNotFoundError; and make spell now covers examples like CI.
  • The publish workflow pins pypa/gh-action-pypi-publish to its release tag (a bare commit SHA cannot resolve the Docker-based action's container image, which broke the v0.9.0 publish).

0.9.0 - 2026-07-20

Added

  • Provenance records the accelerator identity (CUDA/cuDNN/device name), seed_everything_per_rank persists the effective seed to a per-rank JSON in the run dir, and a resume no longer overwrites the environment snapshot recorded for earlier cells.
  • Study and evaluate_checkpoints now accept predict_fn/metrics/prob_metrics/correction and forward them to compare (custom-output models and custom batteries work through Study), and checkpoints load lazily one at a time instead of holding every method x seed model in RAM.
  • Sweep axes got first-class support for nested (dotted) params and Hydra config groups (the dataset coordinate is the chosen option name), range(...) overrides expand to their values, and unsupported continuous/adaptive sweeps (interval(...)) raise a clear error instead of crashing or yielding an all-NaN grid.
  • The MCP server gained get_failures (failed cells + tracebacks from the manifest) and get_provenance (git/package/accelerator records) tools, and now summarizes long coordinate axes and metric curves instead of flooding the agent's context with raw arrays.
  • The wheel now ships a PEP 561 py.typed marker, so mypy/pyright/IDEs see mushin's type annotations.
  • MultiRunMetricsWorkflow.to_dataframe() (and experiment.workflow.to_dataframe()) returns the sweep as a tidy pandas DataFrame in one call; README and quickstart show the pandas path alongside the dataset.
  • compare/compare_methods/compare_llms accept correction= -- holm (default), bonferroni, fdr_bh (Benjamini-Hochberg), or none; the statistics guide documents the per-metric family scope.

Changed

  • import mushin is ~5x faster (~0.13s from ~0.61s): torch now loads on first use, not at import time.

Fixed

  • HydraDDP/HydraFSDP now track their child rank processes like Lightning's base launcher -- children are reaped if rank 0 dies (no more orphaned GPU processes), signal forwarding works, and per-rank thread pools are capped; checkpoint/experiment loading errors are real exceptions with actionable messages instead of bare asserts.
  • HydraDDP/HydraFSDP rank startup is staggered by a deterministic, tunable delay (MUSHIN_DDP_LAUNCH_DELAY, default 1s) instead of a hard-coded random 1-5s per rank, and the re-launch command builds a Windows-safe hydra.run.dir override.
  • Paired tests now report the paired effect size (Cohen's d_z) instead of the pooled-variance d; mushin_failures is stored as a JSON attr so failed-sweep datasets survive a netCDF round-trip; a custom metrics= battery no longer inherits the task's probability routing silently (pass prob_metrics= explicitly, unknown names now raise).
  • Resilient sweeps got tougher: a corrupt (mid-write-killed) sweep manifest no longer aborts resume, atomic sidecar writes use unique temp names so concurrent writers cannot clobber each other, and on_error="nan" now writes the full traceback to mushin_error.txt in the failed cell's directory.
  • Resume now verifies a config fingerprint before reusing a completed cell -- changing a non-swept value and resuming re-runs the affected cells (with a warning) instead of silently mixing two configurations into one dataset; resuming also no longer ships the full manifest to every worker.
  • The MCP server now surfaces workflow-sweep metrics from mushin_metrics.json (previously only MetricsCallback .pt files were read), and a single corrupt per-run config.yaml no longer makes the whole experiment unqueryable.
  • parse_score no longer misreads an incidental leading integer ("0 issues found...") as a 0.0 score -- a bare integer with trailing text now raises; the LLM guide documents cache-invalidation rules and when paired tests are valid.

Misc

  • CI now tests macOS (Apple Silicon + the Intel dependency branch), executes notebooks with the netCDF engine they recommend, and the publish workflow smoke-tests the built wheel and SHA-pins the OIDC publish action; the Python 3.14 classifier is withheld until its CI leg is required to pass.
  • Docs: eval-extra callouts everywhere they were missing (examples index, notebooks 02/03/05, custom/segmentation guides, example docstrings), a "Versioning & scope" statement in the README, a tracker (W&B/TensorBoard) how-to in the workflows guide, multirun/hydra_list reference entries, and the decorator quickstart now points at the decorator example. MultiRunMetricsWorkflow.run is fully documented and plot no longer leaks figures.
  • Notebook 07 demonstrates xarray group-by (split-apply-combine), notebook 05 finally shows its plot on the docs site, and a netCDF round-trip test pins string-coordinate datasets.

0.8.0 - 2026-07-20

Changed

  • The evaluation layer (compare, the metric batteries, LLM evaluation, and Study) now requires the optional eval extra: pip install mushin-py[eval]. This keeps the core sweep→dataset install lean — torchmetrics and scipy are no longer base dependencies. Accessing these features without the extra raises a clear install hint. The detection/image/audio battery extras now imply eval.

0.7.0 - 2026-07-18

Added

  • Multi-node DDP support: submitit_slurm_config (derives tasks_per_node from gpus_per_node) and seed_everything_per_rank helpers, a fail-fast check that the launched world size matches num_nodes x devices, MetricsCallback now writes only on global rank 0, and _teardown clears only mushin-set env vars (leaving scheduler-owned vars alone under SLURM/torchrun). See the new multi-node guide.
  • HydraFSDP: a Fully-Sharded Data Parallel strategy that works under Hydra --multirun. Like HydraDDP, it reattaches ranks via the job's saved config.yaml instead of re-executing with sys.argv (which a sweep would run as the wrong job), so FSDP sharded training composes with Hydra sweeps. Exported from mushin; see the new "Sharded training under Hydra" guide.
  • pin_gpu_round_robin(num_gpus): an opt-in helper to pack several small sweep jobs onto each GPU. Called at the top of a Hydra task, it sets CUDA_VISIBLE_DEVICES to job_index % num_gpus so jobs round-robin across devices; run num_gpus * jobs_per_gpu jobs concurrently (via your launcher's n_jobs) to co-locate them. New "Packing small jobs onto GPUs" guide covers the joblib recipe, Ray fractional-GPU, and MPS/MIG.

Fixed

  • HydraDDP/HydraFSDP docs now show the working launcher-provided-ranks pattern; an imperative @mushin.sweep task with strategy=HydraDDP(), devices=N on the local launcher silently trains on one GPU. (#95)
  • A bare list/tuple passed as a sweep argument (the common slip of forgetting multirun) now raises an actionable error — lr=mushin.multirun([...]) to sweep, or mushin.hydra_list([...]) to pass the list as a single value — instead of a generic type-list TypeError.

Misc

  • Added a runnable examples/parallel_sweep.py showing how to submit a sweep out-of-process (run(..., launcher="joblib")), wired into the workflows guide and examples index — the missing runnable counterpart to 0.6.0's out-of-process launcher support.
  • Added an internal cluster-gated validation runbook (docs/superpowers/cluster-validation-runbook.md): a self-contained, per-PR checklist (Phase 1 single-node multi-GPU, Phase 2 multi-node/SLURM) that anyone with HPC access can run to validate HydraDDP, GPU-packing (#59), HydraFSDP (#58), multi-node DDP (#50), submitit dispatch (#86), and resume hard-kill/preemption durability (#83).
  • Docs: README and the workflows guide now lead with the @mushin.sweep decorator; mushin.sweep, out-of-process launchers, and hard-kill-durable resume are covered in the README feature list + API reference; and a new "Analyzing your results" example notebook shows the common xarray.Dataset recipes (reduce over seeds, pick the best config, slice, tabulate, plot, save/reload).
  • Docs: the workflows guide now explains the two axes of sweep parallelism — a Hydra launcher= (distributes the sweep across cells/nodes) vs. HydraDDP (multi-GPU training within one cell) — and how they compose (e.g. submitit + HydraDDP).

0.6.0 - 2026-07-15

Added

  • New @mushin.sweep decorator: turn a plain task-style function into a runnable sweep with no subclassing — experiment.run(lr=multirun([...]), seed=multirun([...])) returns the labeled xarray.Dataset directly. Drop to experiment.workflow (the last-run MultiRunMetricsWorkflow) or experiment.workflow_cls for power features; mushin_resume and all run() resilience options carry through. The MultiRunMetricsWorkflow subclass form is unchanged.
  • Resumable sweeps now survive a hard process kill (OOM, SLURM preemption): each cell records its completion durably from inside its own job, so resume=True never recomputes finished cells. A task may also declare a mushin_resume parameter to receive a ResumeContext (the cell's directory, is_resume, and the last checkpoint) and resume its own training mid-run.
  • Sweeps can now use out-of-process Hydra launchers (e.g. hydra-joblib-launcher, submitit): per-cell dispatch is stdlib-picklable, so run(..., launcher="joblib") parallelizes across worker processes. Previously any process-backed launcher failed with a PicklingError. Resilience, resume, and provenance semantics are unchanged in-process and preserved out-of-process.

Changed

  • Provenance capture no longer spawns git subprocesses per sweep cell. The sweep-constant part of the record (git state + package versions — three git subprocesses via _git()) is now captured once per run() and reused for every cell, instead of being recomputed per cell. An N-cell sweep now spawns 3 git subprocesses instead of 3N (e.g. ~30s less git overhead on a 1000-cell sweep). Each cell's mushin_provenance.json is byte-for-byte equivalent (only timestamp/config vary per cell, as before).
  • import mushin is now ~65% faster (~1.7s → ~0.6s on a cold import): the Lightning integration (HydraDDP, MetricsCallback) and its heavy pytorch_lightning dependency (which also transitively pulled in matplotlib and scipy) now load lazily on first attribute access instead of at import time. The sweep → xarray core no longer pays for Lightning it never uses. All public names resolve unchanged; _tuning/Study still work (they import pytorch_lightning only inside functions).

Fixed

  • Sweeps no longer emit Hydra's "Future Hydra versions will no longer change working directory at job runtime" deprecation warning: MultiRunMetricsWorkflow.run now sets hydra.job.chdir=True explicitly (the behavior the workflow already relies on).

Misc

  • Added six runnable EQUINE-style example notebooks (sweeps, compare + batteries, Study, resilient sweeps, LLM evaluation, scikit-learn) under an "Example notebooks" section of the docs, executed in CI via nbmake so they stay current.
  • CI: a batteries-clean-install job builds the wheel, installs it (non-editable) with the detection/image/audio extras into a fresh env, and runs all 7 battery examples against it — catching packaging / optional-extra issues the editable test job would miss.
  • Documentation: a Built-in batteries guide covering all 7 benchmark batteries (classification, segmentation, detection, regression, retrieval, image_quality, audio) with real-model recipes and CI-tested runnable toys.
  • Documentation: add a top-level Examples page indexing all runnable example scripts (sweep_to_dataset, sklearn_sweep, compare_classifiers, study_mnist, segmentation_demo, compare_llms_demo, batteries), each with a one-line description and a link, plus a pointer to the batteries guide.
  • Documentation: add sweep resilience + provenance (0.5.0) to the README "What it provides" list.
  • Documentation: the Built-in batteries guide now shows real captured outputs under every battery, plus a flagship notebook-style walkthrough (comparing two classifiers) with the actual summary table, significant p-values, and interpretation.

0.5.0 - 2026-07-14

Added

  • Sweep resilience and provenance: run(on_error="nan") records failed grid cells as NaN and keeps going (default stays "raise"); run(working_dir=..., resume=True) re-runs only the failed/missing cells and fills them in place; compare/Study refuse statistics on an incomplete sweep (IncompleteSweepError) until you resume; every run writes per-job provenance (mushin_provenance.json: git SHA, versions, config) with an opt-in capture_env=True full dependency snapshot. Study accepts on_error/resume/capture_env for training sweeps.

0.4.1 - 2026-07-13

Added

  • Added a runnable scikit-learn sweep example (examples/sklearn_sweep.py) demonstrating that the framework-agnostic MultiRunMetricsWorkflow wraps non-Lightning models (here LogisticRegression) and still returns a labeled xarray.Dataset. scikit-learn is a dev-only dependency for the example and its test; the package itself has no scikit-learn dependency.

Misc

  • Documentation: add a "Frameworks: Lightning-first, sweep layer agnostic" section to Core concepts, clarifying that the sweep->dataset workflow wraps any framework (scikit-learn, XGBoost, ...) while compare/auto-tuning/HydraDDP are PyTorch/Lightning-specific.
  • Documentation: add a Changelog page to the docs site that embeds CHANGELOG.md (self-maintaining, no duplication).
  • Documentation: add an API reference page for the auto-tuning helpers (tune_batch_size, tune_learning_rate), which had a usage guide but no auto-generated API docs.
  • Documentation: announce the 0.4.0 release with a "What's new" highlights callout on the docs home page.
  • Documentation: refresh the README for 0.4.0 — add auto-tuning and the task API/batteries to the feature list, note the framework-agnostic sweep layer (scikit-learn example), and fix the stale viz extra description that referenced the now-deprecated RobustnessCurve.

0.4.0 - 2026-07-13

Added

  • Four new built-in task batteries — regression, image_quality, audio, and retrieval — plus a per-Task update_fn hook for metrics whose update step is not (preds, target) (used by retrieval). LPIPS and STOI sit behind the optional [image] and [audio] extras. Each battery is exported from mushin.
  • Overhauled the documentation: runnable, tested example scripts (MNIST) that the guides embed verbatim, deeper guides with annotated output, and new Tutorial, Core concepts, Custom metrics/predict_fn, and Statistics pages.
  • Public task API: Task dataclass plus register_task, get_task, and list_tasks make evaluation tasks first-class and reusable. compare(...) and Study(...) now accept either a Task object or a registered task name, and the built-in batteries (classification_battery, segmentation_battery, detection_battery) are exported from mushin.
  • compare(task="detection") — compare trained object detectors across seeds over the full torchmetrics.detection bounding-box family (mean-average-precision plus the IoU/GIoU/CIoU/DIoU variants), reporting every scalar metric with Holm-corrected significance. Needs the optional mushin-py[detection] extra.
  • mushin.llm.compare_llms — compare LLM systems (callables or hydra-zen configs) across reproducible stochastic seeds with a metric (a plain scorer, a torchmetrics text metric, or the new llm_judge helper), reporting Holm-corrected statistical significance. Includes an on-disk output cache. Provider-agnostic: you bring the systems, data, and judge model.
  • tune_batch_size / tune_learning_rate: opt-in, reproducibility-preserving auto-tuning. Lightning's batch/LR finder runs once, the result is pinned to a sidecar YAML, and later runs reuse it. tune_batch_size pins a hardware- independent effective batch, choosing the largest device batch that both fits and divides the per-device target exactly, so the effective batch is identical on any GPU count with no drift.

Changed

  • Modernized the codebase to Python 3.10+ idioms now that 3.9 is no longer supported: ruff target-version is py310, and the pyupgrade auto-fixes (Optional[X]/Union[X, Y] -> X | None/X | Y) plus explicit zip(..., strict=True) have been applied. No behavior change.
  • import mushin is now lightweight: the benchmark and llm subsystems load on first use instead of at import time, so a bare import no longer pulls the battery/eval machinery. Every existing top-level name still resolves. The default Hydra config/job name is now mushin_workflow (was rai_workflow), and the new mushin.original_cwd() helper anchors relative paths in task() against the launch directory rather than Hydra's per-job output directory.

Fixed

  • Fixed the docs example scripts surfaced in review: the Study example now trains and evaluates on separate MNIST splits and resolves its checkpoint directory to an absolute path (so it works under Hydra's per-job chdir); the custom-metrics guide no longer implies Study accepts metrics/predict_fn (those are compare-only).
  • Hardening from a repo-wide adversarial audit: load_experiment now loads DDP/nested-layout configs (was silently None) and labels each job's own working_dir; the benchmark compare() path masks zero within-group-variance comparisons (no more false-positive significance — now consistent with compare_llms, both via a single compare_methods); MetricsCallback keeps every metric series aligned to the epoch axis (NaN-padding missing metrics, reserving the epoch key); Study labels the seed coordinate with the real seed values and relocates checkpoints across filesystems (shutil.move); multirun overrides are built with Hydra's choice(...) syntax so comma-bearing and single-element values are no longer mis-split; and several legibility/robustness fixes (to_dataset empty-method error, _to_device namedtuple support, '='-bearing override parsing, load_from_dir cache reset, dropped the never-working dict-override path).

Removed

  • Dropped support for Python 3.9 (end-of-life October 2025); mushin now requires Python >= 3.10. This refreshes the dependency lockfile to patched versions of pillow, urllib3, aiohttp, filelock, requests, pytest, and pytorch-lightning, clearing the Dependabot security alerts anchored on the old Python-3.9 dependency branch. The scipy (>= 1.13) and matplotlib (>= 3.9) floors are raised to their first NumPy-2-compatible releases, and the mcp extra no longer needs a Python version gate.

Deprecated

  • BaseWorkflow and RobustnessCurve are deprecated at the top level and will be removed in a future release. Import them from mushin.workflows instead; accessing them as mushin.BaseWorkflow / mushin.RobustnessCurve now emits a DeprecationWarning.

Misc

  • Added a @claude mention bot (GitHub Actions): mention @claude in any issue or PR comment to have Claude answer questions or make changes. PR reviews stay with the Codex connector.

0.3.0 - 2026-06-24

Added

  • Optional read-only MCP server (mushin-mcp, pip install "mushin-py[mcp]", Python >= 3.10) that lets Claude Code and other MCP clients list experiments, summarize swept parameters and metrics, read configs, and inspect saved datasets — with no training or sweep launching. (#32)
  • Added a documentation website (MkDocs Material) with how-to guides and an auto-generated API reference, deployed to GitHub Pages.
  • The test suite now runs on Windows in CI (windows-latest) across Python 3.9-3.14, alongside Linux.

Changed

  • Raised minimum dependency floors to a tested minimum and added a min-versions CI job that runs the suite against the lowest declared versions, so the floors stay honest. The old floors did not actually work: several were incompatible with NumPy 2 (the non-Intel floor), so torch (>= 2.4), pandas (>= 2.2.2), xarray (>= 2024.6), and netCDF4 (>= 1.7.0) were raised to their first NumPy-2-compatible releases. pytorch-lightning was raised to >= 2.4 (the pre-2.0 1.5 API does not run this package) and hydra-zen to >= 0.10 (for multirun). Intel-macOS keeps torch 2.2.x / NumPy 1.x.

0.2.1 - 2026-06-23

Added

  • Adopted towncrier news fragments with a CI gate — each PR now adds a changes/ fragment, assembled into the changelog at release.

Fixed

  • Point PyPI project links at the mushin repo (Homepage/Repository/Issues/Changelog) instead of only the upstream toolbox.
  • Synced uv.lock's recorded project version to 0.2.0.

0.2.0 - 2026-06-23

Added

  • Study — orchestrate a multi-seed training sweep (via Hydra/Lightning) and route the trained models into compare in one call; Study.from_checkpoints(...) for eval-only comparison of existing checkpoints.
  • Segmentation support in compare (task="segmentation"): mean IoU, Dice, pixel accuracy, and macro precision/recall, with ignore_index for void labels; plumbed through Study.
  • Streaming evaluation — metrics update per batch (O(C²) memory for the segmentation battery); one unified eval loop for all tasks.
  • A task registry so new task types self-describe their battery and predict step.
  • compare gains a prob_metrics override and rejects one-shot data iterators.

Changed

  • Package author/maintainer set to Josue Martinez-Martinez (previously the original MIT-LL authors; their attribution remains in LICENSE and the README).
  • README: documented compare and Study; clarified install (pip install mushin-py → import mushin); absolute logo URLs so images render on PyPI; transparent dark-mode logo.

Fixed

  • Significance: compare warns when the chosen test cannot reach alpha at the given seed count (e.g. Wilcoxon with ≤5 seeds).
  • cohens_d returns signed infinity (not 0.0) when within-group variance is zero but the means differ.
  • Several review-driven fixes: Hydra-scalar method names in Study sweeps, NaN-safe Holm correction, ragged-results validation, and an empty-checkpoints guard.

0.1.0 - 2026-06-22

First release of mushin as a standalone package — a fork of the rai_toolbox.mushin workflow layer from MIT Lincoln Laboratory's (unmaintained) responsible-ai-toolbox.

Added

  • Standalone packaging: pyproject.toml, MIT license (original MIT-LL copyright retained), README, and a vendored value_check so the package no longer depends on rai_toolbox.
  • uv-based development workflow with a committed uv.lock.
  • Ruff (lint + format) and codespell, with pre-commit hooks.
  • Makefile developer shortcuts (make check, make test-py, ...).
  • GitHub Actions CI across Python 3.9–3.14.
  • Community health files: CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, issue forms, PR template, Dependabot, CODEOWNERS.

Changed

  • Modernized type hints (PEP 585 generics, collections.abc imports).
  • Declared support for Python 3.9–3.14; NumPy >= 2 except on Intel-macOS, which is capped at NumPy 1.x / torch 2.2.x (no newer wheels on that platform).

Fixed

  • Compatibility with PyTorch 2.6+, which changed torch.load's default weights_only to True: pass weights_only=False when loading trusted, self-produced metric and checkpoint files.
  • test_overrides_roundtrip: exclude Hydra-reserved tokens (null/none/ nan/inf) from the generated-string strategy.
  • Updated deprecated xarray.Dataset.dims to .sizes in tests.