cohorte 3.0.0-dev.8 → 3.1.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.
Files changed (251) hide show
  1. package/CHANGELOG.md +1637 -0
  2. package/README.md +322 -62
  3. package/bin/cli.js +213 -0
  4. package/bin/report.js +141 -0
  5. package/core/agents/cohorte-profile-reader.md +40 -0
  6. package/core/agents/cohorte-release.md +61 -0
  7. package/core/agents/cohorte-review.md +200 -0
  8. package/core/agents/implementer.template.md +154 -0
  9. package/core/commands/cohorte-align-ds.md +33 -0
  10. package/core/commands/cohorte-audit.md +74 -0
  11. package/core/commands/cohorte-brainstorm.md +73 -0
  12. package/core/commands/cohorte-build.md +248 -0
  13. package/core/commands/cohorte-doctor.md +135 -0
  14. package/core/commands/cohorte-fix.md +80 -0
  15. package/core/commands/cohorte-fleet.md +111 -0
  16. package/core/commands/cohorte-init-pipeline.md +30 -0
  17. package/core/commands/cohorte-intake.md +92 -0
  18. package/core/commands/cohorte-patch.md +118 -0
  19. package/core/commands/cohorte-refactor.md +122 -0
  20. package/core/commands/cohorte-retro.md +85 -0
  21. package/core/commands/cohorte-revert.md +104 -0
  22. package/core/commands/cohorte-review.md +239 -0
  23. package/core/commands/cohorte-ship.md +167 -0
  24. package/core/commands/cohorte-spec.md +114 -0
  25. package/core/commands/cohorte-update-pipeline.md +119 -0
  26. package/core/commands/cohorte-verify.md +106 -0
  27. package/core/hooks/gate.py +3236 -0
  28. package/core/templates/agent-handoff.md +34 -0
  29. package/core/templates/brainstorm-return.md +42 -0
  30. package/core/templates/decisions.template.md +42 -0
  31. package/core/templates/design-brief.md +37 -0
  32. package/core/templates/patch.template.md +95 -0
  33. package/core/templates/pr-body.md +25 -0
  34. package/core/templates/review-feedback.md +46 -0
  35. package/core/templates/spec.template.md +109 -0
  36. package/core/templates/steps/init-pipeline/01-detect-stack.md +53 -0
  37. package/core/templates/steps/init-pipeline/02-interview-gaps.md +78 -0
  38. package/core/templates/steps/init-pipeline/03-draft-profile.md +10 -0
  39. package/core/templates/steps/init-pipeline/04-write-render.md +95 -0
  40. package/core/templates/steps/init-pipeline/05-report.md +11 -0
  41. package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
  42. package/core/workflows/audit.js +311 -0
  43. package/core/workflows/loop.js +692 -0
  44. package/core/workflows/refactor.js +398 -0
  45. package/core/workflows/review.js +505 -0
  46. package/install.ps1 +72 -0
  47. package/install.sh +69 -0
  48. package/lib/doctor.js +506 -0
  49. package/lib/install.js +386 -0
  50. package/lib/project.js +359 -0
  51. package/lib/render.js +121 -0
  52. package/lib/versions.js +145 -0
  53. package/lib/yaml.js +183 -0
  54. package/package.json +36 -17
  55. package/profile/PIPELINE.template.md +288 -0
  56. package/profile/SCHEMA.md +30 -0
  57. package/profile/cohorte.config.template.yaml +43 -0
  58. package/profile/schema/dead-agents.md +29 -0
  59. package/profile/schema/decisions.md +23 -0
  60. package/profile/schema/deferred.md +22 -0
  61. package/profile/schema/feature-diff.md +20 -0
  62. package/profile/schema/kanban.md +95 -0
  63. package/profile/schema/metrics.md +23 -0
  64. package/profile/schema/output-discipline.md +21 -0
  65. package/profile/schema/preflight.md +81 -0
  66. package/profile/schema/profile-block.md +103 -0
  67. package/profile/schema/project-kinds.md +89 -0
  68. package/profile/schema/readiness.md +17 -0
  69. package/profile/schema/reconcile.md +64 -0
  70. package/profile/schema/release-notes.md +29 -0
  71. package/profile/schema/rendering.md +48 -0
  72. package/profile/schema/retrieval.md +58 -0
  73. package/profile/schema/spec-status.md +79 -0
  74. package/profile/schema/specialization.md +41 -0
  75. package/profile/schema/verify.md +115 -0
  76. package/profile/schema/workflows.md +78 -0
  77. package/scripts/feature-diff.sh +118 -0
  78. package/scripts/kanban-move.sh +349 -0
  79. package/scripts/metrics/collect.mjs +542 -0
  80. package/scripts/metrics/prices.json +42 -0
  81. package/scripts/new-feature.sh.template +122 -0
  82. package/scripts/preflight.sh +114 -0
  83. package/scripts/remove-feature.sh.template +56 -0
  84. package/scripts/verify-run.sh +509 -0
  85. package/assets/manifest.json +0 -203
  86. package/assets/migrations/config/README.md +0 -12
  87. package/assets/migrations/state/0001_init.sql +0 -154
  88. package/assets/prompts/README.md +0 -11
  89. package/assets/prompts/agents/brainstormer.md +0 -3
  90. package/assets/prompts/agents/fixer.md +0 -7
  91. package/assets/prompts/agents/implementer.md +0 -12
  92. package/assets/prompts/agents/reviewer.md +0 -8
  93. package/assets/prompts/agents/security-reviewer.md +0 -7
  94. package/assets/prompts/agents/spec-author.md +0 -3
  95. package/assets/prompts/phases/build.md +0 -5
  96. package/assets/prompts/phases/review.md +0 -5
  97. package/assets/prompts/phases/test.md +0 -5
  98. package/assets/prompts/system.md +0 -11
  99. package/assets/schemas/agent-output.schema.json +0 -225
  100. package/assets/schemas/auth-status.schema.json +0 -87
  101. package/assets/schemas/command-result.schema.json +0 -192
  102. package/assets/schemas/commands.schema.json +0 -959
  103. package/assets/schemas/config.schema.json +0 -2281
  104. package/assets/schemas/doctor-report.schema.json +0 -104
  105. package/assets/schemas/events.schema.json +0 -8514
  106. package/assets/schemas/fake-script.schema.json +0 -549
  107. package/assets/schemas/inspect.schema.json +0 -3133
  108. package/assets/schemas/manifest.schema.json +0 -79
  109. package/assets/schemas/ownership.schema.json +0 -52
  110. package/assets/schemas/policy-verdict.schema.json +0 -282
  111. package/assets/schemas/project-model.schema.json +0 -783
  112. package/assets/schemas/project-status.schema.json +0 -217
  113. package/assets/schemas/reconcile-plan.schema.json +0 -154
  114. package/assets/schemas/run-diff.schema.json +0 -177
  115. package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
  116. package/assets/schemas/run-state.schema.json +0 -1755
  117. package/assets/schemas/runtime-capabilities.schema.json +0 -1545
  118. package/assets/schemas/sandbox-capabilities.schema.json +0 -116
  119. package/assets/schemas/skill.schema.json +0 -87
  120. package/assets/schemas/spec.schema.json +0 -202
  121. package/assets/schemas/tool-catalogue.schema.json +0 -655
  122. package/assets/schemas/trust-record.schema.json +0 -38
  123. package/assets/skills/README.md +0 -9
  124. package/assets/skills/inspect-surface.md +0 -4
  125. package/dist/agent-host.mjs +0 -2187
  126. package/dist/agent-host.mjs.map +0 -1
  127. package/dist/bundle-manifest.json +0 -128
  128. package/dist/chunks/__host-DgGPyco9.mjs +0 -18
  129. package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
  130. package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
  131. package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
  132. package/dist/chunks/approve-Cv135UqI.mjs +0 -19
  133. package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
  134. package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
  135. package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
  136. package/dist/chunks/auth-BT5oVp76.mjs +0 -132
  137. package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
  138. package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
  139. package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
  140. package/dist/chunks/brainstorm-SJwOIEif.mjs +0 -123
  141. package/dist/chunks/brainstorm-SJwOIEif.mjs.map +0 -1
  142. package/dist/chunks/build-C_-mbZfD.mjs +0 -19
  143. package/dist/chunks/build-C_-mbZfD.mjs.map +0 -1
  144. package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
  145. package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
  146. package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
  147. package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
  148. package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
  149. package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
  150. package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
  151. package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
  152. package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
  153. package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
  154. package/dist/chunks/contract-DjssDPpS.mjs +0 -335
  155. package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
  156. package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
  157. package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
  158. package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
  159. package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
  160. package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
  161. package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
  162. package/dist/chunks/discover-BZPolSZG.mjs +0 -21
  163. package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
  164. package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
  165. package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
  166. package/dist/chunks/fix-C9roGiQz.mjs +0 -82
  167. package/dist/chunks/fix-C9roGiQz.mjs.map +0 -1
  168. package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
  169. package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
  170. package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
  171. package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
  172. package/dist/chunks/init--FxxkrcT.mjs +0 -63
  173. package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
  174. package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
  175. package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
  176. package/dist/chunks/intake-C1pesxCJ.mjs +0 -12
  177. package/dist/chunks/intake-C1pesxCJ.mjs.map +0 -1
  178. package/dist/chunks/logs-Giq5sUau.mjs +0 -25
  179. package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
  180. package/dist/chunks/loop-BWsUpyus.mjs +0 -212
  181. package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
  182. package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
  183. package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
  184. package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
  185. package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
  186. package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
  187. package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
  188. package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
  189. package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
  190. package/dist/chunks/pause-BASBfKLO.mjs +0 -16
  191. package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
  192. package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
  193. package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
  194. package/dist/chunks/providers-Dx78imKj.mjs +0 -19
  195. package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
  196. package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
  197. package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
  198. package/dist/chunks/refactor-DV3RfGjk.mjs +0 -153
  199. package/dist/chunks/refactor-DV3RfGjk.mjs.map +0 -1
  200. package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
  201. package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
  202. package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
  203. package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
  204. package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
  205. package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
  206. package/dist/chunks/retry-CLrUem1H.mjs +0 -15
  207. package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
  208. package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
  209. package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
  210. package/dist/chunks/run-BGabwbDL.mjs +0 -109
  211. package/dist/chunks/run-BGabwbDL.mjs.map +0 -1
  212. package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
  213. package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
  214. package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
  215. package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
  216. package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
  217. package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
  218. package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
  219. package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
  220. package/dist/chunks/ship-BizfUe62.mjs +0 -140
  221. package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
  222. package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
  223. package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
  224. package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
  225. package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
  226. package/dist/chunks/spec-C2h3U64g.mjs +0 -65
  227. package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
  228. package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
  229. package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
  230. package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
  231. package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
  232. package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
  233. package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
  234. package/dist/chunks/src-Cu3TxNob.mjs +0 -783
  235. package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
  236. package/dist/chunks/src-DNsLSxgm.mjs +0 -928
  237. package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
  238. package/dist/chunks/src-DbS9gkJy.mjs +0 -117
  239. package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
  240. package/dist/chunks/src-yi5whv3n.mjs +0 -2118
  241. package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
  242. package/dist/chunks/status-SMjiOMYy.mjs +0 -29
  243. package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
  244. package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
  245. package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
  246. package/dist/chunks/update-BXIppsbi.mjs +0 -16
  247. package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
  248. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
  249. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
  250. package/dist/cli.mjs +0 -186
  251. package/dist/cli.mjs.map +0 -1
