repo-harness 0.26.5 → 0.27.0

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 (302) hide show
  1. package/README.md +1 -1
  2. package/assets/reference-configs/herdr-notify.md +36 -2
  3. package/assets/reference-configs/hook-operations.md +8 -1
  4. package/assets/reference-configs/release-deploy.md +7 -0
  5. package/assets/skill-version.json +2 -2
  6. package/assets/skills/repo-harness-cross-review/references/generic-review.md +4 -2
  7. package/assets/skills/repo-harness-issue-flow/references/orchestrator.md +20 -34
  8. package/assets/templates/root-context.md +1 -1
  9. package/assets/workflow-contract.v1.json +10 -6
  10. package/dist/hook-entry.js +11 -6
  11. package/dist/oar-review-host.js +4 -4
  12. package/package.json +4 -4
  13. package/scripts/check-npm-release.sh +28 -3
  14. package/scripts/check-release-published.sh +22 -10
  15. package/scripts/check-tarball-install-smoke.sh +89 -9
  16. package/scripts/contract-worktree-runtime.ts +20 -5
  17. package/scripts/create-project-dirs.sh +0 -1
  18. package/scripts/init-project.sh +1 -2
  19. package/scripts/lib/ci-run-tests.sh +2 -5
  20. package/scripts/lib/project-init-lib.sh +1 -601
  21. package/src/cli/commands/candidate-reconciliation.ts +8 -4
  22. package/src/cli/commands/doctor.ts +23 -5
  23. package/src/cli/commands/events-actions.ts +155 -0
  24. package/src/cli/commands/events.ts +3 -148
  25. package/src/cli/commands/global-runtime.ts +99 -8
  26. package/src/cli/commands/herdr-actions.ts +127 -0
  27. package/src/cli/commands/herdr.ts +8 -145
  28. package/src/cli/commands/init-hook.ts +4 -2
  29. package/src/cli/commands/operator-actions.ts +62 -1
  30. package/src/cli/commands/operator.ts +3 -3
  31. package/src/cli/commands/quota.ts +8 -1
  32. package/src/cli/commands/review.ts +3 -2
  33. package/src/cli/commands/seats.ts +25 -9
  34. package/src/cli/commands/security.ts +14 -3
  35. package/src/cli/commands/status.ts +4 -3
  36. package/src/cli/index.ts +21 -17
  37. package/src/cli/installer/architecture-selection.ts +13 -7
  38. package/src/cli/installer/global-context.ts +20 -0
  39. package/src/cli/installer/install-profile.ts +10 -10
  40. package/src/cli/installer/managed-entries.ts +48 -10
  41. package/src/cli/installer/targets/claude.ts +3 -8
  42. package/src/core/board/advisor-seat.ts +27 -7
  43. package/src/core/board/attention.ts +5 -2
  44. package/src/core/board/board.ts +13 -6
  45. package/src/core/board/desk.ts +16 -5
  46. package/src/core/board/parents.ts +4 -4
  47. package/src/core/board/seat-launch.ts +26 -13
  48. package/src/core/board/seat-routing.ts +64 -0
  49. package/src/core/board/seats-settings.ts +117 -16
  50. package/src/core/board/summary.ts +1 -1
  51. package/src/core/publication/publication-writes.ts +18 -0
  52. package/src/core/setup/decode.ts +2 -1
  53. package/src/core/setup/projection.ts +3 -1
  54. package/src/core/setup/types.ts +1 -0
  55. package/src/core/skill-surface/plugin-manifest.ts +8 -3
  56. package/src/core/terminal/hc-address.ts +10 -0
  57. package/src/effects/adoption/standard-plan.ts +26 -17
  58. package/src/effects/board/claude-agent-types.ts +15 -4
  59. package/src/effects/board/seats-configuration.ts +60 -15
  60. package/src/effects/operator/language-settings-route.ts +139 -0
  61. package/src/effects/operator/runtime-status.ts +7 -2
  62. package/src/effects/operator/seats-settings-route.ts +2 -0
  63. package/src/effects/operator/server.ts +44 -15
  64. package/src/effects/publication/app-hook-config.ts +25 -0
  65. package/src/effects/review/generic-review.ts +5 -1
  66. package/src/effects/review-runner/task-oar-host.ts +3 -2
  67. package/src/effects/review-runner/task-review-runner.ts +8 -3
  68. package/src/effects/terminal/herdr-core.ts +16 -15
  69. package/src/effects/terminal/native-task-session.ts +1 -1
  70. package/src/effects/terminal/runtime-closeout.ts +346 -0
  71. package/src/effects/terminal/task-runtime-observation.ts +2 -2
  72. package/src/effects/terminal/task-session.ts +9 -339
  73. package/src/pi/compat.ts +1 -1
  74. package/dist/operator-ui/assets/ArchitectureWorkspace-DovLM1_n.css +0 -1
  75. package/dist/operator-ui/assets/ArchitectureWorkspace-MI67sbfJ.js +0 -12
  76. package/dist/operator-ui/assets/DocsPage-DXsq7ksr.js +0 -33
  77. package/dist/operator-ui/assets/abnfDiagram-VCTEODGH-Du4Qptlr.js +0 -1
  78. package/dist/operator-ui/assets/arc-Pry-7G1_.js +0 -1
  79. package/dist/operator-ui/assets/architecture-7GRP2DOG-DDLdiURO.js +0 -1
  80. package/dist/operator-ui/assets/architectureDiagram-5GKGNRK7-DiMthM0w.js +0 -36
  81. package/dist/operator-ui/assets/array-BifhSqXX.js +0 -1
  82. package/dist/operator-ui/assets/blockDiagram-I7D4REHJ-D_QqPUr7.js +0 -129
  83. package/dist/operator-ui/assets/c4Diagram-7LVT6UL2-pj_bu4Nh.js +0 -38
  84. package/dist/operator-ui/assets/channel-EdTftRwl.js +0 -1
  85. package/dist/operator-ui/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -1
  86. package/dist/operator-ui/assets/chunk-4HAMMTFA-xtIZzskX.js +0 -62
  87. package/dist/operator-ui/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -15
  88. package/dist/operator-ui/assets/chunk-75Z2AOVW-Bzfo0VHT.js +0 -2
  89. package/dist/operator-ui/assets/chunk-DU6HZSFF-CfBOd2gP.js +0 -127
  90. package/dist/operator-ui/assets/chunk-F27PBJKO-Cieq95Sy.js +0 -1
  91. package/dist/operator-ui/assets/chunk-FOHPRMQF-DzxwRta7.js +0 -161
  92. package/dist/operator-ui/assets/chunk-GMAD6QVW-dV76sYzG.js +0 -72
  93. package/dist/operator-ui/assets/chunk-GVQU2GXP-DqJfKzYX.js +0 -1
  94. package/dist/operator-ui/assets/chunk-IMKFNOWR-BLEt4XiE.js +0 -231
  95. package/dist/operator-ui/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -1
  96. package/dist/operator-ui/assets/chunk-L3NEJ4N5-C1TuP2gY.js +0 -1
  97. package/dist/operator-ui/assets/chunk-OSK3NFVY-04DOmJKL.js +0 -10
  98. package/dist/operator-ui/assets/chunk-P2QGCYS3-Ch9B4-1u.js +0 -1
  99. package/dist/operator-ui/assets/chunk-POPQ4Y6H-DUoQ4ozJ.js +0 -1
  100. package/dist/operator-ui/assets/chunk-PWAF6VOD-BXK8Z81N.js +0 -1
  101. package/dist/operator-ui/assets/chunk-SHT3W25Y-CVa8q6ek.js +0 -168
  102. package/dist/operator-ui/assets/chunk-SVP7TREG-CGGZ6y5s.js +0 -88
  103. package/dist/operator-ui/assets/chunk-TICWLB2K-BH1pgrbg.js +0 -206
  104. package/dist/operator-ui/assets/chunk-XXDRQBXY-Bd3Sm03O.js +0 -1
  105. package/dist/operator-ui/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -1
  106. package/dist/operator-ui/assets/classDiagram-ZZMXUADV-CUXZx1Vw.js +0 -1
  107. package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-CUXZx1Vw.js +0 -1
  108. package/dist/operator-ui/assets/cose-bilkent-JH36ORCC-DcCrMHTN.js +0 -1
  109. package/dist/operator-ui/assets/cynefin-OW5HDTMX-lm799lgu.js +0 -1
  110. package/dist/operator-ui/assets/cynefinDiagram-5FMLGOSQ-DcyIvKnj.js +0 -62
  111. package/dist/operator-ui/assets/cytoscape.esm-ZKjJ8woK.js +0 -321
  112. package/dist/operator-ui/assets/dagre-C-rnJpZF.js +0 -1
  113. package/dist/operator-ui/assets/dagre-GXQ25YYZ-bRL4S7AL.js +0 -4
  114. package/dist/operator-ui/assets/defaultLocale-BFoDCU3G.js +0 -1
  115. package/dist/operator-ui/assets/diagram-S7CK7UJ4-CyYH5boW.js +0 -30
  116. package/dist/operator-ui/assets/diagram-UQ7AKVKN-DRnugtrH.js +0 -41
  117. package/dist/operator-ui/assets/diagram-VSXAHHWV-2yZScVoc.js +0 -3
  118. package/dist/operator-ui/assets/diagram-VX7I27RA-MR2zXJL1.js +0 -24
  119. package/dist/operator-ui/assets/diagram-Z3DM3KII-vHNWHp-b.js +0 -24
  120. package/dist/operator-ui/assets/dist-v5Q1xZ2K.js +0 -1
  121. package/dist/operator-ui/assets/ebnfDiagram-PWID7BFC-TKyEWOyO.js +0 -1
  122. package/dist/operator-ui/assets/erDiagram-RLTQ6QDP-De_iHG1O.js +0 -99
  123. package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-B98h4u3B.js +0 -1
  124. package/dist/operator-ui/assets/flowDiagram-HODETNUW-D0E7KaF5.js +0 -1
  125. package/dist/operator-ui/assets/ganttDiagram-EL5Y4UJY-Di7nGDCD.js +0 -292
  126. package/dist/operator-ui/assets/gitGraph-4MIJSDKK-Cw2GFgKj.js +0 -1
  127. package/dist/operator-ui/assets/gitGraphDiagram-WWUBYQGX-CgQatyhO.js +0 -106
  128. package/dist/operator-ui/assets/graphlib-DS17s2tU.js +0 -1
  129. package/dist/operator-ui/assets/index-D68hqwj8.js +0 -32
  130. package/dist/operator-ui/assets/index-DMe4MpLH.css +0 -1
  131. package/dist/operator-ui/assets/info-A6RAGUB7-DzNzoaIn.js +0 -1
  132. package/dist/operator-ui/assets/infoDiagram-27XIBGKW-adi3SvmF.js +0 -2
  133. package/dist/operator-ui/assets/init-C-OQMol4.js +0 -1
  134. package/dist/operator-ui/assets/ishikawaDiagram-5VMMS53U-Da3Dnf0N.js +0 -70
  135. package/dist/operator-ui/assets/journeyDiagram-3NMN7TZE-YOPJowfS.js +0 -139
  136. package/dist/operator-ui/assets/kanban-definition-UXKFOSKX-CQibnj3V.js +0 -89
  137. package/dist/operator-ui/assets/katex-ZlcWpGUi.js +0 -257
  138. package/dist/operator-ui/assets/line-BJ_prgs5.js +0 -1
  139. package/dist/operator-ui/assets/linear-CFt_L1U_.js +0 -1
  140. package/dist/operator-ui/assets/mermaid-parser.core-CVtuUAl1.js +0 -7
  141. package/dist/operator-ui/assets/mermaid.core-CUo84mNY.js +0 -44
  142. package/dist/operator-ui/assets/mindmap-definition-YA3MSWOX-Bla7EjkG.js +0 -96
  143. package/dist/operator-ui/assets/ordinal-BDEzSJ7C.js +0 -1
  144. package/dist/operator-ui/assets/packet-AYTQ26CC-C3WOhu-H.js +0 -1
  145. package/dist/operator-ui/assets/path-fybaL0A-.js +0 -1
  146. package/dist/operator-ui/assets/pegDiagram-XKGWAZYB-QqctIBnz.js +0 -1
  147. package/dist/operator-ui/assets/pie-WAS4IAKB-C_KpF3n5.js +0 -1
  148. package/dist/operator-ui/assets/pieDiagram-E7YTZNPT-DIR4CkgL.js +0 -39
  149. package/dist/operator-ui/assets/quadrantDiagram-AXDQQJYC-ElbTkAxO.js +0 -7
  150. package/dist/operator-ui/assets/radar-RG4KPBEZ-CCsk9Y_6.js +0 -1
  151. package/dist/operator-ui/assets/railroad-74A4TZTK-DuZi_c43.js +0 -1
  152. package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-CADr6Cfa.js +0 -1
  153. package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-CquXxbT1.js +0 -1
  154. package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-CVM2y0el.js +0 -1
  155. package/dist/operator-ui/assets/railroadDiagram-O6MQD6OU-iU4HU0w7.js +0 -1
  156. package/dist/operator-ui/assets/requirementDiagram-BXWQKSXE-BlbfNq-y.js +0 -84
  157. package/dist/operator-ui/assets/rolldown-runtime-hePW80VL.js +0 -1
  158. package/dist/operator-ui/assets/rough.esm-Dy-Kn_BL.js +0 -1
  159. package/dist/operator-ui/assets/sankeyDiagram-P5KCCOFB-jsIDIGSQ.js +0 -40
  160. package/dist/operator-ui/assets/sequenceDiagram-WJ2MYXX4-DYUYs68X.js +0 -162
  161. package/dist/operator-ui/assets/sizeCapture-INFHLROL-3uHXrFqA.js +0 -1
  162. package/dist/operator-ui/assets/src-B-DeWB10.js +0 -1
  163. package/dist/operator-ui/assets/src-D6_zRfqR.js +0 -1
  164. package/dist/operator-ui/assets/stateDiagram-D77RDMKH-DwUSx-Cr.js +0 -1
  165. package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-Bnciowwt.js +0 -1
  166. package/dist/operator-ui/assets/swimlanes-42K2YHIH-DUxSnyH8.js +0 -1
  167. package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-BUXVnUoD.js +0 -8
  168. package/dist/operator-ui/assets/timeline-definition-24CTP7MA-CcMwI1LW.js +0 -120
  169. package/dist/operator-ui/assets/treeView-Q6P3EWNA-DBtbVup8.js +0 -1
  170. package/dist/operator-ui/assets/treemap-WGGIJYW6-B4wdkJ-s.js +0 -1
  171. package/dist/operator-ui/assets/value-DcGlvoTp.js +0 -1
  172. package/dist/operator-ui/assets/vennDiagram-4TSXK5OY-Ch-g-ngd.js +0 -34
  173. package/dist/operator-ui/assets/wardley-WFR3VGLG-DyY3tyw-.js +0 -1
  174. package/dist/operator-ui/assets/wardleyDiagram-VM6X3IG4-2xKWsc63.js +0 -78
  175. package/dist/operator-ui/assets/xychartDiagram-S5SC5T6Z-BUc2TE0l.js +0 -7
  176. package/dist/operator-ui/index.html +0 -17
  177. package/dist/operator-ui/logos/README.md +0 -7
  178. package/dist/operator-ui/logos/repo-harness-carrot-mark-transparent.svg +0 -1
  179. package/dist/operator-ui/logos/repo-harness-carrot-mark.svg +0 -6
  180. package/dist/operator-ui/mascots/README.md +0 -11
  181. package/dist/operator-ui/mascots/buddy-alert.svg +0 -1
  182. package/dist/operator-ui/mascots/buddy-happy.svg +0 -1
  183. package/dist/operator-ui/mascots/buddy-party.svg +0 -1
  184. package/dist/operator-ui/mascots/buddy-reading.svg +0 -1
  185. package/dist/operator-ui/mascots/buddy-search.svg +0 -1
  186. package/dist/operator-ui/mascots/buddy-sleep.svg +0 -1
  187. package/dist/operator-ui/mascots/buddy-wrench.svg +0 -1
  188. package/dist/operator-ui/mascots/buddy.svg +0 -1
  189. package/dist/operator-ui/mascots/bug.svg +0 -1
  190. package/dist/operator-ui/mascots/cloud-off.svg +0 -1
  191. package/dist/operator-ui/mascots/donkey-bags.svg +0 -1
  192. package/dist/operator-ui/mascots/donkey-happy.svg +0 -1
  193. package/dist/operator-ui/mascots/donkey.svg +0 -1
  194. package/dist/operator-ui/mascots/hook-cap.svg +0 -1
  195. package/dist/operator-ui/mascots/hook-carrot.svg +0 -1
  196. package/dist/operator-ui/mascots/hook.svg +0 -1
  197. package/dist/operator-ui/mascots/terminal.svg +0 -1
  198. package/src/effects/terminal/herdr.ts +0 -69
  199. package/src/effects/terminal/task-worktree-runtime.ts +0 -27
  200. package/src/operator-web/App.tsx +0 -505
  201. package/src/operator-web/ArchitectureHistory.tsx +0 -534
  202. package/src/operator-web/ArchitectureLayers.tsx +0 -241
  203. package/src/operator-web/ArchitectureMap.tsx +0 -328
  204. package/src/operator-web/ArchitectureModules.tsx +0 -302
  205. package/src/operator-web/ArchitectureSequence.tsx +0 -407
  206. package/src/operator-web/ArchitectureTopology.tsx +0 -344
  207. package/src/operator-web/ArchitectureWorkspace.tsx +0 -340
  208. package/src/operator-web/BoardOffice.tsx +0 -668
  209. package/src/operator-web/BoardPage.tsx +0 -526
  210. package/src/operator-web/BotsPage.tsx +0 -391
  211. package/src/operator-web/CleanupPlanReview.tsx +0 -459
  212. package/src/operator-web/CliPage.tsx +0 -113
  213. package/src/operator-web/DocsMarkdown.tsx +0 -182
  214. package/src/operator-web/DocsPage.tsx +0 -229
  215. package/src/operator-web/Drawer.tsx +0 -119
  216. package/src/operator-web/Home.tsx +0 -350
  217. package/src/operator-web/ModuleGraph.tsx +0 -163
  218. package/src/operator-web/NavRail.tsx +0 -390
  219. package/src/operator-web/NotifyStatus.tsx +0 -77
  220. package/src/operator-web/OfficeAdvisorDialog.tsx +0 -184
  221. package/src/operator-web/OfficeSetupChecklist.tsx +0 -248
  222. package/src/operator-web/RepositoriesPage.tsx +0 -150
  223. package/src/operator-web/RuntimeBadges.tsx +0 -81
  224. package/src/operator-web/SeatsPage.tsx +0 -297
  225. package/src/operator-web/SettingsPage.tsx +0 -280
  226. package/src/operator-web/SetupPages.tsx +0 -650
  227. package/src/operator-web/SystemPage.tsx +0 -95
  228. package/src/operator-web/TaskDrawer.tsx +0 -337
  229. package/src/operator-web/TestsPage.tsx +0 -260
  230. package/src/operator-web/ToolsPage.tsx +0 -148
  231. package/src/operator-web/WorktreesPage.tsx +0 -266
  232. package/src/operator-web/app.css +0 -379
  233. package/src/operator-web/architecture-history.css +0 -148
  234. package/src/operator-web/architecture-layers-layout.ts +0 -173
  235. package/src/operator-web/architecture-map-layers.ts +0 -239
  236. package/src/operator-web/architecture-map-layout.ts +0 -223
  237. package/src/operator-web/architecture-map-parts.tsx +0 -279
  238. package/src/operator-web/architecture-modules-layout.ts +0 -144
  239. package/src/operator-web/architecture-runtime.ts +0 -43
  240. package/src/operator-web/architecture-sequence-layout.ts +0 -137
  241. package/src/operator-web/architecture-sequence-svg.ts +0 -116
  242. package/src/operator-web/architecture-topology-layout.ts +0 -303
  243. package/src/operator-web/board-office.css +0 -214
  244. package/src/operator-web/board-office.ts +0 -357
  245. package/src/operator-web/board-view.ts +0 -177
  246. package/src/operator-web/bots.ts +0 -112
  247. package/src/operator-web/brand.tsx +0 -23
  248. package/src/operator-web/clipboard.ts +0 -13
  249. package/src/operator-web/css.d.ts +0 -2
  250. package/src/operator-web/design-tokens.ts +0 -58
  251. package/src/operator-web/dev-activity.ts +0 -108
  252. package/src/operator-web/fixtures/architecture-map.json +0 -19111
  253. package/src/operator-web/fixtures/board-1474.json +0 -936
  254. package/src/operator-web/fixtures/board-parents.json +0 -80
  255. package/src/operator-web/fixtures/bots.ts +0 -123
  256. package/src/operator-web/fixtures/dev-activity.ts +0 -246
  257. package/src/operator-web/fixtures/docs.ts +0 -131
  258. package/src/operator-web/fixtures/index.ts +0 -199
  259. package/src/operator-web/fixtures/office.ts +0 -312
  260. package/src/operator-web/fixtures/quota.ts +0 -51
  261. package/src/operator-web/fixtures/settings.ts +0 -158
  262. package/src/operator-web/fixtures/setup.ts +0 -179
  263. package/src/operator-web/fixtures/tests.ts +0 -74
  264. package/src/operator-web/fixtures/worktrees.ts +0 -214
  265. package/src/operator-web/i18n/architecture-history.ts +0 -38
  266. package/src/operator-web/i18n/architecture.ts +0 -737
  267. package/src/operator-web/i18n/board.ts +0 -837
  268. package/src/operator-web/i18n/bots.ts +0 -193
  269. package/src/operator-web/i18n/cli.ts +0 -59
  270. package/src/operator-web/i18n/docs.ts +0 -79
  271. package/src/operator-web/i18n/home.ts +0 -57
  272. package/src/operator-web/i18n/index.ts +0 -222
  273. package/src/operator-web/i18n/repositories.ts +0 -63
  274. package/src/operator-web/i18n/runtime.ts +0 -77
  275. package/src/operator-web/i18n/settings.ts +0 -313
  276. package/src/operator-web/i18n/setup.ts +0 -249
  277. package/src/operator-web/i18n/shell.ts +0 -227
  278. package/src/operator-web/i18n/skills.ts +0 -65
  279. package/src/operator-web/i18n/system.ts +0 -33
  280. package/src/operator-web/i18n/task.ts +0 -379
  281. package/src/operator-web/i18n/tests.ts +0 -61
  282. package/src/operator-web/i18n/tools.ts +0 -63
  283. package/src/operator-web/i18n/worktrees.ts +0 -391
  284. package/src/operator-web/index.html +0 -15
  285. package/src/operator-web/labels.ts +0 -19
  286. package/src/operator-web/main.tsx +0 -43
  287. package/src/operator-web/office-boss.ts +0 -63
  288. package/src/operator-web/office-scene.ts +0 -929
  289. package/src/operator-web/office-sprites.ts +0 -300
  290. package/src/operator-web/operator-api-error.ts +0 -31
  291. package/src/operator-web/operator-write.tsx +0 -47
  292. package/src/operator-web/quota.ts +0 -54
  293. package/src/operator-web/repositories.ts +0 -55
  294. package/src/operator-web/repository-reads.ts +0 -333
  295. package/src/operator-web/seats.ts +0 -89
  296. package/src/operator-web/settings.ts +0 -292
  297. package/src/operator-web/setup.ts +0 -132
  298. package/src/operator-web/theme.ts +0 -71
  299. package/src/operator-web/ui.tsx +0 -116
  300. package/src/operator-web/useObservationRefresh.ts +0 -64
  301. package/src/operator-web/workspace-location.ts +0 -152
  302. package/src/operator-web/worktrees.ts +0 -264
