Skip to content

Lockfiles

An update that leaves a stale lockfile behind is not an update. When a changed manifest has a committed lockfile, the Count regenerates it with the ecosystem’s real tool, and the manifest and lockfile go into the same verified commit. If the tool fails, nothing is published.

Lockfile Tool Command
aube-lock.yaml, pnpm-lock.yaml aube aube install --lockfile-only --ignore-scripts, once per lockfile, with aube’s default-lockfile set to that file’s name
package-lock.json, npm-shrinkwrap.json aube, or npm npm install --package-lock-only --ignore-scripts
yarn.lock (Classic, v1) aube aube install --lockfile-only --ignore-scripts, with default-lockfile set to yarn.lock
yarn.lock (Berry) Yarn yarn install --mode=update-lockfile
bun.lock Bun bun install --lockfile-only --ignore-scripts
Cargo.lock Cargo cargo update -p <crate>@<old> --precise <target>
go.sum Go go get <module>@<target>, then go mod download or go mod tidy
.terraform.lock.hcl Terraform terraform providers lock
uv.lock uv uv lock --no-build --upgrade-package <package>, or <package>==<target> for a lockfile-only update
poetry.lock Poetry poetry lock --no-plugins, under the Count’s launcher
pdm.lock PDM pdm update --no-sync --update-reuse <packages>, or pdm lock --update-reuse, with --skip :all, under the Count’s launcher
pylock.toml uv the uv export its header records, again with --no-build, after uv.lock; see pylock.toml
Pipfile.lock none not regenerated; see what is refused
Chart.lock, requirements.lock Helm helm dependency update; see Helm
PklProject.deps.json Pkl pkl project resolve --no-cache, on a PklProject the Count renders; see Pkl
packages.lock.json none not regenerated; see what is refused
Gemfile.lock Bundler bundle lock --update <gems>, on a Gemfile the Count renders
composer.lock Composer composer update <packages> --with-all-dependencies --minimal-changes --no-install --no-scripts --no-plugins, plus --with <package>:<target> for a lockfile-only update
mise.lock mise mise lock with the lockfile’s recorded platforms
flake.lock nix nix flake update <input>, or nix flake update for maintenance
apm.lock.yaml APM apm lock, or apm lock --update for maintenance
.github/workflows/actions.lock gh-actions-lock gh-actions-lock --no-interactive --no-onboard --no-narrow --ignore-local-actions --json=valid,findings <workflows>, or the same with --relock and no workflows for maintenance; then the tool’s offline --verify-local and online --no-fix checks over the same workflows

A mise.lock records the configuration in its own directory and above it, as mise does. A mise.toml in a subdirectory is locked by a mise.lock of its own, and with none beside it the Count updates the manifest alone. Tools with no platform entries, such as rust, lock for the platforms the rest of the lockfile records. A tool list mise never loads as configuration (mise lookups) is locked by a mise.lock beside it, if there is one, as if it were the configuration of its directory; a mise.lock beside both a tool list and a configuration fails the update. Lockfile maintenance relocks the entries a configuration or tool list the Count reads declares, and leaves an entry nothing declares as it is locked.

Tools a task installs for itself are locked with the rest: those under [tasks.<name>] in mise.toml or .mise.toml, and those in a TOML task file the config includes with task_config.includes. The mise.lock beside the config that includes a task file locks it, wherever the task file is. A tool declared with different versions is locked at each. mise locks the same version with different options as a separate entry, which the Count cannot write, so that update fails with a message saying so.

mise lock runs the way a mise lookup does: each tool it locks, with its options, passes the same name and option checks first, so a name with an asdf: or vfox: backend or an option pointing at a cloud instance-metadata endpoint fails the update before mise starts. mise runs with those plugin backends disabled. A tool whose registry entry lists a plugin backend first, such as yarn or poetry, is locked with its next backend (aqua:yarnpkg/berry, pypi:poetry), and the lock entry’s backend records that one.

mise lock runs on a tools-only configuration, without the project’s [env] and settings, so a tool the Count follows to another source (package backends) is relocked from that source by handing it to mise the way mise reads it:

  • An npm tool’s registry goes in a user .npmrc, with the operator’s credentials for it.
  • A pypi or pipx tool’s first index goes in MISE_PYPI_REGISTRY_URL, which mise lists the tool from as it lists from pypi.registry_url. An exact version is locked without listing it, wherever the installer finds it. mise reads the tool’s own files for its dependency graph from that first index alone, and resolves the rest with uv lock, passing uv’s own variables through, so where the followed list has more indexes, UV_INDEX holds all of them in order, ahead of mise’s index as uv asks them when mise installs the tool, and UV_INDEX_STRATEGY the strategy across them (unsafe-best-match for pip’s extra indexes). A tool the first index lacks is locked without a graph, as mise lock locks it in the project; an update whose new version only a later index serves, of a tool locked with a graph, fails, since mise would drop that graph.
  • A go tool’s GOPROXY list goes in GOPROXY, which mise lists the tool from itself. GOPRIVATE and GONOPROXY stay out: a followed tool’s module paths match neither, and mise would hand the listing to go.
  • A cargo tool gets nothing. mise lists cargo versions from crates.io’s index whatever the registry, and runs no cargo to lock one. An exact version needs no listing, so an update locks it as the registry would; a range that mise resolves to another version than the target fails the update. Lockfile maintenance leaves the tool as it is locked rather than bump it from crates.io.

The operator’s basic credentials for the Python indexes and the Go proxies go in a .netrc for the run, which mise reads through MISE_NETRC_FILE and uv through NETRC; only an entry whose prefix is a bare host qualifies, as for Go and uv. Tools of one backend that one run would send to two sources, such as a followed pipx tool beside one from PyPI, fail the update.

