@aikdna/kdna-core 0.2.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/package.json +6 -4
- package/schema/Composition_Policy.schema.json +130 -0
- package/schema/KDNA_Cases.schema.json +28 -2
- package/schema/KDNA_Cluster.schema.json +103 -24
- package/schema/KDNA_Core.schema.json +191 -7
- package/schema/KDNA_Core.strict.schema.json +290 -0
- package/schema/KDNA_Evolution.schema.json +56 -3
- package/schema/KDNA_Patterns.schema.json +273 -6
- package/schema/KDNA_Patterns.strict.schema.json +342 -0
- package/schema/KDNA_Reasoning.schema.json +38 -18
- package/schema/KDNA_Scenarios.schema.json +37 -6
- package/schema/KDNA_Scenarios.strict.schema.json +101 -0
- package/schema/eval.schema.json +58 -0
- package/src/compose.js +255 -1
- package/src/index.mjs +1 -1
- package/src/lint-pure.js +191 -4
- package/src/loader.js +90 -20
- package/src/validate-pure.js +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "KDNA_Core",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"meta",
|
|
7
|
+
"axioms",
|
|
8
|
+
"ontology",
|
|
9
|
+
"frameworks",
|
|
10
|
+
"core_structure",
|
|
11
|
+
"stances"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"meta": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"version",
|
|
18
|
+
"domain",
|
|
19
|
+
"created",
|
|
20
|
+
"purpose",
|
|
21
|
+
"load_condition"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"version": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"domain": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"pattern": "^[a-z][a-z0-9_]*$"
|
|
30
|
+
},
|
|
31
|
+
"created": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"purpose": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"load_condition": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": true
|
|
42
|
+
},
|
|
43
|
+
"highest_question": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "The highest-order question this domain answers."
|
|
46
|
+
},
|
|
47
|
+
"worldview": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"description": "Default assumptions about how the world works in this domain."
|
|
53
|
+
},
|
|
54
|
+
"judgment_role": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"acts_as": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"does_not_act_as": {
|
|
61
|
+
"oneOf": [
|
|
62
|
+
{ "type": "string" },
|
|
63
|
+
{ "type": "array", "items": { "type": "string" } }
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"responsibility": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": true
|
|
71
|
+
},
|
|
72
|
+
"value_order": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"description": "Priority ordering of values in this domain."
|
|
78
|
+
},
|
|
79
|
+
"axioms": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": [
|
|
84
|
+
"id",
|
|
85
|
+
"one_sentence",
|
|
86
|
+
"full_statement",
|
|
87
|
+
"why",
|
|
88
|
+
"applies_when",
|
|
89
|
+
"does_not_apply_when",
|
|
90
|
+
"failure_risk",
|
|
91
|
+
"confidence"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"one_sentence": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"full_statement": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"why": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"confidence": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"evidence_type": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"applies_when": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"does_not_apply_when": {
|
|
122
|
+
"type": "array",
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"failure_risk": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"additionalProperties": true
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"ontology": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"required": [
|
|
139
|
+
"id",
|
|
140
|
+
"one_sentence",
|
|
141
|
+
"essence",
|
|
142
|
+
"boundary",
|
|
143
|
+
"trigger_signal"
|
|
144
|
+
],
|
|
145
|
+
"properties": {
|
|
146
|
+
"id": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"one_sentence": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"essence": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"boundary": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"trigger_signal": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"applies_when": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"does_not_apply_when": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"additionalProperties": true
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"frameworks": {
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"required": [
|
|
182
|
+
"id",
|
|
183
|
+
"name",
|
|
184
|
+
"when_to_use",
|
|
185
|
+
"steps"
|
|
186
|
+
],
|
|
187
|
+
"properties": {
|
|
188
|
+
"id": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"name": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"when_to_use": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"steps": {
|
|
198
|
+
"type": "array",
|
|
199
|
+
"items": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"applies_when": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"does_not_apply_when": {
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": {
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"additionalProperties": true
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"core_structure": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"required": [
|
|
224
|
+
"from",
|
|
225
|
+
"to",
|
|
226
|
+
"via"
|
|
227
|
+
],
|
|
228
|
+
"properties": {
|
|
229
|
+
"from": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
"to": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
"via": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
"applies_when": {
|
|
239
|
+
"type": "array",
|
|
240
|
+
"items": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"does_not_apply_when": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"additionalProperties": true
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"stances": {
|
|
255
|
+
"type": "array",
|
|
256
|
+
"items": {
|
|
257
|
+
"anyOf": [
|
|
258
|
+
{
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"type": "object",
|
|
263
|
+
"required": [
|
|
264
|
+
"stance"
|
|
265
|
+
],
|
|
266
|
+
"properties": {
|
|
267
|
+
"stance": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"applies_when": {
|
|
271
|
+
"type": "array",
|
|
272
|
+
"items": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"does_not_apply_when": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"additionalProperties": true
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"additionalProperties": true
|
|
290
|
+
}
|
|
@@ -40,8 +40,34 @@
|
|
|
40
40
|
"indicators": {
|
|
41
41
|
"type": "array",
|
|
42
42
|
"items": { "type": "string" }
|
|
43
|
+
},
|
|
44
|
+
"changed_judgments": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": { "type": "string" },
|
|
47
|
+
"description": "Judgments that changed at this stage."
|
|
48
|
+
},
|
|
49
|
+
"deprecated_axioms": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": { "type": "string" },
|
|
52
|
+
"description": "Axioms that are no longer held at this stage."
|
|
53
|
+
},
|
|
54
|
+
"new_failure_modes": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "type": "string" },
|
|
57
|
+
"description": "New failure patterns that emerge at this stage."
|
|
58
|
+
},
|
|
59
|
+
"eval_results": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": { "type": "string" },
|
|
62
|
+
"description": "Evaluation results associated with this stage."
|
|
63
|
+
},
|
|
64
|
+
"known_limitations": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": { "type": "string" },
|
|
67
|
+
"description": "Known limitations at this stage."
|
|
43
68
|
}
|
|
44
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": true
|
|
45
71
|
}
|
|
46
72
|
},
|
|
47
73
|
"evolution_layers": {
|
|
@@ -55,7 +81,8 @@
|
|
|
55
81
|
"capability": { "type": "string" },
|
|
56
82
|
"from_stage": { "type": "string" },
|
|
57
83
|
"to_stage": { "type": "string" }
|
|
58
|
-
}
|
|
84
|
+
},
|
|
85
|
+
"additionalProperties": true
|
|
59
86
|
}
|
|
60
87
|
},
|
|
61
88
|
"measurement": {
|
|
@@ -68,8 +95,34 @@
|
|
|
68
95
|
"what": { "type": "string" },
|
|
69
96
|
"how": { "type": "string" },
|
|
70
97
|
"threshold": { "type": "string" }
|
|
71
|
-
}
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": true
|
|
72
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"changed_judgments": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": { "type": "string" },
|
|
105
|
+
"description": "Domain-wide judgment changes across versions."
|
|
106
|
+
},
|
|
107
|
+
"deprecated_axioms": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": { "type": "string" },
|
|
110
|
+
"description": "Axioms deprecated across the domain's evolution."
|
|
111
|
+
},
|
|
112
|
+
"new_failure_modes": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": { "type": "string" },
|
|
115
|
+
"description": "New failure modes discovered over time."
|
|
116
|
+
},
|
|
117
|
+
"eval_results": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": { "type": "string" },
|
|
120
|
+
"description": "Evaluation results across versions."
|
|
121
|
+
},
|
|
122
|
+
"known_limitations": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": { "type": "string" },
|
|
125
|
+
"description": "Known limitations of the domain's judgment model."
|
|
73
126
|
}
|
|
74
127
|
},
|
|
75
128
|
"additionalProperties": true
|
|
@@ -42,11 +42,186 @@
|
|
|
42
42
|
"type": "object",
|
|
43
43
|
"minProperties": 1,
|
|
44
44
|
"properties": {
|
|
45
|
-
"standard_terms": {
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
"standard_terms": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": [
|
|
50
|
+
"term",
|
|
51
|
+
"definition"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"term": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"definition": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"applies_when": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"does_not_apply_when": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"additionalProperties": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"preferred_terms": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"required": [
|
|
81
|
+
"term",
|
|
82
|
+
"definition"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"term": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"definition": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"applies_when": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"does_not_apply_when": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"additionalProperties": true
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"banned_terms": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"required": [
|
|
112
|
+
"term",
|
|
113
|
+
"why",
|
|
114
|
+
"replace_with"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"term": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"why": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"replace_with": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"applies_when": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"does_not_apply_when": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"additionalProperties": true
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": true
|
|
144
|
+
},
|
|
145
|
+
"aesthetic_preferences": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"required": [
|
|
150
|
+
"prefer",
|
|
151
|
+
"avoid"
|
|
152
|
+
],
|
|
153
|
+
"properties": {
|
|
154
|
+
"prefer": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"avoid": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"signals_good": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": { "type": "string" }
|
|
163
|
+
},
|
|
164
|
+
"signals_bad": {
|
|
165
|
+
"type": "array",
|
|
166
|
+
"items": { "type": "string" }
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"additionalProperties": true
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"boundaries": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"required": [
|
|
177
|
+
"rule",
|
|
178
|
+
"why"
|
|
179
|
+
],
|
|
180
|
+
"properties": {
|
|
181
|
+
"rule": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"why": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"must_not_do": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": { "type": "string" }
|
|
190
|
+
},
|
|
191
|
+
"acceptable_exception": {
|
|
192
|
+
"type": "array",
|
|
193
|
+
"items": { "type": "string" }
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"additionalProperties": true
|
|
48
197
|
}
|
|
49
198
|
},
|
|
199
|
+
"risk_model": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"highest_risk_errors": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"acceptable_errors": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"must_block_when": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": { "type": "string" }
|
|
217
|
+
},
|
|
218
|
+
"warn_when": {
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": { "type": "string" }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"additionalProperties": true
|
|
224
|
+
},
|
|
50
225
|
"misunderstandings": {
|
|
51
226
|
"type": "array",
|
|
52
227
|
"items": {
|
|
@@ -57,15 +232,107 @@
|
|
|
57
232
|
"correct",
|
|
58
233
|
"key_distinction",
|
|
59
234
|
"why"
|
|
60
|
-
]
|
|
235
|
+
],
|
|
236
|
+
"properties": {
|
|
237
|
+
"id": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"wrong": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"correct": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
"key_distinction": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
},
|
|
249
|
+
"why": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"confidence": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
},
|
|
255
|
+
"evidence_type": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"items": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"applies_when": {
|
|
262
|
+
"type": "array",
|
|
263
|
+
"items": {
|
|
264
|
+
"type": "string"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"does_not_apply_when": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"type": "string"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"failure_risk": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"additionalProperties": true
|
|
61
278
|
}
|
|
62
279
|
},
|
|
63
280
|
"self_check": {
|
|
64
281
|
"type": "array",
|
|
65
282
|
"items": {
|
|
66
|
-
"
|
|
283
|
+
"anyOf": [
|
|
284
|
+
{
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "object",
|
|
289
|
+
"required": [
|
|
290
|
+
"question"
|
|
291
|
+
],
|
|
292
|
+
"properties": {
|
|
293
|
+
"question": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"applies_when": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"additionalProperties": true
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"counterexamples": {
|
|
309
|
+
"type": "array",
|
|
310
|
+
"items": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"required": [
|
|
313
|
+
"bad_example",
|
|
314
|
+
"why_bad"
|
|
315
|
+
],
|
|
316
|
+
"properties": {
|
|
317
|
+
"bad_example": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"why_bad": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"violated_axioms": {
|
|
324
|
+
"type": "array",
|
|
325
|
+
"items": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"better_direction": {
|
|
330
|
+
"type": "string"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"additionalProperties": true
|
|
67
334
|
}
|
|
68
335
|
}
|
|
69
336
|
},
|
|
70
337
|
"additionalProperties": true
|
|
71
|
-
}
|
|
338
|
+
}
|