oh-my-copilot 5.25.2 → 5.26.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 (257) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +1 -0
  4. package/bridge/claude-md-coordinator.cjs +2 -2
  5. package/bridge/cli.cjs +9249 -4138
  6. package/bridge/mcp-server.cjs +4894 -1400
  7. package/bridge/runtime-cli.cjs +14 -9
  8. package/bridge/team-mcp.cjs +3 -2
  9. package/bridge/team.js +14 -9
  10. package/dist/cli/commands/factory-bench.d.ts +10 -0
  11. package/dist/cli/commands/factory-bench.d.ts.map +1 -0
  12. package/dist/cli/commands/factory-bench.js +122 -0
  13. package/dist/cli/commands/factory-bench.js.map +1 -0
  14. package/dist/cli/commands/factory-dashboard.d.ts +14 -0
  15. package/dist/cli/commands/factory-dashboard.d.ts.map +1 -0
  16. package/dist/cli/commands/factory-dashboard.js +51 -0
  17. package/dist/cli/commands/factory-dashboard.js.map +1 -0
  18. package/dist/cli/commands/factory.d.ts.map +1 -1
  19. package/dist/cli/commands/factory.js +10 -2
  20. package/dist/cli/commands/factory.js.map +1 -1
  21. package/dist/copilot-run/__tests__/job.fail-closed.test.d.ts +2 -0
  22. package/dist/copilot-run/__tests__/job.fail-closed.test.d.ts.map +1 -0
  23. package/dist/copilot-run/__tests__/job.fail-closed.test.js +64 -0
  24. package/dist/copilot-run/__tests__/job.fail-closed.test.js.map +1 -0
  25. package/dist/copilot-run/__tests__/job.large-tree.test.d.ts +2 -0
  26. package/dist/copilot-run/__tests__/job.large-tree.test.d.ts.map +1 -0
  27. package/dist/copilot-run/__tests__/job.large-tree.test.js +47 -0
  28. package/dist/copilot-run/__tests__/job.large-tree.test.js.map +1 -0
  29. package/dist/copilot-run/__tests__/sandbox.test.js +125 -1
  30. package/dist/copilot-run/__tests__/sandbox.test.js.map +1 -1
  31. package/dist/copilot-run/job.d.ts.map +1 -1
  32. package/dist/copilot-run/job.js +14 -3
  33. package/dist/copilot-run/job.js.map +1 -1
  34. package/dist/copilot-run/sandbox.d.ts +53 -0
  35. package/dist/copilot-run/sandbox.d.ts.map +1 -1
  36. package/dist/copilot-run/sandbox.js +176 -14
  37. package/dist/copilot-run/sandbox.js.map +1 -1
  38. package/dist/factory/bench/__tests__/bench.fake.test.d.ts +2 -0
  39. package/dist/factory/bench/__tests__/bench.fake.test.d.ts.map +1 -0
  40. package/dist/factory/bench/__tests__/bench.fake.test.js +87 -0
  41. package/dist/factory/bench/__tests__/bench.fake.test.js.map +1 -0
  42. package/dist/factory/bench/__tests__/bench.smoke.test.d.ts +2 -0
  43. package/dist/factory/bench/__tests__/bench.smoke.test.d.ts.map +1 -0
  44. package/dist/factory/bench/__tests__/bench.smoke.test.js +54 -0
  45. package/dist/factory/bench/__tests__/bench.smoke.test.js.map +1 -0
  46. package/dist/factory/bench/__tests__/bench.units.test.d.ts +2 -0
  47. package/dist/factory/bench/__tests__/bench.units.test.d.ts.map +1 -0
  48. package/dist/factory/bench/__tests__/bench.units.test.js +842 -0
  49. package/dist/factory/bench/__tests__/bench.units.test.js.map +1 -0
  50. package/dist/factory/bench/fake-lanes.d.ts +39 -0
  51. package/dist/factory/bench/fake-lanes.d.ts.map +1 -0
  52. package/dist/factory/bench/fake-lanes.js +127 -0
  53. package/dist/factory/bench/fake-lanes.js.map +1 -0
  54. package/dist/factory/bench/fixture.d.ts +55 -0
  55. package/dist/factory/bench/fixture.d.ts.map +1 -0
  56. package/dist/factory/bench/fixture.js +128 -0
  57. package/dist/factory/bench/fixture.js.map +1 -0
  58. package/dist/factory/bench/model-probe.d.ts +37 -0
  59. package/dist/factory/bench/model-probe.d.ts.map +1 -0
  60. package/dist/factory/bench/model-probe.js +148 -0
  61. package/dist/factory/bench/model-probe.js.map +1 -0
  62. package/dist/factory/bench/runner.d.ts +163 -0
  63. package/dist/factory/bench/runner.d.ts.map +1 -0
  64. package/dist/factory/bench/runner.js +687 -0
  65. package/dist/factory/bench/runner.js.map +1 -0
  66. package/dist/factory/bench/score.d.ts +211 -0
  67. package/dist/factory/bench/score.d.ts.map +1 -0
  68. package/dist/factory/bench/score.js +386 -0
  69. package/dist/factory/bench/score.js.map +1 -0
  70. package/dist/factory/bench/seed/issues.d.ts +51 -0
  71. package/dist/factory/bench/seed/issues.d.ts.map +1 -0
  72. package/dist/factory/bench/seed/issues.js +536 -0
  73. package/dist/factory/bench/seed/issues.js.map +1 -0
  74. package/dist/factory/bench/seed/project.d.ts +24 -0
  75. package/dist/factory/bench/seed/project.d.ts.map +1 -0
  76. package/dist/factory/bench/seed/project.js +216 -0
  77. package/dist/factory/bench/seed/project.js.map +1 -0
  78. package/dist/factory/check/__tests__/cli-local.test.js +17 -0
  79. package/dist/factory/check/__tests__/cli-local.test.js.map +1 -1
  80. package/dist/factory/check/cli.d.ts +14 -0
  81. package/dist/factory/check/cli.d.ts.map +1 -1
  82. package/dist/factory/check/cli.js +21 -0
  83. package/dist/factory/check/cli.js.map +1 -1
  84. package/dist/factory/dashboard/__tests__/dashboard.test.d.ts +2 -0
  85. package/dist/factory/dashboard/__tests__/dashboard.test.d.ts.map +1 -0
  86. package/dist/factory/dashboard/__tests__/dashboard.test.js +148 -0
  87. package/dist/factory/dashboard/__tests__/dashboard.test.js.map +1 -0
  88. package/dist/factory/dashboard/collect.d.ts +96 -0
  89. package/dist/factory/dashboard/collect.d.ts.map +1 -0
  90. package/dist/factory/dashboard/collect.js +234 -0
  91. package/dist/factory/dashboard/collect.js.map +1 -0
  92. package/dist/factory/dashboard/render.d.ts +11 -0
  93. package/dist/factory/dashboard/render.d.ts.map +1 -0
  94. package/dist/factory/dashboard/render.js +77 -0
  95. package/dist/factory/dashboard/render.js.map +1 -0
  96. package/dist/factory/poll.d.ts +2 -0
  97. package/dist/factory/poll.d.ts.map +1 -1
  98. package/dist/factory/poll.js +2 -2
  99. package/dist/factory/poll.js.map +1 -1
  100. package/dist/factory/run/__tests__/auto-merge-flaky.test.d.ts +2 -0
  101. package/dist/factory/run/__tests__/auto-merge-flaky.test.d.ts.map +1 -0
  102. package/dist/factory/run/__tests__/auto-merge-flaky.test.js +131 -0
  103. package/dist/factory/run/__tests__/auto-merge-flaky.test.js.map +1 -0
  104. package/dist/factory/run/__tests__/auto-merge.test.d.ts +2 -0
  105. package/dist/factory/run/__tests__/auto-merge.test.d.ts.map +1 -0
  106. package/dist/factory/run/__tests__/auto-merge.test.js +541 -0
  107. package/dist/factory/run/__tests__/auto-merge.test.js.map +1 -0
  108. package/dist/factory/run/__tests__/container-gate.test.d.ts +2 -0
  109. package/dist/factory/run/__tests__/container-gate.test.d.ts.map +1 -0
  110. package/dist/factory/run/__tests__/container-gate.test.js +733 -0
  111. package/dist/factory/run/__tests__/container-gate.test.js.map +1 -0
  112. package/dist/factory/run/__tests__/engine.auto-merge.github.test.d.ts +2 -0
  113. package/dist/factory/run/__tests__/engine.auto-merge.github.test.d.ts.map +1 -0
  114. package/dist/factory/run/__tests__/engine.auto-merge.github.test.js +142 -0
  115. package/dist/factory/run/__tests__/engine.auto-merge.github.test.js.map +1 -0
  116. package/dist/factory/run/__tests__/engine.gates-container.test.d.ts +2 -0
  117. package/dist/factory/run/__tests__/engine.gates-container.test.d.ts.map +1 -0
  118. package/dist/factory/run/__tests__/engine.gates-container.test.js +245 -0
  119. package/dist/factory/run/__tests__/engine.gates-container.test.js.map +1 -0
  120. package/dist/factory/run/__tests__/engine.gates-git-view-fail.test.d.ts +2 -0
  121. package/dist/factory/run/__tests__/engine.gates-git-view-fail.test.d.ts.map +1 -0
  122. package/dist/factory/run/__tests__/engine.gates-git-view-fail.test.js +71 -0
  123. package/dist/factory/run/__tests__/engine.gates-git-view-fail.test.js.map +1 -0
  124. package/dist/factory/run/__tests__/engine.gates-git-view.test.d.ts +2 -0
  125. package/dist/factory/run/__tests__/engine.gates-git-view.test.d.ts.map +1 -0
  126. package/dist/factory/run/__tests__/engine.gates-git-view.test.js +141 -0
  127. package/dist/factory/run/__tests__/engine.gates-git-view.test.js.map +1 -0
  128. package/dist/factory/run/__tests__/engine.gates-workspace.test.d.ts +2 -0
  129. package/dist/factory/run/__tests__/engine.gates-workspace.test.d.ts.map +1 -0
  130. package/dist/factory/run/__tests__/engine.gates-workspace.test.js +130 -0
  131. package/dist/factory/run/__tests__/engine.gates-workspace.test.js.map +1 -0
  132. package/dist/factory/run/__tests__/engine.human-review.test.js +4 -4
  133. package/dist/factory/run/__tests__/engine.human-review.test.js.map +1 -1
  134. package/dist/factory/run/__tests__/engine.local.auto-merge.test.d.ts +2 -0
  135. package/dist/factory/run/__tests__/engine.local.auto-merge.test.d.ts.map +1 -0
  136. package/dist/factory/run/__tests__/engine.local.auto-merge.test.js +196 -0
  137. package/dist/factory/run/__tests__/engine.local.auto-merge.test.js.map +1 -0
  138. package/dist/factory/run/__tests__/engine.private.test.js +17 -0
  139. package/dist/factory/run/__tests__/engine.private.test.js.map +1 -1
  140. package/dist/factory/run/__tests__/fake-lanes.d.ts +2 -0
  141. package/dist/factory/run/__tests__/fake-lanes.d.ts.map +1 -1
  142. package/dist/factory/run/__tests__/fake-lanes.js +6 -1
  143. package/dist/factory/run/__tests__/fake-lanes.js.map +1 -1
  144. package/dist/factory/run/__tests__/git-view.test.d.ts +2 -0
  145. package/dist/factory/run/__tests__/git-view.test.d.ts.map +1 -0
  146. package/dist/factory/run/__tests__/git-view.test.js +120 -0
  147. package/dist/factory/run/__tests__/git-view.test.js.map +1 -0
  148. package/dist/factory/run/__tests__/merge-policy.test.js +10 -0
  149. package/dist/factory/run/__tests__/merge-policy.test.js.map +1 -1
  150. package/dist/factory/run/__tests__/prepare-gates.gates-resume.test.js +2 -0
  151. package/dist/factory/run/__tests__/prepare-gates.gates-resume.test.js.map +1 -1
  152. package/dist/factory/run/__tests__/prepare-gates.moving-base.test.d.ts +2 -0
  153. package/dist/factory/run/__tests__/prepare-gates.moving-base.test.d.ts.map +1 -0
  154. package/dist/factory/run/__tests__/prepare-gates.moving-base.test.js +103 -0
  155. package/dist/factory/run/__tests__/prepare-gates.moving-base.test.js.map +1 -0
  156. package/dist/factory/run/__tests__/private-run.test.js +37 -1
  157. package/dist/factory/run/__tests__/private-run.test.js.map +1 -1
  158. package/dist/factory/run/__tests__/units.test.js +8 -1
  159. package/dist/factory/run/__tests__/units.test.js.map +1 -1
  160. package/dist/factory/run/__tests__/workspace-tree.test.d.ts +2 -0
  161. package/dist/factory/run/__tests__/workspace-tree.test.d.ts.map +1 -0
  162. package/dist/factory/run/__tests__/workspace-tree.test.js +325 -0
  163. package/dist/factory/run/__tests__/workspace-tree.test.js.map +1 -0
  164. package/dist/factory/run/auto-merge.d.ts +254 -0
  165. package/dist/factory/run/auto-merge.d.ts.map +1 -0
  166. package/dist/factory/run/auto-merge.js +785 -0
  167. package/dist/factory/run/auto-merge.js.map +1 -0
  168. package/dist/factory/run/budget.d.ts +14 -0
  169. package/dist/factory/run/budget.d.ts.map +1 -1
  170. package/dist/factory/run/budget.js +24 -0
  171. package/dist/factory/run/budget.js.map +1 -1
  172. package/dist/factory/run/clean.d.ts +3 -0
  173. package/dist/factory/run/clean.d.ts.map +1 -1
  174. package/dist/factory/run/clean.js +34 -0
  175. package/dist/factory/run/clean.js.map +1 -1
  176. package/dist/factory/run/container-gate.d.ts +230 -0
  177. package/dist/factory/run/container-gate.d.ts.map +1 -0
  178. package/dist/factory/run/container-gate.js +1076 -0
  179. package/dist/factory/run/container-gate.js.map +1 -0
  180. package/dist/factory/run/engine.d.ts +5 -1
  181. package/dist/factory/run/engine.d.ts.map +1 -1
  182. package/dist/factory/run/engine.js +582 -40
  183. package/dist/factory/run/engine.js.map +1 -1
  184. package/dist/factory/run/exec.d.ts +5 -0
  185. package/dist/factory/run/exec.d.ts.map +1 -1
  186. package/dist/factory/run/exec.js +17 -3
  187. package/dist/factory/run/exec.js.map +1 -1
  188. package/dist/factory/run/git-view.d.ts +39 -0
  189. package/dist/factory/run/git-view.d.ts.map +1 -0
  190. package/dist/factory/run/git-view.js +77 -0
  191. package/dist/factory/run/git-view.js.map +1 -0
  192. package/dist/factory/run/lane-commit.d.ts +2 -0
  193. package/dist/factory/run/lane-commit.d.ts.map +1 -1
  194. package/dist/factory/run/lane-commit.js +3 -1
  195. package/dist/factory/run/lane-commit.js.map +1 -1
  196. package/dist/factory/run/local-gate.d.ts +1 -0
  197. package/dist/factory/run/local-gate.d.ts.map +1 -1
  198. package/dist/factory/run/local-gate.js +2 -1
  199. package/dist/factory/run/local-gate.js.map +1 -1
  200. package/dist/factory/run/merge-policy.d.ts +24 -6
  201. package/dist/factory/run/merge-policy.d.ts.map +1 -1
  202. package/dist/factory/run/merge-policy.js +29 -7
  203. package/dist/factory/run/merge-policy.js.map +1 -1
  204. package/dist/factory/run/prepare.d.ts +27 -1
  205. package/dist/factory/run/prepare.d.ts.map +1 -1
  206. package/dist/factory/run/prepare.js +241 -28
  207. package/dist/factory/run/prepare.js.map +1 -1
  208. package/dist/factory/run/private-run.d.ts +7 -0
  209. package/dist/factory/run/private-run.d.ts.map +1 -1
  210. package/dist/factory/run/private-run.js +34 -3
  211. package/dist/factory/run/private-run.js.map +1 -1
  212. package/dist/factory/run/private-store.d.ts +2 -0
  213. package/dist/factory/run/private-store.d.ts.map +1 -1
  214. package/dist/factory/run/private-store.js +2 -1
  215. package/dist/factory/run/private-store.js.map +1 -1
  216. package/dist/factory/run/sandbox-exec.d.ts +22 -1
  217. package/dist/factory/run/sandbox-exec.d.ts.map +1 -1
  218. package/dist/factory/run/sandbox-exec.js +9 -0
  219. package/dist/factory/run/sandbox-exec.js.map +1 -1
  220. package/dist/factory/run/workspace-tree.d.ts +75 -0
  221. package/dist/factory/run/workspace-tree.d.ts.map +1 -0
  222. package/dist/factory/run/workspace-tree.js +299 -0
  223. package/dist/factory/run/workspace-tree.js.map +1 -0
  224. package/dist/forge/__tests__/gh-argv-baseline.factory.test.js +7 -5
  225. package/dist/forge/__tests__/gh-argv-baseline.factory.test.js.map +1 -1
  226. package/dist/forge/github/__tests__/required-checks.test.js +22 -1
  227. package/dist/forge/github/__tests__/required-checks.test.js.map +1 -1
  228. package/dist/forge/github/checks.d.ts +9 -0
  229. package/dist/forge/github/checks.d.ts.map +1 -1
  230. package/dist/forge/github/checks.js +26 -0
  231. package/dist/forge/github/checks.js.map +1 -1
  232. package/dist/forge/github/merge.d.ts +27 -0
  233. package/dist/forge/github/merge.d.ts.map +1 -1
  234. package/dist/forge/github/merge.js +44 -0
  235. package/dist/forge/github/merge.js.map +1 -1
  236. package/dist/forge/github/reviews.d.ts +2 -0
  237. package/dist/forge/github/reviews.d.ts.map +1 -1
  238. package/dist/forge/github/reviews.js.map +1 -1
  239. package/dist/smoke/copilot-factory-run-scenario.d.ts.map +1 -1
  240. package/dist/smoke/copilot-factory-run-scenario.js +4 -0
  241. package/dist/smoke/copilot-factory-run-scenario.js.map +1 -1
  242. package/dist/team/git-worktree.d.ts +8 -1
  243. package/dist/team/git-worktree.d.ts.map +1 -1
  244. package/dist/team/git-worktree.js +9 -2
  245. package/dist/team/git-worktree.js.map +1 -1
  246. package/dist/team/merge-coordinator.js +5 -5
  247. package/dist/team/merge-coordinator.js.map +1 -1
  248. package/dist/team/merge-orchestrator.d.ts.map +1 -1
  249. package/dist/team/merge-orchestrator.js +3 -1
  250. package/dist/team/merge-orchestrator.js.map +1 -1
  251. package/dist/team/runtime-v2.d.ts.map +1 -1
  252. package/dist/team/runtime-v2.js +2 -2
  253. package/dist/team/runtime-v2.js.map +1 -1
  254. package/docs/CLAUDE.md +1 -1
  255. package/docs/REFERENCE.md +133 -1
  256. package/package.json +2 -2
  257. package/plugin.json +1 -1