package/README.md CHANGED
@@ -331,6 +331,6 @@ None of these are bundled dependencies; see
331
331
 
332
332
  ## Release & license
333
333
 
334
- - npm: `repo-harness@0.26.5` · workflow stamp `repo-harness@0.26.5+template@0.26.5`
334
+ - npm: `repo-harness@0.27.0` · workflow stamp `repo-harness@0.27.0+template@0.27.0`
335
335
  - History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
336
336
  - License: MIT — see [`LICENSE`](LICENSE)
@@ -1,9 +1,20 @@
1
1
  # Herdr dispatch and notify
2
2
 
3
+ `repo-harness herdr`, `events`, and `review round|status|close|cancel` need
4
+ `peer-runtime` in the recorded plugin set. Their help stays open. An absent
5
+ plugin exits 1 with empty stdout and `install_plugin_unavailable` before any
6
+ prompt, credential read or process start. Run the printed repair: for `all`,
7
+ `repo-harness update`; for an explicit list, add `peer-runtime` with
8
+ `repo-harness install --plugins <your plugins>,peer-runtime`. No migration runs.
9
+ The plugin is available on every target; its portal skill installs on Claude
10
+ only. `hc`, the Herdr skill, fleet files, worktree closeout and doctor stay in
11
+ core. The hidden Operator cleanup-investigation job also needs `peer-runtime`;
12
+ the server records `host_failed` when the guard refuses that child.
13
+
3
14
  ## Herdr Dispatch
