self-bench 0.3.5 → 0.3.8

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 (1198) hide show
  1. package/.dockerignore +11 -1
  2. package/Dockerfile +9 -9
  3. package/Dockerfile.sandbox +5 -4
  4. package/README.md +38 -21
  5. package/bun.lock +462 -95
  6. package/compose.yaml +64 -20
  7. package/dist/agent-feed.d.ts +8 -0
  8. package/dist/agent-feed.d.ts.map +1 -0
  9. package/dist/agent-feed.js +56 -0
  10. package/dist/agent-feed.js.map +1 -0
  11. package/dist/api/http.d.ts +18 -0
  12. package/dist/api/http.d.ts.map +1 -0
  13. package/dist/api/http.js +111 -0
  14. package/dist/api/http.js.map +1 -0
  15. package/dist/api/run-request.d.ts +37 -0
  16. package/dist/api/run-request.d.ts.map +1 -0
  17. package/dist/api/run-request.js +59 -0
  18. package/dist/api/run-request.js.map +1 -0
  19. package/dist/api/status.d.ts +4 -0
  20. package/dist/api/status.d.ts.map +1 -0
  21. package/dist/api/status.js +36 -0
  22. package/dist/api/status.js.map +1 -0
  23. package/dist/api/viewer-routes.d.ts +9 -0
  24. package/dist/api/viewer-routes.d.ts.map +1 -0
  25. package/dist/api/viewer-routes.js +98 -0
  26. package/dist/api/viewer-routes.js.map +1 -0
  27. package/dist/api-main.js +5 -1
  28. package/dist/api-main.js.map +1 -1
  29. package/dist/api.d.ts +7 -25
  30. package/dist/api.d.ts.map +1 -1
  31. package/dist/api.js +80 -148
  32. package/dist/api.js.map +1 -1
  33. package/dist/archive.d.ts +14 -0
  34. package/dist/archive.d.ts.map +1 -0
  35. package/dist/archive.js +114 -0
  36. package/dist/archive.js.map +1 -0
  37. package/dist/artifacts/common.d.ts +15 -0
  38. package/dist/artifacts/common.d.ts.map +1 -0
  39. package/dist/artifacts/common.js +58 -0
  40. package/dist/artifacts/common.js.map +1 -0
  41. package/dist/artifacts/gcs.d.ts +18 -0
  42. package/dist/artifacts/gcs.d.ts.map +1 -0
  43. package/dist/artifacts/gcs.js +178 -0
  44. package/dist/artifacts/gcs.js.map +1 -0
  45. package/dist/artifacts/local.d.ts +17 -0
  46. package/dist/artifacts/local.d.ts.map +1 -0
  47. package/dist/artifacts/local.js +205 -0
  48. package/dist/artifacts/local.js.map +1 -0
  49. package/dist/artifacts/types.d.ts +18 -0
  50. package/dist/artifacts/types.d.ts.map +1 -0
  51. package/dist/artifacts/types.js +2 -0
  52. package/dist/artifacts/types.js.map +1 -0
  53. package/dist/artifacts.d.ts +5 -28
  54. package/dist/artifacts.d.ts.map +1 -1
  55. package/dist/artifacts.js +5 -302
  56. package/dist/artifacts.js.map +1 -1
  57. package/dist/audit.d.ts.map +1 -1
  58. package/dist/audit.js +8 -2
  59. package/dist/audit.js.map +1 -1
  60. package/dist/auth/api-key-routes.d.ts +17 -0
  61. package/dist/auth/api-key-routes.d.ts.map +1 -0
  62. package/dist/auth/api-key-routes.js +57 -0
  63. package/dist/auth/api-key-routes.js.map +1 -0
  64. package/dist/auth/api-keys.d.ts +47 -0
  65. package/dist/auth/api-keys.d.ts.map +1 -0
  66. package/dist/auth/api-keys.js +102 -0
  67. package/dist/auth/api-keys.js.map +1 -0
  68. package/dist/auth/config.d.ts +17 -0
  69. package/dist/auth/config.d.ts.map +1 -0
  70. package/dist/auth/config.js +38 -0
  71. package/dist/auth/config.js.map +1 -0
  72. package/dist/auth/cookies.d.ts +12 -0
  73. package/dist/auth/cookies.d.ts.map +1 -0
  74. package/dist/auth/cookies.js +45 -0
  75. package/dist/auth/cookies.js.map +1 -0
  76. package/dist/auth/crypto.d.ts +19 -0
  77. package/dist/auth/crypto.d.ts.map +1 -0
  78. package/dist/auth/crypto.js +48 -0
  79. package/dist/auth/crypto.js.map +1 -0
  80. package/dist/auth/github.d.ts +37 -0
  81. package/dist/auth/github.d.ts.map +1 -0
  82. package/dist/auth/github.js +127 -0
  83. package/dist/auth/github.js.map +1 -0
  84. package/dist/auth/routes.d.ts +41 -0
  85. package/dist/auth/routes.d.ts.map +1 -0
  86. package/dist/auth/routes.js +153 -0
  87. package/dist/auth/routes.js.map +1 -0
  88. package/dist/auth/session-expired.d.ts +4 -0
  89. package/dist/auth/session-expired.d.ts.map +1 -0
  90. package/dist/auth/session-expired.js +17 -0
  91. package/dist/auth/session-expired.js.map +1 -0
  92. package/dist/auth/session.d.ts +23 -0
  93. package/dist/auth/session.d.ts.map +1 -0
  94. package/dist/auth/session.js +56 -0
  95. package/dist/auth/session.js.map +1 -0
  96. package/dist/auth/users.d.ts +49 -0
  97. package/dist/auth/users.d.ts.map +1 -0
  98. package/dist/auth/users.js +125 -0
  99. package/dist/auth/users.js.map +1 -0
  100. package/dist/build-metadata.js +1 -1
  101. package/dist/cli/api-client.d.ts +8 -0
  102. package/dist/cli/api-client.d.ts.map +1 -0
  103. package/dist/cli/api-client.js +71 -0
  104. package/dist/cli/api-client.js.map +1 -0
  105. package/dist/cli/associate.d.ts +2 -0
  106. package/dist/cli/associate.d.ts.map +1 -0
  107. package/dist/cli/associate.js +51 -0
  108. package/dist/cli/associate.js.map +1 -0
  109. package/dist/cli/help.d.ts +2 -0
  110. package/dist/cli/help.d.ts.map +1 -0
  111. package/dist/cli/help.js +52 -0
  112. package/dist/cli/help.js.map +1 -0
  113. package/dist/cli/main.d.ts +2 -0
  114. package/dist/cli/main.d.ts.map +1 -0
  115. package/dist/cli/main.js +55 -0
  116. package/dist/cli/main.js.map +1 -0
  117. package/dist/cli/replay.d.ts +3 -0
  118. package/dist/cli/replay.d.ts.map +1 -0
  119. package/dist/cli/replay.js +59 -0
  120. package/dist/cli/replay.js.map +1 -0
  121. package/dist/cli/repository.d.ts +6 -0
  122. package/dist/cli/repository.d.ts.map +1 -0
  123. package/dist/cli/repository.js +36 -0
  124. package/dist/cli/repository.js.map +1 -0
  125. package/dist/cli/run.d.ts +2 -0
  126. package/dist/cli/run.d.ts.map +1 -0
  127. package/dist/cli/run.js +93 -0
  128. package/dist/cli/run.js.map +1 -0
  129. package/dist/cli/stack-environment.d.ts +26 -0
  130. package/dist/cli/stack-environment.d.ts.map +1 -0
  131. package/dist/cli/stack-environment.js +86 -0
  132. package/dist/cli/stack-environment.js.map +1 -0
  133. package/dist/cli/stack.d.ts +6 -0
  134. package/dist/cli/stack.d.ts.map +1 -0
  135. package/dist/cli/stack.js +131 -0
  136. package/dist/cli/stack.js.map +1 -0
  137. package/dist/cli/values.d.ts +8 -0
  138. package/dist/cli/values.d.ts.map +1 -0
  139. package/dist/cli/values.js +30 -0
  140. package/dist/cli/values.js.map +1 -0
  141. package/dist/cli/view.d.ts +2 -0
  142. package/dist/cli/view.d.ts.map +1 -0
  143. package/dist/cli/view.js +40 -0
  144. package/dist/cli/view.js.map +1 -0
  145. package/dist/cli.js +2 -369
  146. package/dist/cli.js.map +1 -1
  147. package/dist/config.d.ts +16 -2
  148. package/dist/config.d.ts.map +1 -1
  149. package/dist/config.js +60 -22
  150. package/dist/config.js.map +1 -1
  151. package/dist/contracts/common.d.ts +22 -0
  152. package/dist/contracts/common.d.ts.map +1 -0
  153. package/dist/contracts/common.js +29 -0
  154. package/dist/contracts/common.js.map +1 -0
  155. package/dist/contracts/results.d.ts +66 -0
  156. package/dist/contracts/results.d.ts.map +1 -0
  157. package/dist/contracts/results.js +2 -0
  158. package/dist/contracts/results.js.map +1 -0
  159. package/dist/contracts/run.d.ts +145 -0
  160. package/dist/contracts/run.d.ts.map +1 -0
  161. package/dist/contracts/run.js +74 -0
  162. package/dist/contracts/run.js.map +1 -0
  163. package/dist/contracts/task.d.ts +232 -0
  164. package/dist/contracts/task.d.ts.map +1 -0
  165. package/dist/contracts/task.js +198 -0
  166. package/dist/contracts/task.js.map +1 -0
  167. package/dist/contracts/verify.d.ts +331 -0
  168. package/dist/contracts/verify.d.ts.map +1 -0
  169. package/dist/contracts/verify.js +84 -0
  170. package/dist/contracts/verify.js.map +1 -0
  171. package/dist/contracts.d.ts +5 -242
  172. package/dist/contracts.d.ts.map +1 -1
  173. package/dist/contracts.js +5 -127
  174. package/dist/contracts.js.map +1 -1
  175. package/dist/db/client.d.ts +12 -0
  176. package/dist/db/client.d.ts.map +1 -0
  177. package/dist/db/client.js +16 -0
  178. package/dist/db/client.js.map +1 -0
  179. package/dist/db/schema.d.ts +1256 -0
  180. package/dist/db/schema.d.ts.map +1 -0
  181. package/dist/db/schema.js +128 -0
  182. package/dist/db/schema.js.map +1 -0
  183. package/dist/environment.d.ts +9 -0
  184. package/dist/environment.d.ts.map +1 -0
  185. package/dist/environment.js +101 -0
  186. package/dist/environment.js.map +1 -0
  187. package/dist/evaluation/account.d.ts +30 -0
  188. package/dist/evaluation/account.d.ts.map +1 -0
  189. package/dist/evaluation/account.js +34 -0
  190. package/dist/evaluation/account.js.map +1 -0
  191. package/dist/evaluation/activities.d.ts +9 -0
  192. package/dist/evaluation/activities.d.ts.map +1 -0
  193. package/dist/evaluation/activities.js +40 -0
  194. package/dist/evaluation/activities.js.map +1 -0
  195. package/dist/evaluation/catalog-pricing.d.ts +3 -0
  196. package/dist/evaluation/catalog-pricing.d.ts.map +1 -0
  197. package/dist/evaluation/catalog-pricing.js +37 -0
  198. package/dist/evaluation/catalog-pricing.js.map +1 -0
  199. package/dist/evaluation/catalog.d.ts +17 -0
  200. package/dist/evaluation/catalog.d.ts.map +1 -0
  201. package/dist/evaluation/catalog.js +126 -0
  202. package/dist/evaluation/catalog.js.map +1 -0
  203. package/dist/evaluation/codex-login-process.d.ts +12 -0
  204. package/dist/evaluation/codex-login-process.d.ts.map +1 -0
  205. package/dist/evaluation/codex-login-process.js +121 -0
  206. package/dist/evaluation/codex-login-process.js.map +1 -0
  207. package/dist/evaluation/codex-login-routes.d.ts +5 -0
  208. package/dist/evaluation/codex-login-routes.d.ts.map +1 -0
  209. package/dist/evaluation/codex-login-routes.js +55 -0
  210. package/dist/evaluation/codex-login-routes.js.map +1 -0
  211. package/dist/evaluation/codex-login.d.ts +42 -0
  212. package/dist/evaluation/codex-login.d.ts.map +1 -0
  213. package/dist/evaluation/codex-login.js +143 -0
  214. package/dist/evaluation/codex-login.js.map +1 -0
  215. package/dist/evaluation/comparisons.d.ts +65 -0
  216. package/dist/evaluation/comparisons.d.ts.map +1 -0
  217. package/dist/evaluation/comparisons.js +161 -0
  218. package/dist/evaluation/comparisons.js.map +1 -0
  219. package/dist/evaluation/config.d.ts +43 -0
  220. package/dist/evaluation/config.d.ts.map +1 -0
  221. package/dist/evaluation/config.js +116 -0
  222. package/dist/evaluation/config.js.map +1 -0
  223. package/dist/evaluation/cost.d.ts +3 -0
  224. package/dist/evaluation/cost.d.ts.map +1 -0
  225. package/dist/evaluation/cost.js +95 -0
  226. package/dist/evaluation/cost.js.map +1 -0
  227. package/dist/evaluation/credential-execution.d.ts +10 -0
  228. package/dist/evaluation/credential-execution.d.ts.map +1 -0
  229. package/dist/evaluation/credential-execution.js +65 -0
  230. package/dist/evaluation/credential-execution.js.map +1 -0
  231. package/dist/evaluation/credentials.d.ts +40 -0
  232. package/dist/evaluation/credentials.d.ts.map +1 -0
  233. package/dist/evaluation/credentials.js +146 -0
  234. package/dist/evaluation/credentials.js.map +1 -0
  235. package/dist/evaluation/encrypted-records.d.ts +15 -0
  236. package/dist/evaluation/encrypted-records.d.ts.map +1 -0
  237. package/dist/evaluation/encrypted-records.js +57 -0
  238. package/dist/evaluation/encrypted-records.js.map +1 -0
  239. package/dist/evaluation/gateway-execution.d.ts +18 -0
  240. package/dist/evaluation/gateway-execution.d.ts.map +1 -0
  241. package/dist/evaluation/gateway-execution.js +38 -0
  242. package/dist/evaluation/gateway-execution.js.map +1 -0
  243. package/dist/evaluation/harbor-cost.d.ts +3 -0
  244. package/dist/evaluation/harbor-cost.d.ts.map +1 -0
  245. package/dist/evaluation/harbor-cost.js +39 -0
  246. package/dist/evaluation/harbor-cost.js.map +1 -0
  247. package/dist/evaluation/harbor_e2b.py +20 -0
  248. package/dist/evaluation/harbor_gateway.py +22 -0
  249. package/dist/evaluation/harnesses.d.ts +8 -0
  250. package/dist/evaluation/harnesses.d.ts.map +1 -0
  251. package/dist/evaluation/harnesses.js +10 -0
  252. package/dist/evaluation/harnesses.js.map +1 -0
  253. package/dist/evaluation/model-options.d.ts +9 -0
  254. package/dist/evaluation/model-options.d.ts.map +1 -0
  255. package/dist/evaluation/model-options.js +81 -0
  256. package/dist/evaluation/model-options.js.map +1 -0
  257. package/dist/evaluation/org-credential-routes.d.ts +5 -0
  258. package/dist/evaluation/org-credential-routes.d.ts.map +1 -0
  259. package/dist/evaluation/org-credential-routes.js +56 -0
  260. package/dist/evaluation/org-credential-routes.js.map +1 -0
  261. package/dist/evaluation/org-records.d.ts +4 -0
  262. package/dist/evaluation/org-records.d.ts.map +1 -0
  263. package/dist/evaluation/org-records.js +14 -0
  264. package/dist/evaluation/org-records.js.map +1 -0
  265. package/dist/evaluation/output.d.ts +9 -0
  266. package/dist/evaluation/output.d.ts.map +1 -0
  267. package/dist/evaluation/output.js +171 -0
  268. package/dist/evaluation/output.js.map +1 -0
  269. package/dist/evaluation/platform-routes.d.ts +5 -0
  270. package/dist/evaluation/platform-routes.d.ts.map +1 -0
  271. package/dist/evaluation/platform-routes.js +123 -0
  272. package/dist/evaluation/platform-routes.js.map +1 -0
  273. package/dist/evaluation/profile-routes.d.ts +16 -0
  274. package/dist/evaluation/profile-routes.d.ts.map +1 -0
  275. package/dist/evaluation/profile-routes.js +47 -0
  276. package/dist/evaluation/profile-routes.js.map +1 -0
  277. package/dist/evaluation/profiles.d.ts +48 -0
  278. package/dist/evaluation/profiles.d.ts.map +1 -0
  279. package/dist/evaluation/profiles.js +134 -0
  280. package/dist/evaluation/profiles.js.map +1 -0
  281. package/dist/evaluation/providers.d.ts +11 -0
  282. package/dist/evaluation/providers.d.ts.map +1 -0
  283. package/dist/evaluation/providers.js +30 -0
  284. package/dist/evaluation/providers.js.map +1 -0
  285. package/dist/evaluation/routes.d.ts +23 -0
  286. package/dist/evaluation/routes.d.ts.map +1 -0
  287. package/dist/evaluation/routes.js +212 -0
  288. package/dist/evaluation/routes.js.map +1 -0
  289. package/dist/evaluation/runner.d.ts +16 -0
  290. package/dist/evaluation/runner.d.ts.map +1 -0
  291. package/dist/evaluation/runner.js +241 -0
  292. package/dist/evaluation/runner.js.map +1 -0
  293. package/dist/evaluation/store.d.ts +8 -0
  294. package/dist/evaluation/store.d.ts.map +1 -0
  295. package/dist/evaluation/store.js +60 -0
  296. package/dist/evaluation/store.js.map +1 -0
  297. package/dist/evaluation/types.d.ts +98 -0
  298. package/dist/evaluation/types.d.ts.map +1 -0
  299. package/dist/evaluation/types.js +2 -0
  300. package/dist/evaluation/types.js.map +1 -0
  301. package/dist/evaluation/worker-main.d.ts +2 -0
  302. package/dist/evaluation/worker-main.d.ts.map +1 -0
  303. package/dist/evaluation/worker-main.js +26 -0
  304. package/dist/evaluation/worker-main.js.map +1 -0
  305. package/dist/evaluation/worker-records.d.ts +5 -0
  306. package/dist/evaluation/worker-records.d.ts.map +1 -0
  307. package/dist/evaluation/worker-records.js +11 -0
  308. package/dist/evaluation/worker-records.js.map +1 -0
  309. package/dist/evaluation/workflow.d.ts +3 -0
  310. package/dist/evaluation/workflow.d.ts.map +1 -0
  311. package/dist/evaluation/workflow.js +20 -0
  312. package/dist/evaluation/workflow.js.map +1 -0
  313. package/dist/execution-environment.d.ts +3 -0
  314. package/dist/execution-environment.d.ts.map +1 -0
  315. package/dist/execution-environment.js +9 -0
  316. package/dist/execution-environment.js.map +1 -0
  317. package/dist/extension-authoring.bundle.js +347 -0
  318. package/dist/extension-verifier.bundle.js +73 -0
  319. package/dist/extensions/authoring.d.ts.map +1 -1
  320. package/dist/extensions/authoring.js +70 -59
  321. package/dist/extensions/authoring.js.map +1 -1
  322. package/dist/extensions/discovery.d.ts.map +1 -1
  323. package/dist/extensions/discovery.js +12 -5
  324. package/dist/extensions/discovery.js.map +1 -1
  325. package/dist/extensions/shared/deliverable.d.ts +33 -0
  326. package/dist/extensions/shared/deliverable.d.ts.map +1 -0
  327. package/dist/extensions/shared/deliverable.js +123 -0
  328. package/dist/extensions/shared/deliverable.js.map +1 -0
  329. package/dist/extensions/shared/mailbox.d.ts +33 -0
  330. package/dist/extensions/shared/mailbox.d.ts.map +1 -0
  331. package/dist/extensions/shared/mailbox.js +102 -0
  332. package/dist/extensions/shared/mailbox.js.map +1 -0
  333. package/dist/extensions/shared/schemas.d.ts +90 -0
  334. package/dist/extensions/shared/schemas.d.ts.map +1 -0
  335. package/dist/extensions/shared/schemas.js +71 -0
  336. package/dist/extensions/shared/schemas.js.map +1 -0
  337. package/dist/extensions/shared/static-check.d.ts +38 -0
  338. package/dist/extensions/shared/static-check.d.ts.map +1 -0
  339. package/dist/extensions/shared/static-check.js +52 -0
  340. package/dist/extensions/shared/static-check.js.map +1 -0
  341. package/dist/extensions/verifier.d.ts +4 -0
  342. package/dist/extensions/verifier.d.ts.map +1 -0
  343. package/dist/extensions/verifier.js +70 -0
  344. package/dist/extensions/verifier.js.map +1 -0
  345. package/dist/github.d.ts +1 -1
  346. package/dist/github.d.ts.map +1 -1
  347. package/dist/github.js +3 -3
  348. package/dist/github.js.map +1 -1
  349. package/dist/harbor-environment.d.ts +13 -1
  350. package/dist/harbor-environment.d.ts.map +1 -1
  351. package/dist/harbor-environment.js +37 -4
  352. package/dist/harbor-environment.js.map +1 -1
  353. package/dist/harbor-results.d.ts +2 -0
  354. package/dist/harbor-results.d.ts.map +1 -1
  355. package/dist/harbor-results.js +2 -0
  356. package/dist/harbor-results.js.map +1 -1
  357. package/dist/harbor-task/compiler.d.ts +10 -0
  358. package/dist/harbor-task/compiler.d.ts.map +1 -0
  359. package/dist/harbor-task/compiler.js +174 -0
  360. package/dist/harbor-task/compiler.js.map +1 -0
  361. package/dist/harbor-task/constants.d.ts +3 -0
  362. package/dist/harbor-task/constants.d.ts.map +1 -0
  363. package/dist/harbor-task/constants.js +3 -0
  364. package/dist/harbor-task/constants.js.map +1 -0
  365. package/dist/harbor-task/dependencies.d.ts +3 -0
  366. package/dist/harbor-task/dependencies.d.ts.map +1 -0
  367. package/dist/harbor-task/dependencies.js +20 -0
  368. package/dist/harbor-task/dependencies.js.map +1 -0
  369. package/dist/harbor-task/paths.d.ts +6 -0
  370. package/dist/harbor-task/paths.d.ts.map +1 -0
  371. package/dist/harbor-task/paths.js +37 -0
  372. package/dist/harbor-task/paths.js.map +1 -0
  373. package/dist/harbor-task/render.d.ts +11 -0
  374. package/dist/harbor-task/render.d.ts.map +1 -0
  375. package/dist/harbor-task/render.js +194 -0
  376. package/dist/harbor-task/render.js.map +1 -0
  377. package/dist/harbor-task/runtime/command.sh +26 -0
  378. package/dist/harbor-task/runtime/junit.py +69 -0
  379. package/dist/harbor-task/runtime-assets.d.ts +2 -0
  380. package/dist/harbor-task/runtime-assets.d.ts.map +1 -0
  381. package/dist/harbor-task/runtime-assets.js +8 -0
  382. package/dist/harbor-task/runtime-assets.js.map +1 -0
  383. package/dist/harbor-task/test-patch.d.ts +4 -0
  384. package/dist/harbor-task/test-patch.d.ts.map +1 -0
  385. package/dist/harbor-task/test-patch.js +15 -0
  386. package/dist/harbor-task/test-patch.js.map +1 -0
  387. package/dist/harbor-task/verifier.d.ts +4 -0
  388. package/dist/harbor-task/verifier.d.ts.map +1 -0
  389. package/dist/harbor-task/verifier.js +105 -0
  390. package/dist/harbor-task/verifier.js.map +1 -0
  391. package/dist/harbor-task.d.ts +3 -11
  392. package/dist/harbor-task.d.ts.map +1 -1
  393. package/dist/harbor-task.js +2 -461
  394. package/dist/harbor-task.js.map +1 -1
  395. package/dist/log-excerpt.d.ts +15 -0
  396. package/dist/log-excerpt.d.ts.map +1 -0
  397. package/dist/log-excerpt.js +104 -0
  398. package/dist/log-excerpt.js.map +1 -0
  399. package/dist/patch-check.d.ts +26 -0
  400. package/dist/patch-check.d.ts.map +1 -0
  401. package/dist/patch-check.js +137 -0
  402. package/dist/patch-check.js.map +1 -0
  403. package/dist/pi-event-feed.d.ts +16 -0
  404. package/dist/pi-event-feed.d.ts.map +1 -0
  405. package/dist/pi-event-feed.js +86 -0
  406. package/dist/pi-event-feed.js.map +1 -0
  407. package/dist/pi-session.d.ts +32 -0
  408. package/dist/pi-session.d.ts.map +1 -0
  409. package/dist/pi-session.js +175 -0
  410. package/dist/pi-session.js.map +1 -0
  411. package/dist/process.d.ts +5 -0
  412. package/dist/process.d.ts.map +1 -1
  413. package/dist/process.js +31 -9
  414. package/dist/process.js.map +1 -1
  415. package/dist/project-paths.d.ts +2 -0
  416. package/dist/project-paths.d.ts.map +1 -0
  417. package/dist/project-paths.js +15 -0
  418. package/dist/project-paths.js.map +1 -0
  419. package/dist/provenance/github.d.ts +4 -0
  420. package/dist/provenance/github.d.ts.map +1 -0
  421. package/dist/provenance/github.js +65 -0
  422. package/dist/provenance/github.js.map +1 -0
  423. package/dist/provenance/local.d.ts +4 -0
  424. package/dist/provenance/local.d.ts.map +1 -0
  425. package/dist/provenance/local.js +82 -0
  426. package/dist/provenance/local.js.map +1 -0
  427. package/dist/provenance/redact.d.ts +2 -0
  428. package/dist/provenance/redact.d.ts.map +1 -0
  429. package/dist/provenance/redact.js +28 -0
  430. package/dist/provenance/redact.js.map +1 -0
  431. package/dist/provenance/selection.d.ts +4 -0
  432. package/dist/provenance/selection.d.ts.map +1 -0
  433. package/dist/provenance/selection.js +29 -0
  434. package/dist/provenance/selection.js.map +1 -0
  435. package/dist/provenance/session.d.ts +3 -0
  436. package/dist/provenance/session.d.ts.map +1 -0
  437. package/dist/provenance/session.js +214 -0
  438. package/dist/provenance/session.js.map +1 -0
  439. package/dist/provenance/shared.d.ts +7 -0
  440. package/dist/provenance/shared.d.ts.map +1 -0
  441. package/dist/provenance/shared.js +10 -0
  442. package/dist/provenance/shared.js.map +1 -0
  443. package/dist/provenance/types.d.ts +34 -0
  444. package/dist/provenance/types.d.ts.map +1 -0
  445. package/dist/provenance/types.js +22 -0
  446. package/dist/provenance/types.js.map +1 -0
  447. package/dist/provenance-associations/apply.d.ts +3 -0
  448. package/dist/provenance-associations/apply.d.ts.map +1 -0
  449. package/dist/provenance-associations/apply.js +66 -0
  450. package/dist/provenance-associations/apply.js.map +1 -0
  451. package/dist/provenance-associations/shared.d.ts +45 -0
  452. package/dist/provenance-associations/shared.d.ts.map +1 -0
  453. package/dist/provenance-associations/shared.js +42 -0
  454. package/dist/provenance-associations/shared.js.map +1 -0
  455. package/dist/provenance-associations.d.ts +22 -0
  456. package/dist/provenance-associations.d.ts.map +1 -0
  457. package/dist/provenance-associations.js +121 -0
  458. package/dist/provenance-associations.js.map +1 -0
  459. package/dist/provenance.d.ts +7 -20
  460. package/dist/provenance.d.ts.map +1 -1
  461. package/dist/provenance.js +6 -360
  462. package/dist/provenance.js.map +1 -1
  463. package/dist/providers.d.ts +25 -2
  464. package/dist/providers.d.ts.map +1 -1
  465. package/dist/providers.js +23 -2
  466. package/dist/providers.js.map +1 -1
  467. package/dist/repair.d.ts +1 -6
  468. package/dist/repair.d.ts.map +1 -1
  469. package/dist/repair.js +17 -27
  470. package/dist/repair.js.map +1 -1
  471. package/dist/review/assets/index-BHHztQ9x.js +1679 -0
  472. package/dist/review/assets/index-KQ1eFQ0t.css +1 -0
  473. package/dist/review/index.html +11 -8
  474. package/dist/runtime/command.sh +26 -0
  475. package/dist/runtime/junit.py +69 -0
  476. package/dist/sandbox/contracts.d.ts +76 -0
  477. package/dist/sandbox/contracts.d.ts.map +1 -0
  478. package/dist/sandbox/contracts.js +12 -0
  479. package/dist/sandbox/contracts.js.map +1 -0
  480. package/dist/sandbox/index.d.ts +5 -0
  481. package/dist/sandbox/index.d.ts.map +1 -0
  482. package/dist/sandbox/index.js +27 -0
  483. package/dist/sandbox/index.js.map +1 -0
  484. package/dist/sandbox/live.d.ts +18 -0
  485. package/dist/sandbox/live.d.ts.map +1 -0
  486. package/dist/sandbox/live.js +55 -0
  487. package/dist/sandbox/live.js.map +1 -0
  488. package/dist/sandbox/output-retry.d.ts +16 -0
  489. package/dist/sandbox/output-retry.d.ts.map +1 -0
  490. package/dist/sandbox/output-retry.js +36 -0
  491. package/dist/sandbox/output-retry.js.map +1 -0
  492. package/dist/sandbox/programs/author.d.ts +3 -0
  493. package/dist/sandbox/programs/author.d.ts.map +1 -0
  494. package/dist/sandbox/programs/author.js +27 -0
  495. package/dist/sandbox/programs/author.js.map +1 -0
  496. package/dist/sandbox/programs/check.d.ts +3 -0
  497. package/dist/sandbox/programs/check.d.ts.map +1 -0
  498. package/dist/sandbox/programs/check.js +76 -0
  499. package/dist/sandbox/programs/check.js.map +1 -0
  500. package/dist/sandbox/programs/prepare-task.d.ts +12 -0
  501. package/dist/sandbox/programs/prepare-task.d.ts.map +1 -0
  502. package/dist/sandbox/programs/prepare-task.js +32 -0
  503. package/dist/sandbox/programs/prepare-task.js.map +1 -0
  504. package/dist/sandbox/programs/verifier.d.ts +3 -0
  505. package/dist/sandbox/programs/verifier.d.ts.map +1 -0
  506. package/dist/sandbox/programs/verifier.js +9 -0
  507. package/dist/sandbox/programs/verifier.js.map +1 -0
  508. package/dist/sandbox/providers/docker/executor.d.ts +14 -0
  509. package/dist/sandbox/providers/docker/executor.d.ts.map +1 -0
  510. package/dist/sandbox/providers/docker/executor.js +153 -0
  511. package/dist/sandbox/providers/docker/executor.js.map +1 -0
  512. package/dist/sandbox/providers/e2b/bytes.d.ts +3 -0
  513. package/dist/sandbox/providers/e2b/bytes.d.ts.map +1 -0
  514. package/dist/sandbox/providers/e2b/bytes.js +8 -0
  515. package/dist/sandbox/providers/e2b/bytes.js.map +1 -0
  516. package/dist/sandbox/providers/e2b/cleanup.d.ts +8 -0
  517. package/dist/sandbox/providers/e2b/cleanup.d.ts.map +1 -0
  518. package/dist/sandbox/providers/e2b/cleanup.js +124 -0
  519. package/dist/sandbox/providers/e2b/cleanup.js.map +1 -0
  520. package/dist/sandbox/providers/e2b/command.d.ts +23 -0
  521. package/dist/sandbox/providers/e2b/command.d.ts.map +1 -0
  522. package/dist/sandbox/providers/e2b/command.js +160 -0
  523. package/dist/sandbox/providers/e2b/command.js.map +1 -0
  524. package/dist/sandbox/providers/e2b/config.d.ts +13 -0
  525. package/dist/sandbox/providers/e2b/config.d.ts.map +1 -0
  526. package/dist/sandbox/providers/e2b/config.js +2 -0
  527. package/dist/sandbox/providers/e2b/config.js.map +1 -0
  528. package/dist/sandbox/providers/e2b/executor.d.ts +15 -0
  529. package/dist/sandbox/providers/e2b/executor.d.ts.map +1 -0
  530. package/dist/sandbox/providers/e2b/executor.js +207 -0
  531. package/dist/sandbox/providers/e2b/executor.js.map +1 -0
  532. package/dist/sandbox/providers/e2b/lifecycle.d.ts +8 -0
  533. package/dist/sandbox/providers/e2b/lifecycle.d.ts.map +1 -0
  534. package/dist/sandbox/providers/e2b/lifecycle.js +37 -0
  535. package/dist/sandbox/providers/e2b/lifecycle.js.map +1 -0
  536. package/dist/sandbox/providers/e2b/outcome.d.ts +11 -0
  537. package/dist/sandbox/providers/e2b/outcome.d.ts.map +1 -0
  538. package/dist/sandbox/providers/e2b/outcome.js +72 -0
  539. package/dist/sandbox/providers/e2b/outcome.js.map +1 -0
  540. package/dist/sandbox/providers/e2b/stage-files.d.ts +10 -0
  541. package/dist/sandbox/providers/e2b/stage-files.d.ts.map +1 -0
  542. package/dist/sandbox/providers/e2b/stage-files.js +45 -0
  543. package/dist/sandbox/providers/e2b/stage-files.js.map +1 -0
  544. package/dist/sandbox/providers/e2b/startup.d.ts +10 -0
  545. package/dist/sandbox/providers/e2b/startup.d.ts.map +1 -0
  546. package/dist/sandbox/providers/e2b/startup.js +26 -0
  547. package/dist/sandbox/providers/e2b/startup.js.map +1 -0
  548. package/dist/sandbox/providers/e2b/types.d.ts +9 -0
  549. package/dist/sandbox/providers/e2b/types.d.ts.map +1 -0
  550. package/dist/sandbox/providers/e2b/types.js +2 -0
  551. package/dist/sandbox/providers/e2b/types.js.map +1 -0
  552. package/dist/sandbox/providers/e2b/validation.d.ts +14 -0
  553. package/dist/sandbox/providers/e2b/validation.d.ts.map +1 -0
  554. package/dist/sandbox/providers/e2b/validation.js +60 -0
  555. package/dist/sandbox/providers/e2b/validation.js.map +1 -0
  556. package/dist/sandbox/providers/modal/auth.d.ts +2 -0
  557. package/dist/sandbox/providers/modal/auth.d.ts.map +1 -0
  558. package/dist/sandbox/providers/modal/auth.js +9 -0
  559. package/dist/sandbox/providers/modal/auth.js.map +1 -0
  560. package/dist/sandbox/providers/modal/executor.d.ts +15 -0
  561. package/dist/sandbox/providers/modal/executor.d.ts.map +1 -0
  562. package/dist/sandbox/providers/modal/executor.js +207 -0
  563. package/dist/sandbox/providers/modal/executor.js.map +1 -0
  564. package/dist/sandbox/providers/modal/live.d.ts +7 -0
  565. package/dist/sandbox/providers/modal/live.d.ts.map +1 -0
  566. package/dist/sandbox/providers/modal/live.js +50 -0
  567. package/dist/sandbox/providers/modal/live.js.map +1 -0
  568. package/dist/sandbox/providers/vercel/command.d.ts +20 -0
  569. package/dist/sandbox/providers/vercel/command.d.ts.map +1 -0
  570. package/dist/sandbox/providers/vercel/command.js +126 -0
  571. package/dist/sandbox/providers/vercel/command.js.map +1 -0
  572. package/dist/sandbox/providers/vercel/executor.d.ts +13 -0
  573. package/dist/sandbox/providers/vercel/executor.d.ts.map +1 -0
  574. package/dist/sandbox/providers/vercel/executor.js +190 -0
  575. package/dist/sandbox/providers/vercel/executor.js.map +1 -0
  576. package/dist/sandbox/providers/vercel/fetch.d.ts +6 -0
  577. package/dist/sandbox/providers/vercel/fetch.d.ts.map +1 -0
  578. package/dist/sandbox/providers/vercel/fetch.js +39 -0
  579. package/dist/sandbox/providers/vercel/fetch.js.map +1 -0
  580. package/dist/sandbox/providers/vercel/lifecycle.d.ts +13 -0
  581. package/dist/sandbox/providers/vercel/lifecycle.d.ts.map +1 -0
  582. package/dist/sandbox/providers/vercel/lifecycle.js +140 -0
  583. package/dist/sandbox/providers/vercel/lifecycle.js.map +1 -0
  584. package/dist/sandbox/providers/vercel/validation.d.ts +11 -0
  585. package/dist/sandbox/providers/vercel/validation.d.ts.map +1 -0
  586. package/dist/sandbox/providers/vercel/validation.js +30 -0
  587. package/dist/sandbox/providers/vercel/validation.js.map +1 -0
  588. package/dist/sandbox/remote-files.d.ts +11 -0
  589. package/dist/sandbox/remote-files.d.ts.map +1 -0
  590. package/dist/sandbox/remote-files.js +41 -0
  591. package/dist/sandbox/remote-files.js.map +1 -0
  592. package/dist/sandbox/request-validation.d.ts +5 -0
  593. package/dist/sandbox/request-validation.d.ts.map +1 -0
  594. package/dist/sandbox/request-validation.js +43 -0
  595. package/dist/sandbox/request-validation.js.map +1 -0
  596. package/dist/sandbox/supervisor.d.ts +42 -0
  597. package/dist/sandbox/supervisor.d.ts.map +1 -0
  598. package/dist/sandbox/supervisor.js +126 -0
  599. package/dist/sandbox/supervisor.js.map +1 -0
  600. package/dist/sandbox/timeout.d.ts +16 -0
  601. package/dist/sandbox/timeout.d.ts.map +1 -0
  602. package/dist/sandbox/timeout.js +53 -0
  603. package/dist/sandbox/timeout.js.map +1 -0
  604. package/dist/sandbox-author.bundle.js +48 -14877
  605. package/dist/sandbox-check.bundle.js +20155 -0
  606. package/dist/sandbox-verifier.bundle.js +307 -0
  607. package/dist/setup/e2b/build.d.ts +24 -0
  608. package/dist/setup/e2b/build.d.ts.map +1 -0
  609. package/dist/setup/e2b/build.js +46 -0
  610. package/dist/setup/e2b/build.js.map +1 -0
  611. package/dist/setup/e2b/cli.d.ts +2 -0
  612. package/dist/setup/e2b/cli.d.ts.map +1 -0
  613. package/dist/setup/e2b/cli.js +51 -0
  614. package/dist/setup/e2b/cli.js.map +1 -0
  615. package/dist/setup/e2b/index.d.ts +5 -0
  616. package/dist/setup/e2b/index.d.ts.map +1 -0
  617. package/dist/setup/e2b/index.js +4 -0
  618. package/dist/setup/e2b/index.js.map +1 -0
  619. package/dist/setup/e2b/template.d.ts +4 -0
  620. package/dist/setup/e2b/template.d.ts.map +1 -0
  621. package/dist/setup/e2b/template.js +53 -0
  622. package/dist/setup/e2b/template.js.map +1 -0
  623. package/dist/setup/vercel/cli-helpers.d.ts +22 -0
  624. package/dist/setup/vercel/cli-helpers.d.ts.map +1 -0
  625. package/dist/setup/vercel/cli-helpers.js +87 -0
  626. package/dist/setup/vercel/cli-helpers.js.map +1 -0
  627. package/dist/setup/vercel/cli-runner.d.ts +14 -0
  628. package/dist/setup/vercel/cli-runner.d.ts.map +1 -0
  629. package/dist/setup/vercel/cli-runner.js +24 -0
  630. package/dist/setup/vercel/cli-runner.js.map +1 -0
  631. package/dist/setup/vercel/cli-types.d.ts +24 -0
  632. package/dist/setup/vercel/cli-types.d.ts.map +1 -0
  633. package/dist/setup/vercel/cli-types.js +18 -0
  634. package/dist/setup/vercel/cli-types.js.map +1 -0
  635. package/dist/setup/vercel/cli.d.ts +38 -0
  636. package/dist/setup/vercel/cli.d.ts.map +1 -0
  637. package/dist/setup/vercel/cli.js +193 -0
  638. package/dist/setup/vercel/cli.js.map +1 -0
  639. package/dist/setup/vercel/index.d.ts +4 -0
  640. package/dist/setup/vercel/index.d.ts.map +1 -0
  641. package/dist/setup/vercel/index.js +3 -0
  642. package/dist/setup/vercel/index.js.map +1 -0
  643. package/dist/setup/vercel/probe.d.ts +49 -0
  644. package/dist/setup/vercel/probe.d.ts.map +1 -0
  645. package/dist/setup/vercel/probe.js +151 -0
  646. package/dist/setup/vercel/probe.js.map +1 -0
  647. package/dist/setup/vercel/profile-files.d.ts +6 -0
  648. package/dist/setup/vercel/profile-files.d.ts.map +1 -0
  649. package/dist/setup/vercel/profile-files.js +100 -0
  650. package/dist/setup/vercel/profile-files.js.map +1 -0
  651. package/dist/setup/vercel/profile-schema.d.ts +48 -0
  652. package/dist/setup/vercel/profile-schema.d.ts.map +1 -0
  653. package/dist/setup/vercel/profile-schema.js +39 -0
  654. package/dist/setup/vercel/profile-schema.js.map +1 -0
  655. package/dist/setup/vercel/profile.d.ts +18 -0
  656. package/dist/setup/vercel/profile.d.ts.map +1 -0
  657. package/dist/setup/vercel/profile.js +118 -0
  658. package/dist/setup/vercel/profile.js.map +1 -0
  659. package/dist/setup/vercel/runtime-image.d.ts +51 -0
  660. package/dist/setup/vercel/runtime-image.d.ts.map +1 -0
  661. package/dist/setup/vercel/runtime-image.js +123 -0
  662. package/dist/setup/vercel/runtime-image.js.map +1 -0
  663. package/dist/setup/vercel/selection.d.ts +18 -0
  664. package/dist/setup/vercel/selection.d.ts.map +1 -0
  665. package/dist/setup/vercel/selection.js +113 -0
  666. package/dist/setup/vercel/selection.js.map +1 -0
  667. package/dist/setup/vercel/setup-types.d.ts +34 -0
  668. package/dist/setup/vercel/setup-types.d.ts.map +1 -0
  669. package/dist/setup/vercel/setup-types.js +2 -0
  670. package/dist/setup/vercel/setup-types.js.map +1 -0
  671. package/dist/setup/vercel/setup.d.ts +17 -0
  672. package/dist/setup/vercel/setup.d.ts.map +1 -0
  673. package/dist/setup/vercel/setup.js +172 -0
  674. package/dist/setup/vercel/setup.js.map +1 -0
  675. package/dist/site/batch-activity.d.ts +5 -0
  676. package/dist/site/batch-activity.d.ts.map +1 -0
  677. package/dist/site/batch-activity.js +31 -0
  678. package/dist/site/batch-activity.js.map +1 -0
  679. package/dist/site/batch-progress.d.ts +16 -0
  680. package/dist/site/batch-progress.d.ts.map +1 -0
  681. package/dist/site/batch-progress.js +52 -0
  682. package/dist/site/batch-progress.js.map +1 -0
  683. package/dist/site/batch-routes.d.ts +30 -0
  684. package/dist/site/batch-routes.d.ts.map +1 -0
  685. package/dist/site/batch-routes.js +117 -0
  686. package/dist/site/batch-routes.js.map +1 -0
  687. package/dist/site/batch-start.d.ts +60 -0
  688. package/dist/site/batch-start.d.ts.map +1 -0
  689. package/dist/site/batch-start.js +39 -0
  690. package/dist/site/batch-start.js.map +1 -0
  691. package/dist/site/connected-repos.d.ts +25 -0
  692. package/dist/site/connected-repos.d.ts.map +1 -0
  693. package/dist/site/connected-repos.js +109 -0
  694. package/dist/site/connected-repos.js.map +1 -0
  695. package/dist/site/evaluation-start.d.ts +4 -0
  696. package/dist/site/evaluation-start.d.ts.map +1 -0
  697. package/dist/site/evaluation-start.js +19 -0
  698. package/dist/site/evaluation-start.js.map +1 -0
  699. package/dist/site/generation-config.d.ts +4 -0
  700. package/dist/site/generation-config.d.ts.map +1 -0
  701. package/dist/site/generation-config.js +16 -0
  702. package/dist/site/generation-config.js.map +1 -0
  703. package/dist/site/generation-credentials.d.ts +6 -0
  704. package/dist/site/generation-credentials.d.ts.map +1 -0
  705. package/dist/site/generation-credentials.js +101 -0
  706. package/dist/site/generation-credentials.js.map +1 -0
  707. package/dist/site/generation-run.d.ts +6 -0
  708. package/dist/site/generation-run.d.ts.map +1 -0
  709. package/dist/site/generation-run.js +22 -0
  710. package/dist/site/generation-run.js.map +1 -0
  711. package/dist/site/generation-settings.d.ts +80 -0
  712. package/dist/site/generation-settings.d.ts.map +1 -0
  713. package/dist/site/generation-settings.js +84 -0
  714. package/dist/site/generation-settings.js.map +1 -0
  715. package/dist/site/generation-subscription.d.ts +3 -0
  716. package/dist/site/generation-subscription.d.ts.map +1 -0
  717. package/dist/site/generation-subscription.js +38 -0
  718. package/dist/site/generation-subscription.js.map +1 -0
  719. package/dist/site/github-repos.d.ts +35 -0
  720. package/dist/site/github-repos.d.ts.map +1 -0
  721. package/dist/site/github-repos.js +121 -0
  722. package/dist/site/github-repos.js.map +1 -0
  723. package/dist/site/pr-candidate.d.ts +26 -0
  724. package/dist/site/pr-candidate.d.ts.map +1 -0
  725. package/dist/site/pr-candidate.js +101 -0
  726. package/dist/site/pr-candidate.js.map +1 -0
  727. package/dist/site/pr-list.d.ts +13 -0
  728. package/dist/site/pr-list.d.ts.map +1 -0
  729. package/dist/site/pr-list.js +24 -0
  730. package/dist/site/pr-list.js.map +1 -0
  731. package/dist/site/pr-routes.d.ts +26 -0
  732. package/dist/site/pr-routes.d.ts.map +1 -0
  733. package/dist/site/pr-routes.js +139 -0
  734. package/dist/site/pr-routes.js.map +1 -0
  735. package/dist/site/repo-store.d.ts +40 -0
  736. package/dist/site/repo-store.d.ts.map +1 -0
  737. package/dist/site/repo-store.js +74 -0
  738. package/dist/site/repo-store.js.map +1 -0
  739. package/dist/site/run-store.d.ts +17 -0
  740. package/dist/site/run-store.d.ts.map +1 -0
  741. package/dist/site/run-store.js +42 -0
  742. package/dist/site/run-store.js.map +1 -0
  743. package/dist/site/runtime.d.ts +27 -0
  744. package/dist/site/runtime.d.ts.map +1 -0
  745. package/dist/site/runtime.js +97 -0
  746. package/dist/site/runtime.js.map +1 -0
  747. package/dist/site/task-deletion.d.ts +7 -0
  748. package/dist/site/task-deletion.d.ts.map +1 -0
  749. package/dist/site/task-deletion.js +29 -0
  750. package/dist/site/task-deletion.js.map +1 -0
  751. package/dist/site/task-start-reservation.d.ts +4 -0
  752. package/dist/site/task-start-reservation.d.ts.map +1 -0
  753. package/dist/site/task-start-reservation.js +18 -0
  754. package/dist/site/task-start-reservation.js.map +1 -0
  755. package/dist/site/task-start.d.ts +33 -0
  756. package/dist/site/task-start.d.ts.map +1 -0
  757. package/dist/site/task-start.js +50 -0
  758. package/dist/site/task-start.js.map +1 -0
  759. package/dist/site/task-status.d.ts +36 -0
  760. package/dist/site/task-status.d.ts.map +1 -0
  761. package/dist/site/task-status.js +113 -0
  762. package/dist/site/task-status.js.map +1 -0
  763. package/dist/site/task-store.d.ts +78 -0
  764. package/dist/site/task-store.d.ts.map +1 -0
  765. package/dist/site/task-store.js +186 -0
  766. package/dist/site/task-store.js.map +1 -0
  767. package/dist/site/task-sync.d.ts +30 -0
  768. package/dist/site/task-sync.d.ts.map +1 -0
  769. package/dist/site/task-sync.js +121 -0
  770. package/dist/site/task-sync.js.map +1 -0
  771. package/dist/site/tasks.d.ts +47 -0
  772. package/dist/site/tasks.d.ts.map +1 -0
  773. package/dist/site/tasks.js +164 -0
  774. package/dist/site/tasks.js.map +1 -0
  775. package/dist/site/temporal-status.d.ts +8 -0
  776. package/dist/site/temporal-status.d.ts.map +1 -0
  777. package/dist/site/temporal-status.js +41 -0
  778. package/dist/site/temporal-status.js.map +1 -0
  779. package/dist/site/tenant.d.ts +4 -0
  780. package/dist/site/tenant.d.ts.map +1 -0
  781. package/dist/site/tenant.js +6 -0
  782. package/dist/site/tenant.js.map +1 -0
  783. package/dist/static-check.d.ts +38 -0
  784. package/dist/static-check.d.ts.map +1 -0
  785. package/dist/static-check.js +131 -0
  786. package/dist/static-check.js.map +1 -0
  787. package/dist/submission-hash.d.ts +18 -0
  788. package/dist/submission-hash.d.ts.map +1 -0
  789. package/dist/submission-hash.js +16 -0
  790. package/dist/submission-hash.js.map +1 -0
  791. package/dist/subscription-auth.d.ts +0 -7
  792. package/dist/subscription-auth.d.ts.map +1 -1
  793. package/dist/subscription-auth.js +3 -23
  794. package/dist/subscription-auth.js.map +1 -1
  795. package/dist/temporal/activities/agent-feed.d.ts +5 -0
  796. package/dist/temporal/activities/agent-feed.d.ts.map +1 -0
  797. package/dist/temporal/activities/agent-feed.js +41 -0
  798. package/dist/temporal/activities/agent-feed.js.map +1 -0
  799. package/dist/temporal/activities/agent-scripts.d.ts +16 -0
  800. package/dist/temporal/activities/agent-scripts.d.ts.map +1 -0
  801. package/dist/temporal/activities/agent-scripts.js +162 -0
  802. package/dist/temporal/activities/agent-scripts.js.map +1 -0
  803. package/dist/temporal/activities/authoring-round.d.ts +13 -0
  804. package/dist/temporal/activities/authoring-round.d.ts.map +1 -0
  805. package/dist/temporal/activities/authoring-round.js +160 -0
  806. package/dist/temporal/activities/authoring-round.js.map +1 -0
  807. package/dist/temporal/activities/constants.d.ts +5 -0
  808. package/dist/temporal/activities/constants.d.ts.map +1 -0
  809. package/dist/temporal/activities/constants.js +5 -0
  810. package/dist/temporal/activities/constants.js.map +1 -0
  811. package/dist/temporal/activities/discovery.d.ts +17 -0
  812. package/dist/temporal/activities/discovery.d.ts.map +1 -0
  813. package/dist/temporal/activities/discovery.js +153 -0
  814. package/dist/temporal/activities/discovery.js.map +1 -0
  815. package/dist/temporal/activities/drafts.d.ts +15 -0
  816. package/dist/temporal/activities/drafts.d.ts.map +1 -0
  817. package/dist/temporal/activities/drafts.js +51 -0
  818. package/dist/temporal/activities/drafts.js.map +1 -0
  819. package/dist/temporal/activities/excluded-source-prs.d.ts +9 -0
  820. package/dist/temporal/activities/excluded-source-prs.d.ts.map +1 -0
  821. package/dist/temporal/activities/excluded-source-prs.js +132 -0
  822. package/dist/temporal/activities/excluded-source-prs.js.map +1 -0
  823. package/dist/temporal/activities/export.d.ts +38 -0
  824. package/dist/temporal/activities/export.d.ts.map +1 -0
  825. package/dist/temporal/activities/export.js +79 -0
  826. package/dist/temporal/activities/export.js.map +1 -0
  827. package/dist/temporal/activities/factory.d.ts +5 -0
  828. package/dist/temporal/activities/factory.d.ts.map +1 -0
  829. package/dist/temporal/activities/factory.js +26 -0
  830. package/dist/temporal/activities/factory.js.map +1 -0
  831. package/dist/temporal/activities/gate-logs.d.ts +20 -0
  832. package/dist/temporal/activities/gate-logs.d.ts.map +1 -0
  833. package/dist/temporal/activities/gate-logs.js +62 -0
  834. package/dist/temporal/activities/gate-logs.js.map +1 -0
  835. package/dist/temporal/activities/generation-runtime.d.ts +6 -0
  836. package/dist/temporal/activities/generation-runtime.d.ts.map +1 -0
  837. package/dist/temporal/activities/generation-runtime.js +56 -0
  838. package/dist/temporal/activities/generation-runtime.js.map +1 -0
  839. package/dist/temporal/activities/harbor.d.ts +11 -0
  840. package/dist/temporal/activities/harbor.d.ts.map +1 -0
  841. package/dist/temporal/activities/harbor.js +112 -0
  842. package/dist/temporal/activities/harbor.js.map +1 -0
  843. package/dist/temporal/activities/modal-build-log.d.ts +12 -0
  844. package/dist/temporal/activities/modal-build-log.d.ts.map +1 -0
  845. package/dist/temporal/activities/modal-build-log.js +57 -0
  846. package/dist/temporal/activities/modal-build-log.js.map +1 -0
  847. package/dist/temporal/activities/prompts-authoring.d.ts +6 -0
  848. package/dist/temporal/activities/prompts-authoring.d.ts.map +1 -0
  849. package/dist/temporal/activities/prompts-authoring.js +87 -0
  850. package/dist/temporal/activities/prompts-authoring.js.map +1 -0
  851. package/dist/temporal/activities/prompts-verifier.d.ts +17 -0
  852. package/dist/temporal/activities/prompts-verifier.d.ts.map +1 -0
  853. package/dist/temporal/activities/prompts-verifier.js +66 -0
  854. package/dist/temporal/activities/prompts-verifier.js.map +1 -0
  855. package/dist/temporal/activities/provenance.d.ts +4 -0
  856. package/dist/temporal/activities/provenance.d.ts.map +1 -0
  857. package/dist/temporal/activities/provenance.js +18 -0
  858. package/dist/temporal/activities/provenance.js.map +1 -0
  859. package/dist/temporal/activities/replay.d.ts +20 -0
  860. package/dist/temporal/activities/replay.d.ts.map +1 -0
  861. package/dist/temporal/activities/replay.js +135 -0
  862. package/dist/temporal/activities/replay.js.map +1 -0
  863. package/dist/temporal/activities/round-outcome.d.ts +63 -0
  864. package/dist/temporal/activities/round-outcome.d.ts.map +1 -0
  865. package/dist/temporal/activities/round-outcome.js +127 -0
  866. package/dist/temporal/activities/round-outcome.js.map +1 -0
  867. package/dist/temporal/activities/runtime.d.ts +38 -0
  868. package/dist/temporal/activities/runtime.d.ts.map +1 -0
  869. package/dist/temporal/activities/runtime.js +146 -0
  870. package/dist/temporal/activities/runtime.js.map +1 -0
  871. package/dist/temporal/activities/session-verify.d.ts +45 -0
  872. package/dist/temporal/activities/session-verify.d.ts.map +1 -0
  873. package/dist/temporal/activities/session-verify.js +91 -0
  874. package/dist/temporal/activities/session-verify.js.map +1 -0
  875. package/dist/temporal/activities/submissions.d.ts +9 -0
  876. package/dist/temporal/activities/submissions.d.ts.map +1 -0
  877. package/dist/temporal/activities/submissions.js +28 -0
  878. package/dist/temporal/activities/submissions.js.map +1 -0
  879. package/dist/temporal/activities/task-compiler.d.ts +21 -0
  880. package/dist/temporal/activities/task-compiler.d.ts.map +1 -0
  881. package/dist/temporal/activities/task-compiler.js +63 -0
  882. package/dist/temporal/activities/task-compiler.js.map +1 -0
  883. package/dist/temporal/activities/types.d.ts +57 -0
  884. package/dist/temporal/activities/types.d.ts.map +1 -0
  885. package/dist/temporal/activities/types.js +2 -0
  886. package/dist/temporal/activities/types.js.map +1 -0
  887. package/dist/temporal/activities/verifier-material.d.ts +18 -0
  888. package/dist/temporal/activities/verifier-material.d.ts.map +1 -0
  889. package/dist/temporal/activities/verifier-material.js +49 -0
  890. package/dist/temporal/activities/verifier-material.js.map +1 -0
  891. package/dist/temporal/activities/verifier-outcome.d.ts +19 -0
  892. package/dist/temporal/activities/verifier-outcome.d.ts.map +1 -0
  893. package/dist/temporal/activities/verifier-outcome.js +70 -0
  894. package/dist/temporal/activities/verifier-outcome.js.map +1 -0
  895. package/dist/temporal/activities/verifier-round.d.ts +8 -0
  896. package/dist/temporal/activities/verifier-round.d.ts.map +1 -0
  897. package/dist/temporal/activities/verifier-round.js +110 -0
  898. package/dist/temporal/activities/verifier-round.js.map +1 -0
  899. package/dist/temporal/activities/verify-harbor.d.ts +15 -0
  900. package/dist/temporal/activities/verify-harbor.d.ts.map +1 -0
  901. package/dist/temporal/activities/verify-harbor.js +193 -0
  902. package/dist/temporal/activities/verify-harbor.js.map +1 -0
  903. package/dist/temporal/activities/verify.d.ts +11 -0
  904. package/dist/temporal/activities/verify.d.ts.map +1 -0
  905. package/dist/temporal/activities/verify.js +151 -0
  906. package/dist/temporal/activities/verify.js.map +1 -0
  907. package/dist/temporal/activities.d.ts +3 -39
  908. package/dist/temporal/activities.d.ts.map +1 -1
  909. package/dist/temporal/activities.js +2 -839
  910. package/dist/temporal/activities.js.map +1 -1
  911. package/dist/temporal/connection.d.ts.map +1 -1
  912. package/dist/temporal/connection.js +3 -2
  913. package/dist/temporal/connection.js.map +1 -1
  914. package/dist/temporal/worker-main.js +19 -3
  915. package/dist/temporal/worker-main.js.map +1 -1
  916. package/dist/temporal/workflow/activity-proxies.d.ts +3 -0
  917. package/dist/temporal/workflow/activity-proxies.d.ts.map +1 -0
  918. package/dist/temporal/workflow/activity-proxies.js +45 -0
  919. package/dist/temporal/workflow/activity-proxies.js.map +1 -0
  920. package/dist/temporal/workflow/authoring-stage.d.ts +5 -0
  921. package/dist/temporal/workflow/authoring-stage.d.ts.map +1 -0
  922. package/dist/temporal/workflow/authoring-stage.js +64 -0
  923. package/dist/temporal/workflow/authoring-stage.js.map +1 -0
  924. package/dist/temporal/workflow/candidate-tracker.d.ts +28 -0
  925. package/dist/temporal/workflow/candidate-tracker.d.ts.map +1 -0
  926. package/dist/temporal/workflow/candidate-tracker.js +85 -0
  927. package/dist/temporal/workflow/candidate-tracker.js.map +1 -0
  928. package/dist/temporal/workflow/candidate.d.ts +6 -0
  929. package/dist/temporal/workflow/candidate.d.ts.map +1 -0
  930. package/dist/temporal/workflow/candidate.js +54 -0
  931. package/dist/temporal/workflow/candidate.js.map +1 -0
  932. package/dist/temporal/workflow/discovery.d.ts +19 -0
  933. package/dist/temporal/workflow/discovery.d.ts.map +1 -0
  934. package/dist/temporal/workflow/discovery.js +137 -0
  935. package/dist/temporal/workflow/discovery.js.map +1 -0
  936. package/dist/temporal/workflow/failures.d.ts +5 -0
  937. package/dist/temporal/workflow/failures.d.ts.map +1 -0
  938. package/dist/temporal/workflow/failures.js +28 -0
  939. package/dist/temporal/workflow/failures.js.map +1 -0
  940. package/dist/temporal/workflow/run.d.ts +5 -0
  941. package/dist/temporal/workflow/run.d.ts.map +1 -0
  942. package/dist/temporal/workflow/run.js +154 -0
  943. package/dist/temporal/workflow/run.js.map +1 -0
  944. package/dist/temporal/workflow/stage.d.ts +26 -0
  945. package/dist/temporal/workflow/stage.d.ts.map +1 -0
  946. package/dist/temporal/workflow/stage.js +16 -0
  947. package/dist/temporal/workflow/stage.js.map +1 -0
  948. package/dist/temporal/workflow/verification-stage.d.ts +11 -0
  949. package/dist/temporal/workflow/verification-stage.d.ts.map +1 -0
  950. package/dist/temporal/workflow/verification-stage.js +20 -0
  951. package/dist/temporal/workflow/verification-stage.js.map +1 -0
  952. package/dist/temporal/workflow.d.ts +13 -5
  953. package/dist/temporal/workflow.d.ts.map +1 -1
  954. package/dist/temporal/workflow.js +38 -420
  955. package/dist/temporal/workflow.js.map +1 -1
  956. package/dist/verifier-fix.d.ts +20 -0
  957. package/dist/verifier-fix.d.ts.map +1 -0
  958. package/dist/verifier-fix.js +62 -0
  959. package/dist/verifier-fix.js.map +1 -0
  960. package/dist/verify-report.d.ts +9 -0
  961. package/dist/verify-report.d.ts.map +1 -0
  962. package/dist/verify-report.js +135 -0
  963. package/dist/verify-report.js.map +1 -0
  964. package/dist/viewer/archived-keys.d.ts +9 -0
  965. package/dist/viewer/archived-keys.d.ts.map +1 -0
  966. package/dist/viewer/archived-keys.js +36 -0
  967. package/dist/viewer/archived-keys.js.map +1 -0
  968. package/dist/viewer/archived.d.ts +20 -0
  969. package/dist/viewer/archived.d.ts.map +1 -0
  970. package/dist/viewer/archived.js +238 -0
  971. package/dist/viewer/archived.js.map +1 -0
  972. package/dist/viewer/artifacts.d.ts +8 -0
  973. package/dist/viewer/artifacts.d.ts.map +1 -0
  974. package/dist/viewer/artifacts.js +96 -0
  975. package/dist/viewer/artifacts.js.map +1 -0
  976. package/dist/viewer/bundle.d.ts +9 -0
  977. package/dist/viewer/bundle.d.ts.map +1 -0
  978. package/dist/viewer/bundle.js +79 -0
  979. package/dist/viewer/bundle.js.map +1 -0
  980. package/dist/viewer/candidates.d.ts +9 -0
  981. package/dist/viewer/candidates.d.ts.map +1 -0
  982. package/dist/viewer/candidates.js +137 -0
  983. package/dist/viewer/candidates.js.map +1 -0
  984. package/dist/viewer/local-server.d.ts +11 -0
  985. package/dist/viewer/local-server.d.ts.map +1 -0
  986. package/dist/viewer/local-server.js +64 -0
  987. package/dist/viewer/local-server.js.map +1 -0
  988. package/dist/viewer/task-files.d.ts +10 -0
  989. package/dist/viewer/task-files.d.ts.map +1 -0
  990. package/dist/viewer/task-files.js +120 -0
  991. package/dist/viewer/task-files.js.map +1 -0
  992. package/dist/viewer/types.d.ts +78 -0
  993. package/dist/viewer/types.d.ts.map +1 -0
  994. package/dist/viewer/types.js +36 -0
  995. package/dist/viewer/types.js.map +1 -0
  996. package/docs/api.md +168 -0
  997. package/docs/evaluations.md +42 -15
  998. package/docs/operations.md +292 -30
  999. package/docs/solver-evaluations.md +63 -0
  1000. package/docs/task-construction.md +24 -12
  1001. package/drizzle/0000_glossy_johnny_blaze.sql +97 -0
  1002. package/drizzle/0001_evaluation_records.sql +5 -0
  1003. package/drizzle/0002_task_deletion.sql +1 -0
  1004. package/drizzle/0003_drop_repo_runs.sql +3 -0
  1005. package/drizzle/0004_preserve_batch_runs.sql +8 -0
  1006. package/drizzle/0005_api_keys.sql +15 -0
  1007. package/drizzle/meta/0000_snapshot.json +776 -0
  1008. package/drizzle/meta/0001_snapshot.json +807 -0
  1009. package/drizzle/meta/0002_snapshot.json +813 -0
  1010. package/drizzle/meta/0003_snapshot.json +726 -0
  1011. package/drizzle/meta/0004_snapshot.json +813 -0
  1012. package/drizzle/meta/0005_snapshot.json +919 -0
  1013. package/drizzle/meta/_journal.json +48 -0
  1014. package/package.json +43 -29
  1015. package/src/extensions/authoring.ts +83 -72
  1016. package/src/extensions/discovery.ts +14 -5
  1017. package/src/extensions/shared/deliverable.ts +153 -0
  1018. package/src/extensions/shared/mailbox.ts +128 -0
  1019. package/src/extensions/shared/schemas.ts +101 -0
  1020. package/src/extensions/shared/static-check.ts +103 -0
  1021. package/src/extensions/verifier.ts +88 -0
  1022. package/src/skills/selfbench/SKILL.md +71 -13
  1023. package/biome.json +0 -18
  1024. package/dist/agent-smoke-main.d.ts +0 -3
  1025. package/dist/agent-smoke-main.d.ts.map +0 -1
  1026. package/dist/agent-smoke-main.js +0 -55
  1027. package/dist/agent-smoke-main.js.map +0 -1
  1028. package/dist/agent-smoke.d.ts +0 -18
  1029. package/dist/agent-smoke.d.ts.map +0 -1
  1030. package/dist/agent-smoke.js +0 -103
  1031. package/dist/agent-smoke.js.map +0 -1
  1032. package/dist/codex-review.d.ts +0 -41
  1033. package/dist/codex-review.d.ts.map +0 -1
  1034. package/dist/codex-review.js +0 -193
  1035. package/dist/codex-review.js.map +0 -1
  1036. package/dist/docker-executor.d.ts +0 -11
  1037. package/dist/docker-executor.d.ts.map +0 -1
  1038. package/dist/docker-executor.js +0 -103
  1039. package/dist/docker-executor.js.map +0 -1
  1040. package/dist/eval-main.d.ts +0 -3
  1041. package/dist/eval-main.d.ts.map +0 -1
  1042. package/dist/eval-main.js +0 -81
  1043. package/dist/eval-main.js.map +0 -1
  1044. package/dist/evaluate.d.ts +0 -25
  1045. package/dist/evaluate.d.ts.map +0 -1
  1046. package/dist/evaluate.js +0 -214
  1047. package/dist/evaluate.js.map +0 -1
  1048. package/dist/modal-auth.d.ts +0 -2
  1049. package/dist/modal-auth.d.ts.map +0 -1
  1050. package/dist/modal-auth.js +0 -9
  1051. package/dist/modal-auth.js.map +0 -1
  1052. package/dist/modal-executor.d.ts +0 -12
  1053. package/dist/modal-executor.d.ts.map +0 -1
  1054. package/dist/modal-executor.js +0 -152
  1055. package/dist/modal-executor.js.map +0 -1
  1056. package/dist/reaudit-main.d.ts +0 -3
  1057. package/dist/reaudit-main.d.ts.map +0 -1
  1058. package/dist/reaudit-main.js +0 -158
  1059. package/dist/reaudit-main.js.map +0 -1
  1060. package/dist/repair-main.d.ts +0 -3
  1061. package/dist/repair-main.d.ts.map +0 -1
  1062. package/dist/repair-main.js +0 -171
  1063. package/dist/repair-main.js.map +0 -1
  1064. package/dist/review/assets/index-CZ3G759O.js +0 -1568
  1065. package/dist/review/assets/index-DgSLzX8l.css +0 -1
  1066. package/dist/sandbox-author.d.ts +0 -3
  1067. package/dist/sandbox-author.d.ts.map +0 -1
  1068. package/dist/sandbox-author.js +0 -17
  1069. package/dist/sandbox-author.js.map +0 -1
  1070. package/dist/sandbox-repair.bundle.js +0 -315
  1071. package/dist/sandbox-repair.d.ts +0 -3
  1072. package/dist/sandbox-repair.d.ts.map +0 -1
  1073. package/dist/sandbox-repair.js +0 -121
  1074. package/dist/sandbox-repair.js.map +0 -1
  1075. package/dist/sandbox-review.bundle.js +0 -14462
  1076. package/dist/sandbox-review.d.ts +0 -2
  1077. package/dist/sandbox-review.d.ts.map +0 -1
  1078. package/dist/sandbox-review.js +0 -18
  1079. package/dist/sandbox-review.js.map +0 -1
  1080. package/dist/sandbox-timeout.d.ts +0 -11
  1081. package/dist/sandbox-timeout.d.ts.map +0 -1
  1082. package/dist/sandbox-timeout.js +0 -41
  1083. package/dist/sandbox-timeout.js.map +0 -1
  1084. package/dist/sandbox-validation-repair.bundle.js +0 -14778
  1085. package/dist/sandbox-validation-repair.d.ts +0 -3
  1086. package/dist/sandbox-validation-repair.d.ts.map +0 -1
  1087. package/dist/sandbox-validation-repair.js +0 -136
  1088. package/dist/sandbox-validation-repair.js.map +0 -1
  1089. package/dist/sandbox.d.ts +0 -39
  1090. package/dist/sandbox.d.ts.map +0 -1
  1091. package/dist/sandbox.js +0 -15
  1092. package/dist/sandbox.js.map +0 -1
  1093. package/dist/validate-main.d.ts +0 -3
  1094. package/dist/validate-main.d.ts.map +0 -1
  1095. package/dist/validate-main.js +0 -143
  1096. package/dist/validate-main.js.map +0 -1
  1097. package/dist/validation-repair.d.ts +0 -10
  1098. package/dist/validation-repair.d.ts.map +0 -1
  1099. package/dist/validation-repair.js +0 -72
  1100. package/dist/validation-repair.js.map +0 -1
  1101. package/dist/vercel-cli.d.ts +0 -64
  1102. package/dist/vercel-cli.d.ts.map +0 -1
  1103. package/dist/vercel-cli.js +0 -303
  1104. package/dist/vercel-cli.js.map +0 -1
  1105. package/dist/vercel-command.d.ts +0 -14
  1106. package/dist/vercel-command.d.ts.map +0 -1
  1107. package/dist/vercel-command.js +0 -93
  1108. package/dist/vercel-command.js.map +0 -1
  1109. package/dist/vercel-executor.d.ts +0 -14
  1110. package/dist/vercel-executor.d.ts.map +0 -1
  1111. package/dist/vercel-executor.js +0 -356
  1112. package/dist/vercel-executor.js.map +0 -1
  1113. package/dist/vercel-fetch.d.ts +0 -6
  1114. package/dist/vercel-fetch.d.ts.map +0 -1
  1115. package/dist/vercel-fetch.js +0 -39
  1116. package/dist/vercel-fetch.js.map +0 -1
  1117. package/dist/vercel-profile.d.ts +0 -34
  1118. package/dist/vercel-profile.d.ts.map +0 -1
  1119. package/dist/vercel-profile.js +0 -244
  1120. package/dist/vercel-profile.js.map +0 -1
  1121. package/dist/vercel-runtime-image.d.ts +0 -51
  1122. package/dist/vercel-runtime-image.d.ts.map +0 -1
  1123. package/dist/vercel-runtime-image.js +0 -123
  1124. package/dist/vercel-runtime-image.js.map +0 -1
  1125. package/dist/vercel-setup-probe.d.ts +0 -49
  1126. package/dist/vercel-setup-probe.d.ts.map +0 -1
  1127. package/dist/vercel-setup-probe.js +0 -151
  1128. package/dist/vercel-setup-probe.js.map +0 -1
  1129. package/dist/vercel-setup.d.ts +0 -42
  1130. package/dist/vercel-setup.d.ts.map +0 -1
  1131. package/dist/vercel-setup.js +0 -280
  1132. package/dist/vercel-setup.js.map +0 -1
  1133. package/review/index.html +0 -14
  1134. package/review/src/App.tsx +0 -338
  1135. package/review/src/export-loader.test.ts +0 -57
  1136. package/review/src/export-loader.ts +0 -151
  1137. package/review/src/main.tsx +0 -15
  1138. package/review/src/styles.css +0 -162
  1139. package/review/src/types.ts +0 -47
  1140. package/review/tsconfig.json +0 -16
  1141. package/review/vite.config.ts +0 -20
  1142. package/scripts/verify-package.ts +0 -81
  1143. package/scripts/write-build-metadata.ts +0 -27
  1144. package/src/agent-smoke-main.ts +0 -64
  1145. package/src/agent-smoke.ts +0 -138
  1146. package/src/api-main.ts +0 -12
  1147. package/src/api.ts +0 -290
  1148. package/src/artifacts.ts +0 -357
  1149. package/src/audit.ts +0 -106
  1150. package/src/build-metadata.ts +0 -3
  1151. package/src/cli.ts +0 -420
  1152. package/src/codex-review.ts +0 -229
  1153. package/src/config.ts +0 -239
  1154. package/src/contracts.ts +0 -231
  1155. package/src/coupling.ts +0 -259
  1156. package/src/docker-executor.ts +0 -115
  1157. package/src/eval-main.ts +0 -93
  1158. package/src/evaluate.ts +0 -300
  1159. package/src/github.ts +0 -26
  1160. package/src/harbor-environment.ts +0 -17
  1161. package/src/harbor-results.ts +0 -144
  1162. package/src/harbor-task.ts +0 -528
  1163. package/src/hash.ts +0 -5
  1164. package/src/modal-auth.ts +0 -11
  1165. package/src/modal-executor.ts +0 -176
  1166. package/src/parallel.ts +0 -24
  1167. package/src/process.ts +0 -167
  1168. package/src/provenance.ts +0 -457
  1169. package/src/providers.ts +0 -22
  1170. package/src/reaudit-main.ts +0 -198
  1171. package/src/repair-main.ts +0 -209
  1172. package/src/repair.ts +0 -55
  1173. package/src/run-wait.ts +0 -40
  1174. package/src/sandbox-author.ts +0 -19
  1175. package/src/sandbox-repair.ts +0 -156
  1176. package/src/sandbox-review.ts +0 -19
  1177. package/src/sandbox-timeout.ts +0 -56
  1178. package/src/sandbox-validation-repair.ts +0 -177
  1179. package/src/sandbox.ts +0 -61
  1180. package/src/subscription-auth.ts +0 -80
  1181. package/src/temporal/activities.ts +0 -1247
  1182. package/src/temporal/connection.ts +0 -23
  1183. package/src/temporal/worker-main.ts +0 -28
  1184. package/src/temporal/workflow.ts +0 -519
  1185. package/src/terminal-prompts.ts +0 -197
  1186. package/src/terminal-reporter.ts +0 -126
  1187. package/src/validate-main.ts +0 -177
  1188. package/src/validation-repair.ts +0 -94
  1189. package/src/vercel-cli.ts +0 -403
  1190. package/src/vercel-command.ts +0 -127
  1191. package/src/vercel-executor.ts +0 -448
  1192. package/src/vercel-fetch.ts +0 -45
  1193. package/src/vercel-profile.ts +0 -319
  1194. package/src/vercel-runtime-image.ts +0 -204
  1195. package/src/vercel-setup-probe.ts +0 -229
  1196. package/src/vercel-setup.ts +0 -419
  1197. package/tsconfig.build.json +0 -13
  1198. package/tsconfig.json +0 -21
