-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
73 lines (73 loc) · 2.41 KB
/
Copy pathschema.json
File metadata and controls
73 lines (73 loc) · 2.41 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
{
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "Two to four sentences: what the change does and the overall review verdict, written for the PR author."
},
"risk_level": {
"type": "string",
"enum": ["low", "medium", "high", "critical"],
"description": "Overall risk of merging this change as-is."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"severity": {
"type": "string",
"enum": ["critical", "high", "medium", "low", "info"]
},
"confidence": {
"type": "string",
"enum": ["high", "medium", "low"],
"description": "How certain the finding is real given only the diff context."
},
"category": {
"type": "string",
"description": "Short label, e.g. consensus-determinism, actor-safety, overflow, dos, gas, error-handling, concurrency, crypto, logic, quality, performance, testing."
},
"file": {
"type": "string",
"description": "Repo-relative path of the affected file."
},
"location": {
"type": "string",
"description": "Line number or range from the diff (e.g. '142' or '142-158'), or 'n/a'."
},
"title": {
"type": "string",
"description": "One-line statement of the defect."
},
"description": {
"type": "string",
"description": "What is wrong and the concrete failure scenario: inputs/state that trigger it and the consequence."
},
"recommendation": {
"type": "string",
"description": "Specific fix or verification step."
}
},
"required": [
"severity",
"confidence",
"category",
"file",
"location",
"title",
"description",
"recommendation"
],
"additionalProperties": false
}
},
"positive_observations": {
"type": "array",
"items": { "type": "string" },
"description": "Things done well worth reinforcing (good invariant checks, tests, safe patterns). Empty array if none stand out."
}
},
"required": ["summary", "risk_level", "findings", "positive_observations"],
"additionalProperties": false
}