Repository navigation
bom: SPDX 3.0-style Model BOM generator + lineage registry + emitted BOMs - #480
Merged
Merged
Conversation
…BOMs Formalizes the recorded model provenance (models.yaml artifact/license/ metrics/parity, corpora/*.yaml sha-pinned splits, card + TODO lineage) into a self-contained SPDX 3.0-style JSON per model: model = Package, training data = Dataset dependencies carrying the split sha256 pins, lineage = relationships. bom/lineage.yaml is the declarative model -> corpus registry plus gated-pending entries. Emitted for heb-vocalized-plane-3.0 (shipped) and urd-vocalized-2.0 (gated-pending: no artifact sha/urls pre-staged per owner law — the ship runbook is not altered; the BOM records the 16(e) FAIL verdict and lineage).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/generate_model_bom.py: generates a self-contained SPDX 3.0-style JSON Model BOM per model from the org's existing registries — model =Package(artifact checksums, license, release asset refs, parity, eval metric references), training data =Datasetdependencies carrying the corpora split sha256 pins (fromcorpora/*.yaml), lineage =dependsOn/descendantOfrelationships.bom/lineage.yaml: the declarative model -> corpus linkage (implicit today in prosetrained_from/card text) + gated-pending entries.d6833fc7…, BSD-3-Clause, both gold + weak-pretrain corpora with their split pins, evals (DER 6.6078 crown protocol)..sha256sidecars emitted per the house sidecar pattern.Local verification
python3 scripts/generate_model_bom.py --model heb-vocalized-plane-3.0 --model urd-vocalized-2.0-> both documents emitted; gated-pending assertion (no artifact data) enforced in code; committed outputs inspected (checksums/splits/relationships verbatim from registries).Test plan
python3 scripts/generate_model_bom.py --allexits 0bom/heb-vocalized-plane-3.0.spdx.json+ sidecar to the existingheb-vocalized-plane-3.0release tag