Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 284 additions & 0 deletions schemas/gitworthy-check.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,290 @@
"additionalProperties": false
}
},
"routing": {
"type": "object",
"properties": {
"routing_version": {
"type": "number",
"const": 1
},
"primary_mode": {
"type": "string",
"enum": [
"BUILD",
"REVIEW",
"SALVAGE",
"REPRODUCE",
"EVAL",
"DOC",
"WATCH",
"PASS"
]
},
"alternate_modes": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"BUILD",
"REVIEW",
"SALVAGE",
"REPRODUCE",
"EVAL",
"DOC",
"WATCH",
"PASS"
]
},
"score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"reason": {
"type": "string"
}
},
"required": [
"mode",
"score",
"reason"
],
"additionalProperties": false
}
},
"build_contention": {
"type": "string",
"enum": [
"GREEN",
"YELLOW",
"RED"
]
},
"confidence": {
"type": "string",
"enum": [
"high",
"medium",
"low"
]
},
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"hard_constraints": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"next_actions": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"minLength": 1
},
"message": {
"type": "string",
"minLength": 1
}
},
"required": [
"kind",
"message"
],
"additionalProperties": false
}
},
"evidenceability": {
"type": "object",
"properties": {
"score": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"reasons": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"score",
"reasons"
],
"additionalProperties": false
},
"effort_bucket": {
"default": "unknown",
"type": "string",
"enum": [
"fast",
"medium",
"deep",
"research",
"unknown"
]
},
"coverage": {
"type": "object",
"properties": {
"mandatory_checks_complete": {
"type": "boolean"
},
"failed_checks": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"skipped_checks": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"budget_truncated": {
"default": false,
"type": "boolean"
},
"rate_limit_degraded": {
"default": false,
"type": "boolean"
},
"snapshot_age_ms": {
"type": "number",
"minimum": 0
},
"advisory_missing": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"mandatory_checks_complete",
"failed_checks",
"skipped_checks",
"budget_truncated",
"rate_limit_degraded",
"advisory_missing"
],
"additionalProperties": false
}
},
"required": [
"routing_version",
"primary_mode",
"alternate_modes",
"build_contention",
"confidence",
"reasons",
"hard_constraints",
"next_actions",
"evidenceability",
"effort_bucket",
"coverage"
],
"additionalProperties": false
},
"source_snapshot": {
"type": "object",
"properties": {
"observed_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"repo_head_sha": {
"type": "string"
},
"issue": {
"type": "object",
"properties": {
"state": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"assignees": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"linked_prs": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"state": {
"type": "string",
"minLength": 1
},
"draft": {
"type": "boolean"
},
"merged": {
"type": "boolean"
},
"updated_at": {
"type": "string"
},
"head_sha": {
"type": "string"
},
"closes_issue": {
"type": "boolean"
}
},
"required": [
"number",
"state"
],
"additionalProperties": false
}
},
"state_fingerprint": {
"type": "string",
"minLength": 1
}
},
"required": [
"observed_at",
"linked_prs",
"state_fingerprint"
],
"additionalProperties": false
},
"verdict_summary": {
"type": "string"
},
Expand Down
Loading
Loading