@repo-os/repoos 0.5.83 → 0.5.85

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 (157) hide show
  1. package/dist/.build-info.json +2 -2
  2. package/dist/.build-stamp.json +1 -1
  3. package/dist/cli/api-route-parity.js +2 -0
  4. package/dist/cli/help.js +4 -4
  5. package/dist/commands/control-api.js +24 -0
  6. package/dist/commands/restart.js +12 -3
  7. package/dist/commands/servers.d.ts +30 -0
  8. package/dist/commands/servers.js +172 -47
  9. package/dist/commands/servers.test.d.ts +1 -0
  10. package/dist/commands/servers.test.js +92 -0
  11. package/dist/commands/ui-smoke.js +1 -0
  12. package/dist/core/agent-contract.js +1 -0
  13. package/dist/core/config.js +40 -0
  14. package/dist/core/supervisor-detect.js +8 -4
  15. package/dist/core/supervisor-detect.test.js +14 -0
  16. package/dist/core/types.d.ts +4 -0
  17. package/dist/server/__tests__/take-main-review.test.d.ts +1 -0
  18. package/dist/server/__tests__/take-main-review.test.js +41 -0
  19. package/dist/server/active-without-engineer-recovery.d.ts +1 -0
  20. package/dist/server/active-without-engineer-recovery.js +15 -4
  21. package/dist/server/agents.d.ts +1 -1
  22. package/dist/server/agents.js +2 -1
  23. package/dist/server/release.js +130 -97
  24. package/dist/server/remote-validation.js +11 -0
  25. package/dist/server/review.d.ts +14 -0
  26. package/dist/server/review.js +78 -2
  27. package/dist/server/routes/tasks.d.ts +4 -0
  28. package/dist/server/routes/tasks.js +95 -1
  29. package/dist/server/server.js +3 -1
  30. package/dist/server/take-main-review.d.ts +15 -0
  31. package/dist/server/take-main-review.js +46 -0
  32. package/dist/server/task-watchdog.js +6 -3
  33. package/dist/server/ui-handoff-gate.d.ts +5 -0
  34. package/dist/server/ui-handoff-gate.js +8 -1
  35. package/dist/ui/assets/{ActivityIndicator-qTdfzyPD.js → ActivityIndicator-B7rDbESG.js} +1 -1
  36. package/dist/ui/assets/{AgentModelControl-DzYo0ffF.js → AgentModelControl-CX4OoBYS.js} +1 -1
  37. package/dist/ui/assets/{AgentModelModal-CV6a6wF8.js → AgentModelModal-Dno7Tuta.js} +1 -1
  38. package/dist/ui/assets/{AgentsView-B9Cl8aPo.js → AgentsView-CRYrlOAO.js} +2 -2
  39. package/dist/ui/assets/{ChatAgentModelChip-BcmfOIP0.js → ChatAgentModelChip-DmrpFSwd.js} +1 -1
  40. package/dist/ui/assets/{ChecksView-B-AIlzHX.js → ChecksView-SxA-pk3D.js} +0 -0
  41. package/dist/ui/assets/{ClientBoardView-DBwCGKsP.js → ClientBoardView-D8iNvaUD.js} +1 -1
  42. package/dist/ui/assets/{ConfirmDialog-BM-2_LrJ.js → ConfirmDialog-DPnkOFol.js} +1 -1
  43. package/dist/ui/assets/ContextView-BWVlwOFx.js +4 -0
  44. package/dist/ui/assets/{DashboardView-C6UUYVSS.js → DashboardView-S9gRjNg6.js} +1 -1
  45. package/dist/ui/assets/{DeleteConfirmDialog-YUeTLI_Z.js → DeleteConfirmDialog-Da9Bacbx.js} +1 -1
  46. package/dist/ui/assets/{DeploymentsView-Bs2T_UNL.js → DeploymentsView-C5zBEHxi.js} +1 -1
  47. package/dist/ui/assets/{DevView-D0EuVvXa.js → DevView-WxefHWVh.js} +2 -2
  48. package/dist/ui/assets/{DiffView-Dso36ur-.js → DiffView-Dpx5VqLM.js} +2 -2
  49. package/dist/ui/assets/{FailedTestsList-DFskm6j_.js → FailedTestsList-TSKrXUnD.js} +1 -1
  50. package/dist/ui/assets/InputsView-DQFYYtZx.js +1 -0
  51. package/dist/ui/assets/{LoginView-DMgJ8qCZ.js → LoginView-BikSujup.js} +1 -1
  52. package/dist/ui/assets/{PageSkeleton-CApOOwUp.js → PageSkeleton-0JF8PB5b.js} +1 -1
  53. package/dist/ui/assets/ReleasesView-CDaccG1K.js +7 -0
  54. package/dist/ui/assets/{SecretsView-BhxdxyCb.js → SecretsView-DB1NyJjH.js} +1 -1
  55. package/dist/ui/assets/SettingsView-BK6huHqS.js +4 -0
  56. package/dist/ui/assets/StoriesView-De_gpM_m.js +1 -0
  57. package/dist/ui/assets/VoiceDictate-DM62pfGf.js +1 -0
  58. package/dist/ui/assets/WorkView-B40iw572.js +2 -0
  59. package/dist/ui/assets/{WorkView-LeQIarQj.css → WorkView-CrMpEDgu.css} +1 -1
  60. package/dist/ui/assets/{abnfDiagram-VCTEODGH-Cb_cgujj.js → abnfDiagram-VCTEODGH-D_vcxiR-.js} +1 -1
  61. package/dist/ui/assets/{activity-motion-D6DhAJn3.js → activity-motion-BmUJdM2_.js} +1 -1
  62. package/dist/ui/assets/{architectureDiagram-5GKGNRK7-BWqNZJxJ.js → architectureDiagram-5GKGNRK7-BTMmZWaY.js} +1 -1
  63. package/dist/ui/assets/{blockDiagram-I7D4REHJ-DPDn_PJE.js → blockDiagram-I7D4REHJ-C-6f3IQy.js} +1 -1
  64. package/dist/ui/assets/{c4Diagram-7LVT6UL2-VK8ldPKm.js → c4Diagram-7LVT6UL2-CLIVkQqJ.js} +1 -1
  65. package/dist/ui/assets/channel-BT55ZukM.js +1 -0
  66. package/dist/ui/assets/{check-setup-Bm6wzcLb.js → check-setup-DmxyguK7.js} +1 -1
  67. package/dist/ui/assets/{checkbox-DQJ1FrVo.js → checkbox-CppTZSHg.js} +1 -1
  68. package/dist/ui/assets/{chunk-2E4U76K2-D_-pRw6m.js → chunk-2E4U76K2-DAiVFWo8.js} +1 -1
  69. package/dist/ui/assets/{chunk-4HAMMTFA-COPQzbT9.js → chunk-4HAMMTFA-iz6X9_oT.js} +1 -1
  70. package/dist/ui/assets/{chunk-75Z2AOVW--RRSStgK.js → chunk-75Z2AOVW-S6pCMni6.js} +1 -1
  71. package/dist/ui/assets/{chunk-CLGD4ZFX-BuhGv9dL.js → chunk-CLGD4ZFX-CudExNfg.js} +1 -1
  72. package/dist/ui/assets/{chunk-DU6HZSFF-BpEGN-jU.js → chunk-DU6HZSFF-cI0jScWk.js} +1 -1
  73. package/dist/ui/assets/{chunk-F27PBJKO-BtMc-M5l.js → chunk-F27PBJKO-NdPQRAvb.js} +1 -1
  74. package/dist/ui/assets/{chunk-GMAD6QVW-Gm9oYNsi.js → chunk-GMAD6QVW-DYbDVqrr.js} +1 -1
  75. package/dist/ui/assets/{chunk-GVQU2GXP-BAZ44R3c.js → chunk-GVQU2GXP-DcMhQDFV.js} +1 -1
  76. package/dist/ui/assets/{chunk-IMKFNOWR-3l-Rr2i3.js → chunk-IMKFNOWR-BJtkDi3G.js} +1 -1
  77. package/dist/ui/assets/{chunk-L3NEJ4N5-COb57M7A.js → chunk-L3NEJ4N5-DUPYmMgu.js} +1 -1
  78. package/dist/ui/assets/{chunk-OSK3NFVY-BIL4dto4.js → chunk-OSK3NFVY-CvqmQX_6.js} +1 -1
  79. package/dist/ui/assets/{chunk-P2QGCYS3-DwbqYr7u.js → chunk-P2QGCYS3-CWBcCYA2.js} +1 -1
  80. package/dist/ui/assets/{chunk-POPQ4Y6H-7k-_nntv.js → chunk-POPQ4Y6H-CQFQH4Bw.js} +1 -1
  81. package/dist/ui/assets/{chunk-PWAF6VOD-C3q9xQtO.js → chunk-PWAF6VOD-08tXbqky.js} +1 -1
  82. package/dist/ui/assets/{chunk-SHT3W25Y-D870KNK8.js → chunk-SHT3W25Y-Ce582OvZ.js} +1 -1
  83. package/dist/ui/assets/{chunk-SVP7TREG-Bh19_eqc.js → chunk-SVP7TREG-C1ontwHC.js} +1 -1
  84. package/dist/ui/assets/{chunk-TICWLB2K-eXXVa1Kq.js → chunk-TICWLB2K-zbhtp7tS.js} +1 -1
  85. package/dist/ui/assets/chunk-TLUHSLCS-CQmyYhqh.js +2 -0
  86. package/dist/ui/assets/classDiagram-ZZMXUADV-Bx7fOfp7.js +1 -0
  87. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-Bx7fOfp7.js +1 -0
  88. package/dist/ui/assets/{close-yf0EeB2n.js → close-DGMDnjoO.js} +1 -1
  89. package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-DxYIsO1R.js → cynefinDiagram-5FMLGOSQ-BtUPtBty.js} +1 -1
  90. package/dist/ui/assets/{dagre-GXQ25YYZ-DE0XDIXh.js → dagre-GXQ25YYZ-0oGDuHsX.js} +1 -1
  91. package/dist/ui/assets/{diagram-S7CK7UJ4-jWgQlYFu.js → diagram-S7CK7UJ4-B5J7KZ0-.js} +1 -1
  92. package/dist/ui/assets/{diagram-UQ7AKVKN-3LkHi1zg.js → diagram-UQ7AKVKN-C721hQcW.js} +1 -1
  93. package/dist/ui/assets/{diagram-VSXAHHWV-D2I22kM0.js → diagram-VSXAHHWV-DINlmaMP.js} +1 -1
  94. package/dist/ui/assets/{diagram-VX7I27RA-DnyWmfDF.js → diagram-VX7I27RA-C6IdJ1ye.js} +1 -1
  95. package/dist/ui/assets/{diagram-Z3DM3KII-PTZzG2BI.js → diagram-Z3DM3KII-DQUDwFj8.js} +1 -1
  96. package/dist/ui/assets/{docs-EtseKpVq.js → docs-B6G_TAeF.js} +1 -1
  97. package/dist/ui/assets/{ebnfDiagram-PWID7BFC-oCBprSwU.js → ebnfDiagram-PWID7BFC-BEK7VsZw.js} +1 -1
  98. package/dist/ui/assets/{erDiagram-RLTQ6QDP-V_DT0EY0.js → erDiagram-RLTQ6QDP-DJtYuZbF.js} +1 -1
  99. package/dist/ui/assets/flowDiagram-HODETNUW-nL1KnyIE.js +1 -0
  100. package/dist/ui/assets/{ganttDiagram-EL5Y4UJY---aGcEqL.js → ganttDiagram-EL5Y4UJY-BQH2lBNs.js} +1 -1
  101. package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-DAzHoh7K.js → gitGraphDiagram-WWUBYQGX-Be4pg0bV.js} +1 -1
  102. package/dist/ui/assets/index-B37f0CKv.css +1 -0
  103. package/dist/ui/assets/index-DOGC96Oa.js +95 -0
  104. package/dist/ui/assets/{infoDiagram-27XIBGKW-BWnTXEwC.js → infoDiagram-27XIBGKW-B71tSaIP.js} +1 -1
  105. package/dist/ui/assets/{input-BH2-2GgN.js → input-Bc0aNTNs.js} +1 -1
  106. package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-B9CXHJZ-.js → ishikawaDiagram-5VMMS53U-Ci-Jx2Js.js} +1 -1
  107. package/dist/ui/assets/{journeyDiagram-3NMN7TZE-CX-uVfvN.js → journeyDiagram-3NMN7TZE-BB5CGDvB.js} +1 -1
  108. package/dist/ui/assets/{kanban-definition-UXKFOSKX-5oO_QXKt.js → kanban-definition-UXKFOSKX-D8jL16xp.js} +1 -1
  109. package/dist/ui/assets/{layer-B7s9BFq9.js → layer-BvZDv12j.js} +1 -1
  110. package/dist/ui/assets/{line-DoJu2485.js → line-ByXvpXQI.js} +1 -1
  111. package/dist/ui/assets/markdown-rVjWPmDr.js +16 -0
  112. package/dist/ui/assets/{mermaid-parser.core-BqiYWE0j.js → mermaid-parser.core-CybWBi58.js} +1 -1
  113. package/dist/ui/assets/mermaid.core-B_AsP_Od.js +11 -0
  114. package/dist/ui/assets/{mindmap-definition-YA3MSWOX-DpZnxEHZ.js → mindmap-definition-YA3MSWOX-CumDN111.js} +1 -1
  115. package/dist/ui/assets/{pegDiagram-XKGWAZYB-DVe21lE3.js → pegDiagram-XKGWAZYB-CRvcQOQM.js} +1 -1
  116. package/dist/ui/assets/{pieDiagram-E7YTZNPT-C2YPBsZA.js → pieDiagram-E7YTZNPT-C0jMuzQh.js} +1 -1
  117. package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-CnUTWIrs.js → quadrantDiagram-AXDQQJYC-CWlSZ15P.js} +1 -1
  118. package/dist/ui/assets/{railroadDiagram-O6MQD6OU-Dc_d2wFA.js → railroadDiagram-O6MQD6OU-ab0STaMg.js} +1 -1
  119. package/dist/ui/assets/repo-Db5lO2aA.js +79 -0
  120. package/dist/ui/assets/{requirementDiagram-BXWQKSXE-C8Ps8iqk.js → requirementDiagram-BXWQKSXE-BR9-r5kT.js} +1 -1
  121. package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-BUnTNwVu.js → sankeyDiagram-P5KCCOFB-Bg8P0wm3.js} +1 -1
  122. package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-C7TVQfjw.js → sequenceDiagram-WJ2MYXX4-BkwXkfce.js} +1 -1
  123. package/dist/ui/assets/{stateDiagram-D77RDMKH-7n4CIW_o.js → stateDiagram-D77RDMKH-DvRxAM1-.js} +1 -1
  124. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CCswgD6Z.js +1 -0
  125. package/dist/ui/assets/{swimlanes-42K2YHIH-FKu4opDF.js → swimlanes-42K2YHIH-BbGDO56J.js} +1 -1
  126. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-Dk0CfAzV.js +8 -0
  127. package/dist/ui/assets/{switch-nW6XUdAS.js → switch-BHLgIQon.js} +1 -1
  128. package/dist/ui/assets/{timeline-definition-24CTP7MA-BrW887ab.js → timeline-definition-24CTP7MA-CYUFWMTj.js} +1 -1
  129. package/dist/ui/assets/{title-BbYxmtoR.js → title-BSEVo0iT.js} +1 -1
  130. package/dist/ui/assets/{value--sTHtfns.js → value-CIJASySy.js} +1 -1
  131. package/dist/ui/assets/vendor-ui-BmzYkqZG.js +3 -0
  132. package/dist/ui/assets/{vennDiagram-4TSXK5OY-D_VA36z2.js → vennDiagram-4TSXK5OY-CJzMntTj.js} +1 -1
  133. package/dist/ui/assets/{viewport-B7a-WO5s.js → viewport-B5Qy7nSx.js} +1 -1
  134. package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-KtsDPaT6.js → wardleyDiagram-VM6X3IG4-DwS5yWjv.js} +1 -1
  135. package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-B06H81n4.js → xychartDiagram-S5SC5T6Z-BHRlgUkt.js} +1 -1
  136. package/dist/ui/index.html +21 -20
  137. package/dist/ui/sw.js +2 -2
  138. package/package.json +1 -1
  139. package/dist/ui/assets/ContextView-CTfqEfYM.js +0 -4
  140. package/dist/ui/assets/InputsView-F4VBqTku.js +0 -1
  141. package/dist/ui/assets/ReleasesView-C-GeBhgm.js +0 -7
  142. package/dist/ui/assets/SettingsView-DCzKi19L.js +0 -4
  143. package/dist/ui/assets/StoriesView-DZZ6vses.js +0 -1
  144. package/dist/ui/assets/VoiceDictate-Bb3KjQn9.js +0 -16
  145. package/dist/ui/assets/WorkView-2AYH8Z76.js +0 -2
  146. package/dist/ui/assets/channel-DvmBtdoS.js +0 -1
  147. package/dist/ui/assets/chunk-TLUHSLCS-Be7X9J97.js +0 -2
  148. package/dist/ui/assets/classDiagram-ZZMXUADV-CXfkwnWi.js +0 -1
  149. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-CXfkwnWi.js +0 -1
  150. package/dist/ui/assets/flowDiagram-HODETNUW-hseZUK0B.js +0 -1
  151. package/dist/ui/assets/index-CTvoZpPa.css +0 -1
  152. package/dist/ui/assets/index-D32Fdlh_.js +0 -95
  153. package/dist/ui/assets/mermaid.core-DqHC2G1X.js +0 -11
  154. package/dist/ui/assets/repo-BlPEs5-y.js +0 -79
  155. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-BDBVZPkh.js +0 -1
  156. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-DSQn7lVU.js +0 -8
  157. package/dist/ui/assets/vendor-ui-BIC6pWFX.js +0 -3