@@ -1,783 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/project-model.schema.json",
4
- "title": "Cohorte project model (discover --json)",
5
- "type": "object",
6
- "required": [
7
- "schemaVersion",
8
- "project",
9
- "stack",
10
- "surfaces",
11
- "commands",
12
- "testStrategy",
13
- "deploymentHints",
14
- "ownership",
15
- "risks",
16
- "conventions",
17
- "generatedArtifacts",
18
- "unknowns",
19
- "provenance"
20
- ],
21
- "properties": {
22
- "schemaVersion": {
23
- "type": "number",
24
- "const": 1
25
- },
26
- "project": {
27
- "type": "object",
28
- "required": [
29
- "id",
30
- "root"
31
- ],
32
- "properties": {
33
- "id": {
34
- "type": "object",
35
- "required": [
36
- "value",
37
- "class",
38
- "provenance"
39
- ],
40
- "properties": {
41
- "value": {
42
- "type": "string",
43
- "pattern": "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$"
44
- },
45
- "class": {
46
- "type": "string",
47
- "enum": [
48
- "human",
49
- "generated",
50
- "derived",
51
- "observed",
52
- "mixed"
53
- ]
54
- },
55
- "provenance": {
56
- "type": "object",
57
- "required": [
58
- "detector",
59
- "sources"
60
- ],
61
- "properties": {
62
- "detector": {
63
- "type": "string",
64
- "minLength": 1
65
- },
66
- "sources": {
67
- "type": "array",
68
- "items": {
69
- "type": "string"
70
- }
71
- },
72
- "confidence": {
73
- "type": "number",
74
- "minimum": 0,
75
- "maximum": 1
76
- }
77
- }
78
- }
79
- }
80
- },
81
- "root": {
82
- "type": "object",
83
- "required": [
84
- "value",
85
- "class",
86
- "provenance"
87
- ],
88
- "properties": {
89
- "value": {
90
- "type": "string"
91
- },
92
- "class": {
93
- "type": "string",
94
- "enum": [
95
- "human",
96
- "generated",
97
- "derived",
98
- "observed",
99
- "mixed"
100
- ]
101
- },
102
- "provenance": {
103
- "type": "object",
104
- "required": [
105
- "detector",
106
- "sources"
107
- ],
108
- "properties": {
109
- "detector": {
110
- "type": "string",
111
- "minLength": 1
112
- },
113
- "sources": {
114
- "type": "array",
115
- "items": {
116
- "type": "string"
117
- }
118
- },
119
- "confidence": {
120
- "type": "number",
121
- "minimum": 0,
122
- "maximum": 1
123
- }
124
- }
125
- }
126
- }
127
- }
128
- }
129
- },
130
- "stack": {
131
- "type": "object",
132
- "required": [
133
- "languages",
134
- "packageManager",
135
- "frameworks"
136
- ],
137
- "properties": {
138
- "languages": {
139
- "type": "object",
140
- "required": [
141
- "value",
142
- "class",
143
- "provenance"
144
- ],
145
- "properties": {
146
- "value": {
147
- "type": "array",
148
- "items": {
149
- "type": "string"
150
- }
151
- },
152
- "class": {
153
- "type": "string",
154
- "enum": [
155
- "human",
156
- "generated",
157
- "derived",
158
- "observed",
159
- "mixed"
160
- ]
161
- },
162
- "provenance": {
163
- "type": "object",
164
- "required": [
165
- "detector",
166
- "sources"
167
- ],
168
- "properties": {
169
- "detector": {
170
- "type": "string",
171
- "minLength": 1
172
- },
173
- "sources": {
174
- "type": "array",
175
- "items": {
176
- "type": "string"
177
- }
178
- },
179
- "confidence": {
180
- "type": "number",
181
- "minimum": 0,
182
- "maximum": 1
183
- }
184
- }
185
- }
186
- }
187
- },
188
- "packageManager": {
189
- "type": "object",
190
- "required": [
191
- "value",
192
- "class",
193
- "provenance"
194
- ],
195
- "properties": {
196
- "value": {
197
- "anyOf": [
198
- {
199
- "type": "string"
200
- },
201
- {
202
- "type": "null"
203
- }
204
- ]
205
- },
206
- "class": {
207
- "type": "string",
208
- "enum": [
209
- "human",
210
- "generated",
211
- "derived",
212
- "observed",
213
- "mixed"
214
- ]
215
- },
216
- "provenance": {
217
- "type": "object",
218
- "required": [
219
- "detector",
220
- "sources"
221
- ],
222
- "properties": {
223
- "detector": {
224
- "type": "string",
225
- "minLength": 1
226
- },
227
- "sources": {
228
- "type": "array",
229
- "items": {
230
- "type": "string"
231
- }
232
- },
233
- "confidence": {
234
- "type": "number",
235
- "minimum": 0,
236
- "maximum": 1
237
- }
238
- }
239
- }
240
- }
241
- },
242
- "frameworks": {
243
- "type": "object",
244
- "required": [
245
- "value",
246
- "class",
247
- "provenance"
248
- ],
249
- "properties": {
250
- "value": {
251
- "type": "array",
252
- "items": {
253
- "type": "string"
254
- }
255
- },
256
- "class": {
257
- "type": "string",
258
- "enum": [
259
- "human",
260
- "generated",
261
- "derived",
262
- "observed",
263
- "mixed"
264
- ]
265
- },
266
- "provenance": {
267
- "type": "object",
268
- "required": [
269
- "detector",
270
- "sources"
271
- ],
272
- "properties": {
273
- "detector": {
274
- "type": "string",
275
- "minLength": 1
276
- },
277
- "sources": {
278
- "type": "array",
279
- "items": {
280
- "type": "string"
281
- }
282
- },
283
- "confidence": {
284
- "type": "number",
285
- "minimum": 0,
286
- "maximum": 1
287
- }
288
- }
289
- }
290
- }
291
- }
292
- }
293
- },
294
- "surfaces": {
295
- "type": "object",
296
- "patternProperties": {
297
- "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$": {
298
- "type": "object",
299
- "required": [
300
- "paths"
301
- ],
302
- "properties": {
303
- "paths": {
304
- "type": "object",
305
- "required": [
306
- "value",
307
- "class",
308
- "provenance"
309
- ],
310
- "properties": {
311
- "value": {
312
- "type": "array",
313
- "items": {
314
- "type": "string"
315
- }
316
- },
317
- "class": {
318
- "type": "string",
319
- "enum": [
320
- "human",
321
- "generated",
322
- "derived",
323
- "observed",
324
- "mixed"
325
- ]
326
- },
327
- "provenance": {
328
- "type": "object",
329
- "required": [
330
- "detector",
331
- "sources"
332
- ],
333
- "properties": {
334
- "detector": {
335
- "type": "string",
336
- "minLength": 1
337
- },
338
- "sources": {
339
- "type": "array",
340
- "items": {
341
- "type": "string"
342
- }
343
- },
344
- "confidence": {
345
- "type": "number",
346
- "minimum": 0,
347
- "maximum": 1
348
- }
349
- }
350
- }
351
- }
352
- }
353
- }
354
- }
355
- }
356
- },
357
- "commands": {
358
- "type": "object",
359
- "patternProperties": {
360
- "^.*$": {
361
- "type": "object",
362
- "required": [
363
- "value",
364
- "class",
365
- "provenance"
366
- ],
367
- "properties": {
368
- "value": {
369
- "type": "array",
370
- "items": {
371
- "type": "string"
372
- },
373
- "minItems": 1
374
- },
375
- "class": {
376
- "type": "string",
377
- "enum": [
378
- "human",
379
- "generated",
380
- "derived",
381
- "observed",
382
- "mixed"
383
- ]
384
- },
385
- "provenance": {
386
- "type": "object",
387
- "required": [
388
- "detector",
389
- "sources"
390
- ],
391
- "properties": {
392
- "detector": {
393
- "type": "string",
394
- "minLength": 1
395
- },
396
- "sources": {
397
- "type": "array",
398
- "items": {
399
- "type": "string"
400
- }
401
- },
402
- "confidence": {
403
- "type": "number",
404
- "minimum": 0,
405
- "maximum": 1
406
- }
407
- }
408
- }
409
- }
410
- }
411
- }
412
- },
413
- "testStrategy": {
414
- "type": "object",
415
- "required": [
416
- "value",
417
- "class",
418
- "provenance"
419
- ],
420
- "properties": {
421
- "value": {
422
- "type": "object",
423
- "required": [
424
- "runner",
425
- "locations"
426
- ],
427
- "properties": {
428
- "runner": {
429
- "anyOf": [
430
- {
431
- "type": "string"
432
- },
433
- {
434
- "type": "null"
435
- }
436
- ]
437
- },
438
- "locations": {
439
- "type": "array",
440
- "items": {
441
- "type": "string"
442
- }
443
- }
444
- }
445
- },
446
- "class": {
447
- "type": "string",
448
- "enum": [
449
- "human",
450
- "generated",
451
- "derived",
452
- "observed",
453
- "mixed"
454
- ]
455
- },
456
- "provenance": {
457
- "type": "object",
458
- "required": [
459
- "detector",
460
- "sources"
461
- ],
462
- "properties": {
463
- "detector": {
464
- "type": "string",
465
- "minLength": 1
466
- },
467
- "sources": {
468
- "type": "array",
469
- "items": {
470
- "type": "string"
471
- }
472
- },
473
- "confidence": {
474
- "type": "number",
475
- "minimum": 0,
476
- "maximum": 1
477
- }
478
- }
479
- }
480
- }
481
- },
482
- "deploymentHints": {
483
- "type": "object",
484
- "required": [
485
- "value",
486
- "class",
487
- "provenance"
488
- ],
489
- "properties": {
490
- "value": {
491
- "type": "array",
492
- "items": {
493
- "type": "string"
494
- }
495
- },
496
- "class": {
497
- "type": "string",
498
- "enum": [
499
- "human",
500
- "generated",
501
- "derived",
502
- "observed",
503
- "mixed"
504
- ]
505
- },
506
- "provenance": {
507
- "type": "object",
508
- "required": [
509
- "detector",
510
- "sources"
511
- ],
512
- "properties": {
513
- "detector": {
514
- "type": "string",
515
- "minLength": 1
516
- },
517
- "sources": {
518
- "type": "array",
519
- "items": {
520
- "type": "string"
521
- }
522
- },
523
- "confidence": {
524
- "type": "number",
525
- "minimum": 0,
526
- "maximum": 1
527
- }
528
- }
529
- }
530
- }
531
- },
532
- "ownership": {
533
- "type": "object",
534
- "required": [
535
- "value",
536
- "class",
537
- "provenance"
538
- ],
539
- "properties": {
540
- "value": {
541
- "type": "object",
542
- "required": [
543
- "codeowners"
544
- ],
545
- "properties": {
546
- "codeowners": {
547
- "anyOf": [
548
- {
549
- "type": "string"
550
- },
551
- {
552
- "type": "null"
553
- }
554
- ]
555
- }
556
- }
557
- },
558
- "class": {
559
- "type": "string",
560
- "enum": [
561
- "human",
562
- "generated",
563
- "derived",
564
- "observed",
565
- "mixed"
566
- ]
567
- },
568
- "provenance": {
569
- "type": "object",
570
- "required": [
571
- "detector",
572
- "sources"
573
- ],
574
- "properties": {
575
- "detector": {
576
- "type": "string",
577
- "minLength": 1
578
- },
579
- "sources": {
580
- "type": "array",
581
- "items": {
582
- "type": "string"
583
- }
584
- },
585
- "confidence": {
586
- "type": "number",
587
- "minimum": 0,
588
- "maximum": 1
589
- }
590
- }
591
- }
592
- }
593
- },
594
- "risks": {
595
- "type": "array",
596
- "items": {
597
- "type": "object",
598
- "required": [
599
- "id",
600
- "severity",
601
- "message",
602
- "sources"
603
- ],
604
- "properties": {
605
- "id": {
606
- "type": "string"
607
- },
608
- "severity": {
609
- "type": "string",
610
- "enum": [
611
- "high",
612
- "medium",
613
- "low"
614
- ]
615
- },
616
- "message": {
617
- "type": "string"
618
- },
619
- "sources": {
620
- "type": "array",
621
- "items": {
622
- "type": "string"
623
- }
624
- }
625
- }
626
- }
627
- },
628
- "conventions": {
629
- "type": "object",
630
- "required": [
631
- "value",
632
- "class",
633
- "provenance"
634
- ],
635
- "properties": {
636
- "value": {
637
- "type": "array",
638
- "items": {
639
- "type": "string"
640
- }
641
- },
642
- "class": {
643
- "type": "string",
644
- "enum": [
645
- "human",
646
- "generated",
647
- "derived",
648
- "observed",
649
- "mixed"
650
- ]
651
- },
652
- "provenance": {
653
- "type": "object",
654
- "required": [
655
- "detector",
656
- "sources"
657
- ],
658
- "properties": {
659
- "detector": {
660
- "type": "string",
661
- "minLength": 1
662
- },
663
- "sources": {
664
- "type": "array",
665
- "items": {
666
- "type": "string"
667
- }
668
- },
669
- "confidence": {
670
- "type": "number",
671
- "minimum": 0,
672
- "maximum": 1
673
- }
674
- }
675
- }
676
- }
677
- },
678
- "generatedArtifacts": {
679
- "type": "object",
680
- "required": [
681
- "value",
682
- "class",
683
- "provenance"
684
- ],
685
- "properties": {
686
- "value": {
687
- "type": "array",
688
- "items": {
689
- "type": "string"
690
- }
691
- },
692
- "class": {
693
- "type": "string",
694
- "enum": [
695
- "human",
696
- "generated",
697
- "derived",
698
- "observed",
699
- "mixed"
700
- ]
701
- },
702
- "provenance": {
703
- "type": "object",
704
- "required": [
705
- "detector",
706
- "sources"
707
- ],
708
- "properties": {
709
- "detector": {
710
- "type": "string",
711
- "minLength": 1
712
- },
713
- "sources": {
714
- "type": "array",
715
- "items": {
716
- "type": "string"
717
- }
718
- },
719
- "confidence": {
720
- "type": "number",
721
- "minimum": 0,
722
- "maximum": 1
723
- }
724
- }
725
- }
726
- }
727
- },
728
- "unknowns": {
729
- "type": "array",
730
- "items": {
731
- "type": "object",
732
- "required": [
733
- "id",
734
- "question",
735
- "candidates",
736
- "sources"
737
- ],
738
- "properties": {
739
- "id": {
740
- "type": "string"
741
- },
742
- "question": {
743
- "type": "string"
744
- },
745
- "candidates": {
746
- "type": "array",
747
- "items": {
748
- "type": "string"
749
- }
750
- },
751
- "sources": {
752
- "type": "array",
753
- "items": {
754
- "type": "string"
755
- }
756
- }
757
- }
758
- }
759
- },
760
- "provenance": {
761
- "type": "object",
762
- "required": [
763
- "generatedAt",
764
- "toolVersion",
765
- "analysis"
766
- ],
767
- "properties": {
768
- "generatedAt": {
769
- "type": "string",
770
- "format": "date-time",
771
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
772
- },
773
- "toolVersion": {
774
- "type": "string"
775
- },
776
- "analysis": {
777
- "type": "string",
778
- "const": "deterministic"
779
- }
780
- }
781
- }
782
- }
783
- }