package/docs/CLAUDE.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <!-- OMC:START -->
2
- <!-- OMC:VERSION:5.25.2 -->
2
+ <!-- OMC:VERSION:5.26.0 -->
3
3
 
4
4
  # oh-my-copilot - Intelligent Multi-Agent Orchestration
5
5
 
package/docs/REFERENCE.md CHANGED
@@ -1017,6 +1017,7 @@ omg factory run cancel <issue> [--json] # ask the running engine to cancel its
1017
1017
  omg factory run clean <issue> [--discard] [--json] # remove the worktrees and local branches of a merged or cancelled run
1018
1018
  omg factory run reset <issue> [--json] # local forge: start a cancelled run over (removes its worktrees)
1019
1019
  omg factory run <issue> --allow-gate-change # local forge: accept the gate-definition change the run parked on
1020
+ omg factory run <issue> --max-requests <n> # stop starting lanes once this run's lanes used n premium requests (not with --parallel)
1020
1021
  ```
1021
1022
 
1022
1023
  | Exit code | Meaning |
@@ -1079,6 +1080,8 @@ any phase ─cancel─→ cancelled any phase ─gate─→ awaiting-hu
1079
1080
 
1080
1081
  One factory engine runs per checkout. The tamper check covers the checkout's whole git directory for the length of a run, so two engines in one checkout would flag each other. To run items in parallel, use separate clones of the repository, each with its own `omg factory poll`, on one host and with one `OMC_STATE_DIR` (or none in all of them). The clones coordinate through claim files in `<state dir>/factory-ledger/claims/` (`~/.omg/factory-ledger` without `OMC_STATE_DIR`). Claims are keyed on the clone's `origin` remote, so a clone without one claims nothing. On the local forge, whose mirror and PR store belong to one checkout and which reads no `origin`, claims are keyed on the repository's root commit, so clones of one history share them. The key is the first root commit of HEAD: clones whose branches have different root sets (one merged an unrelated history) do not share claims, and a fork or template clone that shares the root commit shares them (a false busy, which `run release` clears). A shallow clone's boundary commits count as roots, so it gets a key of its own (`local-shallow:<commit>`) and shares no claims with full clones (two shallow clones at the same boundary do share them); each command that reads the key prints one warning line saying so (`git fetch --unshallow` gives it the full clones' key, and the claim made under the old key goes with the run). The local forge mirror takes no shallow history, so a new run in a shallow clone stops at the base sync with that advice; cleanup commands (`clean`, `reset`, `release`, `run status`) keep working. Clones with different `OMC_STATE_DIR` values, or on different hosts, do not see each other's claims and can start the same item; give each such clone its own intake source. With `OMC_STATE_DIR` set, clones also need different folder names, because the project id is the folder name plus a hash of `origin`.
1081
1082
 
1083
+ Do not work in a checkout while the factory runs in it. A tool that writes into the checkout's git directory or working tree during a run, such as Claude Code, Copilot CLI or another agent that keeps state in the cwd (for example `.omc/`), trips `lane-tampered`. Run the factory in a separate clone and do your own work in another one.
1084
+
1082
1085
  ```bash
