@outerlayer/cli 0.38.0-next.20261106012958 → 0.38.0-next.20261106232046

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 (180) hide show
  1. package/README.md +19 -3
  2. package/dist/agent-setup-IJNDJ4XL.js +40 -0
  3. package/dist/{agent-subcommand-UNSXJUHA.js → agent-subcommand-XECZFIAS.js} +4 -4
  4. package/dist/{artifact-link-cmd-QP6VO7AJ.js → artifact-link-cmd-F6M2BDT7.js} +2 -2
  5. package/dist/{bridge-JI4IO7JN.js → bridge-LDKKFAHH.js} +7 -7
  6. package/dist/{build-2L3L2OJO.js → build-PTFRHSXI.js} +13 -13
  7. package/dist/{build-disk-CKBEEF4N.js → build-disk-EO2VG3MF.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-PKDA7X2H.js → builder-LCIBBOWQ.js} +10 -10
  10. package/dist/caller-Y3RGYXHU.js +23 -0
  11. package/dist/{check-FG32SYJF.js → check-BNDMAAVS.js} +72 -56
  12. package/dist/{chunk-T524XQKI.js → chunk-2IVRTP6M.js} +1 -1
  13. package/dist/{chunk-NEEMG462.js → chunk-2KL345FW.js} +1 -1
  14. package/dist/{chunk-YXXJBHHF.js → chunk-2VNT47DG.js} +10 -2
  15. package/dist/{chunk-FGVVBYCT.js → chunk-3HEBSWNE.js} +1 -1
  16. package/dist/{chunk-RUJR3SDB.js → chunk-3UKDQNFF.js} +1 -1
  17. package/dist/{chunk-O4Z2YVC3.js → chunk-6AKP3FBS.js} +5 -5
  18. package/dist/{chunk-VWNQRD4I.js → chunk-6IXZHORY.js} +4 -4
  19. package/dist/{chunk-VNT2IRLM.js → chunk-6Y4ZE74I.js} +70 -11
  20. package/dist/{chunk-ONOINHY4.js → chunk-7GQE5D72.js} +1 -1
  21. package/dist/{chunk-EXIZ3G6I.js → chunk-7VVTZNUP.js} +6 -6
  22. package/dist/{chunk-DXBYNJRM.js → chunk-B7CAUXSV.js} +6 -6
  23. package/dist/{chunk-TAEDH2SU.js → chunk-BEQYO2VO.js} +1 -1
  24. package/dist/{chunk-QWDGHEQL.js → chunk-BJYX3PMU.js} +1 -1
  25. package/dist/{chunk-CGXYPLK3.js → chunk-BU25W7GF.js} +2 -2
  26. package/dist/{chunk-X2DX3A7H.js → chunk-C3P637LO.js} +1 -1
  27. package/dist/{chunk-4MSEUIMK.js → chunk-DDPCKTVN.js} +7 -7
  28. package/dist/{chunk-EERD7VI3.js → chunk-DRUM7NWK.js} +1 -1
  29. package/dist/{chunk-GMRVWRHD.js → chunk-EOXQCUFJ.js} +2 -2
  30. package/dist/{chunk-U7L4GBGS.js → chunk-FPPBL7ZC.js} +1 -1
  31. package/dist/{chunk-EFAOERZH.js → chunk-FSQDS7A6.js} +1 -1
  32. package/dist/{chunk-YWWW47OY.js → chunk-FSYEDSSA.js} +1 -1
  33. package/dist/{chunk-3FAJMXBA.js → chunk-FZD6GIW5.js} +9 -9
  34. package/dist/{chunk-KLQLQQGG.js → chunk-GMLYSAKU.js} +3 -3
  35. package/dist/{chunk-ABN4UBR5.js → chunk-HCIOUSUX.js} +2 -3
  36. package/dist/{chunk-QONY6C2B.js → chunk-HI5FSBWD.js} +15 -9
  37. package/dist/{chunk-3XWZKL2P.js → chunk-ICKFR2DB.js} +7 -7
  38. package/dist/{chunk-JTDMSQMI.js → chunk-IQHREL5T.js} +8 -8
  39. package/dist/{chunk-FOUG2R4Q.js → chunk-LPTMKPCD.js} +1 -1
  40. package/dist/{chunk-HG2ZG6ZU.js → chunk-LQEI4HZF.js} +1 -1
  41. package/dist/{chunk-ZTJTAKVW.js → chunk-LYBHKNEG.js} +1 -1
  42. package/dist/{chunk-5VAXNAOD.js → chunk-LYORNXIT.js} +1 -1
  43. package/dist/{chunk-OVHBDADU.js → chunk-MLM4BYK2.js} +1 -1
  44. package/dist/{chunk-RSRNZB4T.js → chunk-MXSQINKG.js} +7 -7
  45. package/dist/{chunk-L4ACBB5R.js → chunk-NDLWXIVK.js} +1 -1
  46. package/dist/{chunk-S7CE7QCF.js → chunk-NMSWL2N3.js} +3 -3
  47. package/dist/{chunk-XDRZ3BNA.js → chunk-NOBB3LEO.js} +1 -1
  48. package/dist/{chunk-256R6O56.js → chunk-O3TOA2KE.js} +8 -5
  49. package/dist/{chunk-YZRDJOOR.js → chunk-OAOZDJYT.js} +3 -3
  50. package/dist/{chunk-IXB2IIEW.js → chunk-OCQ5FQZR.js} +1 -1
  51. package/dist/{chunk-AVEF3T6Y.js → chunk-OO33S4AF.js} +7 -5
  52. package/dist/{chunk-BO3NOGKE.js → chunk-OSHKKESX.js} +77 -8
  53. package/dist/{chunk-RZ6WJTUP.js → chunk-PJNOTSB5.js} +1 -1
  54. package/dist/{chunk-ZLJXMXZP.js → chunk-PVLDVUNJ.js} +2 -2
  55. package/dist/{chunk-MPE4NOKD.js → chunk-QF6US5YN.js} +2 -2
  56. package/dist/{chunk-OUHM6U6Z.js → chunk-QHT6PIFP.js} +144 -5
  57. package/dist/{chunk-45TFVWNT.js → chunk-QQSXVGVH.js} +6 -6
  58. package/dist/{chunk-DVFGCVTV.js → chunk-QZAZPRDW.js} +5 -5
  59. package/dist/{chunk-XE2PXGZT.js → chunk-RWNVQSGX.js} +3 -3
  60. package/dist/{chunk-EHJYXABQ.js → chunk-RZXP427Z.js} +1 -1
  61. package/dist/{chunk-OGQW7A4G.js → chunk-S35KTDTM.js} +10 -10
  62. package/dist/{chunk-3DVCPRKE.js → chunk-SDUCKX46.js} +9 -9
  63. package/dist/{chunk-CCMKLF7K.js → chunk-SEAVWMW2.js} +6 -6
  64. package/dist/{chunk-BL6CCU26.js → chunk-SOB4KVRZ.js} +6 -6
  65. package/dist/{chunk-U5EE7PGC.js → chunk-SYENSVOK.js} +3 -3
  66. package/dist/{chunk-2MQQASWB.js → chunk-SZQKS4QK.js} +6 -6
  67. package/dist/{chunk-ERQLHUWU.js → chunk-TWWAV67F.js} +5 -5
  68. package/dist/{chunk-Z4R36YDJ.js → chunk-V26DDAWZ.js} +1367 -548
  69. package/dist/{chunk-OFWNBTLU.js → chunk-V43NFQE3.js} +1 -1
  70. package/dist/{chunk-WF2NXBOM.js → chunk-VLAVNWM4.js} +7 -7
  71. package/dist/{chunk-SMFWLPXC.js → chunk-VW5NG2AR.js} +19 -18
  72. package/dist/{chunk-PARDL7HH.js → chunk-VYAFSV43.js} +1 -1
  73. package/dist/{chunk-DL5N6V3D.js → chunk-VZGTPITG.js} +1 -1
  74. package/dist/{chunk-AJC5Q2NY.js → chunk-WCBLLIPD.js} +5 -5
  75. package/dist/{chunk-AMG5ICDO.js → chunk-WCQJNDQC.js} +4 -4
  76. package/dist/{chunk-YKWOVYVN.js → chunk-WDJPGE6K.js} +9 -6
  77. package/dist/{chunk-MDKLSY43.js → chunk-WX7XACEU.js} +1 -1
  78. package/dist/{chunk-5R5FEPLH.js → chunk-X25VXXCF.js} +99 -18
  79. package/dist/{chunk-ZO3RUMUR.js → chunk-X32HZMMA.js} +4 -4
  80. package/dist/{chunk-K6JOU4CT.js → chunk-XDURUWQP.js} +156 -51
  81. package/dist/{chunk-FER7JJ3S.js → chunk-XKJZHY4J.js} +1 -1
  82. package/dist/{chunk-PMJ6IEUM.js → chunk-XSEAGCYW.js} +7 -7
  83. package/dist/{chunk-ZCEM4GJ5.js → chunk-YFARFA4Y.js} +3 -3
  84. package/dist/{chunk-DK5YFDYI.js → chunk-YSCRMX2T.js} +8 -8
  85. package/dist/{claude-launcher-FHQTSQOM.js → claude-launcher-62NZAUKT.js} +7 -7
  86. package/dist/{cli-GNC4MFMP.js → cli-GJQGNNFM.js} +161 -154
  87. package/dist/{command-47EYM2FJ.js → command-3QXN5ZTK.js} +59 -52
  88. package/dist/config-4YPIDOHH.js +22 -0
  89. package/dist/{connect-cmd-4JO2LBUT.js → connect-cmd-GAWR7QSH.js} +13 -13
  90. package/dist/{container-start-XR7KANS6.js → container-start-FZCTPBZG.js} +48 -48
  91. package/dist/{context-cleanup-6CTKLEUT.js → context-cleanup-L3ZKG6EU.js} +4 -4
  92. package/dist/{context-show-cmd-Z7NQAKNE.js → context-show-cmd-YJ4IJ2WI.js} +14 -14
  93. package/dist/{control-plane-launch-4PLBJKBS.js → control-plane-launch-GOKEVTPX.js} +14 -14
  94. package/dist/{demo-record-cmd-3B2ME2ZI.js → demo-record-cmd-AZSEQXO4.js} +8 -8
  95. package/dist/{demo-voice-cmd-LIXAA3OS.js → demo-voice-cmd-KHEMTR5T.js} +20 -20
  96. package/dist/{dist-3TV6G4YF.js → dist-RMEOTTVL.js} +2 -2
  97. package/dist/{docker-FPEQS6HK.js → docker-QMKIWXHF.js} +10 -10
  98. package/dist/{doctor-AFH6UUX6.js → doctor-5PTO2DN7.js} +56 -50
  99. package/dist/{emit-artifact-cmd-5XIEUWFX.js → emit-artifact-cmd-72QEOEJH.js} +19 -19
  100. package/dist/{emit-cmd-IKYF27IK.js → emit-cmd-X5F5HUTQ.js} +7 -7
  101. package/dist/{emit-criteria-cmd-YS5ZSLCN.js → emit-criteria-cmd-HTHETRH6.js} +16 -16
  102. package/dist/{emit-demo-cmd-IDC2JC46.js → emit-demo-cmd-LFYJURFC.js} +20 -20
  103. package/dist/{emit-finding-cmd-C4NRTIZO.js → emit-finding-cmd-GFWCMJFY.js} +16 -16
  104. package/dist/{emit-result-cmd-GC2I7JQU.js → emit-result-cmd-FTWLKM6G.js} +18 -18
  105. package/dist/{emit-step-cmd-TTH4FYFW.js → emit-step-cmd-J4L2OAWE.js} +16 -16
  106. package/dist/{exec-client-DT5EWVQL.js → exec-client-YQH4ZSRM.js} +8 -8
  107. package/dist/find-unit-F3Q54LLR.js +24 -0
  108. package/dist/{findings-cmd-MSV52ODM.js → findings-cmd-VFE7VINC.js} +16 -16
  109. package/dist/{fleet-readiness-O76CSI7M.js → fleet-readiness-FGQPCFSP.js} +14 -14
  110. package/dist/{governing-source-QEFYVBQF.js → governing-source-NMZSHEHR.js} +21 -21
  111. package/dist/{guest-init-X7M5AIOI.js → guest-init-DPZAVCWH.js} +9 -9
  112. package/dist/{hook-fast-T6FOTZHA.js → hook-fast-3VMKCCUO.js} +1 -1
  113. package/dist/{hook-install-OUSUHQ6C.js → hook-install-TTF6LASI.js} +4 -4
  114. package/dist/host-checks-ANVIJJZI.js +79 -0
  115. package/dist/host-key-QZWN6ECO.js +18 -0
  116. package/dist/{image-tag-AE6EKDPV.js → image-tag-5TZ7MF5H.js} +8 -8
  117. package/dist/index.js +4 -4
  118. package/dist/{init-PUN3PKOT.js → init-5ZTKM5KM.js} +46 -46
  119. package/dist/init-6AAXECDJ.js +79 -0
  120. package/dist/{init-agent-D3KK24QX.js → init-agent-FOR3XGZ2.js} +46 -46
  121. package/dist/{init-cmd-LGRN3U7K.js → init-cmd-7X22EFRG.js} +27 -27
  122. package/dist/{init-update-ZL2J7EQI.js → init-update-JLOPXC5U.js} +24 -24
  123. package/dist/{install-cmd-4ID4VBH2.js → install-cmd-JDA4CNYW.js} +10 -10
  124. package/dist/{layout-G6K72TXK.js → layout-AKKICGLZ.js} +4 -4
  125. package/dist/{login-browser-I6CWBA7K.js → login-browser-VNPN4FVO.js} +2 -2
  126. package/dist/{logs-DIA3NWC2.js → logs-WPNNAY5E.js} +7 -7
  127. package/dist/loop-DFDQQC2Q.js +90 -0
  128. package/dist/machine-W3R5I6EM.js +79 -0
  129. package/dist/{machine-skills-JLJJDXBS.js → machine-skills-GGLBQANZ.js} +4 -4
  130. package/dist/{mcp-install-cmd-OTAX7QP2.js → mcp-install-cmd-3NHDPAML.js} +4 -4
  131. package/dist/{mcp-serve-cmd-63KQEQYS.js → mcp-serve-cmd-CLVZFL37.js} +9 -9
  132. package/dist/{paths-KVMMJQ7T.js → paths-PSLRVOVY.js} +7 -7
  133. package/dist/pending-GWDAXQSA.js +18 -0
  134. package/dist/{pidfile-NCBBWZNH.js → pidfile-5E4YPCTC.js} +8 -8
  135. package/dist/{record-PQDJVKYV.js → record-7ZMZA5QE.js} +8 -8
  136. package/dist/relay-UUIHK5TY.js +474 -0
  137. package/dist/{relay-protocol-PJ2HOP6B.js → relay-protocol-MQVXSFN4.js} +5 -5
  138. package/dist/{runner-agents-CEW4Z3FR.js → runner-agents-M5CMF2ZA.js} +4 -4
  139. package/dist/runner-env-3S64BNCU.js +24 -0
  140. package/dist/{runner-identity-IJKE4SRJ.js → runner-identity-3GMF6FKI.js} +10 -10
  141. package/dist/{runner-key-4J4MHN3S.js → runner-key-NS5C5TTT.js} +46 -46
  142. package/dist/{session-sender-HKNACIH5.js → session-sender-M325MH5U.js} +19 -19
  143. package/dist/{spec-cmd-4R7AYTBU.js → spec-cmd-QIVFOHR4.js} +17 -17
  144. package/dist/{starter-pack-6C7HPT4O.js → starter-pack-P5BRWSAP.js} +5 -5
  145. package/dist/state-5H5LGYWN.js +18 -0
  146. package/dist/{status-GMVC666R.js → status-5YK3LOVJ.js} +46 -46
  147. package/dist/{sync-cmd-UMAENSGZ.js → sync-cmd-JHFRUMM5.js} +18 -18
  148. package/dist/update-steps-KFULBARX.js +80 -0
  149. package/dist/{watch-RAUF223H.js → watch-TVHFOLVK.js} +18 -18
  150. package/dist/{work-claim-cmd-A3ISXUFA.js → work-claim-cmd-LTIAXIWH.js} +23 -23
  151. package/dist/{work-cmd-U7YLMDZ7.js → work-cmd-VC353JLU.js} +16 -16
  152. package/dist/{work-comment-cmd-CMWMOWVG.js → work-comment-cmd-SRQXRRJT.js} +18 -18
  153. package/dist/{work-demo-cmd-EKTJHIVM.js → work-demo-cmd-INUFIHU4.js} +16 -16
  154. package/dist/{work-logs-cmd-Z3QOFYTJ.js → work-logs-cmd-TMJC7RRS.js} +16 -16
  155. package/dist/{work-open-pr-cmd-NJXIX3QZ.js → work-open-pr-cmd-O6XW2YGD.js} +17 -17
  156. package/dist/{work-pr-cmd-JUV3SN7I.js → work-pr-cmd-QSE3BH3Z.js} +16 -16
  157. package/dist/{work-proofs-cmd-MIDPIFTH.js → work-proofs-cmd-FXSVPQZC.js} +18 -18
  158. package/dist/{work-proofs-record-6FTMJDQG.js → work-proofs-record-KPRP3UAQ.js} +24 -24
  159. package/dist/{work-stop-cmd-Z7MYNR7R.js → work-stop-cmd-J77H7RLL.js} +16 -16
  160. package/package.json +1 -1
  161. package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -7
  162. package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +80 -0
  163. package/skill-pack/maintained/outerlayer-build/references/release.md +0 -15
  164. package/skill-pack/maintained/outerlayer-build/references/review-loop.md +1 -3
  165. package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
  166. package/dist/agent-setup-CBEPGNFY.js +0 -40
  167. package/dist/caller-XETCC46J.js +0 -23
  168. package/dist/config-EA6WVKAS.js +0 -22
  169. package/dist/find-unit-337Y4QAC.js +0 -24
  170. package/dist/host-checks-OXB5J3KR.js +0 -79
  171. package/dist/host-key-UFUIBFBF.js +0 -18
  172. package/dist/init-V7X3KA7B.js +0 -79
  173. package/dist/loop-AWBFKDV7.js +0 -90
  174. package/dist/machine-BZPKYURG.js +0 -79
  175. package/dist/pending-2IE3VBAN.js +0 -18
  176. package/dist/relay-QDB526DJ.js +0 -223
  177. package/dist/runner-env-23OLQBQZ.js +0 -24
  178. package/dist/state-DPEWDXQN.js +0 -18
  179. package/dist/update-steps-GTXNCG3Z.js +0 -80
  180. package/skill-pack/validators/code-review.yaml +0 -30
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MPE4NOKD.js';
4
- import { parseSize } from './chunk-3FAJMXBA.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-OUHM6U6Z.js';
6
- import { builderDiskPinned } from './chunk-RZ6WJTUP.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-QF6US5YN.js';
4
+ import { parseSize } from './chunk-FZD6GIW5.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-QHT6PIFP.js';
6
+ import { builderDiskPinned } from './chunk-PJNOTSB5.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
9
9
  import { hostname } from 'os';
