validate_after_patch
Verify that dependency patches fixed specific CVEs by comparing baseline and after-patch scan JSONs, outputting resolved, remaining, and new findings.
Instructions
Confirm that dependency upgrades actually resolved the CVEs they were supposed
to fix. Use this whenever the user says they ran npm update, pip install -U,
or applied a patch and wants verification — chain it with two scan_project calls
(before/after) or pass two saved scan JSON results. This is unique to TridentChain;
most other supply-chain scanners only report findings without a verifiable
post-patch loop. Returns resolved_count, remaining_count, new_count, and
validation_passed (true only when new findings == 0 and at least one was resolved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline_json | Yes | ||
| after_patch_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |