Skip to content

AgentiaPT/vela-slides / .claude/skills/dependency-sweep

dependency-sweep

Unverified

Run a global dependency bump across every ecosystem in this repo (npm, GitHub Actions, pip, docker, Go, the Neutralino runtime) with supply-chain cooldowns enforced. Use when asked to bump dependencies, clear dependabot PRs, sweep updates, check for vulnerable dependencies, or audit the supply chain. Starts from a deterministic script so only the judgement calls cost reasoning.

Dependency sweep

You are in control. dep-sweep.py is an instrument you point at things — it gathers evidence and computes eligibility, it never edits a file and never decides. Run it in stages, read each result, then choose the next move.

Never re-derive by hand what the script already computed. Registry dates, cooldown arithmetic, pin verification and provenance are exactly the work it exists to remove.

Stage 1 — cheap, offline, no excuses (< 1s)

python3 tools/vela-dev/scripts/dep-sweep.py --offline --only coverage,parity

Is a manifest unwatched? Have the two root lockfiles drifted? Both are structural problems that make everything downstream untrustworthy. Fix these before looking at versions.

Stage 2 — what is actually available (~10s, network)

python3 tools/vela-dev/scripts/dep-sweep.py --only npm,go,audit

Cooldown-eligible npm targets, an end-of-life Go toolchain, and live advisories per tree. Install the trees first (npm ci, pnpm install --frozen-lockfile in tools/vela-dev/channel) or the audit half reports nothing — an uninstalled tree is silence, not a clean bill of health.

Stage 3 — Actions and supply-chain vetting (~15s more)

python3 tools/vela-dev/scripts/dep-sweep.py --upgrades --vet

--upgrades is not optional when Actions are in scope. Without it the report confirms each pin matches the tag it claims and says nothing about whether that tag is still current — an action can be correctly pinned to a release upstream has since superseded for security reasons, and the report will look clean.

--vet adds provenance, publisher-identity and install-hook deltas for each eligible target.

Everything at once

python3 tools/vela-dev/scripts/dep-sweep.py --vet --upgrades --base <ref> --json

--json when you want to reason over the data rather than read prose; --base diffs lockfiles against a ref to surface newly-introduced package names (use the branch point, not the branch you are on, or it compares to itself).

Exit codes: 0 clean · 1 findings · 4 anything at high/critical severity. That is broader than just integrity failures: a bad Action pin, a lockfile parity break, an end-of-life Go toolchain, and live high-severity advisories from npm/pnpm audit all exit 4. Read which finding caused it before assuming the tooling misfired.

What the script decides, and what you decide

The script settlesYou must judge
Which versions have cleared their cooldown tierWhich eligible version to actually take
That a pin matches its upstream tagWhether a major is in scope at all
Provenance / publisher / hook deltasWhether to spend the security exemption
Advisory counts per treeWhat a release note means for this repo's usage
Newer Action tags (with --upgrades)Whether an Action major changes behaviour you rely on
That the Go toolchain is EOLWhich supported Go line to land on

The judgement calls that recur

  1. Newest eligible vs. last patch of a line. The report flags X is eligible but already superseded by Y (still in cooldown). Taking X means shipping a version its own maintainers already patched. Usually prefer the newest version that is both past cooldown and the final patch of its line — even if that means staying a minor behind.
  2. Cooldown is measured against the TARGET version's release date, for the whole jump. 1.60.0 → 1.62.1 is a minor update, so 1.62.1 needs 14 days — not 7 because .1 looks like a patch. The script gets this right; don't second-guess it into taking something fresher.
  3. The security exemption is real but must be earned. .github/dependabot.yml exempts security fixes from cooldown. Only spend it when the version is the fix for a live advisory and no patched release also clears the tier. Check for an older patched version first. State the shortfall explicitly in the commit message — never imply full compliance you did not have.
  4. Transitive advisories usually are not fixed by bumping the direct dep. Refresh transitives within existing ranges first (pnpm update --lockfile-only). Only move the parent when its declared range cannot reach the patched version.
  5. overrides to pin a transitive is almost always wrong — it masks future upstream fixes. Prefer a documented exemption.

Non-negotiables

  • Never take a version that fails cooldown without a security justification written into the commit message.
  • Keep both root lockfiles in step. npm ci drives CI; pnpm has its own floor. After changing either, re-run the script — parity is a hard finding. To pin an exact version despite a caret range, install it explicitly (npm install pkg@X --package-lock-only, pnpm add pkg@X --lockfile-only); a plain install resolves to the newest match and will undo your choice.
  • pnpm update rewrites specs in package.json. Check the diff and restore any spec you meant to hold back. Prefer targeting the packages you actually mean to move (pnpm update <pkg> --lockfile-only) over a bare pnpm update, which will also drag direct deps past their cooldown.
  • Never run a bare pnpm install inside vela-neutralino/. It walks up to the root pnpm-workspace.yaml and silently rewrites the ROOT pnpm-lock.yaml. Always use --ignore-workspace, exactly as _build-desktop.yml does. Check git status afterwards regardless.
  • Version bump: only needed if skills/vela-slides/ or src/parts/ changed. A pure dependency sweep touches neither, so no VELA_VERSION bump.
  • Disclosure discipline (CLAUDE.md): describe security fixes by class and effect. No payloads, no reproduction steps, no session URLs — public repo.

Ecosystems the script reports but cannot bump

  • Neutralino runtime (vela-neutralino/neutralino.config.json) — bump binaryVersion/clientVersion, run neu update, regenerate checksums/*.sha256, and verify over two independent fetch paths (the neu update result vs. a direct release download) before committing pins. Check new upstream APIs against nativeAllowList — it is a strict allowlist, so additions are unreachable unless explicitly added.
  • Go toolchain — go.mod, go-version: in workflows, and the Dockerfile base image must move together.
  • Vendored UMD bundles (vela-neutralino/resources/vendor/*.js) — react, react-dom, lucide-react and babel, shipped inside the desktop binary and covered by no lockfile. Bumping the npm versions of these does nothing to the desktop shell; the vendored copies must be re-vendored and re-hashed by hand or they silently drift. Identify a version by hashing the file against upstream tarballs; do not guess from strings inside the bundle.
  • pip transitives — pinning python-pptx does not pin Pillow/lxml.

Finish

Run the repo's gate before committing:

python3 tests/test_vela.py                      # 488
python3 tests/test_vela.py --integration        # 102
python3 tests/test_serve.py                     # 124
python3 -m unittest tests.test_desktop          # 35
node tests/test_release_build.cjs               # 22
python3 -m unittest tests.test_dep_sweep        # 57 (this tooling)
python3 tools/vela-dev/scripts/concat.py        # template must stay in sync

Then re-run stages 1-3 and confirm they report clean.

This tooling is deliberately not wired into CI or a scheduled workflow: a job you cannot exercise before merging is not a guard you can trust, and this is a tool you reach for when you are actually doing a bump. Running it is your job, which is why stage 1 is fast enough to have no excuse for skipping.

rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 467kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 467kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 467kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 193kUpdated Claude CodeCodexVerifiedInstall