@@ -96,18 +96,72 @@ function hostAllowed(host, allowHosts) {
96
96
  });
97
97
  }
98
98
 
99
+ // src/runner/sandbox/config.ts
100
+ var DEFAULT_IDLE_MINUTES = 10;
101
+ var TIME_LIMIT_MARGIN_MINUTES = 15;
102
+ var MAX_TIME_LIMIT_MINUTES = 1440;
103
+ var MIB = 1024 ** 2;
104
+ var GIB = 1024 ** 3;
105
+ var MAX_IDLE_MINUTES = 120;
106
+ var DEFAULT_SANDBOX_IMAGE = "outerlayer-universal:latest";
107
+ var MAX_IMAGE_LENGTH = 200;
108
+ var KEYS = ["snapshot", "image", "allowHosts", "idleMinutes"];
109
+ function sandboxSizeOf(build) {
110
+ const cpus = build?.cpus ?? 4;
111
+ const memory = parseSize(build?.memory ?? "8g");
112
+ const disk = parseSize(build?.disk ?? "40g");
113
+ if (!Number.isInteger(cpus) || cpus < 1 || cpus > 16) return { ok: false, field: "runner.build.cpus", problem: "must be a whole number from 1 to 16 for a sandbox" };
114
+ if (memory === void 0 || memory < GIB || memory > 64 * GIB || memory % GIB !== 0) return { ok: false, field: "runner.build.memory", problem: "must be a whole number of GiB from 1g to 64g for a sandbox" };
115
+ if (disk === void 0 || disk < 5 * GIB || disk > 500 * GIB) return { ok: false, field: "runner.build.disk", problem: "must be from 5g to 500g for a sandbox" };
116
+ return { ok: true, size: { vcpu: cpus, memoryMib: Math.round(memory / MIB), diskGib: Math.ceil(disk / GIB) } };
117
+ }
118
+ function networkOf(allowHosts) {
119
+ return allowHosts.length === 0 ? { egress: "none" } : { egress: "allowlist", hosts: [...allowHosts] };
120
+ }
121
+ function sandboxTimeLimitMinutes(runnerLimitMinutes) {
122
+ return Math.min(MAX_TIME_LIMIT_MINUTES, runnerLimitMinutes + TIME_LIMIT_MARGIN_MINUTES);
123
+ }
124
+ function resolveSandbox(block, build, report) {
125
+ if (block === void 0) return report("runner.sandbox", "is required with the hooks builtin:sandbox: name the snapshot to start sandboxes from");
126
+ if (typeof block !== "object" || block === null || Array.isArray(block)) return report("runner.sandbox", "must be an object");
127
+ const given = block;
128
+ for (const key of Object.keys(given)) {
129
+ if (!KEYS.includes(key)) return report(`runner.sandbox.${key}`, `is not a setting; the ones that exist are ${KEYS.join(", ")}`);
130
+ }
131
+ const snapshot = given["snapshot"];
132
+ if (typeof snapshot !== "string" || snapshot.trim() === "") return report("runner.sandbox.snapshot", "is required: the name of the saved snapshot that holds Docker and the universal image");
133
+ const image = given["image"] ?? DEFAULT_SANDBOX_IMAGE;
134
+ if (typeof image !== "string" || image.length > MAX_IMAGE_LENGTH || !/^[A-Za-z0-9][A-Za-z0-9_.:/@-]*$/.test(image)) return report("runner.sandbox.image", `must be an image name of at most ${MAX_IMAGE_LENGTH} characters, such as outerlayer-universal:latest`);
135
+ const hosts = given["allowHosts"] ?? [];
136
+ if (!Array.isArray(hosts)) return report("runner.sandbox.allowHosts", "must be a list of host names");
137
+ if (hosts.length > MAX_ALLOW_HOSTS) return report("runner.sandbox.allowHosts", `holds more than ${MAX_ALLOW_HOSTS} entries`);
138
+ hosts.forEach((entry, index) => {
139
+ const problem = allowHostProblem(entry);
140
+ if (problem !== void 0) report(`runner.sandbox.allowHosts[${index}]`, problem);
141
+ });
142
+ const idle = given["idleMinutes"] ?? DEFAULT_IDLE_MINUTES;
143
+ if (typeof idle !== "number" || !Number.isInteger(idle) || idle < 1 || idle > MAX_IDLE_MINUTES) return report("runner.sandbox.idleMinutes", `must be a whole number of minutes from 1 to ${MAX_IDLE_MINUTES}`);
144
+ const size = sandboxSizeOf(build);
145
+ if (!size.ok) return report(size.field, size.problem);
146
+ return { snapshot: snapshot.trim(), image, allowHosts: hosts.map((host) => host.toLowerCase()), idleMinutes: idle };
147
+ }
148
+
99
149
  // src/runner/config.ts
