@tomflow/chatloop-tools 0.9.62 → 0.9.64

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 (154) hide show
  1. package/README.md +13 -1
  2. package/index.mjs +7 -7
  3. package/lib/context-control-run.mjs +23 -5
  4. package/lib/extension-proxy.mjs +29 -10
  5. package/lib/native-owner-v2.mjs +128 -0
  6. package/lib/release-health-checks.mjs +29 -5
  7. package/lib/trace-gateway.mjs +3 -1
  8. package/package.json +3 -13
  9. package/providers/extension.mjs +59 -16
  10. package/node_modules/@tomflow/chatloop-context/README.md +0 -240
  11. package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +0 -48
  12. package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +0 -151
  13. package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +0 -376
  14. package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +0 -266
  15. package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +0 -134
  16. package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +0 -82
  17. package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +0 -349
  18. package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +0 -72
  19. package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +0 -73
  20. package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +0 -507
  21. package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +0 -11
  22. package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +0 -192
  23. package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +0 -277
  24. package/node_modules/@tomflow/chatloop-context/index.mjs +0 -236
  25. package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +0 -86
  26. package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +0 -77
  27. package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +0 -1989
  28. package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +0 -69
  29. package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +0 -285
  30. package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +0 -298
  31. package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +0 -286
  32. package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +0 -115
  33. package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +0 -51
  34. package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +0 -75
  35. package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +0 -262
  36. package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +0 -246
  37. package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +0 -147
  38. package/node_modules/@tomflow/chatloop-context/lib/core/run-cancel.mjs +0 -54
  39. package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +0 -375
  40. package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +0 -397
  41. package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +0 -183
  42. package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +0 -13
  43. package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +0 -111
  44. package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +0 -107
  45. package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +0 -118
  46. package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +0 -20
  47. package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +0 -316
  48. package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +0 -153
  49. package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +0 -19
  50. package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +0 -117
  51. package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +0 -97
  52. package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +0 -169
  53. package/node_modules/@tomflow/chatloop-context/package.json +0 -40
  54. package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +0 -114
  55. package/node_modules/@tomflow/chatloop-extension/README.md +0 -124
  56. package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +0 -13
  57. package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +0 -153
  58. package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +0 -207
  59. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +0 -1
  60. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +0 -1
  61. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +0 -1
  62. package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +0 -1
  63. package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +0 -1
  64. package/node_modules/@tomflow/chatloop-extension/capabilities/entry_test.mjs +0 -1
  65. package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +0 -1
  66. package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +0 -1
  67. package/node_modules/@tomflow/chatloop-extension/capabilities/session.mjs +0 -1
  68. package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +0 -1
  69. package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +0 -1
  70. package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +0 -123
  71. package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +0 -183
  72. package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +0 -340
  73. package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +0 -2
  74. package/node_modules/@tomflow/chatloop-extension/extension/actions/entry_test.js +0 -241
  75. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +0 -393
  76. package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +0 -2
  77. package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +0 -56
  78. package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +0 -9
  79. package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +0 -20
  80. package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +0 -77
  81. package/node_modules/@tomflow/chatloop-extension/extension/actions/session.js +0 -52
  82. package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +0 -295
  83. package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +0 -24
  84. package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +0 -2
  85. package/node_modules/@tomflow/chatloop-extension/extension/background.js +0 -17
  86. package/node_modules/@tomflow/chatloop-extension/extension/clean.html +0 -5
  87. package/node_modules/@tomflow/chatloop-extension/extension/content.js +0 -40
  88. package/node_modules/@tomflow/chatloop-extension/extension/continue.html +0 -9
  89. package/node_modules/@tomflow/chatloop-extension/extension/dom.html +0 -17
  90. package/node_modules/@tomflow/chatloop-extension/extension/entry_test.html +0 -6
  91. package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +0 -9
  92. package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +0 -2
  93. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +0 -275
  94. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +0 -84
  95. package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +0 -107
  96. package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +0 -36
  97. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +0 -299
  98. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +0 -144
  99. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +0 -171
  100. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +0 -109
  101. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +0 -154
  102. package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +0 -259
  103. package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +0 -42
  104. package/node_modules/@tomflow/chatloop-extension/extension/popup.html +0 -25
  105. package/node_modules/@tomflow/chatloop-extension/extension/popup.js +0 -99
  106. package/node_modules/@tomflow/chatloop-extension/extension/reload.html +0 -17
  107. package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +0 -17
  108. package/node_modules/@tomflow/chatloop-extension/extension/session.html +0 -6
  109. package/node_modules/@tomflow/chatloop-extension/extension/start.html +0 -6
  110. package/node_modules/@tomflow/chatloop-extension/extension/status.html +0 -6
  111. package/node_modules/@tomflow/chatloop-extension/extension/text.html +0 -17
  112. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +0 -136
  113. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +0 -218
  114. package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +0 -124
  115. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +0 -296
  116. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +0 -186
  117. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +0 -126
  118. package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +0 -230
  119. package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +0 -163
  120. package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +0 -345
  121. package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +0 -192
  122. package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +0 -161
  123. package/node_modules/@tomflow/chatloop-extension/extension/worker/session-control.js +0 -75
  124. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +0 -197
  125. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +0 -205
  126. package/node_modules/@tomflow/chatloop-extension/index.mjs +0 -71
  127. package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +0 -19
  128. package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +0 -82
  129. package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +0 -303
  130. package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +0 -83
  131. package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +0 -45
  132. package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +0 -115
  133. package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +0 -75
  134. package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +0 -185
  135. package/node_modules/@tomflow/chatloop-extension/package.json +0 -38
  136. package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +0 -138
  137. package/node_modules/@tomflow/chatloop-trace/README.md +0 -118
  138. package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +0 -23
  139. package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +0 -22
  140. package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +0 -4
  141. package/node_modules/@tomflow/chatloop-trace/index.mjs +0 -59
  142. package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +0 -273
  143. package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +0 -308
  144. package/node_modules/@tomflow/chatloop-trace/lib/trace-retention.mjs +0 -140
  145. package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +0 -236
  146. package/node_modules/@tomflow/chatloop-trace/package.json +0 -30
  147. package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +0 -68
  148. package/node_modules/ps-list/index.d.ts +0 -76
  149. package/node_modules/ps-list/index.js +0 -366
  150. package/node_modules/ps-list/license +0 -9
  151. package/node_modules/ps-list/package.json +0 -44
  152. package/node_modules/ps-list/readme.md +0 -56
  153. package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
  154. package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
