The Drift Log · Provenance, licensing and the paper trail
Automating License Conflict Resolution for Transitive Dependencies
11 November 2026 · 3 min read · 739 words · established

A deep transitive dependency can invalidate your root license declaration. Here is how to trace DAG license conflicts and gate them in CI.
You declare MIT in your root package manifest. Your direct dependencies are all Apache-2.0 and BSD-3-Clause. The build passes, the test suite is green, and the artifact moves to production.
Three months later, during an acquisition audit or an enterprise vendor review, legal pulls the full dependency tree. Five levels deep, a transitive utility package added by a minor version bump brings in GPL-3.0. Another branch brings in a proprietary SDK with a non-commercial clause.
Your root license declaration is now fiction. You did not write the offending code, you did not select the package directly, and you may not even call its functions at runtime. Yet by linking and distributing it, you have triggered a license conflict across the entire artifact.
As explored in our note on why vendoring code without a paper trail is unsecured debt, uninspected third-party code accumulates liability silently. With transitive dependencies, that liability is obscured by the depth of your package manager's resolution graph.
The Topology of Transitive Clashes
Package manifests only declare direct intent. When a package manager builds the lockfile, it resolves a directed acyclic graph (DAG) across hundreds of disparate authors. Each node in that graph carries its own terms:
[Your App: MIT]
└── [direct-dep-a: Apache-2.0]
└── [transitive-dep-b: BSD-3-Clause]
└── [transitive-dep-c: GPL-3.0-only] -> CONFLICT
License conflicts generally fall into three structural categories:
- Incompatible Permissive Combinations: Apache-2.0 includes an express patent grant and indemnification terms that are legally incompatible with original BSD-4-Clause (advertising clause) or GPL-2.0-only.
- Copyleft Ingestion: Strong copyleft licenses (GPL-2.0, GPL-3.0, AGPL-3.0) require downstream distribution of the combined work under identical terms. If a proprietary or permissive service statically links or bundles these transitive modules, the distribution model breaks.
- Ambiguous or Missing Metadata: A transitive dependency ships with no license header, a non-standard
LICENSEfile, or conflicting SPDX identifiers between its repository and its registry manifest.
When you rely on surface-level scanners, they query registry metadata rather than inspecting package payloads. Registries frequently disagree with the actual source headers. If an author lists MIT in package.json but vendors an uncredited GPL-2.0 utility directly inside their dist/ bundle, your direct scan reports compliance while your binary carries exposure.
Resolving Conflicts with an Authoritative SBOM
Fixing transitive licensing requires two discrete steps: extracting true provenance from the files on disk, and applying an edge-validation algorithm across the resulting graph.
First, generate a complete Software Bill of Materials (SBOM). The SBOM must record:
- The exact node identity and checksum.
- The raw text and resolved SPDX license identifier for every direct and transitive node.
- The linkage mechanism (static bundle, dynamic load, or out-of-process execution).
Once the graph is materialized, conflict resolution follows an invariant gate:
for each node in dependency_graph:
assert_compatible(root_license, node.resolved_license, node.linkage)
if conflict:
isolate_subgraph(node)
evaluate_overrides_or_replacements(node)
If node.resolved_license clashes with your distribution boundary, you cannot simply ignore it. You have three engineering remedies: override the resolution via package-manager pinning to an earlier, non-conflicting release; isolate the dependency behind a network boundary (if license terms permit network separation); or replace the upstream direct dependency that introduced the conflict.
Doing this manually across deep graphs breaks quickly during regular dependency updates.
Automated Resolution with SHPBL
SHPBL addresses this at the build boundary. The offline edition runs inside your existing pipeline to generate byte-accurate SPDX manifests directly from source files, without querying external registries or transmitting code off-premise.
When a transitive license conflict is flagged, SHPBL’s discovery engine inspects your dependency tree and identifies the root introducer. Because SHPBL maintains a model-independent catalog of reusable, audited software components, you can query replacement primitives through the TypeScript SDK or the HTTP API.
Every write proposed by an agent or developer passes through our Build Intent gate, which resolves invariants and licensing obligations in code before generating the patch. To inspect your existing repository for latent transitive clashes, run a free repository evaluation.
What to Do on Monday
Do not wait for legal discovery to map your graph.
- Dump the resolved tree: Run your package manager's command to output the full production tree (
npm ls --all --omit=dev,cargo tree --edges normal, orgo list -m all). - Extract all SPDX tags: Traverse every leaf node and extract the declared SPDX identifier. Flag anything containing
GPL,AGPL,SSPL, orUNKNOWN. - Set a hard CI gate: Configure your build pipeline to fail when an unapproved license enters the production bundle, even if introduced as a sub-dependency of a routine patch update.
Keep reading
Next in the log
- Provenance-First Build Intent: Licensing Invariants Before Disk Writes
Evaluate license compatibility and origin invariants at a build intent gate before external or agent-generated code ever writes to disk.
- Continuous License Attribution Pipeline for Vendored Code
Vendored code strips package manifests and breaks standard dependency scanners. Here is how to enforce license invariants continuously in CI.
- Rejecting Ambiguous SPDX Identifiers in CI Pipelines
Informal license strings like BSD-style or slash delimiters break automated SBOM tooling. Enforce strict SPDX grammar at your CI build gate.
The Strategic Master Library · written and reviewed under the house's own epistemic rules: nothing claimed that we cannot show.