100
150
  var BUILTIN_CONTAINER = "builtin:container";
101
151
  var PROCESS_HOOK = "builtin:process";
102
152
  var BUILTIN_VM = "builtin:vm";
153
+ var BUILTIN_SANDBOX = "builtin:sandbox";
103
154
  function isBuiltinContainer(hook) {
104
155
  return hook === BUILTIN_CONTAINER;
105
156
  }
106
157
  function isBuiltinVm(hook) {
107
158
  return hook === BUILTIN_VM;
108
159
  }
160
+ function isBuiltinSandbox(hook) {
161
+ return hook === BUILTIN_SANDBOX;
162
+ }
109
163
  function builtinKind(hook) {
110
- return isBuiltinContainer(hook) ? "container" : isBuiltinVm(hook) ? "vm" : "own";
164
+ return isBuiltinContainer(hook) ? "container" : isBuiltinVm(hook) ? "vm" : isBuiltinSandbox(hook) ? "sandbox" : "own";
111
165
  }
112
166
  function runnerDeliversComments(config) {
113
167
  if (config.deliverComments === false) return false;
@@ -137,6 +191,7 @@ function imageBuildOf(config) {
137
191
  return config.build?.imageBuild ?? "vm";
138
192
  }
139
193
  function keepsHostBuilder(config, builderDiskIsPinned) {
194
+ if (isBuiltinSandbox(config.hooks.provision)) return false;
140
195
  return !(imageBuildOf(config) === "vm" && (builderDiskIsPinned ?? builderDiskPinned()));
141
196
  }
142
197
  var BUILD_KEYS = ["memory", "cpus", "pids", "disk", "setupMinutes", "cacheDisk", "variables", "destinations", "allowHosts", "imageBuild", "egress"];
@@ -212,6 +267,7 @@ var RUNNER_KEYS = [
212
267
  "commands",
213
268
  "hooks",
214
269
  "build",
270
+ "sandbox",
215
271
  "housekeeping",
216
272
  "checks",
217
273
  "autoUpdate",
@@ -273,7 +329,7 @@ function checkHooks(config, env = process.env) {
273
329
  ];
274
330
  for (const [key, path] of named) {
275
331
  if (path === void 0) continue;
276
- if (isBuiltinContainer(path) || isBuiltinVm(path)) continue;
332
+ if (isBuiltinContainer(path) || isBuiltinVm(path) || isBuiltinSandbox(path)) continue;
277
333
  if (path.includes("$") || path.startsWith("~")) {
278
334
  return `${key}: ${path} \u2014 hooks are executable paths, not shell lines; $HOME and ~ are not expanded`;
279
335
  }
@@ -369,6 +425,8 @@ function loadRunnerConfig(configPath) {
369
425
  if (!runner.hooks?.cleanup) fail(configPath, "runner.hooks.cleanup", "is required");
370
426
  checkBuiltinHooks(configPath, runner.hooks);
371
427
  const build = resolveBuild(configPath, runner.build);
428
+ const sandbox = isBuiltinSandbox(runner.hooks.provision) ? resolveSandbox(runner.sandbox, build, (field, problem) => fail(configPath, field, problem)) : void 0;
429
+ if (sandbox === void 0 && runner.sandbox !== void 0) fail(configPath, "runner.sandbox", `is used only when the hooks are ${BUILTIN_SANDBOX}`);
372
430
  const housekeeping = resolveHousekeeping(configPath, runner.housekeeping, build.disk);
373
431
  const checks = resolveChecks(configPath, runner.checks);
374
432
  const update = resolveUpdate(configPath, runner.update);
@@ -400,6 +458,7 @@ function loadRunnerConfig(configPath) {
400
458
  report: runner.hooks.report
401
459
  },
402
460
  build,
461
+ ...sandbox === void 0 ? {} : { sandbox },
403
462
  housekeeping,
404
463
  checks,
405
464
  update,
@@ -423,14 +482,14 @@ function checkBuiltinHooks(configPath, hooks) {
423
482
  if (value === PROCESS_HOOK) {
424
483
  fail(configPath, `runner.hooks.${key}`, `is ${PROCESS_HOOK}, which is not supported: builds run isolated. Set both hooks to ${BUILTIN_CONTAINER} or ${BUILTIN_VM}, or remove the runner block and run \`outerlayer runner init\` again`);
425
484
  }
426
- if (!isBuiltinContainer(value) && !isBuiltinVm(value)) {
427
- fail(configPath, `runner.hooks.${key}`, `names an unknown built-in hook "${value}"; the ones that exist are ${BUILTIN_CONTAINER} and ${BUILTIN_VM}`);
485
+ if (!isBuiltinContainer(value) && !isBuiltinVm(value) && !isBuiltinSandbox(value)) {
486
+ fail(configPath, `runner.hooks.${key}`, `names an unknown built-in hook "${value}"; the ones that exist are ${BUILTIN_CONTAINER}, ${BUILTIN_VM} and ${BUILTIN_SANDBOX}`);
428
487
  }
429
488
  }
430
489
  const provision = hooks.provision;
431
490
  const cleanup = hooks.cleanup;
432
- if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) || isBuiltinVm(provision) !== isBuiltinVm(cleanup)) {
433
- fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${BUILTIN_VM}, or neither`);
491
+ if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) || isBuiltinVm(provision) !== isBuiltinVm(cleanup) || isBuiltinSandbox(provision) !== isBuiltinSandbox(cleanup)) {
492
+ fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${BUILTIN_VM}, both be ${BUILTIN_SANDBOX}, or neither`);
434
493
  }
435
494
  }
436
495
  function resolveHousekeeping(configPath, block, buildDisk) {
@@ -608,4 +667,4 @@ function egressLimitsOf(config) {
608
667
  return resolveEgress(config.build?.egress, config.managed === true);
609
668
  }
610
669
 
611
- export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, systemClock };
670
+ export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinSandbox, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, networkOf, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, sandboxSizeOf, sandboxTimeLimitMinutes, systemClock };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, BUILD_HOME } from './chunk-OUHM6U6Z.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-QHT6PIFP.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
4
- import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-YWWW47OY.js';
5
- import { DEFAULT_DASHBOARD } from './chunk-NEEMG462.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
3
+ import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
4
+ import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-FSYEDSSA.js';
5
+ import { DEFAULT_DASHBOARD } from './chunk-2KL345FW.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-NOBB3LEO.js';
7
7
  import { readCloudConfig } from './chunk-HWVMRETT.js';
