Dependency upgrade plan
Build a ranked dependency upgrade plan from a real npm lockfile, live OSV advisories, and release constraints without changing project files.
Overview
In the manual
Runner
default
Declared by its execution profile. Read the profile
SKILL.md
What this skill does
dep-upgrade-plan reads a public npm package-lock.json, extracts locked npm
dependencies, queries OSV.dev at run time for advisories affecting those exact
versions, and emits a ranked upgrade plan. Each plan entry includes the package
name, exact from version, exact to version, risk level, advisory source, and
a breaking-change note. The skill also writes a changelog-style reviewer
summary when output_dir is provided.
This is a planning skill. It does not edit manifests, install packages, run target project code, open pull requests, or perform package bumps. The proposed plan is meant to be consumed by release catalog or remediation workflows after a human reviews the evidence.
When to use this skill
Use this skill when a release operator needs a reproducible upgrade queue for a real npm project. It is useful for triage because it preserves the lockfile hash, live OSV advisory source, constraints, selected target versions, ranking reasons, and refusal reasons.
Inputs
target_name: human-readable project name.target_repo: public source repository URL.target_ref: immutable commit, tag, or release reference.lockfile_path: local path to apackage-lock.jsoninside the skill directory.lockfile_url: public HTTPS URL for apackage-lock.json.lockfile_json: package-lock contents as a JSON string.scan_scope: optional;directby default. Useallto scan transitive lockfile packages.include_dev: optional;falseby default.advisories_path: optional supplemental local advisory facts.advisories_url: optional supplemental public HTTPS advisory facts.advisories_json: optional supplemental advisory facts as a JSON string.constraints_path: local JSON file containing package constraints.constraints_url: public HTTPS URL containing package constraints.constraints_json: constraints as a JSON string.output_dir: optional directory inside the skill directory forevidence.jsonandreport.md.
The skill queries OSV.dev for live npm advisories. Supplemental advisories may
include package records with package, current, fixed, severity,
advisory, source, and breaking fields. Constraints may include
package-specific allowed, blocked, max_major, notes, or require_note
fields.
Outputs
The primary output is dependency_upgrade_plan with schema
dep.upgrade.plan.v1:
{
"schema": "dep.upgrade.plan.v1",
"target": {},
"source": {},
"summary": {},
"plan": [
{
"pkg": "express",
"from": "4.16.4",
"to": "4.20.0",
"risk": "medium",
"breaking": "OSV fixed version stays within major 4; review release notes before shipping."
}
],
"changelog": [],
"refused": false
}When output_dir is supplied, the runner writes evidence.json and report.md
inside that directory and returns their relative paths.
Ranking rules
- Read package versions from the lockfile and record the lockfile SHA-256.
- Query OSV.dev for advisories affecting exact locked npm package versions.
- Ignore advisory records where
currentdisagrees with the lockfile. - Refuse a target version blocked by constraints.
- Refuse a target major above a configured
max_major. - Rank by severity, then whether a breaking note exists, then package name.
- Emit exact
fromandtoversions for every plan entry.
Refusal behavior
The skill refuses to seal when no upgrade can be recommended, when every candidate violates constraints, when required inputs are missing, when a URL is not HTTPS, when JSON is invalid, when OSV cannot be queried, or when a package cannot be found in the lockfile. The refusal is intentional evidence for reviewers: it prevents silent or unsafe upgrade advice.
Worked example
runx skill ./skills/dep-upgrade-plan \
--input target_name="OWASP NodeGoat" \
--input target_repo=https://github.com/OWASP/NodeGoat \
--input target_ref=c5cb68a7084e4ae7dcc60e6a98768720a81841e8 \
--input lockfile_url=https://raw.githubusercontent.com/OWASP/NodeGoat/c5cb68a7084e4ae7dcc60e6a98768720a81841e8/package-lock.json \
--input scan_scope=direct \
--input include_dev=false \
--input output_dir=artifacts/nodegoat-live \
--jsonThe sealed dogfood run scans OWASP NodeGoat at an immutable commit, queries live OSV advisories for its locked direct production dependencies, and produces a ranked plan. The hosted harness uses a checked-in snapshot of the same NodeGoat lockfile so publish-time verification is not dependent on raw GitHub availability. The refused dogfood case uses constraints that block every available upgrade and therefore exits non-zero without mutating project files.
Published execution profile
The execution profile published with sha-b131599ba6ec, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:bc2f5ce4082f6464a9835161cca09a5eaa5fb923dc07bde54928ad974753eb4d |
skill: dep-upgrade-plan
version: 0.2.1
catalog:
kind: skill
audience: public
visibility: public
role: canonical
tags:
- dependencies
- upgrades
- release-planning
category: code
runners:
default:
default: true
inputs:
target_name:
type: string
required: true
description: Human-readable project name.
target_repo:
type: string
required: true
description: Public source repository URL.
target_ref:
type: string
required: false
description: Immutable commit, tag, or release reference.
lockfile_path:
type: string
required: false
description: Local package-lock.json path inside the skill directory.
lockfile_json:
type: string
required: false
description: package-lock.json contents as a JSON string.
lockfile_url:
type: string
required: false
description: Public HTTPS package-lock.json URL.
advisories_path:
type: string
required: false
description: Optional supplemental local advisory facts path inside the skill directory.
advisories_url:
type: string
required: false
description: Optional supplemental public HTTPS URL for advisory facts JSON.
advisories_json:
type: string
required: false
description: Optional supplemental advisory facts as a JSON string.
advisory_mode:
type: string
required: false
default: live_osv
description: live_osv queries OSV.dev; supplied uses only provided advisories for deterministic hosted harness replay.
constraints_path:
type: string
required: false
description: Local JSON constraints path inside the skill directory.
constraints_url:
type: string
required: false
description: Public HTTPS URL for constraints JSON.
constraints_json:
type: string
required: false
description: Constraints as a JSON string.
output_dir:
type: string
required: false
description: Directory inside the skill directory where artifacts should be written.
scan_scope:
type: string
required: false
description: Optional scan scope the process reads.
include_dev:
type: boolean
required: false
description: Optional include dev the process reads.
steps:
- id: default
tool:
command: /usr/bin/env
args:
- node
- run.mjs
inputs:
target_name: $input.target_name
target_repo: $input.target_repo
target_ref: $input.target_ref
lockfile_path: $input.lockfile_path
lockfile_json: $input.lockfile_json
lockfile_url: $input.lockfile_url
advisories_path: $input.advisories_path
advisories_url: $input.advisories_url
advisories_json: $input.advisories_json
advisory_mode: $input.advisory_mode
constraints_path: $input.constraints_path
constraints_url: $input.constraints_url
constraints_json: $input.constraints_json
output_dir: $input.output_dir
scan_scope: $input.scan_scope
include_dev: $input.include_dev
outputs:
dependency_upgrade_plan:
required: false
evidence_json:
required: false
report_md:
required: false
scopes:
- dependencies.read
- dependency_plan.write
harness:
cases:
- name: nodegoat-live-osv-ranked-plan
runner: default
inputs:
target_name: OWASP NodeGoat
target_repo: https://github.com/OWASP/NodeGoat
target_ref: c5cb68a7084e4ae7dcc60e6a98768720a81841e8
lockfile_json: |
{"name":"owasp-nodejs-goat","version":"1.3.0","lockfileVersion":3,"requires":true,"packages":{"":{"name":"owasp-nodejs-goat","version":"1.3.0","dependencies":{"bcrypt-nodejs":"0.0.3","body-parser":"^1.15.1","consolidate":"^0.14.1","csurf":"^1.8.3","dont-sniff-mimetype":"^1.0.0","express":"^4.13.4","express-session":"^1.13.0","forever":"^2.0.0","helmet":"^2.0.0","marked":"0.3.5","mongodb":"^2.1.18","needle":"2.2.4","node-esapi":"0.0.1","serve-favicon":"^2.3.0","swig":"^1.4.2","underscore":"^1.8.3"}},"node_modules/bcrypt-nodejs":{"version":"0.0.3"},"node_modules/body-parser":{"version":"1.18.3"},"node_modules/consolidate":{"version":"0.14.5"},"node_modules/csurf":{"version":"1.9.0"},"node_modules/dont-sniff-mimetype":{"version":"1.0.0"},"node_modules/express":{"version":"4.16.4"},"node_modules/express-session":{"version":"1.15.6"},"node_modules/forever":{"version":"2.0.0"},"node_modules/helmet":{"version":"2.3.0"},"node_modules/marked":{"version":"0.3.5"},"node_modules/mongodb":{"version":"2.2.36"},"node_modules/needle":{"version":"2.2.4"},"node_modules/node-esapi":{"version":"0.0.1"},"node_modules/serve-favicon":{"version":"2.5.0"},"node_modules/swig":{"version":"1.4.2"},"node_modules/underscore":{"version":"1.9.1"}}}
advisory_mode: supplied
advisories_json: |
{"advisories":[{"package":"underscore","current":"1.9.1","fixed":"1.13.8","severity":"critical","advisory":"GHSA-cf4h-3jhx-xvhq","source":"https://osv.dev/vulnerability/GHSA-cf4h-3jhx-xvhq","breaking":"OSV fixed version stays within major 1; review release notes before shipping."},{"package":"body-parser","current":"1.18.3","fixed":"1.20.3","severity":"high","advisory":"GHSA-qwcr-r2fm-qrc7","source":"https://osv.dev/vulnerability/GHSA-qwcr-r2fm-qrc7","breaking":"OSV fixed version stays within major 1; review release notes before shipping."},{"package":"marked","current":"0.3.5","fixed":"4.0.10","severity":"high","advisory":"GHSA-5v2h-r2cx-5xgj","source":"https://osv.dev/vulnerability/GHSA-5v2h-r2cx-5xgj","breaking":"OSV fixed version crosses major versions (0.3.5 -> 4.0.10); review package changelog and runtime compatibility."},{"package":"mongodb","current":"2.2.36","fixed":"3.1.13","severity":"high","advisory":"GHSA-mh5c-679w-hh4r","source":"https://osv.dev/vulnerability/GHSA-mh5c-679w-hh4r","breaking":"OSV fixed version crosses major versions (2.2.36 -> 3.1.13); review package changelog and runtime compatibility."},{"package":"express","current":"4.16.4","fixed":"4.20.0","severity":"medium","advisory":"GHSA-qw6h-vgh9-j6wx","source":"https://osv.dev/vulnerability/GHSA-qw6h-vgh9-j6wx","breaking":"OSV fixed version stays within major 4; review release notes before shipping."}]}
scan_scope: direct
include_dev: false
output_dir: artifacts/nodegoat-live
expect:
status: sealed
operator_journeys:
- mode: standalone
confusors:
- cve-audit
- sbom-maker
request: Plan which dependencies to upgrade from this lockfile.
expected_outcome: Return a ranked upgrade plan from the lockfile and advisories without changing project files.
- mode: composed
request: Continue this dep-upgrade-plan work from evidence already gathered upstream.
expected_outcome: Return a ranked upgrade plan from the lockfile and advisories without changing project files.
prior_evidence:
- The lockfile and release constraints already supplied.
must_not_repeat:
- Do not edit the lockfile.
- name: nodegoat-all-upgrades-blocked-refusal
runner: default
inputs:
target_name: OWASP NodeGoat
target_repo: https://github.com/OWASP/NodeGoat
target_ref: c5cb68a7084e4ae7dcc60e6a98768720a81841e8
lockfile_json: |
{"name":"owasp-nodejs-goat","version":"1.3.0","lockfileVersion":3,"requires":true,"packages":{"":{"name":"owasp-nodejs-goat","version":"1.3.0","dependencies":{"bcrypt-nodejs":"0.0.3","body-parser":"^1.15.1","consolidate":"^0.14.1","csurf":"^1.8.3","dont-sniff-mimetype":"^1.0.0","express":"^4.13.4","express-session":"^1.13.0","forever":"^2.0.0","helmet":"^2.0.0","marked":"0.3.5","mongodb":"^2.1.18","needle":"2.2.4","node-esapi":"0.0.1","serve-favicon":"^2.3.0","swig":"^1.4.2","underscore":"^1.8.3"}},"node_modules/bcrypt-nodejs":{"version":"0.0.3"},"node_modules/body-parser":{"version":"1.18.3"},"node_modules/consolidate":{"version":"0.14.5"},"node_modules/csurf":{"version":"1.9.0"},"node_modules/dont-sniff-mimetype":{"version":"1.0.0"},"node_modules/express":{"version":"4.16.4"},"node_modules/express-session":{"version":"1.15.6"},"node_modules/forever":{"version":"2.0.0"},"node_modules/helmet":{"version":"2.3.0"},"node_modules/marked":{"version":"0.3.5"},"node_modules/mongodb":{"version":"2.2.36"},"node_modules/needle":{"version":"2.2.4"},"node_modules/node-esapi":{"version":"0.0.1"},"node_modules/serve-favicon":{"version":"2.5.0"},"node_modules/swig":{"version":"1.4.2"},"node_modules/underscore":{"version":"1.9.1"}}}
advisory_mode: supplied
advisories_json: |
{"advisories":[{"package":"underscore","current":"1.9.1","fixed":"1.13.8","severity":"critical","advisory":"GHSA-cf4h-3jhx-xvhq","source":"https://osv.dev/vulnerability/GHSA-cf4h-3jhx-xvhq","breaking":"OSV fixed version stays within major 1; review release notes before shipping."},{"package":"body-parser","current":"1.18.3","fixed":"1.20.3","severity":"high","advisory":"GHSA-qwcr-r2fm-qrc7","source":"https://osv.dev/vulnerability/GHSA-qwcr-r2fm-qrc7","breaking":"OSV fixed version stays within major 1; review release notes before shipping."},{"package":"marked","current":"0.3.5","fixed":"4.0.10","severity":"high","advisory":"GHSA-5v2h-r2cx-5xgj","source":"https://osv.dev/vulnerability/GHSA-5v2h-r2cx-5xgj","breaking":"OSV fixed version crosses major versions (0.3.5 -> 4.0.10); review package changelog and runtime compatibility."},{"package":"mongodb","current":"2.2.36","fixed":"3.1.13","severity":"high","advisory":"GHSA-mh5c-679w-hh4r","source":"https://osv.dev/vulnerability/GHSA-mh5c-679w-hh4r","breaking":"OSV fixed version crosses major versions (2.2.36 -> 3.1.13); review package changelog and runtime compatibility."},{"package":"express","current":"4.16.4","fixed":"4.20.0","severity":"medium","advisory":"GHSA-qw6h-vgh9-j6wx","source":"https://osv.dev/vulnerability/GHSA-qw6h-vgh9-j6wx","breaking":"OSV fixed version stays within major 4; review release notes before shipping."}]}
scan_scope: direct
include_dev: false
constraints_json: |
{"constraints":{"body-parser":{"blocked":["1.20.3"],"notes":"Release train is frozen for HTTP request parsing changes."},"express":{"blocked":["4.20.0"],"notes":"Express upgrade requires a separate middleware compatibility review."},"marked":{"blocked":["4.0.10"],"notes":"Markdown renderer replacement is blocked for this release."},"mongodb":{"blocked":["3.1.13"],"notes":"Driver major upgrade requires database integration testing."},"underscore":{"blocked":["1.13.8"],"notes":"Template helper compatibility is blocked pending manual review."}}}
output_dir: artifacts/nodegoat-blocked
expect:
status: failure
Published package and test evidence.
This exact version passed its recorded harness run: 2 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | sha-b131599ba6ec |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:c2298a4bd84b5649c6d36c8c162a99edc6dd1f4a05489d034e16d84f93383f58sha256:6fda50d6d23b1d370b66bf647a828e605c29b4061346f735d51a790caec8b617Package identity
| Published revision | sha-b131599ba6ec |
|---|---|
| Content digest | sha256:b131599ba6eca9e7db2385ed0f343474a83f2ba1898ec5b10846484041904ef7 |
| SKILL.md digest | sha256:ba58dcbb541a8f194875e44dcdc0e0e4a3aefe21d74995c1419afb88c50090b9 |
| Execution profile digest | sha256:bc2f5ce4082f6464a9835161cca09a5eaa5fb923dc07bde54928ad974753eb4d |
| Publisher identity | Unverified publisher · RYDE |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-b131599ba6ecViewingContent digest sha256:b131599ba6eca9e7db2385ed0f343474a83f2ba1898ec5b10846484041904ef7sha-323b705fdaafContent digest sha256:323b705fdaaf6865954de61a2fa4fde7402fef9b83851e6f484187f54c38bcc0sha-5abdea28781eContent digest sha256:5abdea28781e756fc4fff85559441680b83a9cc123ecdbc26f880b4aaf0fc719sha-b39b11311c20Content digest sha256:b39b11311c204942ea9b298519a702ad8bff6330a81ff1f57419b336b11ed3e0