@@ -1,1989 +0,0 @@
1
- {
2
- "groups": [
3
- {
4
- "id": "project",
5
- "purpose": "Identity, authority, workspace resolution and immutable Project Materials",
6
- "startWith": "project.open",
7
- "order": 0
8
- },
9
- {
10
- "id": "task",
11
- "purpose": "Task status and revisions; raw get remains a distinct Registry read projection",
12
- "startWith": "task.open",
13
- "order": 4
14
- },
15
- {
16
- "id": "document",
17
- "purpose": "Immutable R/P drafts, issue preparation and exact version reads",
18
- "startWith": "document.list",
19
- "order": 5
20
- },
21
- {
22
- "id": "evidence",
23
- "purpose": "Store evidence references; collection remains with external providers",
24
- "startWith": "evidence.list",
25
- "order": 7
26
- },
27
- {
28
- "id": "context",
29
- "purpose": "Business progress, durable receipts, UNKNOWN effects and checkpoints",
30
- "startWith": "context.request.status",
31
- "order": 8
32
- },
33
- {
34
- "id": "sdk",
35
- "purpose": "Method discovery and exact schemas; no Project Store access",
36
- "startWith": "sdk.methods.describe",
37
- "order": 11
38
- },
39
- {
40
- "id": "presentation",
41
- "purpose": "Resolve incomplete R/P presentation evidence",
42
- "startWith": "presentation.resolve",
43
- "order": 25
44
- },
45
- {
46
- "id": "approval",
47
- "purpose": "Observe or revoke R/P decisions with actual user-turn evidence",
48
- "startWith": "approval.observe",
49
- "order": 27
50
- },
51
- {
52
- "id": "start",
53
- "purpose": "Persist a bounded Start lease after effective R/P approvals",
54
- "startWith": "start.reserve",
55
- "order": 30
56
- }
57
- ],
58
- "methods": [
59
- {
60
- "id": "project.list",
61
- "group": "project",
62
- "mode": "read",
63
- "description": "List authorized Project identities in a fixed {projects,incomplete,nextCursor,limit} page, default limit=30; use a visible Project cursor to continue.",
64
- "inputSchema": {
65
- "type": "object",
66
- "required": [
67
- "operation"
68
- ],
69
- "additionalProperties": false,
70
- "properties": {
71
- "operation": {
72
- "const": "project.list"
73
- },
74
- "limit": {
75
- "type": "integer",
76
- "minimum": 1,
77
- "maximum": 100
78
- },
79
- "cursor": {
80
- "type": "string",
81
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
82
- }
83
- }
84
- },
85
- "route": {
86
- "kind": "adapter",
87
- "name": "project.list"
88
- },
89
- "order": 0
90
- },
91
- {
92
- "id": "project.authority",
93
- "group": "project",
94
- "mode": "read",
95
- "description": "Check whether a project is actually managed and writable.",
96
- "inputSchema": {
97
- "type": "object",
98
- "required": [
99
- "operation",
100
- "projectId"
101
- ],
102
- "additionalProperties": false,
103
- "properties": {
104
- "operation": {
105
- "const": "project.authority"
106
- },
107
- "projectId": {
108
- "type": "string",
109
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
110
- }
111
- }
112
- },
113
- "route": {
114
- "kind": "core",
115
- "method": "projectBusinessAuthority",
116
- "params": [
117
- "projectId"
118
- ]
119
- },
120
- "order": 1
121
- },
122
- {
123
- "id": "project.material.list",
124
- "group": "project",
125
- "mode": "read",
126
- "description": "List versioned project materials without returning full bodies.",
127
- "inputSchema": {
128
- "type": "object",
129
- "required": [
130
- "operation",
131
- "projectId"
132
- ],
133
- "additionalProperties": false,
134
- "properties": {
135
- "operation": {
136
- "const": "project.material.list"
137
- },
138
- "projectId": {
139
- "type": "string",
140
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
141
- }
142
- }
143
- },
144
- "route": {
145
- "kind": "core",
146
- "method": "projectMaterialList",
147
- "params": [
148
- "projectId"
149
- ]
150
- },
151
- "order": 2
152
- },
153
- {
154
- "id": "project.material.get",
155
- "group": "project",
156
- "mode": "read",
157
- "description": "Read exact reviewed project Instructions or historical material by version.",
158
- "inputSchema": {
159
- "type": "object",
160
- "required": [
161
- "operation",
162
- "projectId",
163
- "materialId",
164
- "version"
165
- ],
166
- "additionalProperties": false,
167
- "properties": {
168
- "operation": {
169
- "const": "project.material.get"
170
- },
171
- "projectId": {
172
- "type": "string",
173
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
174
- },
175
- "materialId": {
176
- "type": "string",
177
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
178
- },
179
- "version": {
180
- "type": "integer",
181
- "minimum": 1
182
- }
183
- }
184
- },
185
- "route": {
186
- "kind": "core",
187
- "method": "projectMaterialGet",
188
- "params": [
189
- "projectId",
190
- "materialId",
191
- "version"
192
- ]
193
- },
194
- "order": 3
195
- },
196
- {
197
- "id": "task.list",
198
- "group": "task",
199
- "mode": "read",
200
- "description": "List tasks in a fixed {tasks,incomplete,nextCursor,limit} page, default limit=30; continue with the last-visible task cursor.",
201
- "inputSchema": {
202
- "type": "object",
203
- "required": [
204
- "operation",
205
- "projectId"
206
- ],
207
- "additionalProperties": false,
208
- "properties": {
209
- "operation": {
210
- "const": "task.list"
211
- },
212
- "projectId": {
213
- "type": "string",
214
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
215
- },
216
- "limit": {
217
- "type": "integer",
218
- "minimum": 1,
219
- "maximum": 100
220
- },
221
- "cursor": {
222
- "type": "string",
223
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
224
- }
225
- }
226
- },
227
- "route": {
228
- "kind": "core",
229
- "method": "taskList",
230
- "params": [
231
- "projectId",
232
- {
233
- "$object": {
234
- "limit": {
235
- "$field": "limit",
236
- "$default": 30
237
- },
238
- "cursor": {
239
- "$field": "cursor"
240
- }
241
- }
242
- }
243
- ]
244
- },
245
- "order": 4
246
- },
247
- {
248
- "id": "document.get",
249
- "group": "document",
250
- "mode": "read",
251
- "description": "Read an immutable R/P document at a precise version.",
252
- "inputSchema": {
253
- "type": "object",
254
- "required": [
255
- "operation",
256
- "projectId",
257
- "taskId",
258
- "documentId",
259
- "version"
260
- ],
261
- "additionalProperties": false,
262
- "properties": {
263
- "operation": {
264
- "const": "document.get"
265
- },
266
- "projectId": {
267
- "type": "string",
268
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
269
- },
270
- "taskId": {
271
- "type": "string",
272
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
273
- },
274
- "documentId": {
275
- "type": "string",
276
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
277
- },
278
- "version": {
279
- "type": "integer",
280
- "minimum": 1
281
- }
282
- }
283
- },
284
- "route": {
285
- "kind": "core",
286
- "method": "documentGet",
287
- "params": [
288
- "projectId",
289
- "taskId",
290
- "documentId",
291
- "version"
292
- ]
293
- },
294
- "order": 5
295
- },
296
- {
297
- "id": "document.list",
298
- "group": "document",
299
- "mode": "read",
300
- "description": "List versioned R/P documents of a task.",
301
- "inputSchema": {
302
- "type": "object",
303
- "required": [
304
- "operation",
305
- "projectId",
306
- "taskId"
307
- ],
308
- "additionalProperties": false,
309
- "properties": {
310
- "operation": {
311
- "const": "document.list"
312
- },
313
- "projectId": {
314
- "type": "string",
315
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
316
- },
317
- "taskId": {
318
- "type": "string",
319
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
320
- }
321
- }
322
- },
323
- "route": {
324
- "kind": "core",
325
- "method": "documentList",
326
- "params": [
327
- "projectId",
328
- "taskId"
329
- ]
330
- },
331
- "order": 6
332
- },
333
- {
334
- "id": "evidence.list",
335
- "group": "evidence",
336
- "mode": "read",
337
- "description": "List task evidence references and verification state.",
338
- "inputSchema": {
339
- "type": "object",
340
- "required": [
341
- "operation",
342
- "projectId",
343
- "taskId"
344
- ],
345
- "additionalProperties": false,
346
- "properties": {
347
- "operation": {
348
- "const": "evidence.list"
349
- },
350
- "projectId": {
351
- "type": "string",
352
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
353
- },
354
- "taskId": {
355
- "type": "string",
356
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
357
- }
358
- }
359
- },
360
- "route": {
361
- "kind": "core",
362
- "method": "evidenceList",
363
- "params": [
364
- "projectId",
365
- "taskId"
366
- ]
367
- },
368
- "order": 7
369
- },
370
- {
371
- "id": "context.history",
372
- "group": "context",
373
- "mode": "read",
374
- "description": "Read versioned history and receipts for a task.",
375
- "inputSchema": {
376
- "type": "object",
377
- "required": [
378
- "operation",
379
- "projectId",
380
- "taskId"
381
- ],
382
- "additionalProperties": false,
383
- "properties": {
384
- "operation": {
385
- "const": "context.history"
386
- },
387
- "projectId": {
388
- "type": "string",
389
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
390
- },
391
- "taskId": {
392
- "type": "string",
393
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
394
- }
395
- }
396
- },
397
- "route": {
398
- "kind": "core",
399
- "method": "history",
400
- "params": [
401
- "projectId",
402
- "taskId"
403
- ]
404
- },
405
- "order": 8
406
- },
407
- {
408
- "id": "context.resume",
409
- "group": "context",
410
- "mode": "read",
411
- "description": "Read one verified checkpoint snapshot; does not grant Browser Owner.",
412
- "inputSchema": {
413
- "type": "object",
414
- "required": [
415
- "operation",
416
- "projectId",
417
- "taskId",
418
- "checkpointId"
419
- ],
420
- "additionalProperties": false,
421
- "properties": {
422
- "operation": {
423
- "const": "context.resume"
424
- },
425
- "projectId": {
426
- "type": "string",
427
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
428
- },
429
- "taskId": {
430
- "type": "string",
431
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
432
- },
433
- "checkpointId": {
434
- "type": "string",
435
- "minLength": 8,
436
- "maxLength": 64
437
- },
438
- "maxBytes": {
439
- "type": "integer",
440
- "minimum": 16384,
441
- "maximum": 262144
442
- }
443
- }
444
- },
445
- "route": {
446
- "kind": "core",
447
- "method": "resume",
448
- "params": [
449
- "projectId",
450
- "taskId",
451
- "checkpointId",
452
- "maxBytes"
453
- ]
454
- },
455
- "order": 9
456
- },
457
- {
458
- "id": "context.request.status",
459
- "group": "context",
460
- "mode": "read",
461
- "description": "Check an unknown write using its original durable writeRequestId.",
462
- "inputSchema": {
463
- "type": "object",
464
- "required": [
465
- "operation",
466
- "projectId",
467
- "storeEpoch",
468
- "writeRequestId"
469
- ],
470
- "additionalProperties": false,
471
- "properties": {
472
- "operation": {
473
- "const": "context.request.status"
474
- },
475
- "projectId": {
476
- "type": "string",
477
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
478
- },
479
- "storeEpoch": {
480
- "type": "string",
481
- "minLength": 10,
482
- "maxLength": 64
483
- },
484
- "writeRequestId": {
485
- "type": "string",
486
- "minLength": 8,
487
- "maxLength": 128
488
- }
489
- }
490
- },
491
- "route": {
492
- "kind": "core",
493
- "method": "requestStatus",
494
- "params": [
495
- "$args"
496
- ]
497
- },
498
- "order": 10
499
- },
500
- {
501
- "id": "sdk.methods.list",
502
- "group": "sdk",
503
- "mode": "read",
504
- "description": "Discover capability groups first (view=groups), then methods by group and exact schemas via sdk.methods.describe.",
505
- "inputSchema": {
506
- "type": "object",
507
- "required": [
508
- "operation"
509
- ],
510
- "additionalProperties": false,
511
- "properties": {
512
- "operation": {
513
- "const": "sdk.methods.list"
514
- },
515
- "group": {
516
- "type": "string",
517
- "minLength": 1,
518
- "maxLength": 64
519
- },
520
- "view": {
521
- "enum": [
522
- "methods",
523
- "groups"
524
- ]
525
- }
526
- }
527
- },
528
- "route": {
529
- "kind": "adapter",
530
- "name": "sdk.methods.list"
531
- },
532
- "order": 11
533
- },
534
- {
535
- "id": "sdk.methods.describe",
536
- "group": "sdk",
537
- "mode": "read",
538
- "description": "Read the exact input schema, semantics and failure conditions of one method.",
539
- "inputSchema": {
540
- "type": "object",
541
- "required": [
542
- "operation",
543
- "methodId"
544
- ],
545
- "additionalProperties": false,
546
- "properties": {
547
- "operation": {
548
- "const": "sdk.methods.describe"
549
- },
550
- "methodId": {
551
- "type": "string",
552
- "minLength": 3,
553
- "maxLength": 128
554
- }
555
- }
556
- },
557
- "route": {
558
- "kind": "adapter",
559
- "name": "sdk.methods.describe"
560
- },
561
- "order": 12
562
- },
563
- {
564
- "id": "project.resolve",
565
- "group": "project",
566
- "mode": "read",
567
- "description": "Find authorized projects matching confirmed workspace roots; never guesses identity.",
568
- "inputSchema": {
569
- "type": "object",
570
- "required": [
571
- "operation",
572
- "workspaceRoots"
573
- ],
574
- "additionalProperties": false,
575
- "properties": {
576
- "operation": {
577
- "const": "project.resolve"
578
- },
579
- "workspaceRoots": {
580
- "type": "array",
581
- "minItems": 1,
582
- "maxItems": 16,
583
- "items": {
584
- "type": "string",
585
- "maxLength": 4096
586
- }
587
- }
588
- }
589
- },
590
- "route": {
591
- "kind": "adapter",
592
- "name": "project.resolve"
593
- },
594
- "order": 13
595
- },
596
- {
597
- "id": "project.open",
598
- "group": "project",
599
- "mode": "read",
600
- "description": "Open an authorized project summary, current instruction reference and task candidates.",
601
- "inputSchema": {
602
- "type": "object",
603
- "required": [
604
- "operation",
605
- "projectId"
606
- ],
607
- "additionalProperties": false,
608
- "properties": {
609
- "operation": {
610
- "const": "project.open"
611
- },
612
- "projectId": {
613
- "type": "string",
614
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
615
- }
616
- }
617
- },
618
- "route": {
619
- "kind": "adapter",
620
- "name": "project.open"
621
- },
622
- "order": 14
623
- },
624
- {
625
- "id": "task.open",
626
- "group": "task",
627
- "mode": "read",
628
- "description": "Load one chosen task current state and versioned recovery references.",
629
- "inputSchema": {
630
- "type": "object",
631
- "required": [
632
- "operation",
633
- "projectId",
634
- "taskId"
635
- ],
636
- "additionalProperties": false,
637
- "properties": {
638
- "operation": {
639
- "const": "task.open"
640
- },
641
- "projectId": {
642
- "type": "string",
643
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
644
- },
645
- "taskId": {
646
- "type": "string",
647
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
648
- }
649
- }
650
- },
651
- "route": {
652
- "kind": "adapter",
653
- "name": "task.open"
654
- },
655
- "order": 15,
656
- "lifecycle": {
657
- "surface": "public",
658
- "note": "Task plus Store epoch and Project authority"
659
- }
660
- },
661
- {
662
- "id": "project.material.put",
663
- "group": "project",
664
- "mode": "write",
665
- "description": "Write one immutable project material version.",
666
- "inputSchema": {
667
- "type": "object",
668
- "required": [
669
- "operation",
670
- "projectId",
671
- "materialId",
672
- "version",
673
- "kind",
674
- "body",
675
- "expectedProjectRevision",
676
- "expectedStoreEpoch",
677
- "writeRequestId"
678
- ],
679
- "additionalProperties": false,
680
- "properties": {
681
- "operation": {
682
- "const": "project.material.put"
683
- },
684
- "projectId": {
685
- "type": "string",
686
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
687
- },
688
- "materialId": {
689
- "type": "string",
690
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
691
- },
692
- "version": {
693
- "type": "integer",
694
- "minimum": 1
695
- },
696
- "kind": {
697
- "enum": [
698
- "R",
699
- "P",
700
- "INSTRUCTIONS",
701
- "HISTORY",
702
- "LEGACY_EVIDENCE",
703
- "REFERENCE"
704
- ]
705
- },
706
- "body": {
707
- "type": "string",
708
- "minLength": 1,
709
- "maxLength": 4194304
710
- },
711
- "expectedProjectRevision": {
712
- "type": "integer",
713
- "minimum": 1
714
- },
715
- "expectedStoreEpoch": {
716
- "type": "string",
717
- "minLength": 10,
718
- "maxLength": 64
719
- },
720
- "writeRequestId": {
721
- "type": "string",
722
- "minLength": 8,
723
- "maxLength": 128
724
- },
725
- "sourcePath": {
726
- "type": "string",
727
- "minLength": 1,
728
- "maxLength": 4096
729
- },
730
- "contentHash": {
731
- "type": "string",
732
- "pattern": "^[a-f0-9]{64}$"
733
- },
734
- "provenance": {
735
- "enum": [
736
- "USER_AUTHORED",
737
- "LEGACY_UNVERIFIED"
738
- ]
739
- }
740
- }
741
- },
742
- "route": {
743
- "kind": "core",
744
- "method": "projectMaterialPut",
745
- "params": [
746
- "$args"
747
- ]
748
- },
749
- "order": 16
750
- },
751
- {
752
- "id": "project.patch",
753
- "group": "project",
754
- "mode": "write",
755
- "description": "Change project context and explicit current Instructions reference with CAS.",
756
- "inputSchema": {
757
- "type": "object",
758
- "required": [
759
- "operation",
760
- "projectId",
761
- "expectedProjectRevision",
762
- "sharedContext",
763
- "expectedStoreEpoch",
764
- "writeRequestId"
765
- ],
766
- "additionalProperties": false,
767
- "properties": {
768
- "operation": {
769
- "const": "project.patch"
770
- },
771
- "projectId": {
772
- "type": "string",
773
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
774
- },
775
- "expectedProjectRevision": {
776
- "type": "integer",
777
- "minimum": 1
778
- },
779
- "sharedContext": {
780
- "type": "object"
781
- },
782
- "expectedStoreEpoch": {
783
- "type": "string",
784
- "minLength": 10,
785
- "maxLength": 64
786
- },
787
- "writeRequestId": {
788
- "type": "string",
789
- "minLength": 8,
790
- "maxLength": 128
791
- }
792
- }
793
- },
794
- "route": {
795
- "kind": "core",
796
- "method": "projectPatch",
797
- "params": [
798
- "$args"
799
- ]
800
- },
801
- "order": 17
802
- },
803
- {
804
- "id": "task.create",
805
- "group": "task",
806
- "mode": "write",
807
- "description": "Create a project-scoped task with an initial DRAFT state.",
808
- "inputSchema": {
809
- "type": "object",
810
- "required": [
811
- "operation",
812
- "projectId",
813
- "taskId",
814
- "title",
815
- "expectedStoreEpoch",
816
- "writeRequestId"
817
- ],
818
- "additionalProperties": false,
819
- "properties": {
820
- "operation": {
821
- "const": "task.create"
822
- },
823
- "projectId": {
824
- "type": "string",
825
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
826
- },
827
- "taskId": {
828
- "type": "string",
829
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
830
- },
831
- "title": {
832
- "type": "string",
833
- "minLength": 1,
834
- "maxLength": 200
835
- },
836
- "expectedStoreEpoch": {
837
- "type": "string",
838
- "minLength": 10,
839
- "maxLength": 64
840
- },
841
- "writeRequestId": {
842
- "type": "string",
843
- "minLength": 8,
844
- "maxLength": 128
845
- },
846
- "objective": {
847
- "type": "string",
848
- "maxLength": 10000
849
- },
850
- "context": {
851
- "type": "object"
852
- }
853
- }
854
- },
855
- "route": {
856
- "kind": "core",
857
- "method": "taskCreate",
858
- "params": [
859
- "$args"
860
- ]
861
- },
862
- "order": 18
863
- },
864
- {
865
- "id": "task.reopen",
866
- "group": "task",
867
- "mode": "write",
868
- "description": "Reopen a delivered task only for authorized same-scope repair.",
869
- "inputSchema": {
870
- "type": "object",
871
- "required": [
872
- "operation",
873
- "projectId",
874
- "taskId",
875
- "expectedTaskRevision",
876
- "reason",
877
- "userTurn",
878
- "expectedStoreEpoch",
879
- "writeRequestId"
880
- ],
881
- "additionalProperties": false,
882
- "properties": {
883
- "operation": {
884
- "const": "task.reopen"
885
- },
886
- "projectId": {
887
- "type": "string",
888
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
889
- },
890
- "taskId": {
891
- "type": "string",
892
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
893
- },
894
- "expectedTaskRevision": {
895
- "type": "integer",
896
- "minimum": 1
897
- },
898
- "reason": {
899
- "const": "REPAIR_SAME_SCOPE"
900
- },
901
- "userTurn": {
902
- "type": "string",
903
- "minLength": 8,
904
- "maxLength": 256
905
- },
906
- "expectedStoreEpoch": {
907
- "type": "string",
908
- "minLength": 10,
909
- "maxLength": 64
910
- },
911
- "writeRequestId": {
912
- "type": "string",
913
- "minLength": 8,
914
- "maxLength": 128
915
- }
916
- }
917
- },
918
- "route": {
919
- "kind": "core",
920
- "method": "taskReopen",
921
- "params": [
922
- "$args"
923
- ]
924
- },
925
- "order": 19
926
- },
927
- {
928
- "id": "task.reviewProjectRules",
929
- "group": "task",
930
- "mode": "write",
931
- "description": "Adopt verified new project rules or require R/P reapproval.",
932
- "inputSchema": {
933
- "type": "object",
934
- "required": [
935
- "operation",
936
- "projectId",
937
- "taskId",
938
- "expectedTaskRevision",
939
- "expectedProjectRevision",
940
- "impact",
941
- "reviewEvidenceRef",
942
- "expectedStoreEpoch",
943
- "writeRequestId"
944
- ],
945
- "additionalProperties": false,
946
- "properties": {
947
- "operation": {
948
- "const": "task.reviewProjectRules"
949
- },
950
- "projectId": {
951
- "type": "string",
952
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
953
- },
954
- "taskId": {
955
- "type": "string",
956
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
957
- },
958
- "expectedTaskRevision": {
959
- "type": "integer",
960
- "minimum": 1
961
- },
962
- "expectedProjectRevision": {
963
- "type": "integer",
964
- "minimum": 1
965
- },
966
- "impact": {
967
- "enum": [
968
- "NO_SCOPE_IMPACT",
969
- "R_AND_P_REAPPROVAL"
970
- ]
971
- },
972
- "reviewEvidenceRef": {
973
- "type": "string",
974
- "minLength": 8,
975
- "maxLength": 4096
976
- },
977
- "expectedStoreEpoch": {
978
- "type": "string",
979
- "minLength": 10,
980
- "maxLength": 64
981
- },
982
- "writeRequestId": {
983
- "type": "string",
984
- "minLength": 8,
985
- "maxLength": 128
986
- }
987
- }
988
- },
989
- "route": {
990
- "kind": "core",
991
- "method": "taskReviewProjectRules",
992
- "params": [
993
- "$args"
994
- ]
995
- },
996
- "order": 20
997
- },
998
- {
999
- "id": "task.accept",
1000
- "group": "task",
1001
- "mode": "write",
1002
- "description": "Record actual user delivery acceptance decision.",
1003
- "inputSchema": {
1004
- "type": "object",
1005
- "required": [
1006
- "operation",
1007
- "projectId",
1008
- "taskId",
1009
- "expectedTaskRevision",
1010
- "decision",
1011
- "userTurn",
1012
- "expectedStoreEpoch",
1013
- "writeRequestId"
1014
- ],
1015
- "additionalProperties": false,
1016
- "properties": {
1017
- "operation": {
1018
- "const": "task.accept"
1019
- },
1020
- "projectId": {
1021
- "type": "string",
1022
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1023
- },
1024
- "taskId": {
1025
- "type": "string",
1026
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1027
- },
1028
- "expectedTaskRevision": {
1029
- "type": "integer",
1030
- "minimum": 1
1031
- },
1032
- "decision": {
1033
- "enum": [
1034
- "ACCEPT",
1035
- "REJECT"
1036
- ]
1037
- },
1038
- "userTurn": {
1039
- "type": "string",
1040
- "minLength": 8,
1041
- "maxLength": 256
1042
- },
1043
- "expectedStoreEpoch": {
1044
- "type": "string",
1045
- "minLength": 10,
1046
- "maxLength": 64
1047
- },
1048
- "writeRequestId": {
1049
- "type": "string",
1050
- "minLength": 8,
1051
- "maxLength": 128
1052
- },
1053
- "comment": {
1054
- "type": "string",
1055
- "maxLength": 2000
1056
- }
1057
- }
1058
- },
1059
- "route": {
1060
- "kind": "core",
1061
- "method": "taskAccept",
1062
- "params": [
1063
- "$args"
1064
- ]
1065
- },
1066
- "order": 21
1067
- },
1068
- {
1069
- "id": "task.complete",
1070
- "group": "task",
1071
- "mode": "write",
1072
- "description": "Commit machine delivery outcome under current run-binding authorization.",
1073
- "inputSchema": {
1074
- "type": "object",
1075
- "required": [
1076
- "operation",
1077
- "projectId",
1078
- "taskId",
1079
- "expectedTaskRevision",
1080
- "expectedBindingRevision",
1081
- "runRef",
1082
- "runCredential",
1083
- "deliveryRef",
1084
- "expectedStoreEpoch",
1085
- "writeRequestId"
1086
- ],
1087
- "additionalProperties": false,
1088
- "properties": {
1089
- "operation": {
1090
- "const": "task.complete"
1091
- },
1092
- "projectId": {
1093
- "type": "string",
1094
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1095
- },
1096
- "taskId": {
1097
- "type": "string",
1098
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1099
- },
1100
- "expectedTaskRevision": {
1101
- "type": "integer",
1102
- "minimum": 1
1103
- },
1104
- "expectedBindingRevision": {
1105
- "type": "integer",
1106
- "minimum": 0
1107
- },
1108
- "runRef": {
1109
- "type": "string",
1110
- "minLength": 8,
1111
- "maxLength": 256
1112
- },
1113
- "runCredential": {
1114
- "type": "string",
1115
- "pattern": "^[0-9a-f]{64}$"
1116
- },
1117
- "deliveryRef": {
1118
- "type": "string",
1119
- "minLength": 8,
1120
- "maxLength": 4096
1121
- },
1122
- "expectedStoreEpoch": {
1123
- "type": "string",
1124
- "minLength": 10,
1125
- "maxLength": 64
1126
- },
1127
- "writeRequestId": {
1128
- "type": "string",
1129
- "minLength": 8,
1130
- "maxLength": 128
1131
- }
1132
- }
1133
- },
1134
- "route": {
1135
- "kind": "core",
1136
- "method": "taskComplete",
1137
- "params": [
1138
- "$args"
1139
- ]
1140
- },
1141
- "order": 22
1142
- },
1143
- {
1144
- "id": "task.patch",
1145
- "group": "task",
1146
- "mode": "write",
1147
- "description": "Patch permitted Task fields with revision and run-holder checks.",
1148
- "inputSchema": {
1149
- "type": "object",
1150
- "required": [
1151
- "operation",
1152
- "projectId",
1153
- "taskId",
1154
- "expectedTaskRevision",
1155
- "patch",
1156
- "expectedStoreEpoch",
1157
- "writeRequestId"
1158
- ],
1159
- "additionalProperties": false,
1160
- "properties": {
1161
- "operation": {
1162
- "const": "task.patch"
1163
- },
1164
- "projectId": {
1165
- "type": "string",
1166
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1167
- },
1168
- "taskId": {
1169
- "type": "string",
1170
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1171
- },
1172
- "expectedTaskRevision": {
1173
- "type": "integer",
1174
- "minimum": 1
1175
- },
1176
- "patch": {
1177
- "type": "object"
1178
- },
1179
- "expectedStoreEpoch": {
1180
- "type": "string",
1181
- "minLength": 10,
1182
- "maxLength": 64
1183
- },
1184
- "writeRequestId": {
1185
- "type": "string",
1186
- "minLength": 8,
1187
- "maxLength": 128
1188
- },
1189
- "expectedBindingRevision": {
1190
- "type": "integer",
1191
- "minimum": 0
1192
- },
1193
- "runRef": {
1194
- "type": "string",
1195
- "minLength": 8,
1196
- "maxLength": 256
1197
- },
1198
- "runCredential": {
1199
- "type": "string",
1200
- "pattern": "^[0-9a-f]{64}$"
1201
- }
1202
- }
1203
- },
1204
- "route": {
1205
- "kind": "core",
1206
- "method": "taskPatch",
1207
- "params": [
1208
- "$args"
1209
- ]
1210
- },
1211
- "order": 23
1212
- },
1213
- {
1214
- "id": "document.createDraft",
1215
- "group": "document",
1216
- "mode": "write",
1217
- "description": "Create immutable R/P draft version linked to a task.",
1218
- "inputSchema": {
1219
- "type": "object",
1220
- "required": [
1221
- "operation",
1222
- "projectId",
1223
- "taskId",
1224
- "documentId",
1225
- "version",
1226
- "kind",
1227
- "body",
1228
- "expectedTaskRevision",
1229
- "expectedStoreEpoch",
1230
- "writeRequestId"
1231
- ],
1232
- "additionalProperties": false,
1233
- "properties": {
1234
- "operation": {
1235
- "const": "document.createDraft"
1236
- },
1237
- "projectId": {
1238
- "type": "string",
1239
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1240
- },
1241
- "taskId": {
1242
- "type": "string",
1243
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1244
- },
1245
- "documentId": {
1246
- "type": "string",
1247
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1248
- },
1249
- "version": {
1250
- "type": "integer",
1251
- "minimum": 1
1252
- },
1253
- "kind": {
1254
- "enum": [
1255
- "R",
1256
- "P",
1257
- "INSTRUCTIONS",
1258
- "HISTORY",
1259
- "LEGACY_EVIDENCE",
1260
- "REFERENCE"
1261
- ]
1262
- },
1263
- "body": {
1264
- "type": "string",
1265
- "minLength": 1,
1266
- "maxLength": 4194304
1267
- },
1268
- "expectedTaskRevision": {
1269
- "type": "integer",
1270
- "minimum": 1
1271
- },
1272
- "expectedStoreEpoch": {
1273
- "type": "string",
1274
- "minLength": 10,
1275
- "maxLength": 64
1276
- },
1277
- "writeRequestId": {
1278
- "type": "string",
1279
- "minLength": 8,
1280
- "maxLength": 128
1281
- },
1282
- "requirementRef": {
1283
- "type": "object",
1284
- "additionalProperties": false,
1285
- "required": [
1286
- "documentId",
1287
- "version",
1288
- "contentHash"
1289
- ],
1290
- "properties": {
1291
- "documentId": {
1292
- "type": "string",
1293
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1294
- },
1295
- "version": {
1296
- "type": "integer",
1297
- "minimum": 1
1298
- },
1299
- "contentHash": {
1300
- "type": "string",
1301
- "pattern": "^[a-f0-9]{64}$"
1302
- }
1303
- }
1304
- }
1305
- }
1306
- },
1307
- "route": {
1308
- "kind": "core",
1309
- "method": "documentCreate",
1310
- "params": [
1311
- "$args"
1312
- ]
1313
- },
1314
- "order": 24
1315
- },
1316
- {
1317
- "id": "presentation.resolve",
1318
- "group": "presentation",
1319
- "mode": "write",
1320
- "description": "Resolve an uncompleted R/P presentation attempt with evidence.",
1321
- "inputSchema": {
1322
- "type": "object",
1323
- "required": [
1324
- "operation",
1325
- "projectId",
1326
- "taskId",
1327
- "issueId",
1328
- "outcome",
1329
- "sourceRef",
1330
- "expectedTaskRevision",
1331
- "expectedStoreEpoch",
1332
- "writeRequestId"
1333
- ],
1334
- "additionalProperties": false,
1335
- "properties": {
1336
- "operation": {
1337
- "const": "presentation.resolve"
1338
- },
1339
- "projectId": {
1340
- "type": "string",
1341
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1342
- },
1343
- "taskId": {
1344
- "type": "string",
1345
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1346
- },
1347
- "issueId": {
1348
- "type": "string",
1349
- "minLength": 8,
1350
- "maxLength": 64
1351
- },
1352
- "outcome": {
1353
- "enum": [
1354
- "CANCELLED",
1355
- "FAILED",
1356
- "REJECTED"
1357
- ]
1358
- },
1359
- "sourceRef": {
1360
- "type": "string",
1361
- "minLength": 8,
1362
- "maxLength": 256
1363
- },
1364
- "expectedTaskRevision": {
1365
- "type": "integer",
1366
- "minimum": 1
1367
- },
1368
- "expectedStoreEpoch": {
1369
- "type": "string",
1370
- "minLength": 10,
1371
- "maxLength": 64
1372
- },
1373
- "writeRequestId": {
1374
- "type": "string",
1375
- "minLength": 8,
1376
- "maxLength": 128
1377
- }
1378
- }
1379
- },
1380
- "route": {
1381
- "kind": "core",
1382
- "method": "presentationResolve",
1383
- "params": [
1384
- "$args"
1385
- ]
1386
- },
1387
- "order": 25
1388
- },
1389
- {
1390
- "id": "document.prepareIssue",
1391
- "group": "document",
1392
- "mode": "write",
1393
- "description": "Record intent to present a precise R/P version.",
1394
- "inputSchema": {
1395
- "type": "object",
1396
- "required": [
1397
- "operation",
1398
- "projectId",
1399
- "taskId",
1400
- "documentId",
1401
- "version",
1402
- "contentHash",
1403
- "expectedTaskRevision",
1404
- "expectedStoreEpoch",
1405
- "writeRequestId"
1406
- ],
1407
- "additionalProperties": false,
1408
- "properties": {
1409
- "operation": {
1410
- "const": "document.prepareIssue"
1411
- },
1412
- "projectId": {
1413
- "type": "string",
1414
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1415
- },
1416
- "taskId": {
1417
- "type": "string",
1418
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1419
- },
1420
- "documentId": {
1421
- "type": "string",
1422
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1423
- },
1424
- "version": {
1425
- "type": "integer",
1426
- "minimum": 1
1427
- },
1428
- "contentHash": {
1429
- "type": "string",
1430
- "pattern": "^[a-f0-9]{64}$"
1431
- },
1432
- "expectedTaskRevision": {
1433
- "type": "integer",
1434
- "minimum": 1
1435
- },
1436
- "expectedStoreEpoch": {
1437
- "type": "string",
1438
- "minLength": 10,
1439
- "maxLength": 64
1440
- },
1441
- "writeRequestId": {
1442
- "type": "string",
1443
- "minLength": 8,
1444
- "maxLength": 128
1445
- }
1446
- }
1447
- },
1448
- "route": {
1449
- "kind": "core",
1450
- "method": "prepareIssue",
1451
- "params": [
1452
- "$args"
1453
- ]
1454
- },
1455
- "order": 26
1456
- },
1457
- {
1458
- "id": "approval.observe",
1459
- "group": "approval",
1460
- "mode": "write",
1461
- "description": "Record soft evidence of a real user decision on a displayed R/P version.",
1462
- "inputSchema": {
1463
- "type": "object",
1464
- "required": [
1465
- "operation",
1466
- "projectId",
1467
- "taskId",
1468
- "issueId",
1469
- "decision",
1470
- "sourceRole",
1471
- "userTurn",
1472
- "presentedAssistantRef",
1473
- "expectedTaskRevision",
1474
- "expectedStoreEpoch",
1475
- "writeRequestId"
1476
- ],
1477
- "additionalProperties": false,
1478
- "properties": {
1479
- "operation": {
1480
- "const": "approval.observe"
1481
- },
1482
- "projectId": {
1483
- "type": "string",
1484
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1485
- },
1486
- "taskId": {
1487
- "type": "string",
1488
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1489
- },
1490
- "issueId": {
1491
- "type": "string",
1492
- "minLength": 8,
1493
- "maxLength": 64
1494
- },
1495
- "decision": {
1496
- "enum": [
1497
- "APPROVE",
1498
- "REJECT",
1499
- "REQUEST_CHANGE",
1500
- "CUSTOM"
1501
- ]
1502
- },
1503
- "sourceRole": {
1504
- "const": "user"
1505
- },
1506
- "userTurn": {
1507
- "type": "string",
1508
- "minLength": 8,
1509
- "maxLength": 256
1510
- },
1511
- "presentedAssistantRef": {
1512
- "type": "string",
1513
- "minLength": 8,
1514
- "maxLength": 256
1515
- },
1516
- "expectedTaskRevision": {
1517
- "type": "integer",
1518
- "minimum": 1
1519
- },
1520
- "expectedStoreEpoch": {
1521
- "type": "string",
1522
- "minLength": 10,
1523
- "maxLength": 64
1524
- },
1525
- "writeRequestId": {
1526
- "type": "string",
1527
- "minLength": 8,
1528
- "maxLength": 128
1529
- }
1530
- }
1531
- },
1532
- "route": {
1533
- "kind": "core",
1534
- "method": "observeApproval",
1535
- "params": [
1536
- "$args"
1537
- ]
1538
- },
1539
- "order": 27
1540
- },
1541
- {
1542
- "id": "approval.revoke",
1543
- "group": "approval",
1544
- "mode": "write",
1545
- "description": "Invalidate earlier approvals at the correct task revision.",
1546
- "inputSchema": {
1547
- "type": "object",
1548
- "required": [
1549
- "operation",
1550
- "projectId",
1551
- "taskId",
1552
- "expectedTaskRevision",
1553
- "expectedApprovalRevision",
1554
- "expectedStoreEpoch",
1555
- "writeRequestId"
1556
- ],
1557
- "additionalProperties": false,
1558
- "properties": {
1559
- "operation": {
1560
- "const": "approval.revoke"
1561
- },
1562
- "projectId": {
1563
- "type": "string",
1564
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1565
- },
1566
- "taskId": {
1567
- "type": "string",
1568
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1569
- },
1570
- "expectedTaskRevision": {
1571
- "type": "integer",
1572
- "minimum": 1
1573
- },
1574
- "expectedApprovalRevision": {
1575
- "type": "integer",
1576
- "minimum": 1
1577
- },
1578
- "expectedStoreEpoch": {
1579
- "type": "string",
1580
- "minLength": 10,
1581
- "maxLength": 64
1582
- },
1583
- "writeRequestId": {
1584
- "type": "string",
1585
- "minLength": 8,
1586
- "maxLength": 128
1587
- }
1588
- }
1589
- },
1590
- "route": {
1591
- "kind": "core",
1592
- "method": "revokeApproval",
1593
- "params": [
1594
- "$args"
1595
- ]
1596
- },
1597
- "order": 28
1598
- },
1599
- {
1600
- "id": "evidence.attach",
1601
- "group": "evidence",
1602
- "mode": "write",
1603
- "description": "Attach a verified external evidence reference to one task.",
1604
- "inputSchema": {
1605
- "type": "object",
1606
- "required": [
1607
- "operation",
1608
- "projectId",
1609
- "taskId",
1610
- "expectedTaskRevision",
1611
- "locator",
1612
- "role",
1613
- "expectedStoreEpoch",
1614
- "writeRequestId"
1615
- ],
1616
- "additionalProperties": false,
1617
- "properties": {
1618
- "operation": {
1619
- "const": "evidence.attach"
1620
- },
1621
- "projectId": {
1622
- "type": "string",
1623
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1624
- },
1625
- "taskId": {
1626
- "type": "string",
1627
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1628
- },
1629
- "expectedTaskRevision": {
1630
- "type": "integer",
1631
- "minimum": 1
1632
- },
1633
- "locator": {
1634
- "type": "string",
1635
- "minLength": 1,
1636
- "maxLength": 4096
1637
- },
1638
- "role": {
1639
- "type": "string",
1640
- "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1641
- },
1642
- "expectedStoreEpoch": {
1643
- "type": "string",
1644
- "minLength": 10,
1645
- "maxLength": 64
1646
- },
1647
- "writeRequestId": {
1648
- "type": "string",
1649
- "minLength": 8,
1650
- "maxLength": 128
1651
- },
1652
- "contentHash": {
1653
- "type": "string",
1654
- "pattern": "^[a-f0-9]{64}$"
1655
- },
1656
- "retention": {
1657
- "enum": [
1658
- "RETAINED",
1659
- "EXTERNAL",
1660
- "EPHEMERAL"
1661
- ]
1662
- },
1663
- "expectedBindingRevision": {
1664
- "type": "integer",
1665
- "minimum": 0
1666
- },
1667
- "runRef": {
1668
- "type": "string",
1669
- "minLength": 8,
1670
- "maxLength": 256
1671
- },
1672
- "runCredential": {
1673
- "type": "string",
1674
- "pattern": "^[0-9a-f]{64}$"
1675
- }
1676
- }
1677
- },
1678
- "route": {
1679
- "kind": "core",
1680
- "method": "evidenceAttach",
1681
- "params": [
1682
- "$args"
1683
- ]
1684
- },
1685
- "order": 29
1686
- },
1687
- {
1688
- "id": "start.reserve",
1689
- "group": "start",
1690
- "mode": "write",
1691
- "description": "Reserve a short-lived start lease after both effective R/P approvals.",
1692
- "inputSchema": {
1693
- "type": "object",
1694
- "required": [
1695
- "operation",
1696
- "projectId",
1697
- "taskId",
1698
- "expectedTaskRevision",
1699
- "expectedApprovalRevision",
1700
- "expectedStoreEpoch",
1701
- "writeRequestId"
1702
- ],
1703
- "additionalProperties": false,
1704
- "properties": {
1705
- "operation": {
1706
- "const": "start.reserve"
1707
- },
1708
- "projectId": {
1709
- "type": "string",
1710
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1711
- },
1712
- "taskId": {
1713
- "type": "string",
1714
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1715
- },
1716
- "expectedTaskRevision": {
1717
- "type": "integer",
1718
- "minimum": 1
1719
- },
1720
- "expectedApprovalRevision": {
1721
- "type": "integer",
1722
- "minimum": 1
1723
- },
1724
- "expectedStoreEpoch": {
1725
- "type": "string",
1726
- "minLength": 10,
1727
- "maxLength": 64
1728
- },
1729
- "writeRequestId": {
1730
- "type": "string",
1731
- "minLength": 8,
1732
- "maxLength": 128
1733
- },
1734
- "purpose": {
1735
- "enum": [
1736
- "NEW_EXECUTION",
1737
- "REPAIR_SAME_SCOPE"
1738
- ]
1739
- }
1740
- }
1741
- },
1742
- "route": {
1743
- "kind": "core",
1744
- "method": "reserve",
1745
- "params": [
1746
- "$args"
1747
- ]
1748
- },
1749
- "order": 30
1750
- },
1751
- {
1752
- "id": "context.patch",
1753
- "group": "context",
1754
- "mode": "write",
1755
- "description": "Write active-run progress under the current holder and revisions.",
1756
- "inputSchema": {
1757
- "type": "object",
1758
- "required": [
1759
- "operation",
1760
- "projectId",
1761
- "taskId",
1762
- "expectedTaskRevision",
1763
- "expectedBindingRevision",
1764
- "runRef",
1765
- "runCredential",
1766
- "patch",
1767
- "expectedStoreEpoch",
1768
- "writeRequestId"
1769
- ],
1770
- "additionalProperties": false,
1771
- "properties": {
1772
- "operation": {
1773
- "const": "context.patch"
1774
- },
1775
- "projectId": {
1776
- "type": "string",
1777
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1778
- },
1779
- "taskId": {
1780
- "type": "string",
1781
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1782
- },
1783
- "expectedTaskRevision": {
1784
- "type": "integer",
1785
- "minimum": 1
1786
- },
1787
- "expectedBindingRevision": {
1788
- "type": "integer",
1789
- "minimum": 0
1790
- },
1791
- "runRef": {
1792
- "type": "string",
1793
- "minLength": 8,
1794
- "maxLength": 256
1795
- },
1796
- "runCredential": {
1797
- "type": "string",
1798
- "pattern": "^[0-9a-f]{64}$"
1799
- },
1800
- "patch": {
1801
- "type": "object"
1802
- },
1803
- "expectedStoreEpoch": {
1804
- "type": "string",
1805
- "minLength": 10,
1806
- "maxLength": 64
1807
- },
1808
- "writeRequestId": {
1809
- "type": "string",
1810
- "minLength": 8,
1811
- "maxLength": 128
1812
- }
1813
- }
1814
- },
1815
- "route": {
1816
- "kind": "core",
1817
- "method": "patch",
1818
- "params": [
1819
- "$args"
1820
- ]
1821
- },
1822
- "order": 31
1823
- },
1824
- {
1825
- "id": "context.unknown.resolve",
1826
- "group": "context",
1827
- "mode": "write",
1828
- "description": "Resolve a known unknown side effect only with matching evidence.",
1829
- "inputSchema": {
1830
- "type": "object",
1831
- "required": [
1832
- "operation",
1833
- "projectId",
1834
- "taskId",
1835
- "expectedTaskRevision",
1836
- "expectedBindingRevision",
1837
- "runRef",
1838
- "runCredential",
1839
- "effectRef",
1840
- "resolutionEvidenceRef",
1841
- "expectedStoreEpoch",
1842
- "writeRequestId"
1843
- ],
1844
- "additionalProperties": false,
1845
- "properties": {
1846
- "operation": {
1847
- "const": "context.unknown.resolve"
1848
- },
1849
- "projectId": {
1850
- "type": "string",
1851
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1852
- },
1853
- "taskId": {
1854
- "type": "string",
1855
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1856
- },
1857
- "expectedTaskRevision": {
1858
- "type": "integer",
1859
- "minimum": 1
1860
- },
1861
- "expectedBindingRevision": {
1862
- "type": "integer",
1863
- "minimum": 0
1864
- },
1865
- "runRef": {
1866
- "type": "string",
1867
- "minLength": 8,
1868
- "maxLength": 256
1869
- },
1870
- "runCredential": {
1871
- "type": "string",
1872
- "pattern": "^[0-9a-f]{64}$"
1873
- },
1874
- "effectRef": {
1875
- "type": "string",
1876
- "minLength": 1,
1877
- "maxLength": 256
1878
- },
1879
- "resolutionEvidenceRef": {
1880
- "type": "string",
1881
- "minLength": 8,
1882
- "maxLength": 4096
1883
- },
1884
- "expectedStoreEpoch": {
1885
- "type": "string",
1886
- "minLength": 10,
1887
- "maxLength": 64
1888
- },
1889
- "writeRequestId": {
1890
- "type": "string",
1891
- "minLength": 8,
1892
- "maxLength": 128
1893
- }
1894
- }
1895
- },
1896
- "route": {
1897
- "kind": "core",
1898
- "method": "resolveUnknownEffect",
1899
- "params": [
1900
- "$args"
1901
- ]
1902
- },
1903
- "order": 32
1904
- },
1905
- {
1906
- "id": "context.checkpoint",
1907
- "group": "context",
1908
- "mode": "write",
1909
- "description": "Create a durable business checkpoint, not Browser Owner permission.",
1910
- "inputSchema": {
1911
- "type": "object",
1912
- "required": [
1913
- "operation",
1914
- "projectId",
1915
- "taskId",
1916
- "expectedTaskRevision",
1917
- "expectedBindingRevision",
1918
- "runRef",
1919
- "runCredential",
1920
- "expectedStoreEpoch",
1921
- "writeRequestId"
1922
- ],
1923
- "additionalProperties": false,
1924
- "properties": {
1925
- "operation": {
1926
- "const": "context.checkpoint"
1927
- },
1928
- "projectId": {
1929
- "type": "string",
1930
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1931
- },
1932
- "taskId": {
1933
- "type": "string",
1934
- "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1935
- },
1936
- "expectedTaskRevision": {
1937
- "type": "integer",
1938
- "minimum": 1
1939
- },
1940
- "expectedBindingRevision": {
1941
- "type": "integer",
1942
- "minimum": 0
1943
- },
1944
- "runRef": {
1945
- "type": "string",
1946
- "minLength": 8,
1947
- "maxLength": 256
1948
- },
1949
- "runCredential": {
1950
- "type": "string",
1951
- "pattern": "^[0-9a-f]{64}$"
1952
- },
1953
- "expectedStoreEpoch": {
1954
- "type": "string",
1955
- "minLength": 10,
1956
- "maxLength": 64
1957
- },
1958
- "writeRequestId": {
1959
- "type": "string",
1960
- "minLength": 8,
1961
- "maxLength": 128
1962
- },
1963
- "evidenceRefs": {
1964
- "type": "array",
1965
- "maxItems": 200,
1966
- "items": {
1967
- "type": "object"
1968
- }
1969
- },
1970
- "unknownEffects": {
1971
- "type": "array",
1972
- "maxItems": 200,
1973
- "items": {
1974
- "type": "object"
1975
- }
1976
- }
1977
- }
1978
- },
1979
- "route": {
1980
- "kind": "core",
1981
- "method": "checkpoint",
1982
- "params": [
1983
- "$args"
1984
- ]
1985
- },
1986
- "order": 33
1987
- }
1988
- ]
1989
- }