8
8
  import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
11
- import { remoteLookupFailed } from './chunk-5R5FEPLH.js';
10
+ import { defaultAgents } from './chunk-OO33S4AF.js';
11
+ import { remoteLookupFailed } from './chunk-X25VXXCF.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { lstatSync } from 'fs';
14
14
  import { join, relative } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postJson, getJson } from './chunk-JTDMSQMI.js';
4
- import { detectActiveSession } from './chunk-DL5N6V3D.js';
5
- import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
3
+ import { resolveCredentials, postJson, getJson } from './chunk-IQHREL5T.js';
4
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
5
+ import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-XDRZ3BNA.js';
8
- import { logHookError } from './chunk-256R6O56.js';
7
+ import { defaultFetch } from './chunk-NOBB3LEO.js';
8
+ import { logHookError } from './chunk-O3TOA2KE.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
- import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
11
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
12
12
  import { randomUUID } from 'crypto';
13
13
 
14
14
  createRequire(import.meta.url);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-AVEF3T6Y.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-OO33S4AF.js';
5
5
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
7
7
  import { lstatSync, readFileSync } from 'fs';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-RZ6WJTUP.js';
4
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-PJNOTSB5.js';
4
+ import { defaultAgents } from './chunk-OO33S4AF.js';
5
5
  import { PROVIDERS } from './chunk-7PZDPISM.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-OO33S4AF.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { readFileSync } from 'fs';
