Repository navigation
data_validation: point riskassessment central schema at the dataset-local one - #79
Conversation
…oject#76) Updated schema version and added comment regarding schema authority. Signed-off-by: Prasad Deshpande <74897556+Prasad-desh@users.noreply.github.com>
|
@emmanuelgjr — opened this per the plan above. One note beyond this PR: the checklist's I'll take |
emmanuelgjr
left a comment
There was a problem hiding this comment.
Verified locally: all 23 entries pass the dataset-local schema and the new $ref pointer, and all 23 fail the old central file. Nothing references the central file. Same pattern as #73. Thanks!
Same pattern as #73, #79 and #80. Nothing references the central file; datasets/exploit_dataset/validate.py validates all 59 entries against the dataset-local schema, and all 59 fail the central draft-07 file (missing name and source; exploit_id, prerequisites, impact and detection_indicators of the wrong shape). The divergences are recorded in $comment. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Refs #76. Follows the pattern from #73. Supports the Data Security Initiative's data_validation workstream.
Converts
data_validation/schemas/riskassessment.schema.jsoninto a$refpointer todatasets/riskassessment_dataset/schema.json, which is authoritative per the policy ratified in #62.Reference check:
grep -rn "riskassessment.schema"returns no matches. Nothing validates against the central file; only READMEs link to the dataset folder.Evidence:
datasets/riskassessment_dataset/validate.py: all 23 entries pass the local schemadeployment_scenario,components_assessed,dsgai_risks_identified;assessment_iddoes not match^RA-\d{4}$)Divergences recorded in $comment:
additionalProperties: falseassessment_id:RA-NNNNtoDSGAI-RA-slugcomponents_assessed(string list) to typedcomponentswith role enum and sensitivity tierdsgai_risks_identifiedwith singlerisk_ratingtorisks_identifiedwith inherent and residual ratings plus required rationaleexisting_controls,control_gaps,framework_alignmentfrom free text to structured arraysindustry(free text) toindustry_sectorenumscenario_name,entry_type,deployment_pattern,description,date_addedAnalysis drafted with AI assistance; I reviewed the diff and verified results by running the validators locally.
DSGAI mapping
None. Schema housekeeping only; no dataset entries are added or changed.
Checklist
python run_all_checks.py):run_all_checks.pyis currently a stub ("Validators not yet implemented"). Randatasets/riskassessment_dataset/validate.pyinstead: 23/23 entries pass.