Skip to content

Commit 9ed823a

Browse files
grokifyclaude
andcommitted
chore(schema): update rubric schema for v2 fields
Add v2 schema definitions: - schemaVersion: string for version tracking - intScore: integer 1-5 scale - confidence: number 0.0-1.0 - pass: boolean gate - blocking: array of reason codes - extensions: object for domain-specific data Update CategoryResult schema: - intScore, confidence, reasonCodes fields Update Finding schema: - code, location fields Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7c288b5 commit 9ed823a

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

schema/rubric.schema.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"$schema": {
66
"type": "string"
77
},
8+
"schemaVersion": {
9+
"type": "string"
10+
},
811
"metadata": {
912
"properties": {
1013
"document": {
@@ -181,6 +184,21 @@
181184
"additionalProperties": false,
182185
"type": "object"
183186
},
187+
"intScore": {
188+
"type": "integer"
189+
},
190+
"confidence": {
191+
"type": "number"
192+
},
193+
"pass": {
194+
"type": "boolean"
195+
},
196+
"blocking": {
197+
"items": {
198+
"type": "string"
199+
},
200+
"type": "array"
201+
},
184202
"categories": {
185203
"items": {
186204
"properties": {
@@ -196,9 +214,21 @@
196214
],
197215
"description": "Category score: pass, partial, or fail"
198216
},
217+
"intScore": {
218+
"type": "integer"
219+
},
199220
"numericScore": {
200221
"type": "number"
201222
},
223+
"confidence": {
224+
"type": "number"
225+
},
226+
"reasonCodes": {
227+
"items": {
228+
"type": "string"
229+
},
230+
"type": "array"
231+
},
202232
"reasoning": {
203233
"type": "string"
204234
},
@@ -217,6 +247,9 @@
217247
"category": {
218248
"type": "string"
219249
},
250+
"code": {
251+
"type": "string"
252+
},
220253
"severity": {
221254
"type": "string",
222255
"enum": [
@@ -237,6 +270,9 @@
237270
"recommendation": {
238271
"type": "string"
239272
},
273+
"location": {
274+
"type": "string"
275+
},
240276
"evidence": {
241277
"type": "string"
242278
},
@@ -297,6 +333,9 @@
297333
"category": {
298334
"type": "string"
299335
},
336+
"code": {
337+
"type": "string"
338+
},
300339
"severity": {
301340
"type": "string",
302341
"enum": [
@@ -317,6 +356,9 @@
317356
"recommendation": {
318357
"type": "string"
319358
},
359+
"location": {
360+
"type": "string"
361+
},
320362
"evidence": {
321363
"type": "string"
322364
},

0 commit comments

Comments
 (0)