@@ -1,5 +1,5 @@
1
1
  {
2
- "hash": "2cb20724449bc36c2231e2a31e32ff46ca4744319c4249a925abd0d130ece18f",
3
- "version": "0.5.83",
2
+ "hash": "1fa0c9ad3af0ee5ffd384e8a2e4b7eb34adaa0c4cdbcd9f9202c801723d266a5",
3
+ "version": "0.5.85",
4
4
  "devUi": false
5
5
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "generatedAt": "2026-11-14T03:22:28.522Z"
2
+ "generatedAt": "2026-11-14T16:38:35.179Z"
3
3
  }
@@ -17,6 +17,8 @@ const CONTROL_API_MATCHERS = [
17
17
  // `repoos attention dismiss <id>` dismisses the task's needs-input event.
18
18
  re("POST", /^\/api\/tasks\/([^/]+)\/needs-input\/dismiss$/.source),
19
19
  re("POST", /^\/api\/tasks\/([^/]+)\/review\/again$/.source),
20
+ re("POST", /^\/api\/tasks\/([^/]+)\/review\/keep$/.source),
21
+ re("GET", /^\/api\/tasks\/([^/]+)\/review\/keep-check$/.source),
20
22
  re("POST", /^\/api\/tasks\/([^/]+)\/review\/followup$/.source),
21
23
  re("GET", /^\/api\/tasks\/([^/]+)\/landable$/.source),
22
24
  // `repoos summary <id>` generates or retries the post-merge summary (#1041).
package/dist/cli/help.js CHANGED
@@ -125,7 +125,7 @@ const GROUPS = [
125
125
  },
126
126
  {
127
127
  name: "review",
128
- usage: "review <id> [--wait] [--json] [--port N] · review cancel <id> · review again <id> · review followup <id>",
128
+ usage: "review <id> [--wait] [--json] [--port N] · review cancel <id> · review again <id> · review keep <id> · review followup <id>",
129
129
  desc: "Request review synchronously (PATCH status=review; waits for handoff)",
130
130
  flags: "--wait · --json · --port",
131
131
  },
@@ -386,9 +386,9 @@ const GROUPS = [
386
386
  },
387
387
  {
388
388
  name: "servers",
389
- usage: "servers [--json] [--prune]",
390
- desc: "List locally running RepoOS servers from ~/.repoos/servers",
391
- flags: "--json · --prune",
389
+ usage: "servers [--json] [--prune] [--tailscale]",
390
+ desc: "List locally registered RepoOS servers, optionally across the tailnet",
391
+ flags: "--json · --prune · --tailscale",
392
392
  },
393
393
  {
394
394
  name: "service",
@@ -459,6 +459,30 @@ export async function cmdReviewAgain(args) {
459
459
  }
460
460
  }
461
461
  export async function cmdReview(args) {
462
+ if (args[0] === "keep") {
463
+ const { rest, opts, error } = parseCommonFlags(args.slice(1));
464
+ const id = rest[0];
465
+ if (error || !id) {
466
+ printErr(error ?? "Usage: repoos review keep <id> [--json] [--port N]");
467
+ return 1;
468
+ }
469
+ try {
470
+ const api = new RepoOsApi({ port: opts.port });
471
+ await ensureServer(api);
472
+ const res = await api.request("POST", `/api/tasks/${id}/review/keep`, {});
473
+ if (res.status < 200 || res.status >= 300)
474
+ throw new RepoOsApiError(String(res.body.error ?? "keep review verdict refused"), res.status, res.body);
475
+ if (opts.json)
476
+ printJson(res.body);
477
+ else
478
+ console.log(c.green(" ✓ ") + c.dim(`kept review verdict for #${id}`));
479
+ return 0;
480
+ }
481
+ catch (e) {
482
+ printErr(e.message);
483
+ return 1;
484
+ }
485
+ }
462
486
  if (args[0] === "followup") {
463
487
  const { rest, opts, error } = parseCommonFlags(args.slice(1));
464
488
  const id = rest[0];
@@ -15,6 +15,7 @@ const PATH_LABEL = {
15
15
  export async function cmdRestart(argv) {
16
16
  let portFilter;
17
17
  const whenIdle = argv.includes("--when-idle");
18
+ const force = argv.includes("--force");
18
19
  for (let i = 0; i < argv.length; i++) {
19
20
  if (argv[i] === "--port" || argv[i] === "-p") {
20
21
  const raw = argv[++i];
@@ -28,14 +29,15 @@ export async function cmdRestart(argv) {
28
29
  }
29
30
  }
30
31
  const { root } = boardRoot();
31
- if (whenIdle) {
32
+ if (whenIdle || !force) {
32
33
  const server = await locateRepoServer(root, { portFilter });
33
34
  if (!server) {
34
35
  console.error(c.red(" ✗ No running RepoOS server found to wait on."));
35
36
  process.exitCode = 1;
36
37
  return;
37
38
  }
38
- console.log(c.dim(" Waiting for agents, reviews and checks to finish…"));
39
+ if (whenIdle)
40
+ console.log(c.dim(" Waiting for agents, reviews and checks to finish…"));
39
41
  const host = server.host === "0.0.0.0" ? "127.0.0.1" : server.host;
40
42
  for (;;) {
41
43
  try {
@@ -46,8 +48,15 @@ export async function cmdRestart(argv) {
46
48
  if (typeof status.activeWork?.agents !== "number" ||
47
49
  typeof status.activeWork?.checks !== "number")
48
50
  throw new Error("server returned an invalid update status");
49
- if ((status.activeWork?.agents ?? 0) === 0 && (status.activeWork?.checks ?? 0) === 0)
51
+ const agents = status.activeWork?.agents ?? 0;
52
+ const checks = status.activeWork?.checks ?? 0;
53
+ if (agents === 0 && checks === 0)
50
54
  break;
55
+ if (!whenIdle) {
56
+ console.error(c.red(` ✗ Restart refused while ${agents} engineer(s) and ${checks} check(s) are running. Wait for them to finish or pass --force.`));
57
+ process.exitCode = 1;
58
+ return;
59
+ }
51
60
  }
52
61
  catch (error) {
53
62
  console.error(c.red(` ✗ Could not confirm the server is idle: ${error.message}`));
@@ -1 +1,31 @@
1
+ import type { RemoteValidationConfig, RemoteValidationHost } from "../core/types.js";
2
+ export interface ListedServer {
3
+ host: string;
4
+ port?: number;
5
+ pid?: number;
6
+ root?: string;
7
+ projectName?: string;
8
+ valid?: boolean;
9
+ uptimeSeconds?: number | null;
10
+ activeEngineers?: number;
11
+ staleReason?: string | null;
12
+ unreachable?: boolean;
13
+ reason?: string;
14
+ [key: string]: unknown;
15
+ }
16
+ export declare function parseTailnetPeers(json: string): string[];
17
+ type RemoteExec = (host: string, user: string, timeoutMs: number) => Promise<string>;
18
+ export declare function serversSshArgs(host: string, user: string, timeoutMs: number): string[];
19
+ export declare function collectTailnetServers(local: ListedServer[], options?: {
20
+ tailscaleStatus?: () => Promise<string>;
21
+ configuredHosts?: string[];
22
+ remoteHosts?: RemoteValidationHost[];
23
+ remoteValidation?: RemoteValidationConfig;
24
+ remoteExec?: RemoteExec;
25
+ timeoutMs?: number;
26
+ }): Promise<{
27
+ servers: ListedServer[];
28
+ tailscaleUnavailable: boolean;
29
+ }>;
1
30
  export declare function cmdServers(argv: string[]): Promise<void>;
31
+ export {};
@@ -1,25 +1,30 @@
1
- /**
2
- * `repoos servers` — list locally registered `repoos serve` control-plane processes.
3
- *
4
- * Reads `~/.repoos/servers/<port>.json` (see docs/server-registry.md). Validates
5
- * each entry (pid alive + `/api/health` root match), supports `--prune` and `--json`.
6
- */
1
+ /** `repoos servers` — list registered RepoOS control-plane processes. */
2
+ import { execFile } from "node:child_process";
3
+ import { promisify } from "node:util";
4
+ import { findRepoRoot, loadConfig } from "../core/config.js";
5
+ import { remoteHostUser, resolveRemoteHosts } from "../core/remote-hosts.js";
7
6
  import { listValidatedServerRegistry, pruneStaleServerRegistryEntries, } from "../core/server-registry.js";
8
7
  import { c } from "../cli/colors.js";
9
- function formatUptime(seconds) {
10
- if (seconds === null)
11
- return "—";
12
- if (seconds < 60)
13
- return `${seconds}s`;
14
- const m = Math.floor(seconds / 60);
15
- const s = seconds % 60;
16
- if (m < 60)
17
- return `${m}m ${s}s`;
18
- const h = Math.floor(m / 60);
19
- const rm = m % 60;
20
- return `${h}h ${rm}m`;
8
+ const execFileAsync = promisify(execFile);
9
+ const HOST_TIMEOUT_MS = 4_000;
10
+ function localJsonRow(row) {
11
+ return {
12
+ port: row.entry.port,
13
+ host: row.entry.host,
14
+ pid: row.entry.pid,
15
+ root: row.entry.root,
16
+ projectName: row.entry.projectName,
17
+ version: row.entry.version,
18
+ startedAt: row.entry.startedAt,
19
+ activeEngineers: row.entry.activeEngineers ?? 0,
20
+ engineersUpdatedAt: row.entry.engineersUpdatedAt ?? null,
21
+ uptimeSeconds: row.uptimeSeconds,
22
+ valid: row.valid,
23
+ staleReason: row.staleReason,
24
+ healthRoot: row.healthRoot,
25
+ };
21
26
  }
22
- function staleLabel(reason) {
27
+ function localStaleLabel(reason) {
23
28
  if (reason === "dead-pid")
24
29
  return "stale (dead pid)";
25
30
  if (reason === "health-mismatch")
@@ -28,54 +33,174 @@ function staleLabel(reason) {
28
33
  return "stale (health unreachable)";
29
34
  return "stale";
30
35
  }
31
- function printRow(row) {
36
+ function printLocalRow(row) {
32
37
  const e = row.entry;
33
- const status = row.valid ? c.green("ok") : c.yellow(staleLabel(row.staleReason));
38
+ const status = row.valid ? c.green("ok") : c.yellow(localStaleLabel(row.staleReason));
34
39
  const engineers = typeof e.activeEngineers === "number" ? ` ${c.dim(`${e.activeEngineers} engineer(s)`)}` : "";
35
40
  console.log(` ${c.cyan(String(e.port).padStart(5))} ${status} ${c.bold(e.projectName)} ${c.dim(`pid ${e.pid}`)} ${c.dim(formatUptime(row.uptimeSeconds))}${engineers}`);
36
41
  console.log(` ${c.dim(e.root)}`);
37
42
  }
43
+ export function parseTailnetPeers(json) {
44
+ const status = JSON.parse(json);
45
+ const self = (status.Self?.HostName ?? status.Self?.DNSName ?? "")
46
+ .replace(/\.$/, "")
47
+ .split(".")[0];
48
+ return [
49
+ ...new Set(Object.values(status.Peer ?? {})
50
+ .filter((peer) => peer.Online !== false)
51
+ .map((peer) => (peer.HostName ?? peer.DNSName ?? "").replace(/\.$/, "").split(".")[0])
52
+ .filter((host) => host && host !== self)),
53
+ ];
54
+ }
55
+ export function serversSshArgs(host, user, timeoutMs) {
56
+ return [
57
+ "-o",
58
+ "BatchMode=yes",
59
+ "-o",
60
+ `ConnectTimeout=${Math.ceil(timeoutMs / 1000)}`,
61
+ `${user}@${host}`,
62
+ "repoos servers --json",
63
+ ];
64
+ }
65
+ const defaultRemoteExec = async (host, user, timeoutMs) => {
66
+ const { stdout } = await execFileAsync("ssh", serversSshArgs(host, user, timeoutMs), {
67
+ timeout: timeoutMs,
68
+ maxBuffer: 2 * 1024 * 1024,
69
+ });
70
+ return stdout.toString();
71
+ };
72
+ export async function collectTailnetServers(local, options = {}) {
73
+ let peers = [];
74
+ let tailscaleUnavailable = false;
75
+ try {
76
+ peers = parseTailnetPeers(await (options.tailscaleStatus ??
77
+ (async () => {
78
+ const { stdout } = await execFileAsync("tailscale", ["status", "--json"], {
79
+ timeout: 2_000,
80
+ maxBuffer: 2 * 1024 * 1024,
81
+ });
82
+ return stdout.toString();
83
+ }))());
84
+ }
85
+ catch {
86
+ tailscaleUnavailable = true;
87
+ peers = options.configuredHosts ?? [];
88
+ }
89
+ const remoteExec = options.remoteExec ?? defaultRemoteExec;
90
+ const configuredByHost = new Map((options.remoteHosts ?? []).map((host) => [host.host, host]));
91
+ const remotes = await Promise.all(peers.map(async (host) => {
92
+ try {
93
+ const hostConfig = configuredByHost.get(host) ?? { host };
94
+ const user = options.remoteValidation
95
+ ? remoteHostUser(options.remoteValidation, hostConfig)
96
+ : hostConfig.user?.trim() || "root";
97
+ const payload = JSON.parse(await remoteExec(host, user, options.timeoutMs ?? HOST_TIMEOUT_MS));
98
+ if (!Array.isArray(payload.servers))
99
+ throw new Error("remote response has no servers list");
100
+ return payload.servers.map((server) => ({ ...server, host }));
101
+ }
102
+ catch (error) {
103
+ const reason = error instanceof Error ? error.message : String(error);
104
+ return [
105
+ {
106
+ host,
107
+ unreachable: true,
108
+ reason: /timed? ?out|timeout/i.test(reason) ? "timed out" : reason,
109
+ },
110
+ ];
111
+ }
112
+ }));
113
+ return { servers: [...local, ...remotes.flat()], tailscaleUnavailable };
114
+ }
115
+ function formatUptime(seconds) {
116
+ if (seconds == null)
117
+ return "—";
118
+ if (seconds < 60)
119
+ return `${seconds}s`;
120
+ const m = Math.floor(seconds / 60), s = seconds % 60;
121
+ if (m < 60)
122
+ return `${m}m ${s}s`;
123
+ return `${Math.floor(m / 60)}h ${m % 60}m`;
124
+ }
38
125
  export async function cmdServers(argv) {
39
126
  const json = argv.includes("--json");
40
127
  const prune = argv.includes("--prune");
128
+ const tailscale = argv.includes("--tailscale");
129
+ if (prune && tailscale) {
130
+ console.error(c.yellow(" --prune is local-only; remove --tailscale to prune local servers."));
131
+ return;
132
+ }
41
133
  let pruned;
42
- if (prune) {
134
+ if (prune)
43
135
  pruned = await pruneStaleServerRegistryEntries();
44
- if (!json && pruned > 0) {
45
- console.log(c.dim(` Pruned ${pruned} stale registry entr${pruned === 1 ? "y" : "ies"}.`));
46
- }
47
- }
48
- const rows = await listValidatedServerRegistry();
136
+ const localRows = await listValidatedServerRegistry();
137
+ const local = localRows.map((row) => ({
138
+ host: "local",
139
+ port: row.entry.port,
140
+ pid: row.entry.pid,
141
+ root: row.entry.root,
142
+ projectName: row.entry.projectName,
143
+ version: row.entry.version,
144
+ startedAt: row.entry.startedAt,
145
+ activeEngineers: row.entry.activeEngineers ?? 0,
146
+ engineersUpdatedAt: row.entry.engineersUpdatedAt ?? null,
147
+ uptimeSeconds: row.uptimeSeconds,
148
+ valid: row.valid,
149
+ staleReason: row.staleReason,
150
+ healthRoot: row.healthRoot,
151
+ }));
152
+ const cfg = tailscale ? loadConfig(findRepoRoot()) : undefined;
153
+ const remoteHosts = resolveRemoteHosts(cfg?.remoteValidation);
154
+ const result = tailscale
155
+ ? await collectTailnetServers(local, {
156
+ configuredHosts: remoteHosts.map((host) => host.host),
157
+ remoteHosts,
158
+ remoteValidation: cfg?.remoteValidation,
159
+ })
160
+ : { servers: local, tailscaleUnavailable: false };
49
161
  if (json) {
50
162
  console.log(JSON.stringify({
51
- servers: rows.map((r) => ({
52
- port: r.entry.port,
53
- host: r.entry.host,
54
- pid: r.entry.pid,
55
- root: r.entry.root,
56
- projectName: r.entry.projectName,
57
- version: r.entry.version,
58
- startedAt: r.entry.startedAt,
59
- activeEngineers: r.entry.activeEngineers ?? 0,
60
- engineersUpdatedAt: r.entry.engineersUpdatedAt ?? null,
61
- uptimeSeconds: r.uptimeSeconds,
62
- valid: r.valid,
63
- staleReason: r.staleReason,
64
- healthRoot: r.healthRoot,
65
- })),
66
- pruned,
163
+ servers: tailscale ? result.servers : localRows.map(localJsonRow),
164
+ ...(pruned !== undefined ? { pruned } : {}),
165
+ ...(result.tailscaleUnavailable ? { tailscaleUnavailable: true } : {}),
67
166
  }, null, 2));
68
167
  return;
69
168
  }
70
- if (rows.length === 0) {
169
+ if (pruned)
170
+ console.log(c.dim(` Pruned ${pruned} stale local registry entr${pruned === 1 ? "y" : "ies"}.`));
171
+ if (result.tailscaleUnavailable)
172
+ console.log(c.yellow(" Tailscale CLI unavailable; showing configured hosts where reachable and local servers."));
173
+ if (!tailscale && !prune && pruned === undefined) {
174
+ if (localRows.length === 0) {
175
+ console.log(c.dim(" No registered RepoOS servers."));
176
+ console.log(c.dim(" Control-plane `repoos serve` processes register under ") +
177
+ c.cyan("~/.repoos/servers/") +
178
+ c.dim(" when listening."));
179
+ return;
180
+ }
181
+ console.log(c.bold(" Registered RepoOS servers:\n"));
182
+ for (const row of localRows)
183
+ printLocalRow(row);
184
+ return;
185
+ }
186
+ console.log(c.bold(tailscale ? " RepoOS servers by host:\n" : " Registered RepoOS servers:\n"));
187
+ if (!result.servers.length) {
71
188
  console.log(c.dim(" No registered RepoOS servers."));
72
189
  console.log(c.dim(" Control-plane `repoos serve` processes register under ") +
73
190
  c.cyan("~/.repoos/servers/") +
74
191
  c.dim(" when listening."));
75
192
  return;
76
193
  }
77
- console.log(c.bold(" Registered RepoOS servers:\n"));
78
- for (const row of rows) {
79
- printRow(row);
194
+ for (const row of result.servers) {
195
+ if (row.unreachable) {
196
+ console.log(` ${c.cyan(row.host.padEnd(16))} ${c.yellow("unreachable")} ${row.reason ?? "unknown error"}`);
197
+ continue;
198
+ }
199
+ const status = row.valid === false
200
+ ? c.yellow(row.staleReason ? `stale (${row.staleReason})` : "stale")
201
+ : c.green("ok");
202
+ console.log(` ${c.cyan(row.host.padEnd(16))} ${String(row.port ?? "—").padStart(5)} ${status} ${c.bold(row.projectName ?? "RepoOS")} ${c.dim(formatUptime(row.uptimeSeconds ?? null))}`);
203
+ if (row.root)
204
+ console.log(` ${c.dim(row.root)}`);
80
205
  }
81
206
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,92 @@
1
+ import { describe, expect, it, vi } from "vitest";
2
+ import { collectTailnetServers, parseTailnetPeers, cmdServers, serversSshArgs } from "./servers.js";
3
+ import * as registry from "../core/server-registry.js";
4
+ describe("repoos servers --tailscale", () => {
5
+ it("parses online peers and excludes self and offline peers", () => {
6
+ expect(parseTailnetPeers(JSON.stringify({
7
+ Self: { HostName: "laptop" },
8
+ Peer: {
9
+ a: { HostName: "bee", Online: true },
10
+ b: { DNSName: "thinkpad.tailnet.ts.net.", Online: true },
11
+ c: { HostName: "sleeping", Online: false },
12
+ d: { HostName: "laptop", Online: true },
13
+ },
14
+ }))).toEqual(["bee", "thinkpad"]);
15
+ });
16
+ it("lists local and remote entries with hosts, continuing after a timed out peer", async () => {
17
+ const remoteExec = vi.fn(async (host, _user) => {
18
+ if (host === "slow")
19
+ throw new Error("Command timed out");
20
+ return JSON.stringify({ servers: [{ port: 7171, projectName: "remote", valid: true }] });
21
+ });
22
+ const result = await collectTailnetServers([{ host: "local", port: 7000 }], {
23
+ tailscaleStatus: async () => JSON.stringify({
24
+ Peer: {
25
+ a: { HostName: "fast", Online: true },
26
+ b: { HostName: "slow", Online: true },
27
+ },
28
+ }),
29
+ remoteExec,
30
+ });
31
+ expect(result.tailscaleUnavailable).toBe(false);
32
+ expect(result.servers).toEqual([
33
+ { host: "local", port: 7000 },
34
+ { port: 7171, projectName: "remote", valid: true, host: "fast" },
35
+ { host: "slow", unreachable: true, reason: "timed out" },
36
+ ]);
37
+ expect(remoteExec).toHaveBeenCalledTimes(2);
38
+ expect(remoteExec).toHaveBeenCalledWith("fast", "root", 4_000);
39
+ });
40
+ it("falls back to configured hosts when the Tailscale CLI is unavailable", async () => {
41
+ const result = await collectTailnetServers([], {
42
+ tailscaleStatus: async () => {
43
+ throw new Error("tailscale: not found");
44
+ },
45
+ configuredHosts: ["bee"],
46
+ remoteExec: async () => JSON.stringify({ servers: [] }),
47
+ });
48
+ expect(result.tailscaleUnavailable).toBe(true);
49
+ expect(result.servers).toEqual([]);
50
+ });
51
+ it("uses configured per-host users and the global Tailscale user in SSH targets", async () => {
52
+ const remoteExec = vi.fn(async () => JSON.stringify({ servers: [] }));
53
+ const result = await collectTailnetServers([], {
54
+ tailscaleStatus: async () => JSON.stringify({
55
+ Peer: {
56
+ a: { HostName: "bee", Online: true },
57
+ b: { HostName: "mini", Online: true },
58
+ },
59
+ }),
60
+ remoteHosts: [{ host: "bee", user: "operator" }],
61
+ remoteValidation: { tailscaleUser: "nick" },
62
+ remoteExec,
63
+ });
64
+ expect(result.servers).toEqual([]);
65
+ expect(remoteExec).toHaveBeenCalledWith("bee", "operator", 4_000);
66
+ expect(remoteExec).toHaveBeenCalledWith("mini", "nick", 4_000);
67
+ expect(serversSshArgs("bee", "operator", 4_000)).toEqual([
68
+ "-o",
69
+ "BatchMode=yes",
70
+ "-o",
71
+ "ConnectTimeout=4",
72
+ "operator@bee",
73
+ "repoos servers --json",
74
+ ]);
75
+ });
76
+ it("refuses --prune --tailscale before touching the local or remote registries", async () => {
77
+ const prune = vi.spyOn(registry, "pruneStaleServerRegistryEntries");
78
+ const log = vi.spyOn(console, "error").mockImplementation(() => { });
79
+ const local = vi.spyOn(registry, "listValidatedServerRegistry");
80
+ try {
81
+ await cmdServers(["--prune", "--tailscale"]);
82
+ expect(prune).not.toHaveBeenCalled();
83
+ expect(local).not.toHaveBeenCalled();
84
+ expect(log).toHaveBeenCalledWith(expect.stringContaining("local-only"));
85
+ }
86
+ finally {
87
+ prune.mockRestore();
88
+ local.mockRestore();
89
+ log.mockRestore();
90
+ }
91
+ });
92
+ });
@@ -187,6 +187,7 @@ async function runUISmokeTest() {
187
187
  await assertNoHorizontalOverflow("dashboard", server.url);
188
188
  await assertNoHorizontalOverflow("docs", `${server.url}/repo`);
189
189
  // Navigate to work page and click +New Task
190
+ await page.setViewportSize({ width: 1280, height: 900 });
190
191
  await page.evaluate(() => {
191
192
  const navItems = document.querySelectorAll(".nav-item");
192
193
  for (const item of Array.from(navItems)) {
@@ -1205,6 +1205,7 @@ export async function runAdapterContract(opts) {
1205
1205
  try {
1206
1206
  const cancelProc = spawn(binary, sanitizeSpawnArgs(runArgs).args, {
1207
1207
  cwd: workDir,
1208
+ env: { ...process.env, REPOOS_AGENT_CONTRACT_CANCEL_PROBE: "1" },
1208
1209
  stdio: ["ignore", "pipe", "pipe"],
1209
1210
  shell: needsShell,
1210
1211
  });
@@ -215,6 +215,7 @@ export const DEFAULT_CONFIG = {
215
215
  mode: "observe",
216
216
  },
217
217
  watchdog: {
218
+ queuedMessageRecoverMs: 3 * 60 * 1000,
218
219
  enabled: true,
219
220
  stalenessMs: 5 * 60 * 1000,
220
221
  autoTransition: true,
@@ -290,6 +291,7 @@ export const DEFAULT_CONFIG = {
290
291
  // one task, the next report summarises the recurring bug classes and the task
291
292
  // is flagged for a human.
292
293
  review: {
294
+ failedReportRetries: 2,
293
295
  humanFlagAfterPasses: 5,
294
296
  freezeAfterPasses: 4,
295
297
  timeoutMinutes: 15,
@@ -1933,6 +1935,12 @@ export function loadConfig(rootArg, options = {}) {
1933
1935
  if (typeof watchdogEnabled === "boolean") {
1934
1936
  cfg.watchdog = { ...cfg.watchdog, enabled: watchdogEnabled };
1935
1937
  }
1938
+ const queuedMessageRecoverMs = parsed["watchdog.queuedMessageRecoverMs"];
1939
+ if (typeof queuedMessageRecoverMs === "number" &&
1940
+ Number.isFinite(queuedMessageRecoverMs) &&
1941
+ queuedMessageRecoverMs >= 60_000) {
1942
+ cfg.watchdog = { ...cfg.watchdog, queuedMessageRecoverMs: queuedMessageRecoverMs };
1943
+ }
1936
1944
  const watchdogStaleness = parsed["watchdog.stalenessMs"];
1937
1945
  if (typeof watchdogStaleness === "number" && watchdogStaleness >= 60_000) {
1938
1946
  cfg.watchdog = { ...cfg.watchdog, stalenessMs: watchdogStaleness };
@@ -2485,6 +2493,7 @@ export function loadConfig(rootArg, options = {}) {
2485
2493
  const reviewHumanFlag = reviewNumber(parsed["review.humanFlagAfterPasses"]);
2486
2494
  const reviewFreeze = reviewNumber(parsed["review.freezeAfterPasses"]);
2487
2495
  const reviewTimeout = reviewNumber(parsed["review.timeoutMinutes"]);
2496
+ const failedReportRetries = reviewNumber(parsed["review.failedReportRetries"]);
2488
2497
  const review = { ...DEFAULT_CONFIG.review, ...cfg.review };
2489
2498
  let reviewConfigured = false;
2490
2499
  if (reviewHumanFlag !== undefined && Number.isFinite(reviewHumanFlag) && reviewHumanFlag >= 1) {
@@ -2499,6 +2508,12 @@ export function loadConfig(rootArg, options = {}) {
2499
2508
  review.timeoutMinutes = Math.min(240, Math.floor(reviewTimeout));
2500
2509
  reviewConfigured = true;
2501
2510
  }
2511
+ if (failedReportRetries !== undefined &&
2512
+ Number.isFinite(failedReportRetries) &&
2513
+ failedReportRetries >= 0) {
2514
+ review.failedReportRetries = Math.min(5, Math.floor(failedReportRetries));
2515
+ reviewConfigured = true;
2516
+ }
2502
2517
  if (reviewConfigured)
2503
2518
  cfg.review = review;
2504
2519
  }
@@ -2946,6 +2961,17 @@ export function getConfigSchema() {
2946
2961
  "minimum 60000 (1 minute). When recovery fails, the task is flagged for a human " +
2947
2962
  "and a notice is recorded.",
2948
2963
  },
2964
+ {
2965
+ key: "watchdog.queuedMessageRecoverMs",
2966
+ label: "Queued message recovery age",
2967
+ type: "number",
2968
+ tier: "live",
2969
+ restartRequired: false,
2970
+ default: DEFAULT_CONFIG.watchdog.queuedMessageRecoverMs,
2971
+ min: 60000,
2972
+ step: 60000,
2973
+ description: "Minutes a queued engineer message may wait before RepoOS recovers delivery: it ends a live silent turn or restarts a missing engineer in the same worktree. Held, paused and human-assigned tasks are skipped. Default 3 minutes.",
2974
+ },
2949
2975
  {
2950
2976
  key: "watchdog.engineerCrashFailoverThreshold",
2951
2977
  label: "Engineer crashes before failover",
@@ -3349,6 +3375,18 @@ export function getConfigSchema() {
3349
3375
  "large diff on a slow model. A pass cut off by this limit is reported as a timeout, retried once " +
3350
3376
  "automatically, and only then flagged for a human.",
3351
3377
  },
3378
+ {
3379
+ key: "review.failedReportRetries",
3380
+ label: "Retry failed reviews",
3381
+ type: "number",
3382
+ tier: "live",
3383
+ restartRequired: false,
3384
+ default: DEFAULT_CONFIG.review.failedReportRetries,
3385
+ min: 0,
3386
+ max: 5,
3387
+ step: 1,
3388
+ description: "Automatic retries when the reviewer exits without a usable report. After the limit, the task needs human input. Default 2.",
3389
+ },
3352
3390
  {
3353
3391
  key: "maxConcurrentAgents",
3354
3392
  label: "Maximum concurrent agent processes",
@@ -4345,6 +4383,7 @@ export const SUPPORTED_TOML_KEYS = [
4345
4383
  "watchdog.autoTransition",
4346
4384
  "watchdog.phantomDetectMs",
4347
4385
  "watchdog.activeWithoutEngineerRecoverMs",
4386
+ "watchdog.queuedMessageRecoverMs",
4348
4387
  "watchdog.engineerCrashFailoverThreshold",
4349
4388
  "watchdog.autoPauseOnUsageLimit",
4350
4389
  "watchdog.engineerCrashFailoverWindowMs",
@@ -4564,6 +4603,7 @@ export const SUPPORTED_TOML_KEYS = [
4564
4603
  "review.humanFlagAfterPasses",
4565
4604
  "review.freezeAfterPasses",
4566
4605
  "review.timeoutMinutes",
4606
+ "review.failedReportRetries",
4567
4607
  // Remote validation
4568
4608
  "remoteValidation.enabled",
4569
4609
  "remoteValidation.provider",
@@ -182,6 +182,7 @@ function detectDarwinSupervisor(pid, execFile) {
182
182
  };
183
183
  }
184
184
  let listed = parseLaunchctlListForPid(listOut, pid);
185
+ let domainLookupFailed = false;
185
186
  if (!listed) {
186
187
  // A non-root `launchctl list` only shows the caller's own domain, so a
187
188
  // LaunchDaemon in the `system` domain (the Kamrai case) never appears.
@@ -202,6 +203,7 @@ function detectDarwinSupervisor(pid, execFile) {
202
203
  }
203
204
  catch {
204
205
  /* domain not printable by this user — try the next one */
206
+ domainLookupFailed = true;
205
207
  }
206
208
  }
207
209
  }
@@ -226,12 +228,14 @@ function detectDarwinSupervisor(pid, execFile) {
226
228
  // nonexistent one, so a "print succeeded" check proves nothing.
227
229
  const ppid = readPpid(pid, execFile);
228
230
  if (ppid === 1) {
229
- // A launchd-owned process we could not label. We can stop it, but naming a
230
- // kickstart target would be a guess, so say so plainly.
231
+ // Detached hand-started processes (for example `nohup repoos serve`) are
232
+ // reparented to pid 1 too. If launchctl list and the accessible service
233
+ // domains had no row, pid 1 alone is not evidence of supervision.
234
+ if (!domainLookupFailed)
235
+ return { kind: "none" };
231
236
  return {
232
237
  kind: "uncertain",
233
- reason: `pid ${pid} has no row in \`launchctl list\` but is parented by pid 1 — ` +
234
- `it may be an externally supervised server, but its launchd label could not be determined`,
238
+ reason: `pid ${pid} has no row in \`launchctl list\`; launchd domain lookup was incomplete and its parent is pid 1 — ownership is unknown`,
235
239
  };
236
240
  }
237
241
  if (ppid !== null && ppid > 1) {