@parcha/agentrun-serve 0.1.0-beta.58 → 0.1.0-beta.60

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 (474) hide show
  1. package/CHANGELOG.md +402 -1
  2. package/README.md +516 -190
  3. package/dist/acp-package.d.ts +5 -1
  4. package/dist/acp-package.js +19 -2
  5. package/dist/adapters.d.ts +23 -2
  6. package/dist/adapters.js +106 -33
  7. package/dist/agent-delete.d.ts +6 -9
  8. package/dist/agent-delete.js +5 -3
  9. package/dist/agent-package.js +11 -1
  10. package/dist/agents-store.js +1 -1
  11. package/dist/answer-text.d.ts +3 -0
  12. package/dist/answer-text.js +22 -0
  13. package/dist/api-only.d.ts +2 -2
  14. package/dist/api-only.js +3 -3
  15. package/dist/archil-routes.d.ts +4 -1
  16. package/dist/archil-routes.js +15 -12
  17. package/dist/archil-settings.d.ts +18 -8
  18. package/dist/archil-settings.js +35 -17
  19. package/dist/attach-conformance.js +5 -4
  20. package/dist/box-paths.d.ts +3 -2
  21. package/dist/box-paths.js +5 -4
  22. package/dist/browser-computer.d.ts +3 -8
  23. package/dist/browser-computer.js +12 -35
  24. package/dist/browser-cost.js +94 -20
  25. package/dist/capacity.d.ts +1 -1
  26. package/dist/capacity.js +3 -3
  27. package/dist/chatgpt-plan.d.ts +7 -0
  28. package/dist/chatgpt-plan.js +35 -11
  29. package/dist/claude-login-token.d.ts +20 -11
  30. package/dist/claude-login-token.js +175 -107
  31. package/dist/claude-login.d.ts +124 -33
  32. package/dist/claude-login.js +562 -85
  33. package/dist/claude-sign-in.d.ts +3 -0
  34. package/dist/claude-sign-in.js +10 -1
  35. package/dist/cli-learning/connections.js +1 -1
  36. package/dist/cli.js +323 -292
  37. package/dist/composio-made.d.ts +1 -6
  38. package/dist/composio-made.js +1 -6
  39. package/dist/composio-owners.d.ts +26 -0
  40. package/dist/composio-owners.js +36 -0
  41. package/dist/composio-preset.d.ts +56 -23
  42. package/dist/composio-preset.js +173 -77
  43. package/dist/composio-triggers.d.ts +4 -4
  44. package/dist/composio-triggers.js +6 -7
  45. package/dist/compute-cost.js +11 -2
  46. package/dist/computer-attach.d.ts +6 -3
  47. package/dist/computer-attach.js +41 -29
  48. package/dist/computer-held-routes.d.ts +1 -1
  49. package/dist/computer-held-routes.js +9 -4
  50. package/dist/computer-keys.d.ts +11 -1
  51. package/dist/computer-keys.js +26 -1
  52. package/dist/computer-record.js +3 -1
  53. package/dist/computer-view.d.ts +5 -3
  54. package/dist/computer-view.js +10 -6
  55. package/dist/computer-viewer.js +36 -7
  56. package/dist/computers.d.ts +2 -1
  57. package/dist/computers.js +6 -3
  58. package/dist/console/THIRD-PARTY-NOTICES.txt +50 -0
  59. package/dist/console/assets/backend-QnwGVBeU.js +166 -0
  60. package/dist/console/assets/index-DZi-muIj.js +629 -0
  61. package/dist/console/assets/share-pz61zIn9.js +6 -0
  62. package/dist/console/assets/styles-CcceGcu2.js +291 -0
  63. package/dist/console/assets/styles-fjQBFfMv.css +1 -0
  64. package/dist/console/index.html +4 -3
  65. package/dist/console/share.html +17 -0
  66. package/dist/decisions.d.ts +17 -7
  67. package/dist/decisions.js +41 -15
  68. package/dist/dial-relay.js +10 -4
  69. package/dist/docker-daemon.js +4 -5
  70. package/dist/docker-host-addresses.js +29 -11
  71. package/dist/email/account.d.ts +6 -0
  72. package/dist/email/account.js +6 -0
  73. package/dist/email/authentication.d.ts +21 -0
  74. package/dist/email/authentication.js +106 -0
  75. package/dist/email/email-faux.d.ts +11 -2
  76. package/dist/email/email-faux.js +21 -5
  77. package/dist/email/mail.d.ts +25 -0
  78. package/dist/email/mail.js +58 -2
  79. package/dist/email/names.js +2 -2
  80. package/dist/email/tools.d.ts +9 -4
  81. package/dist/email/tools.js +95 -13
  82. package/dist/env-switch.d.ts +12 -2
  83. package/dist/env-switch.js +23 -3
  84. package/dist/errors.d.ts +1 -0
  85. package/dist/errors.js +2 -0
  86. package/dist/factory-activity.d.ts +68 -0
  87. package/dist/factory-activity.js +153 -0
  88. package/dist/factory-runs.d.ts +11 -0
  89. package/dist/factory-runs.js +52 -0
  90. package/dist/fal-price.d.ts +11 -1
  91. package/dist/fal-price.js +33 -0
  92. package/dist/faux-computers.js +1 -1
  93. package/dist/filed-answer.d.ts +2 -2
  94. package/dist/filed-answer.js +2 -2
  95. package/dist/filed-tool.d.ts +32 -0
  96. package/dist/filed-tool.js +122 -0
  97. package/dist/graph-served.d.ts +10 -5
  98. package/dist/graph-served.js +40 -10
  99. package/dist/handed-values.js +1 -2
  100. package/dist/harness-check.d.ts +2 -1
  101. package/dist/harness-check.js +45 -12
  102. package/dist/harness-keys.d.ts +1 -2
  103. package/dist/harness-keys.js +10 -8
  104. package/dist/harness-opencode/facts.js +2 -0
  105. package/dist/harness-recipe-entry.d.ts +9 -3
  106. package/dist/harness-recipe-entry.js +18 -9
  107. package/dist/harness-recipe.d.ts +21 -0
  108. package/dist/harness-recipe.js +25 -3
  109. package/dist/harness-table.d.ts +12 -0
  110. package/dist/harness-table.js +21 -6
  111. package/dist/harness.js +6 -2
  112. package/dist/helper-env.d.ts +4 -1
  113. package/dist/helper-env.js +4 -1
  114. package/dist/host-check.d.ts +2 -3
  115. package/dist/host-check.js +13 -7
  116. package/dist/hosted-search.js +1 -1
  117. package/dist/import-worker.js +2 -2
  118. package/dist/import.d.ts +20 -8
  119. package/dist/import.js +448 -187
  120. package/dist/key-refusal.d.ts +14 -2
  121. package/dist/key-refusal.js +97 -33
  122. package/dist/learn/audit.d.ts +28 -27
  123. package/dist/learn/audit.js +87 -62
  124. package/dist/learn/check.js +1 -1
  125. package/dist/learn/commit.d.ts +35 -43
  126. package/dist/learn/commit.js +62 -270
  127. package/dist/learn/compile.d.ts +9 -6
  128. package/dist/learn/compile.js +51 -28
  129. package/dist/learn/corrections.js +1 -1
  130. package/dist/learn/delete.d.ts +5 -12
  131. package/dist/learn/delete.js +17 -30
  132. package/dist/learn/field-check.d.ts +111 -0
  133. package/dist/learn/field-check.js +174 -0
  134. package/dist/learn/forget-run.d.ts +16 -0
  135. package/dist/learn/forget-run.js +53 -0
  136. package/dist/learn/index.js +1 -1
  137. package/dist/learn/learning-of.d.ts +0 -4
  138. package/dist/learn/learning-of.js +0 -5
  139. package/dist/learn/ledger.d.ts +32 -29
  140. package/dist/learn/ledger.js +26 -19
  141. package/dist/learn/{folder.d.ts → legacy/folder.d.ts} +2 -1
  142. package/dist/learn/{folder.js → legacy/folder.js} +4 -7
  143. package/dist/learn/legacy/place.d.ts +16 -0
  144. package/dist/{workspace/learning-workspace.js → learn/legacy/place.js} +12 -42
  145. package/dist/learn/legacy/scrub.d.ts +28 -0
  146. package/dist/learn/legacy/scrub.js +258 -0
  147. package/dist/learn/promote.d.ts +119 -102
  148. package/dist/learn/promote.js +119 -262
  149. package/dist/learn/reset-ledger.d.ts +18 -0
  150. package/dist/learn/reset-ledger.js +14 -0
  151. package/dist/learn/rows.d.ts +186 -0
  152. package/dist/learn/rows.js +376 -0
  153. package/dist/learn/secrets.d.ts +4 -0
  154. package/dist/learn/secrets.js +12 -0
  155. package/dist/learn/workflow-draft.d.ts +4 -1
  156. package/dist/learn/workflow-draft.js +12 -2
  157. package/dist/learned-nodes.d.ts +8 -5
  158. package/dist/learned-nodes.js +8 -5
  159. package/dist/learned-workflow.d.ts +2 -1
  160. package/dist/learned-workflow.js +13 -10
  161. package/dist/learning-cost.d.ts +25 -8
  162. package/dist/learning-cost.js +23 -8
  163. package/dist/learning-reset.d.ts +1 -1
  164. package/dist/learning-reset.js +9 -11
  165. package/dist/learning-routes.d.ts +60 -81
  166. package/dist/learning-routes.js +187 -360
  167. package/dist/learning-setting.d.ts +6 -0
  168. package/dist/learning-setting.js +11 -1
  169. package/dist/learning-words.d.ts +2 -0
  170. package/dist/learning-words.js +2 -0
  171. package/dist/learning.d.ts +18 -24
  172. package/dist/learning.js +35 -66
  173. package/dist/listen-first.d.ts +5 -4
  174. package/dist/listen-first.js +4 -5
  175. package/dist/live-reach.d.ts +7 -0
  176. package/dist/live-reach.js +7 -0
  177. package/dist/mcp-api-only-origins.d.ts +15 -0
  178. package/dist/mcp-api-only-origins.js +40 -0
  179. package/dist/mcp-gateway.d.ts +22 -2
  180. package/dist/mcp-gateway.js +85 -11
  181. package/dist/mcp-oauth.d.ts +1 -1
  182. package/dist/mcp-oauth.js +3 -2
  183. package/dist/mcp-probe.d.ts +3 -0
  184. package/dist/mcp-probe.js +3 -0
  185. package/dist/mcp-resources.d.ts +1 -1
  186. package/dist/mcp-secret-writes.d.ts +24 -2
  187. package/dist/mcp-secret-writes.js +30 -2
  188. package/dist/mcp-servers-store.d.ts +52 -14
  189. package/dist/mcp-servers-store.js +165 -61
  190. package/dist/mcp-sources.d.ts +1 -2
  191. package/dist/mcp-sources.js +1 -2
  192. package/dist/mcp-store.d.ts +5 -5
  193. package/dist/mcp-store.js +3 -3
  194. package/dist/mcp.js +1 -1
  195. package/dist/model-gateway.d.ts +1 -1
  196. package/dist/model-gateway.js +20 -36
  197. package/dist/native/discovery.d.ts +6 -0
  198. package/dist/native/discovery.js +14 -1
  199. package/dist/native/remote.d.ts +5 -0
  200. package/dist/native/remote.js +16 -0
  201. package/dist/native/runtime.js +3 -2
  202. package/dist/observation/observer.d.ts +6 -6
  203. package/dist/ollama-provider.d.ts +23 -9
  204. package/dist/ollama-provider.js +49 -20
  205. package/dist/openapi.js +290 -79
  206. package/dist/otel/genai.d.ts +83 -7
  207. package/dist/otel/genai.js +69 -9
  208. package/dist/otel/tracer.d.ts +42 -13
  209. package/dist/otel/tracer.js +241 -56
  210. package/dist/page.d.ts +7 -1
  211. package/dist/page.js +76 -22
  212. package/dist/paid-calls.d.ts +6 -4
  213. package/dist/paid-calls.js +15 -7
  214. package/dist/place-offers.d.ts +58 -34
  215. package/dist/place-offers.js +96 -54
  216. package/dist/place.d.ts +41 -20
  217. package/dist/place.js +97 -47
  218. package/dist/print.js +1 -1
  219. package/dist/provider.d.ts +3 -2
  220. package/dist/provider.js +17 -8
  221. package/dist/purged-workflow.d.ts +0 -33
  222. package/dist/purged-workflow.js +3 -71
  223. package/dist/redact/match.d.ts +42 -9
  224. package/dist/redact/match.js +356 -54
  225. package/dist/run-census.d.ts +1 -1
  226. package/dist/run-census.js +4 -5
  227. package/dist/run-cut.js +4 -5
  228. package/dist/run-export-store.d.ts +15 -0
  229. package/dist/run-export-store.js +30 -0
  230. package/dist/run-export.d.ts +139 -0
  231. package/dist/run-export.js +379 -0
  232. package/dist/run-file-cut.d.ts +5 -0
  233. package/dist/run-file-cut.js +13 -0
  234. package/dist/run-launch.d.ts +3 -3
  235. package/dist/run-launch.js +16 -3
  236. package/dist/run-learning-served.d.ts +3 -3
  237. package/dist/run-learning-served.js +1 -1
  238. package/dist/run-listing.d.ts +1 -1
  239. package/dist/run-model-key.d.ts +15 -6
  240. package/dist/run-model-key.js +30 -31
  241. package/dist/run-reads-over-store.js +4 -4
  242. package/dist/run-secrets.js +3 -5
  243. package/dist/run-timeline-served.d.ts +1 -1
  244. package/dist/run-timeline-served.js +8 -5
  245. package/dist/runnable.js +26 -9
  246. package/dist/runner/adapter-loop.d.ts +35 -18
  247. package/dist/runner/adapter-loop.js +94 -47
  248. package/dist/runner/adapter-run-spec.d.ts +14 -1
  249. package/dist/runner/adapter-run-spec.js +73 -46
  250. package/dist/runner/adapters/pi.js +4 -2
  251. package/dist/runner/audit.d.ts +10 -9
  252. package/dist/runner/audit.js +64 -67
  253. package/dist/runner/beside.js +5 -6
  254. package/dist/runner/claim-secrets.d.ts +10 -3
  255. package/dist/runner/claim-secrets.js +29 -13
  256. package/dist/runner/cli-run-spec.d.ts +18 -0
  257. package/dist/runner/cli-run-spec.js +87 -58
  258. package/dist/runner/compare-end.d.ts +2 -3
  259. package/dist/runner/compare-end.js +30 -11
  260. package/dist/runner/conformance/harness.js +2 -3
  261. package/dist/runner/conformance/subject.d.ts +4 -1
  262. package/dist/runner/disk-free.d.ts +15 -4
  263. package/dist/runner/disk-free.js +25 -7
  264. package/dist/runner/feedback-round.d.ts +1 -1
  265. package/dist/runner/feedback-round.js +2 -2
  266. package/dist/runner/harness-loops.js +3 -4
  267. package/dist/runner/held.d.ts +5 -12
  268. package/dist/runner/held.js +0 -25
  269. package/dist/runner/journal-kinds.d.ts +8 -2
  270. package/dist/runner/journal-kinds.js +23 -5
  271. package/dist/runner/learned-first.d.ts +0 -2
  272. package/dist/runner/learned-first.js +23 -7
  273. package/dist/runner/learning-end.d.ts +14 -24
  274. package/dist/runner/learning-end.js +52 -94
  275. package/dist/runner/learning-seed.d.ts +13 -16
  276. package/dist/runner/learning-seed.js +13 -23
  277. package/dist/runner/live-ticker.js +7 -5
  278. package/dist/runner/loop-contract.d.ts +0 -2
  279. package/dist/runner/loop.d.ts +7 -0
  280. package/dist/runner/loop.js +1 -0
  281. package/dist/runner/main.js +13 -12
  282. package/dist/runner/mcp-claim.js +21 -5
  283. package/dist/runner/mcp-run.d.ts +4 -0
  284. package/dist/runner/mcp-run.js +2 -0
  285. package/dist/runner/meta-tools.js +3 -2
  286. package/dist/runner/metrics.d.ts +7 -0
  287. package/dist/runner/metrics.js +19 -0
  288. package/dist/runner/model-route.d.ts +10 -7
  289. package/dist/runner/model-route.js +79 -15
  290. package/dist/runner/native-loop.js +12 -11
  291. package/dist/runner/presence.d.ts +1 -4
  292. package/dist/runner/presence.js +6 -8
  293. package/dist/runner/promotion.d.ts +39 -36
  294. package/dist/runner/promotion.js +168 -112
  295. package/dist/runner/redact.d.ts +3 -1
  296. package/dist/runner/redact.js +5 -3
  297. package/dist/runner/reflect-hook.d.ts +2 -2
  298. package/dist/runner/reflect-hook.js +4 -1
  299. package/dist/runner/responses-fetch.d.ts +36 -0
  300. package/dist/runner/responses-fetch.js +511 -0
  301. package/dist/runner/run-child-host.d.ts +21 -14
  302. package/dist/runner/run-child-host.js +187 -141
  303. package/dist/runner/run-child.js +11 -4
  304. package/dist/runner/runner-check.js +5 -1
  305. package/dist/runner/runner.d.ts +3 -4
  306. package/dist/runner/runner.js +13 -9
  307. package/dist/runner/sdk-loop.js +10 -12
  308. package/dist/runner/spec-holds.d.ts +8 -1
  309. package/dist/runner/spec-holds.js +9 -4
  310. package/dist/runner/workflow-calls.d.ts +9 -0
  311. package/dist/runner/workflow-calls.js +150 -0
  312. package/dist/runner/workflow-first.d.ts +120 -32
  313. package/dist/runner/workflow-first.js +218 -94
  314. package/dist/runner/workflow-spec.js +1 -1
  315. package/dist/runs-over-store.js +8 -7
  316. package/dist/save-once.d.ts +14 -0
  317. package/dist/save-once.js +31 -0
  318. package/dist/scrub-command.d.ts +34 -31
  319. package/dist/scrub-command.js +116 -147
  320. package/dist/sdk/check.d.ts +1 -4
  321. package/dist/sdk/check.js +2 -3
  322. package/dist/sdk/runs.d.ts +26 -7
  323. package/dist/sdk/runs.js +194 -78
  324. package/dist/seal-key.js +4 -4
  325. package/dist/secret-cut.d.ts +3 -0
  326. package/dist/secret-cut.js +7 -1
  327. package/dist/secret-rules.d.ts +8 -1
  328. package/dist/secret-rules.js +482 -53
  329. package/dist/secrets.d.ts +55 -9
  330. package/dist/secrets.js +345 -21
  331. package/dist/server-fs.d.ts +1 -1
  332. package/dist/server-fs.js +1 -1
  333. package/dist/server-keys.d.ts +10 -3
  334. package/dist/server-keys.js +16 -3
  335. package/dist/server-secrets-store.js +2 -4
  336. package/dist/server.d.ts +30 -18
  337. package/dist/server.js +520 -238
  338. package/dist/share-context.d.ts +22 -0
  339. package/dist/share-context.js +76 -0
  340. package/dist/shell-lex.d.ts +105 -0
  341. package/dist/shell-lex.js +646 -0
  342. package/dist/sign-ins-store.d.ts +5 -7
  343. package/dist/sign-ins-store.js +12 -16
  344. package/dist/sign-ins.d.ts +7 -11
  345. package/dist/sign-ins.js +40 -41
  346. package/dist/skills/agentrun-serve/SKILL.md +5 -2
  347. package/dist/source-sync/auxiliary.js +2 -2
  348. package/dist/start-switches.d.ts +6 -5
  349. package/dist/start-switches.js +8 -4
  350. package/dist/stats.d.ts +5 -1
  351. package/dist/stats.js +1 -1
  352. package/dist/store/agent-body.js +2 -2
  353. package/dist/store/dialect.d.ts +4 -0
  354. package/dist/store/dialect.js +1 -0
  355. package/dist/store/index.d.ts +2 -2
  356. package/dist/store/index.js +1 -1
  357. package/dist/store/mcp-record-keys.d.ts +10 -0
  358. package/dist/store/mcp-record-keys.js +13 -0
  359. package/dist/store/postgres/dialect.js +2 -0
  360. package/dist/store/postgres/migrations/0029_run_launch_census_settle.sql +28 -0
  361. package/dist/store/postgres/migrations/0030_learning_ledger_epoch.sql +40 -0
  362. package/dist/store/postgres/migrations/0031_learning_ledger_calls.sql +12 -0
  363. package/dist/store/postgres/migrations/0032_learning_rows.sql +65 -0
  364. package/dist/store/postgres/store.js +4 -0
  365. package/dist/store/schema.d.ts +60 -11
  366. package/dist/store/schema.js +147 -17
  367. package/dist/store/seal.d.ts +4 -1
  368. package/dist/store/sqlite/learning-rows.d.ts +23 -0
  369. package/dist/store/sqlite/learning-rows.js +559 -0
  370. package/dist/store/sqlite/run-launch.d.ts +3 -10
  371. package/dist/store/sqlite/run-launch.js +12 -23
  372. package/dist/store/sqlite/run-patch.d.ts +17 -10
  373. package/dist/store/sqlite/run-patch.js +50 -13
  374. package/dist/store/sqlite/store.d.ts +9 -0
  375. package/dist/store/sqlite/store.js +194 -46
  376. package/dist/store/store-schema.js +3 -4
  377. package/dist/store/store.d.ts +286 -38
  378. package/dist/store/store.js +27 -11
  379. package/dist/store-reads/analytics.d.ts +2 -1
  380. package/dist/store-reads/analytics.js +7 -5
  381. package/dist/store-reads/journal.d.ts +33 -3
  382. package/dist/store-reads/journal.js +99 -4
  383. package/dist/store-reads/learning.d.ts +50 -45
  384. package/dist/store-reads/learning.js +153 -116
  385. package/dist/store-reads/loop.js +1 -1
  386. package/dist/store-reads/stats.d.ts +2 -2
  387. package/dist/store-reads/stats.js +13 -7
  388. package/dist/store-view.d.ts +24 -2
  389. package/dist/store-view.js +49 -17
  390. package/dist/suggestions.d.ts +1 -1
  391. package/dist/suggestions.js +29 -13
  392. package/dist/template-eval.d.ts +72 -9
  393. package/dist/template-eval.js +358 -64
  394. package/dist/templates.d.ts +10 -2
  395. package/dist/templates.js +31 -4
  396. package/dist/timeline/labels.d.ts +1 -1
  397. package/dist/timeline/labels.js +4 -3
  398. package/dist/timeline/timeline.d.ts +23 -11
  399. package/dist/timeline/timeline.js +115 -31
  400. package/dist/timeline/web-calls.d.ts +8 -6
  401. package/dist/timeline/web-calls.js +10 -6
  402. package/dist/tool-gate.d.ts +13 -1
  403. package/dist/tool-gate.js +43 -3
  404. package/dist/tool-keys-store.js +2 -4
  405. package/dist/tool-keys.d.ts +11 -0
  406. package/dist/tool-keys.js +16 -0
  407. package/dist/tool-plane.d.ts +54 -13
  408. package/dist/tool-plane.js +103 -32
  409. package/dist/tools.d.ts +5 -1
  410. package/dist/tools.js +7 -7
  411. package/dist/trigger-email.js +12 -6
  412. package/dist/triggers.d.ts +15 -34
  413. package/dist/triggers.js +119 -126
  414. package/dist/validate.d.ts +8 -1
  415. package/dist/validate.js +163 -23
  416. package/dist/web-fake.d.ts +2 -1
  417. package/dist/web-fake.js +8 -6
  418. package/dist/web-fetch.d.ts +8 -6
  419. package/dist/web-fetch.js +13 -11
  420. package/dist/web-holds.d.ts +34 -0
  421. package/dist/web-holds.js +89 -0
  422. package/dist/web-run.d.ts +32 -5
  423. package/dist/web-run.js +76 -28
  424. package/dist/web-save.js +23 -12
  425. package/dist/web-search.js +14 -25
  426. package/dist/wires.d.ts +4 -3
  427. package/dist/wires.js +5 -4
  428. package/dist/workspace/archil-claim.d.ts +12 -5
  429. package/dist/workspace/archil-claim.js +45 -5
  430. package/dist/workspace/archil-exec.js +1 -1
  431. package/dist/workspace/archil.d.ts +1 -1
  432. package/dist/workspace/archil.js +1 -1
  433. package/dist/workspace/attach.js +52 -19
  434. package/dist/workspace/attached-computers.d.ts +6 -2
  435. package/dist/workspace/attached-computers.js +5 -4
  436. package/dist/workspace/computer-deps.d.ts +23 -6
  437. package/dist/workspace/computer-deps.js +38 -18
  438. package/dist/workspace/computer-for-claim.d.ts +21 -4
  439. package/dist/workspace/computer-for-claim.js +160 -54
  440. package/dist/workspace/computer-intervals.d.ts +2 -0
  441. package/dist/workspace/computer-intervals.js +1 -1
  442. package/dist/workspace/computer-janitor.d.ts +48 -14
  443. package/dist/workspace/computer-janitor.js +153 -44
  444. package/dist/workspace/computer-kept.d.ts +158 -32
  445. package/dist/workspace/computer-kept.js +288 -63
  446. package/dist/workspace/computer-providers.d.ts +19 -4
  447. package/dist/workspace/computer-providers.js +40 -6
  448. package/dist/workspace/index.d.ts +2 -3
  449. package/dist/workspace/index.js +2 -3
  450. package/dist/workspace/local.js +41 -1
  451. package/dist/workspace/mount-revoke-left.d.ts +31 -0
  452. package/dist/workspace/mount-revoke-left.js +72 -0
  453. package/dist/workspace/paired-route.js +4 -5
  454. package/dist/workspace/paths.d.ts +0 -4
  455. package/dist/workspace/paths.js +0 -6
  456. package/dist/workspace/resolve-computer.d.ts +5 -2
  457. package/dist/workspace/resolve-computer.js +9 -3
  458. package/dist/workspace/run-end-computers.d.ts +11 -5
  459. package/dist/workspace/run-end-computers.js +153 -28
  460. package/dist/workspace/run-tools.d.ts +22 -3
  461. package/dist/workspace/run-tools.js +17 -5
  462. package/dist/workspace/run-workspace.d.ts +14 -1
  463. package/dist/workspace/run-workspace.js +34 -1
  464. package/dist/workspace/workspace.d.ts +7 -1
  465. package/dist/workspace/workspace.js +1 -1
  466. package/package.json +13 -14
  467. package/skills/agentrun-serve/SKILL.md +5 -2
  468. package/templates/README.md +22 -6
  469. package/templates/TOOLS.md +46 -0
  470. package/dist/console/assets/backend-CSAWUqtZ.js +0 -166
  471. package/dist/console/assets/index-Bwn1oTem.css +0 -1
  472. package/dist/console/assets/index-DPh29cyz.js +0 -747
  473. package/dist/workspace/learning-workspace.d.ts +0 -24
  474. /package/dist/learn/{learning.sh → legacy/learning.sh} +0 -0