4
15
 
5
16
  - Claude, Codex and Pi peers run in herdr-core terminals that Herdr.app shows as panes. Start them with `herdr-app do` and talk to them with `hc` ([Runtime commands](#runtime-commands)). Receipt-bearing acceptance uses `repo-harness review round`; its OAR host runs the reviewer. Select Pi with `--harness pi`. Never call a vendor CLI directly for acceptance.
6
- - Pi review uses an OAR RPC subprocess under Seatbelt. Its private agent directory links native model configuration and credentials for read-only access. An owner-written mode-0600 `settings.json` contains only native `defaultProvider`, `defaultModel` and `defaultThinkingLevel`; packages, proxy and trust policy are excluded. User extensions, skills, context files, prompt templates and MCP are disabled. The Pi reviewer uses the user's Pi default model. The Receipt's `actual_model` records OAR's actual `provider/model`. An unobserved model is `null`: the Receipt still records the verdict and grants no cross-model claim.
17
+ - Pi review uses an OAR RPC subprocess under Seatbelt. Its private agent directory links native model configuration and credentials for read-only access. An owner-written mode-0600 `settings.json` contains only native `defaultProvider`, `defaultModel` and `defaultThinkingLevel`; packages, proxy and trust policy are excluded. User extensions, skills, context files, prompt templates and MCP are disabled. The Pi reviewer uses the user's Pi default model. The Receipt's `actual_model` records OAR's actual `provider/model`. A null actual model records `model_relation: unknown` and grants no cross-model claim. A non-string or blank model fails with `review_actual_model_unverified`.
7
18
  - A cross-model review means Receipt `model_relation: different-family`. The OAR host records the reviewer model and the model of each ended turn of the one author task session bound to the caller pane, campaign and reviewed root. One closed family table in `src/core/review/acceptance-receipt.ts` compares vendor families, not routing providers. Harness kind does not prove a model difference. A shared family is `same-family`. A missing author binding, an unobserved or running turn, a Claude turn (its model is not observed) or a model outside the table is `unknown`. Interactive authors are not OAR-observed, so they give `unknown` and a High-tier cross-model review stays a manual Herdr peer review. The review runtime records identity; it adds no cross-model gate.
8
19
  - Exception: in the Claude desktop app, operator-attended acceptance review can use `repo-harness review round --launch app-terminal`. The CLI prints the fixed OAR host command. Claude runs that exact command once in an app Terminal tab, then repeats the same round. The same OAR host, Seatbelt profile and Receipt apply.
9
20
  - Send the root tests-and-implementation review to the other model through Herdr when it is available. Otherwise, run that read-only review in a separate same-model pane.
@@ -41,6 +52,28 @@ A Codex worker seat in a linked contract worktree edits files and runs checks on
41
52
 
42
53
  `repo-harness seats argv <seat>` prints the argv of the seat from the `seats` section of `~/.repo-harness/config.json`, or from the seat defaults when the section is absent. The argv holds the model, the effort, the tool limits and the seat brief. Its stderr names the source and each limit. A limit marked `instructions_only` is written into the launch instructions only; the host does not enforce it. Without `--argv`, the pane opens a shell.
43
54
 
55
+ Before each dispatch wave, run `repo-harness quota`. Launch each task with `repo-harness seats argv <seat>` on the seat that its route line names. State the task boundary in the packet. `--json` keeps the account report unchanged.
56
+
57
+ | Seat | Default runtime, model and effort |
58
+ |---|---|
59
+ | `worker` | Codex, `gpt-6.1-terra`, high |
60
+ | `worker-deep` | Codex, `gpt-6.1-sol`, high |
61
+ | `worker-important` | Claude, `opus`, medium |
62
+ | `worker-important-fast` | Claude, `sonnet`, medium |
63
+ | `worker-light` | Not configured (`null`); configure it before launch or routing |
64
+ | `gatekeeper` | Codex, `gpt-6.1-terra`, high; read and shell only |
65
+ | `reviewer` | Claude, `opus`, high; read and shell only |
66
+
67
+ All worker seats use worker briefs, labels and pane names. `gatekeeper` and `reviewer` need `--pr <n>`; their pane names are `<prefix>-gk-<pr>` and `<prefix>-rv-<pr>`. They report a read-only verdict first and do not edit, commit, push or write to GitHub.
68
+
69
+ On Pi, review seats pass `--exclude-tools edit,write`. Direct edit/write tools are off. The edit limit is `common_commands` because the shell stays available; shell writes remain prohibited by the brief. Codex review seats use the read-only sandbox.
70
+
71
+ `seats.routing` holds ordered lists for `important_deep`, `important_fast`, `simple_deep`, `simple_fast` and `frontend`. Lists are non-empty and distinct. The first four accept configured worker seats only; a list cannot name a null seat. `frontend` accepts only `worker-important` and `worker-important-fast`, and both must run Claude when selected in that list. Defaults are `[worker-important, worker-deep]`, `[worker-important-fast, worker]`, `[worker-deep, worker-important]`, `[worker]` and `[worker-important, worker-important-fast]`, in that order. `worker-light` defaults to `null`. Its argv returns `seat_not_configured` until it is configured. Each configured seat must use an enabled runtime when saved; the defaults do not require Pi.
72
+
73
+ Routing first selects normal or surplus accounts, or Pi without an account reading. A second pass selects unknown accounts or tight ChatGPT. Exhausted accounts are excluded. Tight or exhausted Claude stays reserved for the advisor and orchestrator; frontend waits for Claude. In those Claude states, the explorer line uses `routing.low_quota_explorer` (default `haiku` high); otherwise it says `default`.
74
+
75
+ `routing.mode` defaults to `standard`. In `hyper`, `routing.hyper.claude` replaces the model and effort of Claude seats (default `opus` high), `hyper.advisor` selects the advisor on Claude (default `opus` max), and `hyper.codex` replaces Codex models and efforts (default `gpt-6-astra` high). Pi, tools, fleet and class lists stay as configured. Only an exhausted Claude advisor falls back to Codex with `hyper.codex`; the quota output names this fallback. An absent section uses defaults. Stored sections may omit new seat keys and the whole routing block; a POST writes the full section.
76
+
44
77
  With `--repository-id`, the argv labels its own terminal before the agent starts: it runs `repo-harness seats label`, which sets the seat labels on `HC_TERMINAL_ID`, and then starts the agent. The board finds seats only by these labels; a terminal without them leaves the execution axis `unavailable` (`no_seat_terminals`). When the label fails, the agent does not start and the terminal shows the error. Each start prints the new `terminal`. `<repository-id>` is the GitHub numeric repository id (`gh api repos/<owner>/<repo> --jq .id`). Leave out `--issue` and `--pr` for the orchestrator and the advisor.
45
78
 
46
79
  ### Pane and tab names
@@ -54,7 +87,7 @@ The pane name is `<prefix>-<role>[-<item>][-<qualifier>]`: at most 32 characters
54
87
  | Part | Values | Source |
55
88
  |---|---|---|
56
89
  | `prefix` | 2-6 characters, `[a-z][a-z0-9]{1,5}`, one per registered repository, unique on the machine | `panePrefix` of the repository entry in `~/.repo-harness/registered-repos.json` |
57
- | `role` | `orch`, `adv`, `w`; `rv` for a reviewer pane started by hand | the seat |
90
+ | `role` | `orch`, `adv`, `w`, `gk`, `rv` | the seat |
58
91
  | `item` | worker: the issue number (`--issue`) or `rel<digits>` for release prep (`--release`); reviewer: the PR number. None for `orch` and `adv` | the dispatch |
59
92
  | `qualifier` | worker: a slice word when one issue has two live worker panes (`--qualifier`); reviewer: the review runtime id (`claude`, `codex`) | the dispatch |
60
93
 
@@ -111,6 +144,7 @@ The command writes the config to `~/.repo-harness/herdr/notify.env` with file mo
111
144
  Then it starts the relay with `hc run --bg --no-parent` in an hc terminal named `rh-notify-relay` with the label `repo-harness.role=notify-relay`.
112
145
  The relay terminal has no parent, so it stays when the install terminal ends.
113
146
  An hc terminal starts with the core's environment, so install passes the repo-harness home to the relay as `--home <absolute path>`.
147
+ The relay child runs `repo-harness herdr notify relay`, a `peer-runtime` command. Its plugin gate reads the recorded selection under the `HOME` of the hc core, not under `--home`. Select `peer-runtime` for that `HOME` too. Otherwise the relay exits 1 with `install_plugin_unavailable`.
114
148
  When a live relay terminal already exists, install starts no second one.
115
149
  The relay reads the config again on each event, so a new config takes effect without a restart.
116
150
  Each read applies the install rules: HTTPS URLs without user information, a Bot URL and key, a complete Telegram target and done flags of `0` or `1`. An invalid config sends nothing, and the relay screen names the broken rule without its value.
@@ -158,9 +158,16 @@ marks a capture older than 30 minutes `unknown`.
158
158
  `~/.claude/settings.json` has no `statusLine`:
159
159
 
160
160
  ```json
161
- "statusLine": { "type": "command", "command": ": repo-harness-managed-hook-v1; exec repo-harness-hook statusline" }
161
+ "statusLine": { "type": "command", "command": ": repo-harness-managed-hook-v1; exec '/absolute/path/to/bun' '/absolute/bun/install/global/node_modules/repo-harness/dist/hook-entry.js' statusline" }
162
162
  ```
163
163
 
164
+ Install resolves the Bun runtime from `process.execPath` and the bundle from
165
+ `<bunGlobalPackageRoot(env)>/dist/hook-entry.js`. It quotes both absolute paths.
166
+ The bundle comes from the global install, including when install runs through
167
+ `bunx` or a task worktree. A missing global bundle stops installation before
168
+ host configuration writes. Repair it with `bun add -g repo-harness`, then rerun
169
+ `repo-harness install --location global`.
170
+
164
171
  The managed tag is the ownership proof, as for the managed hook commands.
165
172
  Install refreshes the entry only while its command has the tag, and uninstall
166
173
  removes it only then. A user edit removes the tag, so the entry is then the
@@ -22,6 +22,13 @@ gate; a release depends on green CI for the release SHA. `prepublishOnly`
22
22
  stays a fast pre-publish check that never runs tests.
23
23
  A bare `bash scripts/check-ci.sh` defaults to `affected`; it is not a release gate.
24
24
 
25
+ The core and operator web packages use the same version. `check:release`
26
+ requires both versions to be unpublished. Publish `repo-harness-operator-web`
27
+ first, then publish `repo-harness`: each prepublish gate checks its own package,
28
+ and the core gate requires the matching operator web version on npm. After both
29
+ publishes, `check:release-published` verifies both registry tarballs and latest
30
+ tags, the Git version tag, and the core runtime receipt.
31
+
25
32
  ## Webapp Release Shape
26
33
 
27
34
  - For a SaaS webapp with public SEO/SSR plus authenticated workspace, prefer one
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.26.5",
3
- "templateVersion": "0.26.5",
2
+ "version": "0.27.0",
3
+ "templateVersion": "0.27.0",
4
4
  "skillName": "repo-harness",
5
5
  "contractId": "tasks-first-harness-v1",
6
6
  "compatibility": {
@@ -69,8 +69,10 @@ explicitly approved OS boundary; the app adds no vendor arguments.
69
69
 
70
70
  Claude's current OAR model event is system/init only. It cannot certify the
71
71
  actual gateway backend, so the host records a Claude model as `null`. A null
72
- model still mints a Receipt with `model_relation: unknown`; only
73
- `different-family` counts as a cross-model review. Hooks,
72
+ model still mints a Receipt with `model_relation: unknown` and grants no
73
+ cross-model claim. A non-string or blank model fails with
74
+ `review_actual_model_unverified`. Only `different-family` counts as a
75
+ cross-model review. Hooks,
74
76
  complete packet ingestion, forced host-loss cleanup and native isolation remain
75
77
  unverified. On normal cleanup SDK dispose acknowledgement and execution-owner
76
78
  exit precede terminal close; missing proof remains pending.
@@ -217,41 +217,27 @@ module is in the title so that a list view shows the write scopes.
217
217
 
218
218
  ### 7.1 Quota check
219
219
 
220
- Quota belongs to the provider account, not to the host. A seat draws from
221
- the account of its provider route: Claude Code and pi with an Anthropic
222
- login share the Claude account; Codex and pi with a ChatGPT login share
223
- the ChatGPT account.
224
-
225
- Before each dispatch wave, run `repo-harness quota --json`. It prints one
226
- state for each account (`claude`, `chatgpt`) and the windows that it read.
227
- Apply the table below to each account. Put the reading in the
228
- `Dispatch reading:` line of each claim of the wave: for each account the
229
- state, used %, pace, reset time and reading time.
230
-
231
- For each window (5 h and weekly), elapsed% = 100 × (1 − (resets_at −
232
- now) / window) and pace = used% − elapsed%. The account takes the worst
233
- window state, in the order `exhausted` > `tight` > `unknown` > `normal` >
234
- `surplus`. A window with no reading (absent, stale or malformed) makes the
235
- account `unknown`, unless another window is `exhausted` or `tight`.
236
-
237
- | State | Condition | Coordinator action |
220
+ Before each dispatch wave, run `repo-harness quota`. It prints the account
221
+ states and one route line per task class. Launch each task on the seat its
222
+ route line names with `repo-harness seats argv <seat>`; state the boundary
223
+ in the task. A `none` route waits.
224
+
225
+ A tight or exhausted Claude account is reserved for the advisor and
226
+ orchestrator. Its worker classes move to the next eligible seat in their
227
+ ordered lists. Frontend waits for Claude; it has no non-Claude fallback.
228
+ An exhausted account takes no new dispatch, review seats included.
229
+
230
+ Claude seats use the Claude account, Codex seats use ChatGPT, and Pi seats
231
+ have no account reading. Routing applies these rules in both standard and
232
+ hyper mode. Put the reading in the `Dispatch reading:` line of each claim:
233
+ account state, used %, pace, reset time and reading time.
234
+
235
+ | Account state | Route rule | Coordinator action |
238
236
  |---|---|---|
239
- | exhausted | used ≥ 95%, or `rate_limit_reached_type` set | No new dispatch to that account, review seats included: start no new turn on it. Spend credits only when the owner allows it; otherwise a merge that needs that account's review seat waits for the reset. |
240
- | tight | headroom < 15%, or pace > +15 | Must-ship work only. Halve the writer cap. No stretch work. |
241
- | normal | other | The plan's cap. |
242
- | surplus | pace < −25 and the reset is less than 24 h away | Pull stretch work forward, up to the full cap. |
243
- | unknown | no reading, or a reading older than 30 min | Read by hand before the dispatch. No expansion. |
244
-
245
- For an `unknown` Claude account, read it by hand with
246
- `claude -p "/usage" --model haiku --output-format text` from a temporary
247
- directory. It is a local command, and it shows the model rows (for
248
- example Opus or Fable) that the status line capture does not have. Use it
249
- for the manual reading only; no code parses its text. Record the manual
250
- reading and its source in the `Dispatch reading:` line.
251
-
252
- Seat model routing follows the repository's or the user's own routing
253
- rule. When an account is `tight` or `exhausted`, defer Medium and High
254
- implementation; do not move it to another provider by default.
237
+ | normal or surplus | First pass, in configured seat order | Dispatch to the named seat. |
238
+ | unknown | Second pass; the line names the state | Dispatch to the named seat and record the unknown state. |
239
+ | tight | Claude is reserved; ChatGPT is eligible in the second pass | Follow the named route; frontend waits for Claude. |
240
+ | exhausted | The account is excluded | Start no new turn on that account. |
255
241
 
256
242
  ## 8. Follow up
257
243
 
@@ -33,7 +33,7 @@ This is the root routing contract for Claude Code and Codex. Load this before ta
33
33
 
34
34
  ## Writing
35
35
  - Write human-facing documents in the language set by `.ai/harness/policy.json#documentation.language`; keep section headers, field keys and technical terms in English.
36
- - Write output text in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice.
36
+ - Write output text in a plain technical style: short sentences, one idea per sentence, active voice. For `en`, follow ASD-STE100 Simplified Technical English. For `zh-CN`, write plain Chinese (简明中文) with the same rules and keep technical terms in English. For `follow-user`, use the user's language with the same rules.
37
37
  - Prefer high information density: evidence first, mechanism and business effect second. Delete process commentary, repeated summaries and transitions that exist only for completeness.
38
38
  - A conclusion must add a cause, mechanism, constraint, testable prediction or business effect.
39
39
 
@@ -1811,19 +1811,23 @@
1811
1811
  "AGENTS.md": "assets/templates/root-context.md"
1812
1812
  },
1813
1813
  "fingerprints": {
1814
- "CLAUDE.md": "sha256:bd02a59fe0c8fa11a6b66b1fd36169e001e9512345a115a1f303543c25fea776",
1815
- "AGENTS.md": "sha256:bd02a59fe0c8fa11a6b66b1fd36169e001e9512345a115a1f303543c25fea776"
1814
+ "CLAUDE.md": "sha256:d33c0754ac7ba2c6babb9069febc8e80793f119849e456a6eab24b6ecc104453",
1815
+ "AGENTS.md": "sha256:d33c0754ac7ba2c6babb9069febc8e80793f119849e456a6eab24b6ecc104453"
1816
1816
  },
1817
1817
  "historicalFingerprints": {
1818
1818
  "CLAUDE.md": [
1819
1819
  "sha256:956b22a5a55e517e0253b636d3a4c542b03ccbe2a3ce40c3beea573ef03204db",
1820
1820
  "sha256:d0a9dbfe744eeb5907a729a5bffc20e7605144e62804641febf3c7d9c82fbf04",
1821
- "sha256:0885ee7d538eab0e71defb0f49e02c3f15ef40c81135ea5208b8d08f8c482440"
1821
+ "sha256:0885ee7d538eab0e71defb0f49e02c3f15ef40c81135ea5208b8d08f8c482440",
1822
+ "sha256:bd02a59fe0c8fa11a6b66b1fd36169e001e9512345a115a1f303543c25fea776",
1823
+ "sha256:58b9816cad7ffe1ba2380b15b3c5c41ab0ab862696763c618037bc904f93c026"
1822
1824
  ],
1823
1825
  "AGENTS.md": [
1824
1826
  "sha256:956b22a5a55e517e0253b636d3a4c542b03ccbe2a3ce40c3beea573ef03204db",
1825
1827
  "sha256:d0a9dbfe744eeb5907a729a5bffc20e7605144e62804641febf3c7d9c82fbf04",
1826
- "sha256:0885ee7d538eab0e71defb0f49e02c3f15ef40c81135ea5208b8d08f8c482440"
1828
+ "sha256:0885ee7d538eab0e71defb0f49e02c3f15ef40c81135ea5208b8d08f8c482440",
1829
+ "sha256:bd02a59fe0c8fa11a6b66b1fd36169e001e9512345a115a1f303543c25fea776",
1830
+ "sha256:58b9816cad7ffe1ba2380b15b3c5c41ab0ab862696763c618037bc904f93c026"
1827
1831
  ]
1828
1832
  },
1829
1833
  "summary": "Replace the unchanged pre-IPDD root context with the invariant root context; keep any user-edited file as user-owned.",
@@ -2836,6 +2840,7 @@
2836
2840
  }
2837
2841
  },
