The Drift Log · Provenance, licensing and the paper trail
Resolving Missing Upstream Notices in Forked Dependencies
24 November 2026 · 3 min read · 454 words · established

Vendored code routinely loses legal attribution through refactors and cleanups. Here is how to enforce notice retention in CI before distribution.
The slow decay of vendored trees
Someone copied an Apache-2.0 package into your repository three years ago. They placed it in vendor/, adjusted two internal import paths, and pushed the commit. Six months later, an automated script pruned non-code assets to reduce repository weight, deleting the accompanying NOTICE and LICENSE files. A year after that, a bulk formatting pass stripped file-level copyright headers across the entire codebase.
The code still compiles, passes tests, and runs in production. But under Apache-2.0 Section 4(d), distributing an artifact without retaining the original NOTICE file puts the software in technical breach.
This is how license compliance for vendored code fails in practice. It is rarely intentional evasion. It is a slow, mechanical erosion where maintenance scripts and refactors strip the paper trail until legal provenance is reduced to a folder of hope.
Why in-tree attribution fails over time
Internal vendor forks decay because git history alone does not preserve origin context across repositories without an explicit contract. When upstream code is copied into a tree—whether by flattening a submodule, merging a subtree, or pasting source files directly—the provenance link to upstream commits is broken.
Subsequent maintainers treat vendored code as first-party code. They reformat syntax, remove unused files, and squash commits. When legal asks for a software bill of materials, the team has to grep commit logs to guess which upstream release was copied.
Maintaining software provenance requires pinning vendored code to an immutable upstream commit SHA rather than a branch name or loose release tag.
## .vendor-manifest.yml
- path: vendor/http-parser
upstream: https://github.com/nodejs/http-parser.git
commit: 2b80ea9d8807fed012750a9829f27003ee40fa5e
license: MIT
notices:
- AUTHORS
- LICENSE-MIT
A reliable vendor manifest answers three concrete questions:
- What exact upstream commit SHA did this code originate from?
- What local modifications were applied relative to that SHA?
- Where are the upstream notices stored and preserved?
If an upstream license requires retaining attribution notices, your build system must treat those legal files as hard build dependencies, not optional documentation. A simple CI step enforces this contract before merge:
#!/usr/bin/env bash
set -euo pipefail
python3 -c '
import yaml, os, sys
with open(".vendor-manifest.yml") as f:
entries = yaml.safe_load(f)
missing = [
os.path.join(e["path"], n)
for e in entries
for n in e.get("notices", [])
if not os.path.isfile(os.path.join(e["path"], n))
]
if missing:
sys.exit("Missing required vendor notices:\n" + "\n".join(missing))
'
Licensing invariants before execution
This drift demonstrates why software provenance cannot be handled by periodic scans after code is committed. At SHPBL, every write passes through a Build Intent gate where licensing invariants and file origins are resolved in code before an artifact is written to disk.
Instead of hoping vendored code retains its legal metadata through successive refactors, the posture must be provenance-first. We detailed this requirement in our doctrine on provenance-first build intent and licensing invariants. Our software capability corpus is model-independent, computed rather than generated, and validated by our certification harness against immutable references sealed in our root of trust. You can run a free repository evaluation to see where vendored dependencies in your tree have drifted from their origin notices.
This post supports the longer argument in Provenance-First Build Intent: Licensing Invariants Before Disk Writes.
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.
- Tracing Origin Metadata for Inlined Snippets in Git History
Inlined utility code bypasses lockfile SBOM scanners. Track origin commit SHAs and SPDX licenses in structured manifests before merge.
The Strategic Master Library · written and reviewed under the house's own epistemic rules: nothing claimed that we cannot show.