@outerlayer/cli 0.41.0-next.20261118123932 → 0.41.0-next.20261118130049

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 (189) hide show
  1. package/README.md +5 -6
  2. package/dist/{agent-credential-I3MYJNGM.js → agent-credential-A3NYNRQZ.js} +5 -5
  3. package/dist/agent-setup-7LD2SPXX.js +43 -0
  4. package/dist/{agent-subcommand-RSH763NQ.js → agent-subcommand-JBWCF6DW.js} +4 -4
  5. package/dist/{artifact-link-cmd-B6QPCFUL.js → artifact-link-cmd-BCGCPV4E.js} +2 -2
  6. package/dist/{bridge-D5AQ2BCT.js → bridge-4UMTIJEF.js} +8 -8
  7. package/dist/{build-KJHCMZVH.js → build-5OOYQ3X6.js} +14 -14
  8. package/dist/{build-disk-VTRFNLDQ.js → build-disk-K3A5TSZL.js} +12 -12
  9. package/dist/build-info.json +1 -1
  10. package/dist/{builder-UXAX7JKB.js → builder-XQVN4S2C.js} +11 -11
  11. package/dist/caller-HIDRWXGV.js +25 -0
  12. package/dist/{check-2BQ4BS5R.js → check-75PJJJEF.js} +55 -55
  13. package/dist/{chunk-N6LLARIY.js → chunk-22UMHY5K.js} +98 -186
  14. package/dist/{chunk-LFWNVVLU.js → chunk-2BLKGA6O.js} +1 -1
  15. package/dist/{chunk-KDBMWPDP.js → chunk-2IDR4YTQ.js} +1 -1
  16. package/dist/{chunk-GO3RR3VM.js → chunk-2S3Q4MKT.js} +46 -47
  17. package/dist/{chunk-V2F4CH7C.js → chunk-3HWIA4F7.js} +8 -8
  18. package/dist/{chunk-NEANSJG4.js → chunk-3UBNHWYC.js} +5 -5
  19. package/dist/{chunk-2JO3EPBG.js → chunk-3WCVUS2Z.js} +1 -1
  20. package/dist/{chunk-NL7UKJUB.js → chunk-3WDQFXSS.js} +11 -11
  21. package/dist/{chunk-LL64MSPN.js → chunk-3XPNEYTJ.js} +8 -8
  22. package/dist/{chunk-BIFQP6OI.js → chunk-4DTWHAXO.js} +3 -3
  23. package/dist/{chunk-7EHPZMZL.js → chunk-4GLGLMDX.js} +3 -3
  24. package/dist/{chunk-ONNIMNZH.js → chunk-6LJ6HOMB.js} +2 -2
  25. package/dist/{chunk-FJTQ43VY.js → chunk-6NPBCLAT.js} +1 -1
  26. package/dist/{chunk-C7NJN5CV.js → chunk-A5YNDECV.js} +3 -3
  27. package/dist/{chunk-LKYVLK7V.js → chunk-AEIG6IIV.js} +1 -1
  28. package/dist/{chunk-CEIILR7M.js → chunk-ATGEXIO3.js} +2 -2
  29. package/dist/{chunk-WRNZGAI5.js → chunk-AUONCCF6.js} +4 -4
  30. package/dist/{chunk-LRD46PQW.js → chunk-BXJBS7DU.js} +1 -1
  31. package/dist/{chunk-W4Q4GFDF.js → chunk-BYYJOL4H.js} +4 -4
  32. package/dist/{chunk-AYDWSGND.js → chunk-C3OJZODB.js} +1 -1
  33. package/dist/{chunk-KVVPPFOV.js → chunk-C73EUOPF.js} +8 -8
  34. package/dist/{chunk-LKGQY4GP.js → chunk-CRFMJVYJ.js} +9 -9
  35. package/dist/{chunk-WOWX3FJR.js → chunk-CXCUBYZB.js} +5 -5
  36. package/dist/{chunk-L35X54DH.js → chunk-DDWQGIHZ.js} +7 -7
  37. package/dist/{chunk-LVKUAUTK.js → chunk-DRC76AT6.js} +2 -2
  38. package/dist/{chunk-JU7VPCVL.js → chunk-DUXSUYCU.js} +6 -6
  39. package/dist/{chunk-BHERG5MK.js → chunk-EACOTFE4.js} +30 -30
  40. package/dist/{chunk-FIGHNRZQ.js → chunk-EHBF3L3N.js} +1 -1
  41. package/dist/{chunk-C6WDT6VX.js → chunk-EK2WT3GB.js} +1 -1
  42. package/dist/{chunk-6X7XFVPC.js → chunk-F4EWIL7N.js} +1 -1
  43. package/dist/{chunk-IIPJECUQ.js → chunk-FJPKQVTX.js} +4 -4
  44. package/dist/{chunk-PDFCYYCC.js → chunk-GBQRVYYE.js} +3 -3
  45. package/dist/{chunk-HOFY6FVJ.js → chunk-GCT2J4Y7.js} +3 -3
  46. package/dist/{chunk-XEETBQKD.js → chunk-GQADCHPA.js} +1 -1
  47. package/dist/{chunk-NEDFYNDB.js → chunk-GRMD6ODN.js} +1 -1
  48. package/dist/{chunk-VLU2GLKR.js → chunk-H2U3YTON.js} +6 -6
  49. package/dist/{chunk-DSPEJGOW.js → chunk-I3NK6WNF.js} +5 -5
  50. package/dist/{chunk-2RCTRQEI.js → chunk-IJCG3R2B.js} +10 -10
  51. package/dist/{chunk-E3PYD2IM.js → chunk-J6ZWZDL4.js} +6 -6
  52. package/dist/{chunk-XWFBE4IO.js → chunk-JB6WBOTZ.js} +6 -6
  53. package/dist/{chunk-TPBPSQCF.js → chunk-JMWZJ34F.js} +8 -8
  54. package/dist/{chunk-DRSF23ZR.js → chunk-JSJRXFAF.js} +1 -1
  55. package/dist/{chunk-NOPBVN4D.js → chunk-JVKBRZFL.js} +10 -10
  56. package/dist/{chunk-VBZN3X4F.js → chunk-KLDWF2YG.js} +18 -59
  57. package/dist/{chunk-WGTK73WU.js → chunk-KMUKDHAY.js} +1 -1
  58. package/dist/{chunk-QLUK7R26.js → chunk-LWOMQZNJ.js} +7 -7
  59. package/dist/{chunk-SLBFHRVU.js → chunk-MLLR4T7L.js} +1 -1
  60. package/dist/{chunk-ZA3P7POQ.js → chunk-MLMHMLJU.js} +7 -7
  61. package/dist/{chunk-DOSVADLO.js → chunk-MQQDEBRD.js} +9 -9
  62. package/dist/{chunk-CSVVNMXL.js → chunk-MV4VDZH5.js} +1 -1
  63. package/dist/{chunk-CKOO653G.js → chunk-NB34A4QI.js} +2 -2
  64. package/dist/{chunk-AEZAS6MG.js → chunk-NB52SVJ4.js} +3 -3
  65. package/dist/{chunk-GFIL4S2L.js → chunk-OKYZSH7K.js} +3 -3
  66. package/dist/{chunk-U2ETU6EK.js → chunk-P5IFJ6LR.js} +1 -1
  67. package/dist/{chunk-UUWZ6TYF.js → chunk-PQA5L35J.js} +3 -3
  68. package/dist/{chunk-PN4CHF7X.js → chunk-QA3CINFO.js} +3 -3
  69. package/dist/{chunk-Y6U6TBWO.js → chunk-QLOJITTG.js} +1 -1
  70. package/dist/{chunk-HGFQMUJ5.js → chunk-QTH3ZPB7.js} +4 -4
  71. package/dist/{chunk-VDNMVUJA.js → chunk-QYLY3Z6R.js} +1 -1
  72. package/dist/{chunk-5FCVKC5Z.js → chunk-RCDTKXXI.js} +4 -4
  73. package/dist/{chunk-UYP6FO27.js → chunk-SPWA3JVM.js} +2 -2
  74. package/dist/{chunk-VAFS3OBF.js → chunk-SUOL5WGL.js} +3 -3
  75. package/dist/{chunk-XATMBQYX.js → chunk-TZHVJ5WH.js} +1 -1
  76. package/dist/{chunk-Y2M5P4X4.js → chunk-UFCGX2Y5.js} +1 -1
  77. package/dist/{chunk-RLPJMLXB.js → chunk-UQHML2OB.js} +1 -1
  78. package/dist/{chunk-KF3O2B2C.js → chunk-UVEF3NPK.js} +1 -1
  79. package/dist/{chunk-QW6TKDBL.js → chunk-V3NMSDOC.js} +1 -1
  80. package/dist/{chunk-DRQQ25TL.js → chunk-VDEC6G2D.js} +5 -5
  81. package/dist/{chunk-L3VFRZHY.js → chunk-VPPCTN32.js} +4 -4
  82. package/dist/{chunk-LICJ4YCK.js → chunk-VYET47NT.js} +7 -7
  83. package/dist/{chunk-7EBDSDVC.js → chunk-XJ5MAYUA.js} +4 -4
  84. package/dist/{chunk-F4N56BLV.js → chunk-YNK4J3E5.js} +1 -1
  85. package/dist/{chunk-7G5CPEG5.js → chunk-YNPPXB57.js} +1 -1
  86. package/dist/{chunk-454DLLQX.js → chunk-Z63PASAI.js} +3 -3
  87. package/dist/{chunk-IHLN5VGD.js → chunk-ZKL4BQAP.js} +1 -1
  88. package/dist/{claude-launcher-O5FZYFQU.js → claude-launcher-O6LAYM6F.js} +7 -7
  89. package/dist/{cli-SIOIFXEN.js → cli-GPY5WHYF.js} +171 -171
  90. package/dist/{command-7HAHQWDR.js → command-PQIDL34C.js} +52 -52
  91. package/dist/{config-WGQATFVN.js → config-2ODEMRET.js} +13 -13
  92. package/dist/{connect-cmd-654I4LV4.js → connect-cmd-3PCES6JG.js} +14 -14
  93. package/dist/{container-start-2IJSVRAJ.js → container-start-F75ZOLOI.js} +49 -49
  94. package/dist/{context-cleanup-HFSRIDRZ.js → context-cleanup-HMJJVD3R.js} +4 -4
  95. package/dist/{context-show-cmd-N6EA4H2R.js → context-show-cmd-EFEVWXG3.js} +15 -15
  96. package/dist/{control-plane-launch-XGJ5OY6T.js → control-plane-launch-JSV336S6.js} +15 -15
  97. package/dist/{demo-record-cmd-GAURDSSR.js → demo-record-cmd-T3MRNY4F.js} +9 -9
  98. package/dist/{demo-voice-cmd-ZSAAAWLK.js → demo-voice-cmd-QN3F6IVB.js} +21 -21
  99. package/dist/{dist-PR6IJSRV.js → dist-WEDCUAFS.js} +2 -2
  100. package/dist/{docker-FVMJU75D.js → docker-U6TIZF6L.js} +11 -11
  101. package/dist/{doctor-OC3RN6MW.js → doctor-RRGWO4OB.js} +51 -51
  102. package/dist/{emit-artifact-cmd-LQ623M4X.js → emit-artifact-cmd-DMCQEDPP.js} +20 -20
  103. package/dist/{emit-cmd-I4MGKLZX.js → emit-cmd-KOG752D3.js} +7 -7
  104. package/dist/{emit-criteria-cmd-KBYEOZLP.js → emit-criteria-cmd-6MBR43QB.js} +17 -17
  105. package/dist/{emit-demo-cmd-EFQF7TUP.js → emit-demo-cmd-R7K4R7H3.js} +21 -21
  106. package/dist/{emit-finding-cmd-LVH26RPD.js → emit-finding-cmd-U5YXGUP5.js} +17 -17
  107. package/dist/{emit-step-cmd-Y3IGA6WM.js → emit-step-cmd-SRUU33RB.js} +17 -17
  108. package/dist/{exec-client-DHNQONI2.js → exec-client-Y6AAFVTZ.js} +9 -9
  109. package/dist/{find-unit-UOIQ7AEV.js → find-unit-7DECI3VM.js} +14 -14
  110. package/dist/{findings-cmd-WFZXWYG4.js → findings-cmd-T2TOB6KO.js} +17 -17
  111. package/dist/{fleet-readiness-62FJXOXK.js → fleet-readiness-KQ5V6IG3.js} +15 -15
  112. package/dist/{governing-source-Z3OXKSB5.js → governing-source-TM2PTQ3U.js} +22 -22
  113. package/dist/{guest-init-CH6J2HKB.js → guest-init-WU4ZAAV5.js} +10 -10
  114. package/dist/{hook-fast-4QOQCBWV.js → hook-fast-2HV5SDMH.js} +1 -1
  115. package/dist/{hook-install-RAETUCCH.js → hook-install-J6O7OY65.js} +4 -4
  116. package/dist/host-checks-NAGX2VDD.js +83 -0
  117. package/dist/host-key-7FQTMPTR.js +20 -0
  118. package/dist/{image-tag-RUJ5YPTB.js → image-tag-CNURVQ6A.js} +9 -9
  119. package/dist/index.js +4 -4
  120. package/dist/{init-RUD54PTF.js → init-DUDTTY3W.js} +47 -47
  121. package/dist/init-FIB75BJT.js +83 -0
  122. package/dist/{init-agent-ISZJN3ST.js → init-agent-A63WZ3UR.js} +47 -47
  123. package/dist/init-cmd-VM2K5K33.js +55 -0
  124. package/dist/{init-update-Y2MOPWRY.js → init-update-CWP654DO.js} +26 -26
  125. package/dist/install-cmd-KNSCKS5G.js +28 -0
  126. package/dist/launch-agent-G23B3AZY.js +28 -0
  127. package/dist/{layout-L52YULMN.js → layout-EASZTHPX.js} +4 -4
  128. package/dist/{login-browser-J5BFWBCZ.js → login-browser-FGB3SPPL.js} +2 -2
  129. package/dist/{logs-FLFCAU43.js → logs-FYUUZGVY.js} +8 -8
  130. package/dist/loop-JVCXNJII.js +93 -0
  131. package/dist/machine-4TGRLFX6.js +83 -0
  132. package/dist/{machine-skills-VOO5C4X4.js → machine-skills-YJTIV4CG.js} +4 -4
  133. package/dist/{mcp-install-cmd-MLXGDV5E.js → mcp-install-cmd-FMIWTXSN.js} +4 -4
  134. package/dist/{mcp-serve-cmd-WXFGZDFM.js → mcp-serve-cmd-XSC6JKPN.js} +10 -10
  135. package/dist/{paths-FP6RFQLT.js → paths-2NKGJEOH.js} +8 -8
  136. package/dist/pending-IPTBJ23E.js +20 -0
  137. package/dist/{pidfile-VZ37FTAR.js → pidfile-JYF2IO24.js} +9 -9
  138. package/dist/{record-7HI6JQOT.js → record-6CSKET4N.js} +9 -9
  139. package/dist/{relay-G54IZXQG.js → relay-DURC5GWY.js} +6 -6
  140. package/dist/{relay-protocol-AZICSZVX.js → relay-protocol-Y35SJFEB.js} +6 -6
  141. package/dist/{run-cmd-BBD4EXH6.js → run-cmd-T7GT6KM7.js} +17 -17
  142. package/dist/{runner-agents-SAQYJZCD.js → runner-agents-JFQQ7IB4.js} +4 -4
  143. package/dist/runner-env-AODHERZK.js +26 -0
  144. package/dist/{runner-identity-3YLJMM4D.js → runner-identity-ZHHB66RZ.js} +11 -11
  145. package/dist/{runner-key-WC5WBJGV.js → runner-key-TN5JBLEJ.js} +47 -47
  146. package/dist/{session-sender-UWGXAER2.js → session-sender-SAS3TI3A.js} +20 -20
  147. package/dist/{setup-cmd-HAGNGFBS.js → setup-cmd-WBFRSOMO.js} +18 -18
  148. package/dist/{setup-wiring-D2HLYTVS.js → setup-wiring-FFAB5KTV.js} +54 -54
  149. package/dist/{spec-cmd-XPWQ4T54.js → spec-cmd-PBGFGAXJ.js} +18 -18
  150. package/dist/{starter-pack-IGBCFHHQ.js → starter-pack-DQV55I24.js} +5 -5
  151. package/dist/state-LU4QEDY2.js +20 -0
  152. package/dist/{status-HCAHJHG6.js → status-2NQ4ECP3.js} +47 -47
  153. package/dist/{sync-cmd-TSGAPHFF.js → sync-cmd-4JT3G5OV.js} +19 -19
  154. package/dist/update-steps-HF7QE6DP.js +84 -0
  155. package/dist/{watch-JXAA3U7K.js → watch-QHYJED4N.js} +19 -19
  156. package/dist/{work-claim-cmd-CSDADS7K.js → work-claim-cmd-DX5GOTQH.js} +23 -23
  157. package/dist/{work-cmd-66DJQMMW.js → work-cmd-EU4NBOLZ.js} +17 -17
  158. package/dist/{work-comment-cmd-Z4U2Y5T2.js → work-comment-cmd-T755RNST.js} +19 -19
  159. package/dist/{work-demo-cmd-E5Q3EKV5.js → work-demo-cmd-T5GOAB6O.js} +17 -17
  160. package/dist/{work-logs-cmd-G7P4VCTO.js → work-logs-cmd-T63RWLKG.js} +17 -17
  161. package/dist/{work-mock-cmd-5IBKSKB2.js → work-mock-cmd-KSN7PZGO.js} +17 -17
  162. package/dist/{work-needs-attention-cmd-ALNTMUS6.js → work-needs-attention-cmd-NGKNSYT2.js} +17 -17
  163. package/dist/{work-no-change-cmd-YB4VOSIG.js → work-no-change-cmd-74TGMQHY.js} +17 -17
  164. package/dist/{work-open-pr-cmd-AI7QD33K.js → work-open-pr-cmd-D2EBUVDO.js} +18 -18
  165. package/dist/{work-pr-cmd-AGJ6LOUW.js → work-pr-cmd-2NZUROBY.js} +17 -17
  166. package/dist/{work-proofs-cmd-TFI2PP4I.js → work-proofs-cmd-M56HY7FO.js} +19 -19
  167. package/dist/{work-proofs-record-ZAOXECGN.js → work-proofs-record-LRZ4KDWU.js} +25 -25
  168. package/dist/{work-stop-cmd-JLSD4GJU.js → work-stop-cmd-IZPPBGGN.js} +17 -17
  169. package/package.json +1 -1
  170. package/skill-pack/maintained/outerlayer-amend/SKILL.md +5 -5
  171. package/skill-pack/maintained/outerlayer-amend/references/check-items.md +16 -16
  172. package/skill-pack/maintained/outerlayer-amend/references/failed-checks.md +2 -2
  173. package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -2
  174. package/skill-pack/maintained/outerlayer-build/references/release.md +1 -1
  175. package/skill-pack/maintained/outerlayer-cli/references/find-out-why-a-build-ended.md +2 -2
  176. package/dist/agent-setup-7FKQGCSO.js +0 -43
  177. package/dist/caller-XEOO6PSB.js +0 -25
  178. package/dist/host-checks-37CVOUM5.js +0 -83
  179. package/dist/host-key-UPZOPBZP.js +0 -20
  180. package/dist/init-CNCJQQ7Y.js +0 -83
  181. package/dist/init-cmd-VH7S2GEM.js +0 -55
  182. package/dist/install-cmd-IOM277GD.js +0 -28
  183. package/dist/launch-agent-B44AUNLN.js +0 -28
  184. package/dist/loop-SKXGHRG2.js +0 -93
  185. package/dist/machine-NQUFP4XE.js +0 -83
  186. package/dist/pending-SJXNCRQM.js +0 -20
  187. package/dist/runner-env-2XVR2AKP.js +0 -26
  188. package/dist/state-UDM6QYQ4.js +0 -20
  189. package/dist/update-steps-P2X653PW.js +0 -84
