repo-harness 0.26.6 → 0.28.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 (284) hide show
  1. package/README.md +1 -1
  2. package/assets/reference-configs/agentic-development-flow.md +1 -1
  3. package/assets/reference-configs/external-tooling.md +45 -9
  4. package/assets/reference-configs/global-working-rules.md +1 -1
  5. package/assets/reference-configs/herdr-notify.md +50 -4
  6. package/assets/reference-configs/release-deploy.md +7 -0
  7. package/assets/skill-commands/repo-harness-architecture/references/worker.md +3 -2
  8. package/assets/skill-version.json +2 -2
  9. package/assets/skills/repo-harness-cross-review/references/generic-review.md +4 -2
  10. package/assets/skills/repo-harness-issue-flow/SKILL.md +6 -4
  11. package/assets/skills/repo-harness-issue-flow/references/acceptor.md +5 -4
  12. package/assets/skills/repo-harness-issue-flow/references/orchestrator.md +35 -34
  13. package/assets/templates/root-context.md +1 -1
  14. package/assets/workflow-contract.v1.json +10 -6
  15. package/dist/hook-entry.js +310 -122
  16. package/package.json +20 -20
  17. package/scripts/check-agent-tooling.sh +32 -13
  18. package/scripts/check-npm-release.sh +28 -3
  19. package/scripts/check-release-published.sh +22 -10
  20. package/scripts/check-tarball-install-smoke.sh +24 -6
  21. package/src/cli/commands/board.ts +15 -1
  22. package/src/cli/commands/candidate-reconciliation.ts +8 -4
  23. package/src/cli/commands/global-runtime.ts +160 -4
  24. package/src/cli/commands/init-hook.ts +11 -1
  25. package/src/cli/commands/operator-actions.ts +82 -2
  26. package/src/cli/commands/operator.ts +1 -0
  27. package/src/cli/commands/quota.ts +9 -1
  28. package/src/cli/commands/seats.ts +67 -16
  29. package/src/cli/hook/handler-registry.ts +23 -1
  30. package/src/cli/hook/stop-handler.ts +35 -4
  31. package/src/cli/index.ts +4 -2
  32. package/src/cli/installer/global-context.ts +20 -0
  33. package/src/cli/installer/install-profile.ts +7 -5
  34. package/src/core/architecture/projection.ts +3 -33
  35. package/src/core/board/quota.ts +6 -0
  36. package/src/core/board/seat-launch.ts +78 -34
  37. package/src/core/board/seat-reset.ts +108 -0
  38. package/src/core/board/seat-routing.ts +99 -0
  39. package/src/core/board/seats-settings.ts +130 -29
  40. package/src/core/skill-surface/plugin-manifest.ts +2 -0
  41. package/src/core/terminal/herdr-core-pin.json +11 -11
  42. package/src/effects/adoption/standard-plan.ts +12 -5
  43. package/src/effects/architecture/projection-writer.ts +137 -3
  44. package/src/effects/board/pi-fleet-roles.ts +60 -0
  45. package/src/effects/board/seat-reset.ts +471 -0
  46. package/src/effects/board/seats-configuration.ts +68 -24
  47. package/src/effects/board/seats.ts +40 -0
  48. package/src/effects/operator/language-settings-route.ts +139 -0
  49. package/src/effects/operator/seats-settings-route.ts +2 -1
  50. package/src/effects/operator/server.ts +38 -12
  51. package/src/effects/review/generic-review.ts +5 -1
  52. package/src/effects/review-runner/task-review-runner.ts +5 -1
  53. package/src/effects/terminal/herdr-core.ts +22 -6
  54. package/src/effects/terminal/native-task-session.ts +1 -1
  55. package/src/effects/terminal/notify-relay.ts +21 -0
  56. package/src/effects/terminal/runtime-closeout.ts +72 -6
  57. package/src/pi/compat.ts +1 -1
  58. package/dist/operator-ui/assets/ArchitectureWorkspace-D8LE-XjF.js +0 -12
  59. package/dist/operator-ui/assets/ArchitectureWorkspace-DovLM1_n.css +0 -1
  60. package/dist/operator-ui/assets/DocsPage-DSdLctNT.js +0 -33
  61. package/dist/operator-ui/assets/abnfDiagram-VCTEODGH-DfMDS2Lp.js +0 -1
  62. package/dist/operator-ui/assets/arc-Pry-7G1_.js +0 -1
  63. package/dist/operator-ui/assets/architecture-7GRP2DOG-BgSLPpA1.js +0 -1
  64. package/dist/operator-ui/assets/architectureDiagram-5GKGNRK7-DPcsBDdu.js +0 -36
  65. package/dist/operator-ui/assets/array-BifhSqXX.js +0 -1
  66. package/dist/operator-ui/assets/blockDiagram-I7D4REHJ-C6EZpBYV.js +0 -129
  67. package/dist/operator-ui/assets/c4Diagram-7LVT6UL2-DzR6nhre.js +0 -38
  68. package/dist/operator-ui/assets/channel-B-mW7McF.js +0 -1
  69. package/dist/operator-ui/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -1
  70. package/dist/operator-ui/assets/chunk-4HAMMTFA-CIMhC59u.js +0 -62
  71. package/dist/operator-ui/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -15
  72. package/dist/operator-ui/assets/chunk-75Z2AOVW-CSfYGhNA.js +0 -2
  73. package/dist/operator-ui/assets/chunk-DU6HZSFF-x7L88tMK.js +0 -127
  74. package/dist/operator-ui/assets/chunk-F27PBJKO-D9CDMJ3K.js +0 -1
  75. package/dist/operator-ui/assets/chunk-FOHPRMQF-DzxwRta7.js +0 -161
  76. package/dist/operator-ui/assets/chunk-GMAD6QVW-0JYSnCZR.js +0 -72
  77. package/dist/operator-ui/assets/chunk-GVQU2GXP-BkyS7eBn.js +0 -1
  78. package/dist/operator-ui/assets/chunk-IMKFNOWR-UlgE8I96.js +0 -231
  79. package/dist/operator-ui/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -1
  80. package/dist/operator-ui/assets/chunk-L3NEJ4N5-C7-4NM1T.js +0 -1
  81. package/dist/operator-ui/assets/chunk-OSK3NFVY-BU0mlY5x.js +0 -10
  82. package/dist/operator-ui/assets/chunk-P2QGCYS3-D6_cpwRO.js +0 -1
  83. package/dist/operator-ui/assets/chunk-POPQ4Y6H-yDTSJccE.js +0 -1
  84. package/dist/operator-ui/assets/chunk-PWAF6VOD-BhZe2vwA.js +0 -1
  85. package/dist/operator-ui/assets/chunk-SHT3W25Y-B659Jmy9.js +0 -168
  86. package/dist/operator-ui/assets/chunk-SVP7TREG-4j1CtJJq.js +0 -88
  87. package/dist/operator-ui/assets/chunk-TICWLB2K-BimIfkEM.js +0 -206
  88. package/dist/operator-ui/assets/chunk-XXDRQBXY-Bd3Sm03O.js +0 -1
  89. package/dist/operator-ui/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -1
  90. package/dist/operator-ui/assets/classDiagram-ZZMXUADV-VMwuztF3.js +0 -1
  91. package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-VMwuztF3.js +0 -1
  92. package/dist/operator-ui/assets/cose-bilkent-JH36ORCC-DcCrMHTN.js +0 -1
  93. package/dist/operator-ui/assets/cynefin-OW5HDTMX-DAMHK0c0.js +0 -1
  94. package/dist/operator-ui/assets/cynefinDiagram-5FMLGOSQ-Bxh92BVi.js +0 -62
  95. package/dist/operator-ui/assets/cytoscape.esm-ZKjJ8woK.js +0 -321
  96. package/dist/operator-ui/assets/dagre-C-rnJpZF.js +0 -1
  97. package/dist/operator-ui/assets/dagre-GXQ25YYZ-DTL5yR1u.js +0 -4
  98. package/dist/operator-ui/assets/defaultLocale-BFoDCU3G.js +0 -1
  99. package/dist/operator-ui/assets/diagram-S7CK7UJ4-CoiWkjHb.js +0 -30
  100. package/dist/operator-ui/assets/diagram-UQ7AKVKN-BWP0Cbdb.js +0 -41
  101. package/dist/operator-ui/assets/diagram-VSXAHHWV-2h1zz_Ua.js +0 -3
  102. package/dist/operator-ui/assets/diagram-VX7I27RA-BqfEHdTD.js +0 -24
  103. package/dist/operator-ui/assets/diagram-Z3DM3KII-DZXmwLMt.js +0 -24
  104. package/dist/operator-ui/assets/dist-v5Q1xZ2K.js +0 -1
  105. package/dist/operator-ui/assets/ebnfDiagram-PWID7BFC-Blb4A7C3.js +0 -1
  106. package/dist/operator-ui/assets/erDiagram-RLTQ6QDP-BqsgGP_M.js +0 -99
  107. package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-BgE8UgeA.js +0 -1
  108. package/dist/operator-ui/assets/flowDiagram-HODETNUW-MIzGGbeU.js +0 -1
  109. package/dist/operator-ui/assets/ganttDiagram-EL5Y4UJY-UxVDVpGp.js +0 -292
  110. package/dist/operator-ui/assets/gitGraph-4MIJSDKK-tgZ11cXV.js +0 -1
  111. package/dist/operator-ui/assets/gitGraphDiagram-WWUBYQGX-WhG8HTrQ.js +0 -106
  112. package/dist/operator-ui/assets/graphlib-DS17s2tU.js +0 -1
  113. package/dist/operator-ui/assets/index-DMe4MpLH.css +0 -1
  114. package/dist/operator-ui/assets/index-Fcy-xiIk.js +0 -32
  115. package/dist/operator-ui/assets/info-A6RAGUB7-DkRbWrsD.js +0 -1
  116. package/dist/operator-ui/assets/infoDiagram-27XIBGKW-VQalCtES.js +0 -2
  117. package/dist/operator-ui/assets/init-C-OQMol4.js +0 -1
  118. package/dist/operator-ui/assets/ishikawaDiagram-5VMMS53U-D7eREjkZ.js +0 -70
  119. package/dist/operator-ui/assets/journeyDiagram-3NMN7TZE-sq6r1yfQ.js +0 -139
  120. package/dist/operator-ui/assets/kanban-definition-UXKFOSKX-xLS7cLVC.js +0 -89
  121. package/dist/operator-ui/assets/katex-ZlcWpGUi.js +0 -257
  122. package/dist/operator-ui/assets/line-DSEexTxI.js +0 -1
  123. package/dist/operator-ui/assets/linear-CFt_L1U_.js +0 -1
  124. package/dist/operator-ui/assets/mermaid-parser.core-eHRL0p-V.js +0 -7
  125. package/dist/operator-ui/assets/mermaid.core-5QKPbk__.js +0 -44
  126. package/dist/operator-ui/assets/mindmap-definition-YA3MSWOX-Bj8_GgoF.js +0 -96
  127. package/dist/operator-ui/assets/ordinal-BDEzSJ7C.js +0 -1
  128. package/dist/operator-ui/assets/packet-AYTQ26CC-BFDJ7WnH.js +0 -1
  129. package/dist/operator-ui/assets/path-fybaL0A-.js +0 -1
  130. package/dist/operator-ui/assets/pegDiagram-XKGWAZYB-BCE9YZTv.js +0 -1
  131. package/dist/operator-ui/assets/pie-WAS4IAKB-BiKTFpfV.js +0 -1
  132. package/dist/operator-ui/assets/pieDiagram-E7YTZNPT-DxDYHn8T.js +0 -39
  133. package/dist/operator-ui/assets/quadrantDiagram-AXDQQJYC-CbIKAxKj.js +0 -7
  134. package/dist/operator-ui/assets/radar-RG4KPBEZ-B-gdC3sE.js +0 -1
  135. package/dist/operator-ui/assets/railroad-74A4TZTK-CPhKfCOo.js +0 -1
  136. package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-d0JEC-DD.js +0 -1
  137. package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-C6EPurrP.js +0 -1
  138. package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-oJasS-4i.js +0 -1
  139. package/dist/operator-ui/assets/railroadDiagram-O6MQD6OU-DLzKmpVQ.js +0 -1
  140. package/dist/operator-ui/assets/requirementDiagram-BXWQKSXE-DXVYIbBr.js +0 -84
  141. package/dist/operator-ui/assets/rolldown-runtime-hePW80VL.js +0 -1
  142. package/dist/operator-ui/assets/rough.esm-Dy-Kn_BL.js +0 -1
  143. package/dist/operator-ui/assets/sankeyDiagram-P5KCCOFB-n7h6z0_-.js +0 -40
  144. package/dist/operator-ui/assets/sequenceDiagram-WJ2MYXX4--h5c7-SR.js +0 -162
  145. package/dist/operator-ui/assets/sizeCapture-INFHLROL-3uHXrFqA.js +0 -1
  146. package/dist/operator-ui/assets/src-B-DeWB10.js +0 -1
  147. package/dist/operator-ui/assets/src-D6_zRfqR.js +0 -1
  148. package/dist/operator-ui/assets/stateDiagram-D77RDMKH-DKMwKjre.js +0 -1
  149. package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-BFpB5NXy.js +0 -1
  150. package/dist/operator-ui/assets/swimlanes-42K2YHIH-BDL9jgR-.js +0 -1
  151. package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-DokZACZv.js +0 -8
  152. package/dist/operator-ui/assets/timeline-definition-24CTP7MA-CIQpGoRj.js +0 -120
  153. package/dist/operator-ui/assets/treeView-Q6P3EWNA-Btq_7U7g.js +0 -1
  154. package/dist/operator-ui/assets/treemap-WGGIJYW6-CW0DP3MN.js +0 -1
  155. package/dist/operator-ui/assets/value-DcGlvoTp.js +0 -1
  156. package/dist/operator-ui/assets/vennDiagram-4TSXK5OY-CmLMLbIW.js +0 -34
  157. package/dist/operator-ui/assets/wardley-WFR3VGLG-BNXyPxq3.js +0 -1
  158. package/dist/operator-ui/assets/wardleyDiagram-VM6X3IG4-CeL-Ktes.js +0 -78
  159. package/dist/operator-ui/assets/xychartDiagram-S5SC5T6Z-DPqbR-N1.js +0 -7
  160. package/dist/operator-ui/index.html +0 -17
  161. package/dist/operator-ui/logos/README.md +0 -7
  162. package/dist/operator-ui/logos/repo-harness-carrot-mark-transparent.svg +0 -1
  163. package/dist/operator-ui/logos/repo-harness-carrot-mark.svg +0 -6
  164. package/dist/operator-ui/mascots/README.md +0 -11
  165. package/dist/operator-ui/mascots/buddy-alert.svg +0 -1
  166. package/dist/operator-ui/mascots/buddy-happy.svg +0 -1
  167. package/dist/operator-ui/mascots/buddy-party.svg +0 -1
  168. package/dist/operator-ui/mascots/buddy-reading.svg +0 -1
  169. package/dist/operator-ui/mascots/buddy-search.svg +0 -1
  170. package/dist/operator-ui/mascots/buddy-sleep.svg +0 -1
  171. package/dist/operator-ui/mascots/buddy-wrench.svg +0 -1
  172. package/dist/operator-ui/mascots/buddy.svg +0 -1
  173. package/dist/operator-ui/mascots/bug.svg +0 -1
  174. package/dist/operator-ui/mascots/cloud-off.svg +0 -1
  175. package/dist/operator-ui/mascots/donkey-bags.svg +0 -1
  176. package/dist/operator-ui/mascots/donkey-happy.svg +0 -1
  177. package/dist/operator-ui/mascots/donkey.svg +0 -1
  178. package/dist/operator-ui/mascots/hook-cap.svg +0 -1
  179. package/dist/operator-ui/mascots/hook-carrot.svg +0 -1
  180. package/dist/operator-ui/mascots/hook.svg +0 -1
  181. package/dist/operator-ui/mascots/terminal.svg +0 -1
  182. package/src/operator-web/App.tsx +0 -505
  183. package/src/operator-web/ArchitectureHistory.tsx +0 -534
  184. package/src/operator-web/ArchitectureLayers.tsx +0 -241
  185. package/src/operator-web/ArchitectureMap.tsx +0 -328
  186. package/src/operator-web/ArchitectureModules.tsx +0 -302
  187. package/src/operator-web/ArchitectureSequence.tsx +0 -407
  188. package/src/operator-web/ArchitectureTopology.tsx +0 -344
  189. package/src/operator-web/ArchitectureWorkspace.tsx +0 -340
  190. package/src/operator-web/BoardOffice.tsx +0 -673
  191. package/src/operator-web/BoardPage.tsx +0 -526
  192. package/src/operator-web/BotsPage.tsx +0 -391
  193. package/src/operator-web/CleanupPlanReview.tsx +0 -459
  194. package/src/operator-web/CliPage.tsx +0 -113
  195. package/src/operator-web/DocsMarkdown.tsx +0 -182
  196. package/src/operator-web/DocsPage.tsx +0 -229
  197. package/src/operator-web/Drawer.tsx +0 -119
  198. package/src/operator-web/Home.tsx +0 -350
  199. package/src/operator-web/ModuleGraph.tsx +0 -163
  200. package/src/operator-web/NavRail.tsx +0 -390
  201. package/src/operator-web/NotifyStatus.tsx +0 -77
  202. package/src/operator-web/OfficeAdvisorDialog.tsx +0 -184
  203. package/src/operator-web/OfficeSetupChecklist.tsx +0 -248
  204. package/src/operator-web/RepositoriesPage.tsx +0 -150
  205. package/src/operator-web/RuntimeBadges.tsx +0 -81
  206. package/src/operator-web/SeatsPage.tsx +0 -297
  207. package/src/operator-web/SettingsPage.tsx +0 -280
  208. package/src/operator-web/SetupPages.tsx +0 -650
  209. package/src/operator-web/SystemPage.tsx +0 -95
  210. package/src/operator-web/TaskDrawer.tsx +0 -337
  211. package/src/operator-web/TestsPage.tsx +0 -260
  212. package/src/operator-web/ToolsPage.tsx +0 -148
  213. package/src/operator-web/WorktreesPage.tsx +0 -266
  214. package/src/operator-web/app.css +0 -379
  215. package/src/operator-web/architecture-history.css +0 -148
  216. package/src/operator-web/architecture-layers-layout.ts +0 -173
  217. package/src/operator-web/architecture-map-layers.ts +0 -239
  218. package/src/operator-web/architecture-map-layout.ts +0 -223
  219. package/src/operator-web/architecture-map-parts.tsx +0 -279
  220. package/src/operator-web/architecture-modules-layout.ts +0 -144
  221. package/src/operator-web/architecture-runtime.ts +0 -43
  222. package/src/operator-web/architecture-sequence-layout.ts +0 -137
  223. package/src/operator-web/architecture-sequence-svg.ts +0 -116
  224. package/src/operator-web/architecture-topology-layout.ts +0 -303
  225. package/src/operator-web/board-office.css +0 -214
  226. package/src/operator-web/board-office.ts +0 -366
  227. package/src/operator-web/board-view.ts +0 -177
  228. package/src/operator-web/bots.ts +0 -112
  229. package/src/operator-web/brand.tsx +0 -23
  230. package/src/operator-web/clipboard.ts +0 -13
  231. package/src/operator-web/css.d.ts +0 -2
  232. package/src/operator-web/design-tokens.ts +0 -58
  233. package/src/operator-web/dev-activity.ts +0 -108
  234. package/src/operator-web/fixtures/architecture-map.json +0 -19111
  235. package/src/operator-web/fixtures/board-1474.json +0 -940
  236. package/src/operator-web/fixtures/board-parents.json +0 -83
  237. package/src/operator-web/fixtures/bots.ts +0 -123
  238. package/src/operator-web/fixtures/dev-activity.ts +0 -246
  239. package/src/operator-web/fixtures/docs.ts +0 -131
  240. package/src/operator-web/fixtures/index.ts +0 -199
  241. package/src/operator-web/fixtures/office.ts +0 -312
  242. package/src/operator-web/fixtures/quota.ts +0 -51
  243. package/src/operator-web/fixtures/settings.ts +0 -158
  244. package/src/operator-web/fixtures/setup.ts +0 -179
  245. package/src/operator-web/fixtures/tests.ts +0 -74
  246. package/src/operator-web/fixtures/worktrees.ts +0 -214
  247. package/src/operator-web/i18n/architecture-history.ts +0 -38
  248. package/src/operator-web/i18n/architecture.ts +0 -737
  249. package/src/operator-web/i18n/board.ts +0 -859
  250. package/src/operator-web/i18n/bots.ts +0 -193
  251. package/src/operator-web/i18n/cli.ts +0 -59
  252. package/src/operator-web/i18n/docs.ts +0 -79
  253. package/src/operator-web/i18n/home.ts +0 -57
  254. package/src/operator-web/i18n/index.ts +0 -222
  255. package/src/operator-web/i18n/repositories.ts +0 -63
  256. package/src/operator-web/i18n/runtime.ts +0 -77
  257. package/src/operator-web/i18n/settings.ts +0 -313
  258. package/src/operator-web/i18n/setup.ts +0 -249
  259. package/src/operator-web/i18n/shell.ts +0 -227
  260. package/src/operator-web/i18n/skills.ts +0 -65
  261. package/src/operator-web/i18n/system.ts +0 -33
  262. package/src/operator-web/i18n/task.ts +0 -379
  263. package/src/operator-web/i18n/tests.ts +0 -61
  264. package/src/operator-web/i18n/tools.ts +0 -63
  265. package/src/operator-web/i18n/worktrees.ts +0 -391
  266. package/src/operator-web/index.html +0 -15
  267. package/src/operator-web/labels.ts +0 -19
  268. package/src/operator-web/main.tsx +0 -43
  269. package/src/operator-web/office-boss.ts +0 -63
  270. package/src/operator-web/office-scene.ts +0 -942
  271. package/src/operator-web/office-sprites.ts +0 -300
  272. package/src/operator-web/operator-api-error.ts +0 -31
  273. package/src/operator-web/operator-write.tsx +0 -47
  274. package/src/operator-web/quota.ts +0 -54
  275. package/src/operator-web/repositories.ts +0 -55
  276. package/src/operator-web/repository-reads.ts +0 -333
  277. package/src/operator-web/seats.ts +0 -89
  278. package/src/operator-web/settings.ts +0 -292
  279. package/src/operator-web/setup.ts +0 -132
  280. package/src/operator-web/theme.ts +0 -71
  281. package/src/operator-web/ui.tsx +0 -116
  282. package/src/operator-web/useObservationRefresh.ts +0 -64
  283. package/src/operator-web/workspace-location.ts +0 -152
  284. 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.28.0` · workflow stamp `repo-harness@0.28.0+template@0.28.0`
335
335
  - History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
336
336
  - License: MIT — see [`LICENSE`](LICENSE)
@@ -112,7 +112,7 @@ The orchestrator seat is the long-lived coordinator and integrator seat of
112
112
  `repo-harness-issue-flow`. Start it with the argv that
113
113
  `repo-harness seats argv orchestrator` prints. It dispatches work and follows
114
114
  PRs and CI. It edits no product code. It may call the read-only roles
115
- `gatekeeper`, `explorer` and `deep-reasoner` as sub-agents. The writers
115
+ `explorer` and `deep-reasoner` as sub-agents. The gatekeeper, the writers
116
116
  (`fast-worker`, `deep-worker`, `root-cause-prover`) and the Codex
117
117
  cross-review never run as its sub-agents: they run in Herdr seats, for
118
118
  worktree isolation and one writer per file.
@@ -1020,8 +1020,11 @@ provider process. `repo-harness architecture-projection status --json` adds the
1020
1020
  exact package capability handshake and project apply readiness.
1021
1021
  `projectionProvider.command` is the managed invocation `[nodePath, binaryPath]`.
1022
1022
  Guidance runs archctx only as `"$NODE" "$ARCHCTX" <command>`, with `NODE` and
1023
- `ARCHCTX` taken from that field. A bare archctx on PATH is an unrelated copy and
1024
- can have another version. When the repository has no complete ArchContext model,
1023
+ `ARCHCTX` taken from that field. Update installs the pinned CLI entry at
1024
+ `<BUN_INSTALL>/bin/archctx`. Setup check fails when PATH resolves to an unrelated
1025
+ copy and reports the owner-specific uninstall command. For an npm global copy,
1026
+ the command uses the owning prefix's Node and npm with `--prefix <prefix> -g
1027
+ uninstall archctx`. When the repository has no complete ArchContext model,
1025
1028
  `next` names the adoption flow in the `repo-harness-architecture` worker
1026
1029
  reference. The running
1027
1030
  repo-harness package owns the `archctx` executable and exact dependency version;
@@ -1051,11 +1054,43 @@ first: a stale `node_modules` fails the archctx version check. The command
1051
1054
  resolves the archctx pinned by the repo-harness package and a compatible Node
1052
1055
  runtime. It runs archctx in the target repository root, and archctx derives the
1053
1056
  writer repository from that directory. It fixes the upstream target to `origin`,
1054
- base `main`, branch `archctx/projection`, publisher `gh`. `follow` delegates the
1055
- 300-second loop to archctx. The command forwards SIGINT and SIGTERM to archctx
1056
- and returns its exit code. archctx owns the shared lock, worktree, render,
1057
- commit, push and rolling PR. It never pushes main. No GitHub App, new secret,
1058
- Actions writer or repo-harness publication loop is used. The operator supplies
1057
+ base `main`, branch `archctx/projection`, publisher `gh`. The command forwards
1058
+ SIGINT and SIGTERM to archctx and returns its exit code. archctx owns the shared
1059
+ lock, worktree, render, commit, push and rolling PR. It never pushes main. No
1060
+ GitHub App, new secret or Actions writer is used.
1061
+
1062
+ `follow` runs only under bun from a repo-harness Git source checkout. The
1063
+ checkout at `origin/main`, with its dependencies installed for that commit, is
1064
+ the one owner of the writer code version. archctx uses the checkout only as the
1065
+ Git repository and renders in its own detached worktree under
1066
+ `ARCHCONTEXT_STATE_DIR`, so moving the checkout does not move the projection
1067
+ target. Every 300 seconds, `follow` fetches `origin main`. When main moved, it
1068
+ refuses a checkout with local changes, fast-forwards, runs
1069
+ `bun install --frozen-lockfile`, records the installed commit in
1070
+ `node_modules/.repo-harness-writer-install`, writes an `updated` JSON line and
1071
+ exits with status 75. A missing install record also triggers the install and
1072
+ the restart. The supervisor restarts the process on that non-zero exit, so the
1073
+ next process runs the new code and the archctx that main pins. When the
1074
+ checkout, the install record and the running code all match main, `follow` runs
1075
+ one archctx `once` publication. When the fetch, the fast-forward or the install
1076
+ fails, `follow` writes an `update-failed` JSON line with code
1077
+ `writer_update_failed`, the checkout HEAD and the `origin/main` commit to stdout
1078
+ on each try, and the same line to stderr once per distinct error. It does not
1079
+ publish until the update succeeds. When main moves several times, each move
1080
+ costs at most one restart, and launchd `ThrottleInterval` spaces restarts at 300
1081
+ seconds. One window stays open: archctx fetches main itself and has no input
1082
+ for the checked commit. It fetches before its first render and again in its
1083
+ internal retry loop. A main move after the writer's check, before either fetch,
1084
+ can render one newer commit with the older writer. The rolling PR's CI does not
1085
+ compare renders. The Daily architecture freshness lane runs render equivalence
1086
+ on main and fails when the published output differs from what current main
1087
+ renders. A version mismatch that renders the same output is harmless. The next
1088
+ main move renders again with the new writer. The upstream fix is
1089
+ Ancienttwo/arch-context#504 (`--base-sha`). Stale projections then also fail the
1090
+ daily architecture freshness check on main, which opens a CI repair issue. A
1091
+ local commit or a dirty file that blocks the fast-forward needs an operator
1092
+ repair. The installed package is not used for `follow`: releases lag main, and
1093
+ a long-running process does not reload a `repo-harness update`. The operator supplies
1059
1094
  existing Git and gh authentication. The resulting PR runs normal CI. The merge
1060
1095
  rule for that PR is below.
1061
1096
 
@@ -1072,8 +1107,9 @@ writer-owned worktree. Do not replace a shared daemon or index other workspaces.
1072
1107
  Inspect facts again if archctx reports a stale index after the base moves; the
1073
1108
  command does not invent a repair.
1074
1109
 
1075
- Run `follow` under the operator's process supervisor after setup. Inspect each
1076
- JSON run result and `status`: `busy` means another writer holds the lock;
1110
+ Run `follow` under the operator's process supervisor after setup. The
1111
+ supervisor must restart the process after a non-zero exit (launchd: `KeepAlive`
1112
+ with `SuccessfulExit` false). Inspect each JSON run result and `status`: `busy` means another writer holds the lock;
1077
1113
  `human-action-required` needs the reported model, proof or ownership decision;
1078
1114
  `failed` carries the upstream error. Do not interpret a live process as
1079
1115
  successful publication.
@@ -84,7 +84,7 @@ When a task requires broad research, repo archaeology, multi-source synthesis, o
84
84
  - Implementation sub-agents may run scoped typecheck and affected tests in their own worktree. They commit early and return their check results. An evidence role whose task is a named check, such as a root-cause reproduction, still runs that check and does not commit.
85
85
  - The parent agent owns task management, conflict resolution, build and post-merge integration verification, including typecheck and affected tests.
86
86
  - After integration, the parent removes each sub-agent worktree and branch whose commits are in the task branch and whose checkout is clean. It also removes the intermediate build output and temporary files that the work created. Other deletion still needs the user.
87
- - The orchestrator seat is a long-lived session that starts from `repo-harness seats argv orchestrator`, not a sub-agent. It may call the read-only roles `gatekeeper`, `explorer` and `deep-reasoner` as sub-agents. It dispatches writers (`fast-worker`, `deep-worker`, `root-cause-prover`) and the Codex cross-review only to Herdr seats, for worktree isolation and one writer per file. It edits no product code.
87
+ - The orchestrator seat is a long-lived session that starts from `repo-harness seats argv orchestrator`, not a sub-agent. It may call the read-only roles `explorer` and `deep-reasoner` as sub-agents. It dispatches writers (`fast-worker`, `deep-worker`, `root-cause-prover`), the gatekeeper and the Codex cross-review only to Herdr seats, for worktree isolation and one writer per file. It edits no product code.
88
88
 
89
89
  ## Peer Harness Collaboration
90
90
 
@@ -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.
@@ -30,11 +30,14 @@ This topology applies to issue-flow work (`repo-harness-issue-flow`) on herdr-co
30
30
  - One PR has one pane and one worker agent. Each further worker gets its own pane, as the right split of a tab that is not full or in a new tab. The worker may use the agent-fleet sub-agents (`agents/fleet/`) inside its own pane.
31
31
  - Recommended models for a Claude-only setup: the orchestrator runs Opus at high effort, and the advisor runs Opus at max effort. This is a recommendation, not a requirement. No seat requires a specific model (issue-flow D7).
32
32
  - Cleanup: after a PR is accepted and merged, the orchestrator closes the worker's pane, which ends the worker process. It then removes the worker's worktree with `git worktree remove <path>` and deletes the merged branch. A pane or worktree with unmerged or dirty work stays, and the orchestrator reports it.
33
+ - Before a worker reports DONE, it stops the background programs it started (a dev server, a daemon started with `nohup` or `setsid`). On Linux and macOS, herdr-core 0.1.19 keeps a deliberately detached program running after its terminal closes, and Windows ends it.
33
34
 
34
35
  ### Runtime commands
35
36
 
36
37
  Use `hc` for terminals and `herdr-app do` for tabs and panes. In an hc terminal, `HC_TERMINAL_ID` is your address. `hc --help` and `herdr-app commands` are the syntax authority.
37
38
 
39
+ Find every live seat of the repository with `repo-harness board seats --json`, including seats without a parent issue. Wait with `hc wait <t>` or follow `hc events`. Never use `sleep` loops to wait for seats.
40
+
38
41
  Commands for the topology steps:
39
42
 
40
43
  | Step | Command |
@@ -48,24 +51,66 @@ Commands for the topology steps:
48
51
  | Wait for a worker | `hc wait <t>` |
49
52
  | Close a worker pane | `herdr-app do pane.close --pane <pane>` |
50
53
 
51
- A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator. The seat runs with sandbox network off (#1770): it runs no `gh` or `hc`, and the orchestrator reads its last message.
54
+ A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator. A seat with the `net` tool group can use the network. A writable Codex seat with `net` can reach loopback services, including the Operator console and herdr-core socket (#1961).
52
55
 
53
56
  `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
