Layer 4: Model Integrity & CycloneDX / SPDX Exporters

Automated AI-BOM (4 Layers)
#cyclonedx#spdx#weights_hash#cdx.json#spdx.json#mistral#llama#deepseek#export

How model identity, optional weight digests and measured energy are compiled into CycloneDX v1.7 (.cdx.json) and SPDX 3.0 (.spdx.json).

How It Works Under the Hood
  • •Hosted models (OpenAI, Anthropic, Google, …) are identified by provider and exact model version; their vendors do not publish weight digests. For models you host yourself, pass weightsHash ("sha256:<64 hex>") to record a digest you computed.
  • •compileCycloneDxMlBom() generates a CycloneDX v1.7 document with machine-learning-model components, SHA-256 hashes only where you supplied them, measured per-model energy/carbon, and RAG data dependencies.
  • •compileSpdx3AiBom() generates an SPDX 3.0.1 JSON-LD graph with ai_AIPackage nodes and, for RAG workloads, dataset_DatasetPackage nodes linked by dependsOn. Pass redactInfrastructure: true to replace vector store URLs with vendor names before sharing.
How to Use It Step-by-Step
  1. 1Go to the 'AI-BOM & Governance' tab of your dashboard.
  2. 2Click 'Export CycloneDX v1.7 (.cdx.json)' or 'Export SPDX 3.0 AI Profile (.spdx.json)' to download audit-ready files immediately.

Related guides