@vellumai/assistant 0.8.12-dev.202606150559.f5afe8b → 0.8.12-dev.202606150824.4ddebe7
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.
- package/bun.lock +55 -41
- package/docs/workflows-testing.md +221 -0
- package/docs/workflows.md +474 -0
- package/openapi.yaml +342 -4
- package/package.json +4 -2
- package/src/__tests__/db-schedule-syntax-migration.test.ts +22 -0
- package/src/__tests__/gateway-flag-listener.test.ts +24 -7
- package/src/__tests__/llm-resolver.test.ts +24 -0
- package/src/__tests__/require-fresh-approval.test.ts +226 -0
- package/src/__tests__/schedule-routes-workflow-validation.test.ts +362 -0
- package/src/__tests__/schedule-routes.test.ts +64 -2
- package/src/__tests__/schedule-tools.test.ts +111 -1
- package/src/__tests__/task-scheduler.test.ts +245 -0
- package/src/config/__tests__/workflows-schema.test.ts +60 -0
- package/src/config/bundled-skills/schedule/SKILL.md +3 -2
- package/src/config/bundled-skills/schedule/TOOLS.json +20 -4
- package/src/config/call-site-defaults.ts +5 -0
- package/src/config/feature-flag-registry.json +8 -0
- package/src/config/schema.ts +2 -0
- package/src/config/schemas/call-site-catalog.ts +7 -0
- package/src/config/schemas/llm.ts +1 -0
- package/src/config/schemas/workflows.ts +42 -0
- package/src/daemon/lifecycle.ts +30 -3
- package/src/daemon/message-protocol.ts +3 -0
- package/src/daemon/message-types/workflows.ts +49 -0
- package/src/ipc/gateway-flag-listener.ts +26 -6
- package/src/memory/db-init.ts +6 -0
- package/src/memory/db-maintenance.ts +16 -0
- package/src/memory/migrations/284-workflow-runs.ts +51 -0
- package/src/memory/migrations/285-schedule-workflow-mode.ts +26 -0
- package/src/memory/migrations/286-workflow-run-trust.ts +27 -0
- package/src/memory/migrations/index.ts +3 -0
- package/src/memory/schema/infrastructure.ts +2 -0
- package/src/runtime/routes/index.ts +2 -0
- package/src/runtime/routes/schedule-routes.ts +214 -11
- package/src/runtime/routes/workflow-routes.test.ts +338 -0
- package/src/runtime/routes/workflow-routes.ts +351 -0
- package/src/schedule/schedule-store.ts +79 -1
- package/src/schedule/scheduler.ts +84 -0
- package/src/tools/executor.ts +52 -0
- package/src/tools/flag-gated-tools.test.ts +89 -0
- package/src/tools/registry.ts +61 -0
- package/src/tools/schedule/create.ts +25 -1
- package/src/tools/schedule/update.ts +49 -1
- package/src/tools/tool-manifest.ts +31 -0
- package/src/tools/workflows/manage-workflows.ts +176 -0
- package/src/tools/workflows/run-workflow.test.ts +373 -0
- package/src/tools/workflows/run-workflow.ts +209 -0
- package/src/workflows/capabilities.test.ts +365 -0
- package/src/workflows/capabilities.ts +359 -0
- package/src/workflows/deterministic-stringify.ts +27 -0
- package/src/workflows/engine-integration.test.ts +656 -0
- package/src/workflows/engine.test.ts +1144 -0
- package/src/workflows/engine.ts +1078 -0
- package/src/workflows/fanout-load.test.ts +168 -0
- package/src/workflows/journal-store.test.ts +369 -0
- package/src/workflows/journal-store.ts +470 -0
- package/src/workflows/leaf-runner.test.ts +704 -0
- package/src/workflows/leaf-runner.ts +589 -0
- package/src/workflows/library.test.ts +134 -0
- package/src/workflows/library.ts +124 -0
- package/src/workflows/run-manager.test.ts +711 -0
- package/src/workflows/run-manager.ts +590 -0
- package/src/workflows/sandbox-escape.test.ts +339 -0
- package/src/workflows/sandbox.test.ts +251 -0
- package/src/workflows/sandbox.ts +447 -0
package/bun.lock
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"@agentclientprotocol/sdk": "0.25.0",
|
|
9
9
|
"@anthropic-ai/sdk": "0.78.0",
|
|
10
10
|
"@google/genai": "1.45.0",
|
|
11
|
+
"@jitl/quickjs-singlefile-mjs-release-asyncify": "0.32.0",
|
|
11
12
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
12
13
|
"@qdrant/js-client-rest": "1.17.0",
|
|
13
14
|
"@resvg/resvg-js": "2.6.2",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"pino-pretty": "13.1.3",
|
|
35
36
|
"playwright": "1.58.2",
|
|
36
37
|
"postgres": "3.4.8",
|
|
38
|
+
"quickjs-emscripten": "0.32.0",
|
|
37
39
|
"rrule": "2.8.1",
|
|
38
40
|
"semver": "7.8.0",
|
|
39
41
|
"stemmer": "2.0.1",
|
|
@@ -183,6 +185,18 @@
|
|
|
183
185
|
|
|
184
186
|
"@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="],
|
|
185
187
|
|
|
188
|
+
"@jitl/quickjs-ffi-types": ["@jitl/quickjs-ffi-types@0.32.0", "", {}, "sha512-v9T+GQpmk43VDJ7d72sf0Nexhk+ArvtUihW27dy7lqAl0zBObFKtSBBIm5RBjwIhE8VwsPPm9PNuvPvNqLWUEg=="],
|
|
189
|
+
|
|
190
|
+
"@jitl/quickjs-singlefile-mjs-release-asyncify": ["@jitl/quickjs-singlefile-mjs-release-asyncify@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-i5o5tV5JTItMqWAlxydlfFySyg4LpcGtOYk8e1vcVzTvGMKasrMKlJSjrleNdcIeDvi1KuPGrX49UV79MEbNzw=="],
|
|
191
|
+
|
|
192
|
+
"@jitl/quickjs-wasmfile-debug-asyncify": ["@jitl/quickjs-wasmfile-debug-asyncify@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-EX8zbXwGqCgAE764M+qvkHtyXDi/FUoMBea0JnES7vCM3P7a2+EOZOjGv85wtZ2sJhI1oJ+nekmqpOODFDY+hw=="],
|
|
193
|
+
|
|
194
|
+
"@jitl/quickjs-wasmfile-debug-sync": ["@jitl/quickjs-wasmfile-debug-sync@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-LeYWrPGC1uNCTBWvibo3ZLJj0CSVNYUXvJpXMCmuQ5Sap2cCACc3uvGvYV4homHHBAzfw5akoTqMMS4YFRtw+Q=="],
|
|
195
|
+
|
|
196
|
+
"@jitl/quickjs-wasmfile-release-asyncify": ["@jitl/quickjs-wasmfile-release-asyncify@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-3oSwPfja12ICz4aIblB58cuY8JlEq5Txt8Cut4VLo+LH47QN+mzCnSgnbB03hWzg1LBcc+VyyI9UOag7a1NF+Q=="],
|
|
197
|
+
|
|
198
|
+
"@jitl/quickjs-wasmfile-release-sync": ["@jitl/quickjs-wasmfile-release-sync@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-BKNDI/TPBfGlLNGYpLrhcDGXmIk4xHm4MRAisOBnOzpXVn9HZWsfmMAc9WMBrAHjvvds6HOikKeaOBKdPdpVrg=="],
|
|
199
|
+
|
|
186
200
|
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
|
|
187
201
|
|
|
188
202
|
"@microsoft/api-extractor": ["@microsoft/api-extractor@7.58.8", "", { "dependencies": { "@microsoft/api-extractor-model": "7.33.8", "@microsoft/tsdoc": "~0.16.0", "@microsoft/tsdoc-config": "~0.18.1", "@rushstack/node-core-library": "5.23.1", "@rushstack/rig-package": "0.7.3", "@rushstack/terminal": "0.24.0", "@rushstack/ts-command-line": "5.3.9", "diff": "~8.0.2", "minimatch": "10.2.3", "resolve": "~1.22.1", "semver": "~7.7.4", "source-map": "~0.6.1", "typescript": "5.9.3" }, "bin": { "api-extractor": "bin/api-extractor" } }, "sha512-Y45rdEvZodD1WBAK9w8Wvqj7k/6z21YOEP8aVNWv1vemEzanjThvCowc3Eyt/bmJJyqI4gj0BQr9nLC51fsDiQ=="],
|
|
@@ -321,8 +335,6 @@
|
|
|
321
335
|
|
|
322
336
|
"@protobufjs/float": ["@protobufjs/float@1.0.2", "", {}, "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="],
|
|
323
337
|
|
|
324
|
-
"@protobufjs/inquire": ["@protobufjs/inquire@1.1.2", "", {}, "sha512-pa0vFRuws4wkvaXKK1uXZMAwAX4/t8ANaJo45iw/oQHNQ9q5xUzwgFmVJGXiga2BeN+zpX7Vf9vmsiIa2J+MUw=="],
|
|
325
|
-
|
|
326
338
|
"@protobufjs/path": ["@protobufjs/path@1.1.2", "", {}, "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="],
|
|
327
339
|
|
|
328
340
|
"@protobufjs/pool": ["@protobufjs/pool@1.1.0", "", {}, "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="],
|
|
@@ -445,7 +457,7 @@
|
|
|
445
457
|
|
|
446
458
|
"@vellumai/environments": ["@vellumai/environments@file:../packages/environments", { "devDependencies": { "@types/bun": "1.3.11", "typescript": "5.9.3" } }],
|
|
447
459
|
|
|
448
|
-
"@vellumai/gateway-client": ["@vellumai/gateway-client@file:../packages/gateway-client", { "dependencies": { "@vellumai/service-contracts": "file:../service-contracts" }, "devDependencies": { "@types/bun": "1.3.10", "typescript": "5.9.3" } }],
|
|
460
|
+
"@vellumai/gateway-client": ["@vellumai/gateway-client@file:../packages/gateway-client", { "dependencies": { "@vellumai/service-contracts": "file:../service-contracts", "zod": "4.3.6" }, "devDependencies": { "@types/bun": "1.3.10", "typescript": "5.9.3" } }],
|
|
449
461
|
|
|
450
462
|
"@vellumai/ipc-server-utils": ["@vellumai/ipc-server-utils@file:../packages/ipc-server-utils", { "devDependencies": { "@types/bun": "1.3.10", "typescript": "5.9.3" } }],
|
|
451
463
|
|
|
@@ -995,7 +1007,7 @@
|
|
|
995
1007
|
|
|
996
1008
|
"process-warning": ["process-warning@5.0.0", "", {}, "sha512-a39t9ApHNx2L4+HBnQKqxxHNs1r7KF+Intd8Q/g1bUh6q0WIp9voPXJ/x0j+ZL45KF1pJd9+q2jLIRMfvEshkA=="],
|
|
997
1009
|
|
|
998
|
-
"protobufjs": ["protobufjs@7.6.
|
|
1010
|
+
"protobufjs": ["protobufjs@7.6.4", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.5", "@protobufjs/eventemitter": "^1.1.1", "@protobufjs/fetch": "^1.1.1", "@protobufjs/float": "^1.0.2", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.1", "@types/node": ">=13.7.0", "long": "^5.3.2" } }, "sha512-RJJPTTpvFfHcWLkIa2JFWK4XvtSzS0yEWDmunqHXli1h3JlkbcQZXDZdcWxv+JK3Xsl5/UFDPZ0iGm7DAengYw=="],
|
|
999
1011
|
|
|
1000
1012
|
"proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="],
|
|
1001
1013
|
|
|
@@ -1011,6 +1023,10 @@
|
|
|
1011
1023
|
|
|
1012
1024
|
"quick-format-unescaped": ["quick-format-unescaped@4.0.4", "", {}, "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg=="],
|
|
1013
1025
|
|
|
1026
|
+
"quickjs-emscripten": ["quickjs-emscripten@0.32.0", "", { "dependencies": { "@jitl/quickjs-wasmfile-debug-asyncify": "0.32.0", "@jitl/quickjs-wasmfile-debug-sync": "0.32.0", "@jitl/quickjs-wasmfile-release-asyncify": "0.32.0", "@jitl/quickjs-wasmfile-release-sync": "0.32.0", "quickjs-emscripten-core": "0.32.0" } }, "sha512-So0Sqw869y/S2oE3Nuc0uT3Dhqgvsj8FSrwBdsuTosVsG8ME5/OcudU1GxsrIFdFABgy17GHnTVO9TYV/bLQcA=="],
|
|
1027
|
+
|
|
1028
|
+
"quickjs-emscripten-core": ["quickjs-emscripten-core@0.32.0", "", { "dependencies": { "@jitl/quickjs-ffi-types": "0.32.0" } }, "sha512-QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg=="],
|
|
1029
|
+
|
|
1014
1030
|
"quote-unquote": ["quote-unquote@1.0.0", "", {}, "sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg=="],
|
|
1015
1031
|
|
|
1016
1032
|
"range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
|
|
@@ -1103,7 +1119,7 @@
|
|
|
1103
1119
|
|
|
1104
1120
|
"stream-to-array": ["stream-to-array@2.3.0", "", { "dependencies": { "any-promise": "^1.1.0" } }, "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA=="],
|
|
1105
1121
|
|
|
1106
|
-
"streamx": ["streamx@2.
|
|
1122
|
+
"streamx": ["streamx@2.28.0", "", { "dependencies": { "events-universal": "^1.0.0", "fast-fifo": "^1.3.2", "text-decoder": "^1.1.0" } }, "sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw=="],
|
|
1107
1123
|
|
|
1108
1124
|
"string-argv": ["string-argv@0.3.2", "", {}, "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q=="],
|
|
1109
1125
|
|
|
@@ -1215,8 +1231,6 @@
|
|
|
1215
1231
|
|
|
1216
1232
|
"@microsoft/api-extractor/semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
|
1217
1233
|
|
|
1218
|
-
"@modelcontextprotocol/sdk/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
|
1219
|
-
|
|
1220
1234
|
"@opentelemetry/instrumentation-http/@opentelemetry/core": ["@opentelemetry/core@2.5.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-ka4H8OM6+DlUhSAZpONu0cPBtPPTQKxbxVzC4CzVx5+K4JnroJVBtDzLAMx4/3CDTJXRvVFhpFjtl4SaiTNoyQ=="],
|
|
1221
1235
|
|
|
1222
1236
|
"@prisma/instrumentation/@opentelemetry/instrumentation": ["@opentelemetry/instrumentation@0.207.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.207.0", "import-in-the-middle": "^2.0.0", "require-in-the-middle": "^8.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-y6eeli9+TLKnznrR8AZlQMSJT7wILpXH+6EYq5Vf/4Ao+huI7EedxQHwRgVUOMLFbe7VFDvHJrX9/f4lcwnJsA=="],
|
|
@@ -1227,15 +1241,17 @@
|
|
|
1227
1241
|
|
|
1228
1242
|
"@vellumai/ces-client/@types/bun": ["@types/bun@1.2.4", "", { "dependencies": { "bun-types": "1.2.4" } }, "sha512-QtuV5OMR8/rdKJs213iwXDpfVvnskPXY/S0ZiFbsTjQZycuqPbMW8Gf/XhLfwE5njW8sxI2WjISURXPlHypMFA=="],
|
|
1229
1243
|
|
|
1230
|
-
"@vellumai/ces-client/@vellumai/service-contracts": ["@vellumai/service-contracts@file:../packages/service-contracts", {
|
|
1244
|
+
"@vellumai/ces-client/@vellumai/service-contracts": ["@vellumai/service-contracts@file:../packages/service-contracts", {}],
|
|
1231
1245
|
|
|
1232
1246
|
"@vellumai/ces-client/typescript": ["typescript@5.7.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw=="],
|
|
1233
1247
|
|
|
1234
1248
|
"@vellumai/environments/@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="],
|
|
1235
1249
|
|
|
1236
|
-
"@vellumai/gateway-client/@vellumai/service-contracts": ["@vellumai/service-contracts@file:../packages/service-contracts", {
|
|
1250
|
+
"@vellumai/gateway-client/@vellumai/service-contracts": ["@vellumai/service-contracts@file:../packages/service-contracts", {}],
|
|
1251
|
+
|
|
1252
|
+
"@vellumai/service-contracts/@types/bun": ["@types/bun@1.2.4", "", { "dependencies": { "bun-types": "1.2.4" } }, "sha512-QtuV5OMR8/rdKJs213iwXDpfVvnskPXY/S0ZiFbsTjQZycuqPbMW8Gf/XhLfwE5njW8sxI2WjISURXPlHypMFA=="],
|
|
1237
1253
|
|
|
1238
|
-
"
|
|
1254
|
+
"@vellumai/service-contracts/typescript": ["typescript@5.7.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw=="],
|
|
1239
1255
|
|
|
1240
1256
|
"bl/readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
|
|
1241
1257
|
|
|
@@ -1267,7 +1283,7 @@
|
|
|
1267
1283
|
|
|
1268
1284
|
"stylus-lookup/commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="],
|
|
1269
1285
|
|
|
1270
|
-
"tsx/esbuild": ["esbuild@0.28.
|
|
1286
|
+
"tsx/esbuild": ["esbuild@0.28.1", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.1", "@esbuild/android-arm": "0.28.1", "@esbuild/android-arm64": "0.28.1", "@esbuild/android-x64": "0.28.1", "@esbuild/darwin-arm64": "0.28.1", "@esbuild/darwin-x64": "0.28.1", "@esbuild/freebsd-arm64": "0.28.1", "@esbuild/freebsd-x64": "0.28.1", "@esbuild/linux-arm": "0.28.1", "@esbuild/linux-arm64": "0.28.1", "@esbuild/linux-ia32": "0.28.1", "@esbuild/linux-loong64": "0.28.1", "@esbuild/linux-mips64el": "0.28.1", "@esbuild/linux-ppc64": "0.28.1", "@esbuild/linux-riscv64": "0.28.1", "@esbuild/linux-s390x": "0.28.1", "@esbuild/linux-x64": "0.28.1", "@esbuild/netbsd-arm64": "0.28.1", "@esbuild/netbsd-x64": "0.28.1", "@esbuild/openbsd-arm64": "0.28.1", "@esbuild/openbsd-x64": "0.28.1", "@esbuild/openharmony-arm64": "0.28.1", "@esbuild/sunos-x64": "0.28.1", "@esbuild/win32-arm64": "0.28.1", "@esbuild/win32-ia32": "0.28.1", "@esbuild/win32-x64": "0.28.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw=="],
|
|
1271
1287
|
|
|
1272
1288
|
"tsx/fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
|
|
1273
1289
|
|
|
@@ -1323,12 +1339,10 @@
|
|
|
1323
1339
|
|
|
1324
1340
|
"@vellumai/ces-client/@types/bun/bun-types": ["bun-types@1.2.4", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-nDPymR207ZZEoWD4AavvEaa/KZe/qlrbMSchqpQwovPZCKc7pwMoENjEtHgMKaAjJhy+x6vfqSBA1QU3bJgs0Q=="],
|
|
1325
1341
|
|
|
1326
|
-
"@vellumai/ces-client/@vellumai/service-contracts/@types/bun": ["@types/bun@1.3.10", "", { "dependencies": { "bun-types": "1.3.10" } }, "sha512-0+rlrUrOrTSskibryHbvQkDOWRJwJZqZlxrUs1u4oOoTln8+WIXBPmAuCF35SWB2z4Zl3E84Nl/D0P7803nigQ=="],
|
|
1327
|
-
|
|
1328
|
-
"@vellumai/ces-client/@vellumai/service-contracts/typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
|
1329
|
-
|
|
1330
1342
|
"@vellumai/environments/@types/bun/bun-types": ["bun-types@1.3.11", "", { "dependencies": { "@types/node": "*" } }, "sha512-1KGPpoxQWl9f6wcZh57LvrPIInQMn2TQ7jsgxqpRzg+l0QPOFvJVH7HmvHo/AiPgwXy+/Thf6Ov3EdVn1vOabg=="],
|
|
1331
1343
|
|
|
1344
|
+
"@vellumai/service-contracts/@types/bun/bun-types": ["bun-types@1.2.4", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-nDPymR207ZZEoWD4AavvEaa/KZe/qlrbMSchqpQwovPZCKc7pwMoENjEtHgMKaAjJhy+x6vfqSBA1QU3bJgs0Q=="],
|
|
1345
|
+
|
|
1332
1346
|
"detective-typescript/@typescript-eslint/typescript-estree/@typescript-eslint/project-service": ["@typescript-eslint/project-service@8.61.0", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.61.0", "@typescript-eslint/types": "^8.61.0", "debug": "^4.4.3" }, "peerDependencies": { "typescript": ">=4.8.4 <6.1.0" } }, "sha512-DV42F7MLJO6Rax7SK1yg43tcnEfGUrurSpSxKuVX+a3RCTzBlH3fuxprrOJXKCJGAaw82xXocikJ0uQaqwXgGA=="],
|
|
1333
1347
|
|
|
1334
1348
|
"detective-typescript/@typescript-eslint/typescript-estree/@typescript-eslint/tsconfig-utils": ["@typescript-eslint/tsconfig-utils@8.61.0", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.1.0" } }, "sha512-O5Amvdv9ztMpxpf+vmFULGG78IE6Qwdr3bCGvqwG4nwc9H2qXkOYJJnRbRHyMkQTjv1d03olqwwwzHLMqpFePQ=="],
|
|
@@ -1339,56 +1353,56 @@
|
|
|
1339
1353
|
|
|
1340
1354
|
"eslint/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
|
|
1341
1355
|
|
|
1342
|
-
"tsx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.
|
|
1356
|
+
"tsx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.1", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ=="],
|
|
1343
1357
|
|
|
1344
|
-
"tsx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.28.
|
|
1358
|
+
"tsx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.28.1", "", { "os": "android", "cpu": "arm" }, "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ=="],
|
|
1345
1359
|
|
|
1346
|
-
"tsx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.
|
|
1360
|
+
"tsx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.1", "", { "os": "android", "cpu": "arm64" }, "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg=="],
|
|
1347
1361
|
|
|
1348
|
-
"tsx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.28.
|
|
1362
|
+
"tsx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.28.1", "", { "os": "android", "cpu": "x64" }, "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng=="],
|
|
1349
1363
|
|
|
1350
|
-
"tsx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.
|
|
1364
|
+
"tsx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q=="],
|
|
1351
1365
|
|
|
1352
|
-
"tsx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.
|
|
1366
|
+
"tsx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ=="],
|
|
1353
1367
|
|
|
1354
|
-
"tsx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.
|
|
1368
|
+
"tsx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.1", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw=="],
|
|
1355
1369
|
|
|
1356
|
-
"tsx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.
|
|
1370
|
+
"tsx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ=="],
|
|
1357
1371
|
|
|
1358
|
-
"tsx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.
|
|
1372
|
+
"tsx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.1", "", { "os": "linux", "cpu": "arm" }, "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ=="],
|
|
1359
1373
|
|
|
1360
|
-
"tsx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.
|
|
1374
|
+
"tsx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g=="],
|
|
1361
1375
|
|
|
1362
|
-
"tsx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.
|
|
1376
|
+
"tsx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.1", "", { "os": "linux", "cpu": "ia32" }, "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w=="],
|
|
1363
1377
|
|
|
1364
|
-
"tsx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.
|
|
1378
|
+
"tsx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg=="],
|
|
1365
1379
|
|
|
1366
|
-
"tsx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.
|
|
1380
|
+
"tsx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ=="],
|
|
1367
1381
|
|
|
1368
|
-
"tsx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.
|
|
1382
|
+
"tsx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ=="],
|
|
1369
1383
|
|
|
1370
|
-
"tsx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.
|
|
1384
|
+
"tsx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ=="],
|
|
1371
1385
|
|
|
1372
|
-
"tsx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.
|
|
1386
|
+
"tsx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag=="],
|
|
1373
1387
|
|
|
1374
|
-
"tsx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.
|
|
1388
|
+
"tsx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.1", "", { "os": "linux", "cpu": "x64" }, "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA=="],
|
|
1375
1389
|
|
|
1376
|
-
"tsx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.
|
|
1390
|
+
"tsx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.1", "", { "os": "none", "cpu": "arm64" }, "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw=="],
|
|
1377
1391
|
|
|
1378
|
-
"tsx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.
|
|
1392
|
+
"tsx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.1", "", { "os": "none", "cpu": "x64" }, "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg=="],
|
|
1379
1393
|
|
|
1380
|
-
"tsx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.
|
|
1394
|
+
"tsx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.1", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q=="],
|
|
1381
1395
|
|
|
1382
|
-
"tsx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.
|
|
1396
|
+
"tsx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.1", "", { "os": "openbsd", "cpu": "x64" }, "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw=="],
|
|
1383
1397
|
|
|
1384
|
-
"tsx/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.
|
|
1398
|
+
"tsx/esbuild/@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.1", "", { "os": "none", "cpu": "arm64" }, "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg=="],
|
|
1385
1399
|
|
|
1386
|
-
"tsx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.
|
|
1400
|
+
"tsx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.1", "", { "os": "sunos", "cpu": "x64" }, "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ=="],
|
|
1387
1401
|
|
|
1388
|
-
"tsx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.
|
|
1402
|
+
"tsx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA=="],
|
|
1389
1403
|
|
|
1390
|
-
"tsx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.
|
|
1404
|
+
"tsx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg=="],
|
|
1391
1405
|
|
|
1392
|
-
"tsx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.
|
|
1406
|
+
"tsx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.1", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="],
|
|
1393
1407
|
}
|
|
1394
1408
|
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# Workflows — Manual e2e / Live-Verification Runbook
|
|
2
|
+
|
|
3
|
+
This runbook covers the parts of the workflow engine that automated tests do not:
|
|
4
|
+
real provider calls, real journaled resume across a restart, capability
|
|
5
|
+
containment under a live model, flag-off inertness, and persona-leaf voice. Unit
|
|
6
|
+
and integration coverage lives under `assistant/src/workflows/*.test.ts` and
|
|
7
|
+
`assistant/src/__tests__/`; this is the human-in-the-loop pass that runs **last**,
|
|
8
|
+
on throwaway instances first, and only touches a real inbox or a production
|
|
9
|
+
instance at the very end.
|
|
10
|
+
|
|
11
|
+
Work through the steps in order. The `workflows` flag is **off by default**, so
|
|
12
|
+
every step that exercises the engine first enables it on a throwaway instance.
|
|
13
|
+
|
|
14
|
+
> **Safety rule:** Nothing in this runbook touches a real inbox, a real workspace,
|
|
15
|
+
> or a production instance until every throwaway-instance step has passed. The
|
|
16
|
+
> production/persona instance is the **last** step.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. Hatch a throwaway instance and enable the flag
|
|
21
|
+
|
|
22
|
+
Hatch a disposable Docker instance built from local source:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
vellum hatch --remote docker --source .
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Note the instance name it prints (e.g. `vellum-<adjective>-<animal>`). Use it as
|
|
29
|
+
`--assistant <name>` for everything below, or set it active.
|
|
30
|
+
|
|
31
|
+
Enable the `workflows` flag via that instance's feature-flag override file. The
|
|
32
|
+
override lives in the instance's `protected/feature-flags.json` (overrides here
|
|
33
|
+
win over the registry default — see the feature-flag-overrides gotcha):
|
|
34
|
+
|
|
35
|
+
```jsonc
|
|
36
|
+
// .../<instance>/protected/feature-flags.json
|
|
37
|
+
{ "workflows": true }
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Restart the instance so it re-reads the override, then confirm it is up:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
vellum ps
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Sanity-check that the surface is now live: `vellum workflows runs --assistant <name>`
|
|
47
|
+
should return an (empty) table rather than a 404.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 2. Synthetic-corpus run (no Gmail/Slack dependency)
|
|
52
|
+
|
|
53
|
+
Drive a `run_workflow` over a **fixture item list passed as `args`** — no external
|
|
54
|
+
integration. Ask the assistant (via `vellum events`-visible conversation, the app,
|
|
55
|
+
or a CLI message) to run a small workflow such as the triage example from
|
|
56
|
+
[`workflows.md`](./workflows.md), passing a dozen synthetic items in `args.items`.
|
|
57
|
+
|
|
58
|
+
Watch the run:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
vellum workflows runs --assistant <name> # find the runId
|
|
62
|
+
vellum workflows show <run-id> --assistant <name> # status + agent/token counts
|
|
63
|
+
vellum events --assistant <name> # workflow_progress / workflow_completed
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Confirm:
|
|
67
|
+
|
|
68
|
+
- The run reaches `completed`.
|
|
69
|
+
- `agentsSpawned` matches the number of leaves the script should have launched.
|
|
70
|
+
- A completion summary is injected back into the originating conversation.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 3. Inspect the evidence
|
|
75
|
+
|
|
76
|
+
Query the instance's database directly (the live DB is under the instance's
|
|
77
|
+
`workspace/data/db/assistant.db`).
|
|
78
|
+
|
|
79
|
+
**Leaf cost attribution** — confirm leaves ran on the cost-optimized model and
|
|
80
|
+
tally spend:
|
|
81
|
+
|
|
82
|
+
```sql
|
|
83
|
+
SELECT model, COUNT(*) AS calls,
|
|
84
|
+
SUM(input_tokens) AS in_tok,
|
|
85
|
+
SUM(output_tokens) AS out_tok,
|
|
86
|
+
SUM(estimated_cost_usd) AS usd
|
|
87
|
+
FROM llm_usage_events
|
|
88
|
+
WHERE call_site = 'workflowLeaf'
|
|
89
|
+
GROUP BY model;
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Request shape** — confirm the schema path forced a tool and used a cheap model;
|
|
93
|
+
for persona leaves, confirm identity + memory were injected:
|
|
94
|
+
|
|
95
|
+
```sql
|
|
96
|
+
SELECT id, created_at
|
|
97
|
+
FROM llm_request_logs
|
|
98
|
+
ORDER BY created_at DESC
|
|
99
|
+
LIMIT 20;
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Inspect a few `request_payload` bodies:
|
|
103
|
+
|
|
104
|
+
- A **schema** leaf request carries `tool_choice` forcing the synthetic
|
|
105
|
+
`emit_result` tool and a cheap model id.
|
|
106
|
+
- A **persona** leaf request's system prompt carries the assistant identity and a
|
|
107
|
+
`<memory>` block; an **anonymous** leaf's does not.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 4. Restart-resume (journal replay)
|
|
112
|
+
|
|
113
|
+
Start a **long** synthetic run (enough leaves that it is still in flight for a few
|
|
114
|
+
seconds). While it is running, restart the assistant with **SIGTERM**:
|
|
115
|
+
|
|
116
|
+
> **Never SIGKILL the assistant.** SIGKILL leaves WAL pages unmerged and forces a
|
|
117
|
+
> costly recovery on the next start (and can corrupt an in-flight run). Use a
|
|
118
|
+
> graceful stop / `vellum sleep` / SIGTERM with grace.
|
|
119
|
+
|
|
120
|
+
After restart, the run that was in flight when the process stopped is no longer
|
|
121
|
+
`running` — at startup the assistant reconciles every orphaned `running` row to
|
|
122
|
+
`interrupted` (status only; the accounting counters are preserved). Resume is
|
|
123
|
+
**not automatic**. Confirm the run shows up as interrupted, then trigger an
|
|
124
|
+
explicit resume:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# The crashed run is now interrupted, not running.
|
|
128
|
+
vellum workflows runs --status interrupted
|
|
129
|
+
|
|
130
|
+
# Trigger the resume (or: manage_workflows with action="resume" from chat).
|
|
131
|
+
vellum workflows resume <run-id>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Resuming re-invokes the engine with the **same `runId`**, so the completed prefix
|
|
135
|
+
replays from the journal. Assert:
|
|
136
|
+
|
|
137
|
+
- Resuming does **not** double the `agentsSpawned` count or the
|
|
138
|
+
`llm_usage_events` rows for `call_site = 'workflowLeaf'` — the completed prefix
|
|
139
|
+
replays from the journal rather than re-spawning leaves. The agent count
|
|
140
|
+
**carries** across the restart (it seeds from the persisted run row) instead of
|
|
141
|
+
resetting to zero.
|
|
142
|
+
- Only leaves that had not completed before the restart produce new usage rows.
|
|
143
|
+
- The run transitions `interrupted` → `running` → a terminal status.
|
|
144
|
+
|
|
145
|
+
```sql
|
|
146
|
+
-- Before and after the resume, this count should not grow for already-done leaves.
|
|
147
|
+
SELECT COUNT(*) FROM llm_usage_events WHERE call_site = 'workflowLeaf';
|
|
148
|
+
|
|
149
|
+
-- The journal holds one row per completed (run_id, seq); resuming does not duplicate them.
|
|
150
|
+
SELECT run_id, COUNT(*) FROM workflow_journal GROUP BY run_id;
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 5. Capability containment
|
|
156
|
+
|
|
157
|
+
Author a workflow whose leaf tries to use a **side-effecting tool that is absent
|
|
158
|
+
from its manifest** (e.g. a leaf prompt that pushes the model toward `file_write`
|
|
159
|
+
or a send tool, with `capabilities.tools` left empty). Run it and confirm:
|
|
160
|
+
|
|
161
|
+
- The forbidden tool invocation is **hard-denied** inside the leaf — it never
|
|
162
|
+
executes. The leaf gets an error result, not a permission prompt (there are no
|
|
163
|
+
per-call prompts inside a run).
|
|
164
|
+
- Declaring a **forbidden** tool (`subagent_spawn`, `run_workflow`,
|
|
165
|
+
`manage_workflows`, `manage_secure_command_tool`) in `capabilities.tools` fails
|
|
166
|
+
the run synchronously at start — `run_workflow` returns an error and **no**
|
|
167
|
+
`running` row is created.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## 6. Flag-off inertness
|
|
172
|
+
|
|
173
|
+
On a **default** instance (no `workflows` override, or set back to `false` and
|
|
174
|
+
restart), confirm the whole surface is gone:
|
|
175
|
+
|
|
176
|
+
- `run_workflow` and `manage_workflows` are **absent** from the tool set (the
|
|
177
|
+
assistant cannot call them).
|
|
178
|
+
- The routes 404:
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
vellum workflows runs --assistant <default-instance> # request fails (404)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
- A scheduler `workflow`-mode job is **rejected** (the engine gate throws before
|
|
185
|
+
any run is launched).
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## 7. Real-data smoke (throwaway TEST account)
|
|
190
|
+
|
|
191
|
+
Only after steps 1–6 pass: run the full path against a **throwaway TEST Google or
|
|
192
|
+
Slack account** with about a dozen messages — never a real account. Drive the
|
|
193
|
+
end-to-end flow:
|
|
194
|
+
|
|
195
|
+
1. The assistant enumerates the relevant skill (e.g. `gmail`).
|
|
196
|
+
2. It authors and launches a `run_workflow` over the real messages.
|
|
197
|
+
3. Leaves synthesize results.
|
|
198
|
+
4. Any side-effecting action (label, draft, reply) goes through the declared
|
|
199
|
+
capability manifest and the normal audited-action path.
|
|
200
|
+
|
|
201
|
+
Confirm the run completes, the evidence queries from step 3 look right against
|
|
202
|
+
real content, and every side effect was one the manifest declared.
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 8. Production / persona instance — LAST
|
|
207
|
+
|
|
208
|
+
Flip the `workflows` flag on a real (e.g. persona) instance **only after** the
|
|
209
|
+
throwaway instances above pass, and only after the instance is on current code:
|
|
210
|
+
|
|
211
|
+
1. `git pull` and **restart** the instance so it runs the merged code (a restart
|
|
212
|
+
alone re-runs stale code — see the deploy gotcha).
|
|
213
|
+
2. Enable the flag and restart.
|
|
214
|
+
3. Start with the **smallest real slice** — a few items, dry-run actions where the
|
|
215
|
+
tool supports it — before any larger or side-effecting run.
|
|
216
|
+
4. **Human-eval the persona-leaf voice**: read a persona leaf's output and confirm
|
|
217
|
+
it reads as the assistant, not as a generic worker.
|
|
218
|
+
|
|
219
|
+
Stop and reassess if any run's `agentsSpawned` approaches `maxAgentsPerRun`, if
|
|
220
|
+
spend (step 3 query) is higher than expected, or if any side effect was not one
|
|
221
|
+
the manifest declared.
|