-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdsh-plugin-reducer-report.schema.json
More file actions
161 lines (161 loc) · 5.32 KB
/
Copy pathdsh-plugin-reducer-report.schema.json
File metadata and controls
161 lines (161 loc) · 5.32 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/ArmyWas/dsh-plugin-reducer/main/schemas/dsh-plugin-reducer-report.schema.json",
"title": "dsh-plugin-reducer report",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"tool",
"generatedAt",
"runtime",
"dsh",
"probe",
"result",
"safety",
"trials"
],
"properties": {
"schemaVersion": { "const": 1 },
"tool": {
"type": "object",
"required": ["name", "version", "algorithm"],
"properties": {
"name": { "const": "dsh-plugin-reducer" },
"version": { "type": "string" },
"algorithm": { "type": "string" }
}
},
"generatedAt": { "type": "string", "format": "date-time" },
"runtime": {
"type": "object",
"required": ["node", "platform", "arch"],
"properties": {
"node": { "type": "string" },
"platform": { "type": "string" },
"arch": { "type": "string" }
}
},
"dsh": {
"type": "object",
"required": ["version", "profile", "candidateCount", "fixedBundles", "candidates"],
"properties": {
"version": { "type": ["string", "null"] },
"profile": { "type": "string" },
"candidateCount": { "type": "integer", "minimum": 1 },
"fixedBundles": { "type": "array", "items": { "type": "string" } },
"candidates": {
"type": "array",
"items": {
"type": "object",
"required": ["name", "spec", "version", "resolved"],
"properties": {
"name": { "type": "string" },
"spec": { "type": "string" },
"version": { "type": ["string", "null"] },
"resolved": { "type": "boolean" }
}
}
}
}
},
"probe": {
"type": "object",
"required": ["kind", "command", "timeoutMs", "settleMs", "repeat"],
"properties": {
"kind": { "enum": ["config", "web", "command"] },
"command": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
"timeoutMs": { "type": "integer", "minimum": 1 },
"settleMs": { "type": ["integer", "null"], "minimum": 0 },
"repeat": { "type": "integer", "minimum": 1 }
}
},
"result": {
"type": "object",
"required": [
"status",
"minimalFailingSet",
"oneMinimal",
"removalChecks",
"distinctConfigurationsTested",
"unresolvedConfigurations"
],
"properties": {
"status": { "const": "minimal-failure-set-found" },
"minimalFailingSet": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
"oneMinimal": { "type": "boolean" },
"removalChecks": {
"type": "array",
"items": {
"type": "object",
"required": ["removed", "outcome"],
"properties": {
"removed": { "type": "string" },
"outcome": { "enum": ["pass", "fail", "unresolved"] }
}
}
},
"distinctConfigurationsTested": { "type": "integer", "minimum": 2 },
"unresolvedConfigurations": { "type": "integer", "minimum": 0 }
}
},
"safety": {
"type": "object",
"required": [
"sourceFingerprintBefore",
"sourceFingerprintAfter",
"sourceProfileUnchanged",
"credentialStoresCopied",
"sessionsCopied",
"packagesInstalled",
"isolatedAttempts",
"reportRedactionApplied",
"shadowLabKept",
"shadowLab"
],
"properties": {
"sourceFingerprintBefore": { "type": "string" },
"sourceFingerprintAfter": { "type": "string" },
"sourceProfileUnchanged": { "type": "boolean" },
"credentialStoresCopied": { "type": "boolean" },
"sessionsCopied": { "type": "boolean" },
"packagesInstalled": { "type": "boolean" },
"isolatedAttempts": { "type": "boolean" },
"reportRedactionApplied": { "type": "boolean" },
"shadowLabKept": { "type": "boolean" },
"shadowLab": { "type": ["string", "null"] }
}
},
"trials": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "activeBundles", "outcome", "attempts"],
"properties": {
"id": { "type": "integer", "minimum": 1 },
"activeBundles": { "type": "array", "items": { "type": "string" } },
"outcome": { "enum": ["pass", "fail", "unresolved"] },
"attempts": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["pass", "reason", "exitCode", "signal", "durationMs", "stdout", "stderr"],
"properties": {
"pass": { "type": "boolean" },
"reason": { "type": "string" },
"exitCode": { "type": ["integer", "null"] },
"signal": { "type": ["string", "null"] },
"durationMs": { "type": "integer", "minimum": 0 },
"stdout": { "type": "string" },
"stderr": { "type": "string" },
"url": { "type": ["string", "null"] },
"httpStatus": { "type": ["integer", "null"] }
}
}
}
}
}
}
}
}