6
6
  import { join } from 'path';
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-3DVCPRKE.js';
3
+ import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-SDUCKX46.js';
4
4
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
5
- import { detectActiveSession } from './chunk-DL5N6V3D.js';
6
- import { autoConnect } from './chunk-XE2PXGZT.js';
7
- import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-IXB2IIEW.js';
5
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
6
+ import { autoConnect } from './chunk-RWNVQSGX.js';
7
+ import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-OCQ5FQZR.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
9
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NOBB3LEO.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
13
13
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
15
- import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-YXXJBHHF.js';
14
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
15
+ import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-2VNT47DG.js';
16
16
  import { createHash, randomUUID } from 'crypto';
17
17
  import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
18
18
  import { resolve, basename, join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-AVEF3T6Y.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-OO33S4AF.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-2MQQASWB.js';
4
- import { inspectService, realInspectProbes } from './chunk-CGXYPLK3.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-SZQKS4QK.js';
4
+ import { inspectService, realInspectProbes } from './chunk-BU25W7GF.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-AVEF3T6Y.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-OO33S4AF.js';
4
4
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-FER7JJ3S.js';
4
- import { ensureHostKey } from './chunk-EFAOERZH.js';
5
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-5VAXNAOD.js';
6
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-OUHM6U6Z.js';
7
- import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-CGXYPLK3.js';
8
- import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-RZ6WJTUP.js';
9
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-XKJZHY4J.js';
4
+ import { ensureHostKey } from './chunk-FSQDS7A6.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-LYORNXIT.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-QHT6PIFP.js';
7
+ import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-BU25W7GF.js';
8
+ import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-PJNOTSB5.js';
9
+ import { defaultAgents } from './chunk-OO33S4AF.js';
10
10
  import { PROVIDERS } from './chunk-7PZDPISM.js';
11
- import { compareVersions } from './chunk-5R5FEPLH.js';
11
+ import { compareVersions } from './chunk-X25VXXCF.js';
12
12
  import { createHash } from 'crypto';
13
13
  import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
14
14
  import { dirname, join, posix, resolve } from 'path';
@@ -447,7 +447,7 @@ function judgeCommand(input, agents = defaultAgents()) {
447
447
  }
448
448
  function withAnswerProtocol(brief, subjects) {
449
449
  const inputs = subjects === "criteria" ? `\`${JUDGE_DIR}/criteria.json\` lists the criteria to judge, \`${JUDGE_DIR}/diff.patch\` the change and \`${JUDGE_TREE}/\` the files of the pushed commit. Nothing tells you which tests prove a criterion: find them in \`${JUDGE_TREE}/\` yourself. No list of citing tests exists, so where the brief above reads one, or fails a criterion that no test cites, search for the criterion's tests instead.` : `\`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the pushed commit.`;
450
- const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name): \`{"result":"pass"|"fail","items":[{"id":"<part>","result":"pass"|"fail","reason":"<one to three sentences>"}]}\`. A failing part fails the whole.`;
450
+ const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name), unique in the answer: \`{"result":"pass"|"fail","items":[{"id":"<part>","result":"pass"|"fail","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the pushed commit>}]}]}\`. A failing part fails the whole. A failing part names in \`refs\` the file and line it is about.`;
451
451
  return `${brief.trimEnd()}
452
452
 
453
453
  ## How to answer
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-Z4R36YDJ.js';
4
- import { UNIT_MARKER } from './chunk-2MQQASWB.js';
5
- import { runnerDir } from './chunk-5VAXNAOD.js';
3
+ import { helperSocketPath } from './chunk-V26DDAWZ.js';
4
+ import { UNIT_MARKER } from './chunk-SZQKS4QK.js';
5
+ import { runnerDir } from './chunk-LYORNXIT.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -2,8 +2,8 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
- import { linkedAgentsPath } from './chunk-FOUG2R4Q.js';
6
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-AVEF3T6Y.js';
5
+ import { linkedAgentsPath } from './chunk-LPTMKPCD.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-OO33S4AF.js';
7
7
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
8
8
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
9
9
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -15,7 +15,6 @@ var DEFAULT_TEMPLATE = "default";
15
15
  var POLICY_PATH = ".outerlayer/policy.yaml";
16
16
  var POLICY_CONTENT = "review: required\n";
17
17
  var VALIDATOR_FILES = [
18
- { name: "code-review.yaml", label: "the code review check" },
19
18
  { name: "acceptance-criteria.yaml", label: "the criteria judge check" }
20
19
  ];
21
20
  var VALIDATORS_DIR = ".outerlayer/validators";
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-Z4R36YDJ.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
5
- import { getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-VNT2IRLM.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MPE4NOKD.js';
8
- import { ensureHostKey } from './chunk-EFAOERZH.js';
9
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-CGXYPLK3.js';
10
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-RZ6WJTUP.js';
11
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-V26DDAWZ.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-SZQKS4QK.js';
5
+ import { getJson, WorkCommandError } from './chunk-IQHREL5T.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-6Y4ZE74I.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-QF6US5YN.js';
8
+ import { ensureHostKey } from './chunk-FSQDS7A6.js';
9
+ import { sandboxSettingsFrom } from './chunk-QHT6PIFP.js';
10
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-BU25W7GF.js';
11
+ import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-PJNOTSB5.js';
12
+ import { defaultAgents } from './chunk-OO33S4AF.js';
12
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
13
14
  import { join, dirname } from 'path';
14
15
  import { totalmem } from 'os';
@@ -179,6 +180,11 @@ function checkBlockedWithSlots(config, probes, agents = defaultAgents()) {
179
180
  }
180
181
  }
181
182
  }
183
+ const sandboxSettings = kind === "sandbox" ? sandboxSettingsFrom(probes.env) : void 0;
184
+ if (sandboxSettings !== void 0 && !sandboxSettings.ok) {
185
+ const names = sandboxSettings.missing.join(", ");
186
+ return { blocked: { reason: `${names} ${sandboxSettings.missing.length === 1 ? "is" : "are"} not set in the runner's environment, so builtin:sandbox cannot create a sandbox. Set ${sandboxSettings.missing.length === 1 ? "it" : "them"} in runner.env and restart the runner` }, slots };
187
+ }
182
188
  const kvm = kind === "vm" ? probes.kvm() : "usable";