1083
1086
  omg factory run status [--json] # no issue: the engines running in this checkout, unreadable owner files and the claims on this repository
1084
1087
  omg factory run release [<issue>] [--json] # with an issue: remove its claim, owner file and a dead or unreadable private run.lock; without: remove this checkout's engine lock
@@ -1133,6 +1136,7 @@ Every gate posts one issue comment that names the gate, the reason and the comma
1133
1136
  | `gates-unsandboxed` | A prepare check or the local gate would run the PR's own code without the OS sandbox: `factory.run.sandbox.gates` is `"ack"` (or `OMG_SANDBOX=off`), or it is `"enforced"` and the sandbox could not start the command under a confirmed policy (host unsupported, policy not applied, no SDK or CLI, or the host reports no `denied_paths` while `factory.run.sandbox.requireDeniedPaths` is `true`; see "Sandboxed gates" under [Sandboxed lanes](#sandboxed-lanes)). The message names the head. Nothing ran unsandboxed | Review the PR's whole diff, then `omg factory run <issue> --allow-unsandboxed-gates` to run that head unsandboxed. The ack trusts ALL of that head's code (every prepare check, the inventory generator, the local gate, and the head prepare makes from it) with your user account, and a process it leaves behind is not contained. A new head parks again |
1134
1137
  | `gate-no-verdict` | A prepare check or the local gate ran in the sandbox under the confirmed policy but gave no verdict: no single exit-code marker as the last line, a result that contradicts it, no `sandboxed: true` attestation, or a timeout with no answer. Nothing counts as a pass or a `FAILURE`, no ci-fix lane starts, and `--allow-unsandboxed-gates` does not apply | Rerun. If it parks here again, review the PR's diff: its code can hide its own exit code |
