-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathknowledge-unit.schema.json
More file actions
256 lines (256 loc) · 7.25 KB
/
knowledge-unit.schema.json
File metadata and controls
256 lines (256 loc) · 7.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://veritasacta.com/schemas/knowledge-unit-v1.json",
"title": "Knowledge Unit",
"description": "A verified knowledge artifact produced through structured multi-model deliberation, as defined in draft-farley-acta-knowledge-units-00 (IETF Internet-Draft).",
"type": "object",
"required": [
"id",
"version",
"canonical_question",
"consensus_level",
"agreed",
"models_used",
"process_template",
"status",
"fresh_until",
"receipt_sig",
"receipt_kid",
"receipt_hash"
],
"properties": {
"id": {
"type": "string",
"pattern": "^ku-[a-z0-9]{12}$",
"description": "Unique identifier. Format: ku- followed by 12 alphanumeric characters."
},
"version": {
"type": "integer",
"const": 1,
"description": "Schema version number. Current version is 1."
},
"canonical_question": {
"type": "string",
"minLength": 1,
"description": "The definitive question this KU answers."
},
"domain": {
"type": "string",
"enum": [
"technology",
"science",
"health",
"policy",
"economics",
"agent_security",
"agent_governance",
"research",
"engineering"
],
"description": "Topic classification."
},
"tags": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9-]+$"
},
"description": "Additional classification labels for cross-domain discovery."
},
"consensus_level": {
"type": "string",
"enum": ["unanimous", "strong", "split", "divergent"],
"description": "Structural classification of agreement among participating models."
},
"agreed": {
"type": "array",
"items": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"required": ["claim"],
"properties": {
"claim": { "type": "string" },
"confidence": { "type": "string", "enum": ["high", "medium", "low"] },
"evidence": { "type": "string" },
"source_refs": {
"type": "array",
"items": { "type": "string" }
}
}
}
]
},
"description": "Points where all participating models converge."
},
"disputed": {
"type": "array",
"items": {
"type": "object",
"required": ["claim", "positions"],
"properties": {
"claim": { "type": "string" },
"positions": {
"type": "object",
"additionalProperties": { "type": "string" }
},
"significance": {
"type": "string",
"enum": ["core", "framing", "edge_case"]
}
}
},
"description": "Points where models diverge, with per-model positions."
},
"uncertain": {
"type": "array",
"items": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"required": ["claim"],
"properties": {
"claim": { "type": "string" },
"reason": { "type": "string" }
}
}
]
},
"description": "Points that no model could resolve with confidence."
},
"synthesis": {
"type": "string",
"description": "Editorial summary. NOT canonical - the agreed/disputed/uncertain arrays are authoritative."
},
"models_used": {
"type": "array",
"items": { "type": "string" },
"minItems": 2,
"description": "Model identifiers (provider/model format)."
},
"roster_version": {
"type": "string",
"format": "date",
"description": "ISO 8601 date of the model roster snapshot."
},
"roster_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "SHA-256 hash of the sorted models_used array."
},
"process_template": {
"type": "string",
"default": "3-round",
"description": "Deliberation process template used."
},
"total_tokens": {
"type": "integer",
"minimum": 0,
"description": "Total tokens consumed across all rounds and models."
},
"total_cost_cents": {
"type": "number",
"minimum": 0,
"description": "Total API cost in US cents."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": ["uri", "content_hash", "ingested_at"],
"properties": {
"uri": { "type": "string" },
"title": { "type": "string" },
"content_hash": {
"type": "string",
"pattern": "^sha256:[a-f0-9]{64}$"
},
"ingested_at": {
"type": "string",
"format": "date-time"
}
}
},
"description": "Source documents with content hashes for freshness validation."
},
"source_url": {
"type": "string",
"format": "uri",
"description": "Primary source URL (backwards compatibility)."
},
"source_title": {
"type": "string",
"description": "Primary source title (backwards compatibility)."
},
"status": {
"type": "string",
"enum": ["active", "stale", "superseded"],
"description": "Current lifecycle state."
},
"fresh_until": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 datetime after which this KU should be considered potentially stale."
},
"volatility": {
"type": "string",
"enum": ["stable", "evolving", "volatile"],
"default": "evolving",
"description": "Expected rate of change for this knowledge domain."
},
"supersedes": {
"type": ["string", "null"],
"pattern": "^ku-[a-z0-9]{12}$",
"description": "ID of the KU this KU replaces."
},
"parent_ku_id": {
"type": ["string", "null"],
"pattern": "^ku-[a-z0-9]{12}$",
"description": "ID of a parent KU from which this question was derived."
},
"published_at": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 datetime of publication."
},
"receipt_sig": {
"type": "string",
"pattern": "^[a-f0-9]{128}$",
"description": "Aggregate Ed25519 signature over the receipt chain hash."
},
"receipt_kid": {
"type": "string",
"description": "Key identifier for the signing key."
},
"receipt_hash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "SHA-256 hash of the chained per-round receipt hashes."
},
"relations": {
"type": "array",
"items": {
"type": "object",
"required": ["target_ku_id", "relation"],
"properties": {
"target_ku_id": {
"type": "string",
"pattern": "^ku-[a-z0-9]{12}$"
},
"relation": {
"type": "string",
"enum": ["supports", "contradicts", "refines", "extends", "depends_on"]
},
"claims": {
"type": "array",
"items": { "type": "string" }
}
}
},
"description": "Typed relations to other Knowledge Units."
}
},
"additionalProperties": false
}