2838
2842
  "installedCopyExcludes": [
2843
+ "src/operator-web/",
2839
2844
  ".git/",
2840
2845
  ".git",
2841
2846
  "_ops/",
@@ -2904,7 +2909,6 @@
2904
2909
  "src/",
2905
2910
  "docs/",
2906
2911
  "dist/hook-entry.js",
2907
- "dist/oar-review-host.js",
2908
- "dist/operator-ui/"
2912
+ "dist/oar-review-host.js"
2909
2913
  ]
2910
2914
  }
@@ -2555,10 +2555,10 @@ function createFileExclusiveDurably(path, content, mode = 384) {
2555
2555
  var init_atomic_append = () => {};
2556
2556
 
2557
2557
  // package.json
2558
- var version = "0.26.5", dependencies;
2558
+ var version = "0.27.0", dependencies;
2559
2559
  var init_package = __esm(() => {
2560
2560
  dependencies = {
2561
- "@botiverse/oar": "0.88.0",
2561
+ "@botiverse/oar": "0.91.0",
2562
2562
  "@modelcontextprotocol/sdk": "^1.31.0",
2563
2563
  archctx: "0.11.3",
2564
2564
  "archctx-contracts": "0.11.3",
@@ -10528,6 +10528,7 @@ var SURFACE_OWNERS = ["core", ...PLUGIN_IDS];
10528
10528
  function isPluginId(value) {
10529
10529
  return typeof value === "string" && PLUGIN_IDS.includes(value);
10530
10530
  }
10531
+ var UPDATE_COMMAND = "repo-harness update";
10531
10532
  function installSelectionCommand(selection) {
10532
10533
  if (selection === "all")
10533
10534
  return "repo-harness install";
@@ -10652,7 +10653,7 @@ function readRecordedInstallState(env = process.env) {
10652
10653
  function readRecordedSelection(env = process.env) {
10653
10654
  try {
10654
10655
  const state = readRecordedInstallState(env);
10655
- return state === null ? { status: "none" } : { status: "recorded", plugins: enabledPlugins(state) };
10656
+ return state === null ? { status: "none" } : { status: "recorded", selection: state.selection, plugins: enabledPlugins(state) };
10656
10657
  } catch (error) {
10657
10658
  if (error instanceof InstallStateError)
10658
10659
  return { status: "unreadable", error };
@@ -10662,11 +10663,15 @@ function readRecordedSelection(env = process.env) {
10662
10663
  function pluginSelected(selection, id) {
10663
10664
  return selection.status === "recorded" && selection.plugins.includes(id);
10664
10665
  }
10665
- function pluginRepair(added, plugins) {
10666
- return plugins === null ? installSelectionCommand("all") : installSelectionCommand(PLUGIN_IDS.filter((id) => plugins.includes(id) || id === added));
10666
+ function pluginRepair(added, selection) {
10667
+ if (selection === null)
10668
+ return installSelectionCommand("all");
10669
+ if (selection === "all")
10670
+ return UPDATE_COMMAND;
10671
+ return installSelectionCommand(PLUGIN_IDS.filter((id) => selection.includes(id) || id === added));
10667
10672
  }
10668
10673
  function notSelectedMessage(selection, id) {
10669
- return `the ${id} plugin is not selected; run: ${pluginRepair(id, selection.status === "recorded" ? selection.plugins : null)}`;
10674
+ return `the ${id} plugin is not selected; run: ${pluginRepair(id, selection.status === "recorded" ? selection.selection : null)}`;
10670
10675
  }
10671
10676
  function architectureSelectionReport(selection) {
10672
10677
  if (pluginSelected(selection, "architecture"))
@@ -1400,8 +1400,8 @@ async function promptWithOarObservation(session, kind, request, host, input, opt
1400
1400
  const run = await promptAndWait(session, input, { ...options, inputId: request.request_id });
1401
1401
  snapshot.control = run.result.kind;
1402
1402
  snapshot.rejection = run.kind === "rejected" ? run.code : null;
1403
- snapshot.outcome = run.kind === "rejected" ? null : run.outcome.kind;
1404
- snapshot.failure = run.kind !== "rejected" && run.outcome.kind === "failed" ? run.outcome.failure : null;
1403
+ snapshot.outcome = run.kind !== "rejected" && run.kind !== "handled" ? run.outcome.kind : null;
1404
+ snapshot.failure = run.kind !== "rejected" && run.kind !== "handled" && run.outcome.kind === "failed" ? run.outcome.failure : null;
1405
1405
  snapshot.actual_model = oarActualModel(kind, session);
1406
1406
  return run;
1407
1407
  } finally {
@@ -1518,12 +1518,12 @@ ${inbox}`, { ...request, host: started.provider }, (snapshot) => {
1518
1518
  observation: snapshot
1519
1519
  });
1520
1520
  }, spec.timeoutMs);
1521
- if (run.kind !== "rejected" && run.outcome.kind === "failed" && run.outcome.failure === "auth")
1521
+ if (run.kind !== "rejected" && run.kind !== "handled" && run.outcome.kind === "failed" && run.outcome.failure === "auth")
1522
1522
  throw new Error("OAR_REVIEW_AUTH_STOP");
1523
1523
  const observation = {
1524
1524
  request_id: request.request_id,
1525
1525
  kind: run.kind,
1526
- outcome: run.kind === "rejected" ? null : run.outcome.kind,
1526
+ outcome: run.kind !== "rejected" && run.kind !== "handled" ? run.outcome.kind : null,
1527
1527
  actual_model: host.model(spec.kind)
1528
1528
  };
1529
1529
  writeSessionArtifact(join6(spec.controlDirectory, `observed-${request.round}.json`), observation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-harness",
3
- "version": "0.26.5",
3
+ "version": "0.27.0",
4
4
  "description": "Installs, migrates, audits, and repairs repo-local agentic development harnesses",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,7 +22,6 @@
22
22
  "assets/",
23
23
  "dist/hook-entry.js",
24
24
  "dist/oar-review-host.js",
25
- "dist/operator-ui/",
26
25
  "docs/images/",
27
26
  "install.sh",
28
27
  "install.ps1",
@@ -32,6 +31,7 @@
32
31
  "references/workflow-packaging-rubric.md",
33
32
  "scripts/",
34
33
  "src/",
34
+ "!src/operator-web/",
35
35
  "AGENTS.md",
36
36
  "CLAUDE.md",
37
37
  "SKILL.md",
@@ -75,7 +75,7 @@
75
75
  "build:hook-bundle": "bun build src/cli/hook-entry.ts --target=bun --outfile dist/hook-entry.js --define REPO_HARNESS_SINGLE_FILE_BUNDLE=true && head -1 dist/hook-entry.js | grep -q '^#!/usr/bin/env bun' && ! grep -q REPO_HARNESS_SINGLE_FILE_BUNDLE dist/hook-entry.js",
76
76
  "build:operator-web": "vite build --config vite.operator.config.ts",
77
77
  "dev:operator": "vite --config vite.operator.config.ts",
78
- "prepack": "bun run build:hook-bundle 1>&2 && bun run build:oar-review-host 1>&2 && bun run build:operator-web 1>&2",
78
+ "prepack": "bun run build:hook-bundle 1>&2 && bun run build:oar-review-host 1>&2",
79
79
  "prepublishOnly": "bash scripts/check-npm-release.sh --prepublish",
80
80
  "sync:brain": "repo-harness brain sync",
81
81
  "sync:codex-installed": "bash scripts/sync-codex-installed-copies.sh",
@@ -104,7 +104,7 @@
104
104
  "vite": "^8.3.1"
105
105
  },
106
106
  "dependencies": {
107
- "@botiverse/oar": "0.88.0",
107
+ "@botiverse/oar": "0.91.0",
108
108
  "@modelcontextprotocol/sdk": "^1.31.0",
109
109
  "archctx": "0.11.3",
110
110
  "archctx-contracts": "0.11.3",
@@ -16,30 +16,55 @@ cd "$ROOT"
16
16
 
17
17
  PACKAGE_NAME="$(bun -e 'const pkg = await Bun.file("package.json").json(); console.log(pkg.name)')"
18
18
  PACKAGE_VERSION="$(bun -e 'const pkg = await Bun.file("package.json").json(); console.log(pkg.version)')"
19
+ CONSOLE_NAME="$(bun -e 'const pkg = await Bun.file("packages/operator-web/package.json").json(); console.log(pkg.name)')"
20
+ CONSOLE_VERSION="$(bun -e 'const pkg = await Bun.file("packages/operator-web/package.json").json(); console.log(pkg.version)')"
21
+ EXPECTED_CONSOLE_NAME="$(bun -e 'import { OPERATOR_WEB_PACKAGE_NAME } from "./src/core/skill-surface/plugin-manifest.ts"; console.log(OPERATOR_WEB_PACKAGE_NAME)')"
22
+ if [[ "$CONSOLE_NAME" != "$EXPECTED_CONSOLE_NAME" || "$CONSOLE_VERSION" != "$PACKAGE_VERSION" ]]; then
23
+ echo "[release] ERROR: console manifest must name ${EXPECTED_CONSOLE_NAME} and use version ${PACKAGE_VERSION}." >&2
24
+ exit 1
25
+ fi
19
26
  NPM_RELEASE_REGISTRY="${NPM_RELEASE_REGISTRY:-https://registry.npmjs.org/}"
20
27
  LOOKUP_STDERR="$(mktemp)"
21
28
  trap 'rm -f "$LOOKUP_STDERR"' EXIT
22
29
 
23
30
  echo "[release] package: ${PACKAGE_NAME}@${PACKAGE_VERSION}"
24
31
  echo "[release] registry: ${NPM_RELEASE_REGISTRY}"
32
+ if [[ "$MODE" == "prepublish" && "${npm_package_name:-}" != "$PACKAGE_NAME" && "${npm_package_name:-}" != "$CONSOLE_NAME" ]]; then
33
+ echo "[release] ERROR: npm_package_name must name ${PACKAGE_NAME} or ${CONSOLE_NAME}." >&2
34
+ exit 1
35
+ fi
36
+
25
37
  bun run check:helpers
26
- if npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" version --json --registry "$NPM_RELEASE_REGISTRY" >/dev/null 2>"$LOOKUP_STDERR"; then
27
- echo "[release] ERROR: ${PACKAGE_NAME}@${PACKAGE_VERSION} already exists on npm." >&2
38
+ check_unpublished() {
39
+ local name="$1"
40
+ if npm view "${name}@${PACKAGE_VERSION}" version --json --registry "$NPM_RELEASE_REGISTRY" >/dev/null 2>"$LOOKUP_STDERR"; then
41
+ echo "[release] ERROR: ${name}@${PACKAGE_VERSION} already exists on npm." >&2
28
42
  echo "[release] Bump package.json, CLI version, status version, and tests before publishing." >&2
29
43
  exit 1
30
44
  fi
31
45
 
32
46
  if ! grep -Eq 'E404|404 Not Found|No match found|not in this registry' "$LOOKUP_STDERR"; then
33
- echo "[release] ERROR: unable to prove ${PACKAGE_NAME}@${PACKAGE_VERSION} is unpublished." >&2
47
+ echo "[release] ERROR: unable to prove ${name}@${PACKAGE_VERSION} is unpublished." >&2
34
48
  cat "$LOOKUP_STDERR" >&2
35
49
  exit 1
36
50
  fi
51
+ }
37
52
 
38
53
  if [[ "$MODE" == "prepublish" ]]; then
54
+ check_unpublished "$npm_package_name"
55
+ if [[ "$npm_package_name" == "$PACKAGE_NAME" ]]; then
56
+ if ! npm view "${CONSOLE_NAME}@${PACKAGE_VERSION}" version --json --registry "$NPM_RELEASE_REGISTRY" >/dev/null 2>"$LOOKUP_STDERR"; then
57
+ echo "[release] ERROR: unable to verify ${CONSOLE_NAME}@${PACKAGE_VERSION}, required before ${PACKAGE_NAME} publication." >&2
58
+ cat "$LOOKUP_STDERR" >&2
59
+ exit 1
60
+ fi
61
+ fi
39
62
  echo "[release] OK: prepublish fast gate passed (check:release runs the release lane; CI owns the full suite)."
40
63
  exit 0
41
64
  fi
42
65
 
66
+ check_unpublished "$PACKAGE_NAME"
67
+ check_unpublished "$CONSOLE_NAME"
43
68
  bash scripts/check-ci.sh release
44
69
 
45
70
  echo "[release] OK: npm package gate passed."
@@ -6,6 +6,7 @@ cd "$ROOT"
6
6
 
7
7
  PACKAGE_NAME="$(bun -e 'const pkg = await Bun.file("package.json").json(); console.log(pkg.name)')"
8
8
  PACKAGE_VERSION="${1:-$(bun -e 'const pkg = await Bun.file("package.json").json(); console.log(pkg.version)')}"
9
+ CONSOLE_NAME="$(bun -e 'import { OPERATOR_WEB_PACKAGE_NAME } from "./src/core/skill-surface/plugin-manifest.ts"; console.log(OPERATOR_WEB_PACKAGE_NAME)')"
9
10
  NPM_RELEASE_REGISTRY="${NPM_RELEASE_REGISTRY:-https://registry.npmjs.org/}"
10
11
  TMP_DIR="$(mktemp -d)"
11
12
  trap 'rm -rf "$TMP_DIR"' EXIT
@@ -13,15 +14,17 @@ trap 'rm -rf "$TMP_DIR"' EXIT
13
14
  echo "[release-published] package: ${PACKAGE_NAME}@${PACKAGE_VERSION}"
14
15
  echo "[release-published] registry: ${NPM_RELEASE_REGISTRY}"
15
16
 
16
- VIEW_JSON="$TMP_DIR/npm-view.json"
17
- TAGS_JSON="$TMP_DIR/npm-tags.json"
18
- PACK_JSON="$TMP_DIR/npm-pack.json"
17
+ check_package() {
18
+ local name="$1"
19
+ local view_json="$TMP_DIR/${name}-view.json"
20
+ local tags_json="$TMP_DIR/${name}-tags.json"
21
+ local pack_json="$TMP_DIR/${name}-pack.json"
22
+ echo "[release-published] checking ${name}@${PACKAGE_VERSION}"
23
+ npm view "${name}@${PACKAGE_VERSION}" version dist.integrity dist.shasum dist.tarball --json --registry "$NPM_RELEASE_REGISTRY" >"$view_json" || { echo "[release-published] ERROR: ${name}@${PACKAGE_VERSION}: npm version lookup failed." >&2; return 1; }
24
+ npm view "$name" dist-tags --json --registry "$NPM_RELEASE_REGISTRY" >"$tags_json" || { echo "[release-published] ERROR: ${name}@${PACKAGE_VERSION}: npm dist-tag lookup failed." >&2; return 1; }
25
+ npm pack "${name}@${PACKAGE_VERSION}" --json --pack-destination "$TMP_DIR" --registry "$NPM_RELEASE_REGISTRY" >"$pack_json" || { echo "[release-published] ERROR: ${name}@${PACKAGE_VERSION}: npm pack failed." >&2; return 1; }
19
26
 
20
- npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" version dist.integrity dist.shasum dist.tarball --json --registry "$NPM_RELEASE_REGISTRY" >"$VIEW_JSON"
21
- npm view "$PACKAGE_NAME" dist-tags --json --registry "$NPM_RELEASE_REGISTRY" >"$TAGS_JSON"
22
- npm pack "${PACKAGE_NAME}@${PACKAGE_VERSION}" --json --pack-destination "$TMP_DIR" --registry "$NPM_RELEASE_REGISTRY" >"$PACK_JSON"
23
-
24
- bun - "$PACKAGE_NAME" "$PACKAGE_VERSION" "$VIEW_JSON" "$TAGS_JSON" "$PACK_JSON" <<'JS_EOF'
27
+ bun - "$name" "$PACKAGE_VERSION" "$view_json" "$tags_json" "$pack_json" <<'JS_EOF' || { echo "[release-published] ERROR: ${name}@${PACKAGE_VERSION}: registry verification failed." >&2; return 1; }
25
28
  const [, , packageName, version, viewPath, tagsPath, packPath] = process.argv;
26
29
  const view = await Bun.file(viewPath).json();
27
30
  const tags = await Bun.file(tagsPath).json();
@@ -29,7 +32,7 @@ const pack = await Bun.file(packPath).json();
29
32
  const packed = Array.isArray(pack) ? pack[0] : pack;
30
33
 
31
34
  function fail(message) {
32
- console.error(`[release-published] ERROR: ${message}`);
35
+ console.error(`[release-published] ERROR: ${packageName}@${version}: ${message}`);
33
36
  process.exit(1);
34
37
  }
35
38
 
@@ -44,6 +47,12 @@ if (!packed?.filename?.startsWith(`${packageName}-${version}`)) {
44
47
  if (packed.integrity !== view["dist.integrity"]) fail("packed tarball integrity does not match registry metadata");
45
48
  if (packed.shasum !== view["dist.shasum"]) fail("packed tarball shasum does not match registry metadata");
46
49
  JS_EOF
50
+ }
51
+
52
+ check_package "$CONSOLE_NAME"
53
+ check_package "$PACKAGE_NAME"
54
+ VIEW_JSON="$TMP_DIR/${PACKAGE_NAME}-view.json"
55
+ PACK_JSON="$TMP_DIR/${PACKAGE_NAME}-pack.json"
47
56
 
48
57
  # Published-package runtime evidence is intentionally separate from a task
49
58
  # AcceptanceReceipt. This clean install is the release-side oracle: registry
@@ -61,7 +70,10 @@ RUNTIME_APP="$TMP_DIR/runtime-app"
61
70
  RUNTIME_REPO="$TMP_DIR/runtime-repo"
62
71
  mkdir -p "$RUNTIME_APP" "$RUNTIME_REPO"
63
72
  git -C "$RUNTIME_REPO" init -q -b main
64
- (cd "$RUNTIME_APP" && npm init -y >/dev/null && npm install "$TMP_DIR/$PACKED_TARBALL" >/dev/null)
73
+ (cd "$RUNTIME_APP" && npm init -y >/dev/null && npm install "$TMP_DIR/$PACKED_TARBALL" >/dev/null) || {
74
+ echo "[release-published] ERROR: ${PACKAGE_NAME}@${PACKAGE_VERSION}: npm runtime install failed." >&2
75
+ exit 1
76
+ }
65
77
  bun scripts/runtime-evidence-receipt.ts verify \
66
78
  --registry "$VIEW_JSON" \
67
79
  --tarball "$TMP_DIR/$PACKED_TARBALL" \