57
 
58
+ 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.
59
+
60
+ | Seat | Default runtime, model and effort |
61
+ |---|---|
62
+ | `worker` | Codex, `gpt-6.1-terra`, high |
63
+ | `worker-deep` | Codex, `gpt-6.1-sol`, high |
64
+ | `worker-important` | Claude, `opus`, medium |
65
+ | `worker-important-fast` | Claude, `sonnet`, medium |
66
+ | `worker-light` | Pi, `magpie/cursor/deepseek-v41-flash-1017`, no effort and no account; worker tool groups; no fleet. A Pi seat on `magpie/codex/<model>` ("pi-gpt") is a user-selected alternative to a Codex seat: it runs the same GPT models, takes an effort (`--thinking`) and counts against the `chatgpt` account |
67
+ | `gatekeeper` | Codex, `gpt-6.1-terra`, high; read, shell and network |
68
+ | `reviewer` | Claude, `opus`, high; read, shell and network |
69
+
70
+ 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.
71
+
72
+ 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.
73
+
74
+ `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 the Pi seat above. A stored `null` stays null during migration; its argv returns `seat_not_configured`. Each configured seat must use an enabled runtime when saved. The default Pi seat prevents a Seats page save until Pi is enabled or `worker-light` is set to `null`.
75
+
76
+ Routing selects the first eligible seat with a known account state, or a Pi seat without an account (the DeepSeek `worker-light`). A Pi seat on `magpie/codex/` has the `chatgpt` account. It selects an unknown account only when no such seat is eligible. Exhausted accounts are excluded. Claude in saving mode or exhausted stays reserved for the advisor and orchestrator. Important non-frontend work then uses a configured Pi `worker-light`; a null or non-Pi seat gives a `none` route. Frontend waits for Claude. `tight` is a display state only. When Claude is reserved, the explorer line uses `routing.low_quota_explorer` (default `haiku` high). Pass its model when you call the explorer. Otherwise the line says `default`.
77
+
78
+ `routing.claude_saving_below_remaining` defaults to 20. Claude saving mode applies when weekly remaining quota is below that percent; otherwise its mode is normal. `routing.codex_hyper_at_or_above_remaining` defaults to 50. Codex hyper mode applies when weekly remaining quota is at or above that percent; otherwise its mode is normal. A missing weekly reading gives an unknown mode. Modes are derived, never stored. Codex hyper uses the code constant `gpt-6-astra` high for Codex seats. Reserved Claude advisor and orchestrator seats use `opus` high. There is no Codex advisor fallback. A Pi seat on `magpie/codex/` gets the Codex hyper model as `magpie/codex/gpt-6-astra` with the hyper effort. Other Pi seats, tools, fleet and class lists stay as configured. An absent seats section uses defaults. Run `repo-harness update` for the one-shot migration of stored sections. The decoder refuses old keys before and after migration; a POST writes the full section.
79
+
55
80
  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
81
 
82
+ ### Seat reset
83
+
84
+ A Claude orchestrator or advisor seat resets through a handoff before auto-compaction (#1972). Opus auto-compaction started at 461k-467k context tokens on Max. With `--repository-id`, `seats argv` sets `REPO_HARNESS_SEAT` and `REPO_HARNESS_SEAT_REPOSITORY` in the env of these two seats. Only that env names the seat for the Stop hook. Worker seats do not reset.
85
+
86
+ 1. When the context of the last assistant entry of the transcript is 380,000 tokens or more, the Stop hook blocks the stop once per transcript. It records the request time and the transcript path in `/tmp/repo-harness-seats/<repository-id>/<seat>/request.json`. `/clear` starts a new transcript, so the next crossing blocks again.
87
+ 2. The seat writes `/tmp/repo-harness-seats/<repository-id>/<seat>/handoff.md` with the fixed sections that the block reason gives: role, hard rules, current state, in progress, owner decisions pending, next actions and the resume checklist. It sends `RESET-REQUEST <path> <sha256>` to the peer seat.
88
+ 3. The peer runs `repo-harness seats reset <path> <sha256>` in the background; one run can take about 10 minutes. The command finds the requester by the `repo-harness.seat` and `repo-harness.repository` labels. When the handoff is not newer than the request, its sha256 is different, or a section is missing, it sends `REWRITE` to the requester and resets nothing. Otherwise it waits with `hc wait` and sends `/clear`. The SessionStart hook of the new session writes `session.json` next to the handoff. The command sends the resume prompt only after that file names a new transcript. The resume prompt asks for `RESUMED` first. The resume evidence is an assistant Bash tool call in the new transcript, after the user entry that holds the prompt, whose command is exactly the one simple command `hc send <peer> RESUMED` (the message bare or in plain quotes), and then its tool result without an error. A compound command, another address and a command that only prints the text are no evidence. Only the bytes appended after the prompt send are read.
89
+ 4. The requester reads the handoff, sends `RESUMED` to the peer, then checks the current state with git and gh and continues.
90
+
91
+ Protocol rules. The reset runs with no human step; an owner command is never part of it (owner decision 2026-11-08):
92
+
93
+ - One reset at a time. When both seats cross the threshold, the advisor resets first.
94
+ - The peer sends no other message to the requester from `RESET-REQUEST` until `RESUMED`.
95
+ - Handoff check fails: the peer asks for a rewrite, at most 3 times. Then no reset: the seat continues, and Claude Code auto-compaction handles its context.
96
+ - Peer seat missing or not answering: no reset, same as above.
97
+ - No new-session signal: `/clear` is typed again. No answer to the resume prompt (no `RESUMED` send in the new transcript): the prompt is sent again. One attempt and at most 3 retries in total, then the other seat starts the requester again in the same terminal from `repo-harness seats argv <seat> --repository-id <id>` and sends the resume prompt.
98
+ - Each of these failures writes one entry to a reset log next to the handoff and sends one notice. The flow does not wait for anyone to read it.
99
+
100
+ `seats reset` runs these rules. It types `/clear`, `/exit` and the relaunch line (`sh <reset dir>/relaunch.sh`) with `hc keys`: `hc send` wraps its text in an envelope, so Claude reads a sent slash command as chat text. The reset log `reset-log.jsonl` is the only record of the rewrite and resend counts across runs; one run also stops after one attempt and 3 retries when the log cannot be written. Before `/clear`, a run claims the request with an exclusive create of `claim-<requested_at digits>` next to the handoff. A second run for the same request, also after an uncertain first run, sends nothing (`already_claimed`); a claim that cannot be created types nothing (`claim_failed`). A completed reset adds a `reset` entry. Each failure first appends its log entry, then posts one `seat.reset_failed` bot event to the notify channels; the run waits at most 5 s in total for the notices at its end. A log entry that cannot be written is reported in the result as `logErrors`. Without a notify config, the log entry records `not_configured`. A handoff path that is not `/tmp/repo-harness-seats/<repository-id>/<seat>/handoff.md` names no seat, so it gives only the command error, with no log entry and no notice.
101
+
57
102
  ### Pane and tab names
58
103
 
59
104
  With `--repository-id`, `seats argv` also prints the pane name (`name`) and the base tab name (`tab`). Do not type a name.
60
105
 
61
- `herdr-app do tab.new` and `pane.split` set no terminal name: the `--name` of `tab.new` is the tab name, and `pane.split` takes no name. So a seat terminal started by the launch rows has no hc name. Only a Claude seat carries the pane name, as its session name (`-n`) in the argv. A Codex seat has no session-name flag and carries no name. Find a seat terminal by its labels (`hc ls --label`), not by its name.
106
+ `herdr-app do tab.new` and `pane.split` set no terminal name: the `--name` of `tab.new` is the tab name, and `pane.split` takes no name. So a seat terminal started by the launch rows has no hc name. Only a Claude seat carries the pane name, as its session name (`-n`) in the argv. A Codex seat has no session-name flag and carries no name. Find a seat terminal with `repo-harness board seats --json`, which reads its labels.
62
107
 
63
108
  The pane name is `<prefix>-<role>[-<item>][-<qualifier>]`: at most 32 characters of `a-z 0-9 -`. Examples: `rh-orch`, `rh-adv`, `rh-w-1508`, `rh-w-rel0252`, `rh-rv-1536-codex`, `aip-w-485-device`.
64
109
 
65
110
  | Part | Values | Source |
66
111
  |---|---|---|
67
112
  | `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 |
