security
Verify a dependency was removed from the release
After deleting a package declaration, verify that the resolved inputs and shipped artifact no longer carry the affected dependency or a vendored copy.
TrustIvan · · 5 min read
A developer removes an explicit import from a web application. The next release still contains the package because a plugin brings it in transitively. In this fictional case, the relevant question is what the supported output includes after resolution, bundling and packaging.
Track removal through three layers
| Layer | Fixture record |
|---|---|
| Source | Direct import removed |
| Resolved graph | Plugin still depends on component |
| Release bundle | Component found on retained production path |
| Next candidate | Plugin updated, removal awaiting verification |
Check the lockfile and resolved graph for the release configuration. Then inspect the actual final output and the tools that identify its components. A test-only path and a runtime path have different impact, and bundled code can survive after the original import or declared package moves.
Identify the bill of materials and its subject
Name the output the document describes and the stage where it was collected. A repository inventory, a builder inventory and a final output can each contain a valid observation about the same package. Establish where the question belongs before using names or totals to compare documents. Write down how the package was identified, including the ecosystem and resolved version where available. Preserve relationships and collector limitations. A line in a lockfile proves resolution in that file, and an artifact inspection establishes something different about shipped contents.
Check the matching lockfile for any remaining paths to the package and confirm that the build uses the updated lockfile. Compare the artifact's package or file inventory with the earlier release. If the package was previously copied into the final output, verify removal at that path. If it remains in a base image, give that finding to the owner of the parent artifact.
Use a release candidate to confirm that removal did not break the approved application workflow. Document which artifact and deployment prove the removal. The lockfile dependency guide shows how to identify the parent when a package survives the manifest change.
Use two candidates built from an approved fixture. Remove only the direct import in the first. Change the dependency path in the second and rebuild all relevant targets. Check where the package appears, then verify the final contents with an appropriate collector or file-level evidence. Record any inspection path the collector cannot follow.
Find remaining dependency paths
Inspect the release bundle and lockfile dependency paths for the first candidate. The removed direct import should remain absent from application source, while the plugin still resolves and includes the affected component on one packaging path. Use a second build after approving the plugin update and compare the expected output rather than relying on disappearance from a single detector. If an optional install mode retains the earlier plugin, capture its output and mark its status separately. The final disposition belongs to the reviewed subject and packaging paths.
Review a secondary artifact built separately, such as a background worker or plugin distribution. In the fixture its release schedule may lag the web app. A decision can confirm removal for one verified artifact while the separately shipped output remains under review.
Ask the dependency reviewer to repeat the check using the ordinary workflow. Provide the known evidence in the release composition and build records and request the exact record the reviewer would attach to their decision. A timestamp and stable identifier should carry over to the reviewed result. Capture agreement directly and log any change to that result as a new observation. Do the comparison before broadening the check to another service or project where collection and responsibilities may differ.
Verify the final release artifact
Keep enough evidence for a release reviewer to recover the exact document they used and the packaging claim it supports. Cite the output identity, collector scope, relevant components and relationship, and owner of the result. Give unresolved component identity a named follow-up linked to the affected output. A reviewer needs to see where the report ends and the build team's inspection begins. If a release proceeds with an open coverage question, retain the approved disposition and the next observation due before someone relies on the same assumption again.
Save the before and after artifact references and known discovery scope. Include the relevant package identifiers and verification evidence. If the component appears in a future release, a reviewer should have enough lineage to decide whether the earlier resolved condition has returned.
Keep raw evidence in the service it came from, with normal access controls. The handoff should carry a stable reference and a summary of the observation. Test whether a reviewer with the usual role can open that link and attach a dated decision.
Keep an example of a result accepted by the reviewer and one still awaiting action. Match each example to its evidence and timestamp. This gives the next owner a reference when an automated summary or a later report uses a different display label.
Also compare the release's supported installation modes. The default package can be clean while optional content still ships the old dependency. Give any maintained optional path its own affected scope and inspection evidence.