Skip to content

The Drift Log · Provenance, licensing and the paper trail

Automated, Repeatable SPDX SBOM Generation with SHPBL’s Offline Tool

9 November 2026 · 3 min read · 619 words · established

A wax seal resting on a page of hash digests

Use SHPBL’s offline tool to generate a repeatable SPDX SBOM on every commit, store it as a first‑class artifact, and certify it with our harness.

The hidden cost of manual SBOMs

Your team writes a new library. Someone opens a pull request and adds a third‑party module. The SBOM lives in a spreadsheet that a junior engineer updates once a month. A week later a security audit asks for the licence of a file that was added during a hot‑fix. The spreadsheet is out of date. The answer is “we don’t know”. The liability is real.

Manual curation is error‑prone. It relies on memory, on a single person’s discipline, on a document that is not part of the build. When the source tree changes, the SBOM does not. The gap widens until the next audit discovers missing licences. The result is a paper trail that cannot be trusted.

Why automation matters

An automated pipeline can extract SPDX data directly from the source tree. SPDX is a standard format that records each file’s licence, copyright holder and origin. Because the extraction runs on every commit, the SBOM stays in lockstep with the code.

The pipeline does not guess. It reads the licence headers, the package‑manager manifests and the VCS history. The output is a machine‑readable SPDX document that can be stored as an artifact of the release. No human has to copy‑paste licence strings. No licence term can be silently dropped.

Building a reliable pipeline

A practical way to get started is to use the offline edition of the SHPBL library. It runs from files, needs no network access and produces a repeatable SPDX JSON file. The steps fit into any CI system.

## Install the offline tool (example for a Unix runner)
curl -L https://shpbl.io/offline.tar.gz | tar -xz -C /opt/shpbl
## Run the extractor on the repository root
/opt/shpbl/bin/extract-spdx --source . --output spdx.json
## Publish the artifact with the release
ci-publish-artifact spdx.json

The command reads every source file under the current directory. It respects the SPDX licence identifiers that appear in comment blocks. It also walks package.json, go.mod and similar manifest files, adding the declared licences for each dependency. The result is a single SPDX document that mirrors the exact state of the tree at build time.

Because the tool is model‑independent, the output is computed rather than generated. The same input always yields the same SPDX file, which you can verify with the published checksum in the root of trust. If you need to prove that the SBOM matches the source, run the certification harness on the artifact. The harness will return CERTIFIED if the SPDX file can be exercised against the source, PROVISIONAL if it is reproducible but not yet asserted, INCONCLUSIVE if the harness cannot cover a particular contract, or FAILED if the artefact is malformed.

Keeping the paper trail alive

Automation only works if you treat the generated SBOM as a first‑class artifact. Store it alongside the release binaries. Include it in your release notes. When you publish a new version, the CI job should also run a diff against the previous SPDX file. A mismatch signals a licence drift that may have been introduced by a refactor or a new dependency. The diff can be visualised with the same harness that powers the “Automated SBOM Diffing to Detect License Drift After Refactors” support post.

If a downstream team asks for provenance, you can point them to the SPDX document, the checksum in the root of trust and the harness verdict. Together they form a reproducible audit trail. This satisfies the argument made in the pillar post [/blog/vendoring-code-without-a-paper-trail-is-unsecured-debt] that every line of code must be traceable to a licence and an origin.

A concrete step for Monday

Schedule a half‑hour on Monday to run the free repository evaluation at [/evaluation]. It will scan your current repo, generate an SPDX file and show you the first‑run output. Use the result to seed a CI job that runs the extractor on every push. Within a sprint you will have an up‑to‑date SBOM that never falls behind the code it describes.

Keep reading

Next in the log

The Strategic Master Library · written and reviewed under the house's own epistemic rules: nothing claimed that we cannot show.