113
+ | `role` | `orch`, `adv`, `w`, `gk`, `rv` | the seat |
69
114
  | `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
115
  | `qualifier` | worker: a slice word when one issue has two live worker panes (`--qualifier`); reviewer: the review runtime id (`claude`, `codex`) | the dispatch |
71
116
 
@@ -122,6 +167,7 @@ The command writes the config to `~/.repo-harness/herdr/notify.env` with file mo
122
167
  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
168
  The relay terminal has no parent, so it stays when the install terminal ends.
124
169
  An hc terminal starts with the core's environment, so install passes the repo-harness home to the relay as `--home <absolute path>`.
170
+ 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
171
  When a live relay terminal already exists, install starts no second one.
126
172
  The relay reads the config again on each event, so a new config takes effect without a restart.
127
173
  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
@@ -36,8 +36,9 @@ not run it unless its task authorizes the push. An operator with Git and gh
36
36
  authentication for the target repo sets `ARCHCONTEXT_STATE_DIR` to one stable
37
37
  absolute path. The operator then runs
38
38
  `repo-harness architecture-projection publish once` in the target repo, or runs
39
- `repo-harness architecture-projection publish follow` under a process
40
- supervisor. `repo-harness architecture-projection publish status` with the same
39
+ `publish follow` from a repo-harness Git source checkout under a process
40
+ supervisor; `follow` keeps that checkout at `origin/main` and does not publish
41
+ while it cannot update. `repo-harness architecture-projection publish status` with the same
41
42
  `ARCHCONTEXT_STATE_DIR` reports the last run; another state dir reports an empty
42
43
  state. The writer pushes only the `archctx/projection` branch and opens or
43
44
  updates one rolling PR. Before that PR merges, check out its head in a clean
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.26.6",
3
- "templateVersion": "0.26.6",
2
+ "version": "0.28.0",
3
+ "templateVersion": "0.28.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.
@@ -27,9 +27,9 @@ executes them or stops and asks.
27
27
 
28
28
  A **seat** is a process seat: the orchestrator, the advisor or a worker. A
29
29
  **sub-agent** is an `agents/fleet/` role that runs inside a seat process.
30
- The orchestrator calls only the read-only sub-agents `gatekeeper`,
31
- `explorer` and `deep-reasoner`. Writers, `root-cause-prover` included, and
32
- the Codex cross-review run in seats.
30
+ The orchestrator calls only the read-only sub-agents `explorer` and
31
+ `deep-reasoner`. The gatekeeper, the writers, `root-cause-prover`
32
+ included, and the Codex cross-review run in Herdr seats.
33
33
  A **claim role** is the GitHub role that a claim gives: coordinator,
34
34
  writer, head owner, integrator or acceptor.
35
35
 
@@ -38,7 +38,7 @@ writer, head owner, integrator or acceptor.
38
38
  | Orchestrator | Any host's long-lived top-level session with network access, started from `repo-harness seats argv orchestrator` | Coordinator of the parent issue; integrator | Implements a child issue in its own sub-tree; calls a writer sub-agent (`fast-worker`, `deep-worker`, `root-cause-prover`) or runs the Codex cross-review as a sub-agent |
39
39
  | Gap reviewer | A different model family from the orchestrator, when one is available | None. Comments on the drafts | Rewrites the split or decides scope |
40
40
  | Worker | Any capable coding model | Writer of one issue or PR slot, dispatched by the coordinator; head owner of its PR | Posts its own claim, widens scope, merges, pushes to another owner's branch |
41
- | Acceptor | A seat holds the acceptor role and can call the gatekeeper sub-agent, the default reviewer. The orchestrator does not review a PR itself; an independent gatekeeper sub-agent of its seat may review a PR that it dispatched. The Codex cross-review and every other review run in another seat. For the High tier, a different model family when available; otherwise a fresh same-family context | Acceptor of one review in one round | Reviews its own code, pushes code |
41
+ | Acceptor | A seat holds the acceptor role. The default reviewer is the gatekeeper in its own Herdr seat; the acceptor does not call it as a sub-agent. The orchestrator does not review a PR itself; a gatekeeper seat reviews each PR that the orchestrator dispatches. The Codex cross-review and every other review run in another seat. For the High tier, a different model family when available; otherwise a fresh same-family context | Acceptor of one review in one round | Reviews its own code, pushes code |
42
42
 
43
43
  The suggested models are advice, not a requirement. Any capable host may
44
44
  hold any claim role. The High tier records its `model_relation` in the
@@ -72,6 +72,8 @@ the issue, credentials and releases keep their own approval rules.
72
72
 
73
73
  One-time decisions live in issue decision comments. Durable decisions live in `docs/adr/`. `docs/plans/` is banned. A decision is durable when an agent could violate the rule after the issue closes.
74
74
 
75
+ When the owner gives a decision in a seat's pane, that seat gets it onto the owning issue in the same turn. The active coordinator posts it as a `decision` comment with the date and the pane. Any other seat sends it to the coordinator in the same turn, with the date and the pane, and the coordinator posts it. When no issue owns the decision yet, the coordinator opens one or names the gap to the owner.
76
+
75
77
  The comment threads are the message board between agents. Every state
76
78
  change is a typed comment, and chat messages carry only its link. Do not
77
79
  copy an issue into a local file, and do not keep plan, task, review or
@@ -12,8 +12,8 @@ acceptance record (`docs/reference-configs/agentic-development-flow.md`,
12
12
  Review by risk).
13
13
 
14
14
  The gatekeeper is the default acceptor (D6). It reviews the diff and
15
- returns a verdict and findings. It has no network, so the session that
16
- runs the round publishes the result.
15
+ returns a verdict and findings. A seat without the `net` tool group has no
16
+ network, so the session that runs the round publishes the result.
17
17
 
18
18
  No host and no model is mandatory (D7). Any host that can read the PR and
19
19
  return the result schema can accept.
@@ -101,8 +101,9 @@ posts in this order:
101
101
  - the `acceptance record`.
102
102
 
103
103
  It posts no APPROVE review and no REQUEST_CHANGES review. A gatekeeper
104
- has no network, so the session that runs the round publishes its receipt.
105
- A reviewer with network access may publish its own round.
104
+ seat without the `net` tool group has no network, so the session that runs
105
+ the round publishes its receipt. A reviewer with the `net` tool group may
106
+ publish its own round.
106
107
 
107
108
  `review publish` accepts rounds 1 to 3 only. For a round above 3, the
108
109
  session that runs the round posts the `acceptance record` by hand, in the
@@ -217,44 +217,45 @@ 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, one mode line per account and one route line per task class. For
222
+ example: `claude mode: saving (5% left < 20%)` and
223
+ `codex mode: hyper (68% left >= 50%)`. Launch each task on the seat its
224
+ route line names with `repo-harness seats argv <seat>`; state the boundary
225
+ in the task. A `none` route waits.
226
+ Apply the explorer line through the Claude Agent tool's `model` parameter when you call the explorer.
227
+
228
+ Claude saving mode applies when weekly remaining quota is below
229
+ `routing.claude_saving_below_remaining` (default 20). Codex hyper mode applies
230
+ when weekly remaining quota is at or above
231
+ `routing.codex_hyper_at_or_above_remaining` (default 50). Modes are derived,
232
+ never stored. Codex hyper seats use `gpt-6-astra` high. A Pi seat on `magpie/codex/`
233
+ takes the same hyper model as `magpie/codex/gpt-6-astra` with that effort.
234
+
235
+ Claude in saving mode or exhausted is reserved for the advisor and
236
+ orchestrator; both use `opus` high. Important non-frontend work then uses a
237
+ configured Pi `worker-light`; a null or non-Pi seat gives a `none` route.
238
+ Frontend waits for Claude; it has no non-Claude fallback.
239
+ An exhausted account takes no new dispatch, review seats included.
240
+ `tight` is a display state only; it does not reserve Claude or change routing.
241
+
242
+ Claude seats use the Claude account, Codex seats and Pi seats on `magpie/codex/` use ChatGPT, and the DeepSeek Pi seat
243
+ has no account reading. Put the reading in the `Dispatch reading:` line of each claim:
244
+ account state, used %, pace, reset time and reading time.
245
+
246
+ | Account state | Route rule | Coordinator action |
238
247
  |---|---|---|
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.
248
+ | normal or surplus | First pass, in configured seat order | Dispatch to the named seat. |
249
+ | unknown | Second pass; the line names the state | Dispatch to the named seat and record the unknown state. |
250
+ | tight | Display only; the seat stays eligible unless Claude is reserved | Follow the named route. |
251
+ | exhausted | The account is excluded | Start no new turn on that account. |
255
252
 
256
253
  ## 8. Follow up
257
254
 
255
+ Find the repository's live seats with `repo-harness board seats --json`.
256
+ It includes seats without a parent issue. Wait for a seat with `hc wait <t>`
257
+ or follow `hc events`. Never use `sleep` loops to wait for seats.
258
+
258
259
  Follow the PR and the issue comments. Do not poll CI with sleeps. Use the
259
260
  host's PR events or check when the worker reports.
260
261
 
@@ -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
  }