183
189
  if (kvm === "absent") {
184
190
  return { blocked: { reason: "/dev/kvm does not exist on this machine, so builtin:vm cannot start a microVM. Use a host with KVM enabled, or builtin:container hooks" }, slots };
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-JTDMSQMI.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-DVFGCVTV.js';
5
- import { buildRefusalReason } from './chunk-X2DX3A7H.js';
6
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-QWDGHEQL.js';
7
- import { signingFetchFor } from './chunk-XDRZ3BNA.js';
8
- import { signerFor } from './chunk-EFAOERZH.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-5VAXNAOD.js';
3
+ import { WorkCommandError, postJson } from './chunk-IQHREL5T.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-QZAZPRDW.js';
5
+ import { buildRefusalReason } from './chunk-C3P637LO.js';
6
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-BJYX3PMU.js';
7
+ import { signingFetchFor } from './chunk-NOBB3LEO.js';
8
+ import { signerFor } from './chunk-FSQDS7A6.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-LYORNXIT.js';
10
10
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
11
11
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
12
12
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { detectActiveSession } from './chunk-DL5N6V3D.js';
4
- import { autoConnect } from './chunk-XE2PXGZT.js';
5
- import { workPageUrl } from './chunk-EXIZ3G6I.js';
6
- import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
3
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
4
+ import { autoConnect } from './chunk-RWNVQSGX.js';
5
+ import { workPageUrl } from './chunk-7VVTZNUP.js';
6
+ import { sanitizeTerminal } from './chunk-OCQ5FQZR.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-XDRZ3BNA.js';
9
- import { signRunnerRequest } from './chunk-EFAOERZH.js';
8
+ import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-NOBB3LEO.js';
9
+ import { signRunnerRequest } from './chunk-FSQDS7A6.js';
10
10
  import { readRepoConnection } from './chunk-BJ3KTMDH.js';
11
11
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
14
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
15
15
 
16
16
  createRequire(import.meta.url);
17
17
 
@@ -486,7 +486,7 @@ async function runWorkLinkSession(opts) {
486
486
  return await linkSession(opts);
487
487
  } catch (err) {
488
488
  if (opts.logFailures) {
489
- const { logHookError } = await import('./hook-fast-T6FOTZHA.js');
489
+ const { logHookError } = await import('./hook-fast-3VMKCCUO.js');
490
490
  const reason = err instanceof Error ? err.message : String(err);
491
491
  logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
492
492
  }
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-AVEF3T6Y.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-OO33S4AF.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-U5EE7PGC.js';
3
+ import { EXEC_PORT } from './chunk-SYENSVOK.js';
4
4
  import { createConnection } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { BUILD_HOME } from './chunk-OUHM6U6Z.js';
3
+ import { BUILD_HOME } from './chunk-QHT6PIFP.js';
4
4
  import { readdirSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 45;
7
+ var RUNNER_PROTOCOL = 46;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
4
- import { runEmitArtifact } from './chunk-4MSEUIMK.js';
4
+ import { runEmitArtifact } from './chunk-DDPCKTVN.js';
5
5
  import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
6
- import { detectActiveSession } from './chunk-DL5N6V3D.js';
7
- import { autoConnect } from './chunk-XE2PXGZT.js';
6
+ import { detectActiveSession } from './chunk-VZGTPITG.js';
7
+ import { autoConnect } from './chunk-RWNVQSGX.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { defaultFetch, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
9
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-NOBB3LEO.js';
10
10
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
11
- import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-RZ6WJTUP.js';
11
+ import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-PJNOTSB5.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
- import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
14
- import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-YXXJBHHF.js';
13
+ import { resolveRepoIdentity } from './chunk-X25VXXCF.js';
14
+ import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-2VNT47DG.js';
15
15
  import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
16
16
  import { createHash } from 'crypto';
17
17
  import { mkdtempSync, writeFileSync, statSync, readFileSync, rmSync, mkdirSync, existsSync, copyFileSync, accessSync, constants, realpathSync, createReadStream, createWriteStream } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-LYORNXIT.js';
4
4
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-Z4R36YDJ.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-TAEDH2SU.js';
3
+ import { stripTerminalControls } from './chunk-V26DDAWZ.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-BEQYO2VO.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
7
7
  createRequire(import.meta.url);
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
55
55
  return [...new Set(names)].sort();
56
56
  }
57
57
  async function readOwnContainer(deps = {}) {
58
- const run = deps.run ?? (await import('./docker-FPEQS6HK.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-QMKIWXHF.js')).spawnRun;
59
59
  const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
60
60
  if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
61
61
  let problem = "";
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
4
- import { signRunnerRequest, signerFor } from './chunk-EFAOERZH.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-FSQDS7A6.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';