Central schemas in data_validation/schemas/ have drifted from the datasets: decide per file (point, retire, or keep)
Context
The policy ratified when merging #62: dataset-local schemas are authoritative, and the central files in data_validation/schemas/ are historical stubs unless a dataset actually validates against them. #73 applied this to agentdataflow_trace.schema.json by turning it into a $ref pointer. The same problem exists across the directory. For example, all 59 entries in datasets/exploit_dataset/ fail exploit.schema.json (reported in #73).
Current state (as of main, 2026-09-17)
| Central schema | Dataset-local schema | Used by | Proposed action |
|---|---|---|---|
agentdataflow_trace.schema.json |
yes | nothing | done in #73 (pointer) |
exploit.schema.json |
datasets/exploit_dataset/schema.json |
nothing | pointer, as in #73 |
riskassessment.schema.json |
datasets/riskassessment_dataset/schema.json |
check | pointer, as in #73 |
vulnerability.schema.json |
datasets/vulnerability_dataset/schema.json |
check | pointer, as in #73 |
promptinj_testcase.schema.json |
none | live: promptinj_dataextraction_testcases README, tr_turkish_conversation_prompt_injection_pairs/validate.py and build_cases.py |
keep as authoritative, or move into the dataset folder and leave a pointer |
incident.schema.json |
none | data_validation/validators/schema_validator.py usage example |
verify against datasets/incident_dataset/; then either move local or keep |
rag.schema.json |
none | check | verify against datasets/rag_dataset/ |
crossframework_mapping.schema.json |
none | check | the crosswalk now lives in GenAI-Security-Project/crosswalk; decide whether this dataset and schema still belong here |
Rule going forward
Every dataset with entries ships its own schema.json, a validator, and a path-filtered CI workflow (the agentdataflow_toolexchange_traces/ layout is the reference). Central files are either pointers or removed.
How to help
The three pointer conversions are small and independent. Copy #73 and include a $comment listing the concrete divergences. Before converting, grep for references to confirm nothing validates against the central file. One PR per schema, please.
Hi @emmanuelgjr , I'd like to pick up the 'riskassessment.schema.json' pointer conversion, following the pattern from #73.
Plan:
- grep for references to confirm nothing validates against the central file
- compare it with 'datasets/riskassessment_dataset/schema.json' and list the concrete divergences in a 'comment'
- convert the central file to a ref pointer
Will open a single PR for this schema. Happy to take 'vulnerability.schema.json' afterwards if no one else has.
Resolved: every file in data_validation/schemas/ now has a decision. Thanks to @Prasad-desh for #79 and #80.
| Central schema | Decision | Why |
|---|---|---|
agentdataflow_trace.schema.json |
Pointer (#73) | The dataset-local schema is authoritative and diverged deliberately. |
riskassessment.schema.json |
Pointer (#79) | 23/23 entries fail the central file and pass the local one. |
vulnerability.schema.json |
Pointer (#80) | 47/47 entries fail the central file and pass the local one. |
exploit.schema.json |
Pointer (#81) | 59/59 entries fail the central file and pass the local one. |
promptinj_testcase.schema.json |
Keep, authoritative | Live: used by tr_turkish_conversation_prompt_injection_pairs/validate.py and build_cases.py. No dataset-local copy, so nothing has drifted. |
rag.schema.json |
Keep, authoritative | The only schema for rag_dataset/; its one entry (RAG-0001) passes it. |
incident.schema.json |
Keep, authoritative | incident_dataset/ has no entries yet; the schema_validator.py usage example points here. |
crossframework_mapping.schema.json |
Keep, authoritative | crossframework_mapping_dataset/ has no entries yet. |
The four "keep" files are the only schema for their datasets, so there is no drift to fix. If one of those datasets later gets its own schema.json and validate.py, the same pointer conversion applies then.