charness 3.11.0 → 3.13.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 (537) hide show
  1. package/.env.example +5 -0
  2. package/CHANGELOG.md +169 -0
  3. package/DEVELOPMENT.md +81 -18
  4. package/README.md +3 -2
  5. package/SETUP.md +71 -25
  6. package/agent-plugin/README.md +15 -6
  7. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +37 -18
  8. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +10 -6
  9. package/agent-plugin/skills/charness-delivery-loop/SKILL.md +92 -0
  10. package/agent-plugin/skills/charness-orchestration/SKILL.md +116 -0
  11. package/dist/accessControl.d.ts +43 -0
  12. package/dist/accessControl.d.ts.map +1 -1
  13. package/dist/accessControl.js +50 -1
  14. package/dist/accessControl.js.map +1 -1
  15. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  16. package/dist/adapters/claudeCliAdapter.js +9 -4
  17. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  18. package/dist/adapters/claudeJsonStreamAdapter.js +1 -1
  19. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  20. package/dist/adapters/claudePlatformFlags.d.ts +4 -3
  21. package/dist/adapters/claudePlatformFlags.d.ts.map +1 -1
  22. package/dist/adapters/claudePlatformFlags.js +4 -3
  23. package/dist/adapters/claudePlatformFlags.js.map +1 -1
  24. package/dist/adapters/openCodeAdapter.d.ts +52 -13
  25. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  26. package/dist/adapters/openCodeAdapter.js +121 -45
  27. package/dist/adapters/openCodeAdapter.js.map +1 -1
  28. package/dist/adapters/terminalAdapter.d.ts.map +1 -1
  29. package/dist/adapters/terminalAdapter.js +5 -3
  30. package/dist/adapters/terminalAdapter.js.map +1 -1
  31. package/dist/agentLogin/agentLogin.d.ts +11 -0
  32. package/dist/agentLogin/agentLogin.d.ts.map +1 -1
  33. package/dist/agentLogin/agentLogin.js +20 -20
  34. package/dist/agentLogin/agentLogin.js.map +1 -1
  35. package/dist/apiErrorRetry.d.ts +5 -0
  36. package/dist/apiErrorRetry.d.ts.map +1 -1
  37. package/dist/apiErrorRetry.js +3 -3
  38. package/dist/apiErrorRetry.js.map +1 -1
  39. package/dist/bot.d.ts +12 -3
  40. package/dist/bot.d.ts.map +1 -1
  41. package/dist/bot.js +634 -153
  42. package/dist/bot.js.map +1 -1
  43. package/dist/cli/claudeProfiles.d.ts +5 -2
  44. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  45. package/dist/cli/claudeProfiles.js +45 -22
  46. package/dist/cli/claudeProfiles.js.map +1 -1
  47. package/dist/cli/claudeProfilesCredit.d.ts +49 -0
  48. package/dist/cli/claudeProfilesCredit.d.ts.map +1 -0
  49. package/dist/cli/claudeProfilesCredit.js +160 -0
  50. package/dist/cli/claudeProfilesCredit.js.map +1 -0
  51. package/dist/cli/flagValue.d.ts +10 -0
  52. package/dist/cli/flagValue.d.ts.map +1 -0
  53. package/dist/cli/flagValue.js +17 -0
  54. package/dist/cli/flagValue.js.map +1 -0
  55. package/dist/connectors/jira/client.js +1 -1
  56. package/dist/connectors/jira/client.js.map +1 -1
  57. package/dist/connectors/jira/config.d.ts +7 -0
  58. package/dist/connectors/jira/config.d.ts.map +1 -1
  59. package/dist/connectors/jira/config.js +12 -1
  60. package/dist/connectors/jira/config.js.map +1 -1
  61. package/dist/connectors/jira/connector.d.ts +7 -0
  62. package/dist/connectors/jira/connector.d.ts.map +1 -1
  63. package/dist/connectors/jira/connector.js +20 -3
  64. package/dist/connectors/jira/connector.js.map +1 -1
  65. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  66. package/dist/connectors/jira/inbound.js +4 -3
  67. package/dist/connectors/jira/inbound.js.map +1 -1
  68. package/dist/connectors/jira/issueBlocks.d.ts +1 -1
  69. package/dist/connectors/jira/trustedGroup.d.ts +21 -6
  70. package/dist/connectors/jira/trustedGroup.d.ts.map +1 -1
  71. package/dist/connectors/jira/trustedGroup.js +46 -6
  72. package/dist/connectors/jira/trustedGroup.js.map +1 -1
  73. package/dist/connectors/telegram/commands/botCore.d.ts +19 -2
  74. package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
  75. package/dist/connectors/telegram/commands/botSkills.js +1 -1
  76. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -1
  77. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  78. package/dist/connectors/telegram/commands/claudeAccounts.js +9 -6
  79. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  80. package/dist/connectors/telegram/commands/compaction.d.ts +16 -3
  81. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  82. package/dist/connectors/telegram/commands/compaction.js +216 -27
  83. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  84. package/dist/connectors/telegram/commands/runners.d.ts +5 -1
  85. package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
  86. package/dist/connectors/telegram/commands/runners.js +146 -31
  87. package/dist/connectors/telegram/commands/runners.js.map +1 -1
  88. package/dist/connectors/telegram/commands/todo.d.ts.map +1 -1
  89. package/dist/connectors/telegram/commands/todo.js +2 -2
  90. package/dist/connectors/telegram/commands/todo.js.map +1 -1
  91. package/dist/connectors/telegram/commands/topicAccess.d.ts +30 -0
  92. package/dist/connectors/telegram/commands/topicAccess.d.ts.map +1 -0
  93. package/dist/connectors/telegram/commands/topicAccess.js +399 -0
  94. package/dist/connectors/telegram/commands/topicAccess.js.map +1 -0
  95. package/dist/connectors/telegram/inbound.d.ts +44 -7
  96. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  97. package/dist/connectors/telegram/inbound.js +142 -24
  98. package/dist/connectors/telegram/inbound.js.map +1 -1
  99. package/dist/connectors/telegram/runnerPairingMessages.d.ts +2 -7
  100. package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
  101. package/dist/connectors/telegram/runnerPairingMessages.js +5 -19
  102. package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
  103. package/dist/i18n/de.d.ts.map +1 -1
  104. package/dist/i18n/de.js +120 -8
  105. package/dist/i18n/de.js.map +1 -1
  106. package/dist/i18n/en.d.ts.map +1 -1
  107. package/dist/i18n/en.js +120 -8
  108. package/dist/i18n/en.js.map +1 -1
  109. package/dist/i18n/es.d.ts.map +1 -1
  110. package/dist/i18n/es.js +120 -8
  111. package/dist/i18n/es.js.map +1 -1
  112. package/dist/i18n/fr.d.ts.map +1 -1
  113. package/dist/i18n/fr.js +120 -8
  114. package/dist/i18n/fr.js.map +1 -1
  115. package/dist/i18n/hi.d.ts.map +1 -1
  116. package/dist/i18n/hi.js +120 -8
  117. package/dist/i18n/hi.js.map +1 -1
  118. package/dist/i18n/ja.d.ts.map +1 -1
  119. package/dist/i18n/ja.js +120 -8
  120. package/dist/i18n/ja.js.map +1 -1
  121. package/dist/i18n/ka.d.ts.map +1 -1
  122. package/dist/i18n/ka.js +120 -8
  123. package/dist/i18n/ka.js.map +1 -1
  124. package/dist/i18n/pt.d.ts.map +1 -1
  125. package/dist/i18n/pt.js +120 -8
  126. package/dist/i18n/pt.js.map +1 -1
  127. package/dist/i18n/ru.d.ts.map +1 -1
  128. package/dist/i18n/ru.js +120 -8
  129. package/dist/i18n/ru.js.map +1 -1
  130. package/dist/i18n/uk.d.ts.map +1 -1
  131. package/dist/i18n/uk.js +120 -8
  132. package/dist/i18n/uk.js.map +1 -1
  133. package/dist/i18n/uz.d.ts.map +1 -1
  134. package/dist/i18n/uz.js +120 -8
  135. package/dist/i18n/uz.js.map +1 -1
  136. package/dist/i18n/zh.d.ts.map +1 -1
  137. package/dist/i18n/zh.js +120 -8
  138. package/dist/i18n/zh.js.map +1 -1
  139. package/dist/installManager.d.ts +37 -1
  140. package/dist/installManager.d.ts.map +1 -1
  141. package/dist/installManager.js +208 -14
  142. package/dist/installManager.js.map +1 -1
  143. package/dist/instanceLock.d.ts.map +1 -1
  144. package/dist/instanceLock.js +2 -1
  145. package/dist/instanceLock.js.map +1 -1
  146. package/dist/platform/commandRouter.d.ts +13 -1
  147. package/dist/platform/commandRouter.d.ts.map +1 -1
  148. package/dist/platform/commandRouter.js +14 -2
  149. package/dist/platform/commandRouter.js.map +1 -1
  150. package/dist/platform/inbound.d.ts +2 -0
  151. package/dist/platform/inbound.d.ts.map +1 -1
  152. package/dist/platform/outbound.d.ts +14 -1
  153. package/dist/platform/outbound.d.ts.map +1 -1
  154. package/dist/platform/outbound.js.map +1 -1
  155. package/dist/remoteRun/cleanReport.d.ts +45 -0
  156. package/dist/remoteRun/cleanReport.d.ts.map +1 -0
  157. package/dist/remoteRun/cleanReport.js +84 -0
  158. package/dist/remoteRun/cleanReport.js.map +1 -0
  159. package/dist/remoteRun/cliArgs.d.ts +18 -0
  160. package/dist/remoteRun/cliArgs.d.ts.map +1 -1
  161. package/dist/remoteRun/cliArgs.js +100 -4
  162. package/dist/remoteRun/cliArgs.js.map +1 -1
  163. package/dist/remoteRun/commands.d.ts +30 -1
  164. package/dist/remoteRun/commands.d.ts.map +1 -1
  165. package/dist/remoteRun/commands.js +84 -9
  166. package/dist/remoteRun/commands.js.map +1 -1
  167. package/dist/remoteRun/exitCodes.d.ts +5 -0
  168. package/dist/remoteRun/exitCodes.d.ts.map +1 -1
  169. package/dist/remoteRun/exitCodes.js +6 -1
  170. package/dist/remoteRun/exitCodes.js.map +1 -1
  171. package/dist/remoteRun/foreground.d.ts +6 -0
  172. package/dist/remoteRun/foreground.d.ts.map +1 -1
  173. package/dist/remoteRun/foreground.js +13 -1
  174. package/dist/remoteRun/foreground.js.map +1 -1
  175. package/dist/remoteRun/interrupts.d.ts.map +1 -1
  176. package/dist/remoteRun/interrupts.js +2 -2
  177. package/dist/remoteRun/interrupts.js.map +1 -1
  178. package/dist/remoteRun/jobFiles.d.ts +6 -1
  179. package/dist/remoteRun/jobFiles.d.ts.map +1 -1
  180. package/dist/remoteRun/jobFiles.js +14 -0
  181. package/dist/remoteRun/jobFiles.js.map +1 -1
  182. package/dist/remoteRun/jobId.d.ts +5 -0
  183. package/dist/remoteRun/jobId.d.ts.map +1 -1
  184. package/dist/remoteRun/jobId.js +10 -0
  185. package/dist/remoteRun/jobId.js.map +1 -1
  186. package/dist/remoteRun/jobState.d.ts.map +1 -1
  187. package/dist/remoteRun/jobState.js +3 -2
  188. package/dist/remoteRun/jobState.js.map +1 -1
  189. package/dist/remoteRun/pairedRunners.d.ts +1 -1
  190. package/dist/remoteRun/pairedRunners.d.ts.map +1 -1
  191. package/dist/remoteRun/pairedRunners.js +4 -0
  192. package/dist/remoteRun/pairedRunners.js.map +1 -1
  193. package/dist/remoteRun/pathPatterns.d.ts +1 -1
  194. package/dist/remoteRun/pathPatterns.js +1 -1
  195. package/dist/remoteRun/probe.d.ts +58 -5
  196. package/dist/remoteRun/probe.d.ts.map +1 -1
  197. package/dist/remoteRun/probe.js +107 -11
  198. package/dist/remoteRun/probe.js.map +1 -1
  199. package/dist/remoteRun/probeTiming.d.ts +15 -0
  200. package/dist/remoteRun/probeTiming.d.ts.map +1 -0
  201. package/dist/remoteRun/probeTiming.js +23 -0
  202. package/dist/remoteRun/probeTiming.js.map +1 -0
  203. package/dist/remoteRun/project.d.ts +5 -0
  204. package/dist/remoteRun/project.d.ts.map +1 -1
  205. package/dist/remoteRun/project.js +10 -0
  206. package/dist/remoteRun/project.js.map +1 -1
  207. package/dist/remoteRun/projectConfig.d.ts +8 -1
  208. package/dist/remoteRun/projectConfig.d.ts.map +1 -1
  209. package/dist/remoteRun/projectConfig.js +18 -5
  210. package/dist/remoteRun/projectConfig.js.map +1 -1
  211. package/dist/remoteRun/pruneReport.d.ts +48 -0
  212. package/dist/remoteRun/pruneReport.d.ts.map +1 -0
  213. package/dist/remoteRun/pruneReport.js +80 -0
  214. package/dist/remoteRun/pruneReport.js.map +1 -0
  215. package/dist/remoteRun/remoteRunCli.d.ts +1 -1
  216. package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
  217. package/dist/remoteRun/remoteRunCli.js +20 -0
  218. package/dist/remoteRun/remoteRunCli.js.map +1 -1
  219. package/dist/remoteRun/runnerClient.d.ts +10 -0
  220. package/dist/remoteRun/runnerClient.d.ts.map +1 -1
  221. package/dist/remoteRun/runnerClient.js +19 -5
  222. package/dist/remoteRun/runnerClient.js.map +1 -1
  223. package/dist/remoteRun/runnerWait.d.ts.map +1 -1
  224. package/dist/remoteRun/runnerWait.js +2 -1
  225. package/dist/remoteRun/runnerWait.js.map +1 -1
  226. package/dist/remoteRun/runners.d.ts +48 -7
  227. package/dist/remoteRun/runners.d.ts.map +1 -1
  228. package/dist/remoteRun/runners.js +105 -40
  229. package/dist/remoteRun/runners.js.map +1 -1
  230. package/dist/remoteRun/runnersConfig.d.ts +24 -0
  231. package/dist/remoteRun/runnersConfig.d.ts.map +1 -1
  232. package/dist/remoteRun/runnersConfig.js +29 -2
  233. package/dist/remoteRun/runnersConfig.js.map +1 -1
  234. package/dist/remoteRun/ssh.d.ts +3 -3
  235. package/dist/remoteRun/ssh.d.ts.map +1 -1
  236. package/dist/remoteRun/ssh.js +19 -5
  237. package/dist/remoteRun/ssh.js.map +1 -1
  238. package/dist/remoteRun/submit.d.ts +1 -1
  239. package/dist/remoteRun/submit.d.ts.map +1 -1
  240. package/dist/remoteRun/submit.js +30 -2
  241. package/dist/remoteRun/submit.js.map +1 -1
  242. package/dist/runnerUtility/adminService.d.ts.map +1 -1
  243. package/dist/runnerUtility/adminService.js +5 -5
  244. package/dist/runnerUtility/adminService.js.map +1 -1
  245. package/dist/runnerUtility/appInstall.d.ts +9 -0
  246. package/dist/runnerUtility/appInstall.d.ts.map +1 -1
  247. package/dist/runnerUtility/appInstall.js +12 -2
  248. package/dist/runnerUtility/appInstall.js.map +1 -1
  249. package/dist/runnerUtility/execEnv.d.ts +1 -1
  250. package/dist/runnerUtility/execEnv.d.ts.map +1 -1
  251. package/dist/runnerUtility/execEnv.js +23 -5
  252. package/dist/runnerUtility/execEnv.js.map +1 -1
  253. package/dist/runnerUtility/guiAgentHeal.d.ts +3 -3
  254. package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
  255. package/dist/runnerUtility/guiAgentHeal.js +4 -2
  256. package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
  257. package/dist/runnerUtility/homeFolders.d.ts +1 -0
  258. package/dist/runnerUtility/homeFolders.d.ts.map +1 -1
  259. package/dist/runnerUtility/homeFolders.js +2 -1
  260. package/dist/runnerUtility/homeFolders.js.map +1 -1
  261. package/dist/runnerUtility/iosCheck.d.ts +2 -0
  262. package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
  263. package/dist/runnerUtility/iosCheck.js +12 -3
  264. package/dist/runnerUtility/iosCheck.js.map +1 -1
  265. package/dist/runnerUtility/keepAwake.d.ts +47 -10
  266. package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
  267. package/dist/runnerUtility/keepAwake.js +108 -31
  268. package/dist/runnerUtility/keepAwake.js.map +1 -1
  269. package/dist/runnerUtility/launcher.d.ts +4 -0
  270. package/dist/runnerUtility/launcher.d.ts.map +1 -1
  271. package/dist/runnerUtility/launcher.js +31 -13
  272. package/dist/runnerUtility/launcher.js.map +1 -1
  273. package/dist/runnerUtility/linkLoop.d.ts +4 -0
  274. package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
  275. package/dist/runnerUtility/linkLoop.js +15 -6
  276. package/dist/runnerUtility/linkLoop.js.map +1 -1
  277. package/dist/runnerUtility/managedNode.d.ts +84 -0
  278. package/dist/runnerUtility/managedNode.d.ts.map +1 -0
  279. package/dist/runnerUtility/managedNode.js +165 -0
  280. package/dist/runnerUtility/managedNode.js.map +1 -0
  281. package/dist/runnerUtility/nodeOnPath.d.ts +10 -0
  282. package/dist/runnerUtility/nodeOnPath.d.ts.map +1 -0
  283. package/dist/runnerUtility/nodeOnPath.js +49 -0
  284. package/dist/runnerUtility/nodeOnPath.js.map +1 -0
  285. package/dist/runnerUtility/nodeUpkeep.d.ts +140 -0
  286. package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -0
  287. package/dist/runnerUtility/nodeUpkeep.js +348 -0
  288. package/dist/runnerUtility/nodeUpkeep.js.map +1 -0
  289. package/dist/runnerUtility/nodeUpkeepTiming.d.ts +14 -0
  290. package/dist/runnerUtility/nodeUpkeepTiming.d.ts.map +1 -0
  291. package/dist/runnerUtility/nodeUpkeepTiming.js +21 -0
  292. package/dist/runnerUtility/nodeUpkeepTiming.js.map +1 -0
  293. package/dist/runnerUtility/packageManagerShims.d.ts +10 -0
  294. package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
  295. package/dist/runnerUtility/packageManagerShims.js +67 -3
  296. package/dist/runnerUtility/packageManagerShims.js.map +1 -1
  297. package/dist/runnerUtility/pueueDaemon.d.ts +73 -8
  298. package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
  299. package/dist/runnerUtility/pueueDaemon.js +90 -15
  300. package/dist/runnerUtility/pueueDaemon.js.map +1 -1
  301. package/dist/runnerUtility/runnerCommands.d.ts +7 -1
  302. package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
  303. package/dist/runnerUtility/runnerCommands.js +119 -16
  304. package/dist/runnerUtility/runnerCommands.js.map +1 -1
  305. package/dist/runnerUtility/runnerHome.d.ts +34 -0
  306. package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
  307. package/dist/runnerUtility/runnerHome.js +17 -3
  308. package/dist/runnerUtility/runnerHome.js.map +1 -1
  309. package/dist/runnerUtility/serviceCommon.d.ts +2 -0
  310. package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
  311. package/dist/runnerUtility/serviceCommon.js +3 -1
  312. package/dist/runnerUtility/serviceCommon.js.map +1 -1
  313. package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
  314. package/dist/runnerUtility/serviceManager.js +7 -2
  315. package/dist/runnerUtility/serviceManager.js.map +1 -1
  316. package/dist/runnerUtility/simctlGuard.d.ts +38 -0
  317. package/dist/runnerUtility/simctlGuard.d.ts.map +1 -0
  318. package/dist/runnerUtility/simctlGuard.js +166 -0
  319. package/dist/runnerUtility/simctlGuard.js.map +1 -0
  320. package/dist/runners/bootstrapLine.d.ts +3 -4
  321. package/dist/runners/bootstrapLine.d.ts.map +1 -1
  322. package/dist/runners/bootstrapLine.js +108 -83
  323. package/dist/runners/bootstrapLine.js.map +1 -1
  324. package/dist/runners/hubPackage.d.ts +1 -1
  325. package/dist/runners/hubPackage.d.ts.map +1 -1
  326. package/dist/runners/hubPackage.js +5 -6
  327. package/dist/runners/hubPackage.js.map +1 -1
  328. package/dist/runners/hubPairing.d.ts +19 -0
  329. package/dist/runners/hubPairing.d.ts.map +1 -1
  330. package/dist/runners/hubPairing.js +38 -0
  331. package/dist/runners/hubPairing.js.map +1 -1
  332. package/dist/runners/hubRegistry.d.ts +8 -0
  333. package/dist/runners/hubRegistry.d.ts.map +1 -1
  334. package/dist/runners/hubRegistry.js +6 -0
  335. package/dist/runners/hubRegistry.js.map +1 -1
  336. package/dist/runners/pairCode.d.ts +34 -3
  337. package/dist/runners/pairCode.d.ts.map +1 -1
  338. package/dist/runners/pairCode.js +65 -13
  339. package/dist/runners/pairCode.js.map +1 -1
  340. package/dist/runners/runnerGroups.d.ts +22 -0
  341. package/dist/runners/runnerGroups.d.ts.map +1 -0
  342. package/dist/runners/runnerGroups.js +41 -0
  343. package/dist/runners/runnerGroups.js.map +1 -0
  344. package/dist/runners/runnerLock.d.ts +36 -1
  345. package/dist/runners/runnerLock.d.ts.map +1 -1
  346. package/dist/runners/runnerLock.js +94 -30
  347. package/dist/runners/runnerLock.js.map +1 -1
  348. package/dist/runners/runnersCli.d.ts +5 -2
  349. package/dist/runners/runnersCli.d.ts.map +1 -1
  350. package/dist/runners/runnersCli.js +59 -9
  351. package/dist/runners/runnersCli.js.map +1 -1
  352. package/dist/runners/runnersList.d.ts +1 -1
  353. package/dist/runners/runnersList.d.ts.map +1 -1
  354. package/dist/runners/runnersList.js +3 -1
  355. package/dist/runners/runnersList.js.map +1 -1
  356. package/dist/runners/runnersOverview.d.ts.map +1 -1
  357. package/dist/runners/runnersOverview.js +8 -4
  358. package/dist/runners/runnersOverview.js.map +1 -1
  359. package/dist/scheduler/checkRun.d.ts +0 -2
  360. package/dist/scheduler/checkRun.d.ts.map +1 -1
  361. package/dist/scheduler/checkRun.js +0 -10
  362. package/dist/scheduler/checkRun.js.map +1 -1
  363. package/dist/scheduler/checkStatus.d.ts +2 -0
  364. package/dist/scheduler/checkStatus.d.ts.map +1 -1
  365. package/dist/scheduler/checkStatus.js +5 -4
  366. package/dist/scheduler/checkStatus.js.map +1 -1
  367. package/dist/scheduler/delivery.d.ts +2 -1
  368. package/dist/scheduler/delivery.d.ts.map +1 -1
  369. package/dist/scheduler/delivery.js +5 -1
  370. package/dist/scheduler/delivery.js.map +1 -1
  371. package/dist/scheduler/mcpSurface.d.ts +7 -3
  372. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  373. package/dist/scheduler/mcpSurface.js +48 -22
  374. package/dist/scheduler/mcpSurface.js.map +1 -1
  375. package/dist/scheduler/workerWatch.d.ts +33 -10
  376. package/dist/scheduler/workerWatch.d.ts.map +1 -1
  377. package/dist/scheduler/workerWatch.js +37 -11
  378. package/dist/scheduler/workerWatch.js.map +1 -1
  379. package/dist/selfUpdate/bootRollback.d.ts.map +1 -1
  380. package/dist/selfUpdate/bootRollback.js +3 -2
  381. package/dist/selfUpdate/bootRollback.js.map +1 -1
  382. package/dist/selfUpdate/updateRuntime.d.ts.map +1 -1
  383. package/dist/selfUpdate/updateRuntime.js +6 -3
  384. package/dist/selfUpdate/updateRuntime.js.map +1 -1
  385. package/dist/state.d.ts +144 -2
  386. package/dist/state.d.ts.map +1 -1
  387. package/dist/state.js +257 -7
  388. package/dist/state.js.map +1 -1
  389. package/dist/testTimings.d.ts +6 -2
  390. package/dist/testTimings.d.ts.map +1 -1
  391. package/dist/testTimings.js +12 -1
  392. package/dist/testTimings.js.map +1 -1
  393. package/dist/threadContextPreamble.d.ts +15 -1
  394. package/dist/threadContextPreamble.d.ts.map +1 -1
  395. package/dist/threadContextPreamble.js +15 -3
  396. package/dist/threadContextPreamble.js.map +1 -1
  397. package/dist/threadRouting.d.ts +47 -4
  398. package/dist/threadRouting.d.ts.map +1 -1
  399. package/dist/threadRouting.js +31 -4
  400. package/dist/threadRouting.js.map +1 -1
  401. package/dist/todos/projects.d.ts +1 -1
  402. package/dist/todos/projects.d.ts.map +1 -1
  403. package/dist/todos/projects.js +3 -14
  404. package/dist/todos/projects.js.map +1 -1
  405. package/dist/topicTalkerMemory.d.ts +37 -0
  406. package/dist/topicTalkerMemory.d.ts.map +1 -0
  407. package/dist/topicTalkerMemory.js +61 -0
  408. package/dist/topicTalkerMemory.js.map +1 -0
  409. package/dist/topicTalkers.d.ts +123 -0
  410. package/dist/topicTalkers.d.ts.map +1 -0
  411. package/dist/topicTalkers.js +276 -0
  412. package/dist/topicTalkers.js.map +1 -0
  413. package/dist/types.d.ts +7 -5
  414. package/dist/types.d.ts.map +1 -1
  415. package/dist/utils/agentEnvironment.d.ts +23 -0
  416. package/dist/utils/agentEnvironment.d.ts.map +1 -1
  417. package/dist/utils/agentEnvironment.js +33 -1
  418. package/dist/utils/agentEnvironment.js.map +1 -1
  419. package/dist/utils/agentPlugin.d.ts +9 -3
  420. package/dist/utils/agentPlugin.d.ts.map +1 -1
  421. package/dist/utils/agentPlugin.js +13 -6
  422. package/dist/utils/agentPlugin.js.map +1 -1
  423. package/dist/utils/authorMark.d.ts +59 -0
  424. package/dist/utils/authorMark.d.ts.map +1 -0
  425. package/dist/utils/authorMark.js +86 -0
  426. package/dist/utils/authorMark.js.map +1 -0
  427. package/dist/utils/botSkills.d.ts +1 -1
  428. package/dist/utils/claudeApiAgentStop.d.ts +64 -0
  429. package/dist/utils/claudeApiAgentStop.d.ts.map +1 -0
  430. package/dist/utils/claudeApiAgentStop.js +85 -0
  431. package/dist/utils/claudeApiAgentStop.js.map +1 -0
  432. package/dist/utils/claudeApiCredit.d.ts +168 -0
  433. package/dist/utils/claudeApiCredit.d.ts.map +1 -0
  434. package/dist/utils/claudeApiCredit.js +260 -0
  435. package/dist/utils/claudeApiCredit.js.map +1 -0
  436. package/dist/utils/claudeApiCreditRecheck.d.ts +120 -0
  437. package/dist/utils/claudeApiCreditRecheck.d.ts.map +1 -0
  438. package/dist/utils/claudeApiCreditRecheck.js +173 -0
  439. package/dist/utils/claudeApiCreditRecheck.js.map +1 -0
  440. package/dist/utils/claudeCompactHook.d.ts +18 -10
  441. package/dist/utils/claudeCompactHook.d.ts.map +1 -1
  442. package/dist/utils/claudeCompactHook.js +35 -14
  443. package/dist/utils/claudeCompactHook.js.map +1 -1
  444. package/dist/utils/claudeLimitSwitch.d.ts +5 -1
  445. package/dist/utils/claudeLimitSwitch.d.ts.map +1 -1
  446. package/dist/utils/claudeLimitSwitch.js +6 -2
  447. package/dist/utils/claudeLimitSwitch.js.map +1 -1
  448. package/dist/utils/claudeProfileUsageLines.d.ts +14 -2
  449. package/dist/utils/claudeProfileUsageLines.d.ts.map +1 -1
  450. package/dist/utils/claudeProfileUsageLines.js +78 -7
  451. package/dist/utils/claudeProfileUsageLines.js.map +1 -1
  452. package/dist/utils/claudeProfileUsageViews.d.ts +46 -0
  453. package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -0
  454. package/dist/utils/claudeProfileUsageViews.js +114 -0
  455. package/dist/utils/claudeProfileUsageViews.js.map +1 -0
  456. package/dist/utils/claudeProfiles.d.ts +22 -0
  457. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  458. package/dist/utils/claudeProfiles.js +69 -0
  459. package/dist/utils/claudeProfiles.js.map +1 -1
  460. package/dist/utils/claudeUsage.d.ts +145 -51
  461. package/dist/utils/claudeUsage.d.ts.map +1 -1
  462. package/dist/utils/claudeUsage.js +211 -94
  463. package/dist/utils/claudeUsage.js.map +1 -1
  464. package/dist/utils/compactOnIdle.d.ts +140 -15
  465. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  466. package/dist/utils/compactOnIdle.js +209 -23
  467. package/dist/utils/compactOnIdle.js.map +1 -1
  468. package/dist/utils/compactSelfReviewFlags.d.ts +50 -0
  469. package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -0
  470. package/dist/utils/compactSelfReviewFlags.js +120 -0
  471. package/dist/utils/compactSelfReviewFlags.js.map +1 -0
  472. package/dist/utils/fallbackChain.d.ts +18 -7
  473. package/dist/utils/fallbackChain.d.ts.map +1 -1
  474. package/dist/utils/fallbackChain.js +36 -16
  475. package/dist/utils/fallbackChain.js.map +1 -1
  476. package/dist/utils/folderGit.d.ts +9 -0
  477. package/dist/utils/folderGit.d.ts.map +1 -0
  478. package/dist/utils/folderGit.js +33 -0
  479. package/dist/utils/folderGit.js.map +1 -0
  480. package/dist/utils/forwardedMark.d.ts +8 -0
  481. package/dist/utils/forwardedMark.d.ts.map +1 -1
  482. package/dist/utils/forwardedMark.js +2 -0
  483. package/dist/utils/forwardedMark.js.map +1 -1
  484. package/dist/utils/jsonStreamHost.d.ts +2 -1
  485. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  486. package/dist/utils/jsonStreamHost.js +4 -2
  487. package/dist/utils/jsonStreamHost.js.map +1 -1
  488. package/dist/utils/messageContext.d.ts +22 -7
  489. package/dist/utils/messageContext.d.ts.map +1 -1
  490. package/dist/utils/messageContext.js +19 -5
  491. package/dist/utils/messageContext.js.map +1 -1
  492. package/dist/utils/openCodeCompactPlugin.d.ts +28 -7
  493. package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
  494. package/dist/utils/openCodeCompactPlugin.js +80 -15
  495. package/dist/utils/openCodeCompactPlugin.js.map +1 -1
  496. package/dist/utils/personLabel.d.ts +13 -0
  497. package/dist/utils/personLabel.d.ts.map +1 -0
  498. package/dist/utils/personLabel.js +15 -0
  499. package/dist/utils/personLabel.js.map +1 -0
  500. package/dist/utils/replyQuote.d.ts +17 -3
  501. package/dist/utils/replyQuote.d.ts.map +1 -1
  502. package/dist/utils/replyQuote.js +25 -2
  503. package/dist/utils/replyQuote.js.map +1 -1
  504. package/dist/utils/runnersScreenPlan.d.ts +51 -20
  505. package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
  506. package/dist/utils/runnersScreenPlan.js +143 -28
  507. package/dist/utils/runnersScreenPlan.js.map +1 -1
  508. package/dist/utils/streamedCompactionSummary.d.ts +65 -0
  509. package/dist/utils/streamedCompactionSummary.d.ts.map +1 -0
  510. package/dist/utils/streamedCompactionSummary.js +108 -0
  511. package/dist/utils/streamedCompactionSummary.js.map +1 -0
  512. package/dist/utils/talkerAccess.d.ts +9 -0
  513. package/dist/utils/talkerAccess.d.ts.map +1 -0
  514. package/dist/utils/talkerAccess.js +20 -0
  515. package/dist/utils/talkerAccess.js.map +1 -0
  516. package/dist/utils/tmuxExec.d.ts +20 -8
  517. package/dist/utils/tmuxExec.d.ts.map +1 -1
  518. package/dist/utils/tmuxExec.js +27 -7
  519. package/dist/utils/tmuxExec.js.map +1 -1
  520. package/dist/utils/topicAccessScreenPlan.d.ts +253 -0
  521. package/dist/utils/topicAccessScreenPlan.d.ts.map +1 -0
  522. package/dist/utils/topicAccessScreenPlan.js +287 -0
  523. package/dist/utils/topicAccessScreenPlan.js.map +1 -0
  524. package/dist/utils/topicLabel.d.ts +12 -0
  525. package/dist/utils/topicLabel.d.ts.map +1 -0
  526. package/dist/utils/topicLabel.js +12 -0
  527. package/dist/utils/topicLabel.js.map +1 -0
  528. package/dist/utils/topicRequest.d.ts +8 -5
  529. package/dist/utils/topicRequest.d.ts.map +1 -1
  530. package/dist/utils/topicRequest.js +9 -7
  531. package/dist/utils/topicRequest.js.map +1 -1
  532. package/npm-shrinkwrap.json +1003 -0
  533. package/package.json +5 -3
  534. package/remoteRun/ensureNode.sh +288 -0
  535. package/remoteRun/runner.sh +2252 -115
  536. package/agent-plugin/skills/charness-manager/SKILL.md +0 -157
  537. package/remoteRun/pickNode.sh +0 -65
