Skip to content

Releases

mutagate v0.9.5

mutagate v0.9.5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Nov 12:08
d39e7bb

The first version after 0.9.2 with a GitHub Release. It has the changes of 0.9.3 and 0.9.4; the code of the package is the code of 0.9.4.

Fixed

  • Release: the install check of the publish job no longer has a package size limit of its own (300 KB). The limit is 350 KB, in test/package.mjs only. The 0.9.4 package (301,809 bytes) failed that check after its skill tag was pushed.

mutagate v0.9.2

mutagate v0.9.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Nov 16:34
b1125c8

Added

  • GitHub Copilot CLI is a supported harness (docs/copilot.md, #35). Its own hooks pass --harness copilot, and mutagate maps the Copilot payloads (create, edit, apply_patch, bash) to its own. A test edit starts a background run in a detached process, because Copilot has no async hooks; the report reaches the agent as additionalContext with its next edit or shell call (read_bash too). agentStop is the gate, inside its 600 s hook timeout: it works for up to gateBudgetSec, starts a worker for a target still pending, asks the agent to set bash initial_wait above check --wait N, allows after 8 blocks in a row (the Copilot limit), and at 570 s allows and stops its runs. Messages of an allow are progress lines that the model does not see. Subagent edits join the root session (through parentAgentId) and are gated at the root agentStop. The Copilot cloud coding agent is inert unless the new config key copilotCloud is true (experimental). In a Copilot sandbox mutagate says mutagate inactive: cannot write <path> and does nothing else. The live eval passes for all six languages (README matrix), and VS Code is not claimed.
  • install --agent copilot installs the GitHub Copilot hooks in their own file: .github/hooks/mutagate.json, or with --scope user $COPILOT_HOME/hooks/mutagate.json (else ~/.copilot/hooks/mutagate.json). Every hook command exits 0, also without the skill dir, Git or Node. install refuses a second scope and names the existing file; uninstall --agent copilot deletes the file when only mutagate entries are left.
  • install --agent auto selects Copilot when the shell has COPILOT_CLI or COPILOT_AGENT_SESSION_ID, or the repo has .github/hooks/ or .github/copilot/ (with --scope user, also COPILOT_HOME or ~/.copilot). A .claude/ dir that holds only skills/ no longer selects Claude when one of these is present. The no harness detected list names copilot.
  • doctor checks the Copilot install when a Copilot hook file or signal is present. It warns when Copilot runs more than one mutagate hook file (both scopes, or another file in a hooks dir), when a Claude project install has no Copilot hook file, and when the skill copy that Copilot loads (.github/skills, else .agents/skills, else .claude/skills) has another VERSION than the copy that its hooks run. It fails when the cache root is not writable, and gives the folder trust and managed hooks hints. It also warns when copilot --version is not the tested Copilot CLI 1.0.107.
  • Live eval: npm run eval -- --harness copilot drives Copilot CLI 1.0.107 with claude-sonnet-5, the host copilot login or COPILOT_GITHUB_TOKEN from .env, and a fresh COPILOT_HOME per run. npm run test:driver also runs the Copilot hook file (not on Windows), and test:drift skips missing Copilot recordings.

Changed

  • CLI commands in a Copilot CLI shell join its session through COPILOT_AGENT_SESSION_ID, after CLAUDE_CODE_SESSION_ID and CODEX_THREAD_ID. waive --apply is refused when COPILOT_CLI is set, as in other agent sessions. In the Copilot root agent shell, run, check, status and waive use the Git top level as the repo (its data dir and .mutagate/config.json), not the shell's directory; run reads a relative test path against the shell's directory, else against the Git top level.
  • The Copilot cloud coding agent also runs the Claude hooks of .claude/settings.json. These inherited calls no longer give the SessionStart notice mutagate inactive under Copilot in a cloud job, unless the config has copilotCloud: true.
  • Without a Copilot hook file, the SessionStart notice under Copilot is now mutagate inactive under Copilot: this repo has only the Claude Code install; run `<skill>/scripts/mutagate install --agent copilot`. It named mutagate 0.9.2 before.
  • Hook rows in trace.jsonl (MUTAGATE_TRACE=1) have an exit field with the hook exit code; rows of Copilot subagent calls also have agent. A Copilot gate stopped by its watchdog has the decision deadline.
  • run --sync prints a pending target with the gate's message, mutagate: <target> results pending; run <skill>/scripts/mutagate check --wait <gateBudgetSec> (with --json: {"target": …, "status": "pending", "message": …}), not as an unscored result with "results pending after source changes". The exit code stays 1.
  • Tool updates: PIT 1.21.0 → 1.30.2, the Arcmutate Kotlin plugin 1.4.0 → 1.5.2 and gomutants 0.6.1 → 0.7.2; the tested StrykerJS is 9.6.1 (was 9.1.1) with Vitest 4.1.12 (was 3.2.4), and the tested pytest is 9.2.0 (was 8.4.2) with mutmut 2.5.1 and 3.8.1. Kotlin Tier A (Arcmutate licence) is not tested with plugin 1.5.2, and of the live agent evals only the Copilot CLI ones ran with these updates.
  • Since PIT 1.23, incremental history is a plugin: mutagate now downloads org.pitest:pitest-history-plugin 0.0.1 (SHA-256 pinned) with the PIT jars, so PIT keeps its history between runs. Proxy or offline setups: run node <skill>/scripts/cache-jars.mjs again after the update; until then, with MUTAGATE_OFFLINE=1, Java and Kotlin runs fail with offline: missing pitest-command-line. PIT EQUIVALENT mutants are now ignored like Stryker Ignored ones: they are not scored and not counted as errors.
  • gomutants moved to github.com/gomutants/gomutants; mutagate installs 0.7.2 on first use unless a gomutants is on PATH, which it uses whatever its version: replace an older one with go install github.com/gomutants/gomutants@v0.7.2. It builds with Go 1.26.10 or later; an earlier Go downloads that version (GOTOOLCHAIN=auto, the default). gomutants 0.7 keeps a variable or import in use when a mutant removes its last use, so these mutants now run instead of failing to compile, and you can see new survivors of this kind (on the Go eval task 15 more mutants are killed and no score drops).
  • Test fixtures and eval tasks: the dependency updates above, plus an npm overrides pin of qs 6.16.1 (typed-rest-client 2.3.1 pins 6.15.1), clear the reported advisories in the lockfiles (@babel/core, ajv, zod, vitest, @vitest/mocker, tinypool, qs, pytest CVE-2025-71176). minimatch 10.2.6 and deepmerge 4.3.1 (Jest 29) have no upstream fix and stay.

mutagate v0.9.1

mutagate v0.9.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 08 Nov 20:08
352aab6

Added

  • After the skill is updated and install is not run again, SessionStart says Hooks are from mutagate X, skill is Y: rerun mutagate install --agent <harness>, with --scope user for a user install, and doctor warns for each such project or user install (WARN <harness> <scope> install). install now writes its version and scope into the SessionStart hook command, and the OpenCode and Pi adapters send them in their payload; hooks from earlier versions have none, so run install again once after this upgrade (ADR-0017).

Changed

  • The runners moved from mutagate.mjs to the lazily loaded scripts/runners.cjs, which is hashed into fingerprints.
  • The tested mutmut 3 version is now 3.8.1; mutmut 3.8.0 crashes collecting stats with pytest 9.2.
  • In a Git repo, detection and target resolution use the files Git lists (git ls-files -co --exclude-standard) instead of a repo walk, so a file that Git ignores no longer counts for detection and is no longer a target, and files in submodules or nested repositories are no longer targets (ADR-0016). Fingerprints and Python and .NET copies still include ignored files.

Fixed

  • doctor no longer fails project adapter installed when the harness has only a user install: the check is now adapter installed and counts project and user installs.
  • Mutation tool process trees (PIT, Stryker, mutmut, Stryker.NET, Go tools, Maven/Gradle builds) no longer outlive mutagate: it kills them when it exits, and after SIGINT, SIGTERM or SIGHUP (Ctrl-C on run --sync, a harness killing a hook at its timeout) it kills them and exits with 128+signal number.
  • A lock whose pid was reused by an unrelated process (after a reboot or crash) no longer keeps a target in flight: lock holders renew their lock every 10 s, and a lock whose holder is dead or has not renewed it for 60 s is abandoned. Only one waiter takes over an abandoned lock, and a process deletes only a lock it still holds.
  • The async PostToolUse hook (--mutate) no longer runs past its 900 s timeout, where the harness killed it mid-run and lost the results: it ends within 850 s, starts a stale target only when its last run fits in the time left, and leaves skipped or cut targets pending for the gate.
  • A run cut at the gate deadline or the rerun deadline is no longer reported as exceeding runBudgetSec when it started with the full run budget (after a wait for the target lock or a rerun after edits).
  • A run killed at its deadline is no longer published as an error result when the tool closes with an exit code instead of a signal (on Windows, or when the tool exited but a child process kept its output open).
  • An invalid .mutagate/waivers.json no longer turns the gate off: it adds no waivers and the report warns about it. Corrupt cached JSON (a torn write after a crash) no longer does either: a corrupt result or classpath file counts as missing and reruns, and a corrupt session state file starts blank with a note on stderr. An unexpected error in one target skips only that target, with a warning, and check exits 3, as for an error result.
  • status --json and run --sync --json no longer report a gremlins result as gomutants after it is loaded back from the cache.
  • A directory that mutagate cannot read (such as a Docker volume owned by another user) no longer disables mutagate for the whole repo: detection, test registration and fingerprints skip it, and run no longer exits 3. A file that mutagate cannot read no longer does this either: it counts as empty, and Python and .NET runs do not copy it. Repo scans also skip virtual environments of any name (a subdirectory with pyvenv.cfg), htmlcov/, test-results/, and .coverage data, .DS_Store, Thumbs.db and editor swap and backup files, so these no longer make results stale or get copied for Python runs.
  • Concurrent runs of different Java or Kotlin targets in one repo (gate, async hook, workers) no longer compile at the same time and write the same target/ or build/ outputs: the Maven or Gradle compile step holds one lock per repo.
  • An absolute path through a symlinked alias of the repo (macOS /tmp → /private/tmp, a symlinked projects dir) is no longer treated as outside the repo, so a test written through it is registered.
  • TypeScript runs no longer end as error results ("No tests were executed") when the path of the cache root (CLAUDE_PLUGIN_DATA, XDG_CACHE_HOME or ~/.cache) contains a symlink, such as a symlinked home dir or the macOS temp dir: mutagate uses the real path of the cache root, so Jest and Vitest get real paths for the Stryker sandbox and config.
  • A deleted hook cwd (the agent ran cd build/x, then a clean) no longer makes every hook fail, Stop included, for the rest of the session: the hook uses CLAUDE_PROJECT_DIR, else its own working directory.
  • mutmut 2 runs no longer fail when the VIRTUAL_ENV path contains a space.
  • A backward clock jump no longer stretches the async hook's 6 s quiet wait or a worker's 3 s start delay.
  • Hooks on large repos are faster: test edits and SessionStart no longer compile each glob again for every repo file (target resolution on a 15,000-file repo took 300 ms), a finished run no longer hashes the project inputs while it holds the session state lock (other hooks waited up to 5 s, then dropped their update with "session state busy"), and a result loaded again in one process is not normalized again (per-mutant source reads and a git diff). npm run test:performance also measures a 15,000-file Git repo.
  • The cache no longer grows without limit (it reached 3.5 GB in weeks on an eval machine): once a day SessionStart starts a background prune that deletes report dirs older than 24 h (left by killed runs or MUTAGATE_DEBUG=1), session state and results unused for 14 days, and the data dir of a repo path that no longer exists, including its .NET scratch copies. A data dir from before this version, which does not record its repo path, is deleted after 14 days unused. A data dir with a held lock is skipped. A trace.jsonl over 10 MB moves to trace.jsonl.1. jars/, tools/ and recorded/ stay.
  • A failed background spawn (worker or cache prune) no longer crashes the hook, and on Windows these spawns no longer open a console window.
  • Hooks installed with absolute paths (user scope, a skill outside the Git top level, no Git) no longer fail with exit 127 after a Node upgrade (nvm, Homebrew) removes the Node that ran install: on macOS and Linux the command runs the skill's scripts/hook, which picks Node from MUTAGATE_NODE, scripts/.node-path, then PATH. Run install again to get the new command.
  • GitHub Copilot, which also runs the hooks in .claude/settings.json, no longer denies every file edit when a clone has no skill dir, git or Node: on macOS and Linux the Claude SessionStart, PreToolUse and sync PostToolUse commands end in || true and exit 0 in these cases, and scripts/hook exits 0 when it finds no Node (before: exit 127). The Stop, SubagentStop, TaskCompleted and --mutate commands and the Codex commands do not change. Run install --agent claude again to get the new commands.
  • GitHub Copilot CLI no longer runs mutagate through the Claude hooks in .claude/settings.json, where each edit waited for mutation runs and Stop spent gate rounds without a block: these inherited calls are inert (exit 0, no state, runs or gate; trace decision inherited), and while no Copilot hook file exists (.github/hooks/mutagate.json, ~/.copilot/hooks/mutagate.json) each session starts with mutagate inactive under Copilot. The skill update is sufficient; Copilot support comes in 0.9.2 (ADR-0015).

mutagate v0.9.0

mutagate v0.9.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Oct 13:32

First public release (beta).

Added

  • Scoped mutation runs when an agent writes a test: PostToolUse registers the test's targets and a detached worker runs the runner in the background.
  • Gate at Stop, SubagentStop and TaskCompleted, and in mutagate check: blocks while a target scores below threshold (default 0.8), for up to maxRounds (default 2); mode: "advise" never blocks.
  • Runners: PIT 1.21.0 for Java and Kotlin (SHA-256-pinned jars, Kotlin Tier B junk filter, optional licensed Arcmutate Tier A), mutmut 2.5.1 / 3.8.0 for Python (pip or uv), Stryker 9.1.1 for TypeScript/JavaScript (Jest, Vitest), gomutants 0.6.1 with gremlins 0.6.0 fallback for Go, Stryker.NET 5.0.0 for C# (xUnit).
  • Harnesses: Claude Code and Codex CLI (native hooks), OpenCode (plugin) and Pi (extension).
  • Commands: run, check, status, detect, doctor, waive, install, uninstall, --version / version.
  • Fingerprints that make results stale after test, production, config or build-input edits.
  • Agent-caused errors (red or non-compiling tests, red baseline) block once; infrastructure errors fail open; error results retry once.
  • Waivers: agents propose, humans approve.
  • Portable project installs: hooks run through a Git-top-level command, so a committed skill dir works in each clone (ADR-0013).
  • Install from the generated skill branch with npx skills add keyboardsamurai/mutagate#skill -a <harness> --copy (ADR-0014); each release attaches the package tarball, SHA256SUMS and a build provenance attestation.
  • doctor prints the version first, hides the tested-versions JSON unless --json, and ends a full pass with the restart instruction.
  • install --agent auto without a detected harness prints the install command per harness and exits 2.
  • Live eval suite (npm run eval): every harness × language pair passed the natural and forced scenarios; records in test/evidence/live/.
  • SECURITY.md, THIRD_PARTY.md, CONTRIBUTING.md, issue templates.

Known limitations

  • Windows is experimental.
  • Tool binaries from go install and NuGet are not hash-pinned by mutagate.
  • Five matrix cells passed one of two runs (see the README).