@tomflow/chatloop-tools 0.9.64 → 0.9.70

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 (175) hide show
  1. package/node_modules/@tomflow/chatloop-context/README.md +296 -0
  2. package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +48 -0
  3. package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +151 -0
  4. package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +376 -0
  5. package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +290 -0
  6. package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +134 -0
  7. package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +82 -0
  8. package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +349 -0
  9. package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +72 -0
  10. package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +73 -0
  11. package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +507 -0
  12. package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +11 -0
  13. package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +261 -0
  14. package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +277 -0
  15. package/node_modules/@tomflow/chatloop-context/index.mjs +238 -0
  16. package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +86 -0
  17. package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +77 -0
  18. package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +2036 -0
  19. package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +69 -0
  20. package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +338 -0
  21. package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +298 -0
  22. package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +286 -0
  23. package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +117 -0
  24. package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +51 -0
  25. package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +134 -0
  26. package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +262 -0
  27. package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +246 -0
  28. package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +180 -0
  29. package/node_modules/@tomflow/chatloop-context/lib/core/run-cancel.mjs +68 -0
  30. package/node_modules/@tomflow/chatloop-context/lib/core/run-recovery.mjs +112 -0
  31. package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +367 -0
  32. package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +398 -0
  33. package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +264 -0
  34. package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +13 -0
  35. package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +111 -0
  36. package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +107 -0
  37. package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +118 -0
  38. package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +20 -0
  39. package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +316 -0
  40. package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +153 -0
  41. package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +19 -0
  42. package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +117 -0
  43. package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +142 -0
  44. package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +169 -0
  45. package/node_modules/@tomflow/chatloop-context/package.json +38 -0
  46. package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +114 -0
  47. package/node_modules/@tomflow/chatloop-extension/README.md +190 -0
  48. package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +13 -0
  49. package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +168 -0
  50. package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +246 -0
  51. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +1 -0
  52. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +1 -0
  53. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +1 -0
  54. package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +1 -0
  55. package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +1 -0
  56. package/node_modules/@tomflow/chatloop-extension/capabilities/entry_test.mjs +1 -0
  57. package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +1 -0
  58. package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +1 -0
  59. package/node_modules/@tomflow/chatloop-extension/capabilities/session.mjs +1 -0
  60. package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +1 -0
  61. package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +1 -0
  62. package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +123 -0
  63. package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +183 -0
  64. package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +390 -0
  65. package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +2 -0
  66. package/node_modules/@tomflow/chatloop-extension/extension/actions/entry_test.js +241 -0
  67. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff-scoped.js +143 -0
  68. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +399 -0
  69. package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +2 -0
  70. package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +60 -0
  71. package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +9 -0
  72. package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +20 -0
  73. package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +77 -0
  74. package/node_modules/@tomflow/chatloop-extension/extension/actions/session.js +95 -0
  75. package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +329 -0
  76. package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +38 -0
  77. package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +2 -0
  78. package/node_modules/@tomflow/chatloop-extension/extension/background.js +33 -0
  79. package/node_modules/@tomflow/chatloop-extension/extension/clean.html +5 -0
  80. package/node_modules/@tomflow/chatloop-extension/extension/content.js +40 -0
  81. package/node_modules/@tomflow/chatloop-extension/extension/continue.html +9 -0
  82. package/node_modules/@tomflow/chatloop-extension/extension/dom.html +17 -0
  83. package/node_modules/@tomflow/chatloop-extension/extension/entry_test.html +6 -0
  84. package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +9 -0
  85. package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +2 -0
  86. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +275 -0
  87. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +84 -0
  88. package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +107 -0
  89. package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +36 -0
  90. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +299 -0
  91. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +144 -0
  92. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +172 -0
  93. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +109 -0
  94. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +211 -0
  95. package/node_modules/@tomflow/chatloop-extension/extension/loop/resource-maintenance.js +159 -0
  96. package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +399 -0
  97. package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +43 -0
  98. package/node_modules/@tomflow/chatloop-extension/extension/popup.html +25 -0
  99. package/node_modules/@tomflow/chatloop-extension/extension/popup.js +99 -0
  100. package/node_modules/@tomflow/chatloop-extension/extension/reload.html +17 -0
  101. package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +17 -0
  102. package/node_modules/@tomflow/chatloop-extension/extension/session.html +7 -0
  103. package/node_modules/@tomflow/chatloop-extension/extension/start.html +6 -0
  104. package/node_modules/@tomflow/chatloop-extension/extension/status.html +6 -0
  105. package/node_modules/@tomflow/chatloop-extension/extension/text.html +17 -0
  106. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +136 -0
  107. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +218 -0
  108. package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +127 -0
  109. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +296 -0
  110. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +186 -0
  111. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +126 -0
  112. package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +287 -0
  113. package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +163 -0
  114. package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +345 -0
  115. package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +209 -0
  116. package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +385 -0
  117. package/node_modules/@tomflow/chatloop-extension/extension/worker/session-control.js +75 -0
  118. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-action-v2.js +278 -0
  119. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-cancel-recovery-v2.js +52 -0
  120. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-cancel-v2.js +93 -0
  121. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-continue-recovery-v2.js +78 -0
  122. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-handoff-recovery-v2.js +148 -0
  123. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-handoff-v2.js +325 -0
  124. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-hold-recovery-v2.js +109 -0
  125. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-intent-dispatch-v2.js +220 -0
  126. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-intent-v2.js +106 -0
  127. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-owner-resolver.js +110 -0
  128. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-recover-v2.js +209 -0
  129. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-routes-v2.js +357 -0
  130. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-run-store.js +400 -0
  131. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-scheduler.js +78 -0
  132. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-start-v2.js +361 -0
  133. package/node_modules/@tomflow/chatloop-extension/extension/worker/task-terminal-v2.js +235 -0
  134. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +197 -0
  135. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +205 -0
  136. package/node_modules/@tomflow/chatloop-extension/index.mjs +78 -0
  137. package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +19 -0
  138. package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +82 -0
  139. package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +378 -0
  140. package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +89 -0
  141. package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +45 -0
  142. package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +122 -0
  143. package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +75 -0
  144. package/node_modules/@tomflow/chatloop-extension/lib/owner-kernel-lock.mjs +106 -0
  145. package/node_modules/@tomflow/chatloop-extension/lib/owner-ledger.mjs +316 -0
  146. package/node_modules/@tomflow/chatloop-extension/lib/owner-locked-write.mjs +30 -0
  147. package/node_modules/@tomflow/chatloop-extension/lib/scoped-cancel-v2.mjs +190 -0
  148. package/node_modules/@tomflow/chatloop-extension/lib/scoped-continue-v2.mjs +214 -0
  149. package/node_modules/@tomflow/chatloop-extension/lib/scoped-handoff-v2.mjs +338 -0
  150. package/node_modules/@tomflow/chatloop-extension/lib/scoped-native-control.mjs +398 -0
  151. package/node_modules/@tomflow/chatloop-extension/lib/scoped-recovery-v2.mjs +234 -0
  152. package/node_modules/@tomflow/chatloop-extension/lib/scoped-retire-v2.mjs +70 -0
  153. package/node_modules/@tomflow/chatloop-extension/lib/scoped-terminal-v2.mjs +143 -0
  154. package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +228 -0
  155. package/node_modules/@tomflow/chatloop-extension/package.json +36 -0
  156. package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +138 -0
  157. package/node_modules/@tomflow/chatloop-trace/README.md +118 -0
  158. package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +23 -0
  159. package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +22 -0
  160. package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +4 -0
  161. package/node_modules/@tomflow/chatloop-trace/index.mjs +59 -0
  162. package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +273 -0
  163. package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +308 -0
  164. package/node_modules/@tomflow/chatloop-trace/lib/trace-retention.mjs +140 -0
  165. package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +236 -0
  166. package/node_modules/@tomflow/chatloop-trace/package.json +28 -0
  167. package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +68 -0
  168. package/node_modules/ps-list/index.d.ts +76 -0
  169. package/node_modules/ps-list/index.js +366 -0
  170. package/node_modules/ps-list/license +9 -0
  171. package/node_modules/ps-list/package.json +44 -0
  172. package/node_modules/ps-list/readme.md +56 -0
  173. package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
  174. package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
  175. package/package.json +12 -4
