repo-harness 0.26.6 → 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 (259) hide show
  1. package/README.md +1 -1
  2. package/assets/reference-configs/herdr-notify.md +25 -2
  3. package/assets/reference-configs/release-deploy.md +7 -0
  4. package/assets/skill-version.json +2 -2
  5. package/assets/skills/repo-harness-cross-review/references/generic-review.md +4 -2
  6. package/assets/skills/repo-harness-issue-flow/references/orchestrator.md +20 -34
  7. package/assets/templates/root-context.md +1 -1
  8. package/assets/workflow-contract.v1.json +10 -6
  9. package/dist/hook-entry.js +1 -1
  10. package/package.json +3 -3
  11. package/scripts/check-npm-release.sh +28 -3
  12. package/scripts/check-release-published.sh +22 -10
  13. package/scripts/check-tarball-install-smoke.sh +24 -6
  14. package/src/cli/commands/candidate-reconciliation.ts +8 -4
  15. package/src/cli/commands/global-runtime.ts +99 -2
  16. package/src/cli/commands/operator-actions.ts +62 -1
  17. package/src/cli/commands/quota.ts +8 -1
  18. package/src/cli/commands/seats.ts +25 -9
  19. package/src/cli/index.ts +1 -1
  20. package/src/cli/installer/global-context.ts +20 -0
  21. package/src/cli/installer/install-profile.ts +1 -1
  22. package/src/core/board/seat-launch.ts +26 -13
  23. package/src/core/board/seat-routing.ts +64 -0
  24. package/src/core/board/seats-settings.ts +117 -16
  25. package/src/core/skill-surface/plugin-manifest.ts +2 -0
  26. package/src/effects/adoption/standard-plan.ts +12 -5
  27. package/src/effects/board/seats-configuration.ts +60 -15
  28. package/src/effects/operator/language-settings-route.ts +139 -0
  29. package/src/effects/operator/seats-settings-route.ts +2 -0
  30. package/src/effects/operator/server.ts +38 -12
  31. package/src/effects/review/generic-review.ts +5 -1
  32. package/src/effects/review-runner/task-review-runner.ts +5 -1
  33. package/dist/operator-ui/assets/ArchitectureWorkspace-D8LE-XjF.js +0 -12
  34. package/dist/operator-ui/assets/ArchitectureWorkspace-DovLM1_n.css +0 -1
  35. package/dist/operator-ui/assets/DocsPage-DSdLctNT.js +0 -33
  36. package/dist/operator-ui/assets/abnfDiagram-VCTEODGH-DfMDS2Lp.js +0 -1
  37. package/dist/operator-ui/assets/arc-Pry-7G1_.js +0 -1
  38. package/dist/operator-ui/assets/architecture-7GRP2DOG-BgSLPpA1.js +0 -1
  39. package/dist/operator-ui/assets/architectureDiagram-5GKGNRK7-DPcsBDdu.js +0 -36
  40. package/dist/operator-ui/assets/array-BifhSqXX.js +0 -1
  41. package/dist/operator-ui/assets/blockDiagram-I7D4REHJ-C6EZpBYV.js +0 -129
  42. package/dist/operator-ui/assets/c4Diagram-7LVT6UL2-DzR6nhre.js +0 -38
  43. package/dist/operator-ui/assets/channel-B-mW7McF.js +0 -1
  44. package/dist/operator-ui/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -1
  45. package/dist/operator-ui/assets/chunk-4HAMMTFA-CIMhC59u.js +0 -62
  46. package/dist/operator-ui/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -15
  47. package/dist/operator-ui/assets/chunk-75Z2AOVW-CSfYGhNA.js +0 -2
  48. package/dist/operator-ui/assets/chunk-DU6HZSFF-x7L88tMK.js +0 -127
  49. package/dist/operator-ui/assets/chunk-F27PBJKO-D9CDMJ3K.js +0 -1
  50. package/dist/operator-ui/assets/chunk-FOHPRMQF-DzxwRta7.js +0 -161
  51. package/dist/operator-ui/assets/chunk-GMAD6QVW-0JYSnCZR.js +0 -72
  52. package/dist/operator-ui/assets/chunk-GVQU2GXP-BkyS7eBn.js +0 -1
  53. package/dist/operator-ui/assets/chunk-IMKFNOWR-UlgE8I96.js +0 -231
  54. package/dist/operator-ui/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -1
  55. package/dist/operator-ui/assets/chunk-L3NEJ4N5-C7-4NM1T.js +0 -1
  56. package/dist/operator-ui/assets/chunk-OSK3NFVY-BU0mlY5x.js +0 -10
  57. package/dist/operator-ui/assets/chunk-P2QGCYS3-D6_cpwRO.js +0 -1
  58. package/dist/operator-ui/assets/chunk-POPQ4Y6H-yDTSJccE.js +0 -1
  59. package/dist/operator-ui/assets/chunk-PWAF6VOD-BhZe2vwA.js +0 -1
  60. package/dist/operator-ui/assets/chunk-SHT3W25Y-B659Jmy9.js +0 -168
  61. package/dist/operator-ui/assets/chunk-SVP7TREG-4j1CtJJq.js +0 -88
  62. package/dist/operator-ui/assets/chunk-TICWLB2K-BimIfkEM.js +0 -206
  63. package/dist/operator-ui/assets/chunk-XXDRQBXY-Bd3Sm03O.js +0 -1
  64. package/dist/operator-ui/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -1
  65. package/dist/operator-ui/assets/classDiagram-ZZMXUADV-VMwuztF3.js +0 -1
  66. package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-VMwuztF3.js +0 -1
  67. package/dist/operator-ui/assets/cose-bilkent-JH36ORCC-DcCrMHTN.js +0 -1
  68. package/dist/operator-ui/assets/cynefin-OW5HDTMX-DAMHK0c0.js +0 -1
  69. package/dist/operator-ui/assets/cynefinDiagram-5FMLGOSQ-Bxh92BVi.js +0 -62
  70. package/dist/operator-ui/assets/cytoscape.esm-ZKjJ8woK.js +0 -321
  71. package/dist/operator-ui/assets/dagre-C-rnJpZF.js +0 -1
  72. package/dist/operator-ui/assets/dagre-GXQ25YYZ-DTL5yR1u.js +0 -4
  73. package/dist/operator-ui/assets/defaultLocale-BFoDCU3G.js +0 -1
  74. package/dist/operator-ui/assets/diagram-S7CK7UJ4-CoiWkjHb.js +0 -30
  75. package/dist/operator-ui/assets/diagram-UQ7AKVKN-BWP0Cbdb.js +0 -41
  76. package/dist/operator-ui/assets/diagram-VSXAHHWV-2h1zz_Ua.js +0 -3
  77. package/dist/operator-ui/assets/diagram-VX7I27RA-BqfEHdTD.js +0 -24
  78. package/dist/operator-ui/assets/diagram-Z3DM3KII-DZXmwLMt.js +0 -24
  79. package/dist/operator-ui/assets/dist-v5Q1xZ2K.js +0 -1
  80. package/dist/operator-ui/assets/ebnfDiagram-PWID7BFC-Blb4A7C3.js +0 -1
  81. package/dist/operator-ui/assets/erDiagram-RLTQ6QDP-BqsgGP_M.js +0 -99
  82. package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-BgE8UgeA.js +0 -1
  83. package/dist/operator-ui/assets/flowDiagram-HODETNUW-MIzGGbeU.js +0 -1
  84. package/dist/operator-ui/assets/ganttDiagram-EL5Y4UJY-UxVDVpGp.js +0 -292
  85. package/dist/operator-ui/assets/gitGraph-4MIJSDKK-tgZ11cXV.js +0 -1
  86. package/dist/operator-ui/assets/gitGraphDiagram-WWUBYQGX-WhG8HTrQ.js +0 -106
  87. package/dist/operator-ui/assets/graphlib-DS17s2tU.js +0 -1
  88. package/dist/operator-ui/assets/index-DMe4MpLH.css +0 -1
  89. package/dist/operator-ui/assets/index-Fcy-xiIk.js +0 -32
  90. package/dist/operator-ui/assets/info-A6RAGUB7-DkRbWrsD.js +0 -1
  91. package/dist/operator-ui/assets/infoDiagram-27XIBGKW-VQalCtES.js +0 -2
  92. package/dist/operator-ui/assets/init-C-OQMol4.js +0 -1
  93. package/dist/operator-ui/assets/ishikawaDiagram-5VMMS53U-D7eREjkZ.js +0 -70
  94. package/dist/operator-ui/assets/journeyDiagram-3NMN7TZE-sq6r1yfQ.js +0 -139
  95. package/dist/operator-ui/assets/kanban-definition-UXKFOSKX-xLS7cLVC.js +0 -89
  96. package/dist/operator-ui/assets/katex-ZlcWpGUi.js +0 -257
  97. package/dist/operator-ui/assets/line-DSEexTxI.js +0 -1
  98. package/dist/operator-ui/assets/linear-CFt_L1U_.js +0 -1
  99. package/dist/operator-ui/assets/mermaid-parser.core-eHRL0p-V.js +0 -7
  100. package/dist/operator-ui/assets/mermaid.core-5QKPbk__.js +0 -44
  101. package/dist/operator-ui/assets/mindmap-definition-YA3MSWOX-Bj8_GgoF.js +0 -96
  102. package/dist/operator-ui/assets/ordinal-BDEzSJ7C.js +0 -1
  103. package/dist/operator-ui/assets/packet-AYTQ26CC-BFDJ7WnH.js +0 -1
  104. package/dist/operator-ui/assets/path-fybaL0A-.js +0 -1
  105. package/dist/operator-ui/assets/pegDiagram-XKGWAZYB-BCE9YZTv.js +0 -1
  106. package/dist/operator-ui/assets/pie-WAS4IAKB-BiKTFpfV.js +0 -1
  107. package/dist/operator-ui/assets/pieDiagram-E7YTZNPT-DxDYHn8T.js +0 -39
  108. package/dist/operator-ui/assets/quadrantDiagram-AXDQQJYC-CbIKAxKj.js +0 -7
  109. package/dist/operator-ui/assets/radar-RG4KPBEZ-B-gdC3sE.js +0 -1
  110. package/dist/operator-ui/assets/railroad-74A4TZTK-CPhKfCOo.js +0 -1
  111. package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-d0JEC-DD.js +0 -1
  112. package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-C6EPurrP.js +0 -1
  113. package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-oJasS-4i.js +0 -1
  114. package/dist/operator-ui/assets/railroadDiagram-O6MQD6OU-DLzKmpVQ.js +0 -1
  115. package/dist/operator-ui/assets/requirementDiagram-BXWQKSXE-DXVYIbBr.js +0 -84
  116. package/dist/operator-ui/assets/rolldown-runtime-hePW80VL.js +0 -1
  117. package/dist/operator-ui/assets/rough.esm-Dy-Kn_BL.js +0 -1
  118. package/dist/operator-ui/assets/sankeyDiagram-P5KCCOFB-n7h6z0_-.js +0 -40
  119. package/dist/operator-ui/assets/sequenceDiagram-WJ2MYXX4--h5c7-SR.js +0 -162
  120. package/dist/operator-ui/assets/sizeCapture-INFHLROL-3uHXrFqA.js +0 -1
  121. package/dist/operator-ui/assets/src-B-DeWB10.js +0 -1
  122. package/dist/operator-ui/assets/src-D6_zRfqR.js +0 -1
  123. package/dist/operator-ui/assets/stateDiagram-D77RDMKH-DKMwKjre.js +0 -1
  124. package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-BFpB5NXy.js +0 -1
  125. package/dist/operator-ui/assets/swimlanes-42K2YHIH-BDL9jgR-.js +0 -1
  126. package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-DokZACZv.js +0 -8
  127. package/dist/operator-ui/assets/timeline-definition-24CTP7MA-CIQpGoRj.js +0 -120
  128. package/dist/operator-ui/assets/treeView-Q6P3EWNA-Btq_7U7g.js +0 -1
  129. package/dist/operator-ui/assets/treemap-WGGIJYW6-CW0DP3MN.js +0 -1
  130. package/dist/operator-ui/assets/value-DcGlvoTp.js +0 -1
  131. package/dist/operator-ui/assets/vennDiagram-4TSXK5OY-CmLMLbIW.js +0 -34
  132. package/dist/operator-ui/assets/wardley-WFR3VGLG-BNXyPxq3.js +0 -1
  133. package/dist/operator-ui/assets/wardleyDiagram-VM6X3IG4-CeL-Ktes.js +0 -78
  134. package/dist/operator-ui/assets/xychartDiagram-S5SC5T6Z-DPqbR-N1.js +0 -7
  135. package/dist/operator-ui/index.html +0 -17
  136. package/dist/operator-ui/logos/README.md +0 -7
  137. package/dist/operator-ui/logos/repo-harness-carrot-mark-transparent.svg +0 -1
  138. package/dist/operator-ui/logos/repo-harness-carrot-mark.svg +0 -6
  139. package/dist/operator-ui/mascots/README.md +0 -11
  140. package/dist/operator-ui/mascots/buddy-alert.svg +0 -1
  141. package/dist/operator-ui/mascots/buddy-happy.svg +0 -1
  142. package/dist/operator-ui/mascots/buddy-party.svg +0 -1
  143. package/dist/operator-ui/mascots/buddy-reading.svg +0 -1
  144. package/dist/operator-ui/mascots/buddy-search.svg +0 -1
  145. package/dist/operator-ui/mascots/buddy-sleep.svg +0 -1
  146. package/dist/operator-ui/mascots/buddy-wrench.svg +0 -1
  147. package/dist/operator-ui/mascots/buddy.svg +0 -1
  148. package/dist/operator-ui/mascots/bug.svg +0 -1
  149. package/dist/operator-ui/mascots/cloud-off.svg +0 -1
  150. package/dist/operator-ui/mascots/donkey-bags.svg +0 -1
  151. package/dist/operator-ui/mascots/donkey-happy.svg +0 -1
  152. package/dist/operator-ui/mascots/donkey.svg +0 -1
  153. package/dist/operator-ui/mascots/hook-cap.svg +0 -1
  154. package/dist/operator-ui/mascots/hook-carrot.svg +0 -1
  155. package/dist/operator-ui/mascots/hook.svg +0 -1
  156. package/dist/operator-ui/mascots/terminal.svg +0 -1
  157. package/src/operator-web/App.tsx +0 -505
  158. package/src/operator-web/ArchitectureHistory.tsx +0 -534
  159. package/src/operator-web/ArchitectureLayers.tsx +0 -241
  160. package/src/operator-web/ArchitectureMap.tsx +0 -328
  161. package/src/operator-web/ArchitectureModules.tsx +0 -302
  162. package/src/operator-web/ArchitectureSequence.tsx +0 -407
  163. package/src/operator-web/ArchitectureTopology.tsx +0 -344
  164. package/src/operator-web/ArchitectureWorkspace.tsx +0 -340
  165. package/src/operator-web/BoardOffice.tsx +0 -673
  166. package/src/operator-web/BoardPage.tsx +0 -526
  167. package/src/operator-web/BotsPage.tsx +0 -391
  168. package/src/operator-web/CleanupPlanReview.tsx +0 -459
  169. package/src/operator-web/CliPage.tsx +0 -113
  170. package/src/operator-web/DocsMarkdown.tsx +0 -182
  171. package/src/operator-web/DocsPage.tsx +0 -229
  172. package/src/operator-web/Drawer.tsx +0 -119
  173. package/src/operator-web/Home.tsx +0 -350
  174. package/src/operator-web/ModuleGraph.tsx +0 -163
  175. package/src/operator-web/NavRail.tsx +0 -390
  176. package/src/operator-web/NotifyStatus.tsx +0 -77
  177. package/src/operator-web/OfficeAdvisorDialog.tsx +0 -184
  178. package/src/operator-web/OfficeSetupChecklist.tsx +0 -248
  179. package/src/operator-web/RepositoriesPage.tsx +0 -150
  180. package/src/operator-web/RuntimeBadges.tsx +0 -81
  181. package/src/operator-web/SeatsPage.tsx +0 -297
  182. package/src/operator-web/SettingsPage.tsx +0 -280
  183. package/src/operator-web/SetupPages.tsx +0 -650
  184. package/src/operator-web/SystemPage.tsx +0 -95
  185. package/src/operator-web/TaskDrawer.tsx +0 -337
  186. package/src/operator-web/TestsPage.tsx +0 -260
  187. package/src/operator-web/ToolsPage.tsx +0 -148
  188. package/src/operator-web/WorktreesPage.tsx +0 -266
  189. package/src/operator-web/app.css +0 -379
  190. package/src/operator-web/architecture-history.css +0 -148
  191. package/src/operator-web/architecture-layers-layout.ts +0 -173
  192. package/src/operator-web/architecture-map-layers.ts +0 -239
  193. package/src/operator-web/architecture-map-layout.ts +0 -223
  194. package/src/operator-web/architecture-map-parts.tsx +0 -279
  195. package/src/operator-web/architecture-modules-layout.ts +0 -144
  196. package/src/operator-web/architecture-runtime.ts +0 -43
  197. package/src/operator-web/architecture-sequence-layout.ts +0 -137
  198. package/src/operator-web/architecture-sequence-svg.ts +0 -116
  199. package/src/operator-web/architecture-topology-layout.ts +0 -303
  200. package/src/operator-web/board-office.css +0 -214
  201. package/src/operator-web/board-office.ts +0 -366
  202. package/src/operator-web/board-view.ts +0 -177
  203. package/src/operator-web/bots.ts +0 -112
  204. package/src/operator-web/brand.tsx +0 -23
  205. package/src/operator-web/clipboard.ts +0 -13
  206. package/src/operator-web/css.d.ts +0 -2
  207. package/src/operator-web/design-tokens.ts +0 -58
  208. package/src/operator-web/dev-activity.ts +0 -108
  209. package/src/operator-web/fixtures/architecture-map.json +0 -19111
  210. package/src/operator-web/fixtures/board-1474.json +0 -940
  211. package/src/operator-web/fixtures/board-parents.json +0 -83
  212. package/src/operator-web/fixtures/bots.ts +0 -123
  213. package/src/operator-web/fixtures/dev-activity.ts +0 -246
  214. package/src/operator-web/fixtures/docs.ts +0 -131
  215. package/src/operator-web/fixtures/index.ts +0 -199
  216. package/src/operator-web/fixtures/office.ts +0 -312
  217. package/src/operator-web/fixtures/quota.ts +0 -51
  218. package/src/operator-web/fixtures/settings.ts +0 -158
  219. package/src/operator-web/fixtures/setup.ts +0 -179
  220. package/src/operator-web/fixtures/tests.ts +0 -74
  221. package/src/operator-web/fixtures/worktrees.ts +0 -214
  222. package/src/operator-web/i18n/architecture-history.ts +0 -38
  223. package/src/operator-web/i18n/architecture.ts +0 -737
  224. package/src/operator-web/i18n/board.ts +0 -859
  225. package/src/operator-web/i18n/bots.ts +0 -193
  226. package/src/operator-web/i18n/cli.ts +0 -59
  227. package/src/operator-web/i18n/docs.ts +0 -79
  228. package/src/operator-web/i18n/home.ts +0 -57
  229. package/src/operator-web/i18n/index.ts +0 -222
  230. package/src/operator-web/i18n/repositories.ts +0 -63
  231. package/src/operator-web/i18n/runtime.ts +0 -77
  232. package/src/operator-web/i18n/settings.ts +0 -313
  233. package/src/operator-web/i18n/setup.ts +0 -249
  234. package/src/operator-web/i18n/shell.ts +0 -227
  235. package/src/operator-web/i18n/skills.ts +0 -65
  236. package/src/operator-web/i18n/system.ts +0 -33
  237. package/src/operator-web/i18n/task.ts +0 -379
  238. package/src/operator-web/i18n/tests.ts +0 -61
  239. package/src/operator-web/i18n/tools.ts +0 -63
  240. package/src/operator-web/i18n/worktrees.ts +0 -391
  241. package/src/operator-web/index.html +0 -15
  242. package/src/operator-web/labels.ts +0 -19
  243. package/src/operator-web/main.tsx +0 -43
  244. package/src/operator-web/office-boss.ts +0 -63
  245. package/src/operator-web/office-scene.ts +0 -942
  246. package/src/operator-web/office-sprites.ts +0 -300
  247. package/src/operator-web/operator-api-error.ts +0 -31
  248. package/src/operator-web/operator-write.tsx +0 -47
  249. package/src/operator-web/quota.ts +0 -54
  250. package/src/operator-web/repositories.ts +0 -55
  251. package/src/operator-web/repository-reads.ts +0 -333
  252. package/src/operator-web/seats.ts +0 -89
  253. package/src/operator-web/settings.ts +0 -292
  254. package/src/operator-web/setup.ts +0 -132
  255. package/src/operator-web/theme.ts +0 -71
  256. package/src/operator-web/ui.tsx +0 -116
  257. package/src/operator-web/useObservationRefresh.ts +0 -64
  258. package/src/operator-web/workspace-location.ts +0 -152
  259. 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.6` · workflow stamp `repo-harness@0.26.6+template@0.26.6`
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)
@@ -14,7 +14,7 @@ the server records `host_failed` when the guard refuses that child.
14
14
  ## Herdr Dispatch
15
15
 
16
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.
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`. 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`.
18
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.
19
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.
20
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.
@@ -52,6 +52,28 @@ A Codex worker seat in a linked contract worktree edits files and runs checks on
52
52
 
53
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.
54
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
+
55
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.
56
78
 
57
79
  ### Pane and tab names
@@ -65,7 +87,7 @@ The pane name is `<prefix>-<role>[-<item>][-<qualifier>]`: at most 32 characters
65
87
  | Part | Values | Source |
66
88
  |---|---|---|
67
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` |
68
- | `role` | `orch`, `adv`, `w`; `rv` for a reviewer pane started by hand | the seat |
90
+ | `role` | `orch`, `adv`, `w`, `gk`, `rv` | the seat |
69
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 |
70
92
  | `qualifier` | worker: a slice word when one issue has two live worker panes (`--qualifier`); reviewer: the review runtime id (`claude`, `codex`) | the dispatch |
