@revisium/orchestrator 0.2.0-alpha.4 → 0.2.0-alpha.5

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 (147) hide show
  1. package/README.md +1 -1
  2. package/control-plane/bootstrap.config.json +5 -1
  3. package/control-plane/default-playbook/catalog/pipelines.json +51 -0
  4. package/control-plane/default-playbook/catalog/roles.json +1 -1
  5. package/control-plane/default-playbook/catalog/run-profiles.json +130 -0
  6. package/control-plane/default-playbook/prompts/integrator.md +1 -1
  7. package/dist/__generated__/client/internal/class.js +4 -4
  8. package/dist/__generated__/client/internal/class.js.map +1 -1
  9. package/dist/__generated__/client/internal/prismaNamespace.js +0 -1
  10. package/dist/__generated__/client/internal/prismaNamespace.js.map +1 -1
  11. package/dist/__generated__/client/internal/prismaNamespaceBrowser.js +0 -1
  12. package/dist/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
  13. package/dist/api/graphql-api/inbox/inputs/resolve-gate.input.js +9 -0
  14. package/dist/api/graphql-api/inbox/inputs/resolve-gate.input.js.map +1 -1
  15. package/dist/api/graphql-api/method/inputs/create-run-profile.input.js +54 -0
  16. package/dist/api/graphql-api/method/inputs/create-run-profile.input.js.map +1 -0
  17. package/dist/api/graphql-api/method/inputs/deprecate-run-profile.input.js +37 -0
  18. package/dist/api/graphql-api/method/inputs/deprecate-run-profile.input.js.map +1 -0
  19. package/dist/api/graphql-api/method/inputs/get-run-profile.input.js +32 -0
  20. package/dist/api/graphql-api/method/inputs/get-run-profile.input.js.map +1 -0
  21. package/dist/api/graphql-api/method/inputs/list-run-profiles.input.js +33 -0
  22. package/dist/api/graphql-api/method/inputs/list-run-profiles.input.js.map +1 -0
  23. package/dist/api/graphql-api/method/inputs/update-run-profile.input.js +59 -0
  24. package/dist/api/graphql-api/method/inputs/update-run-profile.input.js.map +1 -0
  25. package/dist/api/graphql-api/method/inputs/validate-run-profile.input.js +33 -0
  26. package/dist/api/graphql-api/method/inputs/validate-run-profile.input.js.map +1 -0
  27. package/dist/api/graphql-api/method/method.resolver.js +76 -1
  28. package/dist/api/graphql-api/method/method.resolver.js.map +1 -1
  29. package/dist/api/graphql-api/method/model/run-profile-connection.model.js +16 -0
  30. package/dist/api/graphql-api/method/model/run-profile-connection.model.js.map +1 -0
  31. package/dist/api/graphql-api/method/model/run-profile-status.model.js +6 -0
  32. package/dist/api/graphql-api/method/model/run-profile-status.model.js.map +1 -0
  33. package/dist/api/graphql-api/method/model/run-profile.model.js +79 -0
  34. package/dist/api/graphql-api/method/model/run-profile.model.js.map +1 -0
  35. package/dist/api/graphql-api/registerGraphqlEnums.js +4 -0
  36. package/dist/api/graphql-api/registerGraphqlEnums.js.map +1 -1
  37. package/dist/api/graphql-api/runs/inputs/create-run.input.js +6 -7
  38. package/dist/api/graphql-api/runs/inputs/create-run.input.js.map +1 -1
  39. package/dist/api/graphql-api/runs/inputs/simulate-route.input.js +6 -7
  40. package/dist/api/graphql-api/runs/inputs/simulate-route.input.js.map +1 -1
  41. package/dist/control-plane/default-playbook-policy.js +2 -11
  42. package/dist/control-plane/default-playbook-policy.js.map +1 -1
  43. package/dist/control-plane/engine-transport.js +2 -0
  44. package/dist/control-plane/engine-transport.js.map +1 -1
  45. package/dist/control-plane/json-fields.js +1 -1
  46. package/dist/control-plane/json-fields.js.map +1 -1
  47. package/dist/control-plane/pipeline-coverage-registry.js +26 -18
  48. package/dist/control-plane/pipeline-coverage-registry.js.map +1 -1
  49. package/dist/control-plane/run-profiles.js +101 -15
  50. package/dist/control-plane/run-profiles.js.map +1 -1
  51. package/dist/control-plane/transport.js.map +1 -1
  52. package/dist/control-plane/versioned-meaning.js +18 -3
  53. package/dist/control-plane/versioned-meaning.js.map +1 -1
  54. package/dist/e2e/kit/agents.js +3 -2
  55. package/dist/e2e/kit/agents.js.map +1 -1
  56. package/dist/e2e/kit/assertions.js +2 -2
  57. package/dist/e2e/kit/crash.js +8 -4
  58. package/dist/e2e/kit/crash.js.map +1 -1
  59. package/dist/e2e/kit/drive.js.map +1 -1
  60. package/dist/e2e/kit/fake-integrator.js +3 -36
  61. package/dist/e2e/kit/fake-integrator.js.map +1 -1
  62. package/dist/e2e/kit/gh-emulator.js +8 -2
  63. package/dist/e2e/kit/gh-emulator.js.map +1 -1
  64. package/dist/e2e/kit/index.js +1 -0
  65. package/dist/e2e/kit/index.js.map +1 -1
  66. package/dist/e2e/kit/run-profiles.js +50 -0
  67. package/dist/e2e/kit/run-profiles.js.map +1 -0
  68. package/dist/e2e/kit/scenario.js +48 -6
  69. package/dist/e2e/kit/scenario.js.map +1 -1
  70. package/dist/e2e/kit/scenarios.js +26 -27
  71. package/dist/e2e/kit/scenarios.js.map +1 -1
  72. package/dist/e2e/recovery-crash-child.js +2 -2
  73. package/dist/e2e/recovery-crash-child.js.map +1 -1
  74. package/dist/e2e/recovery-dd-crash-child.js +8 -6
  75. package/dist/e2e/recovery-dd-crash-child.js.map +1 -1
  76. package/dist/features/inbox/commands/impl/resolve-gate.command.js.map +1 -1
  77. package/dist/features/method/commands/handlers/method-command.handlers.js +64 -0
  78. package/dist/features/method/commands/handlers/method-command.handlers.js.map +1 -0
  79. package/dist/features/method/commands/impl/create-run-profile.command.js +7 -0
  80. package/dist/features/method/commands/impl/create-run-profile.command.js.map +1 -0
  81. package/dist/features/method/commands/impl/deprecate-run-profile.command.js +7 -0
  82. package/dist/features/method/commands/impl/deprecate-run-profile.command.js.map +1 -0
  83. package/dist/features/method/commands/impl/update-run-profile.command.js +7 -0
  84. package/dist/features/method/commands/impl/update-run-profile.command.js.map +1 -0
  85. package/dist/features/method/commands/index.js +6 -1
  86. package/dist/features/method/commands/index.js.map +1 -1
  87. package/dist/features/method/method-api.service.js +31 -3
  88. package/dist/features/method/method-api.service.js.map +1 -1
  89. package/dist/features/method/queries/handlers/method-query.handlers.js +58 -1
  90. package/dist/features/method/queries/handlers/method-query.handlers.js.map +1 -1
  91. package/dist/features/method/queries/impl/get-run-profile.query.js +7 -0
  92. package/dist/features/method/queries/impl/get-run-profile.query.js.map +1 -0
  93. package/dist/features/method/queries/impl/list-run-profiles.query.js +7 -0
  94. package/dist/features/method/queries/impl/list-run-profiles.query.js.map +1 -0
  95. package/dist/features/method/queries/impl/validate-run-profile.query.js +7 -0
  96. package/dist/features/method/queries/impl/validate-run-profile.query.js.map +1 -0
  97. package/dist/features/method/queries/index.js +4 -1
  98. package/dist/features/method/queries/index.js.map +1 -1
  99. package/dist/features/runs/commands/impl/create-run.command.js.map +1 -1
  100. package/dist/features/runs/queries/impl/simulate-route.query.js.map +1 -1
  101. package/dist/features/shared/connection.js +6 -3
  102. package/dist/features/shared/connection.js.map +1 -1
  103. package/dist/mcp/mcp-capabilities.js +5 -0
  104. package/dist/mcp/mcp-capabilities.js.map +1 -1
  105. package/dist/mcp/mcp-facade.service.js +34 -12
  106. package/dist/mcp/mcp-facade.service.js.map +1 -1
  107. package/dist/mcp/mcp-tool-result.js +22 -0
  108. package/dist/mcp/mcp-tool-result.js.map +1 -0
  109. package/dist/mcp/mcp-tools.js +90 -17
  110. package/dist/mcp/mcp-tools.js.map +1 -1
  111. package/dist/pipeline/await-human.js +27 -8
  112. package/dist/pipeline/await-human.js.map +1 -1
  113. package/dist/pipeline/data-driven-task.workflow.js +318 -69
  114. package/dist/pipeline/data-driven-task.workflow.js.map +1 -1
  115. package/dist/pipeline/pipeline.service.js +4 -10
  116. package/dist/pipeline/pipeline.service.js.map +1 -1
  117. package/dist/pipeline/route-contract.js +22 -101
  118. package/dist/pipeline/route-contract.js.map +1 -1
  119. package/dist/playbook/catalog-loader.js +1 -1
  120. package/dist/playbook/catalog-loader.js.map +1 -1
  121. package/dist/playbook/catalog-schema-validator.js +69 -39
  122. package/dist/playbook/catalog-schema-validator.js.map +1 -1
  123. package/dist/playbook/import-mapper.js +20 -9
  124. package/dist/playbook/import-mapper.js.map +1 -1
  125. package/dist/revisium/playbooks.service.js +208 -13
  126. package/dist/revisium/playbooks.service.js.map +1 -1
  127. package/dist/run/create-run.js +0 -3
  128. package/dist/run/create-run.js.map +1 -1
  129. package/dist/run/inspect-run.js +1 -1
  130. package/dist/run/inspect-run.js.map +1 -1
  131. package/dist/run/prisma-runtime-data-access.js +0 -3
  132. package/dist/run/prisma-runtime-data-access.js.map +1 -1
  133. package/dist/runners/gh-identity.js +29 -7
  134. package/dist/runners/gh-identity.js.map +1 -1
  135. package/dist/runners/integrator.js +73 -71
  136. package/dist/runners/integrator.js.map +1 -1
  137. package/dist/storage/ensure-storage.js +2 -1
  138. package/dist/storage/ensure-storage.js.map +1 -1
  139. package/dist/task-control-plane/task-control-plane-api.service.js +410 -159
  140. package/dist/task-control-plane/task-control-plane-api.service.js.map +1 -1
  141. package/dist/worker/claude-code-runner.js +1 -3
  142. package/dist/worker/claude-code-runner.js.map +1 -1
  143. package/package.json +1 -1
  144. package/prisma/migrations/20260707103000_prisma_runtime_tables/migration.sql +0 -1
  145. package/prisma/schema.prisma +16 -17
  146. package/dist/api/graphql-api/runs/inputs/execution-profile.input.js +0 -85
  147. package/dist/api/graphql-api/runs/inputs/execution-profile.input.js.map +0 -1