@@ -0,0 +1,2036 @@
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 DRAFT task without durable review-only executionPermission. Current-round R/P limits are not permanent Task scope; R/P approvals and Stage 03 independently guard Start. Existing legacy restrictions remain enforced.",
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 CAS/run-holder checks; an R/P-approved idle Task may report bounded preflight progress, blockers and nextStep only.",
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
+ "literalRevision": {
1283
+ "type": "object",
1284
+ "additionalProperties": false,
1285
+ "required": [
1286
+ "baseVersion",
1287
+ "baseContentHash",
1288
+ "replacements"
1289
+ ],
1290
+ "properties": {
1291
+ "baseVersion": {
1292
+ "type": "integer",
1293
+ "minimum": 1
1294
+ },
1295
+ "baseContentHash": {
1296
+ "type": "string",
1297
+ "pattern": "^[a-f0-9]{64}$"
1298
+ },
1299
+ "replacements": {
1300
+ "type": "array",
1301
+ "minItems": 1,
1302
+ "maxItems": 32,
1303
+ "items": {
1304
+ "type": "object",
1305
+ "additionalProperties": false,
1306
+ "required": [
1307
+ "from",
1308
+ "to",
1309
+ "expectedCount"
1310
+ ],
1311
+ "properties": {
1312
+ "from": {
1313
+ "type": "string",
1314
+ "minLength": 1
1315
+ },
1316
+ "to": {
1317
+ "type": "string"
1318
+ },
1319
+ "expectedCount": {
1320
+ "type": "integer",
1321
+ "minimum": 1,
1322
+ "maximum": 100
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ },
1329
+ "requirementRef": {
1330
+ "type": "object",
1331
+ "additionalProperties": false,
1332
+ "required": [
1333
+ "documentId",
1334
+ "version",
1335
+ "contentHash"
1336
+ ],
1337
+ "properties": {
1338
+ "documentId": {
1339
+ "type": "string",
1340
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1341
+ },
1342
+ "version": {
1343
+ "type": "integer",
1344
+ "minimum": 1
1345
+ },
1346
+ "contentHash": {
1347
+ "type": "string",
1348
+ "pattern": "^[a-f0-9]{64}$"
1349
+ }
1350
+ }
1351
+ }
1352
+ }
1353
+ },
1354
+ "route": {
1355
+ "kind": "core",
1356
+ "method": "documentCreate",
1357
+ "params": [
1358
+ "$args"
1359
+ ]
1360
+ },
1361
+ "order": 24
1362
+ },
1363
+ {
1364
+ "id": "presentation.resolve",
1365
+ "group": "presentation",
1366
+ "mode": "write",
1367
+ "description": "Resolve an uncompleted R/P presentation attempt with evidence.",
1368
+ "inputSchema": {
1369
+ "type": "object",
1370
+ "required": [
1371
+ "operation",
1372
+ "projectId",
1373
+ "taskId",
1374
+ "issueId",
1375
+ "outcome",
1376
+ "sourceRef",
1377
+ "expectedTaskRevision",
1378
+ "expectedStoreEpoch",
1379
+ "writeRequestId"
1380
+ ],
1381
+ "additionalProperties": false,
1382
+ "properties": {
1383
+ "operation": {
1384
+ "const": "presentation.resolve"
1385
+ },
1386
+ "projectId": {
1387
+ "type": "string",
1388
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1389
+ },
1390
+ "taskId": {
1391
+ "type": "string",
1392
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1393
+ },
1394
+ "issueId": {
1395
+ "type": "string",
1396
+ "minLength": 8,
1397
+ "maxLength": 64
1398
+ },
1399
+ "outcome": {
1400
+ "enum": [
1401
+ "CANCELLED",
1402
+ "FAILED",
1403
+ "REJECTED"
1404
+ ]
1405
+ },
1406
+ "sourceRef": {
1407
+ "type": "string",
1408
+ "minLength": 8,
1409
+ "maxLength": 256
1410
+ },
1411
+ "expectedTaskRevision": {
1412
+ "type": "integer",
1413
+ "minimum": 1
1414
+ },
1415
+ "expectedStoreEpoch": {
1416
+ "type": "string",
1417
+ "minLength": 10,
1418
+ "maxLength": 64
1419
+ },
1420
+ "writeRequestId": {
1421
+ "type": "string",
1422
+ "minLength": 8,
1423
+ "maxLength": 128
1424
+ }
1425
+ }
1426
+ },
1427
+ "route": {
1428
+ "kind": "core",
1429
+ "method": "presentationResolve",
1430
+ "params": [
1431
+ "$args"
1432
+ ]
1433
+ },
1434
+ "order": 25
1435
+ },
1436
+ {
1437
+ "id": "document.prepareIssue",
1438
+ "group": "document",
1439
+ "mode": "write",
1440
+ "description": "Record intent to present a precise R/P version.",
1441
+ "inputSchema": {
1442
+ "type": "object",
1443
+ "required": [
1444
+ "operation",
1445
+ "projectId",
1446
+ "taskId",
1447
+ "documentId",
1448
+ "version",
1449
+ "contentHash",
1450
+ "expectedTaskRevision",
1451
+ "expectedStoreEpoch",
1452
+ "writeRequestId"
1453
+ ],
1454
+ "additionalProperties": false,
1455
+ "properties": {
1456
+ "operation": {
1457
+ "const": "document.prepareIssue"
1458
+ },
1459
+ "projectId": {
1460
+ "type": "string",
1461
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1462
+ },
1463
+ "taskId": {
1464
+ "type": "string",
1465
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1466
+ },
1467
+ "documentId": {
1468
+ "type": "string",
1469
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1470
+ },
1471
+ "version": {
1472
+ "type": "integer",
1473
+ "minimum": 1
1474
+ },
1475
+ "contentHash": {
1476
+ "type": "string",
1477
+ "pattern": "^[a-f0-9]{64}$"
1478
+ },
1479
+ "expectedTaskRevision": {
1480
+ "type": "integer",
1481
+ "minimum": 1
1482
+ },
1483
+ "expectedStoreEpoch": {
1484
+ "type": "string",
1485
+ "minLength": 10,
1486
+ "maxLength": 64
1487
+ },
1488
+ "writeRequestId": {
1489
+ "type": "string",
1490
+ "minLength": 8,
1491
+ "maxLength": 128
1492
+ }
1493
+ }
1494
+ },
1495
+ "route": {
1496
+ "kind": "core",
1497
+ "method": "prepareIssue",
1498
+ "params": [
1499
+ "$args"
1500
+ ]
1501
+ },
1502
+ "order": 26
1503
+ },
1504
+ {
1505
+ "id": "approval.observe",
1506
+ "group": "approval",
1507
+ "mode": "write",
1508
+ "description": "Record soft evidence of a real user decision on a displayed R/P version.",
1509
+ "inputSchema": {
1510
+ "type": "object",
1511
+ "required": [
1512
+ "operation",
1513
+ "projectId",
1514
+ "taskId",
1515
+ "issueId",
1516
+ "decision",
1517
+ "sourceRole",
1518
+ "userTurn",
1519
+ "presentedAssistantRef",
1520
+ "expectedTaskRevision",
1521
+ "expectedStoreEpoch",
1522
+ "writeRequestId"
1523
+ ],
1524
+ "additionalProperties": false,
1525
+ "properties": {
1526
+ "operation": {
1527
+ "const": "approval.observe"
1528
+ },
1529
+ "projectId": {
1530
+ "type": "string",
1531
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1532
+ },
1533
+ "taskId": {
1534
+ "type": "string",
1535
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1536
+ },
1537
+ "issueId": {
1538
+ "type": "string",
1539
+ "minLength": 8,
1540
+ "maxLength": 64
1541
+ },
1542
+ "decision": {
1543
+ "enum": [
1544
+ "APPROVE",
1545
+ "REJECT",
1546
+ "REQUEST_CHANGE",
1547
+ "CUSTOM"
1548
+ ]
1549
+ },
1550
+ "sourceRole": {
1551
+ "const": "user"
1552
+ },
1553
+ "userTurn": {
1554
+ "type": "string",
1555
+ "minLength": 8,
1556
+ "maxLength": 256
1557
+ },
1558
+ "presentedAssistantRef": {
1559
+ "type": "string",
1560
+ "minLength": 8,
1561
+ "maxLength": 256
1562
+ },
1563
+ "expectedTaskRevision": {
1564
+ "type": "integer",
1565
+ "minimum": 1
1566
+ },
1567
+ "expectedStoreEpoch": {
1568
+ "type": "string",
1569
+ "minLength": 10,
1570
+ "maxLength": 64
1571
+ },
1572
+ "writeRequestId": {
1573
+ "type": "string",
1574
+ "minLength": 8,
1575
+ "maxLength": 128
1576
+ }
1577
+ }
1578
+ },
1579
+ "route": {
1580
+ "kind": "core",
1581
+ "method": "observeApproval",
1582
+ "params": [
1583
+ "$args"
1584
+ ]
1585
+ },
1586
+ "order": 27
1587
+ },
1588
+ {
1589
+ "id": "approval.revoke",
1590
+ "group": "approval",
1591
+ "mode": "write",
1592
+ "description": "Invalidate earlier approvals at the correct task revision.",
1593
+ "inputSchema": {
1594
+ "type": "object",
1595
+ "required": [
1596
+ "operation",
1597
+ "projectId",
1598
+ "taskId",
1599
+ "expectedTaskRevision",
1600
+ "expectedApprovalRevision",
1601
+ "expectedStoreEpoch",
1602
+ "writeRequestId"
1603
+ ],
1604
+ "additionalProperties": false,
1605
+ "properties": {
1606
+ "operation": {
1607
+ "const": "approval.revoke"
1608
+ },
1609
+ "projectId": {
1610
+ "type": "string",
1611
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1612
+ },
1613
+ "taskId": {
1614
+ "type": "string",
1615
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1616
+ },
1617
+ "expectedTaskRevision": {
1618
+ "type": "integer",
1619
+ "minimum": 1
1620
+ },
1621
+ "expectedApprovalRevision": {
1622
+ "type": "integer",
1623
+ "minimum": 1
1624
+ },
1625
+ "expectedStoreEpoch": {
1626
+ "type": "string",
1627
+ "minLength": 10,
1628
+ "maxLength": 64
1629
+ },
1630
+ "writeRequestId": {
1631
+ "type": "string",
1632
+ "minLength": 8,
1633
+ "maxLength": 128
1634
+ }
1635
+ }
1636
+ },
1637
+ "route": {
1638
+ "kind": "core",
1639
+ "method": "revokeApproval",
1640
+ "params": [
1641
+ "$args"
1642
+ ]
1643
+ },
1644
+ "order": 28
1645
+ },
1646
+ {
1647
+ "id": "evidence.attach",
1648
+ "group": "evidence",
1649
+ "mode": "write",
1650
+ "description": "Attach a verified external evidence reference to one task.",
1651
+ "inputSchema": {
1652
+ "type": "object",
1653
+ "required": [
1654
+ "operation",
1655
+ "projectId",
1656
+ "taskId",
1657
+ "expectedTaskRevision",
1658
+ "locator",
1659
+ "role",
1660
+ "expectedStoreEpoch",
1661
+ "writeRequestId"
1662
+ ],
1663
+ "additionalProperties": false,
1664
+ "properties": {
1665
+ "operation": {
1666
+ "const": "evidence.attach"
1667
+ },
1668
+ "projectId": {
1669
+ "type": "string",
1670
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1671
+ },
1672
+ "taskId": {
1673
+ "type": "string",
1674
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1675
+ },
1676
+ "expectedTaskRevision": {
1677
+ "type": "integer",
1678
+ "minimum": 1
1679
+ },
1680
+ "locator": {
1681
+ "type": "string",
1682
+ "minLength": 1,
1683
+ "maxLength": 4096
1684
+ },
1685
+ "role": {
1686
+ "type": "string",
1687
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
1688
+ },
1689
+ "expectedStoreEpoch": {
1690
+ "type": "string",
1691
+ "minLength": 10,
1692
+ "maxLength": 64
1693
+ },
1694
+ "writeRequestId": {
1695
+ "type": "string",
1696
+ "minLength": 8,
1697
+ "maxLength": 128
1698
+ },
1699
+ "contentHash": {
1700
+ "type": "string",
1701
+ "pattern": "^[a-f0-9]{64}$"
1702
+ },
1703
+ "retention": {
1704
+ "enum": [
1705
+ "RETAINED",
1706
+ "EXTERNAL",
1707
+ "EPHEMERAL"
1708
+ ]
1709
+ },
1710
+ "expectedBindingRevision": {
1711
+ "type": "integer",
1712
+ "minimum": 0
1713
+ },
1714
+ "runRef": {
1715
+ "type": "string",
1716
+ "minLength": 8,
1717
+ "maxLength": 256
1718
+ },
1719
+ "runCredential": {
1720
+ "type": "string",
1721
+ "pattern": "^[0-9a-f]{64}$"
1722
+ }
1723
+ }
1724
+ },
1725
+ "route": {
1726
+ "kind": "core",
1727
+ "method": "evidenceAttach",
1728
+ "params": [
1729
+ "$args"
1730
+ ]
1731
+ },
1732
+ "order": 29
1733
+ },
1734
+ {
1735
+ "id": "start.reserve",
1736
+ "group": "start",
1737
+ "mode": "write",
1738
+ "description": "Reserve a short-lived Start lease after both effective R/P approvals; an explicit Task executionPermission (including review-only or unknown) is a restriction and cannot be overridden by R/P. Legacy tasks without this field retain their prior Start eligibility. No installation or filesystem grants.",
1739
+ "inputSchema": {
1740
+ "type": "object",
1741
+ "required": [
1742
+ "operation",
1743
+ "projectId",
1744
+ "taskId",
1745
+ "expectedTaskRevision",
1746
+ "expectedApprovalRevision",
1747
+ "expectedStoreEpoch",
1748
+ "writeRequestId"
1749
+ ],
1750
+ "additionalProperties": false,
1751
+ "properties": {
1752
+ "operation": {
1753
+ "const": "start.reserve"
1754
+ },
1755
+ "projectId": {
1756
+ "type": "string",
1757
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1758
+ },
1759
+ "taskId": {
1760
+ "type": "string",
1761
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1762
+ },
1763
+ "expectedTaskRevision": {
1764
+ "type": "integer",
1765
+ "minimum": 1
1766
+ },
1767
+ "expectedApprovalRevision": {
1768
+ "type": "integer",
1769
+ "minimum": 1
1770
+ },
1771
+ "expectedStoreEpoch": {
1772
+ "type": "string",
1773
+ "minLength": 10,
1774
+ "maxLength": 64
1775
+ },
1776
+ "writeRequestId": {
1777
+ "type": "string",
1778
+ "minLength": 8,
1779
+ "maxLength": 128
1780
+ },
1781
+ "purpose": {
1782
+ "enum": [
1783
+ "NEW_EXECUTION",
1784
+ "REPAIR_SAME_SCOPE"
1785
+ ]
1786
+ }
1787
+ }
1788
+ },
1789
+ "route": {
1790
+ "kind": "core",
1791
+ "method": "reserve",
1792
+ "params": [
1793
+ "$args"
1794
+ ]
1795
+ },
1796
+ "order": 30
1797
+ },
1798
+ {
1799
+ "id": "context.patch",
1800
+ "group": "context",
1801
+ "mode": "write",
1802
+ "description": "Write active-run progress under the current holder and revisions.",
1803
+ "inputSchema": {
1804
+ "type": "object",
1805
+ "required": [
1806
+ "operation",
1807
+ "projectId",
1808
+ "taskId",
1809
+ "expectedTaskRevision",
1810
+ "expectedBindingRevision",
1811
+ "runRef",
1812
+ "runCredential",
1813
+ "patch",
1814
+ "expectedStoreEpoch",
1815
+ "writeRequestId"
1816
+ ],
1817
+ "additionalProperties": false,
1818
+ "properties": {
1819
+ "operation": {
1820
+ "const": "context.patch"
1821
+ },
1822
+ "projectId": {
1823
+ "type": "string",
1824
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1825
+ },
1826
+ "taskId": {
1827
+ "type": "string",
1828
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1829
+ },
1830
+ "expectedTaskRevision": {
1831
+ "type": "integer",
1832
+ "minimum": 1
1833
+ },
1834
+ "expectedBindingRevision": {
1835
+ "type": "integer",
1836
+ "minimum": 0
1837
+ },
1838
+ "runRef": {
1839
+ "type": "string",
1840
+ "minLength": 8,
1841
+ "maxLength": 256
1842
+ },
1843
+ "runCredential": {
1844
+ "type": "string",
1845
+ "pattern": "^[0-9a-f]{64}$"
1846
+ },
1847
+ "patch": {
1848
+ "type": "object"
1849
+ },
1850
+ "expectedStoreEpoch": {
1851
+ "type": "string",
1852
+ "minLength": 10,
1853
+ "maxLength": 64
1854
+ },
1855
+ "writeRequestId": {
1856
+ "type": "string",
1857
+ "minLength": 8,
1858
+ "maxLength": 128
1859
+ }
1860
+ }
1861
+ },
1862
+ "route": {
1863
+ "kind": "core",
1864
+ "method": "patch",
1865
+ "params": [
1866
+ "$args"
1867
+ ]
1868
+ },
1869
+ "order": 31
1870
+ },
1871
+ {
1872
+ "id": "context.unknown.resolve",
1873
+ "group": "context",
1874
+ "mode": "write",
1875
+ "description": "Resolve a known unknown side effect only with matching evidence.",
1876
+ "inputSchema": {
1877
+ "type": "object",
1878
+ "required": [
1879
+ "operation",
1880
+ "projectId",
1881
+ "taskId",
1882
+ "expectedTaskRevision",
1883
+ "expectedBindingRevision",
1884
+ "runRef",
1885
+ "runCredential",
1886
+ "effectRef",
1887
+ "resolutionEvidenceRef",
1888
+ "expectedStoreEpoch",
1889
+ "writeRequestId"
1890
+ ],
1891
+ "additionalProperties": false,
1892
+ "properties": {
1893
+ "operation": {
1894
+ "const": "context.unknown.resolve"
1895
+ },
1896
+ "projectId": {
1897
+ "type": "string",
1898
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1899
+ },
1900
+ "taskId": {
1901
+ "type": "string",
1902
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1903
+ },
1904
+ "expectedTaskRevision": {
1905
+ "type": "integer",
1906
+ "minimum": 1
1907
+ },
1908
+ "expectedBindingRevision": {
1909
+ "type": "integer",
1910
+ "minimum": 0
1911
+ },
1912
+ "runRef": {
1913
+ "type": "string",
1914
+ "minLength": 8,
1915
+ "maxLength": 256
1916
+ },
1917
+ "runCredential": {
1918
+ "type": "string",
1919
+ "pattern": "^[0-9a-f]{64}$"
1920
+ },
1921
+ "effectRef": {
1922
+ "type": "string",
1923
+ "minLength": 1,
1924
+ "maxLength": 256
1925
+ },
1926
+ "resolutionEvidenceRef": {
1927
+ "type": "string",
1928
+ "minLength": 8,
1929
+ "maxLength": 4096
1930
+ },
1931
+ "expectedStoreEpoch": {
1932
+ "type": "string",
1933
+ "minLength": 10,
1934
+ "maxLength": 64
1935
+ },
1936
+ "writeRequestId": {
1937
+ "type": "string",
1938
+ "minLength": 8,
1939
+ "maxLength": 128
1940
+ }
1941
+ }
1942
+ },
1943
+ "route": {
1944
+ "kind": "core",
1945
+ "method": "resolveUnknownEffect",
1946
+ "params": [
1947
+ "$args"
1948
+ ]
1949
+ },
1950
+ "order": 32
1951
+ },
1952
+ {
1953
+ "id": "context.checkpoint",
1954
+ "group": "context",
1955
+ "mode": "write",
1956
+ "description": "Create a durable business checkpoint, not Browser Owner permission.",
1957
+ "inputSchema": {
1958
+ "type": "object",
1959
+ "required": [
1960
+ "operation",
1961
+ "projectId",
1962
+ "taskId",
1963
+ "expectedTaskRevision",
1964
+ "expectedBindingRevision",
1965
+ "runRef",
1966
+ "runCredential",
1967
+ "expectedStoreEpoch",
1968
+ "writeRequestId"
1969
+ ],
1970
+ "additionalProperties": false,
1971
+ "properties": {
1972
+ "operation": {
1973
+ "const": "context.checkpoint"
1974
+ },
1975
+ "projectId": {
1976
+ "type": "string",
1977
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1978
+ },
1979
+ "taskId": {
1980
+ "type": "string",
1981
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
1982
+ },
1983
+ "expectedTaskRevision": {
1984
+ "type": "integer",
1985
+ "minimum": 1
1986
+ },
1987
+ "expectedBindingRevision": {
1988
+ "type": "integer",
1989
+ "minimum": 0
1990
+ },
1991
+ "runRef": {
1992
+ "type": "string",
1993
+ "minLength": 8,
1994
+ "maxLength": 256
1995
+ },
1996
+ "runCredential": {
1997
+ "type": "string",
1998
+ "pattern": "^[0-9a-f]{64}$"
1999
+ },
2000
+ "expectedStoreEpoch": {
2001
+ "type": "string",
2002
+ "minLength": 10,
2003
+ "maxLength": 64
2004
+ },
2005
+ "writeRequestId": {
2006
+ "type": "string",
2007
+ "minLength": 8,
2008
+ "maxLength": 128
2009
+ },
2010
+ "evidenceRefs": {
2011
+ "type": "array",
2012
+ "maxItems": 200,
2013
+ "items": {
2014
+ "type": "object"
2015
+ }
2016
+ },
2017
+ "unknownEffects": {
2018
+ "type": "array",
2019
+ "maxItems": 200,
2020
+ "items": {
2021
+ "type": "object"
2022
+ }
2023
+ }
2024
+ }
2025
+ },
2026
+ "route": {
2027
+ "kind": "core",
2028
+ "method": "checkpoint",
2029
+ "params": [
2030
+ "$args"
2031
+ ]
2032
+ },
2033
+ "order": 33
2034
+ }
2035
+ ]
2036
+ }