generated from coulomb/repo-seed
Add quality criteria registry
This commit is contained in:
105
docs/schemas/quality-criteria-registry.schema.json
Normal file
105
docs/schemas/quality-criteria-registry.schema.json
Normal file
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://example.local/repo-scoping/quality-criteria-registry.schema.json",
|
||||
"title": "Repository Scoping Quality Criteria Registry",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schema_version",
|
||||
"criteria_version",
|
||||
"status",
|
||||
"updated_at",
|
||||
"criteria"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"const": "quality-criteria-registry/v1"
|
||||
},
|
||||
"criteria_version": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"status": {
|
||||
"enum": ["draft", "active", "deprecated"]
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"criteria": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"title",
|
||||
"category",
|
||||
"severity",
|
||||
"applies_to",
|
||||
"description",
|
||||
"deterministic_action",
|
||||
"deterministic_action_when",
|
||||
"reviewer_guidance"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^RREG-QC-[0-9]{3}$"
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"severity": {
|
||||
"enum": ["low", "medium", "high", "critical"]
|
||||
},
|
||||
"applies_to": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"enum": ["ability", "capability", "feature", "evidence"]
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"deterministic_action": {
|
||||
"enum": [
|
||||
"pass",
|
||||
"requires_review",
|
||||
"downgraded",
|
||||
"rejected",
|
||||
"invalidated",
|
||||
"merged",
|
||||
"flagged"
|
||||
]
|
||||
},
|
||||
"deterministic_action_when": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"reviewer_guidance": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"agentic_guidance": {
|
||||
"type": "string"
|
||||
},
|
||||
"examples": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user