The Count finds a tool’s lock entry under the name mise records it by: without bracketed options or a core: prefix, and with nodejs, golang and dotnet-core written as node, go and dotnet. Two declarations that mise records under one name, such as node and nodejs, fail the update. Only the updated tools’ entries are written. Every other entry keeps its committed bytes, including fields a newer mise wrote that the Count’s mise does not know. Any other change mise makes fails the update with the entries it changed: another tool’s entry, an entry added or removed, or the lockfile’s own metadata such as lockfile_version. One metadata change is part of an update: mise removes an npm package’s [package-pins] row once the updated tool’s new entry records that same repository as its provenance, and the Count removes it with the entry.

mise keeps the dependency graph of an npm: or pipx: tool in a sidecar directory beside the lockfile (.mise/locks/<tool>/<version>/, or .config/mise/locks/<tool>/<version>/ for a lockfile in .config), and the tool’s entry points at it by path and digest. An update writes the new version’s sidecar and removes the old one’s. Other tools’ sidecars stay as committed. These directories are mise’s alone: no other manager reads the package.json, aube-lock.yaml, pyproject.toml or uv.lock inside them. The update fails when mise writes an entry without the graph the committed one had, a sidecar its digest does not match, or a sidecar no updated entry points at.

A Cargo update across a semver-incompatible boundary, such as 0.22 to 0.23 or 1.x to 2.x, adds a second entry beside the old one, because other crates may still require it. The Count runs cargo update --workspace for it, which locks what the edited manifests need and moves no other package, then pins the entry to the target with --precise if Cargo locked a newer release.

Install scripts are skipped, and no tool runs code from the repository or its packages; a lock that cannot be regenerated without it is refused (see what is refused). A lockfile that does not change after an edit that changed recorded dependencies fails the branch, so a tool that says “up to date” without re-resolving cannot publish a stale lock. An edit that cannot affect the lock, such as a description, is not a failure. Where the Count can read the lock back (npm, aube-lock.yaml, Bun, Cargo, uv, Poetry, PDM, pylock.toml, Bundler, Composer, Terraform providers, Chart.lock, PklProject.deps.json), the requested version must be the one the new lock records; Pkl may lock a newer one of the same major version (see Pkl). pnpm-lock.yaml and yarn.lock are not read back.

A vulnerable package that only a lockfile records, with no declaration of its own, gets a security fix that changes the lockfile alone. Two locks can move one:

  • Cargo.lock: cargo update -p <crate>@<current> --precise <fix>.
  • package-lock.json: npm, whatever lockfiles.npmEngine says, since aube keeps a version a dependent’s range excludes and npm does not. npm has no command that moves one nested package to an exact version, so the run takes two passes. The first runs npm install --package-lock-only with a temporary overrides entry in the root package.json, "<package>@<current>": "<fix>", which moves every copy at the vulnerable version and no other. The manifest is then put back and npm runs again as it would for any update. npm keeps a moved copy only where every package that depends on it allows the fix, and puts the rest back.

The new lock must show the fix and no copy left at the vulnerable version, with every other version of the package where it was. When a dependent’s range holds a copy back, the update is held with that reason until the repository changes; the dependent has to move first. The temporary override never reaches the pull request, and the Count does not write a permanent overrides or resolutions entry. A package the repository already overrides is left where the repository put it, and the update is held saying so.

npm’s output for the move matches aube’s for the rest of the lock: on a lock aube keeps, only the moved entries change, and aube’s next run leaves them as npm wrote them. Another lockfile in the same directory, such as a yarn.lock, is regenerated as it would be for any update; only package-lock.json is moved. npm never writes a yarn.lock beside its lock: the Count sets it aside while npm runs, and Yarn regenerates it.

aube keeps its own aube-lock.yaml, in pnpm’s v9 format, beside the manifest. The Count regenerates a committed one in place. When it sits beside another lockfile he regenerates both, each by name, and never lets aube start a new one. Where aube reads several, aube-lock.yaml wins over pnpm-lock.yaml.

A release that a manifest’s range already allows needs no manifest edit. For Cargo, pyproject.toml (uv and Poetry), Bundler and Composer the default version policy is preserve, so such a release becomes a lockfile-only update: the PR changes the lockfile and no manifest, and moves that package to the chosen version. The lock may also contain the transitive changes the new version needs, which Composer resolves with --with-all-dependencies --minimal-changes.

  • Cargo, uv and Composer are told the exact version on the command line.
  • Poetry and Bundler cannot be. For those the Count pins the declaration to the target for one resolution, restores the manifest, and resolves again, which keeps the locked version and writes the original constraint back into the lock. The manifest in the PR is untouched.
  • The version the update starts from is the one the lockfile records for the manifest’s own dependency (for Cargo, the crates.io edge of the manifest’s package, or of every member for a workspace root; not another version of the same crate locked for a dependent, a path dependency outside the workspace or a git dependency), and the new lock must record the target or nothing is published. A workspace root’s members are read from the manifests in the scan. A virtual root (a [workspace] with no [package]) with none of them there has no locked version for its dependencies and gets no lock-only update; a root with its own [package] always counts that package’s dependencies, members or not.
  • Without a committed lockfile there is nothing to change, so the release is not an update. npm and Bun have no such command, so they only get this when the scheduled refresh below runs.

aube rewrites pnpm and npm lockfiles in place about 10 to 20 times faster than pnpm or npm (0.1 s against 1.5 to 2.5 s on a 265-package project), and Yarn Classic locks about 30 times faster than Yarn 1 (25 ms against 0.8 s on a 70-package project), so the Count uses it for all three.

