Dependency advisory graph
Build an exact-version dependency advisory graph by scanning a real project lockfile and querying OSV advisories.
Overview
In the manual
Runner
default
Declared by its execution profile. Read the profile
SKILL.md
What this skill does
This skill builds a checkable dependency advisory graph for one real dependency
lockfile. It parses installed package versions from an npm package-lock.json,
queries OSV for those exact package/version pairs at run time, and returns a
graph-shaped JSON packet that separates confirmed advisory matches from clean or
unknown packages.
The runner is intentionally conservative. It requires installed versions from a
lockfile, uses OSV querybatch with exact package versions, never reports a
package-name-only finding, and emits a direct dependency fix path for each
finding so the operator can see which top-level dependency to bump.
When to use this skill
Use this skill when an agent needs a reproducible dependency advisory packet for
a public project, security handoff, Frantic delivery, runx receipt, or review
fixture where the target project has a dependency lockfile. It is appropriate
when the caller needs exact-version proof fields such as package,
installed_version, advisory_id, evidence_url, advisory_source,
retrieved_at, severity, fix_version, direct_dependency_to_bump,
fix_path, and confidence.
Use it to turn a real package-lock plus live OSV advisory data into evidence JSON, verification JSON, and a concise Markdown report. The output can support later upgrade planning, receipt review, or human triage, but it is not by itself an authority to publish an advisory or mutate a target repository.
When not to use this skill
Do not use this skill as a package installer, exploitability assessment, full application security review, SBOM generator, or automated remediation tool. Do not use it for private manifests unless the package names, installed versions, and advisory facts have an explicit disclosure grant.
Do not treat a zero-finding packet as proof that the project is vulnerability
free. It only means OSV returned no vulnerability for the exact package versions
found in this lockfile. If the lockfile is missing installed versions, return
needs_input or stop instead of guessing from broad semver declarations.
Procedure
- Read
lockfile,lockfile_path, orlockfile_url, optionalecosystem, and optionalproject_name/project_url. - Parse installed package names and exact installed versions from npm
package-lock.json. - Identify whether each vulnerable package is a direct dependency or which direct dependency owns its dependency path.
- Query OSV
querybatchfor each package/version pair. Harness fixtures may passosv_responseorosv_response_pathso tests remain deterministic. - Emit a finding only when OSV returns a vulnerability for the exact package and installed version queried.
- Emit
direct_dependency_to_bumpandfix_pathfor each finding. - Build graph nodes for scanned packages and matched advisories.
- Write
evidence.json,verification.json, andreport.mdwhenoutput_diris provided.
Edge cases and stop conditions
Return needs_input or stop when the caller omits lockfile, lockfile_path,
and lockfile_url. Stop when the lockfile is not valid JSON-like data, when it
does not contain npm packages or dependencies, or when OSV cannot be queried
and no explicit osv_response fixture was supplied.
Return needs_more_evidence when a finding would rely only on package name,
when OSV lacks a stable evidence URL, or when the caller cannot show the
authority or scope grant for publishing the result. Return refused when asked
to install packages, execute application code, read private repositories without
approval, submit a vulnerability report, or mutate a repository.
For output_dir, the resolved path must stay inside the skill directory. This
keeps artifacts bounded to the package and prevents accidental writes outside
the current receipt proof surface.
Output schema
The primary output is runx.dependency_advisory_graph.v2:
{
"schema": "runx.dependency_advisory_graph.v2",
"ecosystem": "npm",
"project": {
"name": "fixture-vulnerable-app",
"url": "https://example.com/fixture-vulnerable-app",
"lockfile_source": "fixtures/package-lock-advisory.json",
"lockfile_path": "fixtures/package-lock-advisory.json",
"lockfile_url": null
},
"package": "minimist",
"installed_version": "0.0.8",
"advisory_id": "GHSA-vh95-rmgr-6w4m",
"evidence_url": "https://osv.dev/vulnerability/GHSA-vh95-rmgr-6w4m",
"advisory_source": "https://api.osv.dev/v1/querybatch",
"retrieved_at": "2026-06-23T00:00:00.000Z",
"severity": "critical",
"fix_version": "0.2.1",
"fix_path": "Bump minimist so minimist@0.0.8 is replaced by a non-vulnerable version; OSV first fixed version: 0.2.1.",
"direct_dependency_to_bump": "minimist",
"confidence": "high",
"exact_version_match": true,
"false_positive_guard": "Finding emitted only after package name matched and installed_version matched the advisory version evidence.",
"findings": [],
"clean_packages": [],
"graph": {
"nodes": [],
"edges": []
},
"false_positive_guards": [],
"validation": {
"exact_version_match": true,
"no_package_name_only_false_positives": true,
"package_name_only_guard_count": 0,
"target_lockfile_ingested": true,
"target_code_executed": true,
"target_code_execution_note": "The scanner executed against and parsed the target project's dependency lockfile; it did not run application code.",
"target_packages_installed": false,
"osv_runtime_query_performed": true,
"advisory_source_mode": "live_osv_querybatch",
"direct_dependency_fix_paths_count": 1
}
}When output_dir is provided, the runner also writes evidence.json,
verification.json, and report.md inside that directory.
Worked example
Run the skill against a real npm package-lock.json and OSV:
runx skill ./skills/dependency-advisory-graph \
--input ecosystem=npm \
--input project_name=fixture-vulnerable-app \
--input project_url=https://example.com/fixture-vulnerable-app \
--input lockfile_path=fixtures/package-lock-advisory.json \
--input output_dir=artifacts/sealed-advisory-minimist-008 \
--jsonThe receipt should include a high-confidence finding for minimist@0.0.8,
graph edges from the dependency node to the advisory node, osv_runtime_query
evidence, and a fix path naming minimist as the direct dependency to bump.
Inputs
lockfile: JSON object containing an npmpackage-lock.json.lockfile_path: path inside the skill package to an npmpackage-lock.json.lockfile_url: public URL to an npmpackage-lock.json, fetched at run time. This is the preferred dogfood path for public projects because it proves the skill scanned a real target lockfile.osv_response: optional OSVquerybatchresponse used only for deterministic offline harness fixtures.osv_response_path: path inside the skill package to an OSV fixture response.ecosystem: optional ecosystem label. Defaults tonpm.project_name: optional target project name.project_url: optional public target project URL.output_dir: optional directory inside the skill package for generated artifacts.
Published execution profile
The execution profile published with sha-eda91af71f56, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256:2968f8b40aa000212eb89d73b8cf58474236824d582a227648ac33192082b339 |
skill: dependency-advisory-graph
version: 0.2.1
catalog:
kind: skill
audience: public
visibility: public
role: canonical
category: security
runners:
default:
default: true
inputs:
lockfile:
type: json
required: false
description: npm package-lock JSON object for the target project.
lockfile_path:
type: string
required: false
description: Path inside the skill package to a real target package-lock.json.
lockfile_url:
type: string
required: false
description: Public URL to a target package-lock.json, fetched at run time.
osv_response:
type: json
required: false
description: Optional OSV querybatch response for offline harness fixtures.
osv_response_path:
type: string
required: false
description: Optional path inside the skill package to an OSV querybatch fixture.
ecosystem:
type: string
required: false
description: Dependency ecosystem label. Defaults to npm.
project_name:
type: string
required: false
description: Name of the target project being scanned.
project_url:
type: string
required: false
description: Public URL of the target project being scanned.
output_dir:
type: string
required: false
description: Directory inside the skill directory for evidence.json, verification.json, and report.md.
steps:
- id: default
tool:
command: node
args:
- run.mjs
inputs:
lockfile: $input.lockfile
lockfile_path: $input.lockfile_path
lockfile_url: $input.lockfile_url
osv_response: $input.osv_response
osv_response_path: $input.osv_response_path
ecosystem: $input.ecosystem
project_name: $input.project_name
project_url: $input.project_url
output_dir: $input.output_dir
outputs:
dependency_advisory_graph:
required: false
evidence_json:
required: false
verification_json:
required: false
report_md:
required: false
advisory_id:
required: false
advisory_source:
required: false
clean_packages:
required: false
confidence:
required: false
direct_dependency_to_bump:
required: false
ecosystem:
required: false
evidence_url:
required: false
exact_version_match:
required: false
false_positive_guards:
required: false
findings:
required: false
fix_path:
required: false
fix_version:
required: false
graph:
required: false
installed_version:
required: false
operator_next_steps:
required: false
package:
required: false
project:
required: false
retrieved_at:
required: false
schema:
required: false
severity:
required: false
validation:
required: false
harness:
cases:
- name: sealed-advisory-minimist-008
runner: default
inputs:
ecosystem: npm
project_name: fixture/minimist-direct
project_url: https://example.com/fixtures/minimist-direct
lockfile:
name: fixture-vulnerable-app
version: 1.0.0
lockfileVersion: 3
requires: true
packages:
"":
name: fixture-vulnerable-app
version: 1.0.0
dependencies:
minimist: 0.0.8
left-pad: 1.3.0
node_modules/minimist:
version: 0.0.8
resolved: https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz
integrity: sha512-fixture
node_modules/left-pad:
version: 1.3.0
resolved: https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz
integrity: sha512-fixture
osv_response:
retrieved_at: 2026-06-24T00:00:00.000Z
source:
name: OSV querybatch fixture
url: https://api.osv.dev/v1/querybatch
retrieved_at: 2026-06-24T00:00:00.000Z
results:
- vulns:
- id: GHSA-vh95-rmgr-6w4m
aliases:
- CVE-2020-7598
summary: minimist prototype pollution
modified: 2026-06-24T00:00:00.000Z
database_specific:
severity: CRITICAL
affected:
- package:
ecosystem: npm
name: minimist
ranges:
- type: SEMVER
events:
- introduced: "0"
- fixed: 0.2.1
versions:
- 0.0.8
references:
- type: ADVISORY
url: https://osv.dev/vulnerability/GHSA-vh95-rmgr-6w4m
- vulns: []
output_dir: artifacts/sealed-advisory-minimist-008
expect:
status: sealed
receipt:
schema: runx.receipt.v1
operator_journeys:
- mode: standalone
confusors:
- cve-audit
- sbom-maker
request: Map security advisories onto this project's exact dependency versions.
expected_outcome: Return an exact-version advisory graph from the lockfile and OSV.
- mode: composed
request: Continue this dependency-advisory-graph work from evidence already gathered upstream.
expected_outcome: Return an exact-version advisory graph from the lockfile and OSV.
prior_evidence:
- The project lockfile already supplied.
must_not_repeat:
- Do not re-resolve versions already pinned.
- name: invalid-manifest-fails
runner: default
inputs:
ecosystem: npm
lockfile: {}
osv_response:
results: []
expect:
status: failure
receipt:
schema: runx.receipt.v1
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-eda91af71f56 |
| 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:372d96fbfb7ef7ad1b4b109b90c50426e2939373f342baea131f878dc40d43f3sha256:01f2dae8c6772282b6b30d92dbd7c26770d377d0d762ac809cc73fbc11520c77Package identity
| Published revision | sha-eda91af71f56 |
|---|---|
| Content digest | sha256:eda91af71f560cc2f2bef08946e2e2749616b4919425800a3b3f62338adcbcd4 |
| SKILL.md digest | sha256:d445e2950c58fad951c89e11a3a44ed2b481ca7335fc0841d8508b8dff9859e8 |
| Execution profile digest | sha256:2968f8b40aa000212eb89d73b8cf58474236824d582a227648ac33192082b339 |
| Publisher identity | Unverified publisher · fy |
| 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-eda91af71f56ViewingContent digest sha256:eda91af71f560cc2f2bef08946e2e2749616b4919425800a3b3f62338adcbcd4sha-8f650be0473bContent digest sha256:8f650be0473bd830fa57841a3a4682461ffbcadb806c57d4801328cf8e197c97sha-81b4371ed144Content digest sha256:81b4371ed144fedd4ccd9cdd9923da95790cda6c77d815a9230c23752bb32e82sha-248b6f5660cbContent digest sha256:248b6f5660cb6af6d33f558f3ef77b92671cd0f1ed8facc615e1b37c6258d740