repo-harness 0.26.3 → 0.26.4

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 (163) hide show
  1. package/README.md +1 -1
  2. package/assets/reference-configs/herdr-notify.md +1 -1
  3. package/assets/skill-version.json +2 -2
  4. package/dist/hook-entry.js +10 -10
  5. package/dist/oar-review-host.js +6 -3
  6. package/dist/operator-ui/assets/{ArchitectureWorkspace-BJLMwwwu.js → ArchitectureWorkspace-BV2r2IDJ.js} +3 -3
  7. package/dist/operator-ui/assets/{DocsPage-BAem0F5h.js → DocsPage-ChBcA4ei.js} +4 -4
  8. package/dist/operator-ui/assets/{abnfDiagram-VCTEODGH-Dyr4sdlM.js → abnfDiagram-VCTEODGH-BjabAXLU.js} +1 -1
  9. package/dist/operator-ui/assets/architecture-7GRP2DOG-C3-dzieP.js +1 -0
  10. package/dist/operator-ui/assets/{architectureDiagram-5GKGNRK7-BVOn1xdC.js → architectureDiagram-5GKGNRK7-DXh5951E.js} +1 -1
  11. package/dist/operator-ui/assets/{blockDiagram-I7D4REHJ-CYCnQchz.js → blockDiagram-I7D4REHJ-CA9cDJV-.js} +1 -1
  12. package/dist/operator-ui/assets/{c4Diagram-7LVT6UL2-tBRTZ8bn.js → c4Diagram-7LVT6UL2-DOvRiXAl.js} +1 -1
  13. package/dist/operator-ui/assets/channel-VAagQT6R.js +1 -0
  14. package/dist/operator-ui/assets/{chunk-4HAMMTFA-U1sQ4fGk.js → chunk-4HAMMTFA-C_U2aLu7.js} +1 -1
  15. package/dist/operator-ui/assets/{chunk-75Z2AOVW-Cm6Cutfd.js → chunk-75Z2AOVW-BzYIkDpw.js} +1 -1
  16. package/dist/operator-ui/assets/{chunk-DU6HZSFF-BahExaI8.js → chunk-DU6HZSFF-CMRhpuf_.js} +1 -1
  17. package/dist/operator-ui/assets/{chunk-F27PBJKO-DOc-GQcR.js → chunk-F27PBJKO-CZqPEhT-.js} +1 -1
  18. package/dist/operator-ui/assets/{chunk-GMAD6QVW-DiYND0jw.js → chunk-GMAD6QVW-C29OKcg2.js} +1 -1
  19. package/dist/operator-ui/assets/{chunk-GVQU2GXP-EimH5iR6.js → chunk-GVQU2GXP-Y3VKl77B.js} +1 -1
  20. package/dist/operator-ui/assets/{chunk-IMKFNOWR-CrbtSxFs.js → chunk-IMKFNOWR-DUQELGHv.js} +1 -1
  21. package/dist/operator-ui/assets/{chunk-L3NEJ4N5-DL0X2Q7E.js → chunk-L3NEJ4N5-b7C5n4Ks.js} +1 -1
  22. package/dist/operator-ui/assets/{chunk-OSK3NFVY-Cn3DTwA1.js → chunk-OSK3NFVY-Dm69v7to.js} +1 -1
  23. package/dist/operator-ui/assets/{chunk-P2QGCYS3-Ct-oXacm.js → chunk-P2QGCYS3-DouiSrgQ.js} +1 -1
  24. package/dist/operator-ui/assets/{chunk-POPQ4Y6H-C2TlPhWK.js → chunk-POPQ4Y6H-BCR8dMgQ.js} +1 -1
  25. package/dist/operator-ui/assets/{chunk-PWAF6VOD-Bk6Mg3hv.js → chunk-PWAF6VOD-goaT9QIX.js} +1 -1
  26. package/dist/operator-ui/assets/{chunk-SHT3W25Y-x2CRBvcZ.js → chunk-SHT3W25Y-DCT-IXfR.js} +1 -1
  27. package/dist/operator-ui/assets/{chunk-SVP7TREG-BeuDgCWd.js → chunk-SVP7TREG-DT66T7wW.js} +1 -1
  28. package/dist/operator-ui/assets/{chunk-TICWLB2K-GQj9mahC.js → chunk-TICWLB2K-BlCzls02.js} +1 -1
  29. package/dist/operator-ui/assets/classDiagram-ZZMXUADV-BNHmUR-f.js +1 -0
  30. package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-BNHmUR-f.js +1 -0
  31. package/dist/operator-ui/assets/{cynefin-OW5HDTMX-D5N3kPuw.js → cynefin-OW5HDTMX-mEmbKYaq.js} +1 -1
  32. package/dist/operator-ui/assets/{cynefinDiagram-5FMLGOSQ-bNiz-YLr.js → cynefinDiagram-5FMLGOSQ-DnekAcNr.js} +1 -1
  33. package/dist/operator-ui/assets/{dagre-GXQ25YYZ-D9iISwZ6.js → dagre-GXQ25YYZ-BiFe5ZVH.js} +1 -1
  34. package/dist/operator-ui/assets/{diagram-S7CK7UJ4-Hl3jMGo0.js → diagram-S7CK7UJ4-CksHMlVm.js} +1 -1
  35. package/dist/operator-ui/assets/{diagram-UQ7AKVKN-Cj95OAs3.js → diagram-UQ7AKVKN-DmzatPqn.js} +1 -1
  36. package/dist/operator-ui/assets/{diagram-VSXAHHWV-DtbKpgFx.js → diagram-VSXAHHWV-Bgyat970.js} +1 -1
  37. package/dist/operator-ui/assets/{diagram-VX7I27RA-BalNfaGY.js → diagram-VX7I27RA-c3nuOFuP.js} +1 -1
  38. package/dist/operator-ui/assets/{diagram-Z3DM3KII-gP2oeGhN.js → diagram-Z3DM3KII-BaXhTqi9.js} +1 -1
  39. package/dist/operator-ui/assets/{ebnfDiagram-PWID7BFC-Bbq-Sfuc.js → ebnfDiagram-PWID7BFC-DkEYZuxL.js} +1 -1
  40. package/dist/operator-ui/assets/{erDiagram-RLTQ6QDP-6LoQ9TsT.js → erDiagram-RLTQ6QDP-k9CGc0Qd.js} +1 -1
  41. package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-DBJglxYN.js +1 -0
  42. package/dist/operator-ui/assets/flowDiagram-HODETNUW-mBiUg7be.js +1 -0
  43. package/dist/operator-ui/assets/{ganttDiagram-EL5Y4UJY-DThJVNgk.js → ganttDiagram-EL5Y4UJY-BoKfeyH_.js} +1 -1
  44. package/dist/operator-ui/assets/{gitGraph-4MIJSDKK-BEbdxsjA.js → gitGraph-4MIJSDKK-Dn1afQIS.js} +1 -1
  45. package/dist/operator-ui/assets/{gitGraphDiagram-WWUBYQGX-BlqYE0r2.js → gitGraphDiagram-WWUBYQGX-DHSXEA08.js} +1 -1
  46. package/dist/operator-ui/assets/index-BG15tO-2.js +32 -0
  47. package/dist/operator-ui/assets/index-DMe4MpLH.css +1 -0
  48. package/dist/operator-ui/assets/{info-A6RAGUB7-EXIL9gV2.js → info-A6RAGUB7-ClRo4-dN.js} +1 -1
  49. package/dist/operator-ui/assets/{infoDiagram-27XIBGKW-CBSeRBXK.js → infoDiagram-27XIBGKW-NhETHwUE.js} +1 -1
  50. package/dist/operator-ui/assets/{ishikawaDiagram-5VMMS53U-NvMRRfvW.js → ishikawaDiagram-5VMMS53U-DoRxcerW.js} +1 -1
  51. package/dist/operator-ui/assets/{journeyDiagram-3NMN7TZE-CBlqwiRk.js → journeyDiagram-3NMN7TZE-B6LHp-qn.js} +1 -1
  52. package/dist/operator-ui/assets/{kanban-definition-UXKFOSKX-uASyElU9.js → kanban-definition-UXKFOSKX-DPCJW6mB.js} +1 -1
  53. package/dist/operator-ui/assets/{line-BzivMInp.js → line-Bri_Dj_w.js} +1 -1
  54. package/dist/operator-ui/assets/{mermaid-parser.core-D9xnPdig.js → mermaid-parser.core-CKTxgV1R.js} +3 -3
  55. package/dist/operator-ui/assets/{mermaid.core-BsO0lPIB.js → mermaid.core-QwdG5zG8.js} +4 -4
  56. package/dist/operator-ui/assets/{mindmap-definition-YA3MSWOX-BAJsUq2_.js → mindmap-definition-YA3MSWOX-DpSLUQKY.js} +1 -1
  57. package/dist/operator-ui/assets/{packet-AYTQ26CC-DM5LhC2h.js → packet-AYTQ26CC-CysQQzht.js} +1 -1
  58. package/dist/operator-ui/assets/{pegDiagram-XKGWAZYB-BIt-LSWP.js → pegDiagram-XKGWAZYB-BbWTVFSr.js} +1 -1
  59. package/dist/operator-ui/assets/{pie-WAS4IAKB-DMS1qiHo.js → pie-WAS4IAKB-DxxG5c2X.js} +1 -1
  60. package/dist/operator-ui/assets/{pieDiagram-E7YTZNPT-CY2-9KYv.js → pieDiagram-E7YTZNPT-hrDDxEeN.js} +1 -1
  61. package/dist/operator-ui/assets/{quadrantDiagram-AXDQQJYC-D_DfRTil.js → quadrantDiagram-AXDQQJYC-B636Y4D8.js} +1 -1
  62. package/dist/operator-ui/assets/{radar-RG4KPBEZ-DRjm6dfI.js → radar-RG4KPBEZ-DlCqXl_Z.js} +1 -1
  63. package/dist/operator-ui/assets/{railroad-74A4TZTK-Bzvne_Z4.js → railroad-74A4TZTK-Cdcqdtfh.js} +1 -1
  64. package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-CVMqYuCA.js +1 -0
  65. package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-peNw10FQ.js +1 -0
  66. package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-BOPKzI_N.js +1 -0
  67. package/dist/operator-ui/assets/{railroadDiagram-O6MQD6OU-E77pJ_Ag.js → railroadDiagram-O6MQD6OU-o18tSv7S.js} +1 -1
  68. package/dist/operator-ui/assets/{requirementDiagram-BXWQKSXE-jfYrLp9W.js → requirementDiagram-BXWQKSXE-BCL-3yAf.js} +1 -1
  69. package/dist/operator-ui/assets/{sankeyDiagram-P5KCCOFB-B_ZeRdBX.js → sankeyDiagram-P5KCCOFB-DWvwNYCt.js} +1 -1
  70. package/dist/operator-ui/assets/{sequenceDiagram-WJ2MYXX4-B8DpvM6M.js → sequenceDiagram-WJ2MYXX4-Buu2v73Z.js} +1 -1
  71. package/dist/operator-ui/assets/{stateDiagram-D77RDMKH-DLkZWkGE.js → stateDiagram-D77RDMKH-LKVb36hR.js} +1 -1
  72. package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-Bg61-LYM.js +1 -0
  73. package/dist/operator-ui/assets/{swimlanes-42K2YHIH-D1Wes7OV.js → swimlanes-42K2YHIH-BYLgVzWT.js} +1 -1
  74. package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-B8JpT1nz.js +8 -0
  75. package/dist/operator-ui/assets/{timeline-definition-24CTP7MA-sdeEqDNL.js → timeline-definition-24CTP7MA-BrHpuHKd.js} +1 -1
  76. package/dist/operator-ui/assets/{treeView-Q6P3EWNA-DNSlVZaT.js → treeView-Q6P3EWNA-iA_cG2uM.js} +1 -1
  77. package/dist/operator-ui/assets/{treemap-WGGIJYW6-BJ4AVJL7.js → treemap-WGGIJYW6-DTyH2l-M.js} +1 -1
  78. package/dist/operator-ui/assets/{vennDiagram-4TSXK5OY-Hpteml99.js → vennDiagram-4TSXK5OY-CT7xCBgv.js} +1 -1
  79. package/dist/operator-ui/assets/{wardley-WFR3VGLG-oJTKutI_.js → wardley-WFR3VGLG-CtDBl8BG.js} +1 -1
  80. package/dist/operator-ui/assets/{wardleyDiagram-VM6X3IG4-BeUqBqFf.js → wardleyDiagram-VM6X3IG4-7cFf5iA8.js} +1 -1
  81. package/dist/operator-ui/assets/{xychartDiagram-S5SC5T6Z-DS2cbxqc.js → xychartDiagram-S5SC5T6Z-ViiHJcVg.js} +1 -1
  82. package/dist/operator-ui/index.html +2 -2
  83. package/package.json +1 -1
  84. package/scripts/merge-gate.ts +11 -4
  85. package/src/cli/commands/operator.ts +1 -1
  86. package/src/cli/commands/seats.ts +3 -2
  87. package/src/cli/commands/strategy-actions.ts +42 -0
  88. package/src/cli/commands/strategy.ts +9 -26
  89. package/src/cli/index.ts +14 -14
  90. package/src/cli/installer/architecture-selection.ts +14 -14
  91. package/src/cli/installer/install-profile.ts +2 -2
  92. package/src/cli/mcp/redaction.ts +1 -1
  93. package/src/core/board/advisor-seat.ts +85 -12
  94. package/src/core/board/board.ts +37 -5
  95. package/src/core/board/desk.ts +76 -0
  96. package/src/core/board/parents.ts +6 -5
  97. package/src/core/board/pull-requests.ts +12 -0
  98. package/src/core/board/summary.ts +157 -0
  99. package/src/core/operator/agent-config.ts +3 -1
  100. package/src/core/operator/seat-launch.ts +2 -1
  101. package/src/core/operator/seats-settings.ts +16 -1
  102. package/src/core/review/operator-console-port.ts +1 -0
  103. package/src/core/review/runner-port.ts +2 -0
  104. package/src/core/security/secret-patterns.ts +43 -7
  105. package/src/effects/board/collect.ts +45 -6
  106. package/src/effects/board/parents.ts +6 -4
  107. package/src/effects/operator/advisor-seat-route.ts +137 -18
  108. package/src/effects/operator/board-summary.ts +51 -0
  109. package/src/effects/operator/seats-configuration.ts +6 -2
  110. package/src/effects/operator/seats-settings-route.ts +1 -0
  111. package/src/effects/operator/server.ts +35 -7
  112. package/src/effects/operator/write-audit.ts +15 -7
  113. package/src/effects/operator/write-run.ts +3 -2
  114. package/src/effects/process-group-registry.ts +5 -1
  115. package/src/effects/review/generic-review.ts +4 -2
  116. package/src/effects/review/review-isolation.ts +47 -12
  117. package/src/effects/terminal/herdr-core.ts +5 -2
  118. package/src/operator-web/App.tsx +38 -14
  119. package/src/operator-web/BoardOffice.tsx +535 -190
  120. package/src/operator-web/BoardPage.tsx +146 -36
  121. package/src/operator-web/CleanupPlanReview.tsx +44 -16
  122. package/src/operator-web/NavRail.tsx +2 -3
  123. package/src/operator-web/OfficeAdvisorDialog.tsx +184 -0
  124. package/src/operator-web/OfficeSetupChecklist.tsx +248 -0
  125. package/src/operator-web/SeatsPage.tsx +1 -1
  126. package/src/operator-web/SettingsPage.tsx +2 -0
  127. package/src/operator-web/SetupPages.tsx +14 -9
  128. package/src/operator-web/TaskDrawer.tsx +2 -1
  129. package/src/operator-web/WorktreesPage.tsx +12 -9
  130. package/src/operator-web/board-office.css +162 -131
  131. package/src/operator-web/board-office.ts +289 -109
  132. package/src/operator-web/board-view.ts +1 -11
  133. package/src/operator-web/bots.ts +1 -1
  134. package/src/operator-web/fixtures/board-1474.json +6 -1
  135. package/src/operator-web/fixtures/board-parents.json +4 -1
  136. package/src/operator-web/fixtures/bots.ts +1 -1
  137. package/src/operator-web/fixtures/index.ts +16 -1
  138. package/src/operator-web/fixtures/office.ts +312 -0
  139. package/src/operator-web/i18n/board.ts +446 -38
  140. package/src/operator-web/i18n/settings.ts +0 -4
  141. package/src/operator-web/i18n/shell.ts +6 -0
  142. package/src/operator-web/i18n/worktrees.ts +6 -6
  143. package/src/operator-web/office-boss.ts +63 -0
  144. package/src/operator-web/office-scene.ts +929 -0
  145. package/src/operator-web/office-sprites.ts +300 -0
  146. package/src/operator-web/operator-write.tsx +47 -0
  147. package/src/operator-web/quota.ts +9 -8
  148. package/src/operator-web/settings.ts +8 -31
  149. package/src/operator-web/workspace-location.ts +28 -11
  150. package/src/operator-web/worktrees.ts +13 -54
  151. package/dist/operator-ui/assets/architecture-7GRP2DOG-D9mi27Da.js +0 -1
  152. package/dist/operator-ui/assets/channel-BIKj_Qhd.js +0 -1
  153. package/dist/operator-ui/assets/classDiagram-ZZMXUADV-CMkc6EQ8.js +0 -1
  154. package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-CMkc6EQ8.js +0 -1
  155. package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-CZxS8Q6_.js +0 -1
  156. package/dist/operator-ui/assets/flowDiagram-HODETNUW-BXvytZtg.js +0 -1
  157. package/dist/operator-ui/assets/index-BNoMxGvm.css +0 -1
  158. package/dist/operator-ui/assets/index-D7rPKSwt.js +0 -29
  159. package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-D8XAnjOv.js +0 -1
  160. package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-DGYF6xJT.js +0 -1
  161. package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-DMYKLION.js +0 -1
  162. package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-D2TtKXZ1.js +0 -1
  163. package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-CV2qJy7K.js +0 -8
