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
- 1Go to the 'AI-BOM & Governance' tab of your dashboard.
- 2Click 'Export CycloneDX v1.7 (.cdx.json)' or 'Export SPDX 3.0 AI Profile (.spdx.json)' to download audit-ready files immediately.
Related guides
- Layer 1: Zero-Touch Runtime AI-BOM Auto-Discovery & Zero-Knowledge Prompt Hashing
- Layer 2: RAG & Vector Database Auto-Instrumentation (shdw.wrapVectorStore)
- Layer 3: Static Manifest & CI/CD Auto-Scanner (@shdwsdk/sdk/scanner)
- Interactive CLI Setup Wizard (npx @shdwsdk/sdk init / npx shdw-init)
- Non-Blocking Client Wrapper (shdw.wrapClient) & Fail-Silent Guarantee
- Scope 3 Energy & Carbon Formula + 22 Global & European Data Center Regions
- EU AI Act Risk Classification & US NIST AI RMF 1.0 Assessment Matrix
- Buyer-Facing Public Trust Center (/trust/[slug]) & Embeddable HTML Badge
