depcurfew
v1.6.0
Published
One supply-chain security policy for npm, pnpm, Yarn, Bun, Deno, uv, pip, Poetry, PDM, Pipenv, Composer, Bundler, Renovate and Dependabot, plus a doctor that finds config that silently does nothing.
Maintainers
Readme
depcurfew
One supply-chain security policy for npm, pnpm, Yarn, Bun, Deno, uv, pip, Poetry, PDM, Pipenv, Composer, Bundler, Renovate and Dependabot, and a doctor that finds configuration that silently does nothing.
A sibling of agentcurfew: agentcurfew guards the files that steer AI coding agents, depcurfew guards the packages that people and agents install. Documentation: depcurfew.github.io.
Why
Package managers and update bots now each protect you against freshly published malicious versions: a release-age delay, an allow-list for install scripts, limits on git and tarball dependencies. Each tool names these settings differently, counts time in its own unit, reads them from its own files and supports them only from some version on. A setting can also look right and do nothing, for example because CI pins an older version of the package manager, or because a bot proposes versions the package manager would refuse.
depcurfew keeps one policy file, depcurfew.json, writes it into the configuration of every tool in the repository, and checks that the result really works.
What it stops and finds:
- Versions that are too new. Every package manager and update bot in the repository waits
cooldown.minimumbefore it takes a new version, each in its own setting, unit and file. - Install scripts of dependencies that the policy does not allow, and Composer plugins.
- Git and tarball dependencies where the policy denies them.
- Look-alike and made-up names.
depcurfew check, the Claude Code hook and the MCP server stop a name one or two letters away from a popular npm package or PyPI project, the usual form of typosquatting and of package names an AI model invents. - Known malicious versions. After
depcurfew osv update, the same checks anddoctorblock the versions OSV.dev lists as malicious, offline, without sending a package name anywhere: see Known malicious versions. - Settings that do nothing.
doctorfinds a pinned package manager too old for a setting, a bot that waits less than the package manager, a CI job or Dockerfile that installs with another version, and more: see doctor rules.
Five-minute start
npx depcurfew doctorworks beforeinit: withoutdepcurfew.jsonit compares the repository with the policyinitwould write and shows, as notes in a block of their own, whatinitandapplywould change, for example a package manager that installs new versions without a release-age delay, with the settingsapplywould write for it. These notes never make it fail.npx depcurfew initwritesdepcurfew.jsonwith the default policy below and lists the tools it detected. When the repository already sets a longer release-age delay for one of them,cooldown.minimumkeeps the longest one, andinitsays where it found it.npx depcurfew explainshows what it detected and what the policy means for each tool.npx depcurfew apply --dry-runprints the changes as a diff, without writing anything.npx depcurfew applywrites them. Run it again wheneverdepcurfew.jsonchanges; a second run with the same policy changes nothing.npx depcurfew doctorreports configuration that silently does not work and drift from the policy, and exits with 1 when it finds an error or, with the"doctor": { "failOn": "warning" }thatinitwrites, a warning.- Add the GitHub Action so that doctor runs on every push and reports to code scanning.
The default policy:
{
"$schema": "https://unpkg.com/depcurfew/schema.json",
"version": 1,
"cooldown": {
"minimum": "3d",
"exclude": [],
"securityUpdates": "bypass"
},
"installScripts": {
"default": "deny",
"allow": [],
"deny": []
},
"sources": {
"git": "deny",
"remoteTarball": "deny",
"file": "allow",
"directory": "allow"
},
"targets": "auto",
"doctor": {
"failOn": "warning"
}
}Installation
depcurfew runs on Node.js 18.3.0 or later, so it also works where a project or a coding agent still has an older Node.js (CI runs every command on the oldest version it supports), and has a single runtime dependency, yaml. Node.js 18 and 20 no longer get security fixes from the Node.js project; prefer a supported line where you can. Working on depcurfew itself needs Node.js 22.18 or later.
Add it to the project as a development dependency, so the team, CI and coding agents all run the version pinned in the lockfile. Once apply has written the project's release-age delay, later updates of depcurfew go through that delay as well:
npm install --save-dev --save-exact depcurfew
npx dcf doctorPin the exact version (--save-exact, or save-exact=true in .npmrc) and update it on purpose: depcurfew is a young project with frequent releases, and a range would let a new release in without review.
Who needs it installed:
- Developers working on the project: nothing to do. The protection does not depend on depcurfew being installed: it lives in the package manager configuration that
applywrites into the repository (.npmrc,package.json,pnpm-workspace.yaml,.yarnrc.yml,bunfig.toml,deno.json,pyproject.tomloruv.toml,poetry.toml,Pipfile,requirements.txtand the bot configuration), and the package managers read it on their own. pip's release-age delay is the exception: pip reads it only from the environment where it runs, andapplysays what to set there. The project install brings depcurfew along as a development dependency anyway. - Whoever changes
depcurfew.json: runsnpx dcf applyand commits the result. - CI: runs
doctor, with the GitHub Action below or with the project's own copy on other CI systems.
A global install (npm install -g depcurfew) works, but teams should not rely on it: each machine may run a different version, the lockfile does not pin it, and npm does not read the project's .npmrc in global mode, so the project's release-age delay does not cover the install.
To work on depcurfew itself, run it from a clone of this repository:
git clone https://github.com/DevXord/depcurfew.git
cd depcurfew
npm ci
npm run build
node dist/cli.js doctor /path/to/your/repositoryVerifying a release
Every release is built and published from its git tag by the Release workflow with npm trusted publishing, so the npm page of each version shows its provenance: the repository, the workflow and the commit it was built from. One job of the workflow installs, tests and packs the package without the right to publish it; a second job, which runs no code of the repository or of its dependencies, stages exactly the file the first one packed, after comparing its SHA-512 checksum. After installing, npm audit signatures checks the registry signature and the provenance attestation of every installed package, depcurfew included.
The package contains nothing but the build of that commit, and anyone can check it: check out the tag, build it and compare the checksum with the one the registry serves, here for 1.5.1:
git clone --branch v1.5.1 https://github.com/DevXord/depcurfew.git
cd depcurfew
npm ci --ignore-scripts
npm run build
npm pack --dry-run --json | grep shasum
npm view [email protected] dist.shasumThe two checksums are the same. For 1.5.0 they differ: its JavaScript files are the build of the tag byte for byte, but its declaration file dist/index.d.ts lists the properties of the policy types in another order, which a build that ran right after the tests produced; later releases write those types out, so every build gives the same file. The Verify release workflow does this for the newest version on npm every day and on demand, and its runs are public in the Actions tab of the repository.
Step-by-step guide
The five-minute start lists the commands; this guide goes through them once, in a repository you know, with what to look at in each step.
- See what is missing. Run
npx depcurfew doctorin the root of the repository. Withoutdepcurfew.jsonit compares the repository with the policyinitwould write and lists, under "Compared with the default policy (no depcurfew.json):", every fileapplywould create or change and why: a package manager that installs new versions without a release-age delay, dependencies whose install scripts would run, an update bot that proposes versions sooner than the package manager would install them. Nothing fails yet; these are notes. - Write the policy.
npx depcurfew initwritesdepcurfew.jsonand says what it found. Read its notes: it keeps a longer release-age delay the repository already has, puts well-known packages whose install scripts are not needed intoinstallScripts.deny, and lists the packages with install scripts to review. Allow the ones the project needs ininstallScripts.allow; every other entry of the policy file has a safe default. - Look before writing.
npx depcurfew explainshows the tools it detected and what the policy means for each one, including the tools that cannot enforce a part of it.npx depcurfew apply --dry-runprints the changes as a diff. - Apply and commit.
npx depcurfew applywrites the configuration into the files each tool reads, keeps their comments and formatting, and marks the parts it manages. Commitdepcurfew.jsonand the changed files together: from now on the team and CI get the protection from those files, whether or not they run depcurfew. - Check that it works.
npx depcurfew doctornow compares the repository withdepcurfew.json. Fix what it reports; each finding says where it is and how to fix it, and doctor rules explains every rule. A typical first finding is a CI job or Dockerfile that installs with an older package manager than the one the setting needs. - Block known malicious versions.
npx depcurfew osv updatedownloads the public OSV.dev data of known malicious packages for npm, PyPI and Packagist;check, the hook,depcurfew mcpanddoctorthen block those versions offline. Run it again regularly;doctorsays when the copy is more than a week old. - Keep it in CI. Add the GitHub Action, pinned to a release commit, so that
doctorruns on every push and pull request and reports to code scanning. On other CI systems, run the project's own copy (see Other CI systems). - Guard installs by coding agents. With Claude Code, add the hook, which checks every install command before it runs; for other agents, add the MCP server.
- Protect the whole machine (optional).
npx depcurfew init --userandnpx depcurfew apply --usergive every project on the computer the same release-age delay and script blocking, also projects without depcurfew: see Protecting the whole machine.
When depcurfew.json changes later, run npx depcurfew apply again and commit the result; a second run with the same policy changes nothing.
The policy file
Every section is optional: a section that is absent means depcurfew does not manage that area. Durations are converted to each tool's own unit and always rounded up, so a tool never waits less than the policy says. Where a tool cannot express part of the policy, depcurfew says so instead of skipping it silently.
| Field | Values | Default | Meaning |
| --- | --- | --- | --- |
| version | | | Version of the policy format. |
| cooldown | | | Release-age delay (cooldown): freshly published versions wait before they are used. |
| cooldown.minimum | | | Minimum age of a release before it is installed or proposed: a whole number followed by m (minutes), h (hours), d (days) or w (weeks). Converted to each tool's unit, always rounding up. |
| cooldown.exclude | | [] | Packages that skip the release-age delay, e.g. your own scope. |
| cooldown.securityUpdates | "bypass", "delay" | "bypass" | Whether security updates skip the delay ("bypass") or wait like other updates ("delay"), where the tool can tell them apart. |
| installScripts | | | Code that dependencies run when they are installed: lifecycle scripts in npm, building from source in Python, plugins in Composer. |
| installScripts.default | "allow", "deny" | | Whether dependency lifecycle scripts (preinstall, install, postinstall) run by default; for Python, whether packages may be built from source; for Composer, whether plugins may run. |
| installScripts.allow | | [] | Packages whose lifecycle scripts may run when the default is "deny"; Python packages listed here are always built from source; Composer packages listed here are the plugins allow-plugins lets run. |
| installScripts.deny | | [] | Packages you reviewed that work without their lifecycle scripts, so the scripts stay blocked on purpose and doctor does not report them, for example "fsevents", which ships a prebuilt binary. depcurfew init fills it with the packages of the lockfile whose scripts depcurfew knows to be unneeded (esbuild, fsevents) or to do only a task of the project (lefthook). A package cannot be in both lists, also not through two patterns that match the same name. Python packages listed here must not be built from source: doctor reports a tool that would still build one. Composer packages listed here are plugins that allow-plugins disallows. |
| sources | | | Where dependencies may come from besides the registry. An absent field is not managed. |
| sources.git | "allow", "deny" | | Dependencies installed from git repositories. |
| sources.remoteTarball | "allow", "deny" | | Dependencies installed from tarball URLs outside the registry. |
| sources.file | "allow", "deny" | | Dependencies installed from local tarball files. |
| sources.directory | "allow", "deny" | | Dependencies installed from local directories. |
| targets | | "auto" | Tools to configure: "auto" detects them in the repository, or list them explicitly. |
| projects | | [] | Directories of independent projects in this repository, each with its own manifest and lockfile (e.g. frontend and backend). depcurfew configures each one with this policy as a project of its own, and configures Renovate and Dependabot once, from the repository root, for all of them. The repository root is always configured as well. A project must not be inside another one, must not be a workspace package of the root and must not have a depcurfew.json of its own. |
| doctor | | | How depcurfew doctor and the GitHub Action treat findings. Without this section only errors fail, as before; depcurfew init writes "failOn": "warning". |
| doctor.failOn | "error", "warning" | | Which findings make depcurfew doctor exit with 1 and fail the GitHub Action: "error" (only errors, also when left out) or "warning" (warnings too). Notes never fail. doctor --fail-on and the input fail-on of the Action override it. |
doctor.failOn decides which findings make depcurfew doctor exit with 1 and fail the GitHub Action: "error" only errors, "warning" warnings too; notes, which say what doctor could not check, never fail. depcurfew init writes "warning", so a new repository stays free of warnings. A policy without the doctor section fails on errors only, as before, so an existing depcurfew.json keeps its exit codes. doctor --fail-on error or --fail-on warning and the input fail-on of the Action override it for one run; an invalid depcurfew.json counts as "error" (it fails doctor anyway, as invalid-policy). The user policy takes the same section for doctor --user.
Several projects in one repository
A repository can hold independent projects side by side, each in its own directory with its own manifest and lockfile, often with nothing in the root but the bot configuration:
.github/dependabot.yml updates entries for /frontend and /backend
depcurfew.json "projects": ["frontend", "backend"]
frontend/ package.json, package-lock.json
backend/ pyproject.toml, uv.lockList those directories under projects, relative to the repository root with / between directories (no patterns, no .., no / at either end). apply, doctor and explain then treat each listed directory as a project of its own with the policy of the root: its own .npmrc, lockfiles and workspaces, as if the command ran there. The root is configured as before. Renovate and Dependabot are configured once, from the repository root, where they read their configuration, and wait at least as long as the package manager of any project (in the example, npm rounds 36h up to 2 days, so every Dependabot entry gets default-days: 2). Every path in the output is relative to the root (frontend/.npmrc), and all files of all projects are written or none. A renovate.json or .github/dependabot.yml inside a project is never read by the bot, so doctor gives a note at it instead of comparing its delay (and says so when the root has no configuration of that bot at all), and "What was checked" marks it as not read; a project that the Dependabot configuration of the root leaves out while it updates other projects gets a warning.
What the root gives a project, for the npm it runs: the CI jobs of the root that install in its directory (working-directory: frontend, or a literal cd frontend before the install in the same shell); the .nvmrc, .node-version and .tool-versions of the root (nvm, nodenv and asdf use those files in subdirectories too), each unless the project has a file of the same kind, because each tool reads only its own file: with frontend/.nvmrc, asdf still uses the root .tool-versions in frontend; and the stages of a root Dockerfile that copy files only from that project (COPY frontend/package.json frontend/package-lock.json ./). Copy sources are read as Docker reads them, from the root of the build context with . and .. resolved (COPY frontend/../ . copies the whole context, /frontend/x is frontend/x). A stage that copies . or files of several directories is the root's, because it is not clearly a build of one project, except an install after a literal cd frontend (RUN cd frontend && npm ci), which is the project's. A root CI job or Dockerfile stage that installs another npm (npm install -g npm@<version>) before installing in a project is checked with the settings of that project. Volta, devEngines and engines in the root package.json do not count for a project, which has a package.json of its own. explain lists, for each project, the root version files and root Dockerfile stages it uses (fromRoot in --json). A version a setup step of a root CI job installs (astral-sh/setup-uv with version: 0.13.2) is the project's too when every run step of that job works in its directory (working-directory: backend or defaults.run.working-directory), so apply configures the project for it.
A package manager that the root shows only through a CI setup step (such as pnpm/action-setup or oven-sh/setup-bun in a workflow of the root) is set up there for the projects, not used by the root, when the root has no manifest of any tool of its registry (for pnpm, Bun and Deno no package.json, package.json5, package.yaml, deno.json or deno.jsonc; for uv and Poetry no pyproject.toml, requirements.txt or Pipfile), or when every install with it in the root's workflows runs in a listed directory (by working-directory or a literal cd) and no Dockerfile of the root installs with it. Then apply writes nothing for it in the root, doctor does not list it among the tools of the root or compare Renovate and Dependabot with it, and explain lists it under "Package managers set up in CI for projects" (ciForProjects in --json); manager-version-too-old still checks the version the step installs. When the root has none of its manifests and no project uses it either, apply names it in tool-only-in-ci as before. Without projects such a step counts for the root, as before.
An npm depcurfew cannot tell (a Node.js version newer than the releases it knows, an image pinned only by digest, a version it cannot read) counts as one that runs every dependency install script: apply warns with scripts-not-enforceable and doctor reports packages with install scripts as errors, so an unknown npm never passes for one that blocks them. The npm of every Node.js release down to 0.6.3 is known from nodejs.org/dist/index.json; every release before 18.0.0 comes with npm 8 or older.
depcurfew init in a root without a manifest or lockfile lists the direct subdirectories that have one, except one with a depcurfew.json of its own, which it names and leaves out. init also leaves out a git submodule or another repository of its own (a directory with its own .git file or directory). A listed directory that does not exist, is a file, is reached through a symlink, is a separate git repository or lies in one, has a depcurfew.json of its own or overlaps a workspace package of the root is an error (project-not-found, project-not-a-directory, project-symlink, project-is-repository, project-has-policy, project-in-workspace) at the line of its entry in depcurfew.json: apply writes nothing, explain shows it and exits with 1, and doctor reports it as invalid-project. With a list of targets, each listed package manager is configured only in the directories that use it. check and the Claude Code hook find the depcurfew.json of the root from a project directory, as from any subdirectory of the repository.
Commands
The package installs two names for the same command: depcurfew and the short dcf, so dcf doctor works like depcurfew doctor.
| Command | What it does |
| --- | --- |
| depcurfew init [directory] [--force] [--json] | Writes depcurfew.json with the default policy, keeping what the repository already sets: a longer release-age delay, a dependency source an .npmrc denies, a delay of security updates in Renovate, the cooldown exceptions of the tools' own lists and the packages their install-script allow-lists approve, each with a note to review; --force overwrites an existing one, --json prints the result as JSON. |
| depcurfew explain [directory] [--json] | Describes the detected package managers, versions, bots and workspaces, and what the policy means for each tool: the release-age delay (or why apply writes none, such as a pinned version too old for it), and the settings apply writes for installScripts and sources, or why a tool cannot enforce them. |
| depcurfew apply [directory] [--dry-run] [--json] | Writes the policy into the configuration of every target tool; --dry-run prints a unified diff instead, --json the result as JSON. |
| depcurfew doctor [directory] [--json \| --sarif] [--fail-on error\|warning] [--osv] | Finds configuration that silently does not work and drift from the policy, and without depcurfew.json shows what the default policy would change; --sarif prints SARIF 2.1.0 for code scanning, and --fail-on overrides doctor.failOn of the policy (--strict is --fail-on warning). --osv also looks every locked package version up in OSV.dev: see Known malicious versions. |
| depcurfew check <package...> [--json] [--dir <directory>] [--registry <url>] [--index <url>] [--osv] | Checks packages against the policy before you install them: see Guarding installs. |
| depcurfew check --hook claude-code [--osv] | The same check as a Claude Code hook that blocks install commands breaking the policy. |
| depcurfew mcp [--dir <directory>] [--registry <url>] [--index <url>] [--osv] | The same check as tools of a Model Context Protocol server, for AI agents in Claude Desktop, VS Code and other clients: see MCP server. |
| depcurfew osv update [--ecosystem npm\|pypi\|packagist ...] [--accept-fewer] [--json] | Downloads the public OSV.dev data of known malicious packages, which check, the hook, mcp and doctor then use offline, without --osv: see Known malicious versions. |
| depcurfew init --user [--force] [--json] | Writes the user policy, which --user uses: see Protecting the whole machine. |
| depcurfew apply --user [--dry-run] [--json] [--for <tool@version>] | Writes the user policy into the user-level configuration of the installed package managers. |
| depcurfew doctor --user [--json \| --sarif] [--fail-on error\|warning] [--for <tool@version>] | Checks that configuration against the user policy, and the environment variables that override it. |
Without a directory, explain, apply and doctor work on the nearest directory with depcurfew.json, from the current directory up to the root of the repository (the directory with .git), and say so when that is a parent directory (outside a git repository only the current directory counts, and on Linux and macOS a parent directory counts only when it belongs to you and others cannot write to it, because a shared parent such as /tmp may hold someone else's depcurfew.json; directories inside node_modules are skipped), so doctor run in a subdirectory does not pass for a project without a policy. A directory given on the command line is used as it is, unless the nearest depcurfew.json above it lists it (or a directory it lies in) under projects: then the command works on that root, which checks the directory as one of its projects, as when it runs in that directory, and says so (the GitHub Action does the same for its directory input). check looks for depcurfew.json the same way, starting in --dir.
Exit codes: 0 success (warnings included, except for doctor when warnings fail it), 1 an error (an invalid or unreadable policy, a directory in projects that cannot be used, a file that cannot be edited or written, a doctor finding with level error, or also one with level warning when doctor.failOn in depcurfew.json (with --user the user policy) or --fail-on is warning, which --strict means too; notes never fail), 2 a usage error (such as an unknown option or a directory that does not exist). depcurfew <command> --help describes a command with examples and its exit codes.
Every finding and warning says what to do about it. When a command cannot start, it says why with a code (directory-not-found, not-a-directory, policy-missing, policy-invalid, policy-unreadable, and for init also policy-exists and cannot-write) and what to do; with --json that is a document with errors on stdout, and doctor --sarif prints a run marked as not successful. Text for people is colored on a terminal; NO_COLOR=1 turns colors off and FORCE_COLOR=1 turns them on, for example in a CI log that shows them. Control characters in names and values from the repository or a registry are shown as text (ESC as \x1b, or as \u001b inside a quoted value such as a package name in the problems of depcurfew.json), so a crafted package or file name cannot change the terminal. --json, --sarif and a diff written to a file stay plain, for programs and AI agents.
The --json documents of all commands share these fields: schemaVersion (1), policy (its status in apply and doctor, the path of the depcurfew.json used in check, its values in explain, the file written in init), notices (each with level note, a code, location when it concerns a file, message, and fix when there is something to do; policy-from-parent says that doctor, apply or explain uses the depcurfew.json of a parent directory and works on that directory) and errors, the reasons a command could not start, each with code, level, location.file, message and fix, and issues for policy-invalid (home-missing for a home directory that is not an absolute path, also an empty HOME, names the variable instead of a file: location is {"file": "environment", "variable": "HOME"}, USERPROFILE on Windows, as in doctor --user). A usage error with --json (an unknown option, check without a package, --json with --sarif) prints a document with only schemaVersion and errors, with the code usage and no location, and exits with 2; without --json it is written on stderr like the other errors, as error: <message> (usage) and a fix: line. The warnings of explain have code, level, location (when they concern one file), message, files and fix. Paths are relative to the directory the command works on (a directory that does not exist is named as given). A depcurfew.json that cannot be used is an error with the same code, message and fix in apply, check and explain, which also keeps it in policy; doctor reports it as the finding invalid-policy, so that it reaches code scanning too, and counts it in summary.error. Within a schemaVersion fields and values are only added; a field is removed or changes its meaning only with a new schemaVersion.
explain shows, for each tool in the policy section (and for each directory listed in projects), what installScripts and sources mean there, from the same plan apply makes: the settings apply writes with their files, or the warning apply gives when the tool cannot enforce a part, with its code and what to do. The text has one line per tool and part, nothing to write when apply writes nothing there and has nothing to say, and not managed when the policy has no such section:
installScripts deny, allow esbuild:
<tool>: <setting> and <setting> in <file>, <setting> in <file>; warning: <message> (<code>); fix: <what to do>
sources git deny:
<tool>: nothing written; warning: <tool> has no setting for git dependencies, so "deny" cannot be enforced (source-not-enforceable); fix: <what to do>In explain --json, policy.installScripts holds default, allow, deny and tools, policy.sources the sources the policy sets and tools, and each entry of projects has installScripts and sources with tools (each null when the policy has no such section). Each entry of tools has tool, settings (setting, file, and table for a TOML table) and warnings, the warnings of apply --json about that part for the tool. A setting that apply writes only to correct a value (allow-all-replaced) is listed only while the file still needs that correction.
How apply edits files:
- It keeps comments, formatting, line endings and key order. In line-based files (INI, TOML) it writes a block between
# >>> depcurfew managed blockand# <<< depcurfew managed blockmarkers and comments out older copies of the settings it manages (they come back when the policy stops managing them); in YAML it marks the keys it writes with# managed by depcurfew; JSON files keep their comments and indentation. - It reads files the way the tool does. In YAML files of a tool whose loader applies merge keys (
<<: *defaultsinpnpm-workspace.yamland pnpm'sconfig.yaml), a setting a merge key brings in counts, andapplywrites its value into the map itself, which wins over merged keys;.yarnrc.ymlanddependabot.ymlare read without merging. A switch that allows every install script counts as on for every value the tool does not read as off: pnpm runs every build script fordangerouslyAllowAllBuilds: "false"(a string) oryes, npm and pnpm 10 for=1or=yesin.npmrc, and Yarn forenableScripts: 1or"true". TOML table names and keys are read as TOML reads them, so[tool."uv"],[tool . uv]and["install"]are the tables[tool.uv]and[install]. - An install-script allow-list of another type than the tool reads (a list where npm and Yarn take an object of package names, an object where Bun takes a list) stays as it is, with the warning
unexpected-value, since replacing it would drop the packages it names. - It never removes settings it does not manage. Allow-lists are only added to; exception lists follow the policy, except the entries Renovate adds to pnpm's exception list for security updates, which stay with their comment. An exception written by hand that the exceptions of the policy do not name is commented out (in YAML kept as a comment above the list it writes, in JSON removed), with the warning
exclusion-dropped, which names the patterns that keep it. uv also lets the project give one package a date or a delay of its own, which wins over the delay for all packages: one that holds the package back longer thancooldown.minimumstays in the managed block, and a shorter one is commented out withexclusion-dropped. An entry in a tool's own install-script list that contradictsinstallScripts(it lets a package ofinstallScripts.denyrun its scripts, or blocks one ofinstallScripts.allow) stays as it is, with the warningdeny-conflicts-with-file, andapplyrecords no denial for that package. - When it replaces a longer release-age delay someone set by hand with the policy's shorter one, it warns (
cooldown-shortened) and names thecooldown.minimumthat keeps it. A fixed date in place of a delay, which uv, PDM and Deno accept ("2024-01-01"), counts as the whole days since it. A value depcurfew cannot read (Composer's"1 month"or"P30D", which Composer rejects too, Deno's"3 days") stays as it is, withcooldown-not-written. - When it makes a setting it did not write less strict, it warns as well: a dependency source that
.npmrclimits withnoneorroot, pnpm's switch for git and tarball sources and a Yarn list of approved git repositories without**, under a policy that allows those sources (source-loosened), and a Renovate delay of security updates undersecurityUpdates: "bypass"(security-delay-removed). - If any file cannot be edited, nothing is written. If a file cannot be written, the files already written are put back.
- It does not create bot configuration files or project manifests (
package.json,deno.json,pyproject.toml,Pipfile,requirements.txt); it creates a package manager's configuration file when it is missing. A package manager seen only in a CI setup step, with nothing of it in the repository, is not configured undertargets: "auto". - It warns when a file it writes is ignored by git (
.gitignoreor.git/info/exclude), because the change would then stay on one machine.
init warnings and notes
depcurfew init says what it wrote and, as warnings and notes with a code, what to look at before depcurfew apply: the projects it listed, a directory it left out of them, the delay it kept and what the default policy blocks. The text, on stdout, shows each with its level word, the message with its code in parentheses and what to do on the next line. depcurfew init --json (also with --user) prints one JSON document and nothing on stderr: policy (the file written, as the text names it; null when the directory does not exist or the home directory cannot be used), written, action (create or overwrite, null when nothing was written), projects, tools (each detected tool with tool, name, directory and supported; null with --user, which detects none), warnings and notices (each with code, level, location with file and, when known, line, message and fix; paths relative to the directory init works on, under ~/ with --user) and errors, why nothing was written, with the codes of apply (policy-exists, cannot-write, directory-not-found, not-a-directory, home-missing). The exit codes are those of the text: 0 written (warnings and notes included), 1 not written (the file exists without --force, it cannot be written, or with --user the home directory cannot be used), 2 a usage error or a directory that does not exist.
Install scripts: init reads the lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, deno.lock, as lockfile-install-scripts reads them) and writes the packages whose scripts depcurfew knows into installScripts.deny, each with a note that says why and what changes (install-script-denied, install-script-project-task). esbuild works without its postinstall as long as optional dependencies are installed, which hold its binary (without the script the esbuild command starts through a small Node.js script instead of the binary); fsevents loses nothing, since the package already contains the built fsevents.node; lefthook's postinstall only runs lefthook install, which installs the git hooks (and does nothing in CI), and the note says to run lefthook install after each clone of the repository, as the lefthook documentation says for projects that do not use its postinstall script (depcurfew never edits scripts). These notes are given for a package from a registry only: a package of the same name from git, a URL or a local path, or an entry whose resolved URL is the tarball of another package, is listed with the other packages to review. A known package that the package manager's own allow-list of install scripts (in package.json, pnpm-workspace.yaml or deno.json) already lets run its script stays out of installScripts.deny, as the project decided otherwise there; a note to review names it with that list and its line (install-scripts-to-review). Each fact names the release it was checked at, and a note says so when the lockfile has another one. The other packages with install scripts are listed in a note to review (install-scripts-to-review), and a lockfile that does not record install scripts (pnpm-lock.yaml, yarn.lock) gets a note too (install-scripts-not-recorded).
Warnings:
project-left-out: A direct subdirectory with a manifest or lockfile is left out of projects, because depcurfew apply would refuse it (it has a depcurfew.json of its own, it is a separate git repository, or its name differs from that of a listed directory only in case).
Notes:
projects-listed: The repository root has no manifest or lockfile, but direct subdirectories do, so init lists them under projects in depcurfew.json.cooldown-kept: The repository (with --user, the user file of an installed tool) already sets a longer release-age delay, so cooldown.minimum keeps it instead of the default; a fixed date of uv, PDM or Deno counts as the whole days since it.sources-kept: An .npmrc of the repository already denies a dependency source the default policy allows (allow-file=none, allow-directory=none), so init writes "deny" for it in sources.security-delay-kept: Renovate already delays security updates (vulnerabilityAlerts.minimumReleaseAge), so init writes cooldown.securityUpdates "delay" instead of "bypass", which would make depcurfew apply remove the delay.exclusions-kept: The tools' own exception lists already exempt packages from the release-age delay (npm's min-release-age-exclude, pnpm's minimumReleaseAgeExclude, Dependabot's cooldown.exclude...), so init lists them in cooldown.exclude, where depcurfew apply keeps them; review each before depcurfew apply.install-scripts-kept: The package managers' own allow-lists already let packages run install scripts (pnpm's allowBuilds or onlyBuiltDependencies, Bun's trustedDependencies, Yarn's dependenciesMeta, npm's or Deno's allowScripts), so init lists them in installScripts.allow; review each before depcurfew apply.python-builds-denied: installScripts.default "deny" also blocks building Python packages from source, so a package without wheels for the platform stops installing until it is allowed.tool-only-in-ci: A tool appears only in a CI setup step, so depcurfew apply does not configure it under targets "auto".install-script-denied: A lockfile has a package whose install script depcurfew knows it does not need (esbuild, fsevents), so init adds it to installScripts.deny; the note says what changes without the script.install-script-project-task: A lockfile has a package whose install script only does a task of the project (lefthook installs the git hooks), so init adds it to installScripts.deny; the fix says how the project runs that task itself.install-scripts-to-review: A lockfile has other packages with install scripts, or composer.lock has Composer plugins (the note says which ones config.allow-plugins in composer.json already allows), which installScripts.default "deny" blocks; review each before depcurfew apply.composer-source-checkouts: config.preferred-install in composer.json makes Composer install packages of composer.lock from their VCS repositories, which sources.git "deny" does not allow, so depcurfew doctor reports them; the note says which entry and which packages.bot-config-unreadable: The Dependabot configuration uses a YAML alias, which Dependabot does not accept, so it reads no configuration from the file, and init does not read the delays it sets when it chooses cooldown.minimum.install-scripts-not-recorded: A lockfile does not record which packages have install scripts (pnpm-lock.yaml, yarn.lock, a bun.lock that marks none, which Bun before 1.4.4 writes), or is in a format depcurfew does not read, so init can name only the packages depcurfew knows.
apply warnings and errors
Each warning and error of apply has a code. The text output shows it in parentheses after the message, with what to do on the next line, like a doctor finding. depcurfew apply --json (also with --dry-run) prints one JSON document and nothing on stderr: changes (each file with its action and unified diff), warnings and errors (each with code, level, message and fix; tool when it concerns one tool; location when it concerns one file, with file and, when known, line; for an invalid policy also issues), snippets to add by hand, notices (such as policy-from-parent) and written. A run that writes nothing because of an error lists no changes and exits with 1. Diffs, on the terminal, in a pipe and in changes, show the values of secrets as <redacted> (_authToken, _auth, _password and the client key key in .npmrc, keys ending in token or password, the user part of a URL up to the last @ before its host, also a token alone such as https://TOKEN@host or git+https://ghp_…@github.com, but not the login name of an ssh URL such as git+ssh://[email protected]), also under a quoted key such as "//registry.npmjs.org/:_authToken" and in a line of .npmrc or pip.conf that a lone carriage return splits in two, as npm and pip read it. In JSON files they also show every value of Composer's credentials, which Composer keys by host (github-oauth, gitlab-oauth, gitlab-token, bearer, http-basic, bitbucket-oauth, custom-headers, client-certificate, forgejo-token and the HTTP headers of a repository), read by their place in the document, so also in a minified composer.json. So a diff can be shared or logged; the files keep the values. The lines that doctor (config-drift) and doctor --user quote show secrets the same way. The text diff also shows control and bidirectional characters from the files as text (\x1b, ), so that a value cannot drive the terminal or a CI log; changes keeps them, escaped by JSON.
Warnings:
nothing-to-configure: depcurfew found no supported package manager or bot, so nothing is configured.environment-overrides: apply --user: an environment variable makes a tool read another user file or none, or overrides a value apply writes there.depcurfew-outdated: The project installs a newer depcurfew than the one running, which may not know settings that version writes.file-unreadable: A file that shows which tools a project uses cannot be read or parsed (too large, a symlink out of the repository, no read permission, invalid), so depcurfew may configure fewer tools than the project uses.tool-not-supported: A detected or installed tool is not supported (Yarn Classic), so nothing is written for it.target-not-found: With projects, a package manager listed under targets is configured in each directory (the root or a project) that uses it, and none uses it, so nothing is written for it.tool-only-in-ci: A tool appears only in a CI setup step, with no manifest, lockfile or configuration in the repository, so targets "auto" does not configure it.version-not-pinned: No exact version of a package manager is pinned, so depcurfew configures for the latest version it knows.version-too-old: The pinned version of a tool (with apply --user, the installed one) lacks a setting the policy needs, so that setting is not written.version-in-use-too-old: Another npm the repository runs than the pinned one (one a declared Node.js comes with, such as Node.js 24 in .nvmrc, or a CI job or Dockerfile installs) lacks a setting apply writes for the release-age delay or a dependency source, so that setting has no effect there; doctor reports the same places as manager-version-too-old. A place that only runs npm ci needs no delay.version-unknown: apply --user: the installed version of a tool cannot be read from its files, and a value it does not understand would stop every command, so nothing is written for it.no-user-config: apply --user: the tool has no user-level configuration file, so nothing is written for it.user-setting-project-only: apply --user: the tool reads a part of the policy only from project files, so it is not written into the user file.user-directory-relative: apply --user: the environment variable that names the directory of the user file (XDG_CONFIG_HOME, APPDATA) is a relative path, so the tool looks in another place from each directory, or where it looks then is not known; nothing is written for it.user-file-uncertain: apply --user: a library the tool calls decides where its user file is (platformdirs for Poetry and PDM on macOS), and its version cannot be read from files, so apply --user writes where the tool's docs say and names the other files the tool may read.user-setting-overridden: apply --user: a file the tool reads ahead of its user file (~/.npmrc for pnpm 10) sets a key apply writes there to another value, so the value written has no effect.version-not-used: apply --user: --for gives the version of a tool that apply --user does not configure (not in PATH with targets "auto", or not listed under targets).cooldown-not-written: The release-age delay cannot be written for a tool (for Bundler: a source call of the Gemfile apply does not edit, no source "https://rubygems.org", or a Gemfile depcurfew cannot read as Ruby does from the line given on, which it then does not edit at all; for pnpm 12.15 and later: include in pnpm-workspace.yaml gives minimumReleaseAge to a config dependency or to a file outside the directory).cooldown-shortened: A release-age delay set outside depcurfew's markers (in JSON files also one an earlier apply wrote) is longer than the policy, and apply replaces it with the shorter one; a fixed date of uv, PDM or Deno counts as the time since that date.cooldown-environment-only: pip reads no project configuration, so the release-age delay has to be set in the environment where pip runs.exclude-pattern-unsupported: A cooldown exception uses a wildcard the tool does not support, so it is not written.exclude-ignored-by-exec: npx, npm exec and npm x do not read min-release-age-exclude: the packages of cooldown.exclude that they download still wait for the release-age delay.exclude-unsupported: The tool has no setting for cooldown exceptions, so the release-age delay applies to every package (Bundler: also because the policy has no names for Ruby gems).exclude-not-written: The setting that holds the cooldown exceptions (Composer's config.policy.cooldown.ignore) has a value of a type the tool does not accept there, so apply leaves it as it is and does not add the exceptions; the release-age delay is written.exclude-entry-outside-policy: A cooldown exception in a file without depcurfew's markers (Composer's config.policy.cooldown.ignore) exempts a package that cooldown.exclude does not; apply removes only the entries it wrote, recognised by their reason, and leaves this one.allow-pattern-unsupported: An installScripts.allow entry is a pattern, but the tool takes package names only, so it is not written.deny-pattern-unsupported: An installScripts.deny entry is a pattern, but the tool records denials by package name only, so it is not written.allow-all-unsupported: The tool has no setting that allows every install script, so installScripts "allow" is not written.allow-all-replaced: A setting that allowed every install script (with any value the tool reads as true, also one that a YAML merge key brings in, or pnpm 10's dangerously-allow-all-builds in .npmrc) was set to false, or replaced with the policy's allow-list where the setting is the list itself (Deno's allowScripts, Composer's allow-plugins, which then may be {}), because the policy denies install scripts.allow-list-entry-outside-policy: An install-script allow-list in the repository (with apply --user, in a user file) lets a package run scripts the policy does not allow, or will once the tool reads the list (Deno before 2.6.0 does not read allowScripts); apply does not remove it.deny-conflicts-with-file: An entry in a tool's own list lets a package of installScripts.deny run its install scripts, or blocks a package of installScripts.allow; apply does not change entries it did not write.deny-needs-optional-dependencies: A package of installScripts.deny takes its binary from an optional dependency (esbuild), but npm leaves optional dependencies out (omit=optional or optional=false in .npmrc, --omit=optional or --no-optional on an install of a CI job or Dockerfile, NPM_CONFIG_OMIT=optional), so the package cannot find its binary after that install.unexpected-value: A setting apply adds to has a value of a type the tool does not accept there, so apply leaves it as it is and writes nothing into it.built-in-list-replaced: Bun's built-in list of trusted packages is replaced by the policy's allow-list.scripts-not-enforceable: The pinned (with apply --user, the installed) npm or pnpm, or another npm the repository runs (one a declared Node.js comes with, or a CI job or Dockerfile installs), runs every install script and has no allow-list, so "deny" cannot be enforced; also given for an npm the repository runs whose version depcurfew cannot tell, which counts as one that runs them, and for Bundler, which builds the native extensions of gems at install time and has no setting that stops it.strict-allow-scripts-for-npm-in-use: An npm the repository runs (the pinned one, one a CI job or Dockerfile installs, or one a declared Node.js comes with, for a project also through the root version files and root Dockerfiles that build it) is 11.16 to 11.x and runs install scripts the allow-list does not cover unless strict-allow-scripts is set, so apply writes strict-allow-scripts=true, which makes npm 12 stop the install at such a script; not given when that npm is the pinned one and no place runs npm 12.before-overrides-cooldown: before= in .npmrc takes the place of the release-age delay apply writes, or makes npm stop with an error next to it (apply --user then does not write the delay).exact-version-gap: The pinned (with apply --user, the installed) pnpm skips the release-age delay for packages requested by exact version.setting-owned-elsewhere: pnpm 12.15 and later: include in pnpm-workspace.yaml gives a setting the policy needs to a config dependency or to a file outside the directory, so apply does not write it (pnpm refuses a setting with two owners, ERR_PNPM_DUPLICATE_SETTING) and cannot check its value; the release-age delay itself gives cooldown-not-written.source-not-enforceable: The tool has no setting for a dependency source the policy denies; doctor checks the lockfile instead, where it reads it (not Gemfile.lock).source-loosened: A dependency-source setting outside depcurfew's markers is stricter than the policy (npm's allow-file or allow-directory none or root, pnpm's blockExoticSubdeps true, a Yarn approvedGitRepositories list without **), and apply replaces it with the value the policy's "allow" gives.security-delay-removed: Renovate delays security updates (vulnerabilityAlerts.minimumReleaseAge), but cooldown.securityUpdates is "bypass", so apply sets it to null and Renovate proposes them at once.exclusion-dropped: A cooldown exception set outside depcurfew's markers (an entry of npm's min-release-age-exclude, pnpm's minimumReleaseAgeExclude, Yarn's npmPreapprovedPackages, Bun's minimumReleaseAgeExcludes, Deno's minimumDependencyAge.exclude, uv's exclude-newer-package, PDM's exclude-newer-override, Poetry's min-release-age-exclude or Dependabot's cooldown.exclude) is not in cooldown.exclude, so apply comments it out (removes it in JSON), and the package waits again. Also an entry of uv's exclude-newer-package with a date or a duration that holds its package back less than cooldown.minimum; one that holds it back longer stays in the managed block.source-switch-indirect-only: The pnpm setting for git and tarball sources stops them only for indirect dependencies.source-switch-combined: One pnpm setting covers git and tarball sources, so denying one denies both.forced-source-build: Python packages on the allow-list are always built from source, because no tool can only allow a build.build-switch-scope: The tool's switch forbids building only packages from an index; git, local and archive dependencies are still built.build-switch-install-only: Poetry applies its build switch when installing; poetry lock may still build source distributions.build-switch-environment-only: The tool has no project setting that forbids building from source, so it has to be set in the environment where the tool runs.requirements-file-missing: There is no requirements file to write pip options into.build-switch-undone: A line of a requirements file pip reads (requirements.txt or a file it includes with -r or -c) has --no-binary or --only-binary=:none:, which undoes the --only-binary=:all: apply writes, and apply cannot comment it out: the option follows a requirement, shares its line with other options or continues on the next line.requirements-include-unread: A requirements file pip reads includes another one (-r, -c) that apply cannot check for lines that undo --only-binary=:all: (a URL, a path outside the directory configured, a missing file, or a file it cannot read).manifest-missing: A setting belongs in a project manifest (package.json, deno.json, pyproject.toml, Pipfile, composer.json, Gemfile) that does not exist, and apply does not create manifests.lockfile-out-of-date: The lockfile records, or is checked against, a setting apply changed, so it has to be locked again.file-ignored-by-git: A file apply writes matches a .gitignore rule, so the change may never reach the repository.bot-config-missing: A bot has no configuration file, and depcurfew does not create one.bot-config-not-edited: A bot configuration file is in a place or format depcurfew does not edit; a snippet shows what to add.bot-entries-missing: The Dependabot configuration has no entries for the package managers in use.bot-config-unreadable: The Dependabot configuration uses a YAML alias, which Dependabot does not accept, so it reads no configuration from the file (the cooldown apply writes included), and depcurfew does not read the delays the file sets.bot-rule-shortens-delay: A Renovate packageRules entry apply does not manage gives every package of a registry, Renovate manager or category in use, the actions of the workflows or the dependencies of an ecosystem updated by bots only (Cargo, Go modules, Maven, Gradle, NuGet), or some update types of them, a shorter release-age delay than the one apply writes; or a Dependabot updates entry apply writes the cooldown into has a cooldown.include list, which limits the cooldown to the dependencies it names, or keeps a cooldown.exclude list that matches every dependency (an entry for actions, Ruby gems or an ecosystem updated by bots only, whose list apply does not replace). The bot uses these, and apply does not change them.security-delay-unsupported: Dependabot cannot delay security updates, so securityUpdates "delay" is not applied.
Errors (nothing is written):
cannot-edit: A file cannot be read or edited safely (invalid syntax, a symlink, a style depcurfew does not edit, a file over the size depcurfew reads, 1 MiB for configuration and 64 MiB for lockfiles, also one that the change would make larger than that), so nothing is written.cannot-write: A file cannot be written (no permission, a read-only file system, a full disk, a directory or symlink in its place); the files already written are put back, so nothing changes.policy-missing: The directory has no depcurfew.json.policy-invalid: depcurfew.json does not follow the schema; issues lists the problems.policy-unreadable: depcurfew.json cannot be read.policy-exists: depcurfew init found a depcurfew.json and writes it only with --force.directory-not-found: The directory given on the command line does not exist or cannot be opened.not-a-directory: The path given on the command line is a file, not a directory.usage: The command line is not valid: an unknown command, option or hook, a missing or extra argument, an option without its value or with one it does not take (such as a --registry that is not an http:// or https:// URL), or options that cannot go together (exit code 2); with --json the document holds only schemaVersion and this error.project-not-found: A directory listed in projects in depcurfew.json does not exist, so nothing is written.project-not-a-directory: A path listed in projects in depcurfew.json is a file, not a directory, so nothing is written.project-symlink: A directory listed in projects in depcurfew.json is a symlink or lies under one, which may lead out of the repository, so nothing is written.project-has-policy: A directory listed in projects has a depcurfew.json of its own, a second policy for the same files, so nothing is written.project-is-repository: A directory listed in projects is a separate git repository or lies in one (it has a .git of its own, as a git submodule does), whose files belong to that repository, so nothing is written.project-in-workspace: A directory listed in projects is, holds or lies in a workspace package of the repository root, which the root configuration already covers, so nothing is written.home-missing: apply --user and init --user: the home directory (HOME, USERPROFILE on Windows) does not exist or is not an absolute path, so nothing is written.
Protecting the whole machine
depcurfew apply protects one project. The user-level configuration of each package manager protects every project on the machine that does not set the same settings itself, and also what runs outside a project: npx, uvx, global installs, and a new project before anyone ran apply in it.
depcurfew init --user
depcurfew apply --user --dry-run
depcurfew apply --user
depcurfew doctor --user- The user policy is
~/.config/depcurfew/depcurfew.json(in$XDG_CONFIG_HOME/depcurfew/when that variable is set to an absolute path, in%APPDATA%\depcurfew\on Windows). It has the same format as a project policy; undertargets: "auto"it configures the package managers found inPATH. - depcurfew does not run other programs to learn their versions. It reads the version from the files next to the executable in
PATH: thepackage.jsonof a tool installed from npm (also Yarn installed as@yarnpkg/cli-dist), the.dist-infofolder of one installed from PyPI. A Yarn or pnpm shim of Corepack runs, outside a project, the version Corepack'slastKnownGood.jsonnames (in$COREPACK_HOME, else$XDG_CACHE_HOME/node/corepack, else~/.cache/node/corepack;%LOCALAPPDATA%\node\corepackon Windows), and ayarnPathin~/.yarnrc.ymlthat points to a release namedyarn-<version>.cjs, asyarn set versionnames it, gives Yarn's version;doctor --usersays where each version came from. When it cannot, it configures for the latest version it knows and says so, except for tools that stop every command on a value their version does not understand (the last column below): for those it writes nothing until you pass the version, for example--for [email protected]. Bun from its official installer (~/.bun/bin/bun, which writes no version file) or from Homebrew has no version depcurfew can read, so it needs--for bun@<version>. init --userkeeps a longer release-age delay that the user files of the installed tools already set, asinitdoes in a project: a delay of 7 days in~/.npmrcmakescooldown.minimum7d, andinit --usersays which setting, value, file and line it took. Deno reads the delay in~/.npmrcin whole days and ignores any other value, soapply --userwrites it for Deno in days, rounded up.- Poetry and PDM ask the library platformdirs where their user directory is, and on macOS the answer depends on the platformdirs version in the tool's environment (the rows below). depcurfew reads that version from the
platformdirs-<version>.dist-infofolder next to the tool's own; when it cannot andXDG_CONFIG_HOMEorXDG_DATA_HOMEwould move the file,apply --userwrites where the docs say (~/Library/Application Support/...) and warns with the other file (user-file-uncertain), anddoctor --userchecks both. apply --userwrites the files of all tools or none, asapplydoes in a project: a user file it cannot read or edit (not UTF-8, a symlink, larger than 1 MiB, a file where its directory belongs) is an error that names it, such as~/.config/pip/pip.conf, with a fix for that problem, and a file that cannot be written puts back the ones already replaced.init --userandapply --userdo not create a missing home directory, and whenXDG_CONFIG_HOMEor%APPDATA%is a relative path,apply --userwrites nothing for the tools that may use it, with a warning (pip then readspip.confrelative to the directory each command runs in). Run as root (sudowithHOMEkept), they leave each file they replace to its owner, and give what they create in the home directory to the owner of the home directory. Run so, they write nothing through a symbolic link in the home directory that leads out of it (~/.config/pippointing at a directory of root, say), since the owner of the home directory could put one there; the error names the link and where it leads. Files under an absoluteXDG_CONFIG_HOMEor%APPDATA%outside the home directory are written as before.- A key
apply --userwrites into a user file can be overridden by a file the tool reads ahead of it: pnpm 10 reads~/.npmrcbefore itsrcfile.apply --userwarns about a different value there (user-setting-overridden) with the line, anddoctor --userreports it. - A tool's own project settings win over its user file for the same key. Parts of the policy that a tool reads only from project files, such as per-package allow-lists, are not written into the user file;
apply --usernames them, anddepcurfew applyin the project writes them. - A user file is edited as
applyedits a project file: a setting the policy manages that is s