@@ -0,0 +1,62 @@
1
+ import { COMPOSE_DIAGNOSTICS_MARKER, excerptLog } from "../../log-excerpt.js";
2
+ import { runCommand } from "../../process.js";
3
+ /** Stores the complete raw log for a gate and returns the actionable excerpt alongside its ref. */
4
+ export async function storeGateLog(store, key, raw) {
5
+ const log = await store.put(key, Buffer.from(raw.length > 0 ? raw : "(empty log)\n"), "text/plain");
6
+ return { logTail: excerptLog(raw), log };
7
+ }
8
+ export function isUnhealthyServiceFailure(text) {
9
+ return /unhealthy|dependency failed|healthcheck/i.test(text);
10
+ }
11
+ /**
12
+ * `docker compose ps` plus the last 30 log lines of each failed service for the trial's compose
13
+ * project (Harbor names it after the trial: `<trial_name>__env`). Harbor usually tears the project
14
+ * down before we get here, in which case the block says so instead of being silently empty.
15
+ */
16
+ export async function composeDiagnostics(trial, harborEnvironment, run = runCommand) {
17
+ const trialName = trialNameOf(trial);
18
+ if (harborEnvironment !== "docker") {
19
+ return `${COMPOSE_DIAGNOSTICS_MARKER}: not available on the ${harborEnvironment} Harbor environment; the compose project cannot be inspected from the worker.`;
20
+ }
21
+ if (!trialName) {
22
+ return `${COMPOSE_DIAGNOSTICS_MARKER}: Harbor's trial name is missing from the result, so the compose project could not be located.`;
23
+ }
24
+ const project = composeProjectName(`${trialName}__env`);
25
+ const ps = await run("docker", ["compose", "-p", project, "ps", "-a", "--format", "table"], {
26
+ allowFailure: true,
27
+ timeoutMs: 30_000,
28
+ }).catch((error) => ({
29
+ exitCode: 1,
30
+ stdout: "",
31
+ stderr: error instanceof Error ? error.message : String(error),
32
+ }));
33
+ const services = ps.stdout.trim().split("\n").slice(1).filter(Boolean);
34
+ if (ps.exitCode !== 0 || services.length === 0) {
35
+ return `${COMPOSE_DIAGNOSTICS_MARKER} (project ${project}): the compose project is no longer available (Harbor deletes it after the run), so service status and logs could not be fetched.${ps.stderr.trim() ? ` docker said: ${ps.stderr.trim().slice(0, 300)}` : ""}`;
36
+ }
37
+ const lines = [`${COMPOSE_DIAGNOSTICS_MARKER} (project ${project})`, ps.stdout.trimEnd()];
38
+ for (const row of services) {
39
+ const service = row.split(/\s+/)[0];
40
+ if (!service || /\bhealthy\b|\brunning\b(?!.*unhealthy)/i.test(row) === true) {
41
+ continue;
42
+ }
43
+ const logs = await run("docker", ["compose", "-p", project, "logs", "--tail", "30", service], {
44
+ allowFailure: true,
45
+ timeoutMs: 30_000,
46
+ }).catch(() => ({ exitCode: 1, stdout: "", stderr: "" }));
47
+ lines.push(`--- ${service} (last 30 lines) ---`, logs.stdout.trimEnd() || logs.stderr.trimEnd() || "(no output)");
48
+ }
49
+ return lines.join("\n");
50
+ }
51
+ function trialNameOf(trial) {
52
+ const name = typeof trial === "object" && trial !== null
53
+ ? trial.trial_name
54
+ : undefined;
55
+ return typeof name === "string" && name.length > 0 ? name : undefined;
56
+ }
57
+ /** Mirrors Harbor's compose project sanitization: lowercase, alphanumeric start, safe characters. */
58
+ export function composeProjectName(name) {
59
+ const lower = name.toLowerCase().replace(/[^a-z0-9_-]/g, "-");
60
+ return /^[a-z0-9]/.test(lower) ? lower : `0${lower}`;
61
+ }
62
+ //# sourceMappingURL=gate-logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gate-logs.js","sourceRoot":"","sources":["../../../src/temporal/activities/gate-logs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAO9C,mGAAmG;AACnG,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,KAAoB,EACpB,GAAW,EACX,GAAW;IAEX,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,CACzB,GAAG,EACH,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,CAAC,EACnD,YAAY,CACb,CAAC;IACF,OAAO,EAAE,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,OAAO,0CAA0C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,KAAc,EACd,iBAAuD,EACvD,MAAyB,UAAU;IAEnC,MAAM,SAAS,G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C,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACxE,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IAC9D,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC;AACvD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type SelfBenchWorkerConfig } from "../../config.js";
2
+ import type { RunRequest } from "../../contracts.js";
3
+ import type { EncryptedRecordStore } from "../../evaluation/encrypted-records.js";
4
+ import { type SandboxExecutor } from "../../sandbox/index.js";
5
+ export declare function withGenerationRuntime<T>(config: SelfBenchWorkerConfig, records: EncryptedRecordStore | undefined, run: RunRequest, stage: "author" | "verifier", legacySandbox: SandboxExecutor, action: (sandbox: SandboxExecutor, environment: SelfBenchWorkerConfig["harborEnvironment"], configuredRun: RunRequest) => Promise<T>): Promise<T>;
6
+ //# sourceMappingURL=generation-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation-runtime.d.ts","sourceRoot":"","sources":["../../../src/temporal/activities/generation-runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIrF,wBAAsB,qBAAqB,CAAC,CAAC,EAC3C,MAAM,EAAE,qBAAqB,EAC7B,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,QAAQ,GAAG,UAAU,EAC5B,aAAa,EAAE,eAAe,EAC9B,MAAM,EAAE,CACN,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,qBAAqB,CAAC,mBAAmB,CAAC,EACvD,aAAa,EAAE,UAAU,KACtB,OAAO,CAAC,CAAC,CAAC,cA0DhB"}
@@ -0,0 +1,56 @@
1
+ import { ApplicationFailure } from "@temporalio/common";
2
+ import { loadWorkerConfig } from "../../config.js";
3
+ import { withExecutionEnvironment } from "../../execution-environment.js";
4
+ import { createSandboxExecutor } from "../../sandbox/index.js";
5
+ import { generationConfigEnvironment } from "../../site/generation-config.js";
6
+ import { generationEnvironment } from "../../site/generation-credentials.js";
7
+ export async function withGenerationRuntime(config, records, run, stage, legacySandbox, action) {
8
+ if (!run.generation)
9
+ return action(legacySandbox, config.harborEnvironment, run);
10
+ let env;
11
+ try {
12
+ if (!records)
13
+ throw new Error("Generation credentials are not configured on this worker.");
14
+ env = await generationEnvironment(records, run.runId, run.generation, process.env);
15
+ }
16
+ catch (error) {
17
+ throw ApplicationFailure.nonRetryable(error instanceof Error ? error.message : "Generation credentials unavailable", "GenerationConfiguration");
18
+ }
19
+ const settings = run.generation.settings;
20
+ let selected;
21
+ try {
22
+ if (run.version.executionBackend !== settings.sandbox ||
23
+ (settings.sandboxImage && settings.sandboxImage !== run.version.sandboxImage))
24
+ throw new Error("Generation runtime does not match its saved configuration.");
25
+ selected = loadWorkerConfig(generationConfigEnvironment(settings, env, run.version.sandboxImage));
26
+ if (selected.harborEnvironment !== run.version.harborEnvironment)
27
+ throw new Error("Harbor verification does not match its saved configuration.");
28
+ }
29
+ catch (error) {
30
+ throw ApplicationFailure.nonRetryable(error instanceof Error ? error.message : "Generation runtime unavailable", "GenerationConfiguration");
31
+ }
32
+ const execution = "timeoutCapMs" in selected.execution
33
+ ? {
34
+ ...selected.execution,
35
+ timeoutCapMs: Math.min(selected.execution.timeoutCapMs, run.version.sandboxTimeoutCapMs ?? selected.execution.timeoutCapMs),
36
+ }
37
+ : selected.execution;
38
+ const configuredRun = {
39
+ ...run,
40
+ authoring: {
41
+ ...run.authoring,
42
+ model: stage === "verifier" ? settings.verifierModel : settings.authorModel,
43
+ reasoningEffort: settings.reasoning,
44
+ },
45
+ };
46
+ return withExecutionEnvironment(env, async () => {
47
+ const sandbox = createSandboxExecutor(execution, env);
48
+ try {
49
+ return await action(sandbox, selected.harborEnvironment, configuredRun);
50
+ }
51
+ finally {
52
+ sandbox.close();
53
+ }
54
+ });
55
+ }
56
+ //# sourceMappingURL=generation-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generation-runtime.js","sourceRoot":"","sources":["../../../src/temporal/activities/generation-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAA8B,MAAM,iBAAiB,CAAC;AAG/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAwB,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,MAA6B,EAC7B,OAAyC,EACzC,GAAe,EACf,KAA4B,EAC5B,aAA8B,EAC9B,MAIe;IAEf,IAAI,CAAC,GAAG,CAAC,UAAU;QAAE,OAAO,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;IACjF,IAAI,GAAsB,CAAC;IAC3B,IAAI,CAAC;QACH,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;QAC3F,GAAG,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;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H,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;IACzB,MAAM,aAAa,GAAG;QACpB,GAAG,GAAG;QACN,SAAS,EAAE;YACT,GAAG,GAAG,CAAC,SAAS;YAChB,KAAK,EAAE,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW;YAC3E,eAAe,EAAE,QAAQ,CAAC,SAAS;SACpC;KACF,CAAC;IACF,OAAO,wBAAwB,CAAC,GAAG,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,OAAO,GAAG,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QACtD,IAAI,CAAC;YACH,OAAO,MAAM,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC1E,CAAC;gBAAS,CAAC;YACT,OAAO,CAAC,KAAK,EAAE,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { SelfBenchConfig } from "../../config.js";
2
+ import { type HarborJobResult, readHarborJobResult } from "../../harbor-results.js";
3
+ export declare function isHarborInfrastructureApplicationFailure(error: unknown): boolean;
4
+ export declare function runHarborGate(taskDirectory: string, jobsDirectory: string, agent: "nop" | "oracle", taskId: string, environment: SelfBenchConfig["harborEnvironment"], signal: AbortSignal, quiet?: boolean): Promise<HarborJobResult>;
5
+ export declare function harborGateFailureReason(nopPassed: boolean, nopChecks: Record<string, unknown>, oraclePassed: boolean, oracleChecks: Record<string, unknown>, nopOutput?: string, oracleOutput?: string): string;
6
+ export declare function verifierOutput(result: Awaited<ReturnType<typeof readHarborJobResult>>): string | undefined;
7
+ export declare function boundedTail(value: string, maxBytes?: number): string;
8
+ export declare function rewards(trial: unknown): Record<string, unknown>;
9
+ export declare function exception(trial: unknown): unknown;
10
+ export declare function numberValue(value: unknown): number;
11
+ //# sourceMappingURL=harbor.d.ts.map
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 +1,112 @@
1
+ import { ApplicationFailure } from "@temporalio/common";
2
+ import { executionEnvironment } from "../../execution-environment.js";
3
+ import { harborChildEnvironment } from "../../harbor-environment.js";
4
+ import { harborInfrastructureError, readHarborJobResult, } from "../../harbor-results.js";
5
+ import { runCommand } from "../../process.js";
6
+ const HARBOR_INFRASTRUCTURE_FAILURE_TYPE = "HarborInfrastructureFailure";
7
+ export function isHarborInfrastructureApplicationFailure(error) {
8
+ let cause = error;
9
+ while (cause instanceof Error) {
10
+ if (cause instanceof ApplicationFailure && cause.type === HARBOR_INFRASTRUCTURE_FAILURE_TYPE) {
11
+ return true;
12
+ }
13
+ cause = cause.cause;
14
+ }
15
+ return false;
16
+ }
17
+ export async function runHarborGate(taskDirectory, jobsDirectory, agent, taskId, environment, signal, quiet = true) {
18
+ const jobName = `${taskId}-${agent}-${crypto.randomUUID().slice(0, 8)}`;
19
+ const result = await runCommand("harbor", [
20
+ "run",
21
+ "--path",
22
+ taskDirectory,
23
+ "--agent",
24
+ agent,
25
+ "--env",
26
+ environment,
27
+ "--job-name",
28
+ jobName,
29
+ "--jobs-dir",
30
+ jobsDirectory,
31
+ "--delete",
32
+ "--yes",
33
+ ...(quiet ? ["--quiet"] : []),
34
+ ], {
35
+ allowFailure: true,
36
+ env: harborChildEnvironment(executionEnvironment(), environment),
37
+ timeoutMs: 3 * 60 * 60 * 1000,
38
+ signal,
39
+ });
40
+ if (result.exitCode !== 0) {
41
+ throw ApplicationFailure.create({
42
+ message: harborCommandFailureMessage(agent, taskId, result.exitCode, `${result.stdout}\n${result.stderr}`),
43
+ type: HARBOR_INFRASTRUCTURE_FAILURE_TYPE,
44
+ });
45
+ }
46
+ const parsed = await readHarborJobResult(jobsDirectory, jobName);
47
+ const infrastructureError = harborInfrastructureError(parsed.trial);
48
+ if (infrastructureError) {
49
+ throw ApplicationFailure.create({
50
+ message: `Harbor ${agent} infrastructure failure for ${taskId}: ${infrastructureError}`,
51
+ type: HARBOR_INFRASTRUCTURE_FAILURE_TYPE,
52
+ });
53
+ }
54
+ return parsed;
55
+ }
56
+ function harborCommandFailureMessage(agent, taskId, exitCode, output) {
57
+ const detail = output.trim();
58
+ return `Harbor ${agent} exited ${exitCode} for ${taskId}${detail ? `:\n${boundedTail(detail)}` : ""}`;
59
+ }
60
+ export function harborGateFailureReason(nopPassed, nopChecks, oraclePassed, oracleChecks, nopOutput, oracleOutput) {
61
+ const formatChecks = (checks) => [
62
+ "patch_applied",
63
+ "fail_to_pass",
64
+ "pass_to_pass",
65
+ "deterministic",
66
+ "setup_completed",
67
+ "fail_to_pass_exit_code",
68
+ "fail_to_pass_repeat_exit_code",
69
+ "pass_to_pass_exit_code",
70
+ ]
71
+ .map((key) => `${key}=${String(checks[key] ?? "missing")}`)
72
+ .join(", ");
73
+ const diagnostics = [
74
+ ...(!nopPassed && nopOutput ? [`nop verifier tail:\n${boundedTail(nopOutput)}`] : []),
75
+ ...(!oraclePassed && oracleOutput
76
+ ? [`oracle verifier tail:\n${boundedTail(oracleOutput)}`]
77
+ : []),
78
+ ];
79
+ return `Harbor gates failed: nop=${nopPassed} (${formatChecks(nopChecks)}); oracle=${oraclePassed} (${formatChecks(oracleChecks)})${diagnostics.length > 0 ? `\n${diagnostics.join("\n")}` : ""}`;
80
+ }
81
+ export function verifierOutput(result) {
82
+ const combined = result.verifier?.combined;
83
+ const stderr = result.verifier?.stderr;
84
+ if (combined && stderr) {
85
+ return `${combined.trimEnd()}\n\n--- verifier stderr ---\n${stderr}`;
86
+ }
87
+ return stderr ?? combined;
88
+ }
89
+ export function boundedTail(value, maxBytes = 8_000) {
90
+ const buffer = Buffer.from(value);
91
+ return buffer.length <= maxBytes
92
+ ? value.trimEnd()
93
+ : `[truncated ${buffer.length - maxBytes} bytes]\n${buffer.subarray(-maxBytes).toString("utf8").trimEnd()}`;
94
+ }
95
+ export function rewards(trial) {
96
+ if (!isRecord(trial) ||
97
+ !isRecord(trial.verifier_result) ||
98
+ !isRecord(trial.verifier_result.rewards)) {
99
+ return {};
100
+ }
101
+ return trial.verifier_result.rewards;
102
+ }
103
+ export function exception(trial) {
104
+ return isRecord(trial) ? trial.exception_info : undefined;
105
+ }
106
+ export function numberValue(value) {
107
+ return typeof value === "number" ? value : 0;
108
+ }
109
+ function isRecord(value) {
110
+ return typeof value === "object" && value !== null && !Array.isArray(value);
111
+ }
112
+ //# sourceMappingURL=harbor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harbor.js","sourceRoot":"","sources":["../../../src/temporal/activities/harbor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAEL,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,kCAAkC,GAAG,6BAA6B,CAAC;AAEzE,MAAM,UAAU,wCAAwC,CAAC,KAAc;IACrE,IAAI,KAAK,GAAY,KAAK,CAAC;IAC3B,OAAO,KAAK,YAAY,KAAK,EAAE,CAAC;QAC9B,IAAI,KAAK,YAAY,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,kCAAkC,EAAE,CAAC;YAC7F,OAAO,IAAI,CAAC;QACd,CAAC;QACD,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IACtB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,aAAqB,EACrB,aAAqB,EACrB,KAAuB,EACvB,MAAc,EACd,WAAiD,EACjD,MAAmB,EACnB,KAAK,GAAG,IAAI;IAEZ,MAAM,OAAO,GAAG,GAAG,MAAM,IAAI,KAAK,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CA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C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC;AACD,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type CommandResult } from "../../process.js";
2
+ /** Harbor's default Modal app; image builds for its sandboxes log under it. */
3
+ export declare const HARBOR_MODAL_APP = "__harbor__";
4
+ export type CommandRunner = (command: string, args: readonly string[]) => Promise<Pick<CommandResult, "exitCode" | "stdout" | "stderr">>;
5
+ export declare function extractModalImageId(message: string): string | undefined;
6
+ /**
7
+ * Best-effort Modal build log for an ImageBuildError. `modal image` cannot fetch build logs, so
8
+ * the recent logs of Harbor's Modal app are fetched and filtered around the image id. When that
9
+ * fails the report says so instead of carrying only the bare id.
10
+ */
11
+ export declare function modalBuildLogTail(message: string, run?: CommandRunner): Promise<string | undefined>;
12
+ //# sourceMappingURL=modal-build-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-build-log.d.ts","sourceRoot":"","sources":["../../../src/temporal/activities/modal-build-log.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,kBAAkB,CAAC;AAElE,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAI7C,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,MAAM,EAAE,KACpB,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC;AAEpE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEvE;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,aAA6B,GACjC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAyB7B"}
@@ -0,0 +1,57 @@
1
+ import { executionEnvironment } from "../../execution-environment.js";
2
+ import { harborChildEnvironment } from "../../harbor-environment.js";
3
+ import { runCommand } from "../../process.js";
4
+ /** Harbor's default Modal app; image builds for its sandboxes log under it. */
5
+ export const HARBOR_MODAL_APP = "__harbor__";
6
+ const LOG_TAIL_BYTES = 4_000;
7
+ const LOG_ENTRIES = 400;
8
+ export function extractModalImageId(message) {
9
+ return /\bim-[A-Za-z0-9]+\b/.exec(message)?.[0];
10
+ }
11
+ /**
12
+ * Best-effort Modal build log for an ImageBuildError. `modal image` cannot fetch build logs, so
13
+ * the recent logs of Harbor's Modal app are fetched and filtered around the image id. When that
14
+ * fails the report says so instead of carrying only the bare id.
15
+ */
16
+ export async function modalBuildLogTail(message, run = defaultRunner) {
17
+ const imageId = extractModalImageId(message);
18
+ if (!imageId) {
19
+ return undefined;
20
+ }
21
+ let result;
22
+ try {
23
+ result = await run("modal", ["app", "logs", HARBOR_MODAL_APP, "--tail", String(LOG_ENTRIES)]);
24
+ }
25
+ catch (error) {
26
+ return unavailable(imageId, error instanceof Error ? error.message : String(error));
27
+ }
28
+ if (result.exitCode !== 0) {
29
+ return unavailable(imageId, result.stderr.trim() || `modal exited ${result.exitCode}`);
30
+ }
31
+ const lines = result.stdout.split("\n");
32
+ const around = lines.filter((line) => line.includes(imageId));
33
+ const selected = (around.length > 0 ? lines.slice(Math.max(0, lines.indexOf(around[0] ?? "") - 5)) : lines)
34
+ .join("\n")
35
+ .trim();
36
+ if (!selected) {
37
+ return unavailable(imageId, `no recent log entries in Modal app ${HARBOR_MODAL_APP}`);
38
+ }
39
+ return `Modal build log for ${imageId} (tail of \`modal app logs ${HARBOR_MODAL_APP}\`):\n${tail(selected)}`;
40
+ }
41
+ function unavailable(imageId, reason) {
42
+ return `Modal build log for ${imageId} could not be fetched (${tail(reason, 300)}); open the image in the Modal dashboard for the full build output.`;
43
+ }
44
+ function tail(value, maxBytes = LOG_TAIL_BYTES) {
45
+ const buffer = Buffer.from(value);
46
+ return buffer.length <= maxBytes
47
+ ? value
48
+ : `[truncated ${buffer.length - maxBytes} bytes]\n${buffer.subarray(-maxBytes).toString("utf8")}`;
49
+ }
50
+ async function defaultRunner(command, args) {
51
+ return await runCommand(command, args, {
52
+ allowFailure: true,
53
+ env: harborChildEnvironment(executionEnvironment()),
54
+ timeoutMs: 60_000,
55
+ });
56
+ }
57
+ //# sourceMappingURL=modal-build-log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-build-log.js","sourceRoot":"","sources":["../../../src/temporal/activities/modal-build-log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAsB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAElE,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC7C,MAAM,cAAc,GAAG,KAAK,CAAC;AAC7B,MAAM,WAAW,GAAG,GAAG,CAAC;AAOxB,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,OAAO,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,OAAe,EACf,MAAqB,aAAa;IAElC,MAAM,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,MAA0C,CAAC;IAC/C,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,M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AA0B,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,qEAAqE,CAAC;AACxJ,CAAC;AAED,SAAS,IAAI,CAAC,KAAa,EAAE,QAAQ,GAAG,cAAc;IACpD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,MAAM,CAAC,MAAM,IAAI,QAAQ;QAC9B,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,cAAc,MAAM,CAAC,MAAM,GAAG,QAAQ,YAAY,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;AACtG,CAAC;AAED,KAAK,UAAU,aAAa,CAC1B,OAAe,EACf,IAAuB;IAEvB,OAAO,MAAM,UAAU,CAAC,OAAO,EAAE,IAAI,EAAE;QACrC,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,sBAAsB,CAAC,oBAAoB,EAAE,CAAC;QACnD,SAAS,EAAE,MAAM;KAClB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type Candidate, type RunRequest } from "../../contracts.js";
2
+ /** Round 1 prompt: the complete Harbor task (definition, environment contract, patches). */
3
+ export declare function authoringPrompt(run: RunRequest, candidate: Candidate, feedback?: string): string;
4
+ /** Prompt appended as the next user turn when an authoring session is resumed. */
5
+ export declare function authoringResumePrompt(round: number, renderedReport: string, feedback?: string): string;
6
+ //# sourceMappingURL=prompts-authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-authoring.d.ts","sourceRoot":"","sources":["../../../src/temporal/activities/prompts-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAEd,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAE5B,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CA6EhG;AAED,kFAAkF;AAClF,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAYR"}
@@ -0,0 +1,87 @@
1
+ import { AUTHOR_VERIFY_BUDGET, MAX_AUTHORING_ROUNDS, } from "../../contracts.js";
2
+ /** Round 1 prompt: the complete Harbor task (definition, environment contract, patches). */
3
+ export function authoringPrompt(run, candidate, feedback) {
4
+ return `Author exactly one SelfBench task for this assigned candidate. The initial ${candidate.difficulty} difficulty is only a heuristic; choose a lower tier when the actual implementation is smaller:
5
+
6
+ ${JSON.stringify({
7
+ sourcePr: candidate.sourcePr,
8
+ sourceUrl: candidate.sourceUrl,
9
+ baseCommit: candidate.baseCommit,
10
+ completedCommit: candidate.completedCommit,
11
+ request: candidate.request,
12
+ }, null, 2)}
13
+
14
+ Use only this candidate. Do not discover alternatives and do not run Harbor. Read /work/provenance.json only to verify the supplied authentic request. Inspect the base and completed commits. Split the completed change into a non-test gold patch and a held-out test patch. Use the highest honest tier supported by the implementation and tests. Do not pad the change to reach a tier threshold. The initial estimate is ${candidate.difficulty}; downgrading it is expected when appropriate.${feedback
15
+ ? `
16
+
17
+ # Read-only verifier suggestions
18
+
19
+ ${feedback}
20
+
21
+ Address these suggestions in the deliverable, but do not add behavior beyond the authentic request.`
22
+ : ""}}
23
+
24
+ # Test reuse and evidence
25
+
26
+ Keep ownership of tests and the complete setup in this session; do not create a separate environment stage. First inspect tests added/changed by the PR and existing regression coverage. Reuse suitable public-behavior assertions; author only missing coverage. Record definition.testSelection with mode (reused, augmented, authored, or base-only), reused/added/excluded arrays identifying tests and reasons, and coverage explaining how tests cover the request. Existing tests still require fairness review. Do not invent test edits merely to produce a patch. For base-only mode, test.patch must be an empty file, reused must be nonempty and added empty; base tests remain visible to the solver.
27
+
28
+ When the runner supports JUnit XML, use definition.testResults = {format: "junit", failToPass: ["classname::name"], passToPass: [...]}. These are exact XML testcase identities, separate from command selectors. Configure testCommand to write a fresh report to "$SELFBENCH_JUNIT_REPORT" on every invocation, including failures, and install python3 in rootSetupCommand. JUnit mode requires every declared target to assertion-fail on the base and pass with the reference; skipped, missing, duplicate and errored results fail closed. If a missing public API makes collection fail, prefer a public-boundary assertion or explicitly retain command-level mode and explain the limitation in coverage. Never rewrite a runner failure into a fake passing report.
29
+
30
+ # Held-out tests
31
+
32
+ Held-out tests must verify public behavior through an existing API, command, persistence boundary, or extension seam. When the request is about an endpoint/provider contract, exercise that boundary instead of manually composing internal translators, context/option builders, or model factories. Do not import gold-specific private helpers/modules or assert exact internal SQL, query counts, schema/index names, object identity, telemetry layout, error wording, endpoint/response shapes, or UI copy/order unless the authentic request explicitly makes that artifact public. Assert requested semantic values rather than larger retained/raw payloads that happen to contain them, and preserve valid adjacent input content unless the request says to discard it. Cover every material behavior in the prompt, including central authorization, error, and UI states. A different correct implementation with different helpers, file boundaries, API presentation, and UI composition must be able to pass; reject the candidate when no stable public seam exists.
33
+
34
+ # Environment contract
35
+
36
+ Your submission carries the complete environment contract; there is no separate environment agent. Work only at the currently checked-out pinned base commit. Inspect the test paths and test command, then identify the closest repository-native CI job that runs them. Inspect relevant .github/workflows files, Dockerfiles, devcontainers, lockfiles, version files, package scripts, Makefiles, and compose files. Prefer an image already used by CI or the repository, followed by a devcontainer, then an explicit translation of CI setup. Do not infer from the latest remote branch.
37
+
38
+ The environment contract must be complete:
39
+ - baseImage must be a Linux image pinned with @sha256; use skopeo inspect docker://IMAGE to resolve registry digests rather than inventing one;
40
+ - rootSetupCommand runs as root under /bin/sh and must install the exact repository runtimes, package managers, native dependencies, and SelfBench substrate required by the chosen base image: bash, git, procps/pkill, runuser, tar, and useradd;
41
+ - setupCommand runs from the task workdir under bash and must perform the frozen dependency install plus required builds, code generation, fixtures, browser installation, or other CI setup;
42
+ - smokeCommand runs at runtime from the task workdir as the verifier user (HOME=/home/verifier) and must cheaply prove the runtime and service contract without depending on the hidden gold patch or new held-out tests. It must print what it checks; a silent failure returns nothing you can act on;
43
+ - environmentVariables must contain only non-secret literal values needed by tests. A secret-named variable (TOKEN, SECRET, API_KEY, PASSWORD, ...) is accepted only with a fixed placeholder literal such as "test" or "selfbench-local-secret"; values shaped like real key material or interpolating host variables are rejected;
44
+ - services must represent only services needed by the focused tests, use registry digests resolved with skopeo, provide health checks, and contain no external secrets; local throwaway service passwords are allowed only inside the service definition;
45
+ - evidence must cite repository-relative files that exist at this exact commit and explain what each established.
46
+
47
+ Never copy CI secrets, deployment steps, caches, artifact uploads, hosted runner credentials, or mutable image tags. Do not use Docker-in-Docker. Do not add fallback dependencies merely because a language ecosystem might need them: every runtime and system package must be justified by the selected CI/test path. If repository evidence is incomplete, use source "generated" but still cite the nearest manifests and scripts.
48
+
49
+ Use bash/read/grep/find to inspect and, when feasible, execute exploratory setup or focused smoke commands in this sandbox. These exploratory checks are evidence for reasoning only; the worker's compile, audit, build, smoke, nop, and oracle gates are authoritative.
50
+
51
+ # Deliverable
52
+
53
+ Your deliverable is the directory /work/task/ with exactly four files, written with read/write/bash and git diff:
54
+ - definition.json: the task definition (schemaVersion 2, difficulty matching the honest tier) including the environment contract; omit prompt or keep it identical to instruction.md;
55
+ - instruction.md: the standalone instruction the evaluated agent reads (it is authoritative for the prompt);
56
+ - test.patch: the held-out test patch (a Git patch starting with diff --git, LF line endings, final newline; produce it with git diff);
57
+ - gold.patch: the non-test reference implementation patch, same format.
58
+ Except for an explicitly empty base-only test.patch, both patches must apply cleanly to the base commit with git apply, and gold.patch must also apply on top of test.patch (the oracle order); verify proves this against a clean worktree before anything is built.
59
+ The verify and submit_task tools take no arguments; they read /work/task/ and report missing or malformed files as static-check errors naming the file. The trusted compiler renders task.toml, both Dockerfiles, the scripts, and the repository snapshot; never write those yourself.
60
+
61
+ # Submission and rounds
62
+
63
+ Call submit_task exactly once per round, normally after verify is green. If no verify calls remain, still submit your best deliverable: the worker verifies it itself, and a red result starts the next round with the report instead of ending the task. Never end a round without submitting when /work/task/ holds a deliverable you believe is correct. definition.json must use schemaVersion 2 and its honest difficulty tier. testCommand must contain the literal {tests} exactly once as an unquoted shell argument list, and every selected test path must be supplied only through that placeholder—never quote the whole placeholder, assign it to one scalar, or hard-code a fail-to-pass or pass-to-pass path elsewhere in the command. Use one repository-native test mode and bundler per command rather than chaining equivalent suites or bypassing repository wrappers with a generic runner. The prompt must not mention the PR, commits, patches, test names, or implementation. Inspect repository test scripts and CI only to select the correct test command. Do not move dependency installation, native builds, fixture generation, or browser installation into testCommand; the environment contract owns those.
64
+
65
+ When the change spans a backend contract and a frontend, the held-out tests must exercise the backend contract through its public boundary (API responses, computed fields, validation, query behaviour); frontend tests that mock that API prove nothing about the change and the verification agent rejects them. Pick frontend-only tests only for changes that are genuinely frontend-only.
66
+
67
+ Before submission, verify from repository scripts and the pinned diff that the selected test identifiers belong to one repository-native test command and form the required nop/oracle split: on the base snapshot plus held-out tests, failToPass must fail while passToPass succeeds; with the gold patch applied, both must pass deterministically. Do not invent a test command when no stable test seam exists. Default resources are 4 CPU, 8192 MB memory, 20480 MB storage; default timeouts are 900 setup, 2400 agent, 900 tests.
68
+
69
+ # Verify before you submit
70
+
71
+ Write the deliverable to /work/task/, then call verify (no arguments) before you submit. It runs the static check, then the worker renders task.toml, both Dockerfiles, and the scripts from your contract, audits the patches, builds the image, and runs smoke, nop, and oracle exactly as the harness does, and returns the report (this can take up to an hour; wait for it). Fix the red gates and call verify again; you have ${AUTHOR_VERIFY_BUDGET} verify calls in this session and each result states how many remain. The gate-to-field mapping in the skill tells you which field a red gate points at. Call submit_task (no arguments) once verify is green, with the deliverable files unchanged since that verify so the worker can reuse the report. When the budget is exhausted before a green report, submit anyway rather than explaining; the worker's own verification decides, and a failing submission continues into the next round with the report. The only reason not to submit is a failure you cannot fix within the rules (for example no stable test seam exists); then explain why in your final message. If verify itself errors on the worker, the call is not charged; retry it. If your sandbox dies mid-session you may be resumed in a fresh sandbox with the last report (at most ${MAX_AUTHORING_ROUNDS} rounds in total). Do not return prose after a tool call.
72
+
73
+ Pinned SelfBench version: ${run.version.selfbenchCommit}.`;
74
+ }
75
+ /** Prompt appended as the next user turn when an authoring session is resumed. */
76
+ export function authoringResumePrompt(round, renderedReport, feedback) {
77
+ return `Round ${round} of ${MAX_AUTHORING_ROUNDS}. ${feedback ? "The read-only reviewer requested revisions. Address its suggestions below; the mechanical report describes the latest tested draft, not necessarily a failed check." : "Your previous submission did not pass mechanical verification. Address the failures in the report."} This is a fresh sandbox: the repository was re-cloned at the pinned base commit, your earlier working-tree edits are gone, and only this conversation carries over. Read the report, rewrite the deliverable in /work/task/ (definition.json with the environment contract, instruction.md, test.patch, gold.patch), call verify until it is green (the result states how many verify calls remain), then call submit_task exactly once. Every rule from the original brief still applies; do not weaken tests or move setup into the test command merely to turn a gate green. If the failure cannot be fixed within those rules, do not submit and explain why in your final message.
78
+
79
+ ${renderedReport.trim()}${feedback
80
+ ? `
81
+
82
+ # Read-only verifier suggestions
83
+
84
+ ${feedback}`
85
+ : ""}`;
86
+ }
87
+ //# sourceMappingURL=prompts-authoring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-authoring.js","sourceRoot":"","sources":["../../../src/temporal/activities/prompts-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAEpB,oBAAoB,GAErB,MAAM,oBAAoB,CAAC;AAE5B,4FAA4F;AAC5F,MAAM,UAAU,eAAe,CAAC,GAAe,EAAE,SAAoB,EAAE,QAAiB;IACtF,OAAO,8EAA8E,SAAS,CAAC,UAAU;;EAEzG,IAAI,CAAC,SAAS,CACd;QACE,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,SAAS,EAAE,SAAS,CAAC,SAAS;QAC9B,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,eAAe,EAAE,SAAS,CAAC,eAAe;QAC1C,OAAO,EAAE,SAAS,CAAC,OAAO;KAC3B,EACD,IAAI,EACJ,CAAC,CACF;;kaAEia,SAAS,CAAC,UAAU,iDAClb,QAAQ;QACN,CAAC,CAAC;;;;EAIN,QAAQ;;oGAE0F;QAC9F,CAAC,CAAC,EACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;saAiDoa,oBAAoB,k0BAAk0B,oBAAoB;;4BAEpvC,GAAG,CAAC,OAAO,CAAC,eAAe,GAAG,CAAC;AAC3D,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,qBAAqB,CACnC,KAAa,EACb,cAAsB,EACtB,QAAiB;IAEjB,OAAO,SAAS,KAAK,OAAO,oBAAoB,KAAK,QAAQ,CAAC,CAAC,CAAC,qKAAqK,CAAC,CAAC,CAAC,oGAAoG;;EAE5U,cAAc,CAAC,IAAI,EAAE,GACrB,QAAQ;QACN,CAAC,CAAC;;;;EAIJ,QAAQ,EAAE;QACR,CAAC,CAAC,EACN,EAAE,CAAC;AACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { TaskDefinition, TaskEnvironment } from "../../contracts.js";
2
+ import type { CouplingEvidence } from "../../coupling.js";
3
+ export interface VerifierPromptInput {
4
+ readonly taskId: string;
5
+ readonly testSelection?: TaskDefinition["testSelection"];
6
+ readonly testResults?: TaskDefinition["testResults"];
7
+ readonly instruction: string;
8
+ readonly renderedReport: string;
9
+ readonly couplingEvidence: CouplingEvidence;
10
+ readonly environment: TaskEnvironment;
11
+ readonly testPatch: string;
12
+ readonly goldPatch: string;
13
+ readonly heldOutPaths: readonly string[];
14
+ }
15
+ /** Round 1 prompt for the independent verification agent. */
16
+ export declare function verifierPrompt(input: VerifierPromptInput): string;
17
+ //# sourceMappingURL=prompts-verifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-verifier.d.ts","sourceRoot":"","sources":["../../../src/temporal/activities/prompts-verifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IACzD,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IACrD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CA+DjE"}
@@ -0,0 +1,66 @@
1
+ /** Round 1 prompt for the independent verification agent. */
2
+ export function verifierPrompt(input) {
3
+ return `You are the independent SelfBench verification agent for task ${input.taskId}. You have not seen the authoring conversation. Judge whether this Harbor task is a fair, self-contained benchmark and either accept it or submit suggestions for the next authoring agent.
4
+
5
+ # Workspace
6
+
7
+ - /work/task/harbor-task is the compiled task: instruction.md, task.toml, environment/ (Dockerfile, root-setup.sh, setup.sh, smoke.sh, repo.tar.gz), tests/ (Dockerfile, test.patch, test.sh), solution/gold.patch. Read these rendered files; never edit them.
8
+ - /work/repo is the exact base snapshot with the held-out test patch applied as a Git working tree (HEAD is the base). It is read-only; do not edit it.
9
+ - The verification report, deterministic coupling evidence, environment contract, and both patches are below.
10
+
11
+ # Judge
12
+
13
+ Read definition.json for testSelection and testResults. Assess reused tests as critically as authored tests; base-only tests are visible to the solver. Check the selection record against the test files and request, including omitted coverage. Command-level results do not establish individual test transitions. JUnit mode fails closed on collection/runtime errors. Repeatability is two target runs in one environment, not clean-run determinism. Review reference dependency preinstallation and ensure setup does not implement the solution.
14
+
15
+ 1. Instruction: it must preserve the human request without adding behavior inferred only from the implementation or tests, and must not leak PRs, commits, test names, or the solution.
16
+ 2. Public behavior: held-out tests must exercise an existing public API, command, persistence boundary, or extension seam. They may not import gold-specific private helpers or prescribe exact internal SQL, query counts, private schemas, object identity, telemetry layout, incidental error wording, endpoint/response shapes, or UI copy/order unless the request explicitly makes that artifact public. A coherent implementation with different names, file boundaries, payload presentation, or internal structure must pass.
17
+ 3. Coupling: for every exact endpoint path, response/request field, header, media type, helper/module, error string, schema/index name, UI copy/order, or other implementation artifact asserted by the held-out tests, cite either the authentic request text that requires it or deterministic evidence that the base repository already establishes it. A name merely appearing in the gold patch is not evidence. Resolve every artifact in couplingEvidence.blockers with a finding whose artifact exactly matches it. Use external_contract only when the request names a standard protocol that fixes the exact artifact independently of the gold patch, and cite that protocol. Use not_contract only for incidental test-language or framework syntax that is not an asserted product contract. Acceptance with a missing blocker finding is rejected automatically.
18
+ 4. Environment: the contract must be deterministic and reproducible: digest-pinned images, frozen dependency installs, a smoke command that proves the runtime without the gold patch, no secrets, no host interpolation, no Docker-in-Docker, services only when the focused tests need them, and evidence that exists at the pinned commit.
19
+ 5. Mechanical gates: accept only when the report is GREEN. The nop split must fail every fail-to-pass test on the base and pass every pass-to-pass test; the oracle must pass both deterministically.
20
+
21
+ # Decide
22
+
23
+ - accept_task: the task is fair and the report is GREEN. Findings must resolve every blocker; the counterexample must describe a plausible alternative correct implementation and whether the tests accept it.
24
+ - submit_suggestions: the task needs changes, but you may not edit anything. Submit a concise summary and actionable suggestions for the next authoring agent. Do not prescribe private implementation details; identify fairness, public-seam, coupling, environment, or test issues.
25
+ - reject_task: the task cannot be made fair within the authoring workflow; explain the blocker.
26
+
27
+ The verifier has no bash, edit, write, or verify tools. It must not modify the task, tests, definition, patches, or repository.
28
+
29
+ Use read, grep, find, and ls to inspect the existing test evidence; inspect solution/gold.patch only to understand the intended behavior and available seams, never to copy its private structure into assertions. Do not return prose after a tool call.
30
+
31
+ # Selection and evidence contract
32
+
33
+ ${JSON.stringify({ testSelection: input.testSelection ?? null, testResults: input.testResults ?? "command-level", protectedTestPaths: input.heldOutPaths }, null, 2)}
34
+
35
+ # Authentic request (instruction.md)
36
+
37
+ ${input.instruction.trim()}
38
+
39
+ # Verification report
40
+
41
+ ${input.renderedReport.trim()}
42
+
43
+ # Deterministic coupling evidence
44
+
45
+ The exact-artifact scan compared the held-out tests with the authentic request, gold additions, and exact base snapshot. Every blocker is asserted by tests and introduced by gold, but absent verbatim from both request and base.
46
+
47
+ ${JSON.stringify(input.couplingEvidence, null, 2)}
48
+
49
+ # Environment contract
50
+
51
+ ${JSON.stringify(input.environment, null, 2)}
52
+
53
+ # Held-out test patch
54
+
55
+ \`\`\`diff
56
+ ${input.testPatch}
57
+ \`\`\`
58
+
59
+ # Gold implementation patch
60
+
61
+ \`\`\`diff
62
+ ${input.goldPatch}
63
+ \`\`\`
64
+ `;
65
+ }
66
+ //# sourceMappingURL=prompts-verifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-verifier.js","sourceRoot":"","sources":["../../../src/temporal/activities/prompts-verifier.ts"],"names":[],"mappings":"AAgBA,6DAA6D;AAC7D,MAAM,UAAU,cAAc,CAAC,KAA0B;IACvD,OAAO,iEAAiE,KAAK,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BpF,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,IAAI,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,eAAe,EAAE,kBAAkB,EAAE,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;;;;EAIlK,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE;;;;EAIxB,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE;;;;;;EAM3B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC;;;;EAI/C,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;;;;;EAK1C,KAAK,CAAC,SAAS;;;;;;EAMf,KAAK,CAAC,SAAS;;CAEhB,CAAC;AACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ArtifactStore } from "../../artifacts.js";
2
+ import type { ArtifactRef, RunRequest } from "../../contracts.js";
3
+ export declare function collectRunProvenance(store: ArtifactStore, run: RunRequest): Promise<ArtifactRef>;
4
+ //# sourceMappingURL=provenance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provenance.d.ts","sourceRoot":"","sources":["../../../src/temporal/activities/provenance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKlE,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,WAAW,CAAC,CAqBtB"}
@@ -0,0 +1,18 @@
1
+ import { Context } from "@temporalio/activity";
2
+ import { ApplicationFailure } from "@temporalio/common";
3
+ import { collectGitHubPullRequestProvenance, combineRunProvenance } from "../../provenance.js";
4
+ import { githubToken } from "../../subscription-auth.js";
5
+ import { parseProvenance, withActivityHeartbeats } from "./runtime.js";
6
+ export async function collectRunProvenance(store, run) {
7
+ return await withActivityHeartbeats("collecting merged GitHub pull requests", async ({ signal }) => {
8
+ const [localBytes, token] = await Promise.all([store.get(run.provenance), githubToken()]);
9
+ const local = parseProvenance(localBytes);
10
+ const github = await collectGitHubPullRequestProvenance(run.repository.url, token, signal);
11
+ const messages = combineRunProvenance(run.repository.url, local, github);
12
+ if (messages.length === 0) {
13
+ throw ApplicationFailure.nonRetryable("no sanitized local-session or GitHub pull-request provenance was found", "NoProvenance");
14
+ }
15
+ return await store.put(`runs/${run.runId}/input/combined-provenance-attempt-${Context.current().info.attempt}.jsonl`, Buffer.from(`${messages.map((message) => JSON.stringify(message)).join("\n")}\n`), "application/x-ndjson");
16
+ });
17
+ }
18
+ //# sourceMappingURL=provenance.js.map