@rvdbreemen/adr-kit-opencode 0.52.0 → 0.52.2

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.
Files changed (82) hide show
  1. package/.claude-plugin/plugin.json +29 -29
  2. package/README.md +861 -850
  3. package/bin/adr +0 -0
  4. package/bin/adr-audit +0 -0
  5. package/bin/adr-context +0 -0
  6. package/bin/adr-discover +0 -0
  7. package/bin/adr-doctor +0 -0
  8. package/bin/adr-generate-scripts +0 -0
  9. package/bin/adr-grill-signal +0 -0
  10. package/bin/adr-guardian +0 -0
  11. package/bin/adr-index +0 -0
  12. package/bin/adr-judge +0 -0
  13. package/bin/adr-judge-precommit +0 -0
  14. package/bin/adr-lint +0 -0
  15. package/bin/adr-mcp +0 -0
  16. package/bin/adr-migrate +0 -0
  17. package/bin/adr-quality +0 -0
  18. package/bin/adr-readiness +0 -0
  19. package/bin/adr-readiness-ci +0 -0
  20. package/bin/adr-related +0 -0
  21. package/bin/adr-renumber +254 -254
  22. package/bin/adr-retire +0 -0
  23. package/bin/adr-settings +0 -0
  24. package/bin/adr-status +0 -0
  25. package/bin/adr-suggest +0 -0
  26. package/bin/adr-watch +0 -0
  27. package/bin/bump-version +0 -0
  28. package/clients/workflows.json +229 -229
  29. package/hooks/__init__.py +1 -1
  30. package/hooks/adapters/__init__.py +13 -13
  31. package/hooks/adapters/claude.py +27 -27
  32. package/hooks/adapters/codex.py +26 -26
  33. package/hooks/adapters/copilot.py +11 -11
  34. package/hooks/adr-hook.py +128 -128
  35. package/hooks/adr_hook_core.py +843 -843
  36. package/hooks/adr_pr_guard.py +367 -367
  37. package/instructions/ADR-guide.md +48 -48
  38. package/instructions/adr.coding.md +82 -82
  39. package/instructions/adr.review.md +182 -182
  40. package/opencode/plugin.ts +1 -4
  41. package/package.json +5 -2
  42. package/schemas/adr-context-probes.schema.json +56 -56
  43. package/schemas/adr-enforcement.schema.json +57 -57
  44. package/schemas/adr-frontmatter.schema.json +144 -144
  45. package/schemas/adr-index.schema.json +276 -276
  46. package/schemas/adr-kit-config.schema.json +371 -371
  47. package/schemas/adr-readiness.schema.json +41 -41
  48. package/schemas/client-capabilities.schema.json +503 -503
  49. package/schemas/client-certification.schema.json +101 -101
  50. package/schemas/doctor-output.schema.json +92 -92
  51. package/skills/adr/SKILL.md +780 -780
  52. package/skills/audit/SKILL.md +103 -103
  53. package/skills/context/SKILL.md +77 -77
  54. package/skills/grill/SKILL.md +84 -84
  55. package/skills/grill/agents/openai.yaml +4 -4
  56. package/skills/guardian/SKILL.md +316 -316
  57. package/skills/init/SKILL.md +499 -499
  58. package/skills/install-hooks/SKILL.md +154 -154
  59. package/skills/judge/SKILL.md +168 -168
  60. package/skills/lint/SKILL.md +321 -321
  61. package/skills/migrate/SKILL.md +313 -313
  62. package/skills/related/SKILL.md +62 -62
  63. package/skills/retire/SKILL.md +41 -41
  64. package/skills/review/SKILL.md +167 -167
  65. package/skills/settings/SKILL.md +73 -73
  66. package/skills/setup/SKILL.md +128 -128
  67. package/skills/supersede/SKILL.md +136 -136
  68. package/skills/upgrade/SKILL.md +273 -273
  69. package/templates/adr-kit-guide.md +354 -354
  70. package/templates/adr-template.canonical.md +115 -115
  71. package/templates/adr-template.madr.md +131 -131
  72. package/templates/adr-template.md +131 -131
  73. package/templates/adr-template.nygard.md +111 -111
  74. package/templates/cc-settings/guardian-hook-entry.json +9 -9
  75. package/templates/githooks/pre-commit +1 -1
  76. package/templates/github-workflows/adr-audit.yml +58 -58
  77. package/templates/github-workflows/adr-guardian-audit.yml +133 -133
  78. package/templates/github-workflows/adr-index-check.yml +30 -30
  79. package/templates/github-workflows/adr-judge.yml +31 -31
  80. package/templates/github-workflows/adr-readiness.yml +18 -18
  81. package/templates/validate_adr_template.py +38 -38
  82. package/templates/validate_adr_template.sh +74 -74
@@ -1,101 +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
- }
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
+ }
@@ -1,92 +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
- }
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
+ }