@@ -5,10 +5,10 @@ import { CLAUDE_CODE, CODEX, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative
5
5
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
6
6
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
- import { WARNING_CODES, forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector, isNewerThanSupported, bucketsFromTurns, costOfUsage, ZSTD_UNSUPPORTED_MESSAGE } from './chunk-KDBMWPDP.js';
9
- import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH } from './chunk-PDFCYYCC.js';
8
+ import { WARNING_CODES, forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector, isNewerThanSupported, bucketsFromTurns, costOfUsage, ZSTD_UNSUPPORTED_MESSAGE } from './chunk-2IDR4YTQ.js';
9
+ import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH } from './chunk-GBQRVYYE.js';
10
10
  import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
11
- import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
11
+ import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, readdirSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
12
12
  import { join as join$1, dirname, sep, basename, relative, delimiter } from 'path';
13
13
  import { fileURLToPath } from 'url';
14
14
  import { spawnSync } from 'child_process';
@@ -7722,23 +7722,14 @@ function normalizeRepoName(repo) {
7722
7722
  return repo.trim().toLowerCase();
7723
7723
  }
7724
7724
  var CONTEXT_PIN_FILENAME = ".outerlayer-pin.json";
7725
- var JUDGE_SUBJECTS = ["criteria", "none"];
7726
- var MAX_BRIEF_LENGTH = 300;
7727
- var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every check is a file in .outerlayer/validators/. Delete the extends line';
7728
- var FREED_BUILTINS = /* @__PURE__ */ new Set(["ci-passed", "code-review-ran"]);
7729
- var RETIRED_BUILTINS = /* @__PURE__ */ new Set([
7730
- "red-then-green",
7731
- "no-test-tampering",
7732
- "tests-after-last-edit",
7733
- "commits-from-sessions"
7734
- ]);
7725
+ var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every judge is a file in .outerlayer/judges/. Delete the extends line';
7735
7726
  var SLUG_PATTERN2 = /^[a-z][a-z0-9._-]{0,63}$/;
