cohorte 3.0.0-dev.8 → 3.0.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 (229) hide show
  1. package/CHANGELOG.md +1532 -0
  2. package/README.md +316 -62
  3. package/bin/cli.js +212 -0
  4. package/bin/report.js +141 -0
  5. package/core/agents/cohorte-profile-reader.md +50 -0
  6. package/core/agents/cohorte-release.md +58 -0
  7. package/core/agents/cohorte-review.md +174 -0
  8. package/core/agents/implementer.template.md +146 -0
  9. package/core/commands/cohorte-align-ds.md +33 -0
  10. package/core/commands/cohorte-audit.md +67 -0
  11. package/core/commands/cohorte-brainstorm.md +73 -0
  12. package/core/commands/cohorte-build.md +241 -0
  13. package/core/commands/cohorte-doctor.md +133 -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 +57 -0
  20. package/core/commands/cohorte-retro.md +85 -0
  21. package/core/commands/cohorte-review.md +224 -0
  22. package/core/commands/cohorte-ship.md +155 -0
  23. package/core/commands/cohorte-spec.md +105 -0
  24. package/core/commands/cohorte-update-pipeline.md +115 -0
  25. package/core/hooks/gate.py +2931 -0
  26. package/core/templates/agent-handoff.md +34 -0
  27. package/core/templates/brainstorm-return.md +42 -0
  28. package/core/templates/decisions.template.md +42 -0
  29. package/core/templates/design-brief.md +37 -0
  30. package/core/templates/patch.template.md +86 -0
  31. package/core/templates/pr-body.md +25 -0
  32. package/core/templates/review-feedback.md +46 -0
  33. package/core/templates/spec.template.md +88 -0
  34. package/core/templates/steps/init-pipeline/01-detect-stack.md +44 -0
  35. package/core/templates/steps/init-pipeline/02-interview-gaps.md +55 -0
  36. package/core/templates/steps/init-pipeline/03-draft-profile.md +9 -0
  37. package/core/templates/steps/init-pipeline/04-write-render.md +91 -0
  38. package/core/templates/steps/init-pipeline/05-report.md +11 -0
  39. package/core/templates/steps/review-pr/01-pr-mode.md +54 -0
  40. package/core/workflows/audit.js +306 -0
  41. package/core/workflows/loop.js +687 -0
  42. package/core/workflows/refactor.js +291 -0
  43. package/core/workflows/review.js +491 -0
  44. package/install.ps1 +72 -0
  45. package/install.sh +69 -0
  46. package/lib/doctor.js +472 -0
  47. package/lib/install.js +377 -0
  48. package/lib/project.js +322 -0
  49. package/lib/render.js +121 -0
  50. package/lib/versions.js +145 -0
  51. package/lib/yaml.js +174 -0
  52. package/package.json +36 -17
  53. package/profile/PIPELINE.template.md +250 -0
  54. package/profile/SCHEMA.md +749 -0
  55. package/profile/cohorte.config.template.yaml +43 -0
  56. package/scripts/feature-diff.sh +118 -0
  57. package/scripts/kanban-move.sh +307 -0
  58. package/scripts/metrics/collect.mjs +542 -0
  59. package/scripts/metrics/prices.json +42 -0
  60. package/scripts/new-feature.sh.template +122 -0
  61. package/scripts/preflight.sh +114 -0
  62. package/scripts/remove-feature.sh.template +56 -0
  63. package/assets/manifest.json +0 -203
  64. package/assets/migrations/config/README.md +0 -12
  65. package/assets/migrations/state/0001_init.sql +0 -154
  66. package/assets/prompts/README.md +0 -11
  67. package/assets/prompts/agents/brainstormer.md +0 -3
  68. package/assets/prompts/agents/fixer.md +0 -7
  69. package/assets/prompts/agents/implementer.md +0 -12
  70. package/assets/prompts/agents/reviewer.md +0 -8
  71. package/assets/prompts/agents/security-reviewer.md +0 -7
  72. package/assets/prompts/agents/spec-author.md +0 -3
  73. package/assets/prompts/phases/build.md +0 -5
  74. package/assets/prompts/phases/review.md +0 -5
  75. package/assets/prompts/phases/test.md +0 -5
  76. package/assets/prompts/system.md +0 -11
  77. package/assets/schemas/agent-output.schema.json +0 -225
  78. package/assets/schemas/auth-status.schema.json +0 -87
  79. package/assets/schemas/command-result.schema.json +0 -192
  80. package/assets/schemas/commands.schema.json +0 -959
  81. package/assets/schemas/config.schema.json +0 -2281
  82. package/assets/schemas/doctor-report.schema.json +0 -104
  83. package/assets/schemas/events.schema.json +0 -8514
  84. package/assets/schemas/fake-script.schema.json +0 -549
  85. package/assets/schemas/inspect.schema.json +0 -3133
  86. package/assets/schemas/manifest.schema.json +0 -79
  87. package/assets/schemas/ownership.schema.json +0 -52
  88. package/assets/schemas/policy-verdict.schema.json +0 -282
  89. package/assets/schemas/project-model.schema.json +0 -783
  90. package/assets/schemas/project-status.schema.json +0 -217
  91. package/assets/schemas/reconcile-plan.schema.json +0 -154
  92. package/assets/schemas/run-diff.schema.json +0 -177
  93. package/assets/schemas/run-snapshot-manifest.schema.json +0 -2104
  94. package/assets/schemas/run-state.schema.json +0 -1755
  95. package/assets/schemas/runtime-capabilities.schema.json +0 -1545
  96. package/assets/schemas/sandbox-capabilities.schema.json +0 -116
  97. package/assets/schemas/skill.schema.json +0 -87
  98. package/assets/schemas/spec.schema.json +0 -202
  99. package/assets/schemas/tool-catalogue.schema.json +0 -655
  100. package/assets/schemas/trust-record.schema.json +0 -38
  101. package/assets/skills/README.md +0 -9
  102. package/assets/skills/inspect-surface.md +0 -4
  103. package/dist/agent-host.mjs +0 -2187
  104. package/dist/agent-host.mjs.map +0 -1
  105. package/dist/bundle-manifest.json +0 -128
  106. package/dist/chunks/__host-DgGPyco9.mjs +0 -18
  107. package/dist/chunks/__host-DgGPyco9.mjs.map +0 -1
  108. package/dist/chunks/align-ds-r_X_1aQ_.mjs +0 -93
  109. package/dist/chunks/align-ds-r_X_1aQ_.mjs.map +0 -1
  110. package/dist/chunks/approve-Cv135UqI.mjs +0 -19
  111. package/dist/chunks/approve-Cv135UqI.mjs.map +0 -1
  112. package/dist/chunks/audit-B4ZWQ_DI.mjs +0 -179
  113. package/dist/chunks/audit-B4ZWQ_DI.mjs.map +0 -1
  114. package/dist/chunks/auth-BT5oVp76.mjs +0 -132
  115. package/dist/chunks/auth-BT5oVp76.mjs.map +0 -1
  116. package/dist/chunks/auth-Dnlksuo5.mjs +0 -141
  117. package/dist/chunks/auth-Dnlksuo5.mjs.map +0 -1
  118. package/dist/chunks/brainstorm-SJwOIEif.mjs +0 -123
  119. package/dist/chunks/brainstorm-SJwOIEif.mjs.map +0 -1
  120. package/dist/chunks/build-C_-mbZfD.mjs +0 -19
  121. package/dist/chunks/build-C_-mbZfD.mjs.map +0 -1
  122. package/dist/chunks/cancel-KV_cpsqS.mjs +0 -15
  123. package/dist/chunks/cancel-KV_cpsqS.mjs.map +0 -1
  124. package/dist/chunks/canonical-C8UxeEmB.mjs +0 -57
  125. package/dist/chunks/canonical-C8UxeEmB.mjs.map +0 -1
  126. package/dist/chunks/catalogue-IaCJdfB8.mjs +0 -1549
  127. package/dist/chunks/catalogue-IaCJdfB8.mjs.map +0 -1
  128. package/dist/chunks/compose-DRKjQcn0.mjs +0 -7333
  129. package/dist/chunks/compose-DRKjQcn0.mjs.map +0 -1
  130. package/dist/chunks/config-Cqu5XQoP.mjs +0 -96
  131. package/dist/chunks/config-Cqu5XQoP.mjs.map +0 -1
  132. package/dist/chunks/contract-DjssDPpS.mjs +0 -335
  133. package/dist/chunks/contract-DjssDPpS.mjs.map +0 -1
  134. package/dist/chunks/contract-bQ9FJl4N.mjs +0 -123
  135. package/dist/chunks/contract-bQ9FJl4N.mjs.map +0 -1
  136. package/dist/chunks/deny-ClTxSvHJ.mjs +0 -15
  137. package/dist/chunks/deny-ClTxSvHJ.mjs.map +0 -1
  138. package/dist/chunks/diff-Qw0II0sj.mjs +0 -101
  139. package/dist/chunks/diff-Qw0II0sj.mjs.map +0 -1
  140. package/dist/chunks/discover-BZPolSZG.mjs +0 -21
  141. package/dist/chunks/discover-BZPolSZG.mjs.map +0 -1
  142. package/dist/chunks/doctor-DcDFPvQM.mjs +0 -222
  143. package/dist/chunks/doctor-DcDFPvQM.mjs.map +0 -1
  144. package/dist/chunks/fix-C9roGiQz.mjs +0 -82
  145. package/dist/chunks/fix-C9roGiQz.mjs.map +0 -1
  146. package/dist/chunks/fleet-yWHQY2ya.mjs +0 -297
  147. package/dist/chunks/fleet-yWHQY2ya.mjs.map +0 -1
  148. package/dist/chunks/gc-BBXlBF5w.mjs +0 -161
  149. package/dist/chunks/gc-BBXlBF5w.mjs.map +0 -1
  150. package/dist/chunks/init--FxxkrcT.mjs +0 -63
  151. package/dist/chunks/init--FxxkrcT.mjs.map +0 -1
  152. package/dist/chunks/inspect-Buby4cQD.mjs +0 -22
  153. package/dist/chunks/inspect-Buby4cQD.mjs.map +0 -1
  154. package/dist/chunks/intake-C1pesxCJ.mjs +0 -12
  155. package/dist/chunks/intake-C1pesxCJ.mjs.map +0 -1
  156. package/dist/chunks/logs-Giq5sUau.mjs +0 -25
  157. package/dist/chunks/logs-Giq5sUau.mjs.map +0 -1
  158. package/dist/chunks/loop-BWsUpyus.mjs +0 -212
  159. package/dist/chunks/loop-BWsUpyus.mjs.map +0 -1
  160. package/dist/chunks/migrate-DuYCAbE3.mjs +0 -33
  161. package/dist/chunks/migrate-DuYCAbE3.mjs.map +0 -1
  162. package/dist/chunks/models-Btp6X2YZ.mjs +0 -24
  163. package/dist/chunks/models-Btp6X2YZ.mjs.map +0 -1
  164. package/dist/chunks/obsidian-BHLkXx_H.mjs +0 -235
  165. package/dist/chunks/obsidian-BHLkXx_H.mjs.map +0 -1
  166. package/dist/chunks/patch-sAgVqjpx.mjs +0 -50
  167. package/dist/chunks/patch-sAgVqjpx.mjs.map +0 -1
  168. package/dist/chunks/pause-BASBfKLO.mjs +0 -16
  169. package/dist/chunks/pause-BASBfKLO.mjs.map +0 -1
  170. package/dist/chunks/policy-Du7WVBFX.mjs +0 -139
  171. package/dist/chunks/policy-Du7WVBFX.mjs.map +0 -1
  172. package/dist/chunks/providers-Dx78imKj.mjs +0 -19
  173. package/dist/chunks/providers-Dx78imKj.mjs.map +0 -1
  174. package/dist/chunks/reconcile-BHn66X3C.mjs +0 -50
  175. package/dist/chunks/reconcile-BHn66X3C.mjs.map +0 -1
  176. package/dist/chunks/refactor-DV3RfGjk.mjs +0 -153
  177. package/dist/chunks/refactor-DV3RfGjk.mjs.map +0 -1
  178. package/dist/chunks/render-DyZr5Lgi.mjs +0 -53
  179. package/dist/chunks/render-DyZr5Lgi.mjs.map +0 -1
  180. package/dist/chunks/resume-GJQRb2Eb.mjs +0 -15
  181. package/dist/chunks/resume-GJQRb2Eb.mjs.map +0 -1
  182. package/dist/chunks/retro-Dr-2RTNN.mjs +0 -78
  183. package/dist/chunks/retro-Dr-2RTNN.mjs.map +0 -1
  184. package/dist/chunks/retry-CLrUem1H.mjs +0 -15
  185. package/dist/chunks/retry-CLrUem1H.mjs.map +0 -1
  186. package/dist/chunks/review-ZsBqp3vZ.mjs +0 -35
  187. package/dist/chunks/review-ZsBqp3vZ.mjs.map +0 -1
  188. package/dist/chunks/run-BGabwbDL.mjs +0 -109
  189. package/dist/chunks/run-BGabwbDL.mjs.map +0 -1
  190. package/dist/chunks/run-tool-C3rAv4XF.mjs +0 -26
  191. package/dist/chunks/run-tool-C3rAv4XF.mjs.map +0 -1
  192. package/dist/chunks/scan-C5uDr7Yq.mjs +0 -167
  193. package/dist/chunks/scan-C5uDr7Yq.mjs.map +0 -1
  194. package/dist/chunks/schema-Bq9qtgsd.mjs +0 -583
  195. package/dist/chunks/schema-Bq9qtgsd.mjs.map +0 -1
  196. package/dist/chunks/send-BdnJ85Nz.mjs +0 -19
  197. package/dist/chunks/send-BdnJ85Nz.mjs.map +0 -1
  198. package/dist/chunks/ship-BizfUe62.mjs +0 -140
  199. package/dist/chunks/ship-BizfUe62.mjs.map +0 -1
  200. package/dist/chunks/shutdown-BM92Iyv2.mjs +0 -15
  201. package/dist/chunks/shutdown-BM92Iyv2.mjs.map +0 -1
  202. package/dist/chunks/skip-DZG5kpcH.mjs +0 -18
  203. package/dist/chunks/skip-DZG5kpcH.mjs.map +0 -1
  204. package/dist/chunks/spec-C2h3U64g.mjs +0 -65
  205. package/dist/chunks/spec-C2h3U64g.mjs.map +0 -1
  206. package/dist/chunks/spec-path-tptqR7W8.mjs +0 -10
  207. package/dist/chunks/spec-path-tptqR7W8.mjs.map +0 -1
  208. package/dist/chunks/src-Bfr1yzsn.mjs +0 -1689
  209. package/dist/chunks/src-Bfr1yzsn.mjs.map +0 -1
  210. package/dist/chunks/src-CPW2_Ons.mjs +0 -5487
  211. package/dist/chunks/src-CPW2_Ons.mjs.map +0 -1
  212. package/dist/chunks/src-Cu3TxNob.mjs +0 -783
  213. package/dist/chunks/src-Cu3TxNob.mjs.map +0 -1
  214. package/dist/chunks/src-DNsLSxgm.mjs +0 -928
  215. package/dist/chunks/src-DNsLSxgm.mjs.map +0 -1
  216. package/dist/chunks/src-DbS9gkJy.mjs +0 -117
  217. package/dist/chunks/src-DbS9gkJy.mjs.map +0 -1
  218. package/dist/chunks/src-yi5whv3n.mjs +0 -2118
  219. package/dist/chunks/src-yi5whv3n.mjs.map +0 -1
  220. package/dist/chunks/status-SMjiOMYy.mjs +0 -29
  221. package/dist/chunks/status-SMjiOMYy.mjs.map +0 -1
  222. package/dist/chunks/tail-BuhT-2PH.mjs +0 -25
  223. package/dist/chunks/tail-BuhT-2PH.mjs.map +0 -1
  224. package/dist/chunks/update-BXIppsbi.mjs +0 -16
  225. package/dist/chunks/update-BXIppsbi.mjs.map +0 -1
  226. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs +0 -56
  227. package/dist/chunks/update-pipeline-Du-Gu1Pl.mjs.map +0 -1
  228. package/dist/cli.mjs +0 -186
  229. package/dist/cli.mjs.map +0 -1
