AI Code Dependencies: Review the SBOM Before Shipping

An AI-generated patch can add a dependency without adding much visible code. Before shipping, compare the baseline and candidate dependency inventories, follow new transitive paths, and investigate unresolved package identity, licenses and advisories. An SBOM is a review aid—not proof that the release is safe or that redistribution is permitted. This AI-generated code dependency SBOM review gives maintainers a repeatable decision record, not a legal certification.

Use the same release target and inventory method on both sides. Save the exact commits, manifests, lockfiles, build configuration and resulting evidence. If the inventories cannot be compared reliably, hold the release decision rather than treating an empty diff as clearance. For the broader distinction between open and closed systems, see our open-versus-closed AI trade-offs.

1. Freeze the baseline and the proposed release

Record the base commit and the candidate commit, target platform, build flags, package manager and version, lockfile paths and artifact intended for release. A comparison between different platforms or build modes can show real differences that have nothing to do with the AI patch. Do not quietly attribute every change to the assistant: a human, dependency update, changed resolver or build environment may be responsible.

Inspect the actual patch as well as the dependency files. A short import can bring an existing but previously unused dependency into a release; vendored code or downloaded assets may bypass a conventional lockfile altogether. Separate runtime packages from development-only tools and document uncertainty when the release boundary is unclear. For an AI-coding methodology discussion rather than a claim of hands-on testing here, see our coding benchmark analysis.

2. Export comparable inventories

GitHub’s SBOM export documentation describes an SPDX inventory of the current repository dependency graph, including package information and transitive paths where available. It does not list downstream projects that depend on your repository. In the repository interface, open Insights → Dependency graph → Export SBOM. Record the export time and what revision and graph the export represents; do not assume two exports automatically represent your selected base and candidate commits.

For a commit-to-commit comparison, GitHub’s dependency review reports dependency changes and known vulnerability information, including indirect dependencies found in lockfiles. Check the supported ecosystems and access for your repository. Where a build resolves dependencies unavailable in static manifests, consider the documented dependency submission API. Ensure corresponding snapshots actually cover both commits. A build-derived snapshot is only as complete as the build and detector used.

If your export mechanism only captures the current graph, obtain comparable commit-specific inventories with a suitable tool and preserve each tool version and configuration. Do not compare a repository manifest inventory on one side with a container filesystem scan on the other and call the difference a package change. Neither static nor build-time discovery necessarily finds every downloaded plugin, bundled library, copied source file, font or runtime fetch.

3. Triage the changes, including transitives

Match package identities using ecosystem and package URL when available; keep version, source, dependency path and scope alongside the name. Names alone can collide across ecosystems. Mark additions, removals, and changes in version or source; investigate a version change as an old version removed and a new version added if the comparison tool reports it that way. Inspect changed paths even when a package already existed: a newly bundled runtime path can matter.

For every new or changed component, open the package’s authoritative source and release metadata. Does the name and publisher match the intended project? Is the version the one actually resolved in the lockfile and release? Is it direct or introduced through another package? For an unfamiliar package suggested by AI, verify that it exists and that the integration actually needs it; plausible names are not evidence of provenance. Check applicable advisories against the exact version and usage, then document exposure and remediation. No advisory found is not a guarantee of security.

Check license metadata against the package’s actual license and notice files at the relevant version, and examine any dual-license conditions and bundled components. Missing or unknown SPDX metadata is a question to investigate, not proof that the package has no license and not permission to redistribute. Decide under your project’s policy and seek qualified legal advice where needed. The repository’s own license does not automatically settle every dependency’s obligations.

4. Worked example: a hypothetical productivity-app patch

Imagine a baseline app with a direct package sheet-core , and a candidate patch that adds chart-view , which in turn brings font-parser . These names are invented teaching placeholders, not claims about actual packages or a measured build. The review should identify the new direct and transitive paths, then verify the true packages, versions and sources in the real release. Suppose the inventory’s license field for the transitive package is blank: mark it investigate, inspect its version-specific license and notices, and keep the decision open until the evidence is reviewed. If the package cannot be identified or violates policy, remove or replace it; do not infer acceptance from an empty vulnerability result.

An inventory may miss fonts, icons, trademarks, datasets or other assets. Inspect release archives and asset directories separately. For example, the GridCraft repository describes a spreadsheet project and its own asset and trademark terms; its README is a maintainer description, not independent evidence of feature parity or a license decision for your release. Record each asset’s source, applicable terms, and permitted use. A software package’s license is not automatically a trademark license.

Illustrative baseline and candidate dependency paths, including a new transitive font package
Illustrative dependency paths; this is a teaching example, not an actual scan.

5. Keep a release decision record

Copy the following checklist into your pull request or release ticket. It is a proposed human workflow, not an automated security scanner:

  • Scope: baseline and candidate commit IDs; target artifact, platform, build flags and lockfiles.
  • Inventory: generator and version, collection time, format, source and known coverage gaps for each snapshot.
  • Diff: added, removed, updated and source-changed components, with direct or transitive paths and exact versions.
  • Evidence: package source and identity, applicable license and notice files, known advisories, exposure assessment and asset/trademark checks.
  • Decision: accept with rationale, investigate with owner and deadline, or reject and replace. Record compensating controls and any exceptions.
  • Sign-off: maintainer, date, reviewed release artifact and links to retained evidence. Resolve or explicitly escalate every open item before release according to your policy.

Re-run the comparison if the lockfile, build, candidate commit or release artifact changes after review. Keep the older decision as history and attach the new evidence. An SBOM describes an inventory at a point in time; it does not establish authenticity, eliminate unknown vulnerabilities or make a redistribution decision for you.

Four-step release review: freeze revisions, compare scope, verify paths and record decisions
A release-review sequence to adapt to your project policy.

Next step

Start with one proposed patch: freeze its two revisions, gather comparable inventories and record every unexplained change. Give the maintainer enough evidence to accept, investigate or reject each item. The outcome is a traceable handoff, not a promise that software with a clean-looking SBOM is safe.

Method: AI Made reviewed the cited documentation and assembled this procedural checklist. The example is hypothetical; no production repository, package scan, vulnerability assessment or license audit was performed for this article. Documentation and product behavior can change.