Skip to content

docs: map vg sbom export component type to CycloneDX and SPDX - #368

Merged
vibgrate-team merged 2 commits into
mainfrom
cursor/sbom-component-type-docs-333f
Oct 6, 2026
Merged

vibgrate-team merged 2 commits into
mainfrom
cursor/sbom-component-type-docs-333f

Conversation

@vibgrate-team

@vibgrate-team vibgrate-team commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

vg sbom export never said how CycloneDX type was chosen, or that SPDX primaryPackagePurpose is left off. Readers could not tell a lockfile library from the scan root, or whether a container image, Helm chart, or Terraform provider was typed as container / operating-system or something else.

This is documentation only. Emitter behavior is unchanged from current main.

origin/main is merged in with an ordinary merge commit (no rebase, no force-push). The Component type section from this branch stays. Docs that already landed on main stay too, including component identity, production / development / optional scope, Go pseudo-versions, .tf / .tofu selection, and the CycloneDX type section.

One gap note was updated to match the exporter on main: an unmapped project type (Docker, Compose, Helm, Terraform) no longer receives an npm purl. The component stays, the purl is omitted, and the warning says the ecosystem could not be determined. A Helm dependency such as nginx at 15.4.0 is type library with no pkg:npm/nginx@15.4.0.

  • DOCS.md (vg sbom) keeps a Component type section: a mapping table (scan root, manifest/lockfile packages, container images, Helm dependencies, Terraform providers and modules, OS packages), when a field is omitted, and the gaps that remain.
  • Short excerpts from vg sbom export: the metadata component (application, name = directory basename), lockfile rows left-pad and once (library), and the SPDX package for left-pad with no primaryPackagePurpose.
  • The README "SBOM and OpenVEX" section links to Component type and to the sections that landed on main (CycloneDX type, production scope, component identity). Wording stays "an inventory, not a compliance determination."

Related issues

Closes #251

Checklist

  • pnpm test passes (477 files, 5053 tests)
  • pnpm lint is clean (exit 0; 5 pre-existing warnings in src/code and src/engine, none in this diff)
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — docs only; no emitter, id, or report-output change
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

Merge commit 09e3180c9550481611288b988fa63f22588b3ef8 (parents 86f5d09 and ed25717, which is current origin/main, including #367). Diff against main is DOCS.md and README.md only.

No emitter change in this branch. Types are still metadata.component.type application and every components entry library. toSpdx never sets primaryPackagePurpose.

Please leave this PR as a draft. Squash-merge when you are ready.

Open in Web Open in Cursor 

cursoragent and others added 2 commits October 5, 2026 22:07
Document how vg sbom export sets CycloneDX type, and that SPDX
primaryPackagePurpose is omitted, for the scan root, lockfile
packages, containers, and IaC rows.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Keep the Component type section from this branch and the SBOM, scan,
and CI docs that landed on main. Unmapped project types no longer
receive an npm purl; the component-type gap notes follow that exporter.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
@vibgrate-team
vibgrate-team marked this pull request as ready for review October 6, 2026 12:59
@vibgrate-team
vibgrate-team merged commit e876bec into main Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: document CycloneDX component type / primaryPackagePurpose mapping in vg sbom

2 participants