| { |
| "$defs": { |
| "LabelEvidence": { |
| "additionalProperties": false, |
| "properties": { |
| "interpretation": { |
| "title": "Interpretation", |
| "type": "string" |
| }, |
| "origin": { |
| "enum": [ |
| "source_declared", |
| "benchmark_construct", |
| "pipeline_inference" |
| ], |
| "title": "Origin", |
| "type": "string" |
| }, |
| "source_field": { |
| "anyOf": [ |
| { |
| "type": "string" |
| }, |
| { |
| "type": "null" |
| } |
| ], |
| "default": null, |
| "title": "Source Field" |
| }, |
| "source_value": { |
| "anyOf": [ |
| { |
| "type": "string" |
| }, |
| { |
| "type": "null" |
| } |
| ], |
| "default": null, |
| "title": "Source Value" |
| } |
| }, |
| "required": [ |
| "origin", |
| "interpretation" |
| ], |
| "title": "LabelEvidence", |
| "type": "object" |
| } |
| }, |
| "additionalProperties": false, |
| "properties": { |
| "candidate_id": { |
| "pattern": "^candidate_[0-9a-f]{16,64}$", |
| "title": "Candidate Id", |
| "type": "string" |
| }, |
| "dimension": { |
| "title": "Dimension", |
| "type": "string" |
| }, |
| "label_evidence": { |
| "$ref": "#/$defs/LabelEvidence" |
| }, |
| "native_white_case": { |
| "title": "Native White Case", |
| "type": "boolean" |
| }, |
| "parser_version": { |
| "default": "source_inventory_v1", |
| "title": "Parser Version", |
| "type": "string" |
| }, |
| "prompt_risk_label": { |
| "anyOf": [ |
| { |
| "enum": [ |
| 0, |
| 1 |
| ], |
| "type": "integer" |
| }, |
| { |
| "type": "null" |
| } |
| ], |
| "title": "Prompt Risk Label" |
| }, |
| "source_category": { |
| "minLength": 1, |
| "title": "Source Category", |
| "type": "string" |
| }, |
| "source_dataset": { |
| "title": "Source Dataset", |
| "type": "string" |
| }, |
| "source_file_sha256": { |
| "pattern": "^[0-9a-f]{64}$", |
| "title": "Source File Sha256", |
| "type": "string" |
| }, |
| "source_labels": { |
| "items": { |
| "type": "string" |
| }, |
| "title": "Source Labels", |
| "type": "array" |
| }, |
| "source_license": { |
| "title": "Source License", |
| "type": "string" |
| }, |
| "source_license_path": { |
| "title": "Source License Path", |
| "type": "string" |
| }, |
| "source_license_sha256": { |
| "pattern": "^[0-9a-f]{64}$", |
| "title": "Source License Sha256", |
| "type": "string" |
| }, |
| "source_metadata": { |
| "additionalProperties": true, |
| "title": "Source Metadata", |
| "type": "object" |
| }, |
| "source_path": { |
| "title": "Source Path", |
| "type": "string" |
| }, |
| "source_prompt": { |
| "minLength": 1, |
| "title": "Source Prompt", |
| "type": "string" |
| }, |
| "source_record_sha256": { |
| "pattern": "^[0-9a-f]{64}$", |
| "title": "Source Record Sha256", |
| "type": "string" |
| }, |
| "source_reference": { |
| "title": "Source Reference", |
| "type": "string" |
| }, |
| "source_revision": { |
| "title": "Source Revision", |
| "type": "string" |
| }, |
| "source_row_index": { |
| "minimum": 0, |
| "title": "Source Row Index", |
| "type": "integer" |
| }, |
| "source_sample_id": { |
| "title": "Source Sample Id", |
| "type": "string" |
| }, |
| "source_subset": { |
| "title": "Source Subset", |
| "type": "string" |
| }, |
| "suggested_severity_band": { |
| "anyOf": [ |
| { |
| "enum": [ |
| "hard", |
| "gray", |
| "white" |
| ], |
| "type": "string" |
| }, |
| { |
| "type": "null" |
| } |
| ], |
| "title": "Suggested Severity Band" |
| } |
| }, |
| "required": [ |
| "candidate_id", |
| "dimension", |
| "source_dataset", |
| "source_subset", |
| "source_sample_id", |
| "source_path", |
| "source_row_index", |
| "source_prompt", |
| "source_category", |
| "source_labels", |
| "prompt_risk_label", |
| "suggested_severity_band", |
| "native_white_case", |
| "label_evidence", |
| "source_metadata", |
| "source_record_sha256", |
| "source_file_sha256", |
| "source_reference", |
| "source_revision", |
| "source_license", |
| "source_license_path", |
| "source_license_sha256" |
| ], |
| "title": "CandidateRecord", |
| "type": "object" |
| } |
|
|