Skip to content

Commit e596be5

Browse files
committed
research-step: add compiled output schemas, flows.json, high-level flow diagram, and compiler for review
1 parent 1791504 commit e596be5

30 files changed

Lines changed: 12433 additions & 0 deletions

scripts/compile-schemas.py

Lines changed: 807 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"$comment": "generated by scripts/compile-schemas.py from assets/schemas.yaml; do not edit",
3+
"$defs": {
4+
"adjudication": {
5+
"additionalProperties": true,
6+
"properties": {
7+
"data_used": {
8+
"type": "string"
9+
},
10+
"effect_size_observed": {
11+
"type": "string"
12+
},
13+
"evidence": {
14+
"type": "string"
15+
},
16+
"independence_axes": {
17+
"items": {
18+
"enum": [
19+
"region",
20+
"instrument",
21+
"method",
22+
"construct",
23+
"temporal",
24+
"population"
25+
]
26+
},
27+
"type": "array"
28+
},
29+
"outcome": {
30+
"enum": [
31+
"held",
32+
"partial",
33+
"failed",
34+
"underpowered",
35+
"n/a"
36+
]
37+
},
38+
"prespecified_check": {
39+
"type": "string"
40+
},
41+
"subject_id": {
42+
"type": "string"
43+
},
44+
"subject_kind": {
45+
"enum": [
46+
"empirical_law",
47+
"theory",
48+
"hypothesis"
49+
]
50+
},
51+
"testability": {
52+
"enum": [
53+
"tested",
54+
"proxy_only",
55+
"untestable"
56+
]
57+
}
58+
},
59+
"required": [
60+
"subject_kind",
61+
"subject_id",
62+
"outcome",
63+
"testability",
64+
"effect_size_observed",
65+
"prespecified_check",
66+
"independence_axes",
67+
"data_used",
68+
"evidence"
69+
],
70+
"type": "object"
71+
},
72+
"artifact": {
73+
"additionalProperties": true,
74+
"properties": {
75+
"artifactId": {
76+
"type": "string"
77+
},
78+
"description": {
79+
"type": "string"
80+
},
81+
"extensions": {
82+
"items": {
83+
"type": "string"
84+
},
85+
"type": "array"
86+
},
87+
"metadata": {
88+
"type": "object"
89+
},
90+
"name": {
91+
"type": "string"
92+
},
93+
"parts": {
94+
"items": {
95+
"$ref": "#/$defs/part"
96+
},
97+
"type": "array"
98+
}
99+
},
100+
"required": [
101+
"artifactId",
102+
"name",
103+
"description",
104+
"parts"
105+
],
106+
"type": "object"
107+
},
108+
"part": {
109+
"additionalProperties": true,
110+
"properties": {
111+
"kind": {
112+
"type": "string"
113+
},
114+
"metadata": {
115+
"type": "object"
116+
}
117+
},
118+
"required": [
119+
"kind"
120+
],
121+
"type": "object"
122+
}
123+
},
124+
"$id": "asta-research-step/adjudicate.schema.json",
125+
"$schema": "https://json-schema.org/draft/2020-12/schema",
126+
"additionalProperties": false,
127+
"properties": {
128+
"adjudication": {
129+
"$ref": "#/$defs/adjudication"
130+
},
131+
"artifacts": {
132+
"items": {
133+
"$ref": "#/$defs/artifact"
134+
},
135+
"type": "array"
136+
}
137+
},
138+
"required": [
139+
"adjudication",
140+
"artifacts"
141+
],
142+
"title": "adjudicate",
143+
"type": "object"
144+
}
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"$comment": "generated by scripts/compile-schemas.py from assets/schemas.yaml; do not edit",
3+
"$defs": {
4+
"analysis": {
5+
"additionalProperties": true,
6+
"properties": {
7+
"assumptions": {
8+
"type": "string"
9+
},
10+
"code": {
11+
"type": "string"
12+
},
13+
"final_answer": {
14+
"type": "string"
15+
}
16+
},
17+
"required": [
18+
"final_answer",
19+
"assumptions",
20+
"code"
21+
],
22+
"type": "object"
23+
},
24+
"artifact": {
25+
"additionalProperties": true,
26+
"properties": {
27+
"artifactId": {
28+
"type": "string"
29+
},
30+
"description": {
31+
"type": "string"
32+
},
33+
"extensions": {
34+
"items": {
35+
"type": "string"
36+
},
37+
"type": "array"
38+
},
39+
"metadata": {
40+
"type": "object"
41+
},
42+
"name": {
43+
"type": "string"
44+
},
45+
"parts": {
46+
"items": {
47+
"$ref": "#/$defs/part"
48+
},
49+
"type": "array"
50+
}
51+
},
52+
"required": [
53+
"artifactId",
54+
"name",
55+
"description",
56+
"parts"
57+
],
58+
"type": "object"
59+
},
60+
"figure": {
61+
"additionalProperties": true,
62+
"properties": {
63+
"caption": {
64+
"type": "string"
65+
},
66+
"image": {
67+
"type": "string"
68+
}
69+
},
70+
"required": [
71+
"caption",
72+
"image"
73+
],
74+
"type": "object"
75+
},
76+
"part": {
77+
"additionalProperties": true,
78+
"properties": {
79+
"kind": {
80+
"type": "string"
81+
},
82+
"metadata": {
83+
"type": "object"
84+
}
85+
},
86+
"required": [
87+
"kind"
88+
],
89+
"type": "object"
90+
}
91+
},
92+
"$id": "asta-research-step/analysis.schema.json",
93+
"$schema": "https://json-schema.org/draft/2020-12/schema",
94+
"additionalProperties": false,
95+
"properties": {
96+
"analysis": {
97+
"$ref": "#/$defs/analysis"
98+
},
99+
"artifacts": {
100+
"items": {
101+
"$ref": "#/$defs/artifact"
102+
},
103+
"type": "array"
104+
},
105+
"figures": {
106+
"items": {
107+
"$ref": "#/$defs/figure"
108+
},
109+
"type": "array"
110+
}
111+
},
112+
"required": [
113+
"analysis",
114+
"figures",
115+
"artifacts"
116+
],
117+
"title": "analysis",
118+
"type": "object"
119+
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"$comment": "generated by scripts/compile-schemas.py from assets/schemas.yaml; do not edit",
3+
"$defs": {
4+
"artifact": {
5+
"additionalProperties": true,
6+
"properties": {
7+
"artifactId": {
8+
"type": "string"
9+
},
10+
"description": {
11+
"type": "string"
12+
},
13+
"extensions": {
14+
"items": {
15+
"type": "string"
16+
},
17+
"type": "array"
18+
},
19+
"metadata": {
20+
"type": "object"
21+
},
22+
"name": {
23+
"type": "string"
24+
},
25+
"parts": {
26+
"items": {
27+
"$ref": "#/$defs/part"
28+
},
29+
"type": "array"
30+
}
31+
},
32+
"required": [
33+
"artifactId",
34+
"name",
35+
"description",
36+
"parts"
37+
],
38+
"type": "object"
39+
},
40+
"audit_report": {
41+
"additionalProperties": true,
42+
"properties": {
43+
"artifacts_found": {
44+
"items": {
45+
"type": "string"
46+
},
47+
"type": "array"
48+
},
49+
"challenges": {
50+
"items": {
51+
"additionalProperties": true,
52+
"properties": {
53+
"check": {
54+
"type": "string"
55+
},
56+
"concern": {
57+
"type": "string"
58+
},
59+
"outcome": {
60+
"type": "string"
61+
}
62+
},
63+
"required": [
64+
"concern",
65+
"check",
66+
"outcome"
67+
],
68+
"type": "object"
69+
},
70+
"type": "array"
71+
},
72+
"recommended_adjustment": {
73+
"type": "string"
74+
},
75+
"subject_id": {
76+
"type": "string"
77+
},
78+
"verdict_survives": {
79+
"type": "boolean"
80+
}
81+
},
82+
"required": [
83+
"subject_id",
84+
"challenges",
85+
"artifacts_found",
86+
"verdict_survives",
87+
"recommended_adjustment"
88+
],
89+
"type": "object"
90+
},
91+
"part": {
92+
"additionalProperties": true,
93+
"properties": {
94+
"kind": {
95+
"type": "string"
96+
},
97+
"metadata": {
98+
"type": "object"
99+
}
100+
},
101+
"required": [
102+
"kind"
103+
],
104+
"type": "object"
105+
}
106+
},
107+
"$id": "asta-research-step/audit.schema.json",
108+
"$schema": "https://json-schema.org/draft/2020-12/schema",
109+
"additionalProperties": false,
110+
"properties": {
111+
"artifacts": {
112+
"items": {
113+
"$ref": "#/$defs/artifact"
114+
},
115+
"type": "array"
116+
},
117+
"audit_report": {
118+
"$ref": "#/$defs/audit_report"
119+
}
120+
},
121+
"required": [
122+
"audit_report",
123+
"artifacts"
124+
],
125+
"title": "audit",
126+
"type": "object"
127+
}

0 commit comments

Comments
 (0)