7736
7727
  var CONTROL_CHARS = /\p{Cc}/u;
7737
7728
  function inlineText(raw, max = 80) {
7738
7729
  const flat = raw.replace(/\p{Cc}+/gu, " ");
7739
7730
  return flat.length > max ? `${flat.slice(0, max - 1)}\u2026` : flat;
7740
7731
  }
7741
- var MAX_ROW_LENGTH = 200;
7732
+ var MAX_DESCRIPTION_LENGTH = 200;
7742
7733
  var MAX_NAME_LENGTH = 40;
7743
7734
  var MAX_GLOB_LENGTH = 200;
7744
7735
  var MAX_WHEN_PATHS = 20;
@@ -7763,7 +7754,7 @@ function parsePolicyFile(file) {
7763
7754
  const problems = [];
7764
7755
  const fail = (problem) => {
7765
7756
  problems.push({ file: file.path, problem });
7766
- return { overrides: {}, mergeGate: null, review: null, testProof: null, criteriaMissing: null, criteriaJudge: null, criteriaJudgeBrief: null, problems };
7757
+ return { mergeGate: null, review: null, testProof: null, criteriaMissing: null, criteriaJudge: null, criteriaJudgeBrief: null, problems };
7767
7758
  };
7768
7759
  let root;
7769
7760
  try {
@@ -7775,7 +7766,7 @@ function parsePolicyFile(file) {
7775
7766
  if (!isRecord(root)) return fail("must be a YAML mapping");
7776
7767
  if (root["extends"] !== void 0) return fail(EXTENDS_PROBLEM);
7777
7768
  for (const key of Object.keys(root)) {
7778
- if (key !== "validators" && key !== "merge_gate" && key !== "review" && key !== "build" && key !== "criteria") {
7769
+ if (key !== "merge_gate" && key !== "review" && key !== "build" && key !== "criteria") {
7779
7770
  return fail(`unknown key "${inlineText(key)}"`);
7780
7771
  }
7781
7772
  }
@@ -7853,70 +7844,74 @@ function parsePolicyFile(file) {
7853
7844
  return fail(`review has value "${inlineText(String(root["review"]))}" \u2014 use required or optional`);
7854
7845
  }
7855
7846
  }
7856
- const overrides = {};
7857
- const validators = root["validators"];
7858
- if (validators !== void 0) {
7859
- if (!isRecord(validators)) return fail(`"validators" must be a mapping of id to level`);
7860
- for (const [id, rawLevel] of Object.entries(validators)) {
7861
- const level = parseLevel(rawLevel);
7862
- if (level === null) {
7863
- return fail(`validator "${inlineText(id)}" has level "${inlineText(String(rawLevel))}" \u2014 use warn, info, or off`);
7864
- }
7865
- overrides[id] = level;
7866
- }
7867
- }
7868
- return { overrides, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
7847
+ return { mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
7848
+ }
7849
+ function splitJudgeFile(content) {
7850
+ const text = content.replace(/^\uFEFF/, "");
7851
+ const lines = text.split(/\r?\n/);
7852
+ if (lines[0].trimEnd() !== "---") return { frontmatter: null, body: text };
7853
+ const end = lines.findIndex((line, index) => index > 0 && line.trimEnd() === "---");
7854
+ if (end === -1) return null;
7855
+ return { frontmatter: lines.slice(1, end).join("\n"), body: lines.slice(end + 1).join("\n") };
7869
7856
  }
7870
- var CUSTOM_KEYS = /* @__PURE__ */ new Set(["id", "kind", "name", "row", "level", "when", "run"]);
7871
- function parseCustomFile(file, problems) {
7872
- var _a;
7857
+ var JUDGE_KEYS = /* @__PURE__ */ new Set(["name", "description", "when", "counts", "for_each"]);
7858
+ var JUDGE_FILE_NAME = /([^/]*)\.md$/;
7859
+ function parseJudgeFile(file, problems) {
7860
+ var _a, _b, _c;
7873
7861
  const fail = (problem) => {
7874
7862
  problems.push({ file: file.path, problem });
7875
7863
  return null;
7876
7864
  };
7877
- let root;
7878
- try {
7879
- root = (0, import_yaml.parse)(file.content);
7880
- } catch (error) {
7881
- return fail(`not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
7882
- }
7883
- if (!isRecord(root)) return fail("must be a YAML mapping");
7884
- if (root["id"] === CODE_REVIEW_NAME) return null;
7885
- if (root["id"] === CRITERIA_JUDGE_NAME) return null;
7886
- for (const key of Object.keys(root)) {
7887
- if (!CUSTOM_KEYS.has(key)) return fail(`unknown key "${inlineText(key)}"`);
7865
+ const id = (_b = (_a = JUDGE_FILE_NAME.exec(file.path)) == null ? void 0 : _a[1]) != null ? _b : "";
7866
+ if (!SLUG_PATTERN2.test(id)) {
7867
+ return fail(`the file name must be a lowercase id and end in .md (got ${inlineText(JSON.stringify(file.path.split("/").pop()))})`);
7888
7868
  }
7889
- const id = root["id"];
7890
- if (typeof id !== "string" || !SLUG_PATTERN2.test(id)) {
7891
- return fail(`"id" must be lowercase id characters (got ${inlineText(JSON.stringify(root["id"]))})`);
7869
+ if (id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) {
7870
+ return fail(`"${id}" is the name of a built-in step \u2014 rename the file`);
7892
7871
  }
7893
- const kind = root["kind"];
7894
- if (kind !== "validation") {
7895
- return fail(`"${id}" has kind "${inlineText(String(kind))}" \u2014 use validation`);
7872
+ if (RESERVED_EMIT_NAMES.includes(id)) {
7873
+ return fail(`"${id}" is a reserved name \u2014 rename the file`);
7896
7874
  }
7897
- const rawRow = root["row"];
7898
- if (typeof rawRow !== "string" || rawRow.trim() === "") {
7899
- return fail(`"${id}" needs a "row" \u2014 the sentence its result renders as`);
7875
+ const parts = splitJudgeFile(file.content);
7876
+ if (parts === null) return fail(`"${id}" frontmatter has no closing "---" line`);
7877
+ let root = {};
7878
+ if (parts.frontmatter !== null) {
7879
+ try {
7880
+ root = (0, import_yaml.parse)(parts.frontmatter);
7881
+ } catch (error) {
7882
+ return fail(`"${id}" frontmatter is not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
7883
+ }
7884
+ if (root === null) root = {};
7900
7885
  }
7901
- const row = rawRow.trim();
7902
- if (CONTROL_CHARS.test(row) || row.length > MAX_ROW_LENGTH) {
7903
- return fail(`"${id}" row must be a single line of at most ${MAX_ROW_LENGTH} characters`);
7886
+ if (!isRecord(root)) return fail(`"${id}" frontmatter must be a YAML mapping`);
7887
+ for (const key of Object.keys(root)) {
7888
+ if (!JUDGE_KEYS.has(key)) return fail(`"${id}" has unknown key "${inlineText(key)}"`);
7904
7889
  }
7905
7890
  const rawName = root["name"];
7906
7891
  let name = null;
7907
7892
  if (rawName !== void 0) {
7908
- if (typeof rawName !== "string") {
7909
- return fail(`"${id}" name must be one short line`);
7910
- }
7911
- const trimmedName = rawName.trim();
7893
+ const trimmedName = typeof rawName === "string" ? rawName.trim() : "";
7912
7894
  if (trimmedName === "" || CONTROL_CHARS.test(trimmedName) || trimmedName.length > MAX_NAME_LENGTH) {
7913
- return fail(`"${id}" name must be one short line`);
7895
+ return fail(`"${id}" name must be one line of at most ${MAX_NAME_LENGTH} characters`);
7914
7896
  }
7915
7897
  name = trimmedName;
7916
7898
  }
7917
- const level = root["level"] === void 0 ? "warn" : parseLevel(root["level"]);
7918
- if (level === null) {
7919
- return fail(`"${id}" has level "${inlineText(String(root["level"]))}" \u2014 use warn, info, or off`);
7899
+ const rawDescription = root["description"];
7900
+ let description = null;
7901
+ if (rawDescription !== void 0) {
7902
+ const trimmedDescription = typeof rawDescription === "string" ? rawDescription.trim() : "";
7903
+ if (trimmedDescription === "" || CONTROL_CHARS.test(trimmedDescription) || trimmedDescription.length > MAX_DESCRIPTION_LENGTH) {
7904
+ return fail(`"${id}" description must be one line of at most ${MAX_DESCRIPTION_LENGTH} characters`);
7905
+ }
7906
+ description = trimmedDescription;
7907
+ }
7908
+ const counts = (_c = root["counts"]) != null ? _c : false;
7909
+ if (typeof counts !== "boolean") {
7910
+ return fail(`"${id}" has counts "${inlineText(String(counts))}" \u2014 use true or false`);
7911
+ }
7912
+ const forEach = root["for_each"];
7913
+ if (forEach !== void 0 && forEach !== "criterion") {
7914
+ return fail(`"${id}" has for_each "${inlineText(String(forEach))}" \u2014 use criterion, or leave the key out`);
7920
7915
  }
7921
7916
  let whenPaths = null;
7922
7917
  let whenIssueType = null;
@@ -7924,12 +7919,8 @@ function parseCustomFile(file, problems) {
7924
7919
  let whenRepositories;
7925
7920
  if (root["when"] !== void 0) {
7926
7921
  const when = root["when"];
7927
- if (!isRecord(when) || Object.keys(when).some(
7928
- (key) => key !== "paths" && key !== "repositories" && key !== "issue.type" && key !== "issue.labels"
7929
- ) || Object.keys(when).length === 0) {
7930
- return fail(
7931
- `"${id}" when: only "paths", "repositories", "issue.type", and "issue.labels" scoping is supported`
7932
- );
7922
+ if (!isRecord(when) || Object.keys(when).some((key) => key !== "paths" && key !== "repositories" && key !== "issue") || Object.keys(when).length === 0) {
7923
+ return fail(`"${id}" when: only "paths", "repositories" and "issue" scoping is supported`);
7933
7924
  }
7934
7925
  const paths = when["paths"];
7935
7926
  if (paths !== void 0) {
@@ -7959,75 +7950,47 @@ function parseCustomFile(file, problems) {
7959
7950
  }
7960
7951
  whenRepositories = repositories.map((name2) => name2.trim());
7961
7952
  }
7962
- const issueType = when["issue.type"];
7963
- if (issueType !== void 0) {
7964
- if (typeof issueType !== "string" || issueType.trim() === "") {
7965
- return fail(`"${id}" when.issue.type must be a non-empty string`);
7953
+ const issue = when["issue"];
7954
+ if (issue !== void 0) {
7955
+ if (!isRecord(issue) || Object.keys(issue).some((key) => key !== "type" && key !== "labels") || Object.keys(issue).length === 0) {
7956
+ return fail(`"${id}" when.issue: only "type" and "labels" scoping is supported`);
7966
7957
  }
7967
- whenIssueType = issueType.trim();
7968
- }
7969
- const issueLabels = when["issue.labels"];
7970
- if (issueLabels !== void 0) {
7971
- if (!Array.isArray(issueLabels) || issueLabels.length === 0 || issueLabels.some((label) => typeof label !== "string" || label.trim() === "")) {
7972
- return fail(`"${id}" when.issue.labels must be a non-empty list of label names`);
7958
+ const issueType = issue["type"];
7959
+ if (issueType !== void 0) {
7960
+ if (typeof issueType !== "string" || issueType.trim() === "") {
7961
+ return fail(`"${id}" when.issue.type must be a non-empty string`);
7962
+ }
7963
+ whenIssueType = issueType.trim();
7964
+ }
7965
+ const issueLabels = issue["labels"];
7966
+ if (issueLabels !== void 0) {
7967
+ if (!Array.isArray(issueLabels) || issueLabels.length === 0 || issueLabels.some((label) => typeof label !== "string" || label.trim() === "")) {
7968
+ return fail(`"${id}" when.issue.labels must be a non-empty list of label names`);
7969
+ }
7970
+ whenIssueLabels = issueLabels.map((label) => label.trim());
7973
7971
  }
7974
- whenIssueLabels = issueLabels.map((label) => label.trim());
7975
7972
  }
7976
7973
  }
7977
- const run = root["run"];
7978
- if (!isRecord(run) || Object.keys(run).some((key) => key !== "where" && key !== "emit" && key !== "judge")) {
7979
- return fail(`"${id}" needs a "run" mapping of "where", "emit" and "judge"`);
7980
- }
7981
- if (run["where"] !== "host") {
7982
- return fail(`"${id}" run.where must be host \u2014 a runner runs the judge after a build`);
7983
- }
7984
- const emit = run["emit"];
7985
- if (typeof emit !== "string" || !SLUG_PATTERN2.test(emit)) {
7986
- return fail(`"${id}" run.emit must name the emit (id characters only)`);
7987
- }
7988
- if (RESERVED_EMIT_NAMES.includes(emit)) {
7989
- return fail(
7990
- `"${id}" run.emit "${emit}" is reserved \u2014 \`outerlayer emit ${emit}\` is a subcommand, so a check cannot be recorded under that name`
7991
- );
7992
- }
7993
- const rawJudge = run["judge"];
7994
- if (rawJudge === void 0) {
7995
- return fail(`"${id}" run needs a "judge" \u2014 the brief a runner has an agent follow`);
7996
- }
7997
- if (!isRecord(rawJudge) || Object.keys(rawJudge).some((key) => key !== "brief" && key !== "subjects")) {
7998
- return fail(`"${id}" run.judge must be a mapping with a "brief" and, optionally, "subjects"`);
7999
- }
8000
- const rawSubjects = (_a = rawJudge["subjects"]) != null ? _a : "criteria";
8001
- if (typeof rawSubjects !== "string" || !JUDGE_SUBJECTS.includes(rawSubjects)) {
8002
- return fail(`"${id}" run.judge.subjects must be one of ${JUDGE_SUBJECTS.map((value) => `"${value}"`).join(", ")}`);
8003
- }
8004
- const brief = rawJudge["brief"];
8005
- if (typeof brief !== "string" || brief.trim() === "" || brief.length > MAX_BRIEF_LENGTH || brief.startsWith("/") || brief.split("/").includes("..")) {
8006
- return fail(
8007
- `"${id}" run.judge.brief must be a relative path inside the repository, of at most ${MAX_BRIEF_LENGTH} characters, with no ".." segment`
8008
- );
7974
+ const instructions = parts.body.trim();
7975
+ if (instructions === "") {
7976
+ return fail(`"${id}" has no instructions \u2014 write what the judge decides below the frontmatter`);
8009
7977
  }
8010
7978
  return {
8011
- def: {
8012
- id,
8013
- name,
8014
- row: row.trim(),
8015
- level,
8016
- whenPaths,
8017
- whenIssueType,
8018
- whenIssueLabels,
8019
- ...whenRepositories === void 0 ? {} : { whenRepositories, whenRepositoriesFile: file.path },
8020
- declaresEmit: emit,
8021
- judge: { brief: brief.trim(), subjects: rawSubjects }
8022
- },
8023
- file: file.path
7979
+ id,
7980
+ name,
7981
+ description,
7982
+ level: counts ? "warn" : "info",
7983
+ whenPaths,
7984
+ whenIssueType,
7985
+ whenIssueLabels,
7986
+ ...whenRepositories === void 0 ? {} : { whenRepositories, whenRepositoriesFile: file.path },
7987
+ judge: { instructions, subjects: forEach === "criterion" ? "criteria" : "none" }
8024
7988
  };
8025
7989
  }
8026
- function parsePolicy(policyFile, validatorFiles) {
8027
- var _a, _b, _c, _d, _e, _f;
7990
+ function parsePolicy(policyFile, judgeFiles) {
7991
+ var _a, _b, _c, _d, _e;
8028
7992
  const problems = [];
8029
7993
  const policy = policyFile ? parsePolicyFile(policyFile) : {
8030
- overrides: {},
8031
7994
  mergeGate: null,
8032
7995
  review: null,
8033
7996
  testProof: null,
@@ -8042,55 +8005,13 @@ function parsePolicy(policyFile, validatorFiles) {
8042
8005
  const testProof = (_c = policy.testProof) != null ? _c : "any";
8043
8006
  const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
8044
8007
  const criteriaJudge = (_e = policy.criteriaJudge) != null ? _e : "warn";
8045
- const parsed = [];
8046
- const seenIds = /* @__PURE__ */ new Set();
8047
- for (const file of [...validatorFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
8048
- const result = parseCustomFile(file, problems);
8049
- if (result === null) continue;
8050
- const id = result.def.id;
8051
- const collidesWithBuiltin = RETIRED_BUILTINS.has(id);
8052
- if (seenIds.has(id) || collidesWithBuiltin) {
8053
- problems.push({
8054
- file: file.path,
8055
- problem: collidesWithBuiltin ? `"${id}" collides with a built-in validator id` : `duplicate validator id "${id}"`
8056
- });
8057
- continue;
8058
- }
8059
- seenIds.add(id);
8060
- parsed.push(result);
8061
- }
8062
- const emitOwners = /* @__PURE__ */ new Map();
8063
- const deduped = parsed.filter((p) => {
8064
- const owner = emitOwners.get(p.def.declaresEmit);
8065
- if (owner === void 0) {
8066
- emitOwners.set(p.def.declaresEmit, p.def.id);
8067
- return true;
8068
- }
8069
- problems.push({
8070
- file: p.file,
8071
- problem: `"${p.def.id}" declares emit "${p.def.declaresEmit}" already declared by "${owner}"`
8072
- });
8073
- return false;
8074
- });
8075
- const sorted = deduped.map((p) => p.def).sort((a, b) => a.id < b.id ? -1 : 1);
8076
- const levels = {};
8077
- for (const custom of sorted) levels[custom.id] = custom.level;
8078
- for (const [id, level] of Object.entries(policy.overrides)) {
8079
- if (RETIRED_BUILTINS.has(id) || id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) continue;
8080
- if (FREED_BUILTINS.has(id) && !(id in levels)) continue;
8081
- if (!(id in levels)) {
8082
- problems.push({
8083
- file: (_f = policyFile == null ? void 0 : policyFile.path) != null ? _f : ".outerlayer/policy.yaml",
8084
- problem: `policy levels unknown validator "${id}"`
8085
- });
8086
- continue;
8087
- }
8088
- levels[id] = level;
8008
+ const customs = [];
8009
+ for (const file of [...judgeFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
8010
+ const def = parseJudgeFile(file, problems);
8011
+ if (def !== null) customs.push(def);
8089
8012
  }
8090
- const customs = sorted.map(
8091
- (def) => levels[def.id] === def.level ? def : { ...def, level: levels[def.id] }
8092
- );
8093
- return { levels, customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
8013
+ customs.sort((a, b) => a.id < b.id ? -1 : 1);
8014
+ return { customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
8094
8015
  }
8095
8016
  var FILES_PLACEHOLDER = "{files}";
8096
8017
  function isRecord2(value) {
@@ -12487,17 +12408,8 @@ function namesCore(text) {
12487
12408
  }
12488
12409
  function requiredByBuild(repoRoot, skill, base) {
12489
12410
  if (skill !== "outerlayer-build") return false;
12490
- const named = (file, pattern = "outerlayer-build") => {
12491
- try {
12492
- return readFileSync(file, "utf8").includes(pattern);
12493
- } catch {
12494
- return false;
12495
- }
12496
- };
12497
- if (named(join$1(repoRoot, skillDir("build", base), "SKILL.md"), RELATIVE_CORE)) return true;
12498
- const dir = join$1(repoRoot, ".outerlayer", "validators");
12499
12411
  try {
12500
- return readdirSync(dir).some((name) => name.endsWith(".yaml") && named(join$1(dir, name)));
12412
+ return readFileSync(join$1(repoRoot, skillDir("build", base), "SKILL.md"), "utf8").includes(RELATIVE_CORE);
12501
12413
  } catch {
12502
12414
  return false;
12503
12415
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { STALL_EXIT } from './chunk-MQ6SKVLA.js';
4
- import { defaultAgents, agentById } from './chunk-N6LLARIY.js';
4
+ import { defaultAgents, agentById } from './chunk-22UMHY5K.js';
5
5
  import { PROVIDERS, LEGACY_AGENT, isModelId } from './chunk-7FAKHR6W.js';
6
6
  import { join, dirname } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-PDFCYYCC.js';
3
+ import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-GBQRVYYE.js';
4
4
  import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
5
5
  import * as sp5 from 'path';
6
6
  import { join, relative, dirname, resolve, sep } from 'path';
@@ -1,47 +1,47 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { RUNNER_PROTOCOL } from './chunk-PDZEPH24.js';
4
- import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-HOFY6FVJ.js';
4
+ import { MAX_TEST_FILE_BYTES, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, itemsSentence, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, hostCheckOf } from './chunk-GCT2J4Y7.js';
5
5
  import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
6
- import { upgradedStarterText } from './chunk-WOWX3FJR.js';
7
- import { runnerImageVersion } from './chunk-AYDWSGND.js';
8
- import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-DSPEJGOW.js';
9
- import { describeCallFailure, shortClaim, retrySend, formatDuration, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-V2F4CH7C.js';
10
- import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-GFIL4S2L.js';
11
- import { writeDockerClientConfig } from './chunk-7G5CPEG5.js';
12
- import { senderPidfile } from './chunk-HGFQMUJ5.js';
13
- import { installScrubContext } from './chunk-LKGQY4GP.js';
6
+ import { upgradedStarterText } from './chunk-CXCUBYZB.js';
7
+ import { runnerImageVersion } from './chunk-C3OJZODB.js';
8
+ import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, replaceFile, isAgentName, credentialFromStdin } from './chunk-I3NK6WNF.js';
9
+ import { describeCallFailure, shortClaim, retrySend, formatDuration, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-3HWIA4F7.js';
10
+ import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-OKYZSH7K.js';
11
+ import { writeDockerClientConfig } from './chunk-YNPPXB57.js';
12
+ import { senderPidfile } from './chunk-QTH3ZPB7.js';
13
+ import { installScrubContext } from './chunk-CRFMJVYJ.js';
14
14
  import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
15
- import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-LVKUAUTK.js';
15
+ import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-DRC76AT6.js';
16
16
  import { receiveFiles } from './chunk-NN33FYXG.js';
17
- import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-QLUK7R26.js';
18
- import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-L3VFRZHY.js';
17
+ import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, prepareImageBuild, readBranchHead, diffBetween, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-LWOMQZNJ.js';
18
+ import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-VPPCTN32.js';
19
19
  import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
20
20
  import { currentCliBuild } from './chunk-OGFGZQA3.js';
21
- import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-2JO3EPBG.js';
22
- import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-7EHPZMZL.js';
23
- import { getJson, postJson, WorkCommandError, isSignatureRefusal } from './chunk-NOPBVN4D.js';
24
- import { sanitizeTerminal, planArtifactUpload } from './chunk-QW6TKDBL.js';
25
- import { keyRunnerFactory, DEFAULT_WORKSPACE_KEEP_DAYS, optionalEgress, runnerCredentialProblem, builtinKind, readOnlyOption, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, allowHostProblem, systemClock, emptyEgressCounts, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, hostAllowed, sandboxTimeLimitMinutes, networkOf, DEFAULT_SETUP_MINUTES, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-W4Q4GFDF.js';
26
- import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-ONNIMNZH.js';
27
- import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-LL64MSPN.js';
28
- import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-DRSF23ZR.js';
29
- import { sharedSkillNames, skillConflictMessage } from './chunk-U2ETU6EK.js';
21
+ import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-3WCVUS2Z.js';
22
+ import { linkVsockSockets, GUEST_CID, socketPathProblem, vsockLinks, LEASE_LINK } from './chunk-4GLGLMDX.js';
23
+ import { getJson, postJson, WorkCommandError, isSignatureRefusal } from './chunk-JVKBRZFL.js';
24
+ import { sanitizeTerminal, planArtifactUpload } from './chunk-V3NMSDOC.js';
25
+ import { keyRunnerFactory, DEFAULT_WORKSPACE_KEEP_DAYS, optionalEgress, runnerCredentialProblem, builtinKind, readOnlyOption, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, allowHostProblem, systemClock, emptyEgressCounts, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, hostAllowed, sandboxTimeLimitMinutes, networkOf, DEFAULT_SETUP_MINUTES, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-BYYJOL4H.js';
26
+ import { volumeBytes, formatBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-6LJ6HOMB.js';
27
+ import { spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, readDu, firstLine, JUDGE_MAX_TURNS, writeJobFile, readJobFile, readJobFileChecked, NETWORK_READY_FILE, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, judgeProgram, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, NODE, JUDGE_HOME, JUDGE_REPORT, judgeCommand, WORKSPACE_LABEL, COMMAND_DIR, prepareRunArgs, networkHelperName, containerRunArgs, judgeProgramRecord, mountableHome, homeCopyRunArgs, MAX_ITEMS_BYTES, identityRunArgs, parseIdentity, networkHelperRunArgs, identityScript, identityArgs, homeCopyScript, homeCopyArgs, SAVED_STATE_LABEL } from './chunk-3XPNEYTJ.js';
28
+ import { universalImagePending, writeSanitizedRecipe, classifyProperties, RecipeError, DOCKER_FEATURE } from './chunk-JSJRXFAF.js';
29
+ import { sharedSkillNames, skillConflictMessage } from './chunk-P5IFJ6LR.js';
30
30
  import { readCloudConfig } from './chunk-HWVMRETT.js';
31
- import { signerFor } from './chunk-6X7XFVPC.js';
32
- import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-IHLN5VGD.js';
33
- import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-7EBDSDVC.js';
34
- import { agentCredential, UNKNOWN_TRANSPORT_REASON, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, RELAY_USER, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, DOCKER_DESKTOP_REASON, RELAY_ID } from './chunk-BIFQP6OI.js';
35
- import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, realFdStorePort, reportedAgents, removedAgentCredentialValues, currentAgentCredential, fdName } from './chunk-CEIILR7M.js';
31
+ import { signerFor } from './chunk-F4EWIL7N.js';
32
+ import { RUNNER_FILE_MODE, sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, workspacesDir, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, vsockPath, builderConsolePath, diskTemplatesDir, jobConsolePath, deliveryDir, rootfsPathFor, SHIM_DIR } from './chunk-ZKL4BQAP.js';
33
+ import { dataPlaneOf, sandboxCallOf, SandboxError, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, buildEnvironment, CHECKOUT_DIR, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, trustEnvironment, checkoutPath, UsageLedger, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, parseProxied, retryAfterMsOf, proxyEnvironment, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, readBundleScript, applyTrust, describeSandboxError, dropBuildAuthority, BUILD_HOME, RELAY_PORT, variablesFor, carried6to4, classifyAddress, primaryOf, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, withheldCredentialLine, providerMayAnswerLater, repositoryPath, lifecycleWorkdir, toolProxyEnvironment, withMiseVariables, isMiseVariableAllowed } from './chunk-XJ5MAYUA.js';
34
+ import { agentCredential, UNKNOWN_TRANSPORT_REASON, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, RELAY_USER, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, DOCKER_DESKTOP_REASON, RELAY_ID } from './chunk-4DTWHAXO.js';
35
+ import { jobCredentialProblem, parseRunnerEnv, findAgentCredential, rejectedCredentialText, realFdStorePort, reportedAgents, removedAgentCredentialValues, currentAgentCredential, fdName } from './chunk-ATGEXIO3.js';
36
36
  import { versionAtLeast } from './chunk-LIPSGE6C.js';
37
- import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, strippedVariables, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf, agentMissingFromImage } from './chunk-LFWNVVLU.js';
38
- import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-N6LLARIY.js';
37
+ import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, commandAgentId, defaultCommandFor, defaultCommandLine, runnerAgents, credentialAgent, stallReason, judgeAgent, agentErrorReason, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, defaultAgentId, strippedVariables, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf, agentMissingFromImage } from './chunk-2BLKGA6O.js';
38
+ import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-22UMHY5K.js';
39
39
  import { PROVIDERS } from './chunk-7FAKHR6W.js';
40
40
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
41
41
  import { resolveVersion } from './chunk-RA3O54FC.js';
42
42
  import { homeFromEnv } from './chunk-352DHUTP.js';
43
- import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot } from './chunk-KDBMWPDP.js';
44
- import { UNREVIEWED_FILES_ITEM_ID, CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, JUDGE_NOT_RUN_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH } from './chunk-PDFCYYCC.js';
43
+ import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot } from './chunk-2IDR4YTQ.js';
44
+ import { UNREVIEWED_FILES_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CRITERIA_JUDGE_NAME, CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, CHECK_ITEM_HREF_MAX_LENGTH } from './chunk-GBQRVYYE.js';
45
45
  import { randomUUID, createHash, randomBytes } from 'crypto';
46
46
  import { existsSync, statSync, appendFileSync, rmSync, mkdirSync, readFileSync, mkdtempSync, readdirSync, accessSync, constants, writeFileSync, openSync, closeSync, lstatSync, renameSync, rmdirSync, unlinkSync, chmodSync, createReadStream, readSync, realpathSync, truncateSync, cpSync, writeSync, createWriteStream, copyFileSync, fstatSync, linkSync } from 'fs';
47
47
  import { join, isAbsolute, dirname, delimiter, basename, sep, relative, resolve } from 'path';
@@ -160,13 +160,13 @@ function decideFromEvaluation(read) {
160
160
  const evaluation = read.evaluation;
161
161
  if (evaluation === void 0) return { outcome: "ok" };
162
162
  if (evaluation === null) return { outcome: "incomplete", reason: "the item has no evidence evaluation yet" };
163
- if (evaluation.open.length > 0) return { outcome: "incomplete", reason: fit("checks not passing: ", evaluation.open.map(rowText)) };
163
+ if (evaluation.open.length > 0) return { outcome: "incomplete", reason: fit("not passing: ", evaluation.open.map(rowText)) };
164
164
  if (evaluation.verdict === "pass") return { outcome: "ok" };
165
165
  if (evaluation.verdict === "waiting" && evaluation.waitingOn === "links") {
166
166
  return { outcome: "incomplete", reason: "the item's evidence was still waiting on session links to be confirmed" };
167
167
  }
168
168
  if (evaluation.verdict === "waiting" && evaluation.waitingOn === "claim") {
169
- return { outcome: "incomplete", reason: "the item's required checks had no result when the build ended" };
169
+ return { outcome: "incomplete", reason: "the item's judges had no result when the build ended" };
170
170
  }
171
171
  return { outcome: "incomplete", reason: fit("the item's verdict is not passing: ", [evaluation.sentence || evaluation.verdict]) };
172
172
  }
@@ -12963,7 +12963,7 @@ async function runJudge(input) {
12963
12963
  const where = { repository: at.repository, head: at.head, branch: at.branch };
12964
12964
  if (at.answer?.ok === true) {
12965
12965
  const answered = at.items ?? [];
12966
- const failing = itemsSentence(answered, { one: "check item", many: "check items" });
12966
+ const failing = itemsSentence(answered, { one: "judge item", many: "judge items" });
12967
12967
  const said2 = at.answer.answer.result ?? (at.reply.kind === "answered" ? at.reply.verdict : void 0);
12968
12968
  const result = said2 === "pass" && failing === void 0 ? "pass" : "fail";
12969
12969
  const reason = failing ?? (said2 === "fail" ? "the judge failed the change" : said2 === void 0 ? at.reply.kind === "none" ? at.reply.reason : "the judge gave no result" : void 0);
@@ -12988,7 +12988,7 @@ async function runJudge(input) {
12988
12988
  if (items === void 0) return void 0;
12989
12989
  const parsed = CheckItemsSchema.safeParse(items);
12990
12990
  if (parsed.success) return parsed.data;
12991
- log.error(`${tag} the judge's check items were left off the result: ${parsed.error.issues.map((issue) => issue.message).join("; ")}`);
12991
+ log.error(`${tag} the judge items were left off the result: ${parsed.error.issues.map((issue) => issue.message).join("; ")}`);
12992
12992
  return void 0;
12993
12993
  }
12994
12994
  async function uploadReport(check, report, at) {
@@ -14162,8 +14162,8 @@ async function recoverLostJobs(jobsDirPath, config, deps) {
14162
14162
  }
14163
14163
 
14164
14164
  // src/runner/host-checks.ts
14165
- var MAX_VALIDATOR_FILES = 20;
14166
- var VALIDATORS_DIR = ".outerlayer/validators";
14165
+ var MAX_JUDGE_FILES = 20;
14166
+ var JUDGES_DIR = ".outerlayer/judges";
14167
14167
  var POLICY_FILE = ".outerlayer/policy.yaml";
14168
14168
  function readInside(root, rel) {
14169
14169
  const path = join(root, rel);
@@ -14198,8 +14198,8 @@ function readBrief(root, brief, log, tag = "") {
14198
14198
  }
14199
14199
  return own;
14200
14200
  }
14201
- function validatorFilesIn(root) {
14202
- const dir = join(root, VALIDATORS_DIR);
14201
+ function judgeFilesIn(root) {
14202
+ const dir = join(root, JUDGES_DIR);
14203
14203
  let names;
14204
14204
  try {
14205
14205
  if (!lstatSync(dir).isDirectory()) return [];
@@ -14208,8 +14208,8 @@ function validatorFilesIn(root) {
14208
14208
  return [];
14209
14209
  }
14210
14210
  const files = [];
14211
- for (const name of names.filter((entry) => /\.ya?ml$/.test(entry)).sort().slice(0, MAX_VALIDATOR_FILES)) {
14212
- const path = `${VALIDATORS_DIR}/${name}`;
14211
+ for (const name of names.filter((entry) => entry.endsWith(".md")).sort().slice(0, MAX_JUDGE_FILES)) {
14212
+ const path = `${JUDGES_DIR}/${name}`;
14213
14213
  const content = readInside(root, path);
14214
14214
  if (content !== void 0) files.push({ path, content });
14215
14215
  }
@@ -14241,11 +14241,10 @@ function checksIn(root, log, tag) {
14241
14241
  const base = existsSync(join(root, AGENTS_SKILLS_BASE)) ? AGENTS_SKILLS_BASE : OUTERLAYER_SKILLS_BASE;
14242
14242
  const policyText = readInside(root, POLICY_FILE);
14243
14243
  const policy = policyText === void 0 ? null : asHostReads({ path: POLICY_FILE, content: policyText }, base, log, tag);
14244
- const loaded = parsePolicy(policy, validatorFilesIn(root));
14244
+ const loaded = parsePolicy(policy, judgeFilesIn(root));
14245
14245
  for (const problem of loaded.problems) log.error(`${tag} ${problem.file}: ${problem.problem}`);
14246
- const declared = loaded.customs.filter((def) => def.level !== "off" && def.declaresEmit !== CODE_REVIEW_NAME && def.declaresEmit !== CRITERIA_JUDGE_NAME);
14247
14246
  const checks = loaded.criteriaJudge === "off" ? [] : [criteriaJudgeCheck(root, loaded.criteriaJudgeBrief, log, tag)];
14248
- for (const def of declared) checks.push({ name: def.declaresEmit, judge: { brief: def.judge.brief, text: readBrief(root, def.judge.brief, log, tag), subjects: def.judge.subjects } });
14247
+ for (const def of loaded.customs) checks.push({ name: def.id, judge: { brief: `${JUDGES_DIR}/${def.id}.md`, text: def.judge.instructions, subjects: def.judge.subjects } });
14249
14248
  return { checks };
14250
14249
  }
14251
14250
  function builtOf(job) {
@@ -14287,7 +14286,7 @@ async function readDefinitions(input, repository, scratch, token, tokens) {
14287
14286
  if (commit === void 0) return { ok: false, reason: "the repository's default branch could not be read" };
14288
14287
  const fetched = await (deps.fetchCommit ?? fetchCommit)({ remote, dir: repo, commit, token });
14289
14288
  if (!fetched.ok) return { ok: false, reason: fetched.reason };
14290
- deps.log.line(`${tag} check definitions read at ${commit.slice(0, 12)}`);
14289
+ deps.log.line(`${tag} judges read at ${commit.slice(0, 12)}`);
14291
14290
  return { ok: true, ...checksIn(repo, deps.log, tag) };
14292
14291
  }
14293
14292
  function timeoutAfter(ms, sleep) {
@@ -14308,7 +14307,7 @@ function makeRecorder(input) {
14308
14307
  return async (name, result, sentence, opts = {}) => {
14309
14308
  signer ??= await signerFor(config.configPath);
14310
14309
  const keyTail = opts.keyTail ?? "";
14311
- const body = sentence === void 0 ? void 0 : cutReasonLine(`${scrubReason(sentence, config, void 0, jobDir) ?? "check failed"}${keyTail}`);
14310
+ const body = sentence === void 0 ? void 0 : cutReasonLine(`${scrubReason(sentence, config, void 0, jobDir) ?? "failed with no reason"}${keyTail}`);
14312
14311
  const clientEmitId = `host-${createHash("sha256").update(`${job.claimId}:${job.startedAt}:${name}${opts.idTag === void 0 ? "" : `:${opts.idTag}`}`).digest("hex").slice(0, 40)}`;
14313
14312
  const sent = await retrySend(
14314
14313
  () => postJson(
@@ -14327,8 +14326,8 @@ function makeRecorder(input) {
14327
14326
  ),
14328
14327
  { now: deps.now }
14329
14328
  );
14330
- if (sent.ok) deps.log.line(`${tag} check ${name} ${result}${body === void 0 ? "" : `: ${body}`}`);
14331
- else deps.log.error(`${tag} check ${name} ${result} could not be recorded: ${sent.reason}`);
14329
+ if (sent.ok) deps.log.line(`${tag} result ${name} ${result}${body === void 0 ? "" : `: ${body}`}`);
14330
+ else deps.log.error(`${tag} result ${name} ${result} could not be recorded: ${sent.reason}`);
14332
14331
  };
14333
14332
  }
14334
14333