aube’s npm lockfiles stay valid for npm ci, but a later npm install may rewrite a few lines (hoisting and funding metadata). On larger pnpm graphs aube may keep a second copy of a package pnpm would deduplicate. lockfiles.npmEngine = "npm" restores native npm for package-lock.json. Native npm is also used automatically for format v1 locks, which aube cannot read. Trees with local file: dependencies stay with aube, which keeps them valid since 2.8.1 (aube#1796).

aube’s Yarn Classic output matches Yarn 1’s for the same update, and an unchanged lock stays byte for byte the same (aube#1885, fixed in 2.9.0). A few newly locked entries may lack the #sha1 suffix Yarn 1 adds to resolved URLs; Yarn accepts them.

A Berry yarn.lock stays with Yarn, because aube’s Berry output is rejected by Yarn (aube#1794, aube#1795). Yarn’s version comes from packageManager in package.json, then a Yarn 2 or newer pin in mise.toml, then the default below. bun.lock stays with Bun.

Tools run through mise exec with an explicit version. A repository’s own pins win: mise.toml and .tool-versions entries for the relevant tool, .python-version, .ruby-version, packageManager, and the highest of the pin and go.mod’s go/toolchain lines for Go. Repository tasks, environment blocks and hooks are never loaded. A run reads and checks only the pins of the tools it runs, so a malformed pin for another tool fails only the lockfiles that tool regenerates. Otherwise the runner’s pinned defaults apply:

Tool Default
Node 26.13.0
aube 2.9.0
Yarn 4.18.1 (Berry)
Bun 1.4.4
Rust 1.100.0
Go 1.27.3
Terraform 1.17.1
Python, uv, Poetry, PDM 3.15.2, 0.13.12, 2.5.2, 2.29.8
Helm 4.3.2
Pkl 0.33.1
Ruby 4.0.9
PHP, Composer 8.5.8, 2.10.3
APM 0.35.0
gh-actions-lock 0.5.1

The Count downloads a prebuilt static-php CLI through mise’s http backend: no compiler or system libraries, but it needs an exact x.y.z version. mise’s own php tool has only plugin backends, which no mise of the Count runs.

nix is not in mise’s registry, so the Count installs a pinned static build of nix 2.35.5 (Hydra’s buildStatic binary for x86-64 and ARM64 Linux) through mise’s http backend, checked against its SHA-256. It needs no /nix, daemon or root. There is no static nix for macOS, so on a Mac a flake.lock update fails with a clear reason.

nix runs with a private chroot store (--store local?root=…) in the tool store, its own HOME and configuration directory, and only these settings: experimental-features = nix-command flakes, accept-flake-config = false (a flake’s nixConfig is ignored) and max-jobs = 0 (nothing is built). The system and user nix.conf are not read. The GitHub token reaches nix only as access-tokens = github.com=…, for its GitHub API calls. Locking reads flake.nix but does not evaluate the flake’s outputs, so no repository code runs.

nix fetches what flake.nix declares, so before it runs the Count reads the declared inputs, nested input overrides included, under nix’s restricted evaluation, which fetches nothing and reads only the flake’s directory. An input flake.nix adds or points somewhere refused fails the branch before any request. After nix runs, every node it added or changed in the lock is checked the same way, and an update must lock exactly the revision that passed the lookup and its release-age wait: if the branch moved in between, the update fails and is retried with the newer revision. Inputs that an upstream flake declares for itself are fetched by nix before the lock can be checked; a lock that reaches outside is still never published.

helm dependency update resolves every dependency in Chart.yaml, and in a deprecated requirements.yaml beside it, against its chart repository, downloads the chart archives into charts/ and writes the chart’s lock: Chart.lock, or requirements.lock for a chart of apiVersion: v1. Only the lock is kept; the archives are deleted after the run, and the run fails if Helm changed or removed any other file in the chart. Helm resolves each dependency again on every run, so a dependency declared as a range moves to its newest matching release along with the one the update names. A run that resolves exactly what the lock records changes only its generated timestamp, which is not published.

Helm runs nothing it downloads to do this: a chart’s templates and hooks run only when it is installed. It runs with its own configuration, data and cache directories and an empty plugin directory, so no downloader plugin handles a repository scheme. HTTP and OCI chart repositories work as Helm reads them, without helm repo add; a dependency that names a repository by alias (@name or alias:name) fails, since the run has no repository list of the repository’s own. A chart that commits its archives under charts/ holds the update: the archives would go stale beside the new lock, and the Count writes text files only.

A file:// dependency is followed only when it names a chart directory inside the repository, resolved against the chart’s directory the way Helm resolves it, with no symbolic link on the way or inside. An absolute path, one that climbs above the repository root, one with no Chart.yaml, or a repository with anything but printable ASCII in it (whitespace or a control character, which Helm rewrites or drops before it reads the path) holds the update with the reason: Helm would read that chart, and record its name and version in the lock, from wherever the path points on the Count’s server. These are Helm 4.3.2’s rules, so a repository that pins another Helm version is refused.

Helm still reads a chart’s requirements.yaml whatever its apiVersion, and decodes it over Chart.yaml: its dependencies, and its apiVersion if it sets one. So the Count updates the dependencies of both files, checks the file:// repositories of both and finds credentials for the repositories of both. A chart of apiVersion: v1 (or with none) keeps requirements.lock; any other keeps Chart.lock. Helm reads either lock, for a chart of any apiVersion, to decide whether the one it resolved is new, so a chart that holds the lock it does not keep beside the one it does holds the update. The Count reads both files the way Helm does, matching field names such as repository in any case, and holds the update with the reason when either is one it cannot read exactly as Helm does: a file that does not parse, or that holds more than one YAML document, a duplicate key, a merge key (<<), an anchor, an alias or a tag, or a key with anything but ASCII where Helm matches field names. Helm reads such a file differently from a plain YAML reader (the first document, the last of duplicate keys, merge keys merged), so a dependency the Count missed could name a chart outside the repository.

After Helm runs, every file:// repository the new lock records is checked again the same way, and a lock that records a chart outside the repository is discarded and the update held. That check keeps such a chart out of a commit; Helm has already read it by then. The check before the run is what keeps Helm from reading it.

pkl project resolve evaluates the project it resolves, and a PklProject is a Pkl module the repository wrote, so Pkl never sees the repository’s. The Count reads the project’s dependencies without evaluating it (see Pkl), writes a PklProject that declares exactly those, each with its name, URI and checksums block, and runs pkl project resolve on it in a scratch directory outside the checkout. Only PklProject.deps.json comes back. The lock Pkl writes depends only on those names, URIs and checksums, not on how the project is written or what else it sets, and pkl project resolve reads no evaluatorSettings of the project, so the lock is byte for byte the one the repository’s own project gets.

Pkl reads ~/.pkl/settings.pkl from the home directory its user account names, whatever HOME says, and keeps its package cache there. The run passes a settings module of the Count’s own and --no-cache, so neither your settings nor a cache another run filled is read; resolving reads only package metadata, never a package’s archive.

Pkl locks each package at the newest version of its major version that any package in the graph asks for. So the new lock may record a newer version than the update names, which counts as moving it, and raising a version that the graph already asks past leaves the lock as it was, which is not a failure. Lockfile maintenance leaves PklProject.deps.json alone: Pkl resolves exact versions from each package’s own metadata, which a published version never changes, so a refresh would move nothing.

A project with a local dependency (import("…")) is refused: its lock records the other project’s own package and dependencies, which the Count does not read. So is a project that another project’s committed PklProject.deps.json records as a local dependency: that lock would go stale beside the new one, and Pkl refuses to evaluate a project whose lock is older than what its dependencies declare.

A pylock.toml is regenerated only when uv wrote it with uv export. Its created-by must be uv, and its header must record the command, which uv writes unless --no-header was given. The run repeats that command after uv.lock is regenerated, with --no-build, keeping only --format pylock.toml, -o pylock.toml and the options that choose what the export includes: --extra, --no-extra, --all-extras, --group, --no-group, --only-group, --all-groups, --no-default-groups, --dev, --no-dev, --only-dev, --package, --all-packages, --prune, --no-emit-package, --no-emit-project, --no-emit-workspace, --no-hashes, --no-annotate and --no-editable. Any other option, another command such as uv pip compile, or a missing header holds the update with the reason. With no committed uv.lock, uv locks from scratch as the command would, and the uv.lock it writes is not kept. A pylock.toml pip wrote is refused: pip records neither the requirements nor the options it locked, and pip lock builds a project directory to read its metadata. Only pylock.toml itself is read, not a named pylock.<name>.toml.

apm lock is APM’s lock-only mode. It resolves every package and downloads it into apm_modules/ to record its commit and content hashes, but it deploys nothing to agent directories such as .github/ or .claude/, and runs no package content: no scripts, hooks or MCP servers. Only apm.lock.yaml is kept; apm_modules/ never enters the commit. Git may use the file protocol as well as https in this run, because APM clones each package from its own local cache. APM reads only apm.yml, so a manifest named apm.yaml gets no lockfile refresh.

A .github/workflows/actions.lock is regenerated only for workflows the lockfile already lists: --no-onboard and --no-narrow are always set, so the Count adds no workflow or action to the lockfile and rewrites no uses: ref he did not edit. An update touching a workflow the lock does not list leaves it alone, and a run whose edited workflows are all unlisted runs no tool at all.

An update inside an in-repository action.yml or action.yaml depends on how the workflows call it. A local ./ composite is never followed or locked by the tool, so the update leaves the lockfile alone and publishes as it would without one. A composite called with the tool’s same-repository syntax, uses: $/<dir>, is relocked under the workflows that call it: the Count finds the listed workflows whose steps reach the file through $/, nested composites included, runs the tool over exactly those, and the read-back wants the new ref under each of them. If a listed workflow or a composite on the way cannot be read or parsed, which workflows call it is unknown and the update is held with the reason. A workflow or action file that is a symlink is left out of the tool’s checkout, so whatever reaches it fails with the tool’s reason, and only the actions.lock work is held.

The tool authenticates to github.com only, through GH_TOKEN, GH_HOST and GH_REPO and nothing else in its environment: on the App server it gets a scoped installation token; the CLI and the GitHub Action hand it the run’s own token, as Renovate does. gh and git are kept off its PATH, so no GitHub Enterprise configuration can redirect it. An action the token cannot read — a private one — holds the update with the reason instead of publishing a lock that dropped it, and a rate-limit or outage answer makes the update wait rather than fail.

The tool can report success while still refusing to cover an action, so a clean exit is not enough: the run then checks the lock itself with the tool’s offline --verify-local pass over the same paths, and reads the regenerated actions.lock back — every step-level uses: in the files the run scoped must appear under its workflow (a $/ composite’s under every workflow that calls it), keyed as the tool keys it (owner and repository lowercased, no sub-path), and a written SHA must be the commit the lock records — before the commit opens. Reusable workflows at jobs.<id>.uses are not in the lock and are not checked, and an edited workflow the lock does not list is not the run’s to prove. Last, the tool’s online --no-fix check reads each locked action’s manifest at its locked commit, so a lock entry that leaves out an action a composite uses holds the update instead of being published; an unreachable GitHub makes it wait. actions.lock is the only file the tool may change; the usual unexpected-write guard holds for the rest.

--no-narrow also leaves a SHA pin as written: an existing pin the update moves stays a pin in the workflow, and the lock records it under that SHA with the tag it resolves to.

Lockfile maintenance runs the same command with --relock and no workflow paths. The tool resolves every ref the listed workflows use again, direct and inside composites, and advances each one that moved upstream to its new commit: a floating ref such as v7, or a tag that was moved forward. A moved ref whose old commit is no longer in the ref’s history is not advanced; it fails the run with the tool’s reason, as does any other blocking finding in any workflow. The tool resolves every workflow in .github/workflows/, listed or not, so a broken ref in a workflow the lock does not list (a typo, a deleted tag, a private action, a workflow that does not parse) fails the relock too. A listed workflow that uses an action the lock does not list yet blocks the relock until the repository’s owner runs gh actions-lock to add it. The whole-directory run also drops listed workflows that no longer exist, never onboards a workflow or action the lock does not list, and never rewrites a workflow: the maintenance commit holds actions.lock alone. When every listed workflow is gone, the tool removes actions.lock and the maintenance commit deletes it; the PR says so. The regenerated lock must list exactly the listed workflows that still exist, or the relock fails, and the proof is --verify-local and the online --no-fix check over those workflows. The maintenance PR lists each moved ref under its workflow, with the commit it now resolves to and the one the lock had. No release-age wait applies to what a relock picks up: the tool takes no cutoff, so a ref that moved an hour ago is locked like any other.

Tools install into the Count’s own mise data directory, separate from yours: PATCHULA_TOOLS_DIR, or tools/ in the cache directory. It persists between runs, so keep it on a volume. The Count installs his own pinned mise there on first use and runs that for every tool and lookup; the mise on PATH only installs and starts it. A tool version is recorded with a timestamp once mise install has installed it, apart from the run that uses it, and each successful run refreshes the timestamp. A tool that fails keeps its install.

  • patchula tools install prewarms every pinned default, for example in an image build.
  • patchula tools prune --days 30 uninstalls versions no run has used for 30 days. Pinned defaults stay. It also empties the private nix store and nix’s fetcher cache, whatever --days says: they hold only downloaded flake inputs, and a nixpkgs input alone takes several hundred MB. The next nix run downloads what it needs again, so run prune on a schedule if you update flakes.
  • An install that was never recorded, such as one cut short, is removed and redone from scratch on first use (30-minute allowance).
  • mise runs every tool with its plugin backends, asdf and vfox, disabled, so no plugin code runs. Yarn installs from aqua:yarnpkg/berry and Poetry from pypi:poetry, the next backends their registry entries list. A tool version a store holds from a plugin backend counts as missing: its first use removes every version of that tool and installs it again.
  • Every tool run has a 180-second limit per command.

On a local run, Node, Go, Bun, aube, Yarn, uv and Terraform versions you already have in your own mise (MISE_DATA_DIR, or ~/.local/share/mise, on the same filesystem as the store) are hard-linked into the store instead of downloaded. That takes no time or extra disk, and pruning never touches your installs. Each version is borrowed once; if that fails, mise installs it. Python, Ruby and PHP installs depend on where they live, so they are always installed fresh, as are APM, any install with a symlink leading outside its own directory and any made through a plugin backend. The server never borrows.

Each tool runs in a scratch tree checked out from a persistent partial clone, containing only the files the tool reads. A repository’s branches regenerate their lockfiles side by side, one per CPU core up to four, each in its own tree; only the checkout from the shared clone takes turns. Every process starts from an allowlisted environment with its own HOME, npm config, Cargo home and Go paths. Parent tokens, cloud credentials, Git helpers and your tool configuration are not inherited. Git alone gets a temporary credential header for the installation token, kept out of URLs, arguments and stored config. Yarn runs the release the Count pins. It reads every .yarnrc.yml from the project up to the filesystem root, so each one from the project up to the repository root is replaced for the run by a copy without yarnPath, plugins, networkSettings or ${VAR} interpolations, since the scratch tree holds no .yarn/, the run closes some hosts (see what is refused) and has none of the variables; a ${VAR} registry stays, so Yarn stops on it. The committed files come back afterwards. npm, pnpm, aube and Bun see each .npmrc with only its registry= and @scope:registry= lines, and Bun each bunfig.toml with only its install.registry and install.scopes URLs, so a private scope resolves where your own installs would, never to the public package of its name. Every other bunfig.toml setting is left out, its tokens and passwords too: Bun sends the operator’s credentials for that registry instead, and never installs a security scanner ([install.security]), which runs a package’s code. A bunfig.toml the Count cannot read (see package registries), or one with a registry URL naming an environment variable, which the run does not have, fails the run instead.

Install scripts are skipped wherever a tool allows it (npm, aube, which also writes Yarn Classic locks, Bun, Yarn, and Composer with plugins off too), because a lockfile needs none of them.

uv, Poetry, PDM and Bundler run no repository or package code

Section titled “uv, Poetry, PDM and Bundler run no repository or package code”

Python and Ruby tools can only answer some questions by running code: uv, Poetry and PDM build a package whose metadata is not static to read it, which runs its build backend, and Bundler evaluates the Gemfile, which is Ruby, and the gemspecs it names. The Count never lets them, for any repository. What can be locked without running code is locked; an update whose lock cannot be is skipped with the reason on the dashboard and in the run report, never written with a stale lock, and lockfile maintenance is skipped the same way.

  • uv runs with --no-build (and UV_NO_BUILD=1), so every package it resolves comes as a wheel or not at all, and with the interpreter given by version (UV_PYTHON). --no-build does not cover the workspace’s own packages, which uv builds whenever their metadata is dynamic, even a dynamic version alone, so an update is refused when any pyproject.toml of the workspace (the project’s own, and every one under a uv workspace root above it) declares dynamic metadata, or lists a workspace member outside the workspace. A package that has only a source distribution, or a path dependency whose metadata is not static, is refused when uv reports it would have to build it.
  • Poetry has no setting that stops builds while locking. It runs only under the Count’s launcher, which replaces every entry point that builds a package (the PEP 517 hook call, pypa/build’s builder, Poetry’s isolated builder and its metadata build) or loads a plugin with one that stops the process, then starts Poetry. An update whose lock would need a build is refused, and so is one in a repository that pins a Poetry version other than the Count’s default (2.5.2), which is the version the launcher is tested against.
  • PDM has no setting that stops builds while locking either. It runs only under the Count’s own launcher, which replaces every entry point that builds a package (the PEP 517 hook call, PDM’s isolated build environment, a candidate’s metadata build) or runs a script with one that stops the process, and keeps plugins from loading. Lock hooks are skipped with --skip :all. PDM reads the static metadata of a path dependency without building it, so only one whose metadata is dynamic, a package with only a source distribution, or a URL or VCS dependency needs a build, and the update that needs one is refused. So is one in a repository that pins a PDM version other than the Count’s default (2.29.8). PDM runs with PDM_USE_VENV=false, reads the project’s pdm.toml for its indexes, and the .pdm-python it records is not kept. A project with PDM’s legacy .pdm.toml is refused: PDM reads it over pdm.toml, and the Count does not, so PDM could search an index other than the one the Count gave credentials for. pdm update --no-sync moves only the lock; a run that changed pyproject.toml fails.
  • Bundler never sees the repository’s Gemfile. The Count renders one from its own reading of it, with only source, gem, group, platforms and ruby lines rebuilt from their parsed values, and runs bundle lock on that beside a copy of Gemfile.lock, in a scratch directory outside the checkout; only Gemfile.lock comes back. Bundler runs with the Ruby’s own Bundler (BUNDLE_VERSION=system, never a version the lock names, which it would download and run), no repository .bundle/config, and no git transport. An update is refused when the Gemfile holds a gemspec, a gem from path:, git:, github: or another forge, git_source, plugin, eval_gemfile, install_if, or any line the Count does not read, or when Gemfile.lock has a GIT, PATH or PLUGIN SOURCE section.

Each tool runs as the leader of its own process group. Whatever it leaves running, such as a helper process, is killed when it exits, however it exits, and when it times out or the run is cancelled, so nothing it started keeps the run’s environment past it unless it leaves the group on purpose (setsid).

Output is kept only when something fails, at most 4 KiB of each stream.

Some locks cannot be regenerated without running code a dependency chose. The update that needs one is skipped, with the reason on the dashboard and in the run report, and lockfile maintenance is held the same way. The reason stands until the repository changes; no pull request is opened or updated with a stale lock.

  • npm and Yarn Berry git dependencies. npm (with npmEngine = "npm", or for a format v1 lock) and Yarn pack a git dependency to prepare it, which runs its prepare and pack scripts whatever --ignore-scripts or enableScripts say. The update is refused when any package.json in the repository, its overrides or resolutions, a Yarn catalog or packageExtensions entry, or the lock names a source other than a registry version, range or tag, an npm: alias, jsr:, workspace:, catalog:, a local path (file:, link:, portal:, ./), a Yarn patch: of one of those, or an http(s) .tgz or .tar.gz that is not on a git forge. That refuses git URLs, github: and other forge shorthands, owner/repo, forge archive URLs and Yarn’s exec:. Their runs also have no Git transport, a guard in npm’s runs stops the process npm starts to prepare a git dependency, and Yarn’s runs cannot reach the GitHub hosts its GitHub fetcher downloads from, so a git dependency of a registry package fails the run instead; a regenerated lock that records one is thrown away and the update refused. aube and Bun lock git dependencies without running their scripts, so pnpm, aube, Bun and (through aube) npm and Yarn Classic locks are not refused for them.
  • packages.lock.json. dotnet restore evaluates MSBuild projects, props and targets, the repository’s and those of every package it restores, so no NuGet lock is regenerated. An update to a project with a packages.lock.json is skipped.
  • Pipfile.lock. pipenv lock builds every path, editable and VCS dependency, the project itself included, to read its metadata, which runs its build backend. PIP_ONLY_BINARY keeps it from building index packages, but not those, and pipenv has no setting that stops it, so no Pipfile.lock is regenerated. An update to a project with a Pipfile.lock beside it holds as lockfile-pending.
  • Links the run would read. The Count checks a lockfile run’s files out of the base commit, and a symbolic link or submodule among them is never followed: it stays out of the tool’s tree. One no tool of the run reads changes nothing, such as another project’s lockfile or a file of another ecosystem. One a tool does read holds that directory’s lockfiles, with a reason that names the link. A tool reads its own ecosystem’s manifests and settings anywhere in the repository, since a workspace or path dependency can reach them, the mise configurations its version comes from at and above its directory, and its lockfile at or above its directory; a Go go.sum, a Nix flake.lock, a Helm, mise or APM lock and an npm package-lock.json or npm-shrinkwrap.json count anywhere. A mise run also reads every tool list and task file the mise file selection takes, so one that is a link holds the repository’s mise locks. An update whose directory is held is skipped. Lockfile maintenance skips only the held directories, names them in its warnings, and is held whole when nothing else changed.
  • uv, Poetry, PDM and Bundler projects whose lock needs a build or a Gemfile form the Count does not render: uv metadata it would have to build, a Poetry or PDM version without a canary-covered launcher, a PDM dependency only a build describes, a legacy .pdm.toml, a pylock.toml uv’s header does not describe or pip wrote, and a Gemfile with gemspec, path:, git:, github: and other forge keys, git_source, plugin, eval_gemfile, install_if or a line the Count does not read, or a Gemfile.lock with GIT, PATH or PLUGIN SOURCE sections.
  • PklProject.deps.json for a project whose dependencies the Count cannot read without evaluating it, one with a local dependency, or one another project’s lock records as a local dependency (see Pkl).

Lockfile tools keep the package data they download in tool-caches/ under the cache directory, split into partitions so a run never shares a cache with something it should not reach. A run chooses its partition like this:

  • public — shared by every installation and the CLI. A run may use it only when the extraction decided every file it can read is public-only: every registry, index or fetch source its manifests, settings and lockfiles name is the ecosystem’s well-known public registry, a well-known public forge, or a local source that fetches nothing. Anything uncertain, unreadable or undecided fails closed, and so does a run with no such file to decide on.
  • installation-<hash> — one partition per installation (installation-<sha256 of the GitHub credentials scope>, or installation-local for the CLI), for every run that is not provably public-only and holds no operator credentials: a private or unreadable .npmrc, a Gemfury-style index URL, a lockfile resolved URL on a non-public host — and equally two installations that happen to name the same private registry, which never share a partition.
  • private-<hash> — for runs given operator credentials, named by a hash of the credentials’ scopes.

There is no read-only lower layer: a run never reads a partition it did not choose, since a public package of the same name could then satisfy it without the private feed, and a partition warms after its first run. Credential files still live only in the run’s own directory and are deleted when it finishes.

Go needs no file verdicts: in public it runs with GOPROXY=https://proxy.golang.org — no direct, which could fetch anonymously from a host only the server’s network reaches — so what it can fetch is public by construction. A Go run that fails there, on an internal module the proxy cannot serve, is rerun in the installation partition with Go’s default environment, so repositories with internal modules keep working.

mise lock downloads some tools’ archives to checksum or verify them, for every platform the lockfile records, and keeps only mise’s download store (downloads-cas) in its partition. mise keys a stored download by its URL and request headers, asking the server whether it changed before reusing it, or by a checksum together with the URL that served it, and hashes it again before use, so a download one repository caused cannot stand in for another URL’s. The rest of mise’s cache — version listings and release metadata, which mise keys by tool name and not by every option that steers them — stays in the run. The store is public when every tool the run locks fetches from the source its name picks: a core tool, an aqua: package, a github: repository, or a shorthand whose every backend in mise’s registry is one of those, with no option but the ones that change only how mise installs it (os, depends, postinstall, lazy, lazy_bins, and Rust’s toolchain options). A URL or a checksum in the committed mise.lock does not count: mise resolves an entry it has to complete from the tool’s own source. Any other tool — an http: URL, an api_url, an npm or PyPI package — puts the run in its installation’s partition.

Partitions keep each repository’s private packages apart. No lockfile tool runs repository or package code, so what a run can reach is what its tool fetches: a run reads only the partition it chose, and a package it caches there is never served to a run that could not have fetched it.

A partition a run uses is held shared, so eviction never removes one in use, and tools whose caches are not documented for concurrent use — aube, Bun, Yarn, Composer, Poetry, PDM, Bundler, Helm and mise — run one at a time in it. Partitions unused for 14 days are pruned, and lockfiles.cacheGiB (default 20, minimum 1) caps their size: the least recently used private partitions go first, public last.

Lockfile tools get a registry entry’s credentials only when the entry sets tools = true; APM, Nix and the Gradle wrapper read no private registries and get none. mise lock gets them only for a registry, index or proxy it relocks a followed tool from: a user .npmrc for npm, and a .netrc for Python indexes and Go proxies. In the server, allowedInstallations decides which installations’ tools are given them, and the CLI gives them to every repository it runs on. Any repository given an entry’s credentials can fetch through them by naming that registry, so these settings decide which repositories may read it.

Each tool gets the credentials in the form it reads, only for its own run:

Tool Form Credentials Matched by
aube (npm, pnpm and Yarn Classic locks), npm, Bun //host/path/:_authToken or :_auth in its user configuration bearer, basic prefix
Yarn (Berry locks) npmRegistries in its user configuration bearer, basic the registry URL, exactly
Cargo CARGO_REGISTRIES_<NAME>_INDEX and _TOKEN bearer, basic the sparse index URL of each registry .cargo/config.toml or .cargo/config names
Poetry POETRY_HTTP_BASIC_<NAME>_USERNAME and _PASSWORD, and ~/.netrc basic the URL of each [[tool.poetry.source]]; host
PDM [pypi.<name>] ([pypi] for the default index) in its user configuration basic the URL of each index PDM searches, from [[tool.pdm.source]] and pdm.toml
Helm repositories.yaml for an https chart repository, the registry config.json for an OCI registry (auth, or registrytoken for a bearer token) basic; bearer for OCI host and port; Docker Hub (docker.io, registry-1.docker.io) by Docker’s own key, as Helm looks it up
Pkl an Authorization header under http.headers in the settings module the run passes bearer, basic prefix, as the glob <prefix>/**
Bundler BUNDLE_<HOST> basic host
Composer COMPOSER_AUTH bearer, basic host
Go ~/.netrc, with the host in GOPRIVATE basic host
uv ~/.netrc basic host
Terraform TF_TOKEN_<host> bearer host

Files are written with owner-only permissions and removed when the tool finishes. Cargo sends the token as the Authorization header, so it gets the header a lookup sends: Bearer <token> or Basic <base64>. Cargo runs outside the repository and reads none of its configuration; it gets each registry that the .cargo/config.toml and .cargo/config files at or above the project define under a tools entry, by name, index and token, and the directory’s committed publish-age cooldown — or the job’s waitHours when that is longer — by environment, so crates a resolve newly locks wait as long as the ones an update names. A configuration that is a symlink to a file inside the repository is read from that file, as extraction reads it; one whose link leaves the repository or ends anywhere else, that sits in a linked .cargo folder, or that is not text fails the directory’s Cargo jobs with the reason, rather than running Cargo without its registries. Cargo resolves a lockfile in one pass, so the job’s one wait covers everything that resolve newly locks — the crate the update names and transitive crates alike. A semver-crossing update runs cargo update --workspace, and when the age check leaves a release it needs out of reach the failure reads as Cargo’s ordinary refusal, “did not resolve … to requested version”, not its publish-age line. Naming the age explicitly on every invocation also means a .cargo/config.toml above the runner’s own directories cannot impose one the repository never committed. A security.apply fix that lands inside the window is the one job that runs resolver.incompatible-publish-age = "allow". Rust older than 1.100 ignores the variables: the cooldown still binds the direct targets lookup picks, but the run warns that transitive crates in that directory do not wait. Poetry reads the project’s pyproject.toml. A name defined more than one way, or that the tool would fold onto another name, gets nothing, and so does a URL not written in its normal form (lowercase host, no user, escapes or backslashes). Go fetches the modules under a credentialed host from the host itself, never through the public module proxy or checksum database.

Bundler, Composer, Go, uv and Terraform send credentials to every URL on the host, so they only get an entry whose prefix is a bare host, with no path or port, and that is the only entry on its host, for any installation. Helm sends them to every URL on the repository’s host and port, and to no other port, so it gets an entry whose prefix is a bare host, with its port when it names one (https://harbor.example:5000), and that is the only entry on that host and port. An entry with a port reaches only a repository written with that exact host and port (oci://harbor.example:5000/charts); an entry without one reaches only a repository on https’s own port, written without a port or with :443. Helm gets an https repository’s credentials over https only. Pkl adds a header to every request whose URL its glob matches, so it gets no entry whose prefix holds a character its glob does not match literally (* ? [ ] { } \, and @ + ! ( ), which it reads as extglob syntax), and none that encloses another entry, for any installation: the Count’s own requests under the inner entry take its credentials or none, while Pkl would send the outer one’s. A credential a tool cannot take is left out without a warning, and the tool then fails on the registry: a bearer entry for Bundler, Go, Poetry or uv, a basic one for Terraform, a .netrc user or password with whitespace, quotes, a backslash or #, a source or registry name outside ASCII letters, digits, -, _ and (for Poetry) ., a PDM index named like one of PDM’s own pypi settings (such as url), a Bundler or Terraform host with _, a Bundler host without a dot, a Bundler user or password with characters other than letters, digits and -._~!$&'()*,;= (and : in a password), and a Cargo registry whose index is not sparse+. Composer puts basic credentials in the URL of the Git commands it runs for a VCS repository on that host, where other processes on the host can see them. No other entry may sit under a tools entry’s prefix, because npm, aube and Bun would send the broader entry’s credentials there, and the prefix cannot hold = or ;, which .npmrc keys cannot. Lockfile tools read the registries the repository names, never a mirror.

When a tool fails while it holds credentials, the failure shows none of its output, which may quote what the private registry answered, only how it failed: a timeout or its exit status. The repository’s own registry, proxy and TLS settings apply as each tool reads them. npm, aube and Bun match credentials by host and path whatever the scheme, and Bundler, Composer, uv and Poetry by host whatever the scheme or port: a repository that names the host over plain HTTP or on another port, or turns TLS checks off, or a registry that serves plain-HTTP download URLs, sends the credential unencrypted or to another service on the host.

lockfiles {
refresh = true
waitHours = 168
}

refresh = true keeps one patchula/lock-file-maintenance branch that refreshes every lockfile within the manifests’ ranges, at most once per ISO week, and no sooner than waitHours after the last successful refresh. For .github/workflows/actions.lock maintenance relocks the refs that moved upstream in the workflows it lists, as gh-actions-lock describes, with no release-age wait. When the relock fails, the branch still carries the other lockfiles’ refresh and the failure becomes a report warning; it fails the branch only when nothing else changed. The default window is Monday 00:00 to 04:00 UTC; explicit update windows replace it. Windows work as for updates: the first run after a window time picks it up, however often the Count runs. A maintenance resolve has no update to take a wait from, so for Cargo the run holds everything it newly locks to the strictest active waitHours any update class reaches on any of the repository’s crates.io dependencies. When a rule cannot be evaluated for one of them (a current filter that is not a valid requirement, say), maintenance is held with that error, named for the dependency, rather than relocking with no wait; a Cargo update’s job is held the same way. Failures do not count as a completed refresh, and a closed maintenance PR can come back the following week. A lock the Count refuses holds maintenance with that reason, like an update.

tidyGo = true runs go mod tidy instead of go mod download after Go updates.