Schema divergences
This document tracks every place where the k8s-aibom BOM output deviates from, or extends, the CycloneDX 1.6 ML-BOM specification or established conventions (notably the Trusera/ai-bom project’s choices). Each divergence has a rationale, an example, and a link to the upstream issue or discussion where applicable. Per PRD §9.4, divergences must be documented so design partners and CycloneDX maintainers can audit them.
Status
Active register, seeded 2026-09-28 from the shipped v1.5.x output. Entries below cover the divergence families the emitter actually produces; per-field additions land as consumers raise them. This register is the companion to any schema conversation with CycloneDX upstream (see the 2.0 RFC comments on CycloneDX/specification#990).
D-002: k8s-aibom:confidence / k8s-aibom:evidence:* properties
Status: active What we do: every attribute-bearing component carries k8s-aibom:confidence (declared | inferred | unresolved | verified), k8s-aibom:evidence:locator (the exact spec field the fact came from, e.g. spec.template.spec.containers[0].args[1]) and k8s-aibom:evidence:source, plus workload identity properties (k8s-aibom:workload:*) and controller provenance (k8s-aibom:controller:*). Names are under the k8s-aibom namespace registered in the CycloneDX Property Taxonomy (v1.7.0; dotted aibom.* names before that). What the spec says: CycloneDX 1.6 has components[].evidence with identity confidence for software components, but its methods vocabulary has no runtime-observation or signature-verification technique, and model components (ML-BOM) have no evidence surface at all. Why we diverge: auditors need per-attribute confidence and a pointer to the exact source; properties are the sanctioned extension mechanism. Proposed upstream: a signature-verification identification technique (spec#990 comment) and official ai:runtime:* names (property-taxonomy#175).
D-003: k8s-aibom:security:signing:* verification facts
Status: active What we do: model components carry k8s-aibom:security:signing:status (unsigned | claimed | verified), k8s-aibom:security:signing:outcome (including signature-valid-unconstrained), k8s-aibom:security:signing:reason, k8s-aibom:security:signing:identity, k8s-aibom:security:signing:rekorEntry, k8s-aibom:security:signing:subjectNameMismatch (signature.* before v1.7.0). What the spec says: 1.6 has no representation for “a runtime verifier checked this model’s signature against an operator trust root”; attestation semantics cover party assertions, not direct verification. Why we diverge: the verified tier is meaningless without its facts being inspectable; collapsing “valid signature, unconstrained signer” into “verified” would launder identity (Design 002 §5).
D-004: k8s-aibom:redaction:applied
Status: active What we do: when the output sanitization pass redacts credential material, the document says so — a fact, never a silent omission. Why we diverge: an auditor must be able to distinguish “value absent” from “value removed”; the spec has no redaction marker.
D-005: k8s-aibom:image:reference / k8s-aibom:image:tag container properties
Status: active, narrowed in v1.7.0 What we do: container components carry the observed reference and tag as properties alongside the digest in hashes[]. Since v1.7.0 image identity is also expressed natively as the component’s purl (pkg:oci/<name>@sha256:<digest>?repository_url=<repository>&tag=<tag>, no version when no digest was resolved). Why we diverge: the digest is the identity; the mutable reference as the owner wrote it is evidence context that the purl’s lowercased, split form does not preserve byte-for-byte, and auditors match on it.
D-006: serialNumber is per workload, not per document
Status: active, since v1.7.0 What we do: serialNumber is urn:uuid:<UUID v5 of the workload UID> in the k8s-aibom namespace UUID c8b031ec-958e-5f54-93dd-f9b3da80bfd0, which is the UUID v5 of https://github.com/GoogleCloudPlatform/k8s-aibom in the RFC 4122 URL namespace. version is always 1. Anyone with the workload’s UID can compute the serial without the cluster, for example in Python: uuid.uuid5(uuid.uuid5(uuid.NAMESPACE_URL, "https://github.com/GoogleCloudPlatform/k8s-aibom"), uid). A document built without a UID (only in tests) has no serialNumber. What the spec says: every BOM SHOULD have a unique serial number, even if its contents have not changed, and version SHOULD be incremented whenever an existing BOM is modified. Why we diverge: a random serial per document breaks the byte-identical-for-identical-inputs property, and a version counter would need state the controller does not keep. A serial that is a pure function of the workload UID keeps determinism and gives every workload’s document a stable identity, which is what BOM-Links (urn:cdx:<serial>/<version>#<bom-ref>) and serial-keyed consumers (Dependency-Track project identity, GUAC) need. What changed in the document over time is status.inputHash, not version.
Native fields used instead of properties
Not divergences; recorded so nobody adds a property for them.
- As-deployed context is
metadata.lifecycles(phase: operations), since v1.7.0. The CycloneDX maintainers’ guidance on spec#990 is that as-deployed versus as-trained is a lifecycle on the metadata, not a perspective. k8s-aibom observes serving, so every document carries exactly that one phase; as-trained context is deliberately not emitted, and a training-side record of the same model (for example a Project AIBOM run record) is a separate document with its own phase. - Image identity is the component
purl(pkg:oci), since v1.7.0. - Digests are
component.hashes. - Workload-to-component edges are
dependencies, since v1.7.0: one entry formetadata.componentdepending on every top-level component. No edges between components are emitted, because none are observed.
Format for divergence entries
Each divergence entry should follow this template:
### D-NNN: <short title>
**Status:** active | rescinded | upstreamed
**Introduced in:** <version or commit>
**Spec section:** <CycloneDX section reference>
**Trusera comparison:** <same / different / not covered>
**What we do**
<concrete description of the encoding the controller emits>
**What the spec says (or doesn't)**
<quote or paraphrase the spec; note where it's silent>
**Why we diverge**
<the rationale — usually customer/auditor requirement or spec ambiguity>
**Upstream tracking**
<link to CycloneDX issue, RFC, or maintainer thread, if any>
**Example BOM fragment**
\`\`\`json
{ ...minimal illustrative excerpt... }
\`\`\`
Planned divergence entries (placeholders)
The following divergences are already decided in design and will be filled in as the corresponding code lands.
-
D-001: Signature confidence tiering. Retired by Design 002 (v1.5.0). This entry said v1 would never emit
verifiedbecause it did not verify signatures. The controller now verifies them whenspec.verificationis enabled inAIBOMControllerConfig. The tiers are reported in thek8s-aibom:security:signing:statusproperty (signature.statusbefore v1.7.0; see the active entry D-003 above) and instatus.summary.models[].signed, not inevidence.identity.methods[].confidence. A signature that verifies against an operator trust root with a signer-identity constraint isverified, and since v1.7.0 also raises the model’sk8s-aibom:confidencetoverified; any other signature reference staysclaimed, which still means “we saw a signature reference but did not verify it against a constrained trust root.” -
D-002: Per-attribute evidence sourcing. Every BOM attribute carries metadata identifying the specific source it was extracted from (
pod_annotation,container_arg,env_var,image_pattern,crd_field,volume_source,node_selector, etc.). This is in addition to (not a replacement for) workload-leveldeclared/inferredconfidence. The mapping into CycloneDX usesevidence.identity.methods[]for identity-bearing attributes andproperties[]with namek8s-aibom:evidence:sourcefor others. See PRD §9.4 and FR1.5. -
D-003: Image digest unresolved state. When no running pod has yet reported an
imageID(workload just created, pods in ImagePullBackOff), the BOM emits the image component withconfidence: unresolvedrather than fabricating a digest or omitting the field. This is an explicit “not yet known” state distinct from “known.”
D-004: Evidence and confidence encoded via properties[] (v1) — native CycloneDX evidence in v2
Status: active Introduced in: Phase 6 (BOM builder) Spec section: §5.6 (Evidence), §5.5 (Component.Evidence), §6.3 (Properties) Trusera comparison: similar — Trusera also uses properties extensively, though it does not differentiate evidence-source granularity to the degree we do
What we do
Every Component the builder emits carries three properties identifying its evidence and confidence:
k8s-aibom:confidence— one ofdeclared,inferred,unresolvedk8s-aibom:evidence:source— one of the closedEvidenceSourceconstants (pod_annotation,env_var,image_reference, etc.)k8s-aibom:evidence:locator— a human-readable JSON-path-style pointer to the manifest field the value was extracted from
The CycloneDX Component.Evidence field (a structured Evidence.Identity.Methods[] block) is NOT populated in v1. Workload-level aggregate confidence is exposed as k8s-aibom:confidence in metadata.properties[].
What the spec says
CycloneDX 1.6 §5.5 defines Component.Evidence as a structured object with identity, occurrences, callstack, licenses, and copyright sub-fields. Evidence.Identity is a list of identification methods, each with a confidence value from 0.0 to 1.0 and a technique enum (source-code-analysis, binary-analysis, attestation, etc.).
The spec is silent on AI-specific evidence semantics; attestation is the closest fit for our claimed-vs-verified signature work (D-001) but does not encode “this value came from an env var named HF_MODEL_ID” cleanly.
Why we diverge
v1 ships a flat, auditor-readable property-based encoding because:
- Time-to-correct-output. Properties are unambiguously schema-valid for any name/value pair. The structured
Evidence.Identitymapping requires careful per-attribute decisions abouttechniqueandconfidencemapping that would block v1 schedule on debate. - Auditor accessibility. A flat
k8s-aibom:evidence:source = env_varproperty is grep-able in a BOM JSON. A nestedevidence.identity[0].methods[0].confidence = 0.7is harder to read and the float-confidence interpretation is unclear. - Library agnosticism. Property encoding doesn’t depend on cyclonedx-go correctly modeling all of
Evidence. Properties survive any future library swap.
Planned v2 refinement (additive, non-breaking)
v2 will ADD native CycloneDX structured evidence to every Component that carries a property-based one today. Specifically:
- Populate
Component.Evidence.Identity.Methods[]withtechniquemapped fromEvidenceSourceandconfidencemapped from our string tier (declared→ 0.9,inferred→ 0.5). - Map signature claims (D-001) into
technique=attestation. - Keep the existing
k8s-aibom:evidence:*andk8s-aibom:confidenceproperties for one v2 release so consumers depending on the property-based shape have time to migrate. Dual-emit during the transition. - Document the property-form deprecation in the release notes; remove in v3 if no consumers are still using it.
This migration is intentionally additive: v1 BOMs remain valid v2 BOMs. No customer or auditor breakage at the v2 cut.
Upstream tracking
No upstream issue yet. Open one when v2 implementation begins; the property-naming conventions we’re adopting are candidates for the proposed “Kubernetes runtime ML-BOM profile” the project is moving toward (see PRD §9.4).
Example BOM fragment (v1)
{
"type": "machine-learning-model",
"name": "meta-llama/Llama-3.1-8B-Instruct",
"properties": [
{"name": "k8s-aibom:confidence", "value": "declared"},
{"name": "k8s-aibom:evidence:source", "value": "container_arg"},
{"name": "k8s-aibom:evidence:locator", "value": "spec.template.spec.containers[0].args[0 1](--model)"}
]
}
Example BOM fragment (v2, additive)
{
"type": "machine-learning-model",
"name": "meta-llama/Llama-3.1-8B-Instruct",
"properties": [
{"name": "k8s-aibom:confidence", "value": "declared"},
{"name": "k8s-aibom:evidence:source", "value": "container_arg"},
{"name": "k8s-aibom:evidence:locator", "value": "spec.template.spec.containers[0].args[0 1](--model)"}
],
"evidence": {
"identity": [{
"field": "name",
"concludedValue": "meta-llama/Llama-3.1-8B-Instruct",
"methods": [{
"technique": "manifest-analysis",
"confidence": 0.9,
"value": "spec.template.spec.containers[0].args[0 1](--model)"
}]
}]
}
}
Additional entries will be added as scraper and BOM-builder code lands.
Property names
k8s-aibom’s custom properties are registered as the k8s-aibom top-level namespace in the CycloneDX Property Taxonomy; the taxonomy and the v1.7 rename from the pre-registration dotted names live in docs/cyclonedx-property-taxonomy.md.