package/README.md CHANGED
@@ -118,7 +118,7 @@ Revo is in active development. The public roadmap lives in GitHub Milestones and
118
118
  | --- | --- |
119
119
  | Default playbook stabilization | [Milestone #1](https://github.com/revisium/orchestrator/milestone/1), [umbrella #146](https://github.com/revisium/orchestrator/issues/146) |
120
120
  | GraphQL admin API v1 migration | [Milestone #4](https://github.com/revisium/orchestrator/milestone/4), [umbrella #167](https://github.com/revisium/orchestrator/issues/167) |
121
- | Execution profiles and runner/model binding | [Milestone #5](https://github.com/revisium/orchestrator/milestone/5), [umbrella #168](https://github.com/revisium/orchestrator/issues/168) |
121
+ | Run profiles and runner/model binding | [Milestone #5](https://github.com/revisium/orchestrator/milestone/5), [umbrella #168](https://github.com/revisium/orchestrator/issues/168) |
122
122
  | Loop engineering layer | [Milestone #2](https://github.com/revisium/orchestrator/milestone/2), [umbrella #148](https://github.com/revisium/orchestrator/issues/148) |
123
123
  | Role and pipeline authoring | [Milestone #3](https://github.com/revisium/orchestrator/milestone/3), [umbrella #157](https://github.com/revisium/orchestrator/issues/157) |
124
124
 
@@ -41,7 +41,7 @@
41
41
  "runner_id": {
42
42
  "type": "string",
43
43
  "default": "",
44
- "description": "Portable playbook runner binding, for example claude-code or revo-integrator"
44
+ "description": "Portable playbook runner binding, for example claude-code, codex, or script"
45
45
  },
46
46
  "allowed_tools": {
47
47
  "type": "array",
@@ -346,6 +346,10 @@
346
346
  "type": "string",
347
347
  "default": ""
348
348
  },
349
+ "profile_revision_hash": {
350
+ "type": "string",
351
+ "default": ""
352
+ },
349
353
  "status": {
350
354
  "type": "string",
351
355
  "default": "active",
@@ -1493,5 +1493,56 @@
1493
1493
  "title": "Local change — developer only, no gate"
1494
1494
  }
1495
1495
  }
1496
+ },
1497
+ {
1498
+ "id": "analysis-only",
1499
+ "path": "prompts/orchestrator.md",
1500
+ "triggers": [
1501
+ "analysis only",
1502
+ "research",
1503
+ "investigation"
1504
+ ],
1505
+ "required_roles": [
1506
+ "orchestrator",
1507
+ "analyst"
1508
+ ],
1509
+ "alternative_roles": [],
1510
+ "optional_roles": [],
1511
+ "route_gates": [],
1512
+ "platform_invocation": "canonical-only",
1513
+ "execution_policy": {
1514
+ "raw": [
1515
+ "Built-in default: analyst produces a read-only analysis result, then the run completes."
1516
+ ],
1517
+ "template_json": {
1518
+ "specVersion": "1.0",
1519
+ "pipelineId": "analysis-only",
1520
+ "entry": "analyst",
1521
+ "verdicts": {
1522
+ "domain": [
1523
+ "approved"
1524
+ ]
1525
+ },
1526
+ "nodes": {
1527
+ "analyst": {
1528
+ "id": "analyst",
1529
+ "kind": "agent",
1530
+ "roleRef": "role:analyst",
1531
+ "next": "doneEnd",
1532
+ "onFailure": "abort",
1533
+ "resultSchema": "schema:analysis",
1534
+ "produces": {
1535
+ "name": "analysis"
1536
+ }
1537
+ },
1538
+ "doneEnd": {
1539
+ "id": "doneEnd",
1540
+ "kind": "terminal",
1541
+ "status": "succeeded"
1542
+ }
1543
+ },
1544
+ "title": "Analysis only"
1545
+ }
1546
+ }
1496
1547
  }
1497
1548
  ]
@@ -42,7 +42,7 @@
42
42
  "rights": "git-gh",
43
43
  "allowed_tools": ["Read", "Bash"],
44
44
  "default_model_level": "standard",
45
- "runner_id": "revo-integrator"
45
+ "runner_id": "script"
46
46
  },
47
47
  {
48
48
  "id": "watcher",
@@ -18,6 +18,10 @@
18
18
  },
19
19
  "bindings": {
20
20
  "slots": {
21
+ "orchestrator": {
22
+ "runnerId": "claude-code",
23
+ "modelLevel": "deep"
24
+ },
21
25
  "analyst": {
22
26
  "runnerId": "claude-code",
23
27
  "modelLevel": "deep"
@@ -62,6 +66,10 @@
62
66
  },
63
67
  "bindings": {
64
68
  "slots": {
69
+ "orchestrator": {
70
+ "runnerId": "codex",
71
+ "modelLevel": "codex-deep"
72
+ },
65
73
  "analyst": {
66
74
  "runnerId": "codex",
67
75
  "modelLevel": "codex-deep",
@@ -109,6 +117,10 @@
109
117
  },
110
118
  "bindings": {
111
119
  "slots": {
120
+ "orchestrator": {
121
+ "runnerId": "codex",
122
+ "modelLevel": "codex-deep"
123
+ },
112
124
  "analyst": {
113
125
  "runnerId": "codex",
114
126
  "modelLevel": "codex-deep",
@@ -168,6 +180,10 @@
168
180
  },
169
181
  "bindings": {
170
182
  "slots": {
183
+ "orchestrator": {
184
+ "runnerId": "claude-code",
185
+ "modelLevel": "deep"
186
+ },
171
187
  "analyst": {
172
188
  "runnerId": "claude-code",
173
189
  "modelLevel": "deep"
@@ -204,5 +220,119 @@
204
220
  }
205
221
  },
206
222
  "status": "active"
223
+ },
224
+ {
225
+ "id": "local-change-claude-standard",
226
+ "pipelineId": "local-change",
227
+ "schemaVersion": "run-profile/v1",
228
+ "version": "1",
229
+ "displayName": "Local change Claude standard",
230
+ "summary": "Claude Code runs the local-change developer slot.",
231
+ "topology": {
232
+ "stages": {
233
+ "developer": {
234
+ "mode": "single"
235
+ }
236
+ }
237
+ },
238
+ "bindings": {
239
+ "slots": {
240
+ "orchestrator": {
241
+ "runnerId": "claude-code",
242
+ "modelLevel": "deep"
243
+ },
244
+ "developer": {
245
+ "runnerId": "claude-code",
246
+ "modelLevel": "standard",
247
+ "permissionMode": "acceptEdits"
248
+ }
249
+ }
250
+ },
251
+ "status": "active"
252
+ },
253
+ {
254
+ "id": "local-change-codex-standard",
255
+ "pipelineId": "local-change",
256
+ "schemaVersion": "run-profile/v1",
257
+ "version": "1",
258
+ "displayName": "Local change Codex standard",
259
+ "summary": "Codex runs the local-change developer slot.",
260
+ "topology": {
261
+ "stages": {
262
+ "developer": {
263
+ "mode": "single"
264
+ }
265
+ }
266
+ },
267
+ "bindings": {
268
+ "slots": {
269
+ "orchestrator": {
270
+ "runnerId": "codex",
271
+ "modelLevel": "codex-deep"
272
+ },
273
+ "developer": {
274
+ "runnerId": "codex",
275
+ "modelLevel": "codex-standard",
276
+ "permissionMode": "workspace-write"
277
+ }
278
+ }
279
+ },
280
+ "status": "active"
281
+ },
282
+ {
283
+ "id": "analysis-only-claude-standard",
284
+ "pipelineId": "analysis-only",
285
+ "schemaVersion": "run-profile/v1",
286
+ "version": "1",
287
+ "displayName": "Analysis only Claude standard",
288
+ "summary": "Claude Code runs the analysis-only analyst slot.",
289
+ "topology": {
290
+ "stages": {
291
+ "analyst": {
292
+ "mode": "single"
293
+ }
294
+ }
295
+ },
296
+ "bindings": {
297
+ "slots": {
298
+ "orchestrator": {
299
+ "runnerId": "claude-code",
300
+ "modelLevel": "deep"
301
+ },
302
+ "analyst": {
303
+ "runnerId": "claude-code",
304
+ "modelLevel": "deep"
305
+ }
306
+ }
307
+ },
308
+ "status": "active"
309
+ },
310
+ {
311
+ "id": "analysis-only-codex-standard",
312
+ "pipelineId": "analysis-only",
313
+ "schemaVersion": "run-profile/v1",
314
+ "version": "1",
315
+ "displayName": "Analysis only Codex standard",
316
+ "summary": "Codex runs the analysis-only analyst slot.",
317
+ "topology": {
318
+ "stages": {
319
+ "analyst": {
320
+ "mode": "single"
321
+ }
322
+ }
323
+ },
324
+ "bindings": {
325
+ "slots": {
326
+ "orchestrator": {
327
+ "runnerId": "codex",
328
+ "modelLevel": "codex-deep"
329
+ },
330
+ "analyst": {
331
+ "runnerId": "codex",
332
+ "modelLevel": "codex-deep"
333
+ }
334
+ }
335
+ },
336
+ "status": "active"
207
337
  }
208
338
  ]
@@ -1,7 +1,7 @@
1
1
  # Integrator
2
2
 
3
3
  The **integrator** is a built-in SYSTEM SCRIPT, not an LLM agent. The engine dispatches it via
4
- the `revo-integrator` runner; this file documents its contract.
4
+ the `script:integrator` pipeline node; this file documents its contract.
5
5
 
6
6
  ## Goal
7
7