package/.env.example CHANGED
@@ -70,6 +70,11 @@ ALLOWED_GROUP_ID=
70
70
  # OpenCode HTTP server URL. Leave unset for the built-in loopback server on
71
71
  # http://localhost:4096. Set it for a custom port or an external server.
72
72
  # OPENCODE_URL=http://localhost:4096
73
+ # The server the bot starts always requires a password: a random one per start,
74
+ # or this one when set (also what the bot sends to a server you run yourself).
75
+ # A password-less `opencode serve` of the bot's user on that port is replaced,
76
+ # also one you run yourself (a turn of yours in it ends): start your own with
77
+ # OPENCODE_SERVER_PASSWORD and set OPENCODE_PASSWORD to the same value.
73
78
  # OPENCODE_PASSWORD=
74
79
  # OPENCODE_USERNAME=opencode
75
80
  # OPENCODE_ALLOW_REMOTE=1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,175 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.13.0 — 2026-11-12
6
+
7
+ **A Jira instance with a `trustedGroup` can now trust only the apps and automations you list: the new `jira.json` key `trustedApps` names their account ids, and any other app is treated like a person outside the group.**
8
+ Before, `trustedGroup` trusted its members, the AI account and EVERY app or automation account (`accountType` `app`): the text any of them wrote reached the agent and any of their hand-overs started it. On a real site the group holds dozens of app users — chat, mail, error-tracking and help-desk integrations — that can relay text written by outsiders into an issue, so an outsider's words could steer the agent through one of them. Now, with `"trustedApps": ["<account id>", …]` set (even `[]`), an app is trusted only when its id is listed — membership in the group is not enough for an app — and every other app gets what a person outside the group gets: its text is withheld, its hand-over opens no request (the usual notice, the issue goes back to the requester), its @-mention is ignored. Each app that is not listed is logged once — the first time it acts on an issue, not at the start — with its name and account id, so you can copy the ids to trust. A listed id adds no trust to a person's account.
9
+ Nothing changes for an instance that does not set the key — every app stays trusted — except one warning at the start that names `trustedApps` (it is not logged without a `trustedGroup`). `trustedApps` without a `trustedGroup` refuses the start: without a group everyone is trusted anyway. See SETUP.md, «Jira setup».
10
+
11
+ **`npm install -g charness` and the bot's own npm update now install exactly the dependency versions that were tested — not whatever is newest within the ranges on the day.**
12
+ Before, a global npm install resolved every dependency range afresh (and ran the install scripts of what it found), so a package version published since — a hijacked one, say — could reach your machine with the next update. The package now ships an `npm-shrinkwrap.json` that pins its whole dependency tree, every package by its hash, and npm installs by it (npm 11 and older; npm 12 no longer reads such a file and resolves the ranges as before). The release itself was hardened too: the job that holds the right to publish no longer installs or runs anything of the repository's — it publishes the tarball another job built and a third one installed and checked —, and npm now gets a version before the repository does, so a release that fails no longer leaves a `vX.Y.Z` tag (and a version bump on `main`) for a version npm never received.
13
+
14
+ **A stranger can no longer take over your bot by making a group, adding the bot and sending `/pair` (or any message) there — with `OWNER_USER_ID` set only you pair the bot with a group, without it only the creator of the group it serves can move it.**
15
+ Before, pairing checked only that the sender administered the NEW group — which whoever made that group always does — so anyone who knew the bot's username could re-point it to their own group and drive its agents, with your files and keys; an install that served only your DM (`CHAT_MODE=both` with `OWNER_USER_ID`) stayed unpaired, and the first message in any stranger's group paired it. Now, with `OWNER_USER_ID` set, the bot pairs a group only from your own message there and refuses everyone else's `/pair` («Only the bot's owner can pair it with a group.»). Without an owner the first group is still paired by an admin who talks to the bot there, and after that only the creator of the group it serves can move it with `/pair` («The bot serves another group; only that group's creator can move it here.»). A numeric `ALLOWED_GROUP_ID` still locks pairing altogether. Every language has both refusals.
16
+
17
+ **Agents, terminals and scheduled checks no longer get the bot's Telegram token (or your `OPENCODE_PASSWORD`) in their environment, so it no longer turns up by accident in an `env` an agent prints, a log, a job record or an install's output.**
18
+ Before, every process the bot started inherited its whole environment: Claude and OpenCode agents, a `/terminal` shell, the tmux server they run on (any process there could read it back with `tmux show-environment -g`), git in a bound folder (whose config the agent can write), npm installs and updates. Now they all get the bot's environment without its own secrets: `TELEGRAM_BOT_TOKEN` and `OPENCODE_PASSWORD`. The agents reach Telegram only through the bot's tools, so nothing they do changes. Your other variables — provider keys, tool tokens your agents use for their work — still reach them. A tmux server started by an older bot is cleared of the two before the next agent session is made on it; on a Telegram instance that is the default tmux server, so windows you open there later no longer inherit the two either. This stops the bot from handing its secrets out; it does not hide them from a process that sets out to find them: the agents run as the bot's own user, who can read the bot's config file.
19
+
20
+ **The OpenCode server the bot starts now requires a password, so another account on the same machine can no longer drive your agents through it.**
21
+ Before, `opencode serve` listened on `127.0.0.1:4096` with no password: loopback is open to every account of the machine, so any local user or process could read the conversations and send prompts that ran as the bot's user. Now every server the bot starts gets a random password of its own (or your `OPENCODE_PASSWORD`, when you set one), kept in `DATA_DIR/.opencode-server-credential`, readable by the bot's user only, and the bot sends it with every request — also after a restart, a hot reload or the adoption of a running server. The bot always sends what the running server was started with, so adding, changing or removing `OPENCODE_PASSWORD` takes effect at the next server start and never locks the bot out of its own server. A password-less server on the bot's port is not left open: when the bot starts, it asks it once without a password, and if it answers, the bot replaces it as soon as no topic works in it (looking again every 10 minutes) — in hot mode and without it, on Linux and macOS. That is one an older bot left running, and also an `opencode serve` you run yourself on that port (a turn of yours in it ends with it): start your own with `OPENCODE_SERVER_PASSWORD` and set `OPENCODE_PASSWORD` to the same value. A process that is not an `opencode serve` of the bot's own user is never stopped (on Windows the bot cannot tell, so it says so in the log). A port held by a server that wants a password the bot does not have is left alone, and the error says so ([troubleshooting](docs/troubleshooting.md)).
22
+
23
+ **You can now let a group member talk to the agent in ONE topic without making them a group admin — `/access` (admins only) keeps that topic's list, and General's list covers every topic.**
24
+ Before, the bot answered only the group's creator and administrators, so letting a colleague write to an agent meant making them an admin: every command in every topic, a shell on the host. Now an admin opens `/access` in a topic and adds a person three ways — a tap on someone who wrote there and was ignored, a reply to their message with `/access add`, or `/access add @username` (a name the bot has not seen waits as «⏳ @alice» until that person's first message, within 7 days, and turns into a grant by itself). **Each grant shows a warning first** — a talker can make the agent run any command in the topic's folder, as the bot's OS account — and a typed add takes effect only on «✅ Add». A revoke is one tap; a person who leaves the group loses every entry; the lists live in `state.json`. What a talker can do: write, speak and send files to the agent in that topic, answer its questions, and run `/esc`, `/status`, `/whoami` and `/help`; everything else answers «Only group admins can use this command.», the bot's pickers refuse their taps, and what they type never feeds an input step an admin started. What the agent reads: their messages lead with `[Message from topic member "Alice Smith" (@alice) · not the operator]` (a line of theirs that would open like one of the bot's own headers is escaped), the topic's preamble says people other than the operator write there, a request names who sent it, and the answer a talker gives to the agent's question says who chose it. A talker is not a read restriction: everyone in the group still reads every topic. An admin or the bot named by a typed @username is refused like their id would be (no dead invitation), `/help` lists `/access`, and the welcome after a bind counts General's list and the waiting invitations too. A person joining or leaving the group does not count as their first message (an invitation waits for a real one), a talker's refused message leaves a usage-limit wait armed, and `/access remove` points to General's list for a person who is on it. Details: [`/access`](docs/commands.md#access), [Who may write in a topic](docs/commands.md#who-may-write-in-a-topic), SETUP.md § Access control.
25
+
26
+ **A reply to a message written by somebody who may not talk to the agent now reaches the agent as untrusted text — it is no longer labelled `from: user`, as if you had written it.**
27
+ Before, the quote the bot folds ahead of a reply named only two authors, the agent and «user»: a message of a group member the bot does not serve, a channel's post or an anonymous admin's, once you replied to it, was handed to the agent under `from: user`, so what a stranger wrote could be read as your own instruction. Now the header names who wrote the quoted message — `from: assistant` for the agent, `from: user` for you and the other group admins, and `from: group member "Bob Stone" (@bob), not allowed to talk to you; untrusted text` for anybody else, with the name quoted and cleaned of brackets and control characters (a post made as the group or a channel is named by that chat's title). It holds for text, voice notes and files, both agents.
28
+
29
+ **`/limits` and `/accounts` no longer show an account that reset by itself as «100% 🔄 in 1m» — a window whose reset time has passed is shown as a bare `0%`, and the account is offered again.**
30
+ Before, the last reading of an account that ran out of its limit and was then left unused stayed on screen after the window had reset, printed with a reset «in 1m» that never came. Likely cause (the code path is certain, the token lifetime was measured at about eight hours on another account): an unused account's login token expires, the CLI renews tokens only when it runs on the account and the bot never does, so the bot had nothing to poll with and kept the old figures, marked `(stale)`. The same frozen figure also kept the account out of the eligible list of the `claude_profiles` answer, of the fallback chain's availability check and — being stale — of the topic's switch candidates. Now every screen and every pick reads a window against the clock: one whose reset has passed since it was read is `0%` with no countdown (nothing says when its next period ends), `(stale)` still says the figures were not re-read, and the account counts as free. `0%` only means the old window is over: what the account has used since, through a login on another machine or another host user, is not visible to the bot — a topic that meets the limit there again is moved on as usual. The first poll after the CLI renewed the token shows fresh figures again.
31
+
32
+ ## 3.12.0 — 2026-11-10
33
+
34
+ **Jobs on a Mac runner no longer print «Killed: 9» lines into their output — a line like `runner.sh: line N: <pid> Killed: 9 ( sleep $limit_sec; kill -9 "$command_pid" )` that read like a failure after every step with a Simulator call.**
35
+ Before, every time-limited call the runner script makes (the `simctl` steps of a job's own Simulator device, the Simulator cleanup) started a watchdog and stopped it with `kill -9` when the call ended in time; the Mac's bash 3.2 (and bash 5 as well) then reported that killed watchdog on its own stderr, which is the job's output, whatever the watchdog's own redirections said — seen on a Mac runner as three such lines in one job. The same report, as «Terminated», could follow an `exec` after its exit marker (bash 3.2 reports a job ended by SIGTERM as well; bash 5 only one ended by SIGKILL). Now the script `disown`s a watchdog or watcher before it ends it, so the shell has nothing to report; the time limit works as before (a call past its limit is still cut off with 137, a call that ends in time still stops its watchdog at once).
36
+
37
+ **A worker that runs 2 h 30 min without a report now wakes its orchestrating agent — a third signal of the worker watch, beside «the process is gone» and «nothing was written for 45 min».**
38
+ Before, a worker that kept writing to its log but ran for hours (a suite stuck in a retry loop, a build that never converges) was never reported: the watch fired only when the process ended or the run directory went quiet. Now the watch recipe (`schedule_create`'s `checkCommand`, the same one in the `charness-orchestration` skill) ends with a third test, the age of a `watch-armed` file in the run directory that the agent `touch`es right before it arms the check (a resumed worker's reused run directory too) and again when it looked and found the worker fine — the same check then passes at its next run and watches on. At 2 h 30 min the topic gets one silent sentence — «Worker "builder S2" has been running 2 h 30 min without a report. Checking on it.» (every language; no command, never pinned) — and the agent is woken to look at what the worker is doing. The clock is a file, not `ps -o etimes=`, which a macOS `ps` may lack; a run directory without the file fails at the first run with a code of its own, and the topic then says «Check fired» with «watch-armed: missing» under it — never the «2 h 30 min» sentence — so a forgotten `touch` shows at once and says what to do.
39
+ Also in this change:
40
+ - **The bot MCP's hint now says to load `charness-orchestration` TOGETHER WITH the session's own manager skill** (it used to say «instead of any other manager skill»); the release check now requires that skill's file in the package.
41
+ - **`schedule_create` says a `checkCommand` takes absolute paths only** — it runs in the topic's folder, so a relative path or `~` points elsewhere — and its description teaches the third signal and the marker.
42
+
43
+ **The skills Charness gives its agents no longer switch off your own manager skill: `charness-manager` is now `charness-orchestration`, an add-on loaded together with the manager skill the session already has — and a small `charness-delivery-loop` serves a session that has none.**
44
+ Before, the bot's manager skill told its agent to use it «instead of any other manager skill», so in a bot session your own delivery policy (the review rules, the finish step, parallel work in worktrees) was set aside and the bot's shorter copy ran the whole loop — including its rule to run parallel builders on one checkout, which let two separately released tasks mix their commits.
45
+ Now:
46
+ - **`charness-orchestration` holds only what the bot adds** — the watch check that fires when a worker exits OR stops writing, ending the turn between wakes, the bot's accounts, reaching you through the bot's tools, a tracker conversation, cleaning a runner's project copy. It says it wins only on those mechanics, and a watch over several runs of one step now fires only when ALL of them have ended; a watch of a worker that waits on a runner reads the runner's line in `charness remote-run runners` (online AND able to run the job).
47
+ - **`charness-delivery-loop` is the fallback**, read only when the session lists no manager skill of its own (a public user's session; an OpenCode topic, which does not read `.claude/skills`): modes, one independent review at the finish, a merge and a fetch/rebase before the full run, a worktree and a branch for every separately released task, a long run that never holds the queue, a reviewer's report written outside the worktree.
48
+ - **The two delegate skills keep their names and win only on the launch, the account, detaching and the watch;** their model and effort defaults apply only when no general delegate skill is listed. `charness-delegate-claude` now writes the session id to `<run-dir>/session` at launch and resumes only from that file or the first event of the first run's log — never from memory or a shortened prefix.
49
+ - **The `/bot_skills` screen, in every language, describes what ships now** — an add-on for orchestrating workers, a fallback delivery loop and the two delegation skills — and no longer says «the manager».
50
+ - A session started before the update keeps the old hint to load `charness-manager` until it reconnects; the skill it names is gone, and it falls back to the manager skill the session already has.
51
+
52
+ **A busy runner is no longer refused as «Pueue missing» when Pueue is installed but was slow to answer — `runners` and `/runners` now say that Pueue is there but gave no answer in time, and the runner stays pickable.**
53
+ Before, the runner's probe asked `pueue --version` with a 4 s limit and read a timeout as «no Pueue»: a Mac under a full test run (load about 25) was shown as missing Pueue with the advice to install it, a job sent to it by name was refused with «has no Pueue», and an unnamed job went to another runner — although Pueue was there. Now a Pueue whose version call was cut off by that limit is `unknown`, the word the probe already used for a slow Node or yarn. A Pueue that is not on the runner, or that fails at once, stays «missing»; the same rule now holds for a job's Node and yarn (one that fails at once reads «none», not «there, but gave no answer»).
54
+
55
+ **`charness remote-run bash -c '<script>'` (also `sh`, `zsh`, `dash`, `ksh`, `-lc`) now runs the whole script — it ran only its first word, and the rest of the line in the project root.**
56
+ Before, the command words were joined with spaces and read again by the runner's shell, so `bash -c 'cd projects/app && yarn e2e:dev:ios:job'` reached the Mac as `bash -c cd projects/app && yarn e2e:dev:ios:job`: a `bash -c cd` that changes nothing, then `yarn …` in the project root — «Couldn't find a script named "e2e:dev:ios:job"» (measured on the Mac, jobs of 2026-11-09; the copy, its install and its workspaces were intact). Now the script of a shell's `-c`, and the words after it, are quoted. Every other command is joined with spaces as before (`remote-run 'yarn build && yarn test'` is unchanged).
57
+ **A Ctrl-C, or the end of `--runner-wait`, while the new runner script is being uploaded to a busy runner now reads «interrupted» / «none did» — not an upload failure — and a probe that fails by itself with a «timed out» line no longer reads «busy».**
58
+ Before, a stop that cut the upload of the runner script (right after an update) made `remote-run` exit 125 with «could not put the runner script … ran past its deadline» instead of 130; and a probe whose own tools (`pueue`, `xcrun`) printed «… timed out» was shown `online, busy` instead of offline. Now only ssh's own timeout (exit 255) counts as a runner that is slow, and a cut-off upload ends the way every other cut-off step of the look does.
59
+ **`charness remote-run bash -o pipefail -c '<script>'` (also `bash -e -c`, `bash --login -c`) now runs the whole script too — and a command whose words the runner will read again says so on stderr.**
60
+ Before, only `<shell> -c <script>` and its bundles (`-lc`) were quoted for you: with an option of the shell in front of `-c`, or behind a wrapper (`nice -n 19 bash -c '…'`, `env`, `timeout`, `python3 -c`), the runner split the script and ran its first word (the same misleading «script not found in the root»). Now the shell's own options before `-c` are skipped to find it, and when a word after the first holds a space, a quote or an operator, one line on stderr says «the words are joined with spaces and read again on the runner — pass the whole command as one quoted word». `charness remote-run --help` says it as well.
61
+ **A remote-run job that is told to stop just as its command is being started now stops — with its iOS Simulator device shut down — instead of running on to the hard kill.**
62
+ Before, a stop (the job's time limit, or a `kill`) that reached the job between its last check and the start of its command (a gap measured at up to ~1.5 s in a test on a loaded Linux box; a loaded Mac is where users likely meet it) went to the job alone: the command was started after it, ran on for the whole grace (10 s) until the SIGKILL, and the job's Simulator device stayed booted. Now a job that has been told to stop starts no step: it ends with 124 (limit) or 137 (kill) and shuts its device down as usual.
63
+ **A runner that is busy under a job no longer reads «offline (no answer within 20 s)» — and the next submit no longer waits for it or refuses it.**
64
+ Before, a Mac with its iOS Simulators booting (load 129 on 10 cores) whose probe did not finish in 20 s was shown `offline`, although its link was up and a job was running on it; a new `--needs` job then waited for it as for a machine that was gone, or was refused. Measured: the probe waited, before answering, for the scheduling safety net — which waits up to 30 s for a project's scheduling mutex and asks Pueue with no limit — and a probe taken while a job was being queued behind a slow Pueue took 25.8 s against 0.4 s without it.
65
+ Now:
66
+ - **The probe's answer no longer waits for housekeeping:** the scheduling safety net runs detached, one at a time (`settle-queue`), so the probe is a handful of file reads and questions each bounded at 4 s.
67
+ - **A runner that is there but did not finish in time is «online, busy», never «offline»:** a paired runner whose link is up, or any runner whose ssh answered, shows `online, busy · no answer within 20 s (…); it is linked, so it is not offline` with the details of its last probe marked as old — in `charness remote-run runners` and in the bot's `/runners` (every language). It is picked from that snapshot (Pueue there, not paused, the capability) and never waited for — after the command has looked for its script on it (and uploaded the new version when an update renamed it), and a busy runner that then does not answer is waited for like an offline one; ssh's own connect timeout and a script upload the deadline cut off count as busy too. A hand-made runner that does not answer ssh at all, a link that is down and a dropped connection stay offline. Jobs already running were never cut by the reading.
68
+ **A Mac runner no longer falls asleep — and stays offline for hours — when its link restarts for an update.**
69
+ Before, the sleep assertion that keeps a Mac awake was tied to the link's process, so every restart of the link (every update of the host's package) left the Mac with no assertion for a moment. Measured on one Mac, four restarts since 11-05: each time it went to sleep five seconds after the old assertion ended, and since no assertion wakes a sleeping Mac the runner showed «offline» until someone pressed a key (the three followed lasted about 1 h, 34 min and 9 h). The gap is the likely cause, not a proven one, and the fix is not yet verified on the Mac.
70
+ Now:
71
+ - **The holder is a timed one that outlives the link** (`caffeinate -i -t 300` on a Mac, `systemd-inhibit … sleep 300` on Linux): the link renews it every minute — the new holder first, the old one released only after it holds — and a restart, an update or a crash leaves it running, so the next link's holder takes over while it still holds — and then ends it, so a machine has one holder, not a pile after a crash loop. Only a stop of the runner (Ctrl-C, a service stop, `unpair`, a removal) ends it at once; a link that is killed leaves the machine awake for at most 5 more minutes.
72
+ - **`runners` and `/runners` stop promising what an assertion cannot do:** a runner that does not answer shows what it said when last seen — «keeps awake: it did when last seen … — if it is asleep now, nothing can wake it from here: a key press or opening the lid does» (and the screen adds the same line in every language) — instead of «keeps awake: yes». A closed lid, the Apple menu's Sleep, the power button and a link away for over 5 minutes still sleep the Mac; the docs say so.
73
+
74
+ **You can now switch the agent's self-review on a compaction off with `/compact_self_review` — per topic, or for all topics from General — and with it off the agent is not even asked for it.**
75
+ Before, every compaction summary asked the agent for its self-review — the list of its own mistakes that better instructions could have prevented — and the bot posted it into the topic whether or not you wanted it — the request cost tokens on every compaction, long sessions' and the idle compactions' included, and there was no way to turn it off.
76
+ Now:
77
+ - **`/compact_self_review`** is an Enable/Disable picker like `/compact_summary` (typed `on` / `off` work too). In a topic it is that topic's own choice; in **General** it is the default for all topics, which a topic's own choice still beats. **On by default**, so nothing changes until you switch it off. The `/compact_on_idle` picker shows it as a «Show self-review» / «Hide self-review» row.
78
+ - **Off drops the request from every compaction** — `/compact`, the idle compaction, the agent's `compact_conversation`, and the compaction the agent CLI or OpenCode makes by itself when the context overflows — so no tokens are spent on the self-review, and **nothing of it is posted**. The skills to reload and the next-steps checklist that end the summary stay. Switching takes effect at once, also in an agent that is already running, and an OpenCode sub-agent follows the topic it works for — except one that was running when you updated: it keeps its old compaction hook, which still asks for the self-review (`/compact` included) until the agent is started again (the idle stop does that within an hour).
79
+
80
+ **`runners` and `/runners` now say when the size of the project copies counts clones in full.**
81
+ Before, a Mac whose new copies were seeded from a sibling (clones that share disk blocks with it) showed a total that was several times what the disk held — `du` cannot see the shared blocks — and a refused submit named a clone as «41 GB to free» when removing it gives back far less.
82
+ Now the copies line of `runners` and of the bot's `/runners` (every language) adds «clones counted in full» whenever some copy shares blocks with another, and so does the list of the biggest copies in a disk-full refusal; the real saving shows only in the disk's free space.
83
+
84
+ **A project copy on a runner that nobody has used for a day now loses its Xcode derived data (`ios/build`), which is the biggest part of an iOS copy.**
85
+ Before, an iOS build left ~8.5 GB per app in the runner's copy and kept it for as long as the copy lived (3 days idle, or until the disk was short), so a Mac with a handful of copies of a React Native monorepo spent ~17 GB per copy on derived data that nothing could share.
86
+ Now a copy not used for 24 hours loses the derived data in its `ios/build` and its `ios/DerivedData` folders (of every app folder), and nothing else — never sources, `node_modules`, `Pods`, a copy in use, nor `ios/build/generated`, where `pod install` writes the codegen pods' sources that a build with its `pod install` skipped still needs. The next iOS job of that copy builds from scratch instead of incrementally, and says so in its log. It rides the sweep that already clears idle copies' `TMPDIR`s: after a submit at most every 6 hours, and on a short disk before a copy is removed.
87
+
88
+ **A new project copy on a runner no longer installs its dependencies from scratch when another copy of the same repository is already there: it starts from a clone of that copy's `node_modules` and iOS folders.**
89
+ Before, every checkout of a project (each folder or worktree you ran `remote-run` from) got a full copy of its own on the runner and ran the whole dependencies step — on a Mac with a React Native monorepo that was ~13 GB and minutes of install for each copy, nine copies being 133 GB.
90
+ Now:
91
+ - **The first job of a new copy is seeded from a sibling** — a copy of the same repository (told by its first commit, so a worktree or a checkout in a folder of another name is one, and another project or user whose folder shares a name is not) whose install finished: the one with the same install key first, then the most recently used. The folders are copy-on-write clones: on a Mac they take no disk until a file changes and a change in one copy never shows in the other; on Linux this needs a filesystem with reflinks (btrfs, XFS) — on ext4 nothing is seeded, as a plain copy would take more disk than the install.
92
+ - **What is carried:** every top-level `node_modules` (the root's and each workspace's) and, for an app with `ios/Pods`, its whole `ios` folder when the new copy has none (an Expo prebuild app keeps it out of git) or just its `Pods`, with `ios/build/generated` (the codegen pods' sources) either way; never Xcode's derived data in `ios/build`, `android/build`, `.cxx` or `.gradle` (their absolute paths belong to the other copy). A whole `ios` is cloned entry by entry, so the derived data is never cloned and removed again while the sibling's lock is held.
93
+ - **The dependencies step is skipped when the keys are equal**; with a different key it still runs, on top of what was carried, and only changes the difference.
94
+ - **A seed never fails a job:** a sibling a job is working in (its install may be running) or an `exec` runs in is passed over and never waited for; any failure removes the partial seed, says one line in the job's log, and the install runs as before. Only the first job of a copy is seeded.
95
+ - **The 3-day rule keeps the seed source for the submit that needs it:** a copy idle for days is not removed by the `prepare` of the new copy that is about to be seeded from it.
96
+ - **The disk upkeep knows about clones:** copies that share blocks are not taken for «the disk is not following» when their removal gives little back, and a submit that creates a new copy on a short disk removes the copy it would be seeded from last, not first.
97
+
98
+ **Every compaction now asks the agent for a self-review — which of its own mistakes, repeated ones above all, better instructions could have prevented — and the bot shows it in the topic even when the compaction summary is hidden.**
99
+ Before, the lessons of a long session stayed buried in the summary (which `/compact_summary` hides by default) or were lost with it: the same mistake came back in the next session because nobody had changed the rule, skill or `CLAUDE.md` / `AGENTS.md` that would have stopped it.
100
+ Now:
101
+ - **The summary gets one more section, the self-review.** The agent lists the mistakes it made in the session that a change to its standing instructions could prevent — repeated ones first — each with the concrete change and where it would go, in the language of the conversation, or says there were none. It only *proposes*: the continuing session never writes or changes instructions on its own, it waits for your word.
102
+ - **It is posted as its own message** («💡 Agent self-review: what to change in the instructions so the mistakes are not repeated») after `/compact`, the idle compaction, the agent's own `compact_conversation`, and the compaction the agent CLI or OpenCode runs by itself at a context overflow — with the summary hidden. With the summary shown the section is inside it under the same heading, so it does not read as more of the numbered next steps after it, and is not posted twice; the marker lines the agent writes around it are never shown (on OpenCode, whose summary is streamed, too); when there was nothing to report, nothing is posted and no heading appears. On OpenCode the agent's own words just before a compaction, and its answer right after one, are no longer taken for the summary (with the summary hidden they were dropped with it), and a summary shown no longer glues a line onto the one before it. The idle compaction's order is notice → section → a re-asked question, which stays last, on OpenCode as on Claude.
103
+ - The Claude `PreCompact` hook and the OpenCode compaction plugin carry the new text, so the compactions the CLI and the server start themselves ask for the section too (an OpenCode folder instance that loaded the older plugin is recreated when idle, as before).
104
+ - Not covered: the deprecated tmux Claude backend (its terminal runs the compaction itself; the bot never gets the summary to read).
105
+
106
+ **A runner can now run several jobs at once — you set how many in `/runners` — and the jobs do not step on each other's ports, caches or iOS simulators.**
107
+ Before, a runner ran one job at a time: a Mac used only as a runner ran one iOS test run while five more waited, and nothing made two jobs safe to run side by side (the fixed Metro and Detox ports, one shared cache folder, and the habitual `xcrun simctl shutdown all`, which stops every simulator on the machine).
108
+ Now:
109
+ - **Jobs at once.** Under each machine in `/runners` there is a button **Jobs at once** (1 2 3 4 6 8, with a suggestion for the machine's cores and memory), and the pairing message has a row for the new machine (1–4); `charness runners jobs-at-once <name> <n>` and `charness runners pair --jobs-at-once <n>` do the same. Every machine keeps running one job at a time until you raise it. The number is told to the machine at once when it is online; **a lower number never stops a job that runs** — it only keeps the next ones waiting. `/runners`, `charness runners ls` and `charness remote-run runners` show it.
110
+ - **A job that waits for its own project no longer takes a place.** A second job of a project whose earlier job is still under way is held out of the queue and let in when that one ends, so a job of another project that could run is not kept waiting behind it (with a limit of 2 you used to get 1). It shows as `queued`. A job whose Pueue task was lost (the queue is reset when a runner is removed or unpaired) is ended as killed (137) by the next `probe` or `prepare` of the runner, `wait`, `follow`, `result` or `kill` of it, or job of its project — instead of showing as «queued» for ever and holding its project. A `kill` acts on a Pueue task only after Pueue shows it is the job's own (Pueue numbers new tasks from 0 again after a reset, so an old number may now be another project's running job); when Pueue does not answer, the kill fails with «Pueue did not answer» and touches nothing — a foreground run that was interrupted says so, and the runner's lease watcher tries again every few seconds until Pueue answers, so the queued job does not start later and run unwatched.
111
+ - **Each project copy gets its own ports, `TMPDIR` and simulator.** Every step of a job sees `REMOTE_RUN_PORT_BASE` (100 ports it owns), `TMPDIR` (a folder of the copy alone, so one project's `expo start -c` does not wipe another's cache; the system does not sweep it, so the runner removes its files not modified for 3 days while no job of the copy runs — read-only folders left by a killed `pod install` included — and counts it in the copy's size for the disk upkeep and `runners`) and, with `--needs ios` on a paired Mac, `REMOTE_RUN_IOS_SIMULATOR_UDID`: the copy's own booted simulator, kept from job to job and shut down when the job ends, also after a kill or a timeout (a second kill or a late TERM no longer cuts that shutdown off); the simulator's id is given even to a job that got no port block. `exec` gets none. A job's own `-e TMPDIR=…` still wins; the ports and the simulator can not be overridden.
112
+ - **`xcrun simctl shutdown|erase|delete all` and `simctl <command> booted` can no longer reach other jobs' simulators.** On a paired Mac the runner puts an `xcrun` guard first on every job's `PATH`: those commands — `booted` names whichever device is up, with two jobs maybe the other one's — run on the job's own simulator only (`shutdown|erase|delete` do nothing, with a line saying why, when the job has none). It is a guard against the habit, not a wall: `/usr/bin/xcrun`, `killall Simulator` and `killall com.apple.CoreSimulator.CoreSimulatorService` still pass, and a runner's agents are told to stop what they started by its pid. The bot's agent instructions, `charness remote-run --help` and [docs/remote-run.md](docs/remote-run.md#jobs-beside-each-other) say all of this.
113
+ - A paired runner now tells Pueue its limit (1 when never set) at every job: a limit you set by hand with `pueue parallel` on a paired runner is replaced by the runner's number in `/runners`.
114
+ - Killing a job that is shutting its simulator down waits for the shutdown (up to about 70 s) instead of cutting it off, so `remote-run kill` may take that long on an iOS job; the call waits for it. A Pueue `Stashed` task is read as queued, not unknown.
115
+
116
+ **A hub whose cache folder path is too long for ssh's control socket no longer fails every ssh call to a runner.**
117
+ Before, `remote-run` kept its ssh control sockets in `<cache>/ssh/<40-character hash>` and allowed that path up to 100 characters, but ssh first binds the master's socket as that path plus a dot and 16 random characters, and a bind that does not fit ends the call with 255 before the command runs: on a Mac a cache folder of 46–59 bytes (the default `~/.cache/charness/remote-run/ssh` with a user name of 8 characters or more), on Linux one of 50–59 bytes (a user name of 13 characters or more), or a test's temporary folder, ended every call with ssh's 255 (read as a lost connection), and the runner link flows timed out without naming the cause.
118
+ Now the temporary name is counted, in bytes (a non-ASCII cache path is longer than it looks): the longest `<cache>/ssh` is 45 bytes on macOS (`sun_path` is 104 bytes) and 49 on Linux (108), and a longer folder turns the shared connection off — every call opens its own — instead of failing.
119
+
120
+ **Pairing a runner now posts ONE line, with the words that say which word of it to change — and the same line pairs the runner account when that account runs it itself, without `sudo`.**
121
+ Before, `/runners` → + Pair a new runner (and `charness runners pair`) posted two huge lines: the `sudo` line for an admin account and a second, plain line for the runner account itself, each with its own text; the second message was deleted when the code was used.
122
+ Now:
123
+ - One message: the `sudo` line under a short explanation — that it runs code from this charness host as root on that machine, that its last word is the account the runner and the agents' code run as (an existing standard, non-admin account, not your main one — change it if needed) and that, without admin rights, you run the same line in that account's own terminal without the leading `sudo`. The message is in all twelve languages and `charness runners pair` says the same in words. It turns into «paired» / «expired» as before; there is no second message to delete.
124
+ - Run without `sudo`, the line pairs only the account it runs as: it uses a private copy in that account's own temporary folder, gives the runner its own Node.js in `~/.charness-runner/node`, installs no service and prints how to keep it running — what the old plain line did. Its last word must be that account's name: run from another account it stops before downloading anything with «you are not runner: run the line as runner or with sudo», so a main account with a leftover `runner` at the end is never paired by mistake.
125
+ - A message of the older kind that is still open when this version starts is followed and settled all the same.
126
+ - The line is about a fifth shorter than before and no longer carries the pairing code (which holds the connection values and the temporary key) a second time: the shell puts the code together from the values the line already holds once. So the message fits one Telegram message for every ssh host key type of the charness host (ed25519, ECDSA and RSA up to 3072 bits at any host name and hub account, RSA 4096 at ordinary ones) — a hub without an ed25519 host key, or with a long address, no longer fails with «the message could not be sent». A line that still cannot fit (an RSA host key of 4096 bits with a long host name or hub account, or any RSA host key larger than 4096 bits) is not sent: its code is closed at once and the bot answers with the length and `charness runners pair --host <address>`, which prints the same line in a terminal; a message Telegram refuses closes its code too, instead of leaving a credential open for ten minutes.
127
+ - Run without `sudo`, the name of the account is no longer limited to letters, digits and `.` `_` `-`: an account a directory service names `user@realm` pairs itself, as it did with the old plain line. Only the `sudo` way, where the name goes to `id`, `sudo -u` and the root step, keeps that limit.
128
+
129
+ **Pairing a runner with the `sudo` line no longer stops at «npm ci failed: env: 'node': No such file or directory» on a machine that has no Node.js of its own.**
130
+ Before, the line downloaded the package and found the runner's Node.js, then failed at «installing the runner program (npm)»: npm is a `#!/usr/bin/env node` script, and the PATH of the account the line works as (what `sudo -u` hands it) holds no `node` — the runner's Node lives in its own folder, on nobody's PATH. The same would have stopped the plain line on a machine with no Node, and the update of a running always-on runner (a systemd user service starts with the manager's default PATH).
131
+ Now the install of the runner program starts npm with the folder of the Node that runs the utility first on its PATH, whatever PATH it was started in; the Corepack step of the link already did the same and shares the one helper.
132
+
133
+ **An agent starting a worker now follows your `/limits` list: the accounts in it are the ones it uses — an API-credit account first, the subscriptions after it — and the ones not in it are never offered.**
134
+ Before, `claude_profiles` (and `charness claude-profiles`) never pointed a new worker at an account billed to API credits, so the bonus credit sat unused while the subscriptions burned, and it ignored which accounts you had put into `/limits_autoswitch` (only an account whose every entry was switched off was skipped).
135
+ Now:
136
+ - Once your `/limits_autoswitch` list holds any Claude account, a worker is only pointed at an account with an enabled entry there — a new one and a resumed one alike; an account the list leaves out, or has only 🚫 entries for, is shown as not offered with the reason (`chainExclusion`, and the first line of the answer), and a worker already on it moves on at its next resume. A list with no Claude entry (empty, or OpenCode only) changes nothing for subscriptions.
137
+ - An API-credit account in the list goes FIRST, while it is signed in, not limited and its credit is not marked used up; then the subscriptions as before (soonest weekly reset, five-hour window under 90 %). The list's order only ranks several API accounts among themselves. A list drafted by «🔄 Fill from connected» still leaves the API account out (🚫) — «✅ Use» on its entry is what opens it.
138
+ - A worker stopped on an API-credit account — by «Credit balance is too low» or any other limit — is reported like a usage limit (`currentProfile` + `isStoppedByLimit`), and the bot checks before it believes it: one tiny request on the account's own key marks the credit used up only if the API really refuses for the balance (the daily recheck lifts that mark when the credit is back). If the API answers instead, the key cannot be read or the check gives no answer, the account is only kept off workers for an hour — topics keep using it, the report changes nothing for them — and, when the API answers an account whose credit renewal was still awaited, the renewal is recorded. The next pick goes to the subscriptions (soonest weekly reset), and when none is usable `nextAvailable` names the end of that hour.
139
+ - An API-credit account whose credit has run out by the expiry day you gave (`charness claude-profiles credit … --expires`) is no longer put first.
140
+ - Signing in an account (a subscription login, or an API account's login or pasted key) that is not in a `/limits_autoswitch` list which already names Claude accounts now says so and tells you to add it there — workers and topics are only pointed at the accounts in the list.
141
+ - The shipped manager and delegate skills no longer say «never launch on an account billed to API credits unless the user asked»: they take what `claude_profiles` recommends.
142
+
143
+ **A runner machine no longer needs Node.js: pairing installs the runner its own, so the admin line works on a machine with no shared Node — and every runner now runs its jobs on that Node.**
144
+ Before, the admin line stopped with «no Node.js 22.12+ outside home folders that runner cannot write: install one system-wide…» on a Linux machine whose runner account had no system-wide Node, and a runner that did run on a system or Homebrew Node saw `corepack enable`, `npm i -g` and the installers of package managers fail with permission errors the moment they wrote into that Node's folder.
145
+ Now:
146
+ - Both pairing lines install the runner's own Node.js themselves: the newest LTS release from 22.12 up to 24 (the last line that ships Corepack; Node.js 25 and later do not) for the machine's system and processor, read from nodejs.org's list; its SHA-256 is checked against the release's `SHASUMS256.txt` before a byte is unpacked, and it is downloaded with `curl` or `wget` (a total time limit on each; a clear line when neither is there, nothing matches or there is no network). Only x86-64 and ARM64, macOS and Linux with glibc can be runners — an Alpine (musl) machine cannot, because every runner runs on nodejs.org's build. The admin line puts it in `/usr/local/lib/charness-runner/node/v<version>` — owned by root, which the account can run but not write, because root runs that Node and the agents' code must never be able to change it; that folder is judged before root writes anything into it and again before root runs any Node of it —, the plain line in `~/.charness-runner/node`. It says «installing Node.js v… for the runner into …» while it works, a second pairing reuses what is there (and works offline when something is), and a newer release lands next to the older one.
147
+ - **What changes for a runner that already exists: its jobs now run the runner's own Node.** A runner paired on a system or Homebrew Node moves to its own once its link is up, with nobody doing anything: the account downloads the same verified build into `~/.charness-runner/node` (root is not there at a self-update, so that copy is the account's own; root only ever runs the one the admin line installed) and rewrites its launcher. From then on a job's `node` and `npm` are that Node's — a Homebrew Node 25 becomes Node 24, the newest LTS that has Corepack —, the global tools a job installs go into `~/.charness-runner/npm` (a CLI that was installed globally into the old Node, an nvm one for instance, is not found any more: install it again), and `NPM_CONFIG_PREFIX` is set for a job, which nvm refuses to run with. The runner's log names the Node it leaves, with its path and version. To keep jobs on the old Node, put a `PATH=` line into `~/.charness-runner/env` (the old Node's folder first), and `NPM_CONFIG_PREFIX=` (empty: the variable is then removed) there for nvm — see «A runner's Node» in `docs/remote-run.md`.
148
+ - The move is made in the background: the runner is on the hub while it downloads, and its link leaves for the launcher's new start only when nothing is under way — no command over the link, no update of the program being installed, no Pueue task running or queued (a job keeps the `PATH` it was queued with; a Pueue that does not answer in time counts as busy) — and a service manager then starts the launcher again by itself; started from a terminal, start `charness-runner run` again. A failed attempt (no network, a full disk, a download that does not run here) is written down and is not repeated at every start: the next one is made 24 hours after the failure, or after the next update of the program, and the log says so. A Pueue task that only waits for a person — paused, locked, or queued in a paused group (Pueue pauses a group that still had queued tasks when its daemon restarted) — is waited for at most a day IN ALL — counted from when the restart was asked for, not from when the task became stuck —; then the link leaves without it, and the log names the task.
149
+ - Everything that decides whether a job would be cut now takes a Pueue that does not answer in time for BUSY, never for «no daemon»: the restart for a new Node, the removal of old versions, the replacement of the always-on service by `service install`, and the replacement of the login session's agent on a Mac (which could cut an Xcode step that runs through it). Only a pueue client that says there is no daemon counts as none. The refusal of `service install` for a Pueue that did not answer gives the reason and says to let the jobs finish — never to stop the daemon, which would cut the build that kept it from answering; «stop it by hand» is left to an answer that came back and cannot be read.
150
+ - A runner on its own Node looks for a newer release of the same line when its link starts and then daily, and moves up to it the same way, so it gets security fixes (a new major is never taken: it would change what every job runs); the folder of a version it has left is removed a week after it stopped being the runner's Node (the moment is recorded), and only while Pueue has no unfinished task (the log names a stuck one) — a job that was queued, or runs for hours, still finds its `node` there —, and so is what an install that was killed left. The Node an admin line installed (root-owned) is refreshed only by the next admin line.
151
+ - What a job installs goes into the account's own folders, never into the Node's: `npm i -g` into `~/.charness-runner/npm` (its `bin` is on a job's `PATH`, after `~/.charness-runner/bin`, and a `yarn` installed there never replaces Corepack's shim, which follows each project's `packageManager`), the package managers Corepack downloads into `~/.charness-runner/corepack`, and a bare `corepack enable` — what a project's install step runs — is turned into one for `~/.charness-runner/bin`. The operator's `~/.charness-runner/env` can change any of them.
152
+
153
+ **A runner no longer fills its disk with the project copies of finished tasks: it removes the unused ones itself, and a job that would not fit is refused up front instead of failing in the middle of a build.**
154
+ Before, every task of a project left its own copy on the runner (16–41 GB each when it holds an iOS build), a copy was removed only after 30 days without use, and nothing looked at the free space — a Mac runner with 16 such copies had 10 GB of 460 free, and the first sign was «No space left on device» in someone else's build.
155
+ Now:
156
+ - A project copy unused for 3 days is removed (`copyMaxIdleDays` in the runner's config), and while the work disk has less free space than the runner keeps — the smaller of 60 GB and 15 % of the disk (`minFreeGb`; `0` turns it off) — the least recently used copies are removed, one by one, until it has. Never a copy whose project lock is held by a live job, a copy an `exec` is running in, a copy with a queued, running or just-submitted job (a long first upload counts), a copy whose job ended within the last hour (its results are about to be fetched), or the copy of the job being submitted; a copy that turns out to be in use at the very moment it is moved aside is put back; folders CocoaPods leaves read-only no longer stop a removal. A submit prints one line per removed copy (what it freed and why), says before it starts when it has to make room first, and says plainly when that took longer than 15 minutes (the runner carries on as far as it can, and the next submit continues where it stopped). `runners` and the bot's `/runners` start the same prune in the background when the disk is short — the probe a run or an `exec` makes first never does, so the project about to be used is not taken before its own submit arrives; a second prune waits for the one at work (up to 10 minutes) while its own disk is short, and does not wait when it is fine.
157
+ - On a Mac whose disk does not give the space back (APFS local snapshots, purgeable space) the runner stops after two removals in a row that freed next to nothing (copies too small to tell, or never measured, between them are not counted), instead of emptying itself, and says so. A pid the runner wrote down — a job's, a project lock's, an `exec` marker's, a half-removed copy's — that a crash and a reboot left naming some daemon no longer keeps a copy in use, a project's queue behind a lock nobody holds or a job «running» for good, and `kill` no longer signals a stranger's process group; the runner counts a pid as its own only while its command line is the runner script's.
158
+ - If the disk is still short after that, the submit fails at once (exit 125): «runner mac: only 8 GB free on the work disk, the runner needs 60 GB; biggest project copies: …».
159
+ - `charness remote-run clean [<slug>]` removes a project's copy from every runner and says what each freed: the copy of the project you run it in, or the one named (the name that message gives). A copy belongs to a project folder, shared by every task run from it, so it is for when the last task of the folder is closed. It refuses (exit 125, the copy untouched) while a job of it runs or waits, an `exec` runs in it, a job is being submitted, or a job ended under an hour ago whose results nobody has fetched (`wait`, `fetch` and a foreground run count as fetching), naming the job; a leftover of a removal that ran out of time is finished by the next clean; a runner that cannot be reached, or drops during the removal, is said so without failing the command. Agents are told to run it when the last task of a folder is closed — the bot's remote-run instruction and the manager skill say so (the manager before it removes the folder or worktree), and not to delete other tasks' copies by hand.
160
+ - A project can ask the runner to give the build output back itself: `clean-after-success: ios/build/Intermediates.noindex` in its `.remote-run` removes the named paths from the runner's copy after a job that ended with exit 0 (not after a failure, a time limit or a kill; after the `pull:` files were collected; read-only folders and links handled safely; the paths stay inside the copy; `.git`, `node_modules` and `Pods` are never entered — a pattern with one in its path is refused, and a folder a pattern names that holds a `node_modules` or `Pods` below it, like `ios` over `ios/Pods` or `packages/*` over per-package dependencies, is kept whole while the other patterns still apply inside it; a `.git` a build tool checked out below a named folder, like Xcode's Swift packages, goes with it). The job's result is recorded before the removal starts, so a `kill` or a `wait` is not held up by it; the project's lock is held until the removal is over, so the next job waits for it, and the report of the removal (how many paths went, `removed 0 paths` included, and which were kept) is in the job's log. It is off unless the project asks.
161
+ - A Mac runner whose iOS works forgets the simulators of runtimes that are gone: a `runners` / `/runners` view starts `xcrun simctl delete unavailable` there in the background, at most once in 24 hours (120 s at most, never delayed for a run or an `exec`), and only after `simctl` has shown a runtime in that very session — a session that sees none would call every simulator «unavailable». It runs only on a Mac whose runner is not an always-on service: there the iOS work goes through the login session's agent and the cleanup would not, so it stays off until it can. Nothing else is deleted — no erase, no runtime, no device of an installed runtime; the simulators of an older runtime than the newest of the same major are only listed under the runner, with their device count.
162
+ - `charness remote-run runners` and the bot's `/runners` show how many project copies a runner keeps and what they take (and `LOW` next to a disk under its target). The sizes are measured in the background, and a copy again only after it was used.
163
+
164
+ **`/accounts` and `/limits` now show how much an API account has spent of its Anthropic bonus credit, say when it is probably used up, notice by itself when it comes back — and an agent choosing an account sees the same.**
165
+ Before, the only number the bot had for an account billed to API credits was a running total (the «💳» line); how much of the monthly credit that comes with Max, Ultra and Team was left is shown only on the Console's Billing page, which no credential the bot has can read. The credit ran out unseen, in the middle of a task, the first sign was a refused request — and after it ran out nothing told the bot, or you, when the new month's credit arrived, so the account stayed out of use.
166
+ Now:
167
+ - Under every API account that has spent something, `/accounts` and `/limits` keep the «💳 $6.51 spent since 07.11 · last turn $0.21» line — counted since the account's first turn — and add «🎁 API credit …» once the credit has a period of its own: your figure or a renewal (below), or a refusal. «via the bot» is meant: a spend by another key or machine is invisible to it.
168
+ - Tell the bot what the Console's Billing page shows — `charness claude-profiles credit <profile> <remainingUsd> [--of <grantUsd>] [--expires YYYY-MM-DD]` (`credit console 67.71 --of 200 --expires 2026-11-15`; `credit <profile> --clear` forgets it; mistyped amounts, a remainder above the grant and days that do not exist or are over are refused with the reason; it works while the bot runs) — and the line adds the estimate: «🎁 API credit ≈ $61.20 of $200.00 · $6.51 spent via the bot since 07.11 · expires 15.11». A new figure starts the count over; past the expiry day it reads «expired … give the new figure: charness claude-profiles credit console <left>».
169
+ - A refusal («Credit balance is too low») turns it into «🎁 API credit probably used up · $6.51 spent since 07.11 — top it up, then pick the account again» (just «probably used up — …» when the «💳» line above already carries the spend; the tail is what the old «💸 used up» line told) — «probably»: the bot cannot be sure. A figure you give after a refusal ends the mark (you are saying there is money), so one row never says «≈ $30 left» and «used up» together. Picking the account again — the step the refusal notice itself asks for — lets it work at once, but the bot keeps the refusal as «unconfirmed» («🎁 API credit: refused 07.11 — the next turn that goes through shows it is back»), so that first turn that goes through is still recorded as the renewal and the spend counter still starts over.
170
+ - Once a day, while an API account is marked used up, the bot asks the API once on that account's own key — one token, the cheapest model, a short timeout, no retry. Refused for the balance: still used up. Any other failure: no conclusion, one log line. An answer — or a real turn that goes through — means the credit is back: the spend counter starts at 0 from that moment, on the last grant you gave (never one derived from the plan: team grants are pooled), the expiry left to the Console — «🎁 API credit renewed ≈ 08.11 · ≈ $200.00 of $200.00 · $0.00 spent via the bot · check expiry in Console › Billing», and only «renewed ≈ 08.11 · $0.00 spent since» if you never gave a grant. Only API accounts are asked, never a subscription — those whose key the bot can read (the pasted key, a Console login's key, the `default` profile's `primaryApiKey` in the home `.claude.json`, only while its sessions run on that Console login's key and not on an `apiKeyHelper`; one boot log line names an API account it cannot read a key for); a refusal that comes in while the request is on its way — also one you already acted on by picking the account — wins over its answer; if the API stops knowing the probe's model the bot logs a warning naming it; the attempt is recorded before the request, so a restart never brings it round sooner than a day.
171
+ - The `claude_profiles` tool and `charness claude-profiles` carry the same for an API account: `spentUsd`, `remainingEstimateUsd`, `expiresOn`, `probablyUsedUp` (read from the refusal, also past an expiry day you gave), `renewedAt` — the bot's estimate, never the Console's balance.
172
+ - Your figure is kept in `DATA_DIR/claudeApiCredit.json`, not in `state.json`: a running bot rewrites `state.json` from its memory, so a figure written there from the command line would be lost at its next save. Give it while the account is idle: a turn that runs while you give it, or one replayed after downtime, is counted in full.
173
+
5
174
  ## 3.11.0 — 2026-11-07
6
175
 
7
176
  **An agent's call of `claude_profiles` (which account a worker should run on) now answers within 10 seconds from the last figures instead of hanging when the bot's usage refresh is stuck.**
package/DEVELOPMENT.md CHANGED
@@ -169,7 +169,7 @@ The paired-runner flows (`runnerLinkE2e.test.ts`, `remoteRunPairedE2e.test.ts`,
169
169
  host» (its `AuthorizedKeysFile` pointed at a temp `.ssh`) and `charness-runner` in a temp `HOME`, so they never touch the real `~/.ssh`;
170
170
  `runnerServiceTakeoverE2e.test.ts` needs only real Pueue (the service manager is a recording stand-in). `runnerAdminLineE2e.test.ts` (the admin pairing line) also needs
171
171
  `fakeroot`: root, a second account and the service manager are stand-ins in `runnerAdminLineE2e/` (`sudo` runs the line under `fakeroot`, `sudo -u <account> -H` hands a
172
- command to the real user with the stand-in account's `HOME`, and plants a trap in the account's launcher that fails the flow if root ever starts it); everything else — the line's own `sh`, the download, the pairing, the root step, the service install — is real. Same tools, same local skip and CI failure.
172
+ command to the real user with the stand-in account's `HOME`, and plants a trap in the account's launcher that fails the flow if root ever starts it); everything else — the line's own `sh`, the download, the pairing, the install of the runner program (a stand-in `npm` that is a `#!/usr/bin/env node` script, run for real on a PATH without Node), the root step, the service install — is real. Same tools, same local skip and CI failure.
173
173
 
174
174
  Node applies `--test-timeout` to a whole test FILE (a `describe`'s own `timeout` cannot extend it), so a file that
175
175
  hangs or leaves a process alive fails by name when its limit passes, instead of hanging the run. A long-running
@@ -184,8 +184,8 @@ below the 10 s floor of `jira.json`, `requestTurnPollMs` — the wake-up engine'
184
184
  `requestSweepIntervalMs` and `requestFirstPostRetryDelayMs` — the wake-up engine's minutes, `limitProbeDelayMs` — the two-minute probe of an unconfirmed usage limit, `stateSaveDebounceMs` — `state.json`'s
185
185
  500 ms save debounce, `openCodeServerUpBudgetMs` — the OpenCode server's 60 s of retries, `backgroundHoldMaxMs` — the 6 h the
186
186
  agent's own pending work holds a json-stream process, `todoReminderPollMs` and `todoReminderIntervalMs` — the todo
187
- reminder's 10 s poll and the interval `settings.json` sets, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs` and `remoteRunRunnerPollMs` — the 45 s heartbeat lease and the 10 s poll of the wait for a paired runner in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
188
- hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the two before them, the bot the rest).
187
+ reminder's 10 s poll and the interval `settings.json` sets, `creditRecheckIntervalMs` and `creditRecheckPollMs` — the 24 h between two rechecks of a used-up API credit and the 30 min poll that finds one due, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs`, `remoteRunRunnerPollMs` and `remoteRunProbeDeadlineMs` — the 45 s heartbeat lease, the 10 s poll of the wait for a paired runner and the 20 s deadline of the probe of the runners in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
188
+ hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the three before them (the bot's `/runners` probe reads `remoteRunProbeDeadlineMs` too), the bot the rest).
189
189
  It is the ONE test-only timing seam,
190
190
  never a setting: unset, every window is the production one; a value may only shorten its window (each key is capped at its
191
191
  production value); set, the boot prints `[test-timings] … overrides active`, and
@@ -205,19 +205,75 @@ docker exec charness-main charness-restart-bot # restart only the bot; agents
205
205
  Two workflows. **`.github/workflows/test.yml` (`Tests`)** runs typecheck, build and the FULL `yarn test` on every push to
206
206
  `main`. **`.github/workflows/publish.yml`** releases charness to npm without anyone doing anything: every day at 09:17
207
207
  (Asia/Tbilisi) it decides by itself: nothing shipped changed → a green run, no tag, no publish; otherwise it checks the tests
208
- of the commit it would release (below), checks the package, commits `chore(release): X.Y.Z`, tags `vX.Y.Z`, publishes to the
209
- `latest` dist-tag with provenance (npm trusted publishing from the `release` environment, no npm token anywhere) and creates
210
- the GitHub Release from the CHANGELOG section. Red anywhere → no tag, no publish, the run is red; the next day's run tries
211
- again by itself. The logic is in `src/release/` (pure `releasePlan.ts` and `testGate.ts` + the `cli.ts` wrapper, run by
212
- `tsx`, never built into `dist/`).
208
+ of the commit it would release (below), checks and packs the package, publishes it to the `latest` dist-tag with provenance
209
+ (npm trusted publishing from the `release` environment, no npm token anywhere), and only THEN commits `chore(release): X.Y.Z`,
210
+ tags `vX.Y.Z`, pushes `main` and creates the GitHub Release from the CHANGELOG section. Red anywhere before the publish → no
211
+ publish, no tag, no push, the run is red; the next day's run tries again by itself. The logic is in `src/release/` (pure
212
+ `releasePlan.ts` and `testGate.ts` + the `cli.ts` wrapper, run by `tsx`, never built into `dist/`).
213
+
214
+ - **Jobs and rights**, in order: `gate` (the plan, the unfinished-release check below and the `Tests` gate; its outputs — the
215
+ version, the tag, go or not — are what every later job goes by; the released commit is always the run's own `github.sha`) → `test` (only when no `Tests`
216
+ run covers the commit: `test.yml` itself, called, with every install script; it hands on nothing but its result) →
217
+ `package` (applies the version, checks the release is the tested commit plus its bump, builds, checks the contents and the
218
+ publish dry run, packs; reports the tarball's sha256 and integrity) → `check-install` (the release commit merged LOCALLY into
219
+ `main` as it stands — a conflict fails here, before the publish — and the tarball installed the way a user does, below) →
220
+ `publish` (the only job with `id-token: write`: it checks out nothing and installs nothing but the pinned npm with no scripts —
221
+ it checks the tarball's sha256 and publishes THAT file, `npm publish <tarball> --provenance`) → `release` (the only job that can
222
+ write: `commit-release --prepare --tarball` makes the release commit — the tested commit plus `package.json`,
223
+ `npm-shrinkwrap.json` and `CHANGELOG.md` taken out of the very tarball npm has (npm packs them byte for byte) —, the tag and
224
+ the merge with a moved `main`, locally and without the token; then a plain `git push --atomic` of `main` and the tag, and the
225
+ GitHub Release. Its checkout keeps no credentials; the token is in the environment of the push step (git only) and the Release
226
+ step (`gh`) alone. A step is not a boundary against code that ran earlier in the same job — such a process runs as the same
227
+ user and could read a later step's environment —, so what runs there is pinned by hash: Yarn by `packageManager`
228
+ (`yarn@4.9.2+sha512.…`, which corepack checks), its packages by `yarn.lock`, the actions by commit). Every job but `test` installs
229
+ from `yarn.lock` with no install scripts (`--mode=skip-build`) and nothing from a cache. npm is pinned to an exact version in
230
+ every job (`npm@11.21.1`, installed with `--ignore-scripts`); npm 12 reads no shrinkwrap and packs none — move past 11 only
231
+ together with another lock (the package check refuses a tarball without `npm-shrinkwrap.json`). Every action is pinned to a
232
+ full commit SHA (the version beside it in a comment): bump one by looking its release tag's commit up, never back to a tag.
233
+ - **When a release fails:** npm gets the version BEFORE the repository, so a failure leaves at most one half-done state, and
234
+ only after the publish:
235
+ - anything up to and including `publish` (the gate, the suite, a package or install check, a conflict with `main` that the
236
+ `check-install` merge finds, the npm publish itself — OIDC, provenance, the registry): nothing is published, tagged or
237
+ pushed; the next daily run (or a dispatch, or "Re-run failed jobs") starts that version over;
238
+ - `publish` reached npm but its job failed, or `release` failed (a push refused — also by a `main` that moved in the seconds
239
+ between the merge and the push —, a conflict with a commit that landed on `main` after `check-install`): **npm has a version
240
+ the repository does not** (no tag, `main` still on the old version). Every later run then stops before publishing anything,
241
+ naming the version, until the release is finished: in `gate` when it would release ANOTHER version (`check-registry`: npm
242
+ holds a version, not the run's own, newer than the newest one both tagged and on npm — a tag npm never got does not count —;
243
+ releasing past it would lose it for good, its bump moving `package.json` beyond it; a registry that does not answer is read
244
+ again after 1 s and 3 s), in `package` when it packs another tarball of THAT version (npm cannot take it, and tagging it
245
+ would be wrong); a run that packs the very same tarball goes on and finishes the release. To finish it:
246
+ 1. "Re-run failed jobs" on THAT run (within 7 days, the artifact's life; the version's provenance on npmjs.com links the run)
247
+ — not "Re-run all jobs", which packs anew and, on another day, is refused: `publish` sees npm holds exactly its tarball
248
+ and goes on, `release` commits, tags, pushes and makes the Release; a re-run after the push went through finds the tag
249
+ and only makes the Release;
250
+ 2. by hand, when the re-run cannot finish it: on a checkout of the run's commit (the tested SHA, in the provenance),
251
+ `npm pack charness@X.Y.Z`, then `yarn tsx src/release/cli.ts commit-release X.Y.Z --tarball charness-X.Y.Z.tgz --base <SHA>`
252
+ (`--remote <name>` when GitHub is not your `origin`)
253
+ — it commits that commit plus the tarball's version files and nothing else, merges `main` and pushes; a real conflict
254
+ with `main` is resolved by hand, then push `main` and the tag —, and `yarn tsx src/release/cli.ts notes X.Y.Z > notes.md`,
255
+ `gh release create vX.Y.Z --verify-tag --title vX.Y.Z --notes-file notes.md`.
256
+ - A version with no release run — published by hand, or its tag only on another remote (a clone whose `origin` is not
257
+ GitHub) — stops the runs the same way: push its `vX.Y.Z` tag to GitHub.
258
+ - A hand-pushed tag is in the repository before its publish: when that fails, "Re-run failed jobs" on its run.
259
+ - **The shrinkwrap:** `npm-shrinkwrap.json` (`src/release/hubShrinkwrap.ts`) pins the package's whole run-time tree as
260
+ `yarn.lock` resolved it — every tarball by its sha512, `hasInstallScript` where the registry says so (or npm would not
261
+ run `node-pty`'s install script from it) —, so `npm install -g charness` and the npm self-update install what was tested,
262
+ with npm 11 and older (npm 12 resolves the ranges again). Run `yarn shrinkwrap` after every dependency change, beside
263
+ `yarn runner-lock` (`releaseHubShrinkwrap.test.ts` fails until you do; it asks the registry only about packages it does not
264
+ know yet). Its version is the package's: `apply` writes it, as `npm version` does, and `verify-delta` lets it differ from
265
+ the tested commit in exactly those two lines. Those two lines sit between lines a dependency change never touches (`"name"`,
266
+ `"lockfileVersion"`, `"dependencies": {`), so a dependency change that lands on `main` during a release merges with it
267
+ (`releaseCli.test.ts` holds that).
213
268
 
214
269
  - **Tests gate:** the release does not run the suite again when the exact commit already passed. It asks GitHub for the
215
270
  `Tests` workflow's runs of that commit's SHA (the newest run of the commit decides): **passed** → go on; **no run at all**
216
271
  (a manual dispatch before CI ran) → the release runs the suite itself; **failed or still running** → the daily run
217
272
  releases nothing that day and ends green with the reason (a red head is not skipped over to an older green commit), a
218
273
  manual dispatch or a hand-pushed tag fails with it. The release commit may differ from the tested one ONLY in
219
- `package.json`'s `"version"` line and `CHANGELOG.md`: `verify-delta` checks the diff before the tag and again in the publish
220
- job (the tag against the tested SHA) and refuses otherwise. A hand-pushed tag (`npm version`, then push `main` with the tag) is gated through its
274
+ `package.json`'s `"version"` line, the two version lines of `npm-shrinkwrap.json` and `CHANGELOG.md`: `verify-delta` checks
275
+ the diff in `package` before packing, and `commit-release --base` again before it commits (in `check-install` and `release`),
276
+ and refuses otherwise. A hand-pushed tag (`npm version`, then push `main` with the tag) is gated through its
221
277
  PARENT: when the commit before the tag has a green `Tests` run and the tag differs from it only in the version and the CHANGELOG,
222
278
  that run is the gate — the tag's own run, started by the same push, is not waited for. When the parent is not green or the tag
223
279
  carries more than the bump, the tagged commit's own run decides (still running → refused: re-run the release once it is green).
@@ -231,8 +287,9 @@ again by itself. The logic is in `src/release/` (pure `releasePlan.ts` and `test
231
287
  day, or a change and its revert, publishes nothing; README / SETUP changes reach the npm page with the next code
232
288
  release.
233
289
  - **Manual run** (Actions → Release to npm → Run workflow): `bump` `auto|patch|minor|major`; `force` releases even when
234
- the skip rules say skip (never past the breaking-change guard of `auto`); `dryRun` does everything but the push, the
235
- publish and the GitHub Release and prints the plan, the CHANGELOG diff, the notes and the package check.
290
+ the skip rules say skip (never past the breaking-change guard of `auto`); `dryRun` does everything but the publish, the
291
+ push and the GitHub Release — it runs `package` and `check-install` (the install and the merge with `main`) — and prints the
292
+ plan, the CHANGELOG diff and the notes.
236
293
  - **By hand:** `npm version minor` locally (its `preversion` runs typecheck, build and the tests, its
237
294
  `version` script moves the CHANGELOG heading, `.npmrc` gives the commit npm's message `chore(release): X.Y.Z`), then
238
295
  push `main` with the tag; the workflow gates that tag on its commit's `Tests` run (above) and publishes it.
@@ -241,13 +298,19 @@ again by itself. The logic is in `src/release/` (pure `releasePlan.ts` and `test
241
298
  paragraph or `- ` bullet, in any `###` subsection — starts with a bold first sentence (`**…**`); the run fails,
242
299
  quoting the line, otherwise (`changelogFormat.test.ts` fails first on a commit that breaks it). An empty
243
300
  `## Unreleased` is filled with the `feat` / `fix` subjects.
244
- - **Package check** before any tag: the tarball holds `dist/cli.js`, `stt/gigaam_sidecar.py`, `CHANGELOG.md`,
245
- `README.md`, `LICENSE` and no `src/` or tests, and `charness --version` of it, installed into a temp prefix, prints
246
- the new version (`yarn tsx src/release/cli.ts check-pack`, after `yarn build`). `bin` paths are written
301
+ - **Package check** before anything is published: the tarball holds `dist/cli.js`, `stt/gigaam_sidecar.py`, `npm-shrinkwrap.json`,
302
+ `CHANGELOG.md`, `README.md`, `LICENSE` and no `src/` or tests, and installed the way a user installs it — `npm install -g`
303
+ from a loopback registry that serves the tarball and marks its shrinkwrap, as the npm registry does (an install of the
304
+ tarball FILE ignores the shrinkwrap), dependencies passed on to the real registry — `charness --version` prints the new
305
+ version and every package sits at the version the shrinkwrap pins (`yarn tsx src/release/cli.ts check-pack`, after
306
+ `yarn build`; the `check-install` job runs the same install on the tarball `package` packed: `check-install --tarball`). `bin` paths are written
247
307
  `dist/cli.js`, never `./dist/cli.js`: npm >= 11.10 silently drops a "./" entry from the manifest it publishes (3.3.0
248
308
  reached the registry without its commands), so `check-pack` and `packageManifest.test.ts` refuse one, and
249
- `check-publish` (`npm publish --dry-run`, run before the tag and again right before the publish) refuses a package.json
309
+ `check-publish` (`npm publish --dry-run`, run in the package job) refuses a package.json
250
310
  that npm reports it would drop or rewrite anything from.
251
311
  - **After a release** the clone is one commit behind `main`: `git pull --rebase` before pushing. A new CHANGELOG entry
252
- goes under `## Unreleased` (a push that races the release can conflict there; the run then fails with nothing
253
- published).
312
+ goes under `## Unreleased`; one that lands on `main` while a release runs stays there — the release's merge with `main`
313
+ keeps everything added during the run under `## Unreleased` (`mergeReleaseChangelog`), where git alone conflicts on an
314
+ entry added at the top and files one added at the end under the version that did not ship it. Only rewording or removing
315
+ an entry that is being released conflicts: before the install check, the run fails with nothing published; after it, see
316
+ "When a release fails".
package/README.md CHANGED
@@ -96,7 +96,7 @@ The same core serves every surface; each feature links to the commands that driv
96
96
  | Updates itself | Checks for a new version hourly, installs it when no agent is working, restarts in place (agents keep running) and says in General what changed; npm installs and git checkouts, hot mode and Docker included | [`/update`](docs/commands.md#update), [Updating](SETUP.md#updating) |
97
97
  | Restart-safe | Agents run as external processes (tmux, `opencode serve`) that the bot re-adopts after a restart instead of killing them; a prompt sent while a session boots is buffered and replayed | [Restart behaviour](docs/backends.md#restart-behaviour) |
98
98
  | Shared todo lists | Every agent publishes a short stand-up list of what it is working on (in work, the queue, done), and the agents of one repository see each other's lists with every prompt, so two of them never fix the same thing unknowingly | [`/todo`](docs/commands.md#todo) |
99
- | Compaction | Compact an agent's context by hand, after ~55 min idle, or by the agent's own request | [`/compact`](docs/commands.md#compact), [`/compact_on_idle`](docs/commands.md#compact_on_idle), [`/compact_summary`](docs/commands.md#compact_summary) |
99
+ | Compaction | Compact an agent's context by hand, after ~55 min idle, or by the agent's own request | [`/compact`](docs/commands.md#compact), [`/compact_on_idle`](docs/commands.md#compact_on_idle), [`/compact_summary`](docs/commands.md#compact_summary), [`/compact_self_review`](docs/commands.md#compact_self_review) |
100
100
  | Tools and skills for agents | Every session the bot starts gets the bot's own MCP tools (schedule, todo, send files) and the manager / delegate skills | [Bot-injected agent tools](docs/backends.md#bot-injected-agent-tools), [`/bot_skills`](docs/commands.md#bot_skills) |
101
101
  | Runners for heavy commands | Agents send a test suite, a build or an emulator run to another machine: `charness remote-run` syncs the project, runs the command there and brings back the output, the exit code and the result files you declare, and `remote-run runners` shows every machine's CPU, memory, disk, load and what it can do (Android, iOS, Docker, Playwright). Attach a machine by pasting one line from `/runners` on it — no VPN, no open port, no root on this machine; a machine you reach by plain ssh works too | [`/runners`](docs/commands.md#runners), [docs/remote-run.md](docs/remote-run.md), [SETUP.md](SETUP.md#runners-for-heavy-commands-remote-run) |
102
102
  | Jira | An issue is a conversation: assign a ticket to the agent's user and it works it; a cap on how many issues work at once | [Jira setup](SETUP.md#jira-setup), [`/task_agents`](docs/commands.md#task_agents) |
@@ -121,7 +121,8 @@ Think **OpenClaw for vibe coding**, driven entirely from Telegram: no complex se
121
121
  | Voice input | Voice notes are transcribed by an ordered chain of engines — Groq, OpenAI or your own OpenAI-compatible server — set up in `/stt` (or `stt.json`); a local GigaAM engine is optional; if one fails, the next takes over | [`/stt`](docs/commands.md#stt), [Voice input](SETUP.md#voice-input) |
122
122
  | Display verbosity and view | Per topic: detail `minimal\|short\|full`, and what the topic shows — `stream` (default), `stream_answers` or `answers` (only the agent's pinned answers, no stream) | [`/verbosity`](docs/commands.md#verbosity), [`/thinking`](docs/commands.md#thinking), [`/tool_results`](docs/commands.md#tool_results), [`/subagent`](docs/commands.md#subagent) |
123
123
  | Time-aware prompts | `/timestamps on` prepends each forwarded prompt's send time (local-offset ISO), so a days-long session knows what "yesterday" or "2 days ago" means; agent-facing only, per topic | [`/timestamps`](docs/commands.md#timestamps) |
124
- | Reply context | Reply to a message in a topic and the quoted text is folded into the prompt the agent receives, so it sees what you point at without re-pasting; works for text, voice and files, both agents | [Reply context](docs/commands.md#reply-context) |
124
+ | Reply context | Reply to a message in a topic and the quoted text is folded into the prompt the agent receives, so it sees what you point at without re-pasting, and who wrote it — a message of somebody who may not talk to the agent is quoted as untrusted text; works for text, voice and files, both agents | [Reply context](docs/commands.md#reply-context) |
125
+ | Talkers | An admin lets a group member talk to the agent in ONE topic (or in every topic, from General's list) without making them an admin: `/access` adds them with a tap, a reply or an @username, after a warning that they can make the agent run any command in the folder; the agent reads their words under a mark that says they are not the operator | [`/access`](docs/commands.md#access), [Who may write in a topic](docs/commands.md#who-may-write-in-a-topic) |
125
126
  | Forwarded messages | Forward a message into a topic and the agent is told it is forwarded, from whom and when it was originally sent — so a forwarded alert or quote is never read as your own words; works for text, voice and files, both agents | [Forwarded messages](docs/commands.md#forwarded-messages) |
126
127
  | Your timezone | `/timezone Europe/Moscow` once, and schedules fire at your wall-clock time while the agent is told what time it actually is; no server-clock guessing | [`/timezone`](docs/commands.md#timezone) |
127
128
  | Observability | An always-on output trace and a console log, the source of truth for "a message never reached the topic" | [`/trace`](docs/commands.md#trace), [`/doctor`](docs/commands.md#doctor), [Troubleshooting](docs/troubleshooting.md) |