package/README.md CHANGED
@@ -330,6 +330,6 @@ None of these are bundled dependencies; see
330
330
 
331
331
  ## Release & license
332
332
 
333
- - npm: `repo-harness@0.26.3` · workflow stamp `repo-harness@0.26.3+template@0.26.3`
333
+ - npm: `repo-harness@0.26.4` · workflow stamp `repo-harness@0.26.4+template@0.26.4`
334
334
  - History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
335
335
  - License: MIT — see [`LICENSE`](LICENSE)
@@ -37,7 +37,7 @@ Commands for the topology steps:
37
37
  | Wait for a worker | `hc wait <t>` |
38
38
  | Close a worker pane | `herdr-app do pane.close --pane <pane>` |
39
39
 
40
- A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator.
40
+ A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator. The seat runs with sandbox network off (#1770): it runs no `gh` or `hc`, and the orchestrator reads its last message.
41
41
 
42
42
  `repo-harness seats argv <seat>` prints the argv of the seat from the `seats` section of `~/.repo-harness/config.json`, or from the seat defaults when the section is absent. The argv holds the model, the effort, the tool limits and the seat brief. Its stderr names the source and each limit. A limit marked `instructions_only` is written into the launch instructions only; the host does not enforce it. Without `--argv`, the pane opens a shell.
43
43
 
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.26.3",
3
- "templateVersion": "0.26.3",
2
+ "version": "0.26.4",
3
+ "templateVersion": "0.26.4",
4
4
  "skillName": "repo-harness",
5
5
  "contractId": "tasks-first-harness-v1",
6
6
  "compatibility": {
@@ -2555,7 +2555,7 @@ function createFileExclusiveDurably(path, content, mode = 384) {
2555
2555
  var init_atomic_append = () => {};
2556
2556
 
2557
2557
  // package.json
2558
- var version = "0.26.3", dependencies;
2558
+ var version = "0.26.4", dependencies;
2559
2559
  var init_package = __esm(() => {
2560
2560
  dependencies = {
2561
2561
  "@botiverse/oar": "0.80.1",
@@ -10657,21 +10657,21 @@ function readRecordedSelection(env = process.env) {
10657
10657
  throw error;
10658
10658
  }
10659
10659
  }
10660
- function architectureSelected(selection) {
10661
- return selection.status === "recorded" && selection.plugins.includes("architecture");
10660
+ function pluginSelected(selection, id) {
10661
+ return selection.status === "recorded" && selection.plugins.includes(id);
10662
10662
  }
10663
- function architectureRepair(plugins) {
10664
- return plugins === null ? installSelectionCommand("all") : installSelectionCommand(PLUGIN_IDS.filter((id) => plugins.includes(id) || id === "architecture"));
10663
+ function pluginRepair(added, plugins) {
10664
+ return plugins === null ? installSelectionCommand("all") : installSelectionCommand(PLUGIN_IDS.filter((id) => plugins.includes(id) || id === added));
10665
10665
  }
10666
- function notSelectedMessage(selection) {
10667
- return `the architecture plugin is not selected; run: ${architectureRepair(selection.status === "recorded" ? selection.plugins : null)}`;
10666
+ function notSelectedMessage(selection, id) {
10667
+ return `the ${id} plugin is not selected; run: ${pluginRepair(id, selection.status === "recorded" ? selection.plugins : null)}`;
10668
10668
  }
10669
10669
  function architectureSelectionReport(selection) {
10670
- if (architectureSelected(selection))
10670
+ if (pluginSelected(selection, "architecture"))
10671
10671
  return { status: "selected", message: "" };
10672
10672
  if (selection.status === "unreadable")
10673
10673
  return { status: "unreadable", message: `the install selection cannot be read: ${selection.error.message}` };
10674
- return { status: "not-selected", message: notSelectedMessage(selection) };
10674
+ return { status: "not-selected", message: notSelectedMessage(selection, "architecture") };
10675
10675
  }
10676
10676
  function declareArchitectureSelection(selection) {
10677
10677
  const report = architectureSelectionReport(selection);
@@ -10680,7 +10680,7 @@ function declareArchitectureSelection(selection) {
10680
10680
  declareArchitectureAbsent(report.status === "unreadable" ? "ARCHITECTURE_PROVIDER_UNAVAILABLE" : "ARCHITECTURE_PLUGIN_NOT_SELECTED", report.message);
10681
10681
  }
10682
10682
  async function registerSelectedArchitecturePorts(selection, load) {
10683
- if (architectureSelected(selection))
10683
+ if (pluginSelected(selection, "architecture"))
10684
10684
  registerArchitecturePorts(await load());
10685
10685
  else
10686
10686
  declareArchitectureSelection(selection);
@@ -1161,10 +1161,13 @@ function reviewIsolationPolicy(paths, platform = process.platform) {
1161
1161
  }
1162
1162
  if (readDenied.some((path) => realpathSync5(path) !== path))
1163
1163
  throw new Error("OAR_REVIEW_PROTECTED_PATH_UNSAFE");
1164
- const cleanupPolicy = paths.cleanup === undefined ? "" : `${readDenied.map((path) => `(deny file-read* (subpath ${JSON.stringify(path)}))
1165
- `).join("")}(deny network-outbound (remote tcp4 "localhost:*"))
1164
+ const networkPolicy = `(deny network-outbound (remote tcp4 "localhost:*"))
1166
1165
  (deny network-outbound (remote tcp6 "*:*"))
1167
1166
  `;
1167
+ const modelPortPolicy = (paths.piLoopbackPorts ?? []).map((port) => `(allow network-outbound (remote tcp "localhost:${port}"))
1168
+ `).join("");
1169
+ const readPolicy = readDenied.map((path) => `(deny file-read* (subpath ${JSON.stringify(path)}))
1170
+ `).join("");
1168
1171
  if (platform !== "darwin")
1169
1172
  throw new Error("OAR_REVIEW_ISOLATION_UNSUPPORTED_PLATFORM");
1170
1173
  const forbiddenFiles = "/(CLAUDE\\.md|AGENTS\\.md|settings[^/]*\\.json|\\.claude\\.json|config\\.toml|auth\\.json|\\.?credentials\\.json|secrets\\.json|token\\.json)$";
@@ -1178,7 +1181,7 @@ function reviewIsolationPolicy(paths, platform = process.platform) {
1178
1181
  (deny file-write* (regex #"${forbiddenDirectories}"))
1179
1182
  (deny signal)
1180
1183
  (deny network-outbound ${unixSockets})
1181
- ${piPolicy}${cleanupPolicy}`;
1184
+ ${piPolicy}${networkPolicy}${modelPortPolicy}${readPolicy}`;
1182
1185
  }
1183
1186
  function reviewHostTemporaryDirectory(output) {
1184
1187
  if (!isAbsolute5(output) || lstatSync4(output).isSymbolicLink() || !lstatSync4(output).isDirectory())