PiotrSty commited on
Commit
fc33ea8
·
1 Parent(s): 48a097a

fix(ontology): complete PR 18 research graph

Browse files

Align PR #18 with the Slayer Research Ontology v0.1 without changing the
published speech records.

The update versions the filtering protocol by content digest and immutable
commit URI. A follow-up metadata commit adds the complete Object, Version,
Relation, Protocol, Run, Evidence, Claim and Actor graph, plus contract tests
for references, acyclicity, immutable payload URIs and artifact checksums.

The data Parquet and attribution sidecar are reproduced from the pinned source
and must retain their previously published SHA-256 digests.

artifacts/sejm_api_2011_2022_ontology_manifest.json CHANGED
@@ -1,41 +1,185 @@
1
  {
 
 
 
 
 
 
 
 
 
 
 
2
  "attestations": [
3
  {
4
- "fields": [
5
- "id",
6
- "text",
7
- "source",
8
- "added",
9
- "created",
10
- "token_count",
11
- "license",
12
- "author"
13
  ],
14
  "type": "schema_valid",
15
  "value": true
16
  },
17
  {
 
 
 
 
 
 
 
18
  "type": "temporal_overlap",
19
  "value": "known_and_disclosed"
20
  },
21
  {
 
 
 
 
 
 
 
22
  "type": "speaker_attribution",
23
  "value": "100_percent"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  ],
26
  "claims": [
27
  {
 
28
  "falsification_condition": "A qualifying pinned-source record is absent without a recorded drop reason.",
29
- "statement": "All retained records from the pinned source dated 2011-2022 are included after exact within-source deduplication."
 
 
 
 
 
30
  },
31
  {
 
32
  "falsification_condition": "Any contributed author field is empty.",
33
- "statement": "Every contributed document has non-empty speaker attribution."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
  ],
36
  "evidence": [
37
  {
 
38
  "observation_type": "dataset_record_counts",
 
39
  "payload": {
40
  "added": "2026-08-31",
41
  "authors_with_value": 118902,
@@ -78,42 +222,249 @@
78
  "stats_recomputed_from_parquet": true,
79
  "target_base_revision": "a9d134ac79a9fe586fc9c11cb39eb32d69dcd21f",
80
  "tokens": 135072403
81
- }
 
 
82
  },
83
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  "observation_type": "known_temporal_overlap",
 
85
  "payload": {
86
  "novelty_claimed": false,
87
- "parlamint_pl_registered": "2015-2022",
88
- "parliamentary": "1991-2019"
89
- }
 
 
90
  },
91
  {
 
92
  "observation_type": "artifact_checksums",
 
93
  "payload": {
94
  "attribution_sha256": "a1c1a309075b2fbc2a42f5313e22e93584434f4260e61d6e92d6cc488b0d9be5",
95
  "legal_evidence_sha256": "f7c246ecc98a7ec4b1f4e165c98687a8a8183bd02c7f12924180bb9bcd084224",
96
  "parquet_sha256": "606d49ab55180341bffe5270e9c88797a95ff9f8441bf2de095d36f9d7a756c1",
97
  "stats_sha256": "398dbaff87ec8f1d8702fce347db65ae8a3e4cf69a90594a6c7998cc4441c356"
98
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  }
100
  ],
101
  "object": {
102
  "id": "slayer://object/dataset-source/sejm_api_2011_2022",
103
  "kind": "dataset_source",
 
 
 
 
 
104
  "name": "sejm_api_2011_2022"
105
  },
 
106
  "protocol": {
107
- "configuration": {
108
- "end_date": "2022-12-31",
109
- "start_date": "2011-01-01",
110
- "tokenizer": "cl100k_base"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  },
112
- "entrypoint": "python src/fetch_sejm_api_2011_2022.py"
 
 
 
 
 
 
 
 
 
113
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  "run": {
115
  "actor_id": "hf:PiotrSty",
116
- "id": "sejm-api-2011-2022-20260831T094831Z",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  "inputs": [
118
  {
119
  "role": "source",
@@ -129,11 +480,18 @@
129
  "role": "dataset_source",
130
  "version_id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
131
  }
132
- ]
 
 
133
  },
134
  "schema_version": "slayer.ai/dataset-source-contribution/v1",
135
  "version": {
 
 
136
  "digest": "sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
137
- "id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
 
 
 
138
  }
139
  }
 
1
  {
2
+ "actors": [
3
+ {
4
+ "id": "hf:PiotrSty",
5
+ "identifiers": {
6
+ "github": "PiotrStyla",
7
+ "hugging_face": "PiotrSty"
8
+ },
9
+ "identity": "Piotr Styła",
10
+ "kind": "human"
11
+ }
12
+ ],
13
  "attestations": [
14
  {
15
+ "actor_id": "hf:PiotrSty",
16
+ "created_at": "2026-09-04T16:04:35.941055Z",
17
+ "id": "slayer://attestation/sejm_api_2011_2022/schema_valid@sha256:95cd4c6202e4f07165f1e3398974ffac8341f75cf37bf23aaaa7fd45e4f3c001",
18
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
19
+ "supported_by": [
20
+ "slayer://evidence/sejm_api_2011_2022/schema_validation@sha256:69b3c898e4de65cd7407b53584370154b223495d41de38ed2f7a5c7913c7d815",
21
+ "slayer://evidence/sejm_api_2011_2022/artifact_checksums@sha256:a5f31b2d2c1b26634e2b14d82451e0185f557be368e4e5208685529d79f9adfe"
 
 
22
  ],
23
  "type": "schema_valid",
24
  "value": true
25
  },
26
  {
27
+ "actor_id": "hf:PiotrSty",
28
+ "created_at": "2026-09-04T16:04:35.941055Z",
29
+ "id": "slayer://attestation/sejm_api_2011_2022/temporal_overlap@sha256:79c0740c405d058af1ce6e32d7f70c9e86f2f77e0a66a3b986d34cebc3638cb1",
30
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
31
+ "supported_by": [
32
+ "slayer://evidence/sejm_api_2011_2022/known_temporal_overlap@sha256:ef3807dcb9d1039b82b477f33bcc0621e2725ee68294db9f8bec34dd36c92291"
33
+ ],
34
  "type": "temporal_overlap",
35
  "value": "known_and_disclosed"
36
  },
37
  {
38
+ "actor_id": "hf:PiotrSty",
39
+ "created_at": "2026-09-04T16:04:35.941055Z",
40
+ "id": "slayer://attestation/sejm_api_2011_2022/speaker_attribution@sha256:0d5bcf58020da1f78d7360cd4ac509fe995db01ab391ef4e6bc7764f26c6cfda",
41
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
42
+ "supported_by": [
43
+ "slayer://evidence/sejm_api_2011_2022/speaker_attribution_coverage@sha256:ec102677904e031be11b83ee3e853ae51a479b61d1ece2cdd5fb0fa461c47ed5"
44
+ ],
45
  "type": "speaker_attribution",
46
  "value": "100_percent"
47
+ },
48
+ {
49
+ "actor_id": "hf:PiotrSty",
50
+ "created_at": "2026-09-04T16:04:35.941055Z",
51
+ "id": "slayer://attestation/sejm_api_2011_2022/legal_status@sha256:93035bc5ee9e44093750e93be303a2cdd1822bf73b1513cdf6ef4e42091821ac",
52
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
53
+ "supported_by": [
54
+ "slayer://evidence/sejm_api_2011_2022/legal_provenance_review@sha256:c55879b30382d71a9198f637c4e17bd1579189583e2b635b504be8bbd27eb47e"
55
+ ],
56
+ "type": "legal_status",
57
+ "value": "documented_open_official_materials_with_limitations"
58
+ },
59
+ {
60
+ "actor_id": "hf:PiotrSty",
61
+ "created_at": "2026-09-04T16:04:35.941055Z",
62
+ "id": "slayer://attestation/sejm_api_2011_2022/pinned_input_reproduction@sha256:7a2bcfcbdccef1dc7f55573bca7f300813ad8459efc79050544c872956a97cfd",
63
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
64
+ "supported_by": [
65
+ "slayer://evidence/sejm_api_2011_2022/pinned_input_reproduction@sha256:72f3034fdf811a81de377d4e9955ed241d3e8a602f6aa983c100f11e02724499"
66
+ ],
67
+ "type": "pinned_input_reproduction",
68
+ "value": true
69
+ }
70
+ ],
71
+ "claim_evidence": [
72
+ {
73
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:abe8a13485927ccc1d793ba0ce8de79780bd4f673676f4271b01fa8405a2e904",
74
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/dataset_record_counts@sha256:6581074495247b30a7266a4bd50defd643b6d2458a6c371773e4aa080c2d13b2",
75
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
76
+ "relation": "SUPPORTS"
77
+ },
78
+ {
79
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:a964d069a2a4fdd5dfa439c55e182328b4c945c3363aa6f104d048ed7af57160",
80
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/speaker_attribution_coverage@sha256:ec102677904e031be11b83ee3e853ae51a479b61d1ece2cdd5fb0fa461c47ed5",
81
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
82
+ "relation": "SUPPORTS"
83
+ },
84
+ {
85
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:9ea2af3b7ab5888aa692256ad0a7e109b32cbc25595a56410b455fbcce6883fa",
86
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/known_temporal_overlap@sha256:ef3807dcb9d1039b82b477f33bcc0621e2725ee68294db9f8bec34dd36c92291",
87
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
88
+ "relation": "SUPPORTS"
89
+ },
90
+ {
91
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:0573cf28aed2e22303ac4ffe52c40870e4d33e7b96cea55b62ab6e2afaa91a7d",
92
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/legal_provenance_review@sha256:c55879b30382d71a9198f637c4e17bd1579189583e2b635b504be8bbd27eb47e",
93
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
94
+ "relation": "SUPPORTS"
95
+ },
96
+ {
97
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:e942df4c18f3b8f9dc5384ddcddf0e522d2174e2f064f3c8bc96054a12c02f85",
98
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/schema_validation@sha256:69b3c898e4de65cd7407b53584370154b223495d41de38ed2f7a5c7913c7d815",
99
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
100
+ "relation": "SUPPORTS"
101
+ },
102
+ {
103
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:e942df4c18f3b8f9dc5384ddcddf0e522d2174e2f064f3c8bc96054a12c02f85",
104
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/artifact_checksums@sha256:a5f31b2d2c1b26634e2b14d82451e0185f557be368e4e5208685529d79f9adfe",
105
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
106
+ "relation": "SUPPORTS"
107
+ },
108
+ {
109
+ "claim_id": "slayer://claim/sejm_api_2011_2022@sha256:ae8039527a47e414d6c6218ac17fabf336c5221d110d510b2ba6c9e0edbb0426",
110
+ "evidence_id": "slayer://evidence/sejm_api_2011_2022/pinned_input_reproduction@sha256:72f3034fdf811a81de377d4e9955ed241d3e8a602f6aa983c100f11e02724499",
111
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
112
+ "relation": "SUPPORTS"
113
  }
114
  ],
115
  "claims": [
116
  {
117
+ "asserted_by": "hf:PiotrSty",
118
  "falsification_condition": "A qualifying pinned-source record is absent without a recorded drop reason.",
119
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:abe8a13485927ccc1d793ba0ce8de79780bd4f673676f4271b01fa8405a2e904",
120
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
121
+ "statement": "All retained records from the pinned source dated 2011-2022 are included after exact within-source deduplication.",
122
+ "supported_by": [
123
+ "slayer://evidence/sejm_api_2011_2022/dataset_record_counts@sha256:6581074495247b30a7266a4bd50defd643b6d2458a6c371773e4aa080c2d13b2"
124
+ ]
125
  },
126
  {
127
+ "asserted_by": "hf:PiotrSty",
128
  "falsification_condition": "Any contributed author field is empty.",
129
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:a964d069a2a4fdd5dfa439c55e182328b4c945c3363aa6f104d048ed7af57160",
130
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
131
+ "statement": "Every contributed document has non-empty speaker attribution.",
132
+ "supported_by": [
133
+ "slayer://evidence/sejm_api_2011_2022/speaker_attribution_coverage@sha256:ec102677904e031be11b83ee3e853ae51a479b61d1ece2cdd5fb0fa461c47ed5"
134
+ ]
135
+ },
136
+ {
137
+ "asserted_by": "hf:PiotrSty",
138
+ "falsification_condition": "The cited target-source ranges do not overlap 2011-2022.",
139
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:9ea2af3b7ab5888aa692256ad0a7e109b32cbc25595a56410b455fbcce6883fa",
140
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
141
+ "statement": "The contribution does not establish temporal novelty relative to every target source because registered ranges overlap.",
142
+ "supported_by": [
143
+ "slayer://evidence/sejm_api_2011_2022/known_temporal_overlap@sha256:ef3807dcb9d1039b82b477f33bcc0621e2725ee68294db9f8bec34dd36c92291"
144
+ ]
145
+ },
146
+ {
147
+ "asserted_by": "hf:PiotrSty",
148
+ "falsification_condition": "The records are not official materials or the cited legal basis and provider conditions contradict the documented reuse status.",
149
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:0573cf28aed2e22303ac4ffe52c40870e4d33e7b96cea55b62ab6e2afaa91a7d",
150
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
151
+ "statement": "The contributed records are official Sejm materials documented for statutory reuse, subject to retained privacy and third-party limitations.",
152
+ "supported_by": [
153
+ "slayer://evidence/sejm_api_2011_2022/legal_provenance_review@sha256:c55879b30382d71a9198f637c4e17bd1579189583e2b635b504be8bbd27eb47e"
154
+ ]
155
+ },
156
+ {
157
+ "asserted_by": "hf:PiotrSty",
158
+ "falsification_condition": "A contract field is missing, a row violates the schema, or a recorded artifact checksum differs.",
159
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:e942df4c18f3b8f9dc5384ddcddf0e522d2174e2f064f3c8bc96054a12c02f85",
160
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
161
+ "statement": "The generated artifact set conforms to the DynaWord source schema and recorded checksums.",
162
+ "supported_by": [
163
+ "slayer://evidence/sejm_api_2011_2022/schema_validation@sha256:69b3c898e4de65cd7407b53584370154b223495d41de38ed2f7a5c7913c7d815",
164
+ "slayer://evidence/sejm_api_2011_2022/artifact_checksums@sha256:a5f31b2d2c1b26634e2b14d82451e0185f557be368e4e5208685529d79f9adfe"
165
+ ]
166
+ },
167
+ {
168
+ "asserted_by": "hf:PiotrSty",
169
+ "falsification_condition": "A rebuilt Parquet or attribution-sidecar digest differs from the expected digest.",
170
+ "id": "slayer://claim/sejm_api_2011_2022@sha256:ae8039527a47e414d6c6218ac17fabf336c5221d110d510b2ba6c9e0edbb0426",
171
+ "scope": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
172
+ "statement": "Rebuilding from pinned inputs reproduced the expected Parquet and attribution-sidecar digests.",
173
+ "supported_by": [
174
+ "slayer://evidence/sejm_api_2011_2022/pinned_input_reproduction@sha256:72f3034fdf811a81de377d4e9955ed241d3e8a602f6aa983c100f11e02724499"
175
+ ]
176
  }
177
  ],
178
  "evidence": [
179
  {
180
+ "id": "slayer://evidence/sejm_api_2011_2022/dataset_record_counts@sha256:6581074495247b30a7266a4bd50defd643b6d2458a6c371773e4aa080c2d13b2",
181
  "observation_type": "dataset_record_counts",
182
+ "observed_at": "2026-09-04T16:04:35.941055Z",
183
  "payload": {
184
  "added": "2026-08-31",
185
  "authors_with_value": 118902,
 
222
  "stats_recomputed_from_parquet": true,
223
  "target_base_revision": "a9d134ac79a9fe586fc9c11cb39eb32d69dcd21f",
224
  "tokens": 135072403
225
+ },
226
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
227
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
228
  },
229
  {
230
+ "id": "slayer://evidence/sejm_api_2011_2022/speaker_attribution_coverage@sha256:ec102677904e031be11b83ee3e853ae51a479b61d1ece2cdd5fb0fa461c47ed5",
231
+ "observation_type": "speaker_attribution_coverage",
232
+ "observed_at": "2026-09-04T16:04:35.941055Z",
233
+ "payload": {
234
+ "coverage": 1.0,
235
+ "non_empty_authors": 118902,
236
+ "records": 118902
237
+ },
238
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
239
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
240
+ },
241
+ {
242
+ "id": "slayer://evidence/sejm_api_2011_2022/known_temporal_overlap@sha256:ef3807dcb9d1039b82b477f33bcc0621e2725ee68294db9f8bec34dd36c92291",
243
  "observation_type": "known_temporal_overlap",
244
+ "observed_at": "2026-09-04T16:04:35.941055Z",
245
  "payload": {
246
  "novelty_claimed": false,
247
+ "parlamint_pl_registered_range": "2015-2022",
248
+ "parliamentary_registered_range": "1991-2019"
249
+ },
250
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
251
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
252
  },
253
  {
254
+ "id": "slayer://evidence/sejm_api_2011_2022/artifact_checksums@sha256:a5f31b2d2c1b26634e2b14d82451e0185f557be368e4e5208685529d79f9adfe",
255
  "observation_type": "artifact_checksums",
256
+ "observed_at": "2026-09-04T16:04:35.941055Z",
257
  "payload": {
258
  "attribution_sha256": "a1c1a309075b2fbc2a42f5313e22e93584434f4260e61d6e92d6cc488b0d9be5",
259
  "legal_evidence_sha256": "f7c246ecc98a7ec4b1f4e165c98687a8a8183bd02c7f12924180bb9bcd084224",
260
  "parquet_sha256": "606d49ab55180341bffe5270e9c88797a95ff9f8441bf2de095d36f9d7a756c1",
261
  "stats_sha256": "398dbaff87ec8f1d8702fce347db65ae8a3e4cf69a90594a6c7998cc4441c356"
262
+ },
263
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
264
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
265
+ },
266
+ {
267
+ "id": "slayer://evidence/sejm_api_2011_2022/legal_provenance_review@sha256:c55879b30382d71a9198f637c4e17bd1579189583e2b635b504be8bbd27eb47e",
268
+ "observation_type": "legal_provenance_review",
269
+ "observed_at": "2026-09-04T16:04:35.941055Z",
270
+ "payload": {
271
+ "artifact": "data/sejm_api_2011_2022/sejm_api_2011_2022.license-evidence.json",
272
+ "limitations_retained": true,
273
+ "sha256": "f7c246ecc98a7ec4b1f4e165c98687a8a8183bd02c7f12924180bb9bcd084224",
274
+ "status": "reviewed-open-official-materials"
275
+ },
276
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
277
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
278
+ },
279
+ {
280
+ "id": "slayer://evidence/sejm_api_2011_2022/schema_validation@sha256:69b3c898e4de65cd7407b53584370154b223495d41de38ed2f7a5c7913c7d815",
281
+ "observation_type": "schema_validation",
282
+ "observed_at": "2026-09-04T16:04:35.941055Z",
283
+ "payload": {
284
+ "records": 118902,
285
+ "schema": [
286
+ "id",
287
+ "text",
288
+ "source",
289
+ "added",
290
+ "created",
291
+ "token_count",
292
+ "license",
293
+ "author"
294
+ ],
295
+ "valid": true
296
+ },
297
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
298
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
299
+ },
300
+ {
301
+ "id": "slayer://evidence/sejm_api_2011_2022/pinned_input_reproduction@sha256:72f3034fdf811a81de377d4e9955ed241d3e8a602f6aa983c100f11e02724499",
302
+ "observation_type": "pinned_input_reproduction",
303
+ "observed_at": "2026-09-04T16:04:35.941055Z",
304
+ "payload": {
305
+ "actual": {
306
+ "attribution_sha256": "a1c1a309075b2fbc2a42f5313e22e93584434f4260e61d6e92d6cc488b0d9be5",
307
+ "parquet_sha256": "606d49ab55180341bffe5270e9c88797a95ff9f8441bf2de095d36f9d7a756c1"
308
+ },
309
+ "expected": {
310
+ "attribution_sha256": "a1c1a309075b2fbc2a42f5313e22e93584434f4260e61d6e92d6cc488b0d9be5",
311
+ "parquet_sha256": "606d49ab55180341bffe5270e9c88797a95ff9f8441bf2de095d36f9d7a756c1"
312
+ },
313
+ "matches": true
314
+ },
315
+ "run_id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
316
+ "subject_version": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
317
  }
318
  ],
319
  "object": {
320
  "id": "slayer://object/dataset-source/sejm_api_2011_2022",
321
  "kind": "dataset_source",
322
+ "metadata": {
323
+ "domain": "political/spoken",
324
+ "language": "pl",
325
+ "provider": "Kancelaria Sejmu RP"
326
+ },
327
  "name": "sejm_api_2011_2022"
328
  },
329
+ "ontology_version": "slayer.ai/research-ontology/v0.1",
330
  "protocol": {
331
+ "id": "slayer://object/protocol/sejm_api_2011_2022-filter",
332
+ "kind": "dataset_filtering",
333
+ "name": "sejm_api_2011_2022-filter",
334
+ "specification": {
335
+ "configuration": {
336
+ "date_range": [
337
+ "2011-01-01",
338
+ "2022-12-31"
339
+ ],
340
+ "deduplication": {
341
+ "algorithm": "sha1",
342
+ "field": "text",
343
+ "scope": "within_source"
344
+ },
345
+ "id_generation": {
346
+ "algorithm": "sha256",
347
+ "fields": [
348
+ "date",
349
+ "term",
350
+ "speaker",
351
+ "text"
352
+ ]
353
+ },
354
+ "minimum_text_characters": 200,
355
+ "parquet": {
356
+ "compression": "zstd",
357
+ "write_batch_size": 1024
358
+ },
359
+ "source_splits": [
360
+ "train",
361
+ "validation"
362
+ ],
363
+ "speaker_required": true,
364
+ "tokenizer": "cl100k_base"
365
+ },
366
+ "entrypoint": "python src/fetch_sejm_api_2011_2022.py",
367
+ "outputs": [
368
+ "DynaWord Parquet",
369
+ "attribution sidecar",
370
+ "stats",
371
+ "legal evidence",
372
+ "ontology manifest"
373
+ ],
374
+ "required_inputs": [
375
+ "pinned source Parquet splits",
376
+ "pinned target sources.py"
377
+ ],
378
+ "source_path": "src/fetch_sejm_api_2011_2022.py",
379
+ "summary": "Deterministic date filtering, exact-text deduplication, attribution preservation and DynaWord projection."
380
  },
381
+ "version": {
382
+ "code_sha256": "f745bb422abd2c67f393ad021eb76e6df2468ab940ffc14963bf8f5a974907b1",
383
+ "created_at": "2026-09-04T16:04:35.941055Z",
384
+ "created_by": "hf:PiotrSty",
385
+ "digest": "sha256:ae6ccef9de4e9cbbaf8bafbc9c0f83dda738a8bc01177f701e5e404d675dc5b4",
386
+ "id": "slayer://version/protocol/sejm_api_2011_2022-filter@sha256:ae6ccef9de4e9cbbaf8bafbc9c0f83dda738a8bc01177f701e5e404d675dc5b4",
387
+ "object_id": "slayer://object/protocol/sejm_api_2011_2022-filter",
388
+ "payload_uri": "hf://datasets/SlayerLab/polish-dynaword@b5218d8bd4f684982c8e7c03c97510dc2dc5579a/src/fetch_sejm_api_2011_2022.py",
389
+ "schema_version": "slayer.ai/protocol/v1"
390
+ }
391
  },
392
+ "relations": [
393
+ {
394
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
395
+ "predicate": "DERIVED_FROM",
396
+ "source_version_id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
397
+ "target_version_id": "hf://datasets/PiotrSty/sejm-speeches-corpus@124557799608ce4212cf22fa90ca7904618de1b6"
398
+ },
399
+ {
400
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
401
+ "predicate": "COMPATIBLE_WITH",
402
+ "source_version_id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
403
+ "target_version_id": "hf://datasets/SlayerLab/polish-dynaword@a9d134ac79a9fe586fc9c11cb39eb32d69dcd21f"
404
+ },
405
+ {
406
+ "introduced_by_run": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
407
+ "predicate": "FILTERED_BY",
408
+ "source_version_id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
409
+ "target_version_id": "slayer://version/protocol/sejm_api_2011_2022-filter@sha256:ae6ccef9de4e9cbbaf8bafbc9c0f83dda738a8bc01177f701e5e404d675dc5b4"
410
+ }
411
+ ],
412
  "run": {
413
  "actor_id": "hf:PiotrSty",
414
+ "config": {
415
+ "date_range": [
416
+ "2011-01-01",
417
+ "2022-12-31"
418
+ ],
419
+ "deduplication": {
420
+ "algorithm": "sha1",
421
+ "field": "text",
422
+ "scope": "within_source"
423
+ },
424
+ "id_generation": {
425
+ "algorithm": "sha256",
426
+ "fields": [
427
+ "date",
428
+ "term",
429
+ "speaker",
430
+ "text"
431
+ ]
432
+ },
433
+ "minimum_text_characters": 200,
434
+ "parquet": {
435
+ "compression": "zstd",
436
+ "write_batch_size": 1024
437
+ },
438
+ "source_splits": [
439
+ "train",
440
+ "validation"
441
+ ],
442
+ "speaker_required": true,
443
+ "tokenizer": "cl100k_base"
444
+ },
445
+ "environment": {
446
+ "container_image": null,
447
+ "determinism": {
448
+ "input_order": [
449
+ "train",
450
+ "validation"
451
+ ],
452
+ "sampling": "none",
453
+ "seed": null
454
+ },
455
+ "environment_limitation": "No container image was used; material runtime and package versions are recorded.",
456
+ "machine": "x86_64",
457
+ "packages": {
458
+ "pyarrow": "24.0.0",
459
+ "tiktoken": "0.14.0"
460
+ },
461
+ "platform": "Linux-7.0.0-15-generic-x86_64-with-glibc2.43",
462
+ "python": "3.14.4 (main, Jun 18 2026, 14:25:02) [GCC 15.2.0]",
463
+ "python_executable": "/opt/sejm-dashboard/venv/bin/python"
464
+ },
465
+ "finished_at": "2026-09-04T16:04:35.941055Z",
466
+ "git_commit": "b5218d8bd4f684982c8e7c03c97510dc2dc5579a",
467
+ "id": "slayer://run/dataset-filtering/sejm-api-2011-2022-reproduction-20260904",
468
  "inputs": [
469
  {
470
  "role": "source",
 
480
  "role": "dataset_source",
481
  "version_id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e"
482
  }
483
+ ],
484
+ "protocol_version_id": "slayer://version/protocol/sejm_api_2011_2022-filter@sha256:ae6ccef9de4e9cbbaf8bafbc9c0f83dda738a8bc01177f701e5e404d675dc5b4",
485
+ "started_at": "2026-09-04T16:02:37.261997Z"
486
  },
487
  "schema_version": "slayer.ai/dataset-source-contribution/v1",
488
  "version": {
489
+ "created_at": "2026-08-31T09:59:00Z",
490
+ "created_by": "hf:PiotrSty",
491
  "digest": "sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
492
+ "id": "slayer://version/dataset-source/sejm_api_2011_2022@sha256:3139512f6a48178efed396052a95b1194d6a09f1ee23795ea52562b26dc9b39e",
493
+ "object_id": "slayer://object/dataset-source/sejm_api_2011_2022",
494
+ "payload_uri": "hf://datasets/SlayerLab/polish-dynaword@b1162b0d41489c77f4ab34b4f5a18fc4daaadd82/data/sejm_api_2011_2022/sejm_api_2011_2022.parquet",
495
+ "schema_version": "slayer.ai/dataset-source/v1"
496
  }
497
  }
src/test_sejm_api_2011_2022_contract.py CHANGED
@@ -1,13 +1,24 @@
1
  """Contract checks for the sejm_api_2011_2022 contribution."""
2
 
 
3
  import json
4
  import pathlib
 
5
 
6
  import pyarrow.parquet as pq
7
 
8
 
9
  ROOT = pathlib.Path(__file__).resolve().parents[1]
10
  DATA = ROOT / "data" / "sejm_api_2011_2022"
 
 
 
 
 
 
 
 
 
11
 
12
 
13
  def test_artifacts_and_schema():
@@ -30,3 +41,98 @@ def test_attribution_count_and_legal_evidence():
30
  legal = json.loads((DATA / "sejm_api_2011_2022.license-evidence.json").read_text(encoding="utf-8"))
31
  assert legal["status"] == "reviewed-open-official-materials"
32
  assert legal["pinned_source"].endswith(stats["source_revision"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  """Contract checks for the sejm_api_2011_2022 contribution."""
2
 
3
+ import hashlib
4
  import json
5
  import pathlib
6
+ import re
7
 
8
  import pyarrow.parquet as pq
9
 
10
 
11
  ROOT = pathlib.Path(__file__).resolve().parents[1]
12
  DATA = ROOT / "data" / "sejm_api_2011_2022"
13
+ MANIFEST = ROOT / "artifacts" / "sejm_api_2011_2022_ontology_manifest.json"
14
+
15
+
16
+ def sha256_file(path):
17
+ digest = hashlib.sha256()
18
+ with path.open("rb") as stream:
19
+ for chunk in iter(lambda: stream.read(1024 * 1024), b""):
20
+ digest.update(chunk)
21
+ return digest.hexdigest()
22
 
23
 
24
  def test_artifacts_and_schema():
 
41
  legal = json.loads((DATA / "sejm_api_2011_2022.license-evidence.json").read_text(encoding="utf-8"))
42
  assert legal["status"] == "reviewed-open-official-materials"
43
  assert legal["pinned_source"].endswith(stats["source_revision"])
44
+
45
+
46
+ def test_ontology_kernel_and_references():
47
+ manifest = json.loads(MANIFEST.read_text(encoding="utf-8"))
48
+ required = {
49
+ "object", "version", "protocol", "run", "relations", "evidence",
50
+ "claims", "claim_evidence", "actors", "attestations",
51
+ }
52
+ assert required <= set(manifest)
53
+ assert manifest["ontology_version"] == "slayer.ai/research-ontology/v0.1"
54
+
55
+ actor_ids = {item["id"] for item in manifest["actors"]}
56
+ assert manifest["run"]["actor_id"] in actor_ids
57
+ assert manifest["version"]["object_id"] == manifest["object"]["id"]
58
+ assert manifest["version"]["created_by"] in actor_ids
59
+ assert re.fullmatch(r"sha256:[0-9a-f]{64}", manifest["version"]["digest"])
60
+ assert re.search(r"@[0-9a-f]{40}/", manifest["version"]["payload_uri"])
61
+
62
+ protocol = manifest["protocol"]
63
+ protocol_version = protocol["version"]
64
+ assert protocol_version["object_id"] == protocol["id"]
65
+ assert manifest["run"]["protocol_version_id"] == protocol_version["id"]
66
+ assert re.fullmatch(r"sha256:[0-9a-f]{64}", protocol_version["digest"])
67
+ assert re.search(r"@[0-9a-f]{40}/", protocol_version["payload_uri"])
68
+ script = ROOT / protocol["specification"]["source_path"]
69
+ assert sha256_file(script) == protocol_version["code_sha256"]
70
+
71
+ run = manifest["run"]
72
+ assert run["started_at"] <= run["finished_at"]
73
+ assert run["git_commit"] in protocol_version["payload_uri"]
74
+ assert {"python", "platform", "machine", "packages", "determinism"} <= set(run["environment"])
75
+
76
+ evidence_ids = {item["id"] for item in manifest["evidence"]}
77
+ assert len(evidence_ids) == len(manifest["evidence"])
78
+ for item in manifest["evidence"]:
79
+ assert item["run_id"] == run["id"]
80
+ assert item["subject_version"] == manifest["version"]["id"]
81
+ assert re.search(r"@sha256:[0-9a-f]{64}$", item["id"])
82
+
83
+ claim_ids = {item["id"] for item in manifest["claims"]}
84
+ assert len(claim_ids) == len(manifest["claims"])
85
+ for item in manifest["claims"]:
86
+ assert item["scope"] == manifest["version"]["id"]
87
+ assert item["asserted_by"] in actor_ids
88
+ assert item["supported_by"]
89
+ assert set(item["supported_by"]) <= evidence_ids
90
+ assert item["falsification_condition"]
91
+
92
+ for link in manifest["claim_evidence"]:
93
+ assert link["claim_id"] in claim_ids
94
+ assert link["evidence_id"] in evidence_ids
95
+ assert link["relation"] in {"SUPPORTS", "REFUTES", "QUALIFIES"}
96
+
97
+ edges = {}
98
+ for relation in manifest["relations"]:
99
+ source = relation["source_version_id"]
100
+ target = relation["target_version_id"]
101
+ assert source != target
102
+ assert relation["introduced_by_run"] == run["id"]
103
+ if target.startswith("slayer://version/"):
104
+ edges.setdefault(source, set()).add(target)
105
+
106
+ visiting, visited = set(), set()
107
+ def visit(node):
108
+ assert node not in visiting, "version lineage must be acyclic"
109
+ if node in visited:
110
+ return
111
+ visiting.add(node)
112
+ for target in edges.get(node, ()):
113
+ visit(target)
114
+ visiting.remove(node)
115
+ visited.add(node)
116
+ for node in edges:
117
+ visit(node)
118
+
119
+ for attestation in manifest["attestations"]:
120
+ assert attestation["actor_id"] in actor_ids
121
+ assert attestation["subject_version"] == manifest["version"]["id"]
122
+ assert attestation["supported_by"]
123
+ assert set(attestation["supported_by"]) <= evidence_ids
124
+
125
+
126
+ def test_manifest_artifact_checksums():
127
+ manifest = json.loads(MANIFEST.read_text(encoding="utf-8"))
128
+ checksums = next(
129
+ item["payload"] for item in manifest["evidence"]
130
+ if item["observation_type"] == "artifact_checksums"
131
+ )
132
+ paths = {
133
+ "parquet_sha256": DATA / "sejm_api_2011_2022.parquet",
134
+ "attribution_sha256": DATA / "sejm_api_2011_2022.attribution.jsonl",
135
+ "stats_sha256": DATA / "sejm_api_2011_2022.stats.json",
136
+ "legal_evidence_sha256": DATA / "sejm_api_2011_2022.license-evidence.json",
137
+ }
138
+ assert {name: sha256_file(path) for name, path in paths.items()} == checksums