@@ -27,7 +27,7 @@ import { correctionRefused, learningCommit } from "../learn/commit.js";
27
27
  import { CAPS, checkDraft, problemWords, unstorable } from "../learn/index.js";
28
28
  import { repickSiteOf } from "../learn/check.js";
29
29
  import { repickLabelOf, repickRewrite } from "../learn/repick.js";
30
- import { folderAt, holdsCommit, readLearning, readSnapshot, runMergeOf, snapshotAt, textsAt } from "../learn/folder.js";
30
+ import { holdsSave, learningOf, readAt, readLearning, readOf, runMergeOf } from "../learn/rows.js";
31
31
  import { completedRun, compileStoppedOf, lastOwnRuns, sinceReset, compileDue, compilePrompt, compileReference, COMPILE_TRACES, DRAFT_FAILED, draftFailedOf, heldNamesOf, newCompileAttempt } from "../learn/compile.js";
32
32
  import { heldOnGiveBacks, reviseAttemptOf, sdkInputText } from "./promotion.js";
33
33
  import { loopOf, repickOf } from "../learning-setting.js";
@@ -44,7 +44,6 @@ import { learningStartOf, readLaunchBody, seedFailed } from "../run-launch.js";
44
44
  import { FINAL_STATES } from "../store/store.js";
