a1c00l commited on
Commit
2f1e1b6
·
verified ·
1 Parent(s): d74317b

Update src/aibom_generator/utils.py

Browse files
Files changed (1) hide show
  1. src/aibom_generator/utils.py +2 -12
src/aibom_generator/utils.py CHANGED
@@ -25,8 +25,6 @@ FIELD_CLASSIFICATION = {
25
  "specVersion": {"tier": "critical", "weight": 3, "category": "required_fields"},
26
  "serialNumber": {"tier": "critical", "weight": 3, "category": "required_fields"},
27
  "version": {"tier": "critical", "weight": 3, "category": "required_fields"},
28
- "buildTime": {"tier": "critical", "weight": 4, "category": "required_fields"},
29
- "releaseTime": {"tier": "critical", "weight": 4, "category": "required_fields"},
30
  "name": {"tier": "critical", "weight": 4, "category": "component_basic"},
31
  "downloadLocation": {"tier": "critical", "weight": 4, "category": "external_references"},
32
  "primaryPurpose": {"tier": "critical", "weight": 3, "category": "metadata"},
@@ -68,13 +66,13 @@ COMPLETENESS_PROFILES = {
68
  "standard": {
69
  "description": "Comprehensive fields for proper documentation",
70
  "required_fields": ["bomFormat", "specVersion", "serialNumber", "version", "name",
71
- "buildTime", "releaseTime", "downloadLocation", "primaryPurpose", "suppliedBy"],
72
  "minimum_score": 70
73
  },
74
  "advanced": {
75
  "description": "Extensive documentation for maximum transparency",
76
  "required_fields": ["bomFormat", "specVersion", "serialNumber", "version", "name",
77
- "buildTime", "releaseTime", "downloadLocation", "primaryPurpose", "suppliedBy",
78
  "type", "purl", "description", "licenses", "hyperparameter", "limitation",
79
  "energyConsumption", "safetyRiskAssessment", "typeOfModel"],
80
  "minimum_score": 85
@@ -83,14 +81,6 @@ COMPLETENESS_PROFILES = {
83
 
84
  # Validation messages framed as best practices
85
  VALIDATION_MESSAGES = {
86
- "buildTime": {
87
- "missing": "Missing critical field: buildTime - required for comprehensive version tracking",
88
- "recommendation": "Add build timestamp to enable proper versioning and reproducibility"
89
- },
90
- "releaseTime": {
91
- "missing": "Missing critical field: releaseTime - important for tracking release history",
92
- "recommendation": "Add release timestamp to document when this version was released"
93
- },
94
  "name": {
95
  "missing": "Missing critical field: name - essential for model identification",
96
  "recommendation": "Add a descriptive name for the model"
 
25
  "specVersion": {"tier": "critical", "weight": 3, "category": "required_fields"},
26
  "serialNumber": {"tier": "critical", "weight": 3, "category": "required_fields"},
27
  "version": {"tier": "critical", "weight": 3, "category": "required_fields"},
 
 
28
  "name": {"tier": "critical", "weight": 4, "category": "component_basic"},
29
  "downloadLocation": {"tier": "critical", "weight": 4, "category": "external_references"},
30
  "primaryPurpose": {"tier": "critical", "weight": 3, "category": "metadata"},
 
66
  "standard": {
67
  "description": "Comprehensive fields for proper documentation",
68
  "required_fields": ["bomFormat", "specVersion", "serialNumber", "version", "name",
69
+ "downloadLocation", "primaryPurpose", "suppliedBy"],
70
  "minimum_score": 70
71
  },
72
  "advanced": {
73
  "description": "Extensive documentation for maximum transparency",
74
  "required_fields": ["bomFormat", "specVersion", "serialNumber", "version", "name",
75
+ "downloadLocation", "primaryPurpose", "suppliedBy",
76
  "type", "purl", "description", "licenses", "hyperparameter", "limitation",
77
  "energyConsumption", "safetyRiskAssessment", "typeOfModel"],
78
  "minimum_score": 85
 
81
 
82
  # Validation messages framed as best practices
83
  VALIDATION_MESSAGES = {
 
 
 
 
 
 
 
 
84
  "name": {
85
  "missing": "Missing critical field: name - essential for model identification",
86
  "recommendation": "Add a descriptive name for the model"