71
93
 
@@ -122,6 +144,7 @@ The command writes the config to `~/.repo-harness/herdr/notify.env` with file mo
122
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`.
123
145
  The relay terminal has no parent, so it stays when the install terminal ends.
124
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`.
125
148
  When a live relay terminal already exists, install starts no second one.
126
149
  The relay reads the config again on each event, so a new config takes effect without a restart.
127
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.
@@ -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.6",
3
- "templateVersion": "0.26.6",
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,7 +2555,7 @@ function createFileExclusiveDurably(path, content, mode = 384) {
2555
2555
  var init_atomic_append = () => {};
2556
2556
 
2557
2557
  // package.json
2558
- var version = "0.26.6", dependencies;
2558
+ var version = "0.27.0", dependencies;
2559
2559
  var init_package = __esm(() => {
2560
2560
  dependencies = {
2561
2561
  "@botiverse/oar": "0.91.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repo-harness",
3
- "version": "0.26.6",
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",
@@ -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" \
@@ -48,14 +48,32 @@ console.log(entry.filename);
48
48
  JS_EOF
49
49
  )"
50
50
  TARBALL_PATH="$TMP_DIR/$TARBALL"
51
+ CONSOLE_PACK_JSON="$TMP_DIR/console-pack.json"
52
+ (cd "$ROOT/packages/operator-web" && npm pack --json --pack-destination "$TMP_DIR") >"$CONSOLE_PACK_JSON"
53
+ CONSOLE_TARBALL="$(bun - "$CONSOLE_PACK_JSON" <<'JS_EOF'
54
+ const [, , path] = process.argv;
55
+ const [entry] = await Bun.file(path).json();
56
+ console.log(entry.filename);
57
+ JS_EOF
58
+ )"
51
59
  APP_DIR="$TMP_DIR/app"
52
60
  TARGET_REPO="$TMP_DIR/target-repo"
53
61
 
54
- bun - "$PACK_JSON" <<'JS_EOF'
55
- const [, , path] = process.argv;
62
+ bun - "$PACK_JSON" "$CONSOLE_PACK_JSON" <<'JS_EOF'
63
+ const [, , path, consolePath] = process.argv;
56
64
  const pack = await Bun.file(path).json();
57
65
  const entry = Array.isArray(pack) ? pack[0] : pack;
58
66
  const files = new Set((entry.files ?? []).map((file) => file.path));
67
+ const [consoleEntry] = await Bun.file(consolePath).json();
68
+ const consoleFiles = consoleEntry.files.map(file => file.path);
69
+ if (consoleEntry.version !== entry.version
70
+ || !['package.json', 'README.md', 'LICENSE', 'dist/index.html'].every(path => consoleFiles.includes(path))
71
+ || consoleFiles.some(path => !['package.json', 'README.md', 'LICENSE'].includes(path) && !path.startsWith('dist/'))
72
+ || [...files].some(path => path.startsWith('dist/operator-ui/') || path.startsWith('src/operator-web/'))) {
73
+ console.error('[tarball-smoke] ERROR: core and console package boundaries or versions differ');
74
+ process.exit(1);
75
+ }
76
+ console.log(`[tarball-smoke] core unpacked size: ${entry.unpackedSize} bytes; console: ${consoleEntry.unpackedSize} bytes`);
59
77
  const required = [
60
78
  "src/pi/extension.ts",
61
79
  "src/pi/hook-bridge.ts",
@@ -76,7 +94,7 @@ const required = [
76
94
  "src/core/evidence/verification-plan.ts",
77
95
  "src/effects/evidence/verification-execution.ts",
78
96
  "assets/operator/windows-job-controller.ps1",
79
- "dist/operator-ui/index.html",
97
+ "src/effects/review-runner/task-oar-host.ts",
80
98
  ];
81
99
  const retired = [
82
100
  "scripts/axr6-stop-host-cycle.ts",
@@ -100,10 +118,10 @@ const retired = [
100
118
  const missing = required.filter((file) => !files.has(file));
101
119
  const leaked = retired.filter((file) => files.has(file));
102
120
  const aiHooks = [...files].filter((file) => file.startsWith(".ai/hooks/"));
103
- const operatorAssets = [...files].filter((file) => file.startsWith("dist/operator-ui/assets/"));
121
+ const operatorAssets = consoleFiles.filter((file) => file.startsWith("dist/assets/"));
104
122
  // The Kumo/Tailwind UI ships one hashed entry script and one hashed stylesheet; fonts are system stacks.
105
123
  const missingOperatorAssetKinds = [".js", ".css"].filter(
106
- (extension) => !operatorAssets.some((file) => /^dist\/operator-ui\/assets\/index-[A-Za-z0-9_-]+\.(?:js|css)$/u.test(file) && file.endsWith(extension)),
124
+ (extension) => !operatorAssets.some((file) => /^dist\/assets\/index-[A-Za-z0-9_-]+\.(?:js|css)$/u.test(file) && file.endsWith(extension)),
107
125
  );
108
126
  if (missing.length > 0 || leaked.length > 0 || aiHooks.length > 0 || missingOperatorAssetKinds.length > 0) {
109
127
  if (missing.length > 0) {
@@ -127,7 +145,7 @@ git -C "$TARGET_REPO" init -q -b main
127
145
 
128
146
  cd "$APP_DIR"
129
147
  bun init -y >/dev/null
130
- bun add "$TARBALL_PATH" >/dev/null
148
+ bun add "$TARBALL_PATH" "$TMP_DIR/$CONSOLE_TARBALL" >/dev/null
131
149
 
132
150
  CLI="$APP_DIR/node_modules/.bin/repo-harness"
133
151
  HOOK="$APP_DIR/node_modules/.bin/repo-harness-hook"
@@ -342,10 +342,13 @@ export function hostsForTarget(target: InstallTargetSpec): readonly HookHost[] {
342
342
  return target === 'both' ? ['claude', 'codex'] : [target];
343
343
  }
344
344
 
345
- export function expectedAdapterProjectionDigests(target: InstallTargetSpec): Readonly<Record<HookHost, string>> {
345
+ export function expectedAdapterProjectionDigests(
346
+ target: InstallTargetSpec,
347
+ env: NodeJS.ProcessEnv = process.env,
348
+ ): Readonly<Record<HookHost, string>> {
346
349
  return Object.fromEntries(hostsForTarget(target).map((host) => [
347
350
  host,
348
- managedProjectionDigest(buildManagedHooks(host)),
351
+ managedProjectionDigest(buildManagedHooks(host, env)),
349
352
  ])) as Record<HookHost, string>;
350
353
  }
351
354
 
@@ -368,7 +371,7 @@ export function assertInstalledAdapterProjection(
368
371
  target: InstallTargetSpec,
369
372
  env: NodeJS.ProcessEnv = process.env,
370
373
  ): Readonly<Record<HookHost, string>> {
371
- const expected = expectedAdapterProjectionDigests(target);
374
+ const expected = expectedAdapterProjectionDigests(target, env);
372
375
  for (const host of hostsForTarget(target)) {
373
376
  const actual = installedAdapterProjectionDigest(adapterPath(host, env));
374
377
  if (actual !== expected[host]) {
@@ -385,6 +388,7 @@ export function assertInstalledAdapterProjection(
385
388
  export function assertCandidateReconciliationReceipt(
386
389
  receipt: CandidateReconciliationReceipt,
387
390
  expected: CandidateReceiptExpectation,
391
+ env: NodeJS.ProcessEnv = process.env,
388
392
  ): void {
389
393
  if (receipt.protocol !== CANDIDATE_RECONCILIATION_PROTOCOL) {
390
394
  throw new Error(`candidate reconciliation protocol mismatch: expected=${CANDIDATE_RECONCILIATION_PROTOCOL}; actual=${String(receipt.protocol)}`);
@@ -409,7 +413,7 @@ export function assertCandidateReconciliationReceipt(
409
413
  throw new Error('candidate reconciliation is partial');
410
414
  }
411
415
  if (expected.require_adapter_projection !== false) {
412
- const expectedDigests = expectedAdapterProjectionDigests(expected.target);
416
+ const expectedDigests = expectedAdapterProjectionDigests(expected.target, env);
413
417
  for (const host of hostsForTarget(expected.target)) {
414
418
  if (receipt.adapter_projection_digests[host] !== expectedDigests[host]) {
415
419
  throw new Error(`adapter projection mismatch for ${host}`);