45
45
  import { shadowRunId } from "../learn/audit.js";
46
46
  import { getMcpServer } from "../mcp-store.js";
47
- import { purgeGate, refusedIn } from "../purged-workflow.js";
48
47
  import { readApprovers } from "../server-approvers.js";
49
48
  import { isCliRecord, runEntries, runTimeline, withoutFeedbackRounds } from "../store-reads/journal.js";
50
49
  import { capNowOf, KINDS } from "./journal-kinds.js";
@@ -105,7 +104,7 @@ export function learningEndOfRun(launch, deps) {
105
104
  },
106
105
  // A round whose merge is on main already (a stop after its commit, before its end was saved) is not checked for room
107
106
  // again: its merge gives back what it did.
108
- correctionRefused: ({ runId, agentId, round: at, text, refuse }) => withFolder(deps, agentId, (folder) => correctionRefused(folder.workspace, text, refuse, { runId, round: at })),
107
+ correctionRefused: ({ runId, agentId, round: at, text, refuse }) => correctionRefused(learningOf(deps.store, agentId), text, refuse, { runId, round: at }),
109
108
  // A run with no workflow binding (an SDK run's `noWorkflows`) compiles nothing.
110
109
  ...(start.noWorkflows ? {} : {
111
110
  compileFacts: (input) => compileAskOf(deps, { ...input, input: launch.input, ...(launch.sdk ? { sdkTask: sdkInputText(launch) } : {}), seedWorkflows: start.workflows?.length ?? 0, corrections: start.section }),
@@ -133,7 +132,7 @@ export function learningEndOfRun(launch, deps) {
133
132
  checkDraft: ({ runId, agentId, draft, refuse, revised }) => checkDraftOf(deps, { runId, agentId, seed, draft, refuse, ...(revised ? { revised } : {}) }),
134
133
  commit: async ({ runId, agentId, round: at, draft, correction, refuse }) => {
135
134
  const reason = draft ? `Compiled the job as workflow ${draft.name}${correction !== undefined ? ", with its owner's correction" : ""}.` : "Its owner's correction.";
136
- const done = await commitDirect({ folder: () => deps.learningFolder(agentId), log: deps.log ?? (() => undefined) }, {
135
+ const done = await commitDirect({ learning: learningOf(deps.store, agentId), log: deps.log ?? (() => undefined) }, {
137
136
  runId, round: at, reason, seed, ...(mustHold ? { mustHold } : {}), files: draft ? draft.files.map((file) => ({ ...file })) : [],
138
137
  ...(draft?.held?.length ? { held: [...draft.held] } : {}), ...(draft?.bases ? { bases: draft.bases } : {}),
139
138
  ...(correction !== undefined ? { correction, refuseValues: refuse } : {}),
@@ -153,15 +152,14 @@ export function learningEndOfRun(launch, deps) {
153
152
  // The one check at the entry of a run's learning end, before any merge, look-back, compile, draft check or record: a
154
153
  // run whose seed was read at or before a reset of its agent's learning (its watermark, learn/promote.ts resetAtOf; a
155
154
  // start that records no time is read as before it) learns nothing, whole. Its corrections and compile would land on
156
- // what the reset left. Read by time alone: a Mode 2 run's end writes the folder on its disk, which never held the
157
- // seed the server read from its own folder, so a commit missing here says nothing of a reset.
155
+ // what the reset left.
158
156
  const reset = await resetAtOf(deps.store.settings, input.agentId);
159
157
  if (reset !== undefined && !(start.seededAt !== undefined && start.seededAt > reset)) {
160
158
  return { also: [{ table: "learning_proposals", row: { turn: null, proposal: { state: "dropped", reason: "reset", detail: said.reset } } }] };
161
159
  }
162
- // The second wall, once the agent's learning was reset: a seed this folder holds now is one its merge must still
163
- // find (commit.ts mustHold), so a reset after this check refuses the merge whole in the script.
164
- const mustHold = reset !== undefined && (await withFolder(deps, input.agentId, (folder) => holdsCommit(folder.workspace, start.seed))) ? start.seed : undefined;
160
+ // The second wall, once the agent's learning was reset: a seed its learning holds now is one its merge must still
161
+ // find (commit.ts mustHold), so a reset after this check refuses the merge whole in the save's own transaction.
162
+ const mustHold = reset !== undefined && (await holdsSave(learningOf(deps.store, input.agentId), start.seed)) ? start.seed : undefined;
165
163
  // Which end of the run this is: the round after the newest it kept (a follow-up opened the run again after it), else
166
164
  // its first. A replayed end reads the same round: its rows are written only with the end that closes it.
167
165
  const prior = await deps.store.learning.proposal(input.runId);
@@ -216,35 +214,18 @@ export async function capSpendOf(store, runId, entries) {
216
214
  const beside = await shadowBesideOf(store, runId);
217
215
  return beside === null ? null : spent + beside;
218
216
  }
219
- /** `read` over agent `agentId`'s learning folder, opened for it and always ended after. */
220
- async function withFolder(deps, agentId, read) {
221
- const folder = deps.learningFolder(agentId);
222
- try {
223
- return await read(folder);
224
- }
225
- finally {
226
- await folder.end().catch(() => undefined);
227
- }
228
- }
229
217
  /**
230
- * A run's merge on the agent's learning folder, written by the runner directly (learn/commit.ts learningCommit, one
231
- * exec): its compiled draft's files and its owner's correction, committed by `change.runId` (its Run-Id trailer). A file
232
- * changed on main since the run's seed (or a revision's `bases` commit) is a conflict, never written over; a correction
233
- * that holds what must never be stored, or would take corrections.md past its cap, is refused (past the cap beside a
234
- * draft, it is left out alone and the draft merges). Any failure is logged by its reason alone. The folder is always
235
- * released.
218
+ * A run's merge on the agent's learning, written by the runner directly (learn/commit.ts learningCommit, one save): its
219
+ * compiled draft's files and its owner's correction, saved by `change.runId`. A file changed since the run's seed (or a
220
+ * revision's `bases` save) is a conflict, never written over; a correction that holds what must never be stored, or
221
+ * would take corrections.md past its cap, is refused (past the cap beside a draft, it is left out alone and the draft
222
+ * merges). Any failure is logged by its reason alone.
236
223
  */
237
224
  export async function commitDirect(deps, change) {
238
- const folder = deps.folder();
239
- try {
240
- const done = await learningCommit(folder.workspace, change);
241
- if (!done.ok)
242
- deps.log(`learning: run ${change.runId}: its merge could not be written (${done.reason})`);
243
- return done;
244
- }
245
- finally {
246
- await folder.end();
247
- }
225
+ const done = await learningCommit(deps.learning, change);
226
+ if (!done.ok)
227
+ deps.log(`learning: run ${change.runId}: its merge could not be written (${done.reason})`);
228
+ return done;
248
229
  }
249
230
  /** A merge's result as the hook reads it. */
250
231
  const committedOf = (done) => done.ok ? { ok: true, commit: done.commit, ...(done.refusedCorrection ? { refusedCorrection: done.refusedCorrection } : {}) } : done.reason === "unavailable" ? { ok: false, reason: "unavailable", problems: [] } : { ok: false, reason: done.reason, problems: done.problems };
@@ -301,16 +282,6 @@ export function runPathOf(rows) {
301
282
  return "agent";
302
283
  return onlyLearnedWorkflows(rows) ? "workflow" : "handed_back";
303
284
  }
304
- /** The learned workflow a run's job called last by its call's `name` (callArgsOf's arguments, in the job's order: `calls`),
305
- * or null when it called none by a name. */
306
- export function workflowNameOf(calls) {
307
- for (let i = calls.length - 1; i >= 0; i--) {
308
- const call = calls[i];
309
- if (LEARNED_NAMES.has(call.tool) && typeof call.args.name === "string")
310
- return call.args.name;
311
- }
312
- return null;
313
- }
314
285
  /** Whether a draft's workflow.json (`json`) waits for its owner's OK whatever its checks say: a step of it calls an MCP
315
286
  * tool with no declared price (workflow-draft.ts unpricedCalls), from the prices each server's row keeps (mcp-probe.ts
316
287
  * McpPrices), or an SDK run's manifest gives. A server the store can't read gives no price: held. */
@@ -357,17 +328,13 @@ export async function checkDraftOf(deps, input) {
357
328
  const readmePath = `${WORKFLOWS_DIR}/${name}/README.md`;
358
329
  const revised = input.revised && input.revised.workflow === name && input.revised.base !== input.seed ? input.revised : undefined;
359
330
  const base = revised?.base ?? input.seed;
360
- const at = await withFolder(deps, input.agentId, async (folder) => {
361
- const now = await readSnapshot(folder.workspace);
362
- const snapshot = now?.main === base ? now : await snapshotAt(folder.workspace, base);
363
- if (!snapshot)
364
- throw new Error(`the learning folder has no commit ${base}`);
365
- return { snapshot, texts: (await textsAt(folder.workspace, base, [jsonPath, readmePath])) ?? {} };
366
- });
367
- if (at.texts[jsonPath] === json && at.texts[readmePath] === readme)
331
+ const at = await readAt(learningOf(deps.store, input.agentId), base);
332
+ if (!at)
333
+ throw new Error(`the agent's learning has no save ${base}`);
334
+ if (at.text(jsonPath) === json && at.text(readmePath) === readme)
368
335
  return { errors: [] };
369
336
  const refused = (problems) => ({ errors: problems.map((problem) => problemWords([problem])), problems });
370
- const held = new Set(at.snapshot.workflows.flatMap((item) => item.files.map(({ path }) => path)));
337
+ const held = new Set((at.view?.workflows ?? []).flatMap((item) => item.files.map(({ path }) => path)));
371
338
  const changeOf = (path, text) => ({ path, status: held.has(path) ? "modified" : "added", mode: "100644", bytes: Buffer.from(text) });
372
339
  // Its example is the run's own input, read as every text it gave is: one that holds what must never be stored refuses
373
340
  // the draft, said at its README, though it is never written there.
@@ -383,7 +350,7 @@ export async function checkDraftOf(deps, input) {
383
350
  // none of the compact state rule), so an SDK agent's drafts are never rewritten.
384
351
  const repick = workflowAdapters === undefined ? repickOf(await learningOfRun(deps.store, input.runId)) : undefined;
385
352
  // A draft whose text on main has a status is a person's call (retired, or waiting for their OK): never changed.
386
- const kept = at.snapshot.workflows.filter((item) => item.status !== "active").map((item) => item.file);
353
+ const kept = (at.view?.workflows ?? []).filter((item) => item.status !== "active").map((item) => item.file);
387
354
  const check = (text, dryRuns) => checkDraft({
388
355
  changes: [changeOf(jsonPath, text), changeOf(readmePath, readme)], refuseValues: input.refuse, tools, dsl,
389
356
  ...(Object.keys(gated).length ? { gated } : {}), ...(Object.keys(deniedBy).length ? { deniedBy } : {}), ...(decisions ? { decisions } : {}),
@@ -415,7 +382,7 @@ export async function checkDraftOf(deps, input) {
415
382
  else
416
383
  deps.log?.(`learning.repick: workflow ${name} is kept as compiled; its re-pick over the run's pages failed the checks (${[...new Set(again.map((problem) => problem.rule))].join(", ")})`);
417
384
  }
418
- if (text !== json && at.texts[jsonPath] === text && at.texts[readmePath] === readme)
385
+ if (text !== json && at.text(jsonPath) === text && at.text(readmePath) === readme)
419
386
  return { errors: [] };
420
387
  const files = [{ path: jsonPath, text }, { path: readmePath, text: readme }];
421
388
  return {
@@ -487,19 +454,19 @@ export const draftFailedDigest = (runId) => createHash("sha256").update(`draft-f
487
454
  * does (the agent's next due run compiles once more: learn/compile.ts newCompileAttempt); a recompile's (a revision of
488
455
  * a held workflow, or a new one after a first compile's failed drafts) stops (compileStoppedOf, heldNamesOf): nothing
489
456
  * compiles it again. A revision of a connected agent's hold on give-backs is no recompile (runner/promotion.ts
490
- * reviseAttemptOf). One record per run (its digest is the run's), written once: a claim that ends the run again
491
- * writes none. */
457
+ * reviseAttemptOf). One record per run (its digest is the run's, and the record is the run's: its purge takes it, and
458
+ * one written after that purge writes nothing), written once: a claim that ends the run again writes none. */
492
459
  export async function recordDraftFailed(deps, input) {
493
460
  try {
494
- const records = await promotionsOf(deps.store.settings, input.agentId);
461
+ const records = await promotionsOf(deps.store.learning, input.agentId);
495
462
  const attempt = input.compile.mode === "revise" ? reviseAttemptOf(records, input.compile.held) : newCompileAttempt(records);
496
463
  const { compile_after, agree_min, alone_min } = await loopOfRun(deps.store, input.runId);
497
464
  const workflow = input.compile.mode === "revise" ? input.compile.workflow : input.workflow;
498
465
  const digest = draftFailedDigest(input.runId);
499
466
  const failed = input.errors.join("; ").slice(0, CHECK_TEXT_MAX) || "no draft passed";
500
467
  const reason = `${DRAFT_FAILED}: ${failed}. ${attempt === 2 ? "It was the recompile, so it stops: nothing compiles again until its owner acts" : "It is not promoted; the next due run compiles it once more"}`;
501
- const check = { compile_after, agree_min, alone_min, attempt, n: 0, agreed: 0, alone: 0, of: [], ...(attempt === 2 ? { stopped: true } : {}) };
502
- const kept = await recordPromotion(deps.store.settings, input.agentId, { workflow, digest, at: new Date().toISOString(), decided: "hold", reason, check }, (was) => was === undefined, refusedIn(() => deps.learningFolder(input.agentId), deps.store, deps.log));
468
+ const check = { compile_after, agree_min, alone_min, attempt, n: 0, agreed: 0, alone: 0, agent_agreed: 0, of: [], ...(attempt === 2 ? { stopped: true } : {}) };
469
+ const kept = await recordPromotion(deps.store.learning, input.agentId, { workflow, digest, at: new Date().toISOString(), decided: "hold", reason, check }, (was) => was === undefined, { anyDigest: true, runId: input.runId });
503
470
  if (kept.won)
504
471
  deps.log?.(`learning: run ${input.runId}: the compile of ${workflow} failed its checks (attempt ${attempt}${attempt === 2 ? ", stopped" : ""})`);
505
472
  }
@@ -535,8 +502,8 @@ export function traceFrom(timeline, refuse) {
535
502
  /** The compile turn's facts for run `runId` of agent `agentId` (learn/compile.ts): a revision of the learned workflow
536
503
  * that fits the run's input and whose promotion holds it at main's digest (runner/promotion.ts: its one check on the
537
504
  * agent's own runs fell under the bar; its champion served the run, or the agent did by hand), its text as main holds
538
- * it, with the check's numbers and the inputs it disagreed on, once per hold (none when any run since the hold compiled
539
- * it, read from the agent's kept learning; a stopped check's none; a connected agent's hold on give-backs only once it
505
+ * it, with the check's numbers and the inputs it disagreed on, once per hold (none when any run since the hold was asked
506
+ * its revise, read from the agent's kept learning; a stopped check's none; a connected agent's hold on give-backs only once it
540
507
  * is due, as a first compile is, on its runs since the hold); else, when the job is due (compileDue: the run
541
508
  * completed, the agent has no learned workflow active or waiting, and it has its definition's compile_after completed
542
509
  * agent runs), a new one, compiled once: one more after a first compile whose drafts all failed their checks, and none
@@ -553,10 +520,8 @@ export async function compileAskOf(deps, input) {
553
520
  const { agentId } = input;
554
521
  // A revision is asked only of a workflow its promotion holds, once per hold. The workflows whose newest revision other
555
522
  // than their champion (learn/promote.ts championOf: it serves while that one is held) is held: the run's own may be one.
556
- // A record the purge gate refuses is skipped as the champion's readers skip it (purged-workflow.ts refusedOf); a gate
557
- // that can't be asked skips none, and the text read below is gated again.
558
- const records = await promotionsOf(deps.store.settings, agentId).catch(() => []);
559
- const heldNames = heldNamesOf(records, records.length ? await refusedIn(() => deps.learningFolder(agentId), deps.store, deps.log)(records).catch(() => undefined) : undefined);
523
+ const records = await promotionsOf(deps.store.learning, agentId).catch(() => []);
524
+ const heldNames = heldNamesOf(records);
560
525
  // The loop's numbers on the agent's definition (the revision this run runs): the first compile waits for compile_after
561
526
  // completed agent runs, the ending one counted.
562
527
  const { compile_after: compileAfter } = await loopOfRun(deps.store, input.runId);
@@ -586,17 +551,15 @@ export async function compileAskOf(deps, input) {
586
551
  const shown = secretsShown(input.refuse);
587
552
  const holds = (value) => holdsSecret(typeof value === "string" ? value : (JSON.stringify(value) ?? ""), shown);
588
553
  const leftOut = { workflows: new Set(), traces: 0, input: false };
589
- const folder = deps.learningFolder(input.agentId);
590
- // `main`: the commit the snapshot read is main's at, which `current` was read from.
554
+ const learning = learningOf(deps.store, input.agentId);
555
+ // `main`: the save the read is at, which `current` was read from.
591
556
  let read;
592
557
  try {
593
- // A workflow a purged run wrote is neither counted nor told (purgeGate), on main or at a replayed round's parent.
594
- const readFrom = async ({ snapshot, body }) => {
595
- const purged = (await purgeGate(snapshot, deps.store)).workflows;
596
- const workflows = (snapshot?.workflows ?? []).filter(({ name, status }) => (status === "active" || status === "pending") && !purged.has(name));
558
+ const readFrom = async ({ view, text: textAt }) => {
559
+ const workflows = (view?.workflows ?? []).filter(({ status }) => status === "active" || status === "pending");
597
560
  const textOf = async (name) => {
598
561
  const file = workflows.find((one) => one.name === name)?.files.find(({ path }) => path.endsWith("/workflow.json"));
599
- const text = file ? await body(file.path, file.oid) : undefined;
562
+ const text = file ? textAt(file.path) : undefined;
600
563
  if (text === undefined || !(holds(name) || holds(text)))
601
564
  return text;
602
565
  leftOut.workflows.add(shown.name(name));
@@ -620,25 +583,18 @@ export async function compileAskOf(deps, input) {
620
583
  if (record?.decided === "hold" && !record.check?.stopped && !record.audit?.stopped)
621
584
  [held, current] = [record, fitting[0].workflow];
622
585
  }
623
- return { workflows: workflows.length, ...(current !== undefined ? { current } : {}), ...(held ? { held } : {}), ...(snapshot?.main ? { main: snapshot.main } : {}) };
586
+ return { workflows: workflows.length, ...(current !== undefined ? { current } : {}), ...(held ? { held } : {}), ...(view?.main ? { main: view.main } : {}) };
624
587
  };
625
- // A round that merged already (a crash between its commit and its end): main holds its own merge, so the turn is
626
- // decided again on main as that merge read it (its parent), and the replayed answer lands on the merge it made
627
- // (learn/commit.ts learningCommit: a round merges once), never a drop that leaves its commit unrecorded. A stop
628
- // between the merge and its diff file is read back from the run's ref (runMergeOf).
629
- const own = await runMergeOf(folder.workspace, input.runId, input.round);
630
- const before = own ? await folderAt(folder.workspace, own.parent) : undefined;
631
- read = before
632
- ? await readFrom({ snapshot: before.snapshot, body: async (path, oid) => { const blob = before.blobs.get(oid); if (!blob)
633
- throw new Error(`${path} is not in ${own.parent}`); return blob.toString("utf8"); } })
634
- : await readLearning(folder.workspace, readFrom);
588
+ // A round that merged already (a crash between its save and its end): the newest save holds its own merge, so the
589
+ // turn is decided again as that merge read it (the save before it), and the replayed answer lands on the merge it
590
+ // made (learn/commit.ts learningCommit: a round merges once), never a drop that leaves its save unrecorded.
591
+ const own = await runMergeOf(learning, input.runId, input.round);
592
+ const before = own ? (own.parent ? await readAt(learning, own.parent) : readOf(undefined)) : undefined;
593
+ read = before ? await readFrom(before) : await readLearning(learning, readFrom);
635
594
  }
636
595
  catch {
637
596
  return undefined;
638
597
  }
639
- finally {
640
- await folder.end().catch(() => undefined);
641
- }
642
598
  // What it left out, by name and count: said once the facts are gathered, or now when it asks nothing.
643
599
  const sayLeftOut = () => {
644
600
  const parts = [...[...leftOut.workflows].map((name) => `workflow \`${name}\``), ...(leftOut.traces ? [`${leftOut.traces} earlier run${leftOut.traces === 1 ? "" : "s"}`] : []), ...(leftOut.input ? ["the run's input"] : [])];
@@ -653,15 +609,17 @@ export async function compileAskOf(deps, input) {
653
609
  const sinceHold = own.filter(after).length + (after(listed[at]) ? ending : 0);
654
610
  if (heldOnGiveBacks(read.held.check) && !(ending === 1 && sinceHold >= compileAfter))
655
611
  return sayLeftOut(), undefined;
656
- // Once per hold: a run since it that compiled this workflow asked already, whatever came of it (its revision is on its
657
- // way to a replay, or its draft failed its checks), however many runs ago. Read from the agent's kept learning since
658
- // the hold, never a window of its last runs; one that can't be read asks nothing. A draft that failed since, not stopped
659
- // (only a revise of a connected agent's hold on give-backs: reviseAttemptOf), asks once more: counted from it, its own
660
- // run's kept learning (written after its record, at the run's end) not counted.
612
+ // Once per hold: a run since it that was asked this hold's revise (its compile record names the held digest) asked
613
+ // already, whatever came of it (its revision is on its way to a replay, or its draft failed its checks), however many
614
+ // runs ago. A new compile asked before the hold (in flight as it was decided) that drafted the same workflow and ended
615
+ // after it is no revise. Read from the agent's kept learning since the hold, never a window of its last runs; one that
616
+ // can't be read asks nothing. A draft that failed since, not stopped (only a revise of a connected agent's hold on
617
+ // give-backs: reviseAttemptOf), asks once more: counted from it, its own run's kept learning (written after its record,
618
+ // at the run's end) not counted.
661
619
  const failed = records.findLast((one) => one.workflow === read.held.workflow && draftFailedOf(one) && !one.check?.stopped && !(one.at < read.held.at));
662
620
  const since = Date.parse(failed?.at ?? read.held.at);
663
621
  const kept = await deps.store.learning.proposals(agentId, { limit: HELD_ASKED_READ }).catch(() => undefined);
664
- const asked = (one) => !(one.createdAt < since) && compiledOf(one)?.workflow === read.held.workflow && draftFailedDigest(one.runId) !== failed?.digest;
622
+ const asked = (one) => !(one.createdAt < since) && compiledOf(one)?.workflow === read.held.workflow && compiledOf(one)?.held === read.held.digest && draftFailedDigest(one.runId) !== failed?.digest;
665
623
  if (!kept || kept.some(asked))
666
624
  return sayLeftOut(), undefined;
667
625
  const { workflow, digest, reason, check, audit } = read.held;
@@ -1,15 +1,14 @@
1
1
  import { type LearnedWorkflow, type Seed, type Shown } from "../learning.js";
2
- import type { LearningFolder } from "../learn/folder.js";
3
- import type { Store } from "../store/index.js";
4
- /** What a claim reads its seed with: the commit, the agent's learning folder where the run's place keeps it (opened for
5
- * the read and ended after it), the store whose runs say which are purged (a purged run's workflow is no seed's:
6
- * learning.ts seedAt; null in a run's own process, which reads no other run: its lay only tells its runner whether it
7
- * laid any, and the runner reads the seed again with its store, workflowsAt), the server's secrets as cuts (`shown`),
8
- * its log, and `workflows: false` for a run that takes none (an SDK run with no workflow binding). */
2
+ import { type LearningRows } from "../learn/rows.js";
3
+ /** What a claim reads its seed with: the save, the store's learning rows (a run's own process reads them through its
4
+ * runner, run-child-host.ts storeCall), the agent, the server's secrets as cuts (`shown`), its log, and
5
+ * `workflows: false` for a run that takes none (an SDK run with no workflow binding). */
9
6
  export interface LearningSeedLay {
10
7
  readonly seed: string | null;
11
- readonly folder: () => LearningFolder;
12
- readonly store: Pick<Store, "runs"> | null;
8
+ readonly store: {
9
+ readonly learning: LearningRows;
10
+ };
11
+ readonly agentId: string;
13
12
  readonly shown: () => Promise<Shown>;
14
13
  readonly log: (line: string) => void;
15
14
  readonly workflows?: false;
@@ -28,10 +27,8 @@ export declare const laidOf: (laid: LaidSeed | undefined) => {
28
27
  * secrets read (or a choice) that fails after the seed was read answers the seed with no learned workflow. Never
29
28
  * throws: a learning fault never stops a run. */
30
29
  export declare function layLearningSeed(lay: LearningSeedLay): Promise<LaidSeed | undefined>;
31
- /** The learned workflows the folder held active at `commit`, as a claim's read hands them to the learned_workflow tool
32
- * (chooseWorkflows): what a champion serves from while a newer revision of it is on main (runner/promotion.ts), and
33
- * what a run's process is laid at its claim's seed (run-child-host.ts). Throws when the folder cannot answer or the
34
- * commit is gone. */
35
- export declare function workflowsAt(read: Pick<LearningSeedLay, "folder" | "shown"> & {
36
- readonly store: Pick<Store, "runs">;
37
- }, commit: string | null): Promise<LearnedWorkflow[]>;
30
+ /** The learned workflows the agent's learning held active at save `save`, read now, as a claim's read hands them to the
31
+ * learned_workflow tool (chooseWorkflows): what a champion serves from while a newer revision of it is the newest
32
+ * (runner/promotion.ts), and what a run's process is laid at its claim's seed (run-child-host.ts). Throws when the
33
+ * store cannot answer or the save is gone. */
34
+ export declare function workflowsAt(read: Pick<LearningSeedLay, "store" | "agentId" | "shown">, save: string | null): Promise<LearnedWorkflow[]>;
@@ -1,8 +1,10 @@
1
- // A claim's read of a run's learning seed: the learned workflows its learning folder held active at the commit the run
2
- // started from, which the run's learned_workflow tool runs and workflow-first serves (learning.ts chooseWorkflows: within
3
- // the tool's budget, none holding a host secret). Nothing is laid in the run's work: its corrections reach it in its
4
- // instructions (learning.ts laidLearned, from the launch's learning start).
1
+ // A claim's read of a run's learning seed: the learned workflows its agent's learning held active at the save the run
2
+ // started from, read now (a purged run's text gone from it), which the run's learned_workflow tool runs and
3
+ // workflow-first serves (learning.ts chooseWorkflows: within the tool's budget, none holding a host secret). Nothing is
4
+ // laid in the run's work: its corrections reach it in its instructions (learning.ts laidLearned, from the launch's
5
+ // learning start).
5
6
  import { chooseWorkflows, seedAt } from "../learning.js";
7
+ import { learningOf } from "../learn/rows.js";
6
8
  /** What a claim handed a run of its seed, by name, as the adapter loop records it (KINDS.learningLaid): each learned
7
9
  * workflow it handed the tool; none when nothing was read. */
8
10
  export const laidOf = (laid) => ({ workflows: (laid?.workflows ?? []).map(({ name }) => name) });
@@ -12,17 +14,13 @@ const message = (error) => (error instanceof Error ? error.message : String(erro
12
14
  * throws: a learning fault never stops a run. */
13
15
  export async function layLearningSeed(lay) {
14
16
  let seed;
15
- const folder = lay.folder();
16
17
  try {
17
- seed = await seedAt(folder.workspace, lay.seed, lay.store);
18
+ seed = await seedAt(learningOf(lay.store, lay.agentId), lay.seed);
18
19
  }
19
20
  catch (error) {
20
21
  lay.log(`the run starts with no learned workflow: ${message(error)}`);
21
22
  return undefined;
22
23
  }
23
- finally {
24
- await folder.end().catch(() => undefined);
25
- }
26
24
  if (lay.workflows === false)
27
25
  return { seed, workflows: [] };
28
26
  try {
@@ -36,18 +34,10 @@ export async function layLearningSeed(lay) {
36
34
  return { seed, workflows: [] };
37
35
  }
38
36
  }
39
- /** The learned workflows the folder held active at `commit`, as a claim's read hands them to the learned_workflow tool
40
- * (chooseWorkflows): what a champion serves from while a newer revision of it is on main (runner/promotion.ts), and
41
- * what a run's process is laid at its claim's seed (run-child-host.ts). Throws when the folder cannot answer or the
42
- * commit is gone. */
43
- export async function workflowsAt(read, commit) {
44
- const folder = read.folder();
45
- let seed;
46
- try {
47
- seed = await seedAt(folder.workspace, commit, read.store);
48
- }
49
- finally {
50
- await folder.end().catch(() => undefined);
51
- }
52
- return chooseWorkflows(seed, await read.shown()).flows;
37
+ /** The learned workflows the agent's learning held active at save `save`, read now, as a claim's read hands them to the
38
+ * learned_workflow tool (chooseWorkflows): what a champion serves from while a newer revision of it is the newest
39
+ * (runner/promotion.ts), and what a run's process is laid at its claim's seed (run-child-host.ts). Throws when the
40
+ * store cannot answer or the save is gone. */
41
+ export async function workflowsAt(read, save) {
42
+ return chooseWorkflows(await seedAt(learningOf(read.store, read.agentId), save), await read.shown()).flows;
53
43
  }
@@ -1,8 +1,10 @@
1
- import { redactedAnswer, redactedLive, redactedOutput } from "../key-refusal.js";
1
+ import { redactedAnswer, redactedLive, redactedOutputWhole } from "../key-refusal.js";
2
2
  /** A run's held state as the live view keeps it, under `values`, every secret value the run's one redactor holds. A
3
- * running tool's id and name are cut whole (redactedAnswer). Its args by a workflow output's rule (redactedOutput): every
4
- * string, property names included; a number whose digits hold a held value or that equals one, withheld; an object two of
5
- * whose names come out the same once cut, withheld whole, never one value dropped over the other. What is still
3
+ * running tool's id and name are cut whole (redactedAnswer). Its args by a workflow output's rule (redactedOutputWhole):
4
+ * read whole first, so a held value split across two of its fields withholds them as "[redacted]", as a call's arguments
5
+ * are in its Timeline; else every string, property names included; a number whose digits hold a held value or that
6
+ * equals one, withheld; an object two of whose names come out the same once cut, withheld whole, never one value
7
+ * dropped over the other. What is still
6
8
  * streaming (the tool's output, the partial answer) by redactedLive: a tail as long as a held value's widest form is held
7
9
  * back, so a secret half streamed at a tick shows none of itself; the settled record replaces it whole once it ends. */
8
10
  function cutHeld(state, values) {
@@ -11,7 +13,7 @@ function cutHeld(state, values) {
11
13
  const tools = state.tools.map((tool) => ({
12
14
  callId: redactedAnswer(tool.callId, values),
13
15
  name: redactedAnswer(tool.name, values),
14
- ...(tool.args !== undefined ? { args: redactedOutput(tool.args, values) } : {}),
16
+ ...(tool.args !== undefined ? { args: redactedOutputWhole(tool.args, values) } : {}),
15
17
  ...(tool.output !== undefined ? { output: redactedLive(tool.output, values) } : {}),
16
18
  }));
17
19
  return { tools, ...(state.partial ? { partial: { text: redactedLive(state.partial.text, values) } } : {}) };
@@ -171,8 +171,6 @@ export interface LoopDeps {
171
171
  flush(): Promise<void>;
172
172
  /** Aborted on claim loss, self-stop or shutdown: in-flight model and tool calls are cut at once. */
173
173
  signal: AbortSignal;
174
- /** The end-of-run step (EndOfRunTurn): asked once before a run that answered or failed writes its end. Absent: none. */
175
- endOfRun?: EndOfRunTurn;
176
174
  /** Resolves once the claim's first delivery has handed every untaken row it read to command() (each call returned),
177
175
  * or at once when there were none: a resumed ask with no answer row waits for it before it parks again, so an
178
176
  * approve already on its way is never raced. Never rejects. */
@@ -31,6 +31,13 @@ export declare const END_PATCH_UNKNOWN: {
31
31
  readonly costUsd: null;
32
32
  readonly metrics: null;
33
33
  };
34
+ /** What a loop's bound is armed on: the timer half of the runner's clock (RunnerOptions.clock). Every runner arms the real
35
+ * one (REAL_TIMER); a test's fires when its case says, so a stalled read is let go on an event, never after a real wait. */
36
+ export interface BoundTimer {
37
+ setTimeout(fn: () => void, ms: number): unknown;
38
+ clearTimeout(handle: unknown): void;
39
+ }
40
+ export declare const REAL_TIMER: BoundTimer;
34
41
  /** How many times an end reads its cost before it is written unknown, and the pause between reads: all within the end's
35
42
  * bound (END_PATCH_MS), so a store that refused one read never leaves the cost null. The stored cost is every reader's
36
43
  * answer for an ended run (the list, the view, usage, learning), so a null there stays only when no read could be made. */
@@ -30,6 +30,7 @@ export const END_PATCH_MS = 30_000;
30
30
  /** What an end whose patch was late or failed writes: its cost and metrics unknown (null), never left as an earlier end
31
31
  * of the run stored them, never read as a run that cost $0 by the agent's own path. */
32
32
  export const END_PATCH_UNKNOWN = { costUsd: null, metrics: null };
33
+ export const REAL_TIMER = { setTimeout: (fn, ms) => setTimeout(fn, ms), clearTimeout: (handle) => clearTimeout(handle) };
33
34
  /** How many times an end reads its cost before it is written unknown, and the pause between reads: all within the end's
34
35
  * bound (END_PATCH_MS), so a store that refused one read never leaves the cost null. The stored cost is every reader's
35
36
  * answer for an ended run (the list, the view, usage, learning), so a null there stays only when no read could be made. */
@@ -35,7 +35,7 @@ import { bootSealKey } from "../seal-key.js";
35
35
  import { handedSecret, SECRET_NAMES, secret } from "../secrets.js";
36
36
  import { migrationsIn, openStore, RunnerBelowFloor, SchemaVersionUnknown, StoreAwaitsServer, storePlace, storeTarget } from "../store/index.js";
37
37
  import { SCHEMA_VERSION } from "../store/schema.js";
38
- import { SEAL_KEY_ENV, sealKeyOf } from "../tool-keys.js";
38
+ import { SEAL_KEY_ENV, sealKeyIn } from "../tool-keys.js";
39
39
  import { LAUNCH_HOOK_SECRET_ENV } from "../trigger-launch-hook.js";
40
40
  import { FAUX_BROWSER_ENV } from "../tools.js";
41
41
  import { claimViewOpener } from "../computer-live.js";
@@ -99,8 +99,9 @@ export async function openRunnerStore(dataDir, env, warn, url) {
99
99
  * tokens (the token and the token list) and API key, the seal key (the runner holds it as its sealKey), the store's connection (its URL holds a
100
100
  * database password), the launch hook's signing secret (the server's alone), and the Composio account key, which the
101
101
  * runner's claim alone reads (composio-made.ts composioEnvKey) and sends only as a granted Composio server's MCP header.
102
- * And every OpenTelemetry setting (OTEL_*: OTEL_EXPORTER_OTLP_HEADERS holds a backend's key): a run's process is handed
103
- * them on its pipe (secrets.ts OTEL_PAIR), never in an environment, so no harness, tool or computer of a run has them. */
102
+ * And every OpenTelemetry setting (OTEL_*: OTEL_EXPORTER_OTLP_HEADERS holds a backend's key): a run's process is never
103
+ * handed them, in an environment or on its pipe. It posts its trace over its channel and the runner exports it
104
+ * (otel/tracer.ts postedTracing, tracePosts), so no harness, tool or computer of a run has them. */
104
105
  const RUNNER_ONLY = (name) => name === "AGENTRUN_TOKEN" || name === "AGENTRUN_TOKENS" || name === "AGENTRUN_API_KEY" || name === SEAL_KEY_ENV || name === LAUNCH_HOOK_SECRET_ENV || name === COMPOSIO_KEY_ENV || name.startsWith("AGENTRUN_STORE_") || name.startsWith("OTEL_");
105
106
  /** A run's environment as the runner hands its loops (AdapterSpecDeps.env): this process's, less the runner's own
106
107
  * secrets, with every other secret the launcher's pipe handed it (a model key, a tool key, a box key) readable by name
@@ -146,9 +147,7 @@ export function besideRunEnv(env, switches) {
146
147
  * journal, the seal key and the model route. `booted`: the seal key startRunnerProcess booted against the store (else
147
148
  * this process's, as it was handed or booted). Refused in words with no seal key. */
148
149
  export function runnerLoop(store, dataDir, env = process.env, booted, isolation, dial, paired) {
149
- const sealKey = booted ?? sealKeyOf(secret(SEAL_KEY_ENV) ?? env[SEAL_KEY_ENV]);
150
- if (!sealKey)
151
- throw new RunnerRefused(`A runner needs the server's seal key (${SEAL_KEY_ENV}): start it through the server's launcher, which hands it over.`);
150
+ const sealKey = booted ?? sealKeyIn(secret(SEAL_KEY_ENV) ?? env[SEAL_KEY_ENV], "a runner's secrets", { Refused: RunnerRefused, none: "start the runner through the server's launcher, which hands it over" });
152
151
  const runs = runEnv(env);
153
152
  // The run's computer at its claim, composed once (runnerComputers): none for the runner's place, a box's computer by the
154
153
  // agent's setting, its keys read from the run environment first, then the store's sealed rows; a Docker computer's
@@ -274,14 +273,16 @@ export async function startRunnerProcess(options) {
274
273
  // The janitor sweeps with the computers the loop composed, never a second composition. Its lines are the runner's
275
274
  // warnings, said where the runner says its others (warn: stderr unless a test gives its own).
276
275
  // It sweeps as this runner (its name and its presence's incarnation): a computer kept at a park pinned to another
277
- // runner still there is that runner's to end (computer-kept.ts sweepKept).
276
+ // runner still there is that runner's to end (computer-kept.ts sweepKept). The seal key is the claims' too: it opens
277
+ // the Archil key a kept computer's mount credential is removed with.
278
278
  if (options.janitor && typeof parts !== "function")
279
- janitor = startJanitor({ store, computers: parts.computers, env: parts.env, log: warn, self: { runner: name, incarnation } });
279
+ janitor = startJanitor({ store, computers: parts.computers, env: parts.env, sealKey: seal.key, log: warn, self: { runner: name, incarnation } });
280
280
  // Before it claims: the scratch folders of runs that ended after their runner died (scratch-sweep.ts), said as warnings.
281
281
  await sweepEndedScratch(store, options.dataDir, { log: warn });
282
- // A run's end lets go of what its earlier claims' computers left, with the same computers (run-end-computers.ts), as
283
- // this runner, as the janitor sweeps: a computer kept pinned to another runner still keeping it is that runner's.
284
- const runEnded = projectRunEnded(store, typeof parts !== "function" ? runEndComputers({ store, computers: parts.computers, log: warn, self: () => ({ runner: name, incarnation }) }) : undefined);
282
+ // A run's end lets go of what its earlier claims' computers left, with the same computers (run-end-computers.ts),
283
+ // and with the janitor's environment and seal key, so a machine kept on Archil it deletes has its mount credential
284
+ // removed.
285
+ const runEnded = projectRunEnded(store, typeof parts !== "function" ? runEndComputers({ store, computers: parts.computers, log: warn, env: parts.env, sealKey: seal.key }) : undefined);
285
286
  runner = startRunner({
286
287
  store,
287
288
  createLoop,
@@ -601,7 +602,7 @@ export async function runnerMain(argv, given = process.env, hooks = {}) {
601
602
  try {
602
603
  holds = runnerHolds(args, env);
603
604
  // The Archil settings an operator sets, read by every run's claim here as the server reads them (archil-settings.ts):
604
- // one of the region and S3 URL without the other, or a value the server would refuse, stops this start as it stops
605
+ // one set without the region, or a value the server would refuse, stops this start as it stops
605
606
  // the server's.
606
607
  archilSettingsFromEnv(env);
607
608
  }
@@ -26,7 +26,10 @@
26
26
  // refused unsent (UNUSABLE.perRunMissing).
27
27
  //
28
28
  // A per-run Composio server (composio-made.ts composioPerRun) is bound by each run's caller ({composio_user_id,
29
- // connected_account_id?} in mcp_auth, sealed in its launch): its entry carries them as `query` (mcp-gateway.ts).
29
+ // connected_account_id?} in mcp_auth, sealed in its launch): its entry carries them as `query` (mcp-gateway.ts). Each
30
+ // open reads the owner's Composio users again (composio-owners.ts): a binding of one that the owner's session didn't hand
31
+ // (the token's, or one sealed before the seal marked who handed it) is refused unsent (UNUSABLE.composioOwnersUser); on
32
+ // an API-only store, any binding of one is (COMPOSIO_OWNERS_USER_WORDS).
30
33
  // A Composio server saved with api_key_env (composio-made.ts key_env) seals no key: each open reads the variable's value
31
34
  // as the runner was handed it at its start (secrets.ts secret, never its environment), for an address on Composio's origin
32
35
  // alone (composioEnvKey), and only for a server the run is granted: the run's process never holds it. Unset, or a row at
@@ -55,13 +58,14 @@
55
58
  // the next call sends the new one (or is refused for the move); and an OAuth access token within REFRESH_MARGIN_MS of its
56
59
  // end is refreshed through open's lease path: behind the call while the token is still valid (the call goes at once on
57
60
  // it), waited on only when it has run out. Concurrent calls to one server share one such open.
58
- import { heldApiOnlyMcpOrigins, offApiOnlyMcpOrigins } from "../mcp-api-only-origins.js";
61
+ import { composioOutsideNamespace, heldApiOnlyMcpOrigins, offApiOnlyMcpOrigins } from "../mcp-api-only-origins.js";
62
+ import { bindingRuns, ownersComposioUsers, ownersUser } from "../composio-owners.js";
59
63
  import { randomUUID } from "node:crypto";
60
64
  import { EndpointRefused, REFRESH_REQUEST_MS, refreshed, refused, RequestUnsent, systemNetwork } from "../mcp-oauth.js";
61
65
  import { pinFirst } from "../mcp-pin-first.js";
62
66
  import { mcpNameOf } from "../tool-names.js";
63
67
  import { composioEnvKey, composioMadeKey, composioPerRun, recordedMade } from "../composio-made.js";
64
- import { composioRunQuery } from "../composio-preset.js";
68
+ import { COMPOSIO_OWNERS_USER_WORDS, composioRunQuery } from "../composio-preset.js";
65
69
  import { META_REASON, metaToolOf } from "../mcp-meta.js";
66
70
  import { resourceToolProblem } from "../mcp-resources.js";
67
71
  import { credentialInQuery, credentialInQueryWords, shownUrl } from "../mcp-probe.js";
@@ -237,6 +241,10 @@ export async function mcpClaim(options) {
237
241
  const account = row.auth === "headers" ? await composioAccount(name, row) : undefined;
238
242
  if (account && "unopened" in account)
239
243
  return entry({ unopened: account.unopened }), { awaited: false };
244
+ // One the API token saved calling as a user outside its namespace (saved before it): refused unsent, as said at start.
245
+ const outside = account ? undefined : await composioOutsideNamespace(store, name, row);
246
+ if (outside)
247
+ return entry({ unopened: outside }), { awaited: false };
240
248
  const query = account?.query;
241
249
  // Its key named by api_key_env: the value the runner was handed at its start, for an address on Composio's origin
242
250
  // alone; else its calls refused unsent, naming why (composioEnvKey).
@@ -406,12 +414,20 @@ export async function mcpClaim(options) {
406
414
  };
407
415
  /** A per-run Composio server's account for this run, as the query its requests add (composio-preset.ts
408
416
  * composioRunQuery); or why there is none. Undefined: `row` is no per-run Composio server (its own record says so:
409
- * composioPerRun). */
417
+ * composioPerRun). A binding of a user the owner calls as (composio-owners.ts ownersComposioUsers, the start's own
418
+ * check, read again: one sealed before the check, or before the owner's server was saved) is refused unsent: on an
419
+ * API-only store whoever handed it, on a full one unless the owner's session did (bindingRuns). */
410
420
  const composioAccount = async (name, row) => {
411
421
  if (!composioPerRun(row, await store.settings.get(composioMadeKey(name))))
412
422
  return undefined;
413
423
  const given = await handed(name, row.url, "composio");
414
- return "unopened" in given ? given : { query: composioRunQuery(given.composio) };
424
+ if ("unopened" in given)
425
+ return given;
426
+ const owners = await ownersComposioUsers(store);
427
+ const apiOnly = (await heldApiOnlyMcpOrigins(store)) !== undefined;
428
+ if (apiOnly ? ownersUser(owners, given.composio.user_id) : !bindingRuns(given.composio, owners))
429
+ return { unopened: apiOnly ? COMPOSIO_OWNERS_USER_WORDS : UNUSABLE.composioOwnersUser };
430
+ return { query: composioRunQuery(given.composio) };
415
431
  };
416
432
  const fresh = async () => {
417
433
  if (!pin || released)
@@ -73,6 +73,10 @@ export interface McpForClaimOptions {
73
73
  };
74
74
  /** Each credential value the claim opens, refreshes or mints, for the run's redactors (mcp-claim.ts `hold`). */
75
75
  readonly hold?: (values: string[]) => void;
76
+ /** The run's revision's own tool settings (body.toolSettings), where a tool's file setting is read (filed-tool.ts
77
+ * filedBy): each answer of such a tool is filed whole in the run's files and the tool's result is its summary. A run's
78
+ * own process passes none: its runner reads them from the revision it reads itself (run-child-host.ts). */
79
+ readonly toolSettings?: unknown;
76
80
  }
77
81
  /** What a spec builder gives a claim's MCP for its metered jobs (`capped` and `media`), the same for every builder:
78
82
  * whether its launch has a cap, and where a job's input media are read from: the run's eval web fake (`web`, as its