@@ -1,655 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/tool-catalogue.schema.json",
4
- "title": "Cohorte tool catalogue: a tool call, one branch per tool of DESIGN 2.7",
5
- "type": "object",
6
- "required": [
7
- "name",
8
- "input"
9
- ],
10
- "properties": {
11
- "name": {
12
- "type": "string",
13
- "description": "the tool as the catalogue names it"
14
- },
15
- "input": {
16
- "description": "the call's arguments, narrowed by the branch for this tool"
17
- },
18
- "effect": {
19
- "type": "string",
20
- "description": "read | write | execute | network | control"
21
- },
22
- "terminal": {
23
- "type": "boolean",
24
- "description": "a terminal tool ends the agent turn"
25
- }
26
- },
27
- "oneOf": [
28
- {
29
- "title": "read_file",
30
- "description": "Read a file as sealed text with line numbers. offset/limit page through it; binary files error; capped at 256 KiB per call.",
31
- "properties": {
32
- "name": {
33
- "const": "read_file"
34
- },
35
- "input": {
36
- "type": "object",
37
- "required": [
38
- "path"
39
- ],
40
- "properties": {
41
- "path": {
42
- "type": "string"
43
- },
44
- "offset": {
45
- "type": "integer",
46
- "minimum": 0
47
- },
48
- "limit": {
49
- "type": "integer",
50
- "minimum": 1
51
- }
52
- }
53
- },
54
- "effect": {
55
- "const": "read"
56
- },
57
- "terminal": {
58
- "const": false
59
- }
60
- }
61
- },
62
- {
63
- "title": "list_files",
64
- "description": "List files under a path (default the workspace root), filtered by glob. Deny sets are filtered out; outgoing symlinks are never followed.",
65
- "properties": {
66
- "name": {
67
- "const": "list_files"
68
- },
69
- "input": {
70
- "type": "object",
71
- "properties": {
72
- "path": {
73
- "type": "string"
74
- },
75
- "glob": {
76
- "type": "string"
77
- },
78
- "maxEntries": {
79
- "type": "integer",
80
- "minimum": 1
81
- }
82
- }
83
- },
84
- "effect": {
85
- "const": "read"
86
- },
87
- "terminal": {
88
- "const": false
89
- }
90
- }
91
- },
92
- {
93
- "title": "search",
94
- "description": "Search file contents for a pattern (a literal argv element, never a shell string). Every hit is filtered against the deny sets and the grant before it is returned.",
95
- "properties": {
96
- "name": {
97
- "const": "search"
98
- },
99
- "input": {
100
- "type": "object",
101
- "required": [
102
- "pattern"
103
- ],
104
- "properties": {
105
- "pattern": {
106
- "type": "string"
107
- },
108
- "path": {
109
- "type": "string"
110
- },
111
- "glob": {
112
- "type": "string"
113
- },
114
- "caseInsensitive": {
115
- "type": "boolean"
116
- },
117
- "maxMatches": {
118
- "type": "integer",
119
- "minimum": 1
120
- }
121
- }
122
- },
123
- "effect": {
124
- "const": "read"
125
- },
126
- "terminal": {
127
- "const": false
128
- }
129
- }
130
- },
131
- {
132
- "title": "write_file",
133
- "description": "Write the complete content of a file, creating it if it does not exist. The whole file is replaced.",
134
- "properties": {
135
- "name": {
136
- "const": "write_file"
137
- },
138
- "input": {
139
- "type": "object",
140
- "required": [
141
- "path",
142
- "content"
143
- ],
144
- "properties": {
145
- "path": {
146
- "type": "string"
147
- },
148
- "content": {
149
- "type": "string"
150
- }
151
- }
152
- },
153
- "effect": {
154
- "const": "write"
155
- },
156
- "terminal": {
157
- "const": false
158
- }
159
- }
160
- },
161
- {
162
- "title": "patch_file",
163
- "description": "Apply exact-match text edits to a file: each oldText must occur exactly once in the current content, or the call fails without writing anything.",
164
- "properties": {
165
- "name": {
166
- "const": "patch_file"
167
- },
168
- "input": {
169
- "type": "object",
170
- "required": [
171
- "path",
172
- "edits"
173
- ],
174
- "properties": {
175
- "path": {
176
- "type": "string"
177
- },
178
- "edits": {
179
- "type": "array",
180
- "items": {
181
- "type": "object",
182
- "required": [
183
- "oldText",
184
- "newText"
185
- ],
186
- "properties": {
187
- "oldText": {
188
- "type": "string"
189
- },
190
- "newText": {
191
- "type": "string"
192
- }
193
- }
194
- },
195
- "minItems": 1
196
- }
197
- }
198
- },
199
- "effect": {
200
- "const": "write"
201
- },
202
- "terminal": {
203
- "const": false
204
- }
205
- }
206
- },
207
- {
208
- "title": "run_command",
209
- "description": "Run one allow-listed command (argv only, never a shell line) and return its output.",
210
- "properties": {
211
- "name": {
212
- "const": "run_command"
213
- },
214
- "input": {
215
- "type": "object",
216
- "required": [
217
- "argv"
218
- ],
219
- "properties": {
220
- "argv": {
221
- "type": "array",
222
- "items": {
223
- "type": "string"
224
- },
225
- "minItems": 1
226
- },
227
- "cwd": {
228
- "type": "string"
229
- },
230
- "timeoutMs": {
231
- "type": "integer",
232
- "minimum": 1
233
- }
234
- }
235
- },
236
- "effect": {
237
- "const": "execute"
238
- },
239
- "terminal": {
240
- "const": false
241
- }
242
- }
243
- },
244
- {
245
- "title": "git_diff",
246
- "description": "Show a diff of the worktree against 'run-base' (the run's pinned base, the default on a read-only review ref), 'integration' (the default in a slot) or 'checkpoint'.",
247
- "properties": {
248
- "name": {
249
- "const": "git_diff"
250
- },
251
- "input": {
252
- "type": "object",
253
- "properties": {
254
- "base": {
255
- "type": "string",
256
- "enum": [
257
- "run-base",
258
- "integration",
259
- "checkpoint"
260
- ]
261
- },
262
- "paths": {
263
- "type": "array",
264
- "items": {
265
- "type": "string"
266
- }
267
- },
268
- "stat": {
269
- "type": "boolean"
270
- }
271
- }
272
- },
273
- "effect": {
274
- "const": "read"
275
- },
276
- "terminal": {
277
- "const": false
278
- }
279
- }
280
- },
281
- {
282
- "title": "approval_request",
283
- "description": "Ask a human a question before proceeding, optionally offering a fixed set of answers. Waits for a decision.",
284
- "properties": {
285
- "name": {
286
- "const": "approval_request"
287
- },
288
- "input": {
289
- "type": "object",
290
- "required": [
291
- "question"
292
- ],
293
- "properties": {
294
- "question": {
295
- "type": "string"
296
- },
297
- "options": {
298
- "type": "array",
299
- "items": {
300
- "type": "string"
301
- }
302
- }
303
- }
304
- },
305
- "effect": {
306
- "const": "control"
307
- },
308
- "terminal": {
309
- "const": false
310
- }
311
- }
312
- },
313
- {
314
- "title": "submit_result",
315
- "description": "Submit the final structured result for this task. Call submit_result alone, last: no other tool call may follow it in the same batch.",
316
- "properties": {
317
- "name": {
318
- "const": "submit_result"
319
- },
320
- "input": {
321
- "type": "object",
322
- "required": [
323
- "status",
324
- "summary",
325
- "artifacts",
326
- "findings",
327
- "checks",
328
- "questions",
329
- "confidence"
330
- ],
331
- "properties": {
332
- "status": {
333
- "type": "string",
334
- "enum": [
335
- "completed",
336
- "failed",
337
- "blocked",
338
- "needs-input"
339
- ]
340
- },
341
- "summary": {
342
- "type": "string",
343
- "maxLength": 2000
344
- },
345
- "artifacts": {
346
- "type": "array",
347
- "items": {
348
- "type": "object",
349
- "required": [
350
- "path",
351
- "kind"
352
- ],
353
- "properties": {
354
- "path": {
355
- "type": "string"
356
- },
357
- "kind": {
358
- "type": "string",
359
- "enum": [
360
- "diff",
361
- "file",
362
- "test",
363
- "report",
364
- "contract"
365
- ]
366
- },
367
- "sha256": {
368
- "type": "string"
369
- }
370
- }
371
- }
372
- },
373
- "findings": {
374
- "type": "array",
375
- "items": {
376
- "type": "object",
377
- "required": [
378
- "severity",
379
- "kind",
380
- "rule",
381
- "expected",
382
- "actual",
383
- "confidence",
384
- "scope"
385
- ],
386
- "properties": {
387
- "id": {
388
- "type": "string",
389
- "pattern": "^fnd_[0-9a-f]{16}$"
390
- },
391
- "severity": {
392
- "type": "string",
393
- "enum": [
394
- "critical",
395
- "major",
396
- "minor",
397
- "info"
398
- ]
399
- },
400
- "kind": {
401
- "type": "string",
402
- "enum": [
403
- "spec-violation",
404
- "security",
405
- "quality",
406
- "complexity",
407
- "check-failure"
408
- ]
409
- },
410
- "rule": {
411
- "type": "string"
412
- },
413
- "location": {
414
- "type": "object",
415
- "required": [
416
- "file"
417
- ],
418
- "properties": {
419
- "file": {
420
- "type": "string"
421
- },
422
- "line": {
423
- "type": "integer",
424
- "minimum": 1
425
- },
426
- "endLine": {
427
- "type": "integer",
428
- "minimum": 1
429
- },
430
- "symbol": {
431
- "type": "string"
432
- }
433
- }
434
- },
435
- "reproduction": {
436
- "type": "string"
437
- },
438
- "expected": {
439
- "type": "string"
440
- },
441
- "actual": {
442
- "type": "string"
443
- },
444
- "confidence": {
445
- "type": "number",
446
- "minimum": 0,
447
- "maximum": 1
448
- },
449
- "suggestedFix": {
450
- "type": "string"
451
- },
452
- "scope": {
453
- "type": "string",
454
- "enum": [
455
- "in-scope",
456
- "deferred"
457
- ]
458
- },
459
- "outOfScopeReason": {
460
- "type": "string"
461
- }
462
- }
463
- },
464
- "maxItems": 30
465
- },
466
- "checks": {
467
- "type": "array",
468
- "items": {
469
- "type": "object",
470
- "required": [
471
- "name",
472
- "status"
473
- ],
474
- "properties": {
475
- "name": {
476
- "type": "string"
477
- },
478
- "status": {
479
- "type": "string",
480
- "enum": [
481
- "passed",
482
- "failed",
483
- "skipped",
484
- "not-run"
485
- ]
486
- },
487
- "command": {
488
- "type": "string"
489
- }
490
- }
491
- }
492
- },
493
- "questions": {
494
- "type": "array",
495
- "items": {
496
- "type": "string"
497
- }
498
- },
499
- "confidence": {
500
- "type": "number",
501
- "minimum": 0,
502
- "maximum": 1
503
- },
504
- "assumptions": {
505
- "type": "array",
506
- "items": {
507
- "type": "object",
508
- "required": [
509
- "gap",
510
- "decision"
511
- ],
512
- "properties": {
513
- "gap": {
514
- "type": "string"
515
- },
516
- "decision": {
517
- "type": "string"
518
- }
519
- }
520
- }
521
- },
522
- "remediationAddressed": {
523
- "type": "array",
524
- "items": {
525
- "type": "object",
526
- "required": [
527
- "findingId",
528
- "how"
529
- ],
530
- "properties": {
531
- "findingId": {
532
- "type": "string"
533
- },
534
- "how": {
535
- "type": "string"
536
- }
537
- }
538
- }
539
- }
540
- }
541
- },
542
- "effect": {
543
- "const": "control"
544
- },
545
- "terminal": {
546
- "const": true
547
- }
548
- }
549
- },
550
- {
551
- "title": "git_commit",
552
- "description": "Reserved: granted to nobody in V3.0. Cohorte alone commits agent work.",
553
- "properties": {
554
- "name": {
555
- "const": "git_commit"
556
- },
557
- "input": {
558
- "type": "object",
559
- "required": [
560
- "message"
561
- ],
562
- "properties": {
563
- "message": {
564
- "type": "string"
565
- }
566
- }
567
- },
568
- "effect": {
569
- "const": "write"
570
- },
571
- "terminal": {
572
- "const": false
573
- }
574
- }
575
- },
576
- {
577
- "title": "network_request",
578
- "description": "Reserved: granted to nobody in V3.0. Agents have no network access.",
579
- "properties": {
580
- "name": {
581
- "const": "network_request"
582
- },
583
- "input": {
584
- "type": "object",
585
- "required": [
586
- "url"
587
- ],
588
- "properties": {
589
- "url": {
590
- "type": "string"
591
- },
592
- "method": {
593
- "type": "string"
594
- }
595
- }
596
- },
597
- "effect": {
598
- "const": "network"
599
- },
600
- "terminal": {
601
- "const": false
602
- }
603
- }
604
- },
605
- {
606
- "title": "secret_read",
607
- "description": "Reserved: granted to nobody in V3.0.",
608
- "properties": {
609
- "name": {
610
- "const": "secret_read"
611
- },
612
- "input": {
613
- "type": "object",
614
- "required": [
615
- "id"
616
- ],
617
- "properties": {
618
- "id": {
619
- "type": "string"
620
- }
621
- }
622
- },
623
- "effect": {
624
- "const": "read"
625
- },
626
- "terminal": {
627
- "const": false
628
- }
629
- }
630
- },
631
- {
632
- "title": "a tool added by a later minor version: readers MUST ignore it",
633
- "properties": {
634
- "name": {
635
- "not": {
636
- "enum": [
637
- "read_file",
638
- "list_files",
639
- "search",
640
- "write_file",
641
- "patch_file",
642
- "run_command",
643
- "git_diff",
644
- "approval_request",
645
- "submit_result",
646
- "git_commit",
647
- "network_request",
648
- "secret_read"
649
- ]
650
- }
651
- }
652
- }
653
- }
654
- ]
655
- }
@@ -1,38 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cohorte.dev/schemas/3/trust-record.schema.json",
4
- "title": "Cohorte trust record (~/.cohorte/trust/<projectKeyId>.json)",
5
- "type": "object",
6
- "required": [
7
- "policySha256",
8
- "loosenedKeys",
9
- "grantedAt",
10
- "grantedBy",
11
- "mac"
12
- ],
13
- "properties": {
14
- "policySha256": {
15
- "type": "string",
16
- "pattern": "^[0-9a-f]{64}$"
17
- },
18
- "loosenedKeys": {
19
- "type": "array",
20
- "items": {
21
- "type": "string"
22
- }
23
- },
24
- "grantedAt": {
25
- "type": "string",
26
- "format": "date-time",
27
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
28
- },
29
- "grantedBy": {
30
- "type": "string",
31
- "minLength": 1
32
- },
33
- "mac": {
34
- "type": "string",
35
- "minLength": 1
36
- }
37
- }
38
- }
@@ -1,9 +0,0 @@
1
- # skills/
2
-
3
- Embedded inline skills (spec §8, DESIGN §9 "skill registry" is out of V3.0 — inline skills only).
4
-
5
- `scripts/embed-assets.ts` copies this whole directory into `apps/cli/assets/skills/**` and records it in
6
- `assets/manifest.json` (DESIGN 1.4 step 2). A `SkillManifest` owner was one of the PLAN PC-11 holes DESIGN
7
- amended for Wave 0; the skill files themselves land with the units that consume them (Wave 2+).
8
-
9
- This directory is empty at G0 on purpose.
@@ -1,4 +0,0 @@
1
- # Inspect surface
2
-
3
- Before changing a surface, identify its owner, public entry points, neighboring tests, and repository conventions.
4
- Read the smallest relevant files, map inputs to outputs, and record assumptions in the task result.