Scandiumlabs commited on
Commit
06517ba
·
verified ·
1 Parent(s): 8fe1d15

Upload docs/provenance.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. docs/provenance.md +71 -0
docs/provenance.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Provenance
2
+
3
+ ## Every Entry Has a History
4
+
5
+ Since v0.0, every entry in the Scandium Dataset carries a `provenance` field
6
+ that records its complete history:
7
+
8
+ ```python
9
+ {
10
+ "provenance": {
11
+ "source": "oqmd",
12
+ "source_id": "472978",
13
+ "checksum": "a1b2c3d4e5f6...", # SHA256 of canonical fields
14
+ "repairs_applied": [
15
+ {
16
+ "repair_id": "coordinate_artifact",
17
+ "description": "OQMD coords_are_cartesian=True → False fix",
18
+ "date": "2026-07-21"
19
+ }
20
+ ],
21
+ "dedup_resolution": null, # null = unique, else group info
22
+ "tier_assignment": {
23
+ "tier": "gold",
24
+ "tier_gates": {
25
+ "raw": true,
26
+ "validated": true,
27
+ "gold": true
28
+ }
29
+ },
30
+ "version": "3.0",
31
+ "created_at": "2026-07-21T..."
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## What It Tracks
37
+
38
+ | Field | Description |
39
+ |-------|-------------|
40
+ | `source` | Original database (mp, oqmd, jarvis) |
41
+ | `source_id` | ID in the original database |
42
+ | `checksum` | SHA256 of canonical fields (source, formula, properties) |
43
+ | `repairs_applied` | List of all repairs with IDs and dates |
44
+ | `dedup_resolution` | If in a duplicate group, how it was resolved |
45
+ | `tier_assignment` | Current tier and all gate results |
46
+ | `version` | Dataset version when provenance was assigned |
47
+
48
+ ## Why Provenance Matters
49
+
50
+ 1. **Reproducibility**: Trace every entry back to its source
51
+ 2. **Auditability**: Know exactly what repairs were applied
52
+ 3. **Trust**: Evidence that data was not silently modified
53
+ 4. **Debugging**: If a model fails on an entry, you can investigate its history
54
+ 5. **Citation**: You can cite the original source entry, not just the aggregate
55
+
56
+ ## Checksum Algorithm
57
+
58
+ The checksum is computed from these canonical fields in sorted order:
59
+
60
+ - source
61
+ - source_id
62
+ - formula
63
+ - nsites
64
+ - volume
65
+ - formation_energy_per_atom
66
+ - energy_above_hull
67
+ - band_gap
68
+ - space_group
69
+
70
+ This means any change to fundamental properties invalidates the checksum,
71
+ providing an integrity check for the entry.