@rvdbreemen/adr-kit-opencode 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +29 -0
- package/LICENSE +21 -0
- package/README.md +850 -0
- package/bin/adr +1552 -0
- package/bin/adr-audit +454 -0
- package/bin/adr-context +584 -0
- package/bin/adr-discover +546 -0
- package/bin/adr-doctor +166 -0
- package/bin/adr-generate-scripts +421 -0
- package/bin/adr-grill-signal +131 -0
- package/bin/adr-guardian +1263 -0
- package/bin/adr-index +199 -0
- package/bin/adr-judge +2832 -0
- package/bin/adr-judge-precommit +87 -0
- package/bin/adr-lint +2087 -0
- package/bin/adr-mcp +1093 -0
- package/bin/adr-migrate +644 -0
- package/bin/adr-quality +275 -0
- package/bin/adr-readiness +211 -0
- package/bin/adr-readiness-ci +111 -0
- package/bin/adr-related +401 -0
- package/bin/adr-renumber +254 -0
- package/bin/adr-retire +467 -0
- package/bin/adr-settings +399 -0
- package/bin/adr-status +797 -0
- package/bin/adr-suggest +803 -0
- package/bin/adr-watch +674 -0
- package/bin/adr_catalog.py +536 -0
- package/bin/adr_config.py +280 -0
- package/bin/adr_doctor_checks.py +407 -0
- package/bin/adr_doctor_core.py +342 -0
- package/bin/adr_doctor_models.py +186 -0
- package/bin/adr_doctor_probes.py +216 -0
- package/bin/adr_format.py +786 -0
- package/bin/adr_grill_signal.py +123 -0
- package/bin/adr_guardian_queue.py +218 -0
- package/bin/adr_history_scan.py +278 -0
- package/bin/adr_index_core.py +443 -0
- package/bin/adr_llm.py +333 -0
- package/bin/adr_llm_judge_migration.py +314 -0
- package/bin/adr_quality_core.py +674 -0
- package/bin/adr_query.py +678 -0
- package/bin/adr_readiness.py +442 -0
- package/bin/adr_readiness_ci.py +123 -0
- package/bin/adr_regex.py +165 -0
- package/bin/adr_regex_worker.py +30 -0
- package/bin/adr_retrieval_health.py +385 -0
- package/bin/adr_schema.py +448 -0
- package/bin/adr_state.py +172 -0
- package/bin/bump-version +71 -0
- package/clients/workflows.json +229 -0
- package/hooks/__init__.py +1 -0
- package/hooks/adapters/__init__.py +13 -0
- package/hooks/adapters/claude.py +27 -0
- package/hooks/adapters/codex.py +26 -0
- package/hooks/adapters/copilot.py +11 -0
- package/hooks/adr-hook.py +128 -0
- package/hooks/adr_hook_core.py +843 -0
- package/hooks/adr_pr_guard.py +367 -0
- package/instructions/ADR-guide.md +48 -0
- package/instructions/adr.coding.md +82 -0
- package/instructions/adr.review.md +182 -0
- package/opencode/plugin.ts +451 -0
- package/package.json +41 -0
- package/schemas/adr-context-probes.schema.json +56 -0
- package/schemas/adr-enforcement.schema.json +57 -0
- package/schemas/adr-frontmatter.schema.json +144 -0
- package/schemas/adr-index.schema.json +276 -0
- package/schemas/adr-kit-config.schema.json +371 -0
- package/schemas/adr-readiness.schema.json +41 -0
- package/schemas/client-capabilities.schema.json +503 -0
- package/schemas/client-certification.schema.json +101 -0
- package/schemas/doctor-output.schema.json +92 -0
- package/schemas/marketplace.json.schema.json +70 -0
- package/schemas/plugin.json.schema.json +67 -0
- package/scripts/adr_settings.py +239 -0
- package/scripts/benchmark-adr-grilling.py +323 -0
- package/scripts/benchmark-client-generation.py +178 -0
- package/scripts/build-client-adapters.py +139 -0
- package/scripts/bump-version.py +304 -0
- package/scripts/check-branch-sync.py +243 -0
- package/scripts/check-release-version.py +81 -0
- package/scripts/client_certification.py +153 -0
- package/scripts/client_evidence.py +280 -0
- package/scripts/client_generation.py +288 -0
- package/scripts/client_generation_artifacts.py +351 -0
- package/scripts/client_generation_model.py +173 -0
- package/scripts/client_generation_state.py +260 -0
- package/scripts/client_support_matrix.py +360 -0
- package/scripts/install-agent-envs.py +300 -0
- package/scripts/probe-client-events.py +183 -0
- package/scripts/project_setup.py +379 -0
- package/scripts/refresh-otgw-corpus.py +219 -0
- package/scripts/settings.py +81 -0
- package/scripts/setup-project.py +205 -0
- package/scripts/sync-agent-plugins.py +17 -0
- package/scripts/version_sites.py +377 -0
- package/skills/adr/SKILL.md +780 -0
- package/skills/audit/SKILL.md +103 -0
- package/skills/context/SKILL.md +77 -0
- package/skills/grill/SKILL.md +84 -0
- package/skills/grill/agents/openai.yaml +4 -0
- package/skills/guardian/SKILL.md +316 -0
- package/skills/init/SKILL.md +499 -0
- package/skills/install-hooks/SKILL.md +154 -0
- package/skills/judge/SKILL.md +168 -0
- package/skills/lint/SKILL.md +321 -0
- package/skills/migrate/SKILL.md +313 -0
- package/skills/related/SKILL.md +62 -0
- package/skills/retire/SKILL.md +41 -0
- package/skills/review/SKILL.md +167 -0
- package/skills/settings/SKILL.md +73 -0
- package/skills/setup/SKILL.md +128 -0
- package/skills/supersede/SKILL.md +136 -0
- package/skills/upgrade/SKILL.md +273 -0
- package/templates/adr-kit-guide.md +354 -0
- package/templates/adr-template.canonical.md +115 -0
- package/templates/adr-template.madr.md +131 -0
- package/templates/adr-template.md +131 -0
- package/templates/adr-template.nygard.md +111 -0
- package/templates/cc-settings/guardian-hook-entry.json +9 -0
- package/templates/githooks/pre-commit +337 -0
- package/templates/github-workflows/adr-audit.yml +58 -0
- package/templates/github-workflows/adr-guardian-audit.yml +133 -0
- package/templates/github-workflows/adr-index-check.yml +30 -0
- package/templates/github-workflows/adr-judge.yml +31 -0
- package/templates/github-workflows/adr-readiness.yml +18 -0
- package/templates/validate_adr_template.py +38 -0
- package/templates/validate_adr_template.sh +74 -0
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/rvdbreemen/adr-kit/schemas/client-capabilities.schema.json",
|
|
4
|
+
"title": "ADR Kit three-client capability registry",
|
|
5
|
+
"description": "Versioned capability and evidence references for Claude Code CLI, Codex CLI, and GitHub Copilot CLI.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"$schema",
|
|
10
|
+
"schema_version",
|
|
11
|
+
"program_scope",
|
|
12
|
+
"ownership",
|
|
13
|
+
"settings",
|
|
14
|
+
"clients",
|
|
15
|
+
"certification"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"$schema": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
},
|
|
22
|
+
"schema_version": {
|
|
23
|
+
"const": 1
|
|
24
|
+
},
|
|
25
|
+
"program_scope": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": [
|
|
29
|
+
"first_class_clients",
|
|
30
|
+
"future_epic"
|
|
31
|
+
],
|
|
32
|
+
"properties": {
|
|
33
|
+
"first_class_clients": {
|
|
34
|
+
"const": [
|
|
35
|
+
"claude-code-cli",
|
|
36
|
+
"codex-cli",
|
|
37
|
+
"github-copilot-cli"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"future_epic": {
|
|
41
|
+
"const": "TASK-43"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"ownership": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"canonical",
|
|
50
|
+
"generated",
|
|
51
|
+
"hand_authored_validated"
|
|
52
|
+
],
|
|
53
|
+
"properties": {
|
|
54
|
+
"canonical": {
|
|
55
|
+
"$ref": "#/$defs/artifactPatterns"
|
|
56
|
+
},
|
|
57
|
+
"generated": {
|
|
58
|
+
"$ref": "#/$defs/artifactPatterns"
|
|
59
|
+
},
|
|
60
|
+
"hand_authored_validated": {
|
|
61
|
+
"$ref": "#/$defs/artifactPatterns"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"settings": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"precedence",
|
|
70
|
+
"definitions"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"precedence": {
|
|
74
|
+
"const": [
|
|
75
|
+
"project",
|
|
76
|
+
"global",
|
|
77
|
+
"detected-default"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"definitions": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"$ref": "#/$defs/setting"
|
|
84
|
+
},
|
|
85
|
+
"uniqueItems": true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"clients": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"minItems": 3,
|
|
92
|
+
"maxItems": 3,
|
|
93
|
+
"uniqueItems": true,
|
|
94
|
+
"items": {
|
|
95
|
+
"$ref": "#/$defs/client"
|
|
96
|
+
},
|
|
97
|
+
"allOf": [
|
|
98
|
+
{
|
|
99
|
+
"contains": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"required": [
|
|
102
|
+
"id"
|
|
103
|
+
],
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": {
|
|
106
|
+
"const": "claude-code-cli"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"minContains": 1,
|
|
111
|
+
"maxContains": 1
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"contains": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": [
|
|
117
|
+
"id"
|
|
118
|
+
],
|
|
119
|
+
"properties": {
|
|
120
|
+
"id": {
|
|
121
|
+
"const": "codex-cli"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"minContains": 1,
|
|
126
|
+
"maxContains": 1
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"contains": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"required": [
|
|
132
|
+
"id"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"id": {
|
|
136
|
+
"const": "github-copilot-cli"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"minContains": 1,
|
|
141
|
+
"maxContains": 1
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"certification": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": [
|
|
149
|
+
"windows_native_required",
|
|
150
|
+
"best_effort_platforms",
|
|
151
|
+
"all_clients_block_release",
|
|
152
|
+
"evidence_schema"
|
|
153
|
+
],
|
|
154
|
+
"properties": {
|
|
155
|
+
"windows_native_required": {
|
|
156
|
+
"const": true
|
|
157
|
+
},
|
|
158
|
+
"best_effort_platforms": {
|
|
159
|
+
"const": [
|
|
160
|
+
"macos",
|
|
161
|
+
"linux"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"all_clients_block_release": {
|
|
165
|
+
"const": true
|
|
166
|
+
},
|
|
167
|
+
"evidence_schema": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"exceptions": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"$ref": "#/$defs/exception"
|
|
177
|
+
},
|
|
178
|
+
"uniqueItems": true
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"$defs": {
|
|
182
|
+
"artifactPatterns": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"minItems": 1,
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1
|
|
188
|
+
},
|
|
189
|
+
"uniqueItems": true
|
|
190
|
+
},
|
|
191
|
+
"setting": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": [
|
|
195
|
+
"key",
|
|
196
|
+
"value_type",
|
|
197
|
+
"scopes"
|
|
198
|
+
],
|
|
199
|
+
"properties": {
|
|
200
|
+
"key": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1
|
|
203
|
+
},
|
|
204
|
+
"value_type": {
|
|
205
|
+
"enum": [
|
|
206
|
+
"boolean",
|
|
207
|
+
"string",
|
|
208
|
+
"integer"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"scopes": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"minItems": 1,
|
|
214
|
+
"items": {
|
|
215
|
+
"enum": [
|
|
216
|
+
"global",
|
|
217
|
+
"project"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"uniqueItems": true
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"outcome": {
|
|
225
|
+
"enum": [
|
|
226
|
+
"workflow-discovery",
|
|
227
|
+
"task-context",
|
|
228
|
+
"edit-governance",
|
|
229
|
+
"mcp",
|
|
230
|
+
"pre-commit",
|
|
231
|
+
"lifecycle",
|
|
232
|
+
"doctor"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"platformScope": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"additionalProperties": false,
|
|
238
|
+
"required": [
|
|
239
|
+
"windows",
|
|
240
|
+
"macos",
|
|
241
|
+
"linux"
|
|
242
|
+
],
|
|
243
|
+
"properties": {
|
|
244
|
+
"windows": {
|
|
245
|
+
"const": "release-required"
|
|
246
|
+
},
|
|
247
|
+
"macos": {
|
|
248
|
+
"const": "best-effort"
|
|
249
|
+
},
|
|
250
|
+
"linux": {
|
|
251
|
+
"const": "best-effort"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"eventMapping": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"additionalProperties": false,
|
|
258
|
+
"required": [
|
|
259
|
+
"outcome",
|
|
260
|
+
"mode"
|
|
261
|
+
],
|
|
262
|
+
"properties": {
|
|
263
|
+
"outcome": {
|
|
264
|
+
"$ref": "#/$defs/outcome"
|
|
265
|
+
},
|
|
266
|
+
"mode": {
|
|
267
|
+
"enum": [
|
|
268
|
+
"native",
|
|
269
|
+
"backstop",
|
|
270
|
+
"unsupported"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"native_event": {
|
|
274
|
+
"type": [
|
|
275
|
+
"string",
|
|
276
|
+
"null"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"degradation_id": {
|
|
280
|
+
"type": [
|
|
281
|
+
"string",
|
|
282
|
+
"null"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"degradation": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"additionalProperties": false,
|
|
290
|
+
"required": [
|
|
291
|
+
"id",
|
|
292
|
+
"outcome",
|
|
293
|
+
"reason",
|
|
294
|
+
"user_effect",
|
|
295
|
+
"backstop",
|
|
296
|
+
"blocks_certification"
|
|
297
|
+
],
|
|
298
|
+
"properties": {
|
|
299
|
+
"id": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"minLength": 1
|
|
302
|
+
},
|
|
303
|
+
"outcome": {
|
|
304
|
+
"$ref": "#/$defs/outcome"
|
|
305
|
+
},
|
|
306
|
+
"reason": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1
|
|
309
|
+
},
|
|
310
|
+
"user_effect": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"minLength": 1
|
|
313
|
+
},
|
|
314
|
+
"backstop": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"minLength": 1
|
|
317
|
+
},
|
|
318
|
+
"blocks_certification": {
|
|
319
|
+
"type": "boolean"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"exception": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"additionalProperties": false,
|
|
326
|
+
"required": [
|
|
327
|
+
"id",
|
|
328
|
+
"fixture",
|
|
329
|
+
"rationale",
|
|
330
|
+
"user_effect"
|
|
331
|
+
],
|
|
332
|
+
"properties": {
|
|
333
|
+
"id": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"minLength": 1
|
|
336
|
+
},
|
|
337
|
+
"fixture": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"minLength": 1
|
|
340
|
+
},
|
|
341
|
+
"rationale": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"minLength": 1
|
|
344
|
+
},
|
|
345
|
+
"user_effect": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"minLength": 1
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"probes": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"additionalProperties": false,
|
|
354
|
+
"required": [
|
|
355
|
+
"detect",
|
|
356
|
+
"install",
|
|
357
|
+
"update",
|
|
358
|
+
"rollback",
|
|
359
|
+
"disable",
|
|
360
|
+
"remove",
|
|
361
|
+
"doctor"
|
|
362
|
+
],
|
|
363
|
+
"properties": {
|
|
364
|
+
"detect": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"minLength": 1
|
|
367
|
+
},
|
|
368
|
+
"install": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"minLength": 1
|
|
371
|
+
},
|
|
372
|
+
"update": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"minLength": 1
|
|
375
|
+
},
|
|
376
|
+
"rollback": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"minLength": 1
|
|
379
|
+
},
|
|
380
|
+
"disable": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"minLength": 1
|
|
383
|
+
},
|
|
384
|
+
"remove": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"minLength": 1
|
|
387
|
+
},
|
|
388
|
+
"doctor": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"minLength": 1
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"client": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"additionalProperties": false,
|
|
397
|
+
"required": [
|
|
398
|
+
"id",
|
|
399
|
+
"surface",
|
|
400
|
+
"platforms",
|
|
401
|
+
"required_outcomes",
|
|
402
|
+
"event_mappings",
|
|
403
|
+
"degradations",
|
|
404
|
+
"probes",
|
|
405
|
+
"settings_keys",
|
|
406
|
+
"certification_ref"
|
|
407
|
+
],
|
|
408
|
+
"properties": {
|
|
409
|
+
"id": {
|
|
410
|
+
"enum": [
|
|
411
|
+
"claude-code-cli",
|
|
412
|
+
"codex-cli",
|
|
413
|
+
"github-copilot-cli"
|
|
414
|
+
]
|
|
415
|
+
},
|
|
416
|
+
"surface": {
|
|
417
|
+
"const": "cli"
|
|
418
|
+
},
|
|
419
|
+
"platforms": {
|
|
420
|
+
"$ref": "#/$defs/platformScope"
|
|
421
|
+
},
|
|
422
|
+
"required_outcomes": {
|
|
423
|
+
"type": "array",
|
|
424
|
+
"minItems": 7,
|
|
425
|
+
"maxItems": 7,
|
|
426
|
+
"uniqueItems": true,
|
|
427
|
+
"items": {
|
|
428
|
+
"$ref": "#/$defs/outcome"
|
|
429
|
+
},
|
|
430
|
+
"allOf": [
|
|
431
|
+
{
|
|
432
|
+
"contains": {
|
|
433
|
+
"const": "workflow-discovery"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"contains": {
|
|
438
|
+
"const": "task-context"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"contains": {
|
|
443
|
+
"const": "edit-governance"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"contains": {
|
|
448
|
+
"const": "mcp"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"contains": {
|
|
453
|
+
"const": "pre-commit"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"contains": {
|
|
458
|
+
"const": "lifecycle"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"contains": {
|
|
463
|
+
"const": "doctor"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
"event_mappings": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"propertyNames": {
|
|
471
|
+
"minLength": 1
|
|
472
|
+
},
|
|
473
|
+
"additionalProperties": {
|
|
474
|
+
"$ref": "#/$defs/eventMapping"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"degradations": {
|
|
478
|
+
"type": "array",
|
|
479
|
+
"items": {
|
|
480
|
+
"$ref": "#/$defs/degradation"
|
|
481
|
+
},
|
|
482
|
+
"uniqueItems": true
|
|
483
|
+
},
|
|
484
|
+
"probes": {
|
|
485
|
+
"$ref": "#/$defs/probes"
|
|
486
|
+
},
|
|
487
|
+
"settings_keys": {
|
|
488
|
+
"type": "array",
|
|
489
|
+
"minItems": 1,
|
|
490
|
+
"items": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"minLength": 1
|
|
493
|
+
},
|
|
494
|
+
"uniqueItems": true
|
|
495
|
+
},
|
|
496
|
+
"certification_ref": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"minLength": 1
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/rvdbreemen/adr-kit/schemas/client-certification.schema.json",
|
|
4
|
+
"title": "ADR Kit three-client certification evidence",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "candidate_commit", "contract_date", "records"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": {"const": 1},
|
|
10
|
+
"candidate_commit": {"type": "string", "minLength": 7},
|
|
11
|
+
"contract_date": {"type": "string", "format": "date"},
|
|
12
|
+
"records": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 3,
|
|
15
|
+
"maxItems": 3,
|
|
16
|
+
"items": {"$ref": "#/$defs/record"}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"status": {"enum": ["pass", "fail", "not-run"]},
|
|
21
|
+
"platform": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"required": ["status", "reason"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"status": {"$ref": "#/$defs/status"},
|
|
26
|
+
"reason": {"type": "string"}
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
},
|
|
30
|
+
"benchmark": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["method_id", "state", "samples", "p50_ms", "p95_ms", "max_ms", "hard_timeout_ms", "timed_out", "baseline_p95_ms", "writes"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"method_id": {"type": "string"},
|
|
35
|
+
"state": {"enum": ["cold", "warm"]},
|
|
36
|
+
"samples": {"type": "integer", "minimum": 5},
|
|
37
|
+
"p50_ms": {"type": "number", "minimum": 0},
|
|
38
|
+
"p95_ms": {"type": "number", "minimum": 0},
|
|
39
|
+
"max_ms": {"type": "number", "minimum": 0},
|
|
40
|
+
"hard_timeout_ms": {"type": "number", "minimum": 1},
|
|
41
|
+
"timed_out": {"type": "boolean"},
|
|
42
|
+
"baseline_p95_ms": {"type": "number", "minimum": 0},
|
|
43
|
+
"writes": {"type": "integer", "minimum": 0}
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": false
|
|
46
|
+
},
|
|
47
|
+
"record": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": [
|
|
51
|
+
"client", "client_version", "adr_kit_version", "surface", "os",
|
|
52
|
+
"candidate_commit", "contract_date", "evidence_mode", "environment_fingerprint",
|
|
53
|
+
"required_outcomes", "fixtures", "native_smoke", "platforms", "benchmarks",
|
|
54
|
+
"degradations", "lifecycle_preservation", "native_optimization",
|
|
55
|
+
"inventory", "dependencies", "release_policy", "source_links", "evidence_links"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"client": {"enum": ["claude-code-cli", "codex-cli", "github-copilot-cli"]},
|
|
59
|
+
"client_version": {"type": "string"},
|
|
60
|
+
"adr_kit_version": {"type": "string"},
|
|
61
|
+
"surface": {"const": "cli"},
|
|
62
|
+
"os": {"const": "windows"},
|
|
63
|
+
"candidate_commit": {"type": "string", "minLength": 7},
|
|
64
|
+
"contract_date": {"type": "string", "format": "date"},
|
|
65
|
+
"evidence_mode": {"enum": ["simulated", "native"]},
|
|
66
|
+
"working_tree_clean": {"type": "boolean"},
|
|
67
|
+
"artifact_sha256": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
70
|
+
},
|
|
71
|
+
"environment_fingerprint": {"type": "string", "minLength": 1},
|
|
72
|
+
"required_outcomes": {"type": "object", "additionalProperties": {"const": true}},
|
|
73
|
+
"fixtures": {"type": "object", "additionalProperties": {"const": true}},
|
|
74
|
+
"native_smoke": {"type": "object", "additionalProperties": {"const": true}},
|
|
75
|
+
"platforms": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"required": ["windows", "macos", "linux"],
|
|
78
|
+
"properties": {
|
|
79
|
+
"windows": {"$ref": "#/$defs/platform"},
|
|
80
|
+
"macos": {"$ref": "#/$defs/platform"},
|
|
81
|
+
"linux": {"$ref": "#/$defs/platform"}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
},
|
|
85
|
+
"benchmarks": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 2,
|
|
88
|
+
"items": {"$ref": "#/$defs/benchmark"}
|
|
89
|
+
},
|
|
90
|
+
"degradations": {"type": "array", "items": {"type": "string"}},
|
|
91
|
+
"lifecycle_preservation": {"type": "object", "additionalProperties": {"const": true}},
|
|
92
|
+
"native_optimization": {"type": "object", "additionalProperties": {"type": "boolean"}},
|
|
93
|
+
"inventory": {"type": "object"},
|
|
94
|
+
"dependencies": {"type": "object"},
|
|
95
|
+
"release_policy": {"type": "object"},
|
|
96
|
+
"source_links": {"type": "array", "items": {"type": "string", "minLength": 1}},
|
|
97
|
+
"evidence_links": {"type": "array", "items": {"type": "string", "minLength": 1}}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/rvdbreemen/adr-kit/schemas/doctor-output.schema.json",
|
|
4
|
+
"title": "ADR Kit doctor output",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": true,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"mode",
|
|
10
|
+
"root",
|
|
11
|
+
"overall_status",
|
|
12
|
+
"clients",
|
|
13
|
+
"summary",
|
|
14
|
+
"checks",
|
|
15
|
+
"repairs",
|
|
16
|
+
"adr",
|
|
17
|
+
"exit_code"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema_version": {"const": 1},
|
|
21
|
+
"mode": {"enum": ["fast", "deep"]},
|
|
22
|
+
"root": {"type": "string"},
|
|
23
|
+
"overall_status": {
|
|
24
|
+
"enum": ["healthy", "repaired", "degraded", "failed"]
|
|
25
|
+
},
|
|
26
|
+
"clients": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["claude", "codex", "copilot"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"claude": {"$ref": "#/$defs/status"},
|
|
32
|
+
"codex": {"$ref": "#/$defs/status"},
|
|
33
|
+
"copilot": {"$ref": "#/$defs/status"}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"summary": {"type": "object"},
|
|
37
|
+
"checks": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {"$ref": "#/$defs/check"}
|
|
40
|
+
},
|
|
41
|
+
"repairs": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {"type": "object"}
|
|
44
|
+
},
|
|
45
|
+
"adr": {"type": "object"},
|
|
46
|
+
"exit_code": {"enum": [0, 1]}
|
|
47
|
+
},
|
|
48
|
+
"$defs": {
|
|
49
|
+
"status": {
|
|
50
|
+
"enum": [
|
|
51
|
+
"healthy",
|
|
52
|
+
"repaired",
|
|
53
|
+
"degraded",
|
|
54
|
+
"disabled",
|
|
55
|
+
"trust-pending",
|
|
56
|
+
"stale",
|
|
57
|
+
"unsupported",
|
|
58
|
+
"failed"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"check": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": [
|
|
65
|
+
"id",
|
|
66
|
+
"client",
|
|
67
|
+
"status",
|
|
68
|
+
"required",
|
|
69
|
+
"summary",
|
|
70
|
+
"evidence",
|
|
71
|
+
"repairs",
|
|
72
|
+
"degradations",
|
|
73
|
+
"actions",
|
|
74
|
+
"extension"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {"type": "string"},
|
|
78
|
+
"client": {"type": "string"},
|
|
79
|
+
"status": {"$ref": "#/$defs/status"},
|
|
80
|
+
"required": {"type": "boolean"},
|
|
81
|
+
"summary": {"type": "string"},
|
|
82
|
+
"evidence": {"type": "array", "items": {"type": "object"}},
|
|
83
|
+
"repairs": {"type": "array", "items": {"type": "object"}},
|
|
84
|
+
"degradations": {"type": "array", "items": {"type": "object"}},
|
|
85
|
+
"actions": {"type": "array", "items": {"type": "object"}},
|
|
86
|
+
"extension": {
|
|
87
|
+
"oneOf": [{"type": "object"}, {"type": "null"}]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|