CycloneDX mapping¶
How an AIBOM record (aiboms.aibom.io, spec.data as postprocess.py writes it) is expressed as a CycloneDX 1.6 document, so a run record can be read by the tools that already read software and machine-learning BOMs (Dependency-Track, GUAC, Lightwell) and linked to the runtime inventory that k8s-aibom writes for the same workload. This is a serialization of the record, not a replacement for it: spec.data stays the signed source and the CycloneDX form is derived from it.
The field list follows Detected Fields and the record structure follows compile_aibom in postprocess.py, checked against two real records (a DeepSpeed ZeRO-3 LoRA fine-tune and a vLLM serving run, both record format 0.1.0). Rows marked not seen in the records come from Detected Fields alone and are kept so the table stays complete; their rule is the same as the neighbouring rows and has not been exercised against a real value. Every spec.data path is listed once with its rule: direct (copied into a native CycloneDX field), transformed (native field after a conversion stated in the row), property (a properties[] entry under the aibomrun: namespace, see Property namespace), or dropped, with the reason.
The converter is the oc-aibom plugin's export command (internal/aibom/cyclonedx.go). It reads one AIBOM from the cluster and prints the CycloneDX document on stdout; nothing is written to the cluster or to disk:
oc aibomrun export <name> -n <namespace> -o cyclonedx # -o defaults to cyclonedx
Two principles carry over from the record itself. Every value is identification, not attestation, so nothing in the mapping claims more than the record does; the *_declared_via fields travel with the facts they qualify. And the mapping never invents a value: a field the record does not have produces no CycloneDX element.
Document identity and lifecycle¶
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
| (the record) | bomFormat: "CycloneDX", specVersion: "1.6", version: 1 |
fixed |
execution_metadata.trigger.uid |
serialNumber: urn:uuid:<v5 UUID> |
transformed: UUID v5 of the triggering workload's UID in this project's namespace UUID efb51e52-f1c6-57af-b409-621e826f2301, itself the UUID v5 of https://github.com/gavinsan33/aibom-webhook-service in the RFC 4122 URL namespace, so either side can derive it without a magic constant. The same construction k8s-aibom uses (GoogleCloudPlatform/k8s-aibom#381, with its own namespace), so each project can compute the other's serial from the UID alone. Records from before the field existed fall back to the UUID v5 of <namespace>/<AIBOM object name> in the same namespace UUID, which is stable but, because the name carries a generateName suffix, not computable from outside the cluster; the samples carry that fallback form |
_metadata.generated_at |
metadata.timestamp |
direct (RFC 3339) |
experiment_intent |
metadata.lifecycles[0].phase: build for training and sft, operations for inference |
transformed. CycloneDX separates as-trained from as-deployed by lifecycle, not by document kind; a training run is a build of the model, a serving run is operations. Only those three values map; unknown, which any workload with no recognised CLI and no annotation gets, and any free-text value set through the annotation emit no lifecycle |
experiment_intent, experiment_intent_declared_via |
property aibomrun:experiment:intent, aibomrun:experiment:intent:declaredVia on metadata.component |
property: the raw value is kept beside the lifecycle it was mapped to |
experiment_name |
metadata.component.name |
direct |
experiment_description |
metadata.component.description |
direct |
_metadata.generator, _metadata.generator_version, _metadata.aibom_version |
metadata.tools.components[0]: type: application, name: aibom-webhook, version from generator_version; property aibomrun:record:formatVersion on metadata.component from aibom_version |
transformed. generator_version is the release (0.3.0) or commit the postprocess image was built from, dev for a local build; records from before it existed get no tool version. aibom_version versions the record format, not a release of the tool, so it must not appear as the tool's version. It is bumped when spec.data's shape changes; records before 1.0.0 all say 0.1.0 whatever their shape |
_metadata.schema_compliance, _metadata.dataset_detection |
dropped | constant notes about the record format, no longer written; older records carry them |
execution_metadata.trigger.kind |
property aibomrun:job:triggerKind |
property. Job or Pod (a bare pod: KServe predictor, PyTorchJob worker) |
execution_metadata.job_id, .namespace |
metadata.component.group = namespace, property aibomrun:job:name |
the run is the root component (below); the Job name is kept as a property because name carries experiment_name, which defaults to the Job name but can differ |
execution_metadata.status, .duration_seconds |
properties aibomrun:job:status, aibomrun:job:durationSeconds on metadata.component |
property. The serving record's status is DeadlineExceeded while its one pod reports Completed: the Job's activeDeadlineSeconds ended a benchmark server that would otherwise run forever, which is the record's own distinction between pod status and workload status, and the mapping keeps both |
execution_metadata.pods[] |
per pod: properties aibomrun:pod:<i>:name, :uid, :namespace, :node, :startTime, :status, :exitCode on metadata.component; nodes become device components, see Hardware |
property, indexed in record order. start_time is when the discovery init container ran, in UTC with a Z. Older records have the container's local time with no offset (2026-11-03T16:29:57.639439); postprocess treats those as UTC, which holds for the default container time zone, and the mapping appends Z. pod_ip is dropped: ephemeral and not useful outside the cluster |
execution_metadata.pods[].restart_count, .last_termination_reason, .last_exit_code, .serving_role, .retried_attempt |
properties aibomrun:pod:<i>:restartCount, :lastTerminationReason, :lastExitCode, :servingRole, :retriedAttempt |
property; not seen in the records |
execution_metadata.pods[].gpu_count |
property aibomrun:pod:<i>:gpuCount |
property. The pod's own GPU claim (else discovery's count); environment.gpu_count is the workload total across pods that ran together. Not seen in the records |
The run as model component and modelCard¶
The root of the document, metadata.component, is the run. Its type depends on intent: a training or sft run is a machine-learning-model component with a modelCard, because the run produced a model (an adapter, or new weights). An inference run is an application component whose served model is a machine-learning-model in components[]; the served weights were not produced by this run, so the modelCard sits on the served model, not on the run. Every other intent, including unknown and free-text annotation values, is also an application, because the record does not say the run produced a model. In every case the model facts below land on the machine-learning-model component.
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
model.name |
model component name; purl: pkg:generic/<name> when the name is a Hugging Face org/model id or a plain name; when name_declared_via is oci_uri and revision is a digest, pkg:oci/<last path segment>@sha256:<revision>?repository_url=<registry/path> (the oci type has no namespace: quay.io/org/granite becomes pkg:oci/granite@sha256:<digest>?repository_url=quay.io/org/granite) |
transformed. pkg:huggingface exists in the purl types list but has no stable version rule across tools; pkg:generic with ?download_url=https://huggingface.co/<name> as a qualifier is readable everywhere. Open question 1 |
model.name_declared_via |
property aibomrun:model:name:declaredVia |
property; not seen in the records |
model.version |
model component version |
direct |
model.revision |
property aibomrun:model:revision; also the purl version when it is a commit or digest |
transformed; not seen in the records |
model.base_model |
pedigree.ancestors[0]: a machine-learning-model component with that name |
transformed: the base model is what this one was derived from, which is exactly what pedigree ancestors mean; not seen in the records |
model.size_bytes |
property aibomrun:model:sizeBytes |
property; not seen in the records |
model.architecture |
modelCard.modelParameters.modelArchitecture |
direct |
model.framework |
property aibomrun:model:framework |
property. CycloneDX has no model-framework field; for serving runs the same value is the runtime, see Software |
model.dtype |
property aibomrun:model:dtype |
property |
model.quantization, model.quantization_bits |
properties aibomrun:model:quantization, aibomrun:model:quantization:bits |
property |
model.speculative_decoding (method, num_speculative_tokens, prompt_lookup_max in the serving record) |
property aibomrun:model:speculativeDecoding (JSON string) |
property; structured value kept whole rather than flattened, since its keys follow the engine's own config (ngram with prompt_lookup_max in the record; a draft-model config would carry different keys) |
experiment_intent (as modelParameters.approach or .task) |
dropped | sft in the record means a training tool plus a PEFT adapter, which also covers trl dpo and trl grpo with --use_peft, so approach.type: supervised would say more than the record knows; and modelParameters.task means the ML task (classification, regression, generation), which the record does not capture. The intent itself is kept as the aibomrun:experiment:intent property above |
dataset.* |
modelCard.modelParameters.datasets[] as { "ref": "<bom-ref of the data component>" }, for training and sft runs only |
transformed; the data components themselves are in Datasets. A serving run's datasets were loaded by the run (a benchmark client), not used to train the served model, so they are not put in its model card |
inference.performance.metrics.* (time to first token, inter-token latency, generation and prompt throughput only) |
modelCard.quantitativeAnalysis.performanceMetrics[] on the served model |
transformed, see Telemetry. Hardware, network and server-load telemetry never enter the model card |
Hardware as device components¶
The record's GPU count and VRAM list cover every GPU pod that ran at the same time (#115; a 4-node JobSet with 8 GPUs per pod is 32), while its CPU, memory and kernel facts describe the first of those pods' node. The mapping follows: one GPU device component per GPU counted, one device per distinct node name across pods, and the CPU, memory and kernel facts as properties on that first node's device. The record does not say which node each GPU is on, so GPU components are not nested under nodes. Nor does it name the pod the node facts came from; the converter takes the first pod with a GPU claim (pods[].gpu_count) that isn't a retried attempt, else the first pod. A device component is the CycloneDX type for hardware; device-driver is used for the GPU driver.
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
environment.gpu_type, environment.gpu_count, environment.gpu_memory_mb[i] |
components[]: gpu_count entries of type: device, name = gpu_type, bom-ref: gpu:<i>, property aibomrun:gpu:memoryMb from gpu_memory_mb[i] when present |
transformed. Records from before #115 count only the first pod's GPUs. gpu_type holds a single model name, so a node with mixed GPU models (or pods with different models) is reported under the first name; the record cannot detect that case and the mapping does not pretend to |
environment.driver_version |
components[]: type: device-driver, name from the vendor in gpu_type (nvidia-driver for NVIDIA, amdgpu for AMD), version |
transformed. On AMD nodes the field holds the amdgpu driver version, so a fixed NVIDIA name would mislabel them. Discovery writes Not available when it cannot read a version; that value emits no component |
environment.cuda_version |
property aibomrun:gpu:cudaDriverVersion on the NVIDIA driver component |
property; this is the driver's CUDA ceiling, not the toolkit (that is torch_cuda_version, under Software). Not emitted for other vendors |
execution_metadata.pods[].node_name |
components[]: one type: device per distinct node, name = node name, bom-ref: node:<name> |
transformed |
environment.node_count |
property aibomrun:job:nodeCount on metadata.component |
property. Distinct nodes of the GPU pods counted in gpu_count, which can be fewer than the node devices above (a GPU-less client on another node); not seen in the records |
environment.cpu_model, .cpu_cores, .cpu.cpu_architecture, .cpu.cpu_cores_per_socket, .cpu.cpu_threads_per_core, .cpu.cache_l3, .memory_gb, .numa_nodes, .kernel_version |
properties on the first node device: aibomrun:node:cpu:model, :cpu:cores, :cpu:architecture, :cpu:coresPerSocket, :cpu:threadsPerCore, :cpu:cacheL3, :memoryGb, :numaNodes, :kernel:version |
property. They are node facts read from inside the first pod, so they are attached to that pod's node only. Records since #209 carry cpu_cores, numa_nodes, cpu_cores_per_socket and cpu_threads_per_core as integers; older ones as strings ("512"). CycloneDX property values are strings either way, so the converter accepts both |
environment.network.rdma_devices, .rdma_device_count, .primary_mtu |
properties aibomrun:node:network:rdmaDevices (JSON array string), :rdmaDeviceCount, :primaryMtu on the first node device |
property. Records since #209 carry rdma_devices as a list and rdma_device_count/primary_mtu as integers; older records carry one comma-separated string (mlx5_0,mlx5_1,...), which the mapping splits into the same array |
environment.storage.block_devices |
property aibomrun:node:storage:blockDevices (JSON array string) on the first node device |
property. Records since #209 carry [{name, size}]; older records carry lsblk output lines in one string (nvme0n1 894.3G\nnvme1n1 7T), which the mapping splits on newlines into the same {name, size} shape |
environment.kernel_config.cpu_governor, .numa_balancing, .transparent_hugepages, .max_map_count |
properties aibomrun:node:kernel:cpuGovernor, :numaBalancing, :transparentHugepages, :maxMapCount |
property |
environment.framework_version |
dropped as a separate field; the framework and version are already the library component for torch (below) |
dropped, duplicate |
dependencies[] carries one entry: the root component depends on every top-level component, including the devices. CycloneDX has no "ran on" relation; a dependency edge from the run to the hardware is the closest native statement and is what graph consumers expect.
Datasets¶
Each dataset.auto_detected[] entry becomes a data component with type: dataset in its data[] block. The declared dataset is not a separate component: it is the same dataset seen from a different source, so it is recorded as properties on the root component and reconciled against the detected entries through matches_declared, exactly as the record does.
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
dataset.auto_detected[i].dataset_name |
components[]: type: data, name, bom-ref: dataset:<i>; data[0].type: dataset, data[0].name = same, data[0].classification: "dataset" |
direct |
.version |
component version |
direct |
.source |
data[0].contents.url when it is a URL; otherwise property aibomrun:dataset:source |
transformed. In the record source is the detecting call (datasets.load_dataset), not a location, so it lands in the property |
.license |
component licenses[0].license.id when it is an SPDX id, else licenses[0].license.name |
transformed |
.description |
component description |
direct |
.fingerprint |
properties aibomrun:dataset:fingerprint and aibomrun:dataset:fingerprint:kind: "metadata"; never hashes[] |
property. Neither form of the fingerprint hashes the data: a 64-hex value is the local-path fingerprint, a hash of file names, sizes and mtimes (#185), and a 16-hex value (a5048bbbf302198f in the training record) is Hugging Face's own _fingerprint, which for a fresh load_dataset hashes the cache path (dataset, config, version, config hash) and the split name. Putting either in hashes would present it as a content digest, so both stay properties with the kind stated |
.split, .splits[] |
property aibomrun:dataset:split: split as is, splits comma-joined |
property. Both are current: split is a string, set when the load named one (load_dataset(split=...), a torchvision train/test flag); splits is a list, set when load_dataset returned a DatasetDict (["train"] in the training record) |
.config_name, .revision, .builder |
properties aibomrun:dataset:configName, :revision, :builder |
property; not seen in the records |
.root, .path, .data_dir, .data_files |
properties aibomrun:dataset:root, :path, :dataDir, :dataFiles (JSON string) |
property; these are paths inside the container, kept because they are what makes a local dataset identifiable; not seen in the records |
.url, .urls |
one externalReferences[] of type: distribution per URL; urls is a list or a dict of name to URL, and a dict's values are used |
transformed; not seen in the records |
.dataset_class, .transform, .download, .description, .license |
properties aibomrun:dataset:class, :transform, :download; description and license as in the rows above |
property; not seen in the records (the real entry carries dataset_name, source, splits, version, fingerprint, batch_size, seen_via, matches_declared) |
.batch_size |
property aibomrun:dataset:batchSize |
property |
.sampling.* (sampler, shuffle, drop_last, num_workers, generator_seed, batch_sampler, sampler_seed, sampler_drop_last) |
properties aibomrun:dataset:sampling:<camelCased key> |
property; not seen in the records |
.seen_via[], .detected_via |
properties aibomrun:dataset:seenVia (comma-joined), aibomrun:dataset:detectedVia |
property; detected_via not seen in the records |
.matches_declared |
property aibomrun:dataset:matchesDeclared (true, false, or absent for null) |
property |
dataset.declared.name, .version, .source, .license, .config_name, .split, .declared_via |
properties aibomrun:dataset:declared:name, :version, :source, :license, :configName, :split, :declaredVia on metadata.component |
property |
For a training run, every dataset component is also referenced from modelCard.modelParameters.datasets[] by bom-ref.
Software¶
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
execution_metadata.pods[].containers[] (name, image, image_id) |
components[]: one type: container per distinct image, name = repository, version = tag when image has one, purl: pkg:oci/<last path segment>@sha256:<digest>?repository_url=<registry/repository> from image_id, bom-ref: image:<digest>, property aibomrun:container:names (comma-joined container names that ran it) |
transformed. App containers only; our injected containers and native sidecars are not in the record. image_id is passed through as the kubelet reports it: when it is a bare sha256: config digest rather than repo@sha256:, the purl is omitted and the digest kept as property aibomrun:container:imageId. Records from before #208 have no containers and get no container component |
environment.python_version |
components[]: type: platform, name: python, version, purl: pkg:generic/python@<version> |
transformed |
environment.libraries{dist: version} |
one components[] entry per library: type: library, name, version, purl: pkg:pypi/<normalized name>@<version> |
transformed. Distribution names are normalised per PEP 503 for the purl. The records carry NVIDIA container builds with local version labels (2.11.0a0+a6c236b9fd.nv26.3.46836102); the purl keeps the full string as the version with + percent-encoded as %2B (pkg:pypi/torch@2.11.0a0%2Ba6c236b9fd.nv26.3.46836102), which is the canonical form the reference libraries write and what a consumer comparing purls as strings will match; such a version will not resolve on PyPI, which is correct: it is not a PyPI release |
environment.torch_cuda_version, .torch_hip_version, .cudnn_version, .nccl_version |
properties on the torch library component: aibomrun:torch:cudaVersion, :hipVersion, :cudnnVersion, :ncclVersion |
property; they describe the torch build, not separate installed packages. torch_hip_version not seen in the records |
model.framework (serving: vllm, tgi, sglang, lmdeploy) |
components[]: type: application, name = engine, version from the matching environment.libraries entry when present (vllm 0.17.1 in the serving record), property aibomrun:runtime:name, no purl |
transformed. This is the component k8s-aibom also emits for the same workload, as application with k8s-aibom:runtime:name, which is what makes the two documents comparable. The purl stays on the engine's library component only: on both, a consumer such as Dependency-Track would list the engine twice. k8s-aibom's runtime application also has a version and no purl |
model.framework (training: trl, axolotl, llamafactory) |
property aibomrun:model:framework, as in the model table; the tool is also in environment.libraries as a library component (trl 1.17.1 in the record) |
property. Detected Fields mentions a training_framework field; the records carry the tool only in model.framework, so no separate row |
Training configuration¶
Training facts are modelCard material: hyperparameters, precision, determinism and topology describe how the model was produced. CycloneDX's modelCard has no hyperparameter schema, so they go in modelCard.properties rather than modelParameters, under the same namespace.
spec.data path |
CycloneDX 1.6 (modelCard.properties unless stated) |
Rule |
|---|---|---|
training.optimizer |
aibomrun:training:optimizer |
property |
training.optimizer_config.class, .declared_via, .params.*, .param_groups[], .optim_args |
aibomrun:training:optimizerConfig:class, :declaredVia, :params:<camelCased key> one property per key (lr, betas as JSON, eps, weight_decay, fused, amsgrad, capturable, decoupled_weight_decay, differentiable, maximize in the record), :paramGroups (JSON string), :optimArgs |
property. Per-key properties for params because the record's keys are plain scalars; param_groups stays a JSON string. param_groups and optim_args not seen in the records |
training.lr_scheduler.type, .warmup_ratio, .warmup_steps, .declared_via |
aibomrun:training:lrScheduler:type, :warmupRatio, :warmupSteps, :declaredVia |
property. declared_via is in the record (training_arguments) though not in Detected Fields; warmup_ratio not seen in the records |
training.learning_rate, .batch_size, .epochs, .random_seed |
aibomrun:training:learningRate, :batchSize, :epochs, :randomSeed |
property |
training.determinism.* (seeds.{python,numpy,torch}, cudnn_deterministic, cudnn_benchmark, deterministic_algorithms in the record; seed_history, deterministic_algorithms_warn_only, cublas_workspace_config, python_hash_seed, data_seed, full_determinism per Detected Fields) |
aibomrun:training:determinism:<camelCased path>; seed_history as JSON string |
property; the second group not seen in the records |
training.mixed_precision, .mixed_precision_declared_via |
aibomrun:training:mixedPrecision, aibomrun:training:mixedPrecisionDeclaredVia |
property |
training.precision.* (tf32_matmul, tf32_cudnn, float32_matmul_precision, deepspeed in the record; autocast[], fp8.{backend,recipe}, fsdp_mixed_precision.* per Detected Fields) |
aibomrun:training:precision:<camelCased path>; arrays and objects as JSON strings |
property; the second group not seen in the records |
training.parallelization_strategy |
aibomrun:training:parallelizationStrategy |
property |
training.distributed.* (world_size, nodes, processes_per_node, world_declared_via, strategies[], deepspeed.{zero_stage,offload_optimizer,offload_param,declared_via} in the record; tensor_parallel_size, pipeline_parallel_size, context_parallel_size, expert_parallel_size, data_parallel_size, parallel_sizes_declared_via, device_mesh, fsdp.* per Detected Fields) |
aibomrun:training:distributed:<camelCased path>; strategies as JSON array string, device_mesh JSON string |
property; the second group not seen in the records |
fine_tuning.adaptation_method, .lora_rank, .lora_alpha |
aibomrun:fineTuning:adaptationMethod, :loraRank, :loraAlpha |
property |
inference.* (serving runs: serving_engine, max_model_len, tensor_parallel_size, pipeline_parallel_size, enable_expert_parallel, data_parallel_size, gpu_memory_utilization, temperature, top_p, top_k, max_tokens, served_model_name, max_num_seqs, seed, trust_remote_code, enforce_eager, enable_prefix_caching, serving_role) |
properties aibomrun:inference:<camelCased key> on the runtime application component |
property. Serving configuration describes the server, so it sits on the runtime component, where k8s-aibom's readers already look for runtime facts. Null values emit nothing: the serving record sets max_model_len, gpu_memory_utilization, temperature, top_p, top_k and leaves the rest null. serving_role not seen in the records |
Provenance¶
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
source_code.git_repository |
metadata.component.externalReferences[]: type: vcs, url = repository |
direct. The record has already redacted credentials from the URL. pedigree.commits[0].url is left unset: it is meant to point at the commit itself and building that URL depends on the git host |
source_code.git_commit |
metadata.component.pedigree.commits[0].uid |
direct |
source_code.git_branch |
property aibomrun:source:gitBranch on the root |
property; commit has no branch field |
source_code.declared_via |
property aibomrun:source:declaredVia |
property |
source_code.dirty |
property aibomrun:source:dirty ("true" or "false"); when true, also pedigree.notes: "working tree had uncommitted changes to tracked files" |
transformed; the note is for humans, the property for machines. false emits the property without a note, so a clean tree can be told apart from an unknown one. Absent when the record has no dirty; the note appears only in the third sample |
pedigree lives on the root component. For a serving run the root is an application, and pedigree is allowed on any component type, so the placement is the same. Both real records have every source_code field null (no annotation, no .git, no image label resolved), so the sample built from the training record has no pedigree; the third sample beside it, sample-training-run-with-git.cdx.json, is the same record with source_code populated in the shape the project described (git_repository, git_commit, git_branch, dirty, declared_via) and shows the pedigree, the vcs reference and the dirty-tree note.
Telemetry¶
Two kinds of numbers come out of a run and they go to different places. Hardware and network telemetry (resource_utilization) describes the run and lands as properties on the root component, with the unit in its own property. Model-serving quality (inference.performance) describes how the served model performed and lands in the served model's modelCard.quantitativeAnalysis.performanceMetrics[], which the schema defines for exactly that ("accuracy, F1 score, precision ..."); putting GPU power there would present it as the model's performance. Server-load figures in inference.performance (KV-cache usage, requests running and waiting) are runtime facts and go on the runtime component.
spec.data path |
CycloneDX 1.6 | Rule |
|---|---|---|
resource_utilization.metrics.<m>.{min,max,avg,p95,limit} |
properties aibomrun:telemetry:<m>:<stat> on metadata.component |
property |
resource_utilization.metrics.<m>.segments.{first_third,middle_third,last_third} |
properties aibomrun:telemetry:<m>:avg:<segment> |
property |
resource_utilization.metrics.<m>.unit |
property aibomrun:telemetry:<m>:unit |
property |
resource_utilization.collected_at, .summary_includes_cold_start |
properties aibomrun:telemetry:collectedAt, aibomrun:telemetry:summaryIncludesColdStart on metadata.component |
property |
resource_utilization.note |
dropped; the absence of telemetry properties says the same | dropped |
inference.performance.metrics.{time_to_first_token_seconds,inter_token_latency_seconds,generation_throughput,prompt_throughput}.{min,max,avg,p95} and .segments.* |
performanceMetrics[] on the served model: type: "<m>_<unit>:<stat>" (the unit folded into the type, generation_throughput_tokens_per_sec:p95, time_to_first_token_seconds:avg; a metric whose name already ends in its unit is not doubled), value: "<number>", no slice |
transformed. slice is the name of the data slice a metric was computed on, so the unit does not belong there |
inference.performance.metrics.{kv_cache_usage,num_requests_running,num_requests_waiting}.* and any other engine metric that is not a model-quality figure |
properties aibomrun:inference:telemetry:<m>:<stat>, :avg:<segment>, :unit on the runtime application component |
property |
inference.performance.collected_at, .summary_includes_cold_start |
properties aibomrun:inference:telemetry:collectedAt, :summaryIncludesColdStart on the runtime component |
property |
telemetry_series_ref.{kind,name,sha256,size_bytes,schema_version,window.{start,end,step_seconds}} |
metadata.component.externalReferences[]: type: quality-metrics, url: urn:aibomrun:<namespace>/<kind>/<name>, hashes[0]: {alg: SHA-256, content: <sha256>}, comment: "<size_bytes> bytes, schema <schema_version>, window <start>..<end> step <step_seconds>s" |
transformed. The record spells the step step_seconds; the AIBOMTelemetry CRD spells the same value stepSeconds. The series is not in the document; the reference carries the hash the signed record already holds, so a reader with cluster access can fetch aibomtel/<name> and verify it the way oc aibomrun describe does. Open question 2 covers the URN scheme |
legacy telemetry_series_ref.{configmap,key} |
same reference with url: urn:aibomrun:<namespace>/ConfigMap/<configmap>#<key> |
transformed; not seen in the records |
resource_utilization is per run, not per pod, in the record; the mapping does not try to recover per-pod figures.
Signature¶
spec.signature is a base64 Ed25519 signature over the RFC 8785 canonical form of spec.data, with the raw public key in spec.signaturePublicKey. CycloneDX carries an enveloped signature in JSON Signature Format at the document root, and JSF defines Ed25519 (algorithm: "Ed25519", public key as a JWK of kty: OKP, crv: Ed25519).
The existing signature cannot simply be copied into the CycloneDX document, because it signs the record's bytes, not the document's. Two honest options, and the mapping uses the first:
- Carry the record's signature as evidence of the source.
metadata.component.externalReferences[]oftype: attestationwithurl: urn:aibomrun:<namespace>/AIBOM/<name>andhashes[0]: {alg: SHA-256, content: <sha256 of the RFC 8785 bytes>}, plus propertiesaibomrun:signature:algorithm: "Ed25519",aibomrun:signature:value: <spec.signature>,aibomrun:signature:publicKey: <spec.signaturePublicKey>onmetadata.component. A verifier fetches the record, canonicalisesspec.data, and checks the Ed25519 signature against the embedded key, which is exactly whatoc aibomrun describedoes today. The CycloneDX document itself is unsigned and says so. - Sign the CycloneDX document too. If the conversion ran in the postprocess Job, that Job would hold the per-namespace key and can add a root
signaturein JSF with the same key. That makes the CycloneDX document self-verifying, at the cost of two signatures over two serialisations of one record. Worth doing only if a downstream consumer verifies JSF, and none of the three named ones do today.
Properties under aibomrun:signature:* are facts about the record's signature, not a claim that the CycloneDX bytes are signed.
Linking to k8s-aibom¶
A serving workload in a namespace enabled for both projects (aibom.io/enabled for this one, aibom.k8saibom.dev/enabled for k8s-aibom) can have both an AIBOM record from this project and an AIBOM document from k8s-aibom. CycloneDX links documents with a BOM-Link: urn:cdx:<serialNumber UUID>/<version> for a whole document, urn:cdx:<uuid>/<version>#<bom-ref> for one element in it.
The two serials are built the same way from the same fact. k8s-aibom (GoogleCloudPlatform/k8s-aibom#381) emits uuid5(<k8s-aibom namespace>, <workload UID>); this project emits uuid5(<aibomrun namespace>, <triggering workload UID>) from execution_metadata.trigger.uid. Both namespace UUIDs are derived from the project URLs, so each side can compute the other's serial from the workload UID alone, with no cluster access and no shared secret.
The two documents are different things, and the link should say so. k8s-aibom keeps one serial per workload with version always 1, so urn:cdx:<serial>/1 names a document whose content changes as the workload is reconciled; each record here is a single immutable document for one run. A link from a record to k8s-aibom therefore means "the runtime inventory of the workload this run executed as", not "the state of that workload at the time of the run".
From this project's document to k8s-aibom's: metadata.component.externalReferences[] of type: bom with url: urn:cdx:<k8s-aibom serial>/1 and comment: "runtime inventory for the same workload", emitted only after the converter has read k8s-aibom's document for that workload from the cluster. Knowing the trigger UID is not enough: it gives k8s-aibom's serial, not whether k8s-aibom wrote that document. It writes one only for a workload with an inference signal (never for a training Job), only in namespaces with its own label, and deletes it with the workload, while the record here stays. Where both documents exist, the alignment holds whenever k8s-aibom reports the triggering workload as its own root, which includes a Job and the child Jobs of a JobSet (the serving sample's shape). It does not hold when k8s-aibom folds the workload into an owner's document (a CronJob's Jobs roll up into the CronJob, and the record can't tell a CronJob's Job from a plain one) or for pod-triggered records, which never align: KServe predictors (k8s-aibom roots on the InferenceService), Deployment and LeaderWorkerSet pods (llm-d), and PyTorchJob workers. Reading k8s-aibom's document settles all of this; without it, the never-guessed rule applies and no link is emitted. Since both serials stay computable, an offline consumer can still match the two documents without the link. The samples carry no link today: k8s-aibom does not emit a serial yet and the sample records predate the trigger UID. Open question 4.
From k8s-aibom's document to this project's: the same type: bom reference pointing at urn:cdx:<this document's serial>/1, computable by k8s-aibom from the workload UID once both sides emit the rule above, and under the same condition: emitted only after k8s-aibom has read this project's record for the workload from the cluster.
Property namespace¶
Every property above uses the top-level namespace aibomrun, with colon-separated sub-namespaces and camelCase leaf names, following the grammar of the CycloneDX Property Taxonomy. Telemetry is the one exception: aibomrun:telemetry:* and aibomrun:inference:telemetry:* keep the record's metric and segment keys as they are (cpu_usage, first_third), so they match resource_utilization.metrics and inference.performance.metrics. Registering it is one row in that repository's README, pointing at a taxonomy page in this repository, as k8s-aibom did for k8s-aibom. aibomrun is suggested because it is already the CRD short name, the plugin name and the thing users type; project-aibom is the alternative if the project name should be the namespace. Until the row is merged the names are the same, so nothing in the mapping changes at registration.
Sub-namespaces used: aibomrun:record, aibomrun:experiment, aibomrun:job, aibomrun:pod, aibomrun:model, aibomrun:gpu, aibomrun:node, aibomrun:dataset, aibomrun:torch, aibomrun:runtime, aibomrun:training, aibomrun:fineTuning, aibomrun:inference, aibomrun:source, aibomrun:telemetry, aibomrun:signature.
Deliberately not mapped¶
- Captured-only discovery fields (L1 and L2 cache, clock frequencies, free memory, uptime, interface names, TCP buffers, NVMe count,
/tmpsize, I/O scheduler, swappiness, ulimits, cgroup v1 limits). They never reachspec.data; Detected Fields explains why. execution_metadata.pods[].pod_ip. Ephemeral, and a document that leaves the cluster should not carry pod addresses._metadata.schema_complianceand_metadata.dataset_detection(older records only). Constant statements about the record format.resource_utilization.note. Its absence of metrics is already visible.- The time series itself. Too large for a BOM and already addressed by hash through the reference.
environment.framework_versionas its own field. Redundant with the torch library component.- Anything not in
spec.data: the pod spec, resource requests. The record does not have them, so the document cannot claim them.
Open questions¶
- Model purl.
pkg:generic/<name>?download_url=https://huggingface.co/<name>versuspkg:huggingface/<org>/<model>@<revision>. Both records name Hugging Face repositories (ibm-granite/granite-3.3-2b-instruct,drawais/Granite-3.3-8B-Instruct-AWQ-INT4) and neither has a revision, so the two forms differ only in type. The mapping usespkg:genericand switches if Lightwell or Dependency-Track preferpkg:huggingface. - URN scheme for cluster objects.
urn:aibomrun:<namespace>/<Kind>/<name>is a placeholder for "an object in the cluster this record came from". If the project prefershttps://URLs to the console or anocplugin scheme, the mapping follows. - The serial namespace. The mapping proposes
uuid5(NAMESPACE_URL, "https://github.com/gavinsan33/aibom-webhook-service")=efb51e52-f1c6-57af-b409-621e826f2301. If the project would rather derive it from another stable URL (the docs site, the organisation), say which; it only has to be fixed and documented. - The link in both directions. Needs a
serialNumberon k8s-aibom documents (GoogleCloudPlatform/k8s-aibom#381, open); the record side has the trigger UID. Until that lands, no link is emitted. - Per-pod telemetry. The records aggregate across pods (both have one pod, so it did not matter here). If per-pod figures matter for multi-node runs, that is a record change first.
step_secondsversusstepSeconds. The record'stelemetry_series_ref.windowusesstep_seconds; theAIBOMTelemetryCRD'sspec.windowusesstepSecondsfor the same value. Harmless, but a reader matching the two by hand will trip on it once.
Validation¶
The three sample documents beside this page are the converter's output for two real records the project supplied (in oc-aibom's internal/aibom/testdata/cyclonedx/): a DeepSpeed ZeRO-3 LoRA fine-tune of ibm-granite/granite-3.3-2b-instruct on two H100s (sample-training-run.cdx.json), and a vLLM benchmark server running an AWQ-quantized Granite 8B with ngram speculative decoding (sample-serving-run.cdx.json). The third, sample-training-run-with-git.cdx.json, is the training record with source_code populated, since both real records have it null, so the pedigree rules are exercised too. All three validate against the CycloneDX 1.6 JSON schema. oc-aibom's TestCycloneDXReproducesSamples checks that the converter still produces them byte for byte; after a rule change, go test ./internal/aibom -run CycloneDX -update regenerates them there, and the copies here are updated to match. Before publication the namespace was renamed, the signature and public key truncated, and the records' own placeholder node name, pod IP and UIDs kept as supplied; nothing else was changed. The attestation hash is computed over the redacted record, so it won't match the original. The serials in the samples are the fallback form described above, since the records predate execution_metadata.trigger.