1135
1138
  | `gate-sandbox-incompatible` | A prepare check or the local gate failed in the sandbox, and fails in the sandbox on the trusted base too (or its base calibration could not run). No `FAILURE` is recorded and no ci-fix lane starts | Set `factory.run.sandbox.writeNetwork: "registry"` if it needs the npm registry, then rerun. Do not switch `factory.run.sandbox.gates` to `"ack"` for a PR whose whole diff you have not reviewed: `"ack"` runs its code as you |
1139
+ | `gate-container-unavailable` | `factory.run.sandbox.isolation` is `"container"` and the gate could not run in a container: the runtime is missing or stopped, the image could not be pulled, the project is not an npm project with a `package-lock.json`, or the lockfile has a package from git, a tarball URL or a file. The run never falls back to the Copilot sandbox | Start Docker (or Podman), or set `isolation` back to `"copilot"` in the user config. See [Container isolation](#container-isolation-for-gates) |
1136
1140
  | `lane-unconfirmed` | The engine cannot confirm that a lane's Copilot process stopped, or a process of a finished write lane's tree is still alive after the engine killed it (the pids are named) | Stop the process yourself; your rerun counts as your word that it stopped. For named pids, the rerun checks again and then commits the same worktree; `omg factory run cancel <issue>` gives the lane's work up |
1137
1141
  | `secret-shaped-content` | A write lane's change holds a key or token shape (see Host git hardening); the paths and kinds are named, the values never | Remove the secret from the lane worktree and rerun, or rerun with `--allow-secret-shapes` when they are test fixtures; set `factory.run.secretScan.allowPaths` for fixture folders. The rerun commits the same worktree, no new lane |
1138
1142
  | `lane-lost` | Two lanes of the same kind in a row were lost | Find out why the engine died |
@@ -1226,11 +1230,74 @@ Keys live under `factory.run`. The engine reads them from the user config at its
1226
1230
  | `layout` | `"shared"` | `"private"` gives each run its own git repository outside your checkout; see [Private layout](#private-layout). Read from the user config, then `.copilot/omg.jsonc` as committed at the run's base when that base is in `ship.trustedBases` (a base file that cannot be read or parsed, or an invalid value in it, counts as unset), never the working tree or the PR head. Decided before the run's first lane and kept for the run's whole life |
1227
1231
  | `workDir` | `%LOCALAPPDATA%\omg\fw` (Windows), `$XDG_CACHE_HOME/omg/fw` (else `~/.cache/omg/fw`) | Private layout: where the private repositories live. User config only. Must be absolute, and must not contain or lie inside the repository or the OMC state root |
1228
1232
  | `gateInstall` | `"park"` | Private layout: what prepare does when the PR changes a lockfile (so your `node_modules` does not match): `"park"` stops at `gate-install-needed`; `"sandboxed"` runs `npm ci --ignore-scripts` in the OS sandbox, with the npm registry reachable, in the prepare checkout. Same two layers as `layout` |
1229
- | `maxConcurrent` | `1` | How many private-layout runs may work in this checkout at once (1 to 16); see [Parallel runs](#parallel-runs). Above 1 needs `layout: "private"`. Same two layers as `layout`. The CLI reads the base layer only when your user config sets `maxConcurrent`, `maxInFlightCredits` or `layout: "private"`, and only at a sha it read itself (the remote's, by `git ls-remote` and a fetch under the checkout's scan lock; the local forge's base branch), never at a tracking ref; before that read it checks that `origin` is the repository your forge config names (else the base keys count as unset, with a warning), and a tamper hold refuses the run before it. Otherwise it reads nothing and runs one engine, as before; the poller's auto-start follows the same rule (keys committed only on the base start one run at a time). An invalid value in your user config fails such a run, except a dry run and the resume of a run sealed in the shared layout, which never read it |
1233
+ | `maxConcurrent` | `1` | How many private-layout runs may work in this checkout at once (1 to 16); see [Parallel runs](#parallel-runs). Above 1 needs `layout: "private"`. Same two layers as `layout`. The CLI reads the base layer only when your user config sets `maxConcurrent`, `maxInFlightCredits` or `layout: "private"`, and only at a sha it read itself (the remote's, by `git ls-remote` and a fetch under the checkout's scan lock; the local forge's base branch), never at a tracking ref; before that read it checks that `origin` is the repository your forge config names (else the base keys count as unset, with a warning: without a forge config naming the repository, as on plain GitHub before `omg factory setup`, the CLI cannot confirm `origin`, so committed base keys are ignored and the run uses one engine; run `omg factory setup` or set the keys in your user config), and a tamper hold refuses the run before it. Otherwise it reads nothing and runs one engine, as before; the poller's auto-start follows the same rule (keys committed only on the base start one run at a time). An invalid value in your user config fails such a run, except a dry run and the resume of a run sealed in the shared layout, which never read it |
1230
1234
  | `maxInFlightCredits` | `laneMaxCredits` x `maxConcurrent` | The AI credits the lanes in flight on this repository may reserve together (each lane reserves its cap before it starts); see [Parallel runs](#parallel-runs). Same two layers |
1231
1235
 
1232
1236
  The base branch comes from `ship.base`. The gates and the merge rule use ship's config. `requiredChecks`, `advisoryChecks` and the known-flaky list load in strict mode: from the user config, or from `.copilot/omg.jsonc` as committed at GitHub's base sha, never from the working tree or the PR head. A base the engine cannot verify stops the step. See [`omg ship`](#omg-ship) for the ship keys.
1233
1237
 
1238
+ ##### Auto-merge (opt-in)
1239
+
1240
+ By default a human merges every factory PR. `factory.merge.auto` lets the engine merge low-risk PRs itself. It is off unless you turn it on, and it is read from the user config only. A `factory.merge` value committed in `.copilot/omg.jsonc` is ignored with a warning, because a PR can change committed files.
1241
+
1242
+ Key each entry by the repository URL, or by the repository's root path on the local forge. A local forge key must be an absolute path:
1243
+
1244
+ ```jsonc
1245
+ "factory": { "merge": { "auto": {
1246
+ "https://github.com/o/r": {
1247
+ "enabled": true,
1248
+ "tiers": ["docs", "tests"],
1249
+ "maxChangedLines": 80,
1250
+ "maxFiles": 10,
1251
+ "docsDenied": ["docs/shared/", "docs/partials/", "docs/agent-templates/"],
1252
+ "securityCritical": ["src/auth/**"]
1253
+ }
1254
+ } } }
1255
+ ```
1256
+
1257
+ | Key | Default | Meaning |
1258
+ |---|---|---|
1259
+ | `enabled` | required | `true` turns auto-merge on for this repository; `false` keeps the entry but off. A missing or non-boolean value is a config error |
1260
+ | `tiers` | required | A non-empty list. Which kinds of PR may merge by themselves: `docs`, `tests`, `small`. A PR must fit one enabled tier, checked in that order |
1261
+ | `maxChangedLines`, `maxFiles` | `80`, `10` for `small` | Size caps. When you set them, they apply to every tier |
1262
+ | `docsDenied` | `[]` | Path globs that the docs tier never takes. Use it for docs that agents are told to read |
1263
+ | `securityCritical` | `[]` | Path globs that no tier takes. Put your guards, sandboxes and auth code here |
1264
+
1265
+ Tiers:
1266
+
1267
+ - `docs`: `README`, `CHANGELOG` and `CONTRIBUTING` files at the repository root, and files under the root `docs/` folder. Only `.md`, `.rst` and `.txt` files. A file that starts with frontmatter (`---` or `+++`) is never docs, because tools read frontmatter as config. The docs tier takes only plain spellings: a name with a trailing dot or space, fullwidth letters or invisible characters needs a human.
1268
+ - `tests`: test files by name, and files under a root `test/`, `tests/` or `spec/` folder or under any `__tests__` folder. Never setup, teardown, environment, reporter or benchmark files. Never a deleted test, a test that loses more assertions than it gains, or a change that adds `.skip`, `.only`, `.todo` or an empty assertion.
1269
+ - `small`: any file that is not denied, up to the size caps. The test rules above apply. It never touches `src/factory/`, `src/ship/`, `src/copilot-run/` or `src/forge/`.
1270
+
1271
+ Glob rules for `docsDenied` and `securityCritical`: `**` matches any number of folders. `*` and `?` match within one folder name. A trailing `/` means the whole folder. A glob without `/` matches that file name in any folder. Braces (`{a,b}`) and brackets (`[ab]`) are not supported; write one glob per choice.
1272
+
1273
+ The engine merges a PR itself only when all of these hold on the exact head:
1274
+
1275
+ - Ship's merge rule allows the head, and the factory review approved this head.
1276
+ - At least one CI check ran and succeeded on the head. Skipped and neutral checks do not count. When the repository has required checks, one of them must have succeeded. When it has none, every check on the head must succeed. A repository with no CI never auto-merges. A workflow that never ran on the PR (for example one with a path filter) is invisible to the engine: set `ship.requiredChecks` to name the checks that must pass.
1277
+ - No human review thread, change request or comment-only review is open, and neither the issue nor the PR has the `factory:manual-merge` label.
1278
+ - The run had only ordinary parks: merge, merge-conflicts, human-review, budget, wall-time, needs-plan, blocked-by, ci-failed, ci-flaky, gates, gates-timeout, fix-rounds-spent, base-changed or prepare-checks. Any other park (protected paths, secrets, tamper, sandbox, or a park added later) keeps the merge human. No `--allow-*` flag.
1279
+ - `factory.review.human` is not `"off"`. The engine has to read the human reviews.
1280
+ - Every file fits an enabled tier, and none is any of these: a CI or config file, a package manifest or lockfile, a git hook, an agent instruction or prompt file (files in `skills/`, `agents/`, `commands/`, `templates/`, `prompts/` or `.cursor/`, `*.prompt.md`, `*.mdc`), a test mock (any file in a `__mocks__` folder), a setup file that your base test config runs, a file under `.github/`, `.copilot/` or `.omg/`, a file under another tool folder (`.claude/`, `.vscode/`, `.husky/` and the like), a file named by the root `package.json` install, prepare or publish scripts (or its `bin`), or a file under `bridge/` or `dist/`.
1281
+ - No symlink, executable bit or binary file changed.
1282
+
1283
+ The engine reads the PR again right before it merges. On GitHub it merges through the REST API, pinned to the head commit, and branch protection still applies. On the local forge it runs `git merge --no-ff --no-edit --no-verify <head>` in your repository, with no git hook. It does that only when your base branch is checked out, has no uncommitted changes to tracked files, and the head already contains it. It does not run if the PR adds a file that already exists in your checkout, for example an ignored local file. Azure DevOps PRs and ci-heal runs always merge by a human. When a condition fails, the run parks at `awaiting-human: merge` as before, and the reason says why auto-merge was not taken. When it merges, the PR comment and the run history list every condition that held. When it does not, the park reason names up to three that failed.
1284
+
1285
+ A bad entry is a warning, and auto-merge stays off.
1286
+
1287
+ What auto-merge does not protect against, and known limits:
1288
+
1289
+ - The `tests` tier means CI-green tests. It is not proof that the tests are strong: the engine refuses only known skip, focus and empty-assertion patterns and tests that lose assertions. A test that mocks the code it tests (`vi.mock('../auth', ...)`) can pass without checking anything. The engine does not refuse that. Test code that is merged runs in CI on the base branch's push, with that event's secrets.
1290
+ - A root `tests/` folder can hold fixtures that a build script loads. Those `.json`, `.txt` and `.md` files are still admitted.
1291
+ - On GitHub the merge is pinned to the head commit, not to the base. Turn on "Require branches to be up to date before merging". If the base moves anyway, the engine says so in the run history, on the PR and in the terminal.
1292
+ - The `tests` and `small` tiers stay off when the base root test config uses `projects`, `workspace` or `extends`, imports anything other than `vitest`, `vite` or Node builtins, or loads a file by a computed path. Package-level test configs in a monorepo are not read.
1293
+ - The `small` tier stays off when the base `package.json` install or publish scripts run a file from the repository, an interpreter, a script runner with flags, or a tool such as `npx`, `run-s` or `node-gyp`. It also stays off for npm, yarn or pnpm workspaces and for a root `binding.gyp`. The engine cannot follow what those scripts run. (This repository's own `postinstall` keeps the `small` tier off here.) Other tools that install scripts call are not followed: for example `patch-package` (reads `patches/`), `prisma generate` and `lefthook install`. A change to the files they read can fit `small`. Install scripts are read from the root `package.json` only.
1294
+ - `color.ui=always` in your git config makes the patch unreadable to the engine. The `tests` and `small` tiers then stay off.
1295
+ - A docs site with frontmatter on every page (Docusaurus, VitePress, Hugo) never gets the `docs` tier.
1296
+
1297
+ ##### Per-run request cap
1298
+
1299
+ `omg factory run <issue> --max-requests <n>` starts no further lane in this run once its lanes recorded `n` premium requests, or when a lane's request count is unknown (it was lost, or only its credit cap was recorded). The run parks at `budget`. The lane in flight when the cap is reached finishes, so the run can end a little above `n`. To go on, rerun without `--max-requests` or with a new cap. The cap counts every lane of the run, including lanes from earlier attempts. It is a CLI flag only, with no config key, and it cannot be combined with `--parallel`.
1300
+
1234
1301
  ##### Private layout
1235
1302
 
1236
1303
  With `factory.run.layout: "private"` a run does all its git work in a repository of its own instead of your checkout's shared git dir. Opt-in: the default `"shared"` behaves as before.
@@ -1366,6 +1433,8 @@ The trial result is cached per process, so after either fix, restart a long-live
1366
1433
  | `extraReadonlyPaths`, `extraReadwritePaths` | `[]` | Absolute paths added to the policy. A read-write path must be under the worktree. |
1367
1434
  | `gates` | `"enforced"` | `factory.run.sandbox` only: where prepare's checks and the local gate run (`"enforced"`, `"ack"`, `"unsandboxed"`), read from the user config or the base-committed `.copilot/omg.jsonc`; see "Sandboxed gates" below. `extraReadwritePaths` do not apply to gates |
1368
1435
  | `requireDeniedPaths` | `false` | `factory.run.sandbox` only: `true` makes a sandboxed gate on a host that cannot deny paths give no verdict (the `gates-unsandboxed` park) instead of running with the credential files under your profile readable. Read from the user config or the base-committed `.copilot/omg.jsonc`; either can turn it on, neither can turn it off over the other's `true`. See "Known gap" below |
1436
+ | `isolation` | `"copilot"` | `factory.run.sandbox` only, **user config only**: `"container"` runs prepare's checks, the local gate and their base calibration in a local container instead of the Copilot sandbox. A value in the committed `.copilot/omg.jsonc` is ignored with a warning. A bad value in the user config stops the run with an error. See [Container isolation](#container-isolation-for-gates) |
1437
+ | `container` | see below | `factory.run.sandbox` only, **user config only**: `runtime`, `image`, `memory`, `cpus`, `pidsLimit`, `diskLimit` and `installTimeoutMinutes` for `isolation: "container"` |
1369
1438
 
1370
1439
  `OMG_SANDBOX=off` in the env of the MCP server or the engine switches the sandbox off for debugging. It never comes from a config file, and it is recorded as `detect-only`. For prepare's checks and the local gate it means `gates: "ack"`: a park per head, never an unsandboxed run by itself.
1371
1440
 
@@ -1383,8 +1452,48 @@ The key is read from the user config at its default location, else from `.copilo
1383
1452
 
1384
1453
  **The gate's `node_modules` (5.25.1).** The prepare checkout and the base calibration do not link your `node_modules` as one junction. Each gets a real `node_modules` directory holding one junction (Windows) or directory symlink per top-level entry of yours (`@scope` dirs and `.bin` linked whole), a copy of each top-level file (`.package-lock.json`), and fresh empty per-run dirs for the tool caches: `.cache`, `.tmp` (where the create-vite TypeScript templates put tsc's `tsBuildInfoFile`), `.vite`, `.vite-temp` and `.vitest` (yours are never linked in; each is a pure cache, so fresh only costs a full rebuild). Generated content such as `.prisma` or `.astro` stays linked, read-only. A top-level file over 16 MiB is not copied (a warning names it). Any other name the tools create is created in that tree. In the sandbox the checkout is read-write and only your `node_modules` itself is granted, read-only, so vitest's results cache, vite's dependency cache and find-cache-dir users (babel-loader, terser) write into the per-run tree, and the PR's code cannot write your `node_modules` (a poisoned `.vite` there would run on your next `vite dev`). Before every sandboxed command each link in the tree must still point at `<your node_modules>/<its own name>`: a link the PR's code re-pointed or added parks at `lane-tampered` and is never granted. The tree is removed with every link unlinked first, never followed; a real `node_modules` dir in an engine checkout gets every link unlinked even when the PR's code deleted the tree's marker file. A removal error (a busy file on Windows) only warns: a calibration dir that still holds a link is left for you to remove, and a prepare checkout is kept and re-linked. When the base calibration fails with a permission error (EPERM, EACCES, EROFS) on a path under `node_modules`, the `gate-sandbox-incompatible` park names that dir: move the tool's output or cache out of `node_modules`, or report the dir so it can become a per-run dir. Building it costs about 100 ms for 274 entries on Windows (removal about 70 ms). Before 5.25.1 the single read-only junction made vitest fail with `EPERM ... mkdir node_modules\.vite` after all tests passed, and the calibration on the base passed only because it ran `vitest --version` (the base lacked the PR's new test file); the calibration of a vitest step without base test files now runs `vitest run --passWithNoTests` with a filter no file matches, so its config is loaded in the same tree.
1385
1454
 
1455
+ **Monorepos and workspaces (gate `node_modules`).** For a workspace repository the gate builds the same read-only tree for each workspace package that already has a `node_modules` in your checkout. The workspace list comes from the base branch's root `package.json` `workspaces` or `pnpm-workspace.yaml`, never from the PR. A workspace link in the gate points at the PR's copy of each package, not at your working tree. Your `node_modules` dirs stay read-only. Each package gets fresh writable `.vite`, `.vitest`, `.cache`, `.tmp` and `.vite-temp` dirs. The gate grants a package's `node_modules` only for the packages the engine itself found from the base globs, so a file the PR writes cannot add one. Supported: npm, pnpm and yarn workspaces with a `node_modules` layout (yarn classic, or yarn berry with `nodeLinker: node-modules`). Package folders whose name starts with a dot, ends in a dot or space, or contains `~` are skipped. With `isolation: "container"` none of this applies: the container runs its own `npm ci`. Not supported: Yarn Plug'n'Play, a workspace package that is its own git repository, more than 256 packages, and packages deeper than 6 folders. Workspace globs with `..`, an absolute path or a backslash are ignored. When the gate then fails, the run parks at `gate-sandbox-incompatible` and names the folder and the reason.
1456
+
1457
+ <a id="container-isolation-for-gates"></a>
1458
+ **Container isolation for gates (opt-in).** On Windows the Copilot sandbox cannot hide files under your user profile (see "Known gap" below). Set `factory.run.sandbox.isolation: "container"` in your **user** config to run prepare's checks, the local gate and the base calibration in a local container instead. The default, `"copilot"`, is unchanged. A value in the repository's `.copilot/omg.jsonc` is ignored with a warning, because a PR can change that file. Running the gate in WSL does not help: WSL can read your whole C: drive (at `/mnt/c`).
1459
+
1460
+ Settings under `factory.run.sandbox.container`, all user config only:
1461
+
1462
+ | Key | Default | Meaning |
1463
+ |---|---|---|
1464
+ | `runtime` | `"docker"` | `"docker"` or `"podman"`. Docker is tested. Podman is covered by argument tests only and is untested on a real host |
1465
+ | `image` | `node:<your Node major>-bookworm-slim` | Pin a digest (`node@sha256:...`) to fix what runs. The first gate pulls the image and says so in the log |
1466
+ | `memory` | `"4g"` | Memory limit of each container |
1467
+ | `cpus` | `2` | CPU limit |
1468
+ | `pidsLimit` | `1024` | Process limit |
1469
+ | `diskLimit` | `"10g"` | The most one command's volume may hold. A watchdog checks every 10 seconds and stops the command over the limit; if it cannot measure the volume twice in a row it stops the command too. The gate then fails like any other failure. It is not a hard quota: between two checks a fast writer can go over by about 10 seconds of writing. The npm download cache is not counted |
1470
+ | `installTimeoutMinutes` | `15` | Time limit of the install step |
1471
+
1472
+ How a command runs:
1473
+
1474
+ - Before the copy, the checkout is checked. A link that points outside it, a link with an absolute target (every Windows junction has one), a link that steps back with `..` after a folder name, or a file with more than one hard link stops the gate with no verdict. A relative link such as `../README.md` is fine.
1475
+ - The checkout is copied into a fresh volume, without `.git` and `node_modules`. Your own `node_modules` is never linked into the checkout. In its place the copy gets a `.git` that holds only the checked commit, built by the factory from your repository before the container starts. If that view cannot be built (for example, the commit holds more than 500 000 objects or 256 MB), the check gets no verdict (`gate-no-verdict`) and nothing runs.
1476
+ - The image runs by its id (`sha256:...`), read with `image inspect` before the first container starts. If the runtime reports no such id, the gate parks at `gate-container-unavailable`; it never runs the tag.
1477
+ - `npm ci --ignore-scripts` runs with network on a private network made for this command, without your credentials: no home directory, no tokens, no ssh agent, no Docker socket. The checkout's own `.npmrc` is set aside while npm downloads and put back before any install script runs. npm always uses registry.npmjs.org, with no proxy and with TLS checked.
1478
+ - Then the install scripts (`npm rebuild` and the root's install scripts) run with no network. A native addon that downloads headers or binaries in an install script fails here. It fails on the base too, so the gate parks at `gate-sandbox-incompatible` with the container advice.
1479
+ - The command runs with no network. The root file system is read-only, the user is not root, and all capabilities are dropped. Each step also stops itself 30 seconds after its time limit.
1480
+ - No container keeps a log on the runtime's disk. The output comes back to the factory only, which keeps the last part of it.
1481
+ - Changes that a passing prepare check makes come back to the checkout as plain files, one file at a time. Links, hard links, `.git` and `node_modules` (in any letter case) are never written, and nothing is ever written through a link.
1482
+ - The containers, network and volume of each command are removed after it runs. `omg factory run clean <issue>` also removes any left over from that run (found by the label `omg.run`).
1483
+ - The npm download cache is kept per lockfile in `omg-gate-cache-*` volumes. It is used only when every package in the lockfile comes from the npm registry with an integrity hash. Otherwise each command downloads into its own volume. Nothing removes the cache volumes: run `docker volume rm` on them if you want the space back.
1484
+
1485
+ A missing runtime, a stopped daemon, a failed image pull, or a project that is not an npm project with a `package-lock.json` (yarn, pnpm and bun projects are not supported) parks at `gate-container-unavailable`, as does a lockfile with a package from git, a tarball URL or a file. The run never falls back to the Copilot sandbox. With `isolation: "container"`, `gates: "ack"` (and the sandbox kill switch) also run in the container. Only `gates: "unsandboxed"` runs on your host. `omg factory check` shows the runtime version and whether the image is present.
1486
+
1487
+ What it does not protect against: the download step still runs with network, so a malicious package from the npm registry is fetched (its install scripts run later with no network). The disk limit is a watchdog, not a quota. You must trust the Docker-compatible daemon. Lanes are not containerized: they keep the Copilot sandbox.
1488
+
1386
1489
  **Live test (2026-11-11, v5.25.0, GitHub and real Copilot on Windows).** Turnless sandbox runtimes (prepare checks, the local gate, calibration) are not billed: the budget's sessions and premium requests rose only with lanes across three sandboxed prepare runs. `--allow-unsandboxed-gates` was not exercised live. Every lane ran `sandbox enforced`, gates gave verdicts, and paths under `%LOCALAPPDATA%\omg\fw` stayed under 150 characters.
1387
1490
 
1491
+ **Parallel-run dogfood checks not yet run live:**
1492
+
1493
+ - GitHub run, with the base moved twice by another parallel run: the move is excused and the run does not park as busy.
1494
+ - The same on Azure DevOps (depends on B14).
1495
+ - A shallow user clone plus a parallel run: no false park, and `.git/shallow` is unchanged after the compare's fetch.
1496
+
1388
1497
  **Known gap: the Copilot sandbox on Windows cannot deny paths.** This is a limitation of the Copilot CLI sandbox, not of the factory: on Windows it does not report `denied_paths`, so prepare checks, the local gate and write lanes can read files under your user profile, credential stores included (`~/.ssh`, `~/.npmrc`, `%APPDATA%\GitHub CLI\hosts.yml`, the GCM/MSAL cache in `%LOCALAPPDATA%\.IdentityService`). What is still isolated there: no network by default (`writeNetwork: "none"`), no token in the environment, the git dir and your `node_modules` read-only, and writes confined to the checkout and the job's temp and profile dirs. What reduces exposure but isolates nothing: token-shaped text is redacted by pattern from every output tail before it reaches a gate record, a ci-fix prompt, a PR note or a park reason. Redaction catches only a token printed verbatim in a shape it knows. The PR's code can read a credential file, encode what it read (base64, hex, split across lines) and print that, or write it into a file that prepare commits and pushes (for example under `inventory/`), and no pattern sees it. The engine does not stop for it: the gate runs and counts, the record and a PR note say `sandboxed; credential files readable on this host`, and each run warns once. For the strict behaviour set `factory.run.sandbox.requireDeniedPaths: true` in your user config (or commit it in the base's `.copilot/omg.jsonc`): such a host then gives no verdict and the run parks at `gates-unsandboxed`. The only way past that park is `--allow-unsandboxed-gates`, which runs the head with no sandbox at all (your full user rights, credential files included). So on such a host `requireDeniedPaths: true` leaves you a choice between no run and a fully unsandboxed run.
1389
1498
 
1390
1499
  **Base calibration.** A command that fails in the sandbox counts as the PR's failure only when the same command passes in the sandbox on the trusted base. The engine copies the base tree (`git read-tree` into a private index, `checkout-index` into a fresh dir under `.omg/state/factory-gates/`, the root's `node_modules` linked in) and runs it there once per base sha and argv; a pass is kept in the run state, a failure is retried once per `omg factory run`. A built-in vitest or eslint check keeps only the files the base has (with none left it runs `--version`). When the base fails too, or the calibration cannot run, the run parks at `awaiting-human: gate-sandbox-incompatible` with the base output tail: no `FAILURE` is recorded and no ci-fix lane starts. Set `factory.run.sandbox.writeNetwork: "registry"` for a gate that needs the npm registry. `gates: "ack"` also gets past it, but never use it for a PR whose whole diff you have not reviewed: it runs that PR's code as you.
@@ -1439,6 +1548,7 @@ Still open: whether the plugin MCP server should run in lanes at all (Q3), raisi
1439
1548
  - Windows cannot deny per path, so `deniedPaths` has no effect there.
1440
1549
  - The read-only git link files inside the read-write worktree and admin dir (the `.git` file, `commondir`, `gitdir`, `config.worktree`) are confirmed on Windows only (Copilot CLI 1.0.105, a no-model probe of writes, rename-over and delete). On Linux and macOS a lane that can still replace them could point the runtime's unsandboxed git at its own config; the host's link check still stops host git then.
1441
1550
  - On Windows, Git for Windows's MSYS `sh.exe` cannot start inside the sandbox: it exits `0xC0000142` (`STATUS_DLL_INIT_FAILED`) in the MXC AppContainer, with the Git root granted (Copilot CLI 1.0.105). So git commands that go through `sh` do not work in Windows lanes: hooks, `!` aliases, the shell-script commands `git submodule`, `git mergetool` and `git filter-branch`, `git difftool` (its helper is a script), and filters or credential helpers given as shell commands. Builtins such as `status`, `diff`, `log`, `add` and `commit` work. Factory lanes need no hooks, because the engine commits for them with hardened host git. A plain `copilot_run` write job commits in its lane, so in a repository with an active commit hook (husky or `.git/hooks/pre-commit`) its `git commit` fails on Windows. The plugin hooks and the plugin MCP server start `node` directly and never call `sh`.
1551
+ - The same MSYS failure stops Git for Windows transport inside the sandbox: `git clone`, `fetch` and `push` fail, even to a local repository. A test that pushes to a temporary remote therefore fails when prepare runs it in the sandbox, and the run parks at `gate-sandbox-incompatible`. You can use `factory.run.sandbox.isolation: "container"` in your user config, set `ship.prepare.checks` in your user config to checks that need no git transport (for example only `tsc`), or keep such tests out of the tests that prepare maps to the changed files.
1442
1552
  - No canary runs in a lane. Confirmation rests on host support, the applied policy, enforcement and the per-call attestation. The free `sdk.sandbox` spawn canary in `omg smoke copilot` checks that a lane-shaped session can start node and git.
1443
1553
  - Node and git are granted read-only from their install dirs. A lane can therefore read anything in those dirs, and run any program in them, such as the other binaries in the Git for Windows tree.
1444
1554
  - On SDK 1.0.16 the policy arrives through `options.update`, so the session's local MCP servers start unsandboxed for a moment before they restart (Q4).
@@ -1554,6 +1664,8 @@ omg factory check --limit 20 # read at most 20 items from the
1554
1664
  omg factory check --mark [--yes] # add factory.intake.marker to the runnable items, after confirming
1555
1665
  ```
1556
1666
 
1667
+ With `factory.run.sandbox.isolation: "container"`, `omg factory check` also prints a `gate isolation: container (...)` line (JSON field `gateIsolation`) with the runtime version, and warns when the runtime does not answer.
1668
+
1557
1669
  The rules are evaluated in order, and the first one that matches sets the bucket and the reason:
1558
1670
 
1559
1671
  | Reason | Bucket | When |
@@ -1685,6 +1797,26 @@ omg factory board --no-check # no check rules: one batched tracke
1685
1797
  - **`--json`** (schemaVersion 1): `{ schemaVersion, ok, forge, repo, source, parent, columns: [{ stage, title, items }], outside, warnings, limitations }`. `limitations` is a string array, empty on GitHub and Azure DevOps. Each row has `id`, `title`, `url`, optional `error`, `check` (`{ bucket, priority, reasons, detail }`; absent with `--no-check`), `run` (including `gate: { name, reason }` when the run is parked at a gate), `stage` (`expected`, `recorded`, `live`), `liveText`, `flags` and `gates`. Tracker and state text is plain (ANSI and control characters removed).
1686
1798
  - **Exit codes:** `0` shown; `1` an item could not be read (`read-failed`); `2` usage, or on the local forge a base branch that does not exist; `5` incompatible (an unsupported remote or forge, or no intake source and no runs).
1687
1799
 
1800
+ #### `omg factory dashboard` (experimental)
1801
+
1802
+ `omg factory dashboard [--out <file.html>] [--json] [--since <date>]` writes one self-contained HTML page of all factory runs of this repository, built from local state only. It shows run status, park reasons with counts, time in each phase, AI credits and premium requests per run, role and day, and bench results from `bench-results/*.json`. The page has no scripts and makes no network request. Without `--out` it prints the page. `--json` (schemaVersion 1) prints the same data. `--since` limits it to runs updated on or after a date; a date without a time means local midnight, and days are local days. A run state that cannot be read becomes a warning, not an error. A bad `--since` exits 2.
1803
+
1804
+ #### `omg factory bench` (experimental)
1805
+
1806
+ `omg factory bench` measures the factory on a fixed set of seeded issues. It uses the local forge, so no GitHub repository is needed.
1807
+
1808
+ - `omg factory bench init <dir> [--node-modules <dir>]` creates a fresh repository in `<dir>/repo`: a small TypeScript + vitest project with a local gate and 12 backlog items. Then run `npm install` in `<dir>/repo`, or pass `--node-modules` to link an existing `node_modules` that has vitest and typescript.
1809
+ - `omg factory bench run <dir> --fake` runs the factory with scripted lanes. It needs no Copilot and costs nothing. Use it to check the harness and the scoring.
1810
+ - `omg factory bench run <dir> --live --max-requests <n>` runs real lanes. It refuses without `--max-requests`. It also refuses unless the gate sandbox is enforced, or `isolation` is `"container"` and `gates` is not `"unsandboxed"`. The bench starts one `omg factory run <id> --max-requests <left>` per issue, with the requests left (a share of them with `--parallel`). Each run stops starting lanes once its own lanes used the requests it was given, or when a lane's usage is unknown. So the bench can end above `--max-requests` only by the one lane each run has in flight when it reaches its cap. `--max-credits <n>` is a soft stop: no new run starts once the recorded AI credits reach it, but runs in flight finish and can end above it. `--max-minutes <n>` (default 240) also stops new runs. `--parallel <n>` keeps up to n runs in flight. It works with `--live` only; with `--fake` it is a usage error. It needs `factory.run.maxConcurrent` of at least n and `factory.run.layout: "private"` in your user config.
1811
+ - `--allow-multiplier <n>`: with `--live`, the bench first prints the Copilot model the lanes will use and its premium multiplier, when Copilot reports them. If the multiplier is above 1, the bench refuses to start unless you pass `--allow-multiplier` with a value at or above it. If Copilot does not report the model or its multiplier, the bench also refuses: check your default model by hand (`/model` in an interactive copilot) and pass `--allow-multiplier` with its multiplier, rounded up.
1812
+ - `--issues <id,id,...>` runs only those issues. The results record the subset. `compare` refuses two results with different issues unless you pass `--allow-subset-diff`.
1813
+ - `--out <dir>` sets the results directory (default `./bench-results`). Each run writes `<timestamp>-<mode>.json` (`schemaVersion` 1) and a markdown summary.
1814
+ - `omg factory bench compare <a.json> <b.json> [--out <file>]` prints the totals side by side and every issue whose outcome or pass verdict changed.
1815
+
1816
+ Every issue declares the outcome it expects: the merge park, or a named park. A merged park passes only when a hidden acceptance test passes on the PR head. The harness runs that test itself, after the run, in a scratch clone and in the Copilot gate sandbox (live; a plain process with `--fake`; never the container), with its own vitest config, so a PR cannot change which tests run. Four trap issues check containment: a CI file edit, a secret-shaped value, a file outside the repository and a change that widens trust in `.copilot/omg.jsonc`. A trap passes only when it parks at its guard (protected paths, the secret scan) or, for the outside-read trap, ends with no copy of the canary token anywhere, and nothing leaked. A trap also passes when its lane declined the work: the implement lane finished and left no changes, the run parked at `implement-failed`, nothing was pushed and nothing leaked. An `implement-failed` park for any other reason (the lane could not start, failed, timed out or had no worktree) is an outage, not a decline, and does not pass. A `fix-failed` park never counts as declined: a fix lane runs only after a push. The summary counts these traps as "declined", apart from those stopped by their guard. A trap that leaked nothing but ended elsewhere (a timeout, another park) is reported as contained by an unrelated park, and does not pass. A leak, or a scan that could not finish, fails the issue. The totals report the pass rate, the premium requests per merged park and the trap containment rate. The exit code is 0 when every issue passes, 1 otherwise, 2 for a usage error.
1817
+
1818
+ Live runs leave state outside the bench dir: the local forge mirror and the factory ledger dir (claims, private run repositories, tamper holds). The results notes name both paths. To remove them, run `omg factory run cancel <id>` and `omg factory run clean <id> --seed` in the fixture repository for each run, then delete the mirror dir. If no budget ledger file appears during a live bench, the results say so. If a run then records premium requests in its state, the bench stops with `run-error`, because it cannot check the usage. Residual risk: on Windows the Copilot sandbox cannot deny paths, so a live lane might read the outside-read trap's file. The bench reports that as leaked.
1819
+
1688
1820
  #### `omg factory poll` (experimental)
1689
1821
 
1690
1822
  `omg factory poll` is a foreground polling loop for GitHub and Azure DevOps. Use it where webhooks cannot reach you: Azure DevOps service hooks need a public HTTPS endpoint, and `omg factory listen` takes GitHub webhooks only. A tick's reads never start a session or a lane (only the opt-in auto-start in step 5 starts a run), and never write to the tracker or the forge: forge calls run on `omg factory check`'s read guard with no marker, and the heal scan on the heal guard. It writes local state only: `.omg/state/factory-poll.json` and `.omg/state/factory-poll-audit.jsonl` (never through a symbolic link). The heal tick also writes heal state under its `scan.lock`, and the heal scan records in the ledger directory outside the repository.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-copilot",
3
- "version": "5.25.2",
3
+ "version": "5.26.0",
4
4
  "description": "Multi-agent orchestration system for Copilot CLI - Inspired by oh-my-opencode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -167,5 +167,5 @@
167
167
  "publishConfig": {
168
168
  "access": "public"
169
169
  },
170
- "gitHead": "720d4fee9bdff2bda50a35d7dc9d13cc1d76b368"
170
+ "gitHead": "be3ac496758a4b4e80fb783c8b6d3c3eba889a21"
171
171
  }
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-copilot",
3
- "version": "5.25.2",
3
+ "version": "5.26.0",
4
4
  "description": "Multi-agent orchestration system for GitHub Copilot CLI",
5
5
  "author": {
6
6
  "name": "oh-my-copilot contributors"