oh-my-opencode 4.19.4 → 5.0.0-beta.10

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 (374) hide show
  1. package/.agents/command/publish.md +44 -16
  2. package/.agents/skills/publish/SKILL.md +44 -16
  3. package/.agents/skills/work-with-pr/SKILL.md +37 -23
  4. package/.opencode/command/publish.md +44 -16
  5. package/.opencode/skills/work-with-pr/SKILL.md +37 -23
  6. package/README.ja.md +1 -1
  7. package/README.ko.md +1 -1
  8. package/README.md +18 -6
  9. package/README.ru.md +1 -1
  10. package/README.zh-cn.md +1 -1
  11. package/bin/oh-my-opencode.js +14 -1
  12. package/bin/oh-my-opencode.test.ts +21 -0
  13. package/dist/agents/atlas/agent.d.ts +0 -1
  14. package/dist/agents/sisyphus/grok-4.d.ts +20 -0
  15. package/dist/agents/sisyphus/index.d.ts +2 -0
  16. package/dist/agents/sisyphus-agent-config.d.ts +6 -0
  17. package/dist/agents/sisyphus-agent-factory.d.ts +1 -1
  18. package/dist/agents/sisyphus-runtime-prompt-reconciler.d.ts +15 -4
  19. package/dist/agents/types.d.ts +2 -2
  20. package/dist/cli/index.js +1888 -807
  21. package/dist/cli/run/on-complete-hook.d.ts +2 -0
  22. package/dist/cli-node/index.js +1888 -807
  23. package/dist/config/schema/agent-overrides.d.ts +528 -0
  24. package/dist/config/schema/oh-my-opencode-config.d.ts +495 -0
  25. package/dist/features/monitor/batcher.d.ts +3 -1
  26. package/dist/features/monitor/manager-internals.d.ts +1 -0
  27. package/dist/features/monitor/output-injector-types.d.ts +2 -0
  28. package/dist/features/monitor/output-injector.d.ts +6 -0
  29. package/dist/hooks/atlas/final-wave-approval-gate.test-support.d.ts +50 -0
  30. package/dist/hooks/atlas/system-reminder-templates.d.ts +0 -1
  31. package/dist/hooks/todo-continuation-enforcer/types.d.ts +1 -0
  32. package/dist/hooks/todo-continuation-enforcer/unrecoverable-request-error.d.ts +9 -0
  33. package/dist/hooks/tool-pair-validator/hook.test-support.d.ts +29 -0
  34. package/dist/hooks/tool-pair-validator/tool-part-ids.d.ts +14 -5
  35. package/dist/hooks/tool-pair-validator/tool-result-repair.d.ts +4 -3
  36. package/dist/hooks/tool-pair-validator/types.d.ts +5 -22
  37. package/dist/index.js +3139 -2232
  38. package/dist/mcp/lsp.d.ts +1 -0
  39. package/dist/oh-my-opencode.schema.json +1466 -131
  40. package/dist/shared/normalize-sdk-response.d.ts +1 -0
  41. package/dist/shared/shell-env.d.ts +1 -1
  42. package/dist/shared/tmux/constants.d.ts +1 -1
  43. package/dist/skills/ast-grep/SOURCE +1 -1
  44. package/dist/skills/ast-grep/install.ps1 +2 -2
  45. package/dist/skills/ast-grep/install.sh +1 -1
  46. package/dist/skills/ast-grep/references/install.md +2 -2
  47. package/dist/skills/ast-grep/tests/smoke.sh +1 -1
  48. package/dist/skills/coding-agent-sessions/SKILL.md +3 -2
  49. package/dist/skills/coding-agent-sessions/references/all-platforms.md +1 -1
  50. package/dist/skills/coding-agent-sessions/references/senpi.md +4 -4
  51. package/dist/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
  52. package/dist/skills/frontend/SKILL.md +10 -7
  53. package/dist/skills/frontend/references/design/_INDEX.md +1 -0
  54. package/dist/skills/frontend/references/design/stylegallery.md +80 -0
  55. package/dist/skills/start-work/SKILL.md +54 -9
  56. package/dist/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
  57. package/dist/skills/ultimate-browsing/SKILL.md +2 -2
  58. package/dist/skills/ultimate-browsing/engine/AGENTS.md +179 -0
  59. package/dist/skills/ultimate-browsing/engine/__main__.py +8 -1
  60. package/dist/skills/ultimate-browsing/engine/bias_check.py +11 -0
  61. package/dist/skills/ultimate-browsing/engine/fetch_chain.py +90 -52
  62. package/dist/skills/ultimate-browsing/engine/result_schema.py +10 -1
  63. package/dist/skills/ultimate-browsing/engine/surrogate.py +214 -0
  64. package/dist/skills/ultimate-browsing/engine/surrogates.yaml +60 -0
  65. package/dist/skills/ultimate-browsing/engine/templates/package.json +1 -1
  66. package/dist/skills/ultimate-browsing/engine/tests/fixtures/amp_redirect_stub.html +7 -0
  67. package/dist/skills/ultimate-browsing/engine/tests/fixtures/search_interstitial.html +19 -0
  68. package/dist/skills/ultimate-browsing/engine/tests/fixtures/wayback_available.json +1 -0
  69. package/dist/skills/ultimate-browsing/engine/tests/fixtures/wayback_snapshot.html +1128 -0
  70. package/dist/skills/ultimate-browsing/engine/tests/test_surrogate.py +252 -0
  71. package/dist/skills/ultimate-browsing/engine/tests/test_surrogate_validators.py +78 -0
  72. package/dist/skills/ultimate-browsing/engine/validators.py +46 -0
  73. package/dist/skills/ultimate-browsing/engine/waf_detector.py +1 -1
  74. package/dist/skills/ultimate-browsing/engine/waf_profiles.yaml +10 -5
  75. package/dist/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  76. package/dist/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
  77. package/dist/skills/ultimate-browsing/references/insane-search/README.md +4 -4
  78. package/dist/skills/ultimate-browsing/references/insane-search/cache-archive.md +51 -50
  79. package/dist/skills/ultimate-browsing/references/insane-search/fallback.md +1 -1
  80. package/dist/skills/ultimate-browsing/references/insane-search/jina.md +8 -2
  81. package/dist/skills/ultimate-browsing/references/insane-search/naver.md +1 -1
  82. package/dist/skills/ultimate-browsing/references/insane-search/twitter.md +3 -3
  83. package/dist/skills/ulw-plan/SKILL.md +3 -3
  84. package/dist/skills/ulw-plan/references/full-workflow.md +30 -6
  85. package/dist/skills/ulw-plan/references/intent-clear.md +2 -1
  86. package/dist/skills/ulw-plan/references/intent-unclear.md +3 -3
  87. package/dist/skills/ulw-plan/scripts/scaffold-plan.mjs +1 -1
  88. package/dist/skills/ulw-research/SKILL.md +15 -10
  89. package/dist/tui.js +477 -36
  90. package/docs/reference/web-terminal-visual-qa.md +1 -1
  91. package/package.json +34 -24
  92. package/packages/lsp-core/src/lsp/client-diagnostics-concurrency.integration.test.ts +44 -0
  93. package/packages/lsp-core/src/lsp/client-diagnostics-freshness.integration.test.ts +0 -28
  94. package/packages/lsp-core/src/lsp/client-wrapper.test.ts +60 -7
  95. package/packages/lsp-core/src/lsp/client-wrapper.ts +69 -16
  96. package/packages/lsp-core/src/lsp/connection.ts +1 -1
  97. package/packages/lsp-core/src/lsp/workspace-edit-adversarial.test.ts +20 -1
  98. package/packages/lsp-core/src/tools/diagnostics.ts +3 -3
  99. package/packages/lsp-core/src/tools/navigation.ts +4 -2
  100. package/packages/lsp-core/src/tools/rename.ts +4 -2
  101. package/packages/lsp-core/src/tools/symbols.ts +1 -1
  102. package/packages/lsp-daemon/dist/cli.js +108 -40
  103. package/packages/lsp-daemon/dist/client.js +123 -55
  104. package/packages/lsp-daemon/dist/ensure-daemon.d.ts +1 -0
  105. package/packages/lsp-daemon/dist/ensure-daemon.js +18 -5
  106. package/packages/lsp-daemon/dist/index.js +111 -43
  107. package/packages/lsp-tools-mcp/dist/cli.js +77 -23
  108. package/packages/lsp-tools-mcp/dist/lsp/manager.js +1 -1
  109. package/packages/lsp-tools-mcp/dist/mcp.js +77 -23
  110. package/packages/lsp-tools-mcp/dist/tools.js +77 -23
  111. package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
  112. package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +268 -92
  113. package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
  114. package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
  115. package/packages/omo-codex/plugin/components/bootstrap/src/setup.ts +7 -7
  116. package/packages/omo-codex/plugin/components/bootstrap/src/worker.ts +3 -0
  117. package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +220 -10
  118. package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +220 -10
  119. package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
  120. package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
  121. package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
  122. package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
  123. package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
  124. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
  125. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
  126. package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/codex-hook.test.ts +3 -17
  127. package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
  128. package/packages/omo-codex/plugin/components/lsp/dist/cli.js +135 -67
  129. package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
  130. package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
  131. package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
  132. package/packages/omo-codex/plugin/components/rules/package.json +1 -1
  133. package/packages/omo-codex/plugin/components/rules/test/bundled-rules-priority.test.ts +11 -16
  134. package/packages/omo-codex/plugin/components/rules/test/bundled-rules.test.ts +16 -23
  135. package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-budget.test.ts +9 -7
  136. package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-context.test.ts +0 -6
  137. package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-dedup.test.ts +6 -4
  138. package/packages/omo-codex/plugin/components/rules/test/codex-hook-post-compact-directive.test.ts +12 -9
  139. package/packages/omo-codex/plugin/components/rules/test/codex-hook.test.ts +28 -37
  140. package/packages/omo-codex/plugin/components/rules/test/formatter.test.ts +37 -69
  141. package/packages/omo-codex/plugin/components/rules/test/hook-output.test.ts +2 -3
  142. package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +1 -15
  143. package/packages/omo-codex/plugin/components/start-work-continuation/AGENTS.md +4 -2
  144. package/packages/omo-codex/plugin/components/start-work-continuation/README.md +5 -1
  145. package/packages/omo-codex/plugin/components/start-work-continuation/directive.md +2 -1
  146. package/packages/omo-codex/plugin/components/start-work-continuation/dist/cli.js +18 -0
  147. package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
  148. package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
  149. package/packages/omo-codex/plugin/components/start-work-continuation/src/codex-hook.ts +21 -0
  150. package/packages/omo-codex/plugin/components/start-work-continuation/test/cli.test.ts +0 -3
  151. package/packages/omo-codex/plugin/components/start-work-continuation/test/codex-hook.test.ts +107 -16
  152. package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
  153. package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
  154. package/packages/omo-codex/plugin/components/teammode/test/thread-title-hook.test.ts +3 -9
  155. package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +24 -12
  156. package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +24 -12
  157. package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
  158. package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
  159. package/packages/omo-codex/plugin/components/ultrawork/CHANGELOG.md +2 -0
  160. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-code-reviewer.toml +1 -1
  161. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-gate-reviewer.toml +1 -1
  162. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-qa-executor.toml +1 -1
  163. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-high.toml +1 -1
  164. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-low.toml +1 -1
  165. package/packages/omo-codex/plugin/components/ultrawork/agents/lazycodex-worker-medium.toml +1 -1
  166. package/packages/omo-codex/plugin/components/ultrawork/agents/plan.toml +2 -2
  167. package/packages/omo-codex/plugin/components/ultrawork/directive.md +9 -2
  168. package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
  169. package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
  170. package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +9 -2
  171. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/SKILL.md +3 -3
  172. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/full-workflow.md +30 -6
  173. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-clear.md +2 -1
  174. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/references/intent-unclear.md +3 -3
  175. package/packages/omo-codex/plugin/components/ultrawork/skills/ulw-plan/scripts/scaffold-plan.mjs +1 -1
  176. package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook.test.ts +0 -136
  177. package/packages/omo-codex/plugin/components/ultrawork/test/skill-pointer.test.ts +0 -2
  178. package/packages/omo-codex/plugin/components/ulw-loop/AGENTS.md +1 -1
  179. package/packages/omo-codex/plugin/components/ulw-loop/CHANGELOG.md +2 -0
  180. package/packages/omo-codex/plugin/components/ulw-loop/README.md +11 -11
  181. package/packages/omo-codex/plugin/components/ulw-loop/directive.md +9 -2
  182. package/packages/omo-codex/plugin/components/ulw-loop/dist/checkpoint-reconciliation.js +1 -1
  183. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.d.ts +1 -1
  184. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-output.js +9 -9
  185. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli-steering.js +1 -1
  186. package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +66 -66
  187. package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-instruction.js +4 -4
  188. package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-hook.js +1 -1
  189. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-crud.js +1 -1
  190. package/packages/omo-codex/plugin/components/ulw-loop/dist/plan-io.js +1 -1
  191. package/packages/omo-codex/plugin/components/ulw-loop/dist/steering.js +1 -1
  192. package/packages/omo-codex/plugin/components/ulw-loop/dist/stop-resume-hook.js +2 -2
  193. package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
  194. package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
  195. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/SKILL.md +5 -4
  196. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/define-goal.md +108 -0
  197. package/packages/omo-codex/plugin/components/ulw-loop/skills/ulw-loop/references/full-workflow.md +23 -25
  198. package/packages/omo-codex/plugin/components/ulw-loop/src/checkpoint-reconciliation.ts +1 -1
  199. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-output.ts +9 -9
  200. package/packages/omo-codex/plugin/components/ulw-loop/src/cli-steering.ts +1 -1
  201. package/packages/omo-codex/plugin/components/ulw-loop/src/cli.ts +1 -1
  202. package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-instruction.ts +4 -4
  203. package/packages/omo-codex/plugin/components/ulw-loop/src/codex-hook.ts +1 -1
  204. package/packages/omo-codex/plugin/components/ulw-loop/src/plan-crud.ts +1 -1
  205. package/packages/omo-codex/plugin/components/ulw-loop/src/plan-io.ts +1 -1
  206. package/packages/omo-codex/plugin/components/ulw-loop/src/steering.ts +1 -1
  207. package/packages/omo-codex/plugin/components/ulw-loop/src/stop-resume-hook.ts +2 -2
  208. package/packages/omo-codex/plugin/components/ulw-loop/test/checkpoint-continuation.test.ts +0 -1
  209. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-commands.test.ts +2 -2
  210. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-entrypoint.test.ts +1 -1
  211. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-helpers.test.ts +2 -2
  212. package/packages/omo-codex/plugin/components/ulw-loop/test/cli-steering-kind-guidance.test.ts +1 -1
  213. package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-instruction.test.ts +2 -2
  214. package/packages/omo-codex/plugin/components/ulw-loop/test/codex-hook.test.ts +2 -5
  215. package/packages/omo-codex/plugin/components/ulw-loop/test/fixtures/quality-gate-builder.ts +1 -1
  216. package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +7 -40
  217. package/packages/omo-codex/plugin/components/ulw-loop/test/plan-io.test.ts +1 -1
  218. package/packages/omo-codex/plugin/components/ulw-loop/test/quality-gate-roles.test.ts +1 -1
  219. package/packages/omo-codex/plugin/components/ulw-loop/test/steering.test.ts +1 -1
  220. package/packages/omo-codex/plugin/components/ulw-loop/test/stop-resume-hook.test.ts +1 -1
  221. package/packages/omo-codex/plugin/components/ulw-loop/test/ultrawork-directive.test.ts +4 -5
  222. package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
  223. package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
  224. package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
  225. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
  226. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
  227. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
  228. package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
  229. package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
  230. package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
  231. package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
  232. package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
  233. package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
  234. package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
  235. package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
  236. package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
  237. package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
  238. package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
  239. package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
  240. package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
  241. package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
  242. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
  243. package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
  244. package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
  245. package/packages/omo-codex/plugin/package-lock.json +20 -20
  246. package/packages/omo-codex/plugin/package.json +1 -1
  247. package/packages/omo-codex/plugin/scripts/sync-skills.mjs +4 -4
  248. package/packages/omo-codex/plugin/skills/ast-grep/SOURCE +1 -1
  249. package/packages/omo-codex/plugin/skills/ast-grep/install.ps1 +2 -2
  250. package/packages/omo-codex/plugin/skills/ast-grep/install.sh +1 -1
  251. package/packages/omo-codex/plugin/skills/ast-grep/references/install.md +2 -2
  252. package/packages/omo-codex/plugin/skills/ast-grep/tests/smoke.sh +1 -1
  253. package/packages/omo-codex/plugin/skills/coding-agent-sessions/SKILL.md +3 -2
  254. package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/all-platforms.md +1 -1
  255. package/packages/omo-codex/plugin/skills/coding-agent-sessions/references/senpi.md +4 -4
  256. package/packages/omo-codex/plugin/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
  257. package/packages/omo-codex/plugin/skills/frontend/SKILL.md +10 -7
  258. package/packages/omo-codex/plugin/skills/frontend/references/design/_INDEX.md +1 -0
  259. package/packages/omo-codex/plugin/skills/frontend/references/design/stylegallery.md +80 -0
  260. package/packages/omo-codex/plugin/skills/start-work/SKILL.md +54 -9
  261. package/packages/omo-codex/plugin/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
  262. package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +2 -2
  263. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/AGENTS.md +179 -0
  264. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/__main__.py +8 -1
  265. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/bias_check.py +11 -0
  266. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/fetch_chain.py +90 -52
  267. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/result_schema.py +10 -1
  268. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/surrogate.py +214 -0
  269. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/surrogates.yaml +60 -0
  270. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/templates/package.json +1 -1
  271. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/fixtures/amp_redirect_stub.html +7 -0
  272. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/fixtures/search_interstitial.html +19 -0
  273. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/fixtures/wayback_available.json +1 -0
  274. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/fixtures/wayback_snapshot.html +1128 -0
  275. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/test_surrogate.py +252 -0
  276. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/tests/test_surrogate_validators.py +78 -0
  277. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/validators.py +46 -0
  278. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/waf_detector.py +1 -1
  279. package/packages/omo-codex/plugin/skills/ultimate-browsing/engine/waf_profiles.yaml +10 -5
  280. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  281. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
  282. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/README.md +4 -4
  283. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/cache-archive.md +51 -50
  284. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/fallback.md +1 -1
  285. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/jina.md +8 -2
  286. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/naver.md +1 -1
  287. package/packages/omo-codex/plugin/skills/ultimate-browsing/references/insane-search/twitter.md +3 -3
  288. package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +9 -2
  289. package/packages/omo-codex/plugin/skills/ulw-loop/SKILL.md +5 -4
  290. package/packages/omo-codex/plugin/skills/ulw-loop/references/define-goal.md +108 -0
  291. package/packages/omo-codex/plugin/skills/ulw-loop/references/full-workflow.md +23 -25
  292. package/packages/omo-codex/plugin/skills/ulw-plan/SKILL.md +3 -3
  293. package/packages/omo-codex/plugin/skills/ulw-plan/references/full-workflow.md +30 -6
  294. package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-clear.md +2 -1
  295. package/packages/omo-codex/plugin/skills/ulw-plan/references/intent-unclear.md +3 -3
  296. package/packages/omo-codex/plugin/skills/ulw-plan/scripts/scaffold-plan.mjs +1 -1
  297. package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +15 -10
  298. package/packages/omo-codex/plugin/test/aggregate-agents.test.mjs +19 -173
  299. package/packages/omo-codex/plugin/test/aggregate-hooks.test.mjs +4 -24
  300. package/packages/omo-codex/plugin/test/aggregate-plugin-fixture.mjs +175 -13
  301. package/packages/omo-codex/plugin/test/aggregate.test.mjs +78 -2
  302. package/packages/omo-codex/plugin/test/auto-update-release-notes.test.mjs +19 -33
  303. package/packages/omo-codex/plugin/test/bootstrap-binlinks.test.mjs +12 -12
  304. package/packages/omo-codex/plugin/test/bootstrap-orchestration.test.mjs +36 -4
  305. package/packages/omo-codex/plugin/test/lcx-contribute-bug-fix-template.test.mjs +21 -27
  306. package/packages/omo-codex/plugin/test/scaffold-plan.test.mjs +0 -36
  307. package/packages/omo-codex/plugin/test/sync-skills-codex-compatibility.test.mjs +101 -0
  308. package/packages/omo-codex/plugin/test/sync-skills-test-support.mjs +4 -4
  309. package/packages/omo-codex/plugin/test/sync-skills.test.mjs +1 -119
  310. package/packages/omo-codex/plugin/test/teammode-archive-ambiguity.test.mjs +0 -40
  311. package/packages/omo-codex/plugin/test/teammode-communication.test.mjs +6 -62
  312. package/packages/omo-codex/plugin/test/teammode-thread-links.test.mjs +3 -36
  313. package/packages/omo-codex/plugin/test/teammode-transport.test.mjs +0 -44
  314. package/packages/omo-codex/plugin/test/teammode-worktree.test.mjs +2 -6
  315. package/packages/omo-codex/plugin/test/ultrawork-skill-pointer.test.mjs +0 -3
  316. package/packages/omo-codex/plugin/test/ulw-plan-review-state-contract.test.mjs +0 -3
  317. package/packages/omo-codex/scripts/install-bin-links.test.mjs +56 -2
  318. package/packages/omo-codex/scripts/install-delegated-command.test.mjs +6 -6
  319. package/packages/omo-codex/scripts/install-dist/install-local.mjs +170 -78
  320. package/packages/omo-codex/scripts/install-lazycodex-version-stamp.test.mjs +7 -2
  321. package/packages/omo-codex/scripts/install-local-entrypoint.test.mjs +4 -4
  322. package/packages/omo-codex/scripts/install-local.test.mjs +5 -2
  323. package/packages/shared-skills/index.mjs +19 -1
  324. package/packages/shared-skills/skills/ast-grep/SOURCE +1 -1
  325. package/packages/shared-skills/skills/ast-grep/install.ps1 +2 -2
  326. package/packages/shared-skills/skills/ast-grep/install.sh +1 -1
  327. package/packages/shared-skills/skills/ast-grep/references/install.md +2 -2
  328. package/packages/shared-skills/skills/ast-grep/tests/smoke.sh +1 -1
  329. package/packages/shared-skills/skills/coding-agent-sessions/SKILL.md +3 -2
  330. package/packages/shared-skills/skills/coding-agent-sessions/references/all-platforms.md +1 -1
  331. package/packages/shared-skills/skills/coding-agent-sessions/references/senpi.md +4 -4
  332. package/packages/shared-skills/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +1 -1
  333. package/packages/shared-skills/skills/frontend/SKILL.md +10 -7
  334. package/packages/shared-skills/skills/frontend/references/design/_INDEX.md +1 -0
  335. package/packages/shared-skills/skills/frontend/references/design/stylegallery.md +80 -0
  336. package/packages/shared-skills/skills/start-work/SKILL.md +54 -9
  337. package/packages/shared-skills/skills/ultimate-browsing/ATTRIBUTION.md +37 -10
  338. package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +2 -2
  339. package/packages/shared-skills/skills/ultimate-browsing/engine/AGENTS.md +179 -0
  340. package/packages/shared-skills/skills/ultimate-browsing/engine/__main__.py +8 -1
  341. package/packages/shared-skills/skills/ultimate-browsing/engine/bias_check.py +11 -0
  342. package/packages/shared-skills/skills/ultimate-browsing/engine/fetch_chain.py +90 -52
  343. package/packages/shared-skills/skills/ultimate-browsing/engine/result_schema.py +10 -1
  344. package/packages/shared-skills/skills/ultimate-browsing/engine/surrogate.py +214 -0
  345. package/packages/shared-skills/skills/ultimate-browsing/engine/surrogates.yaml +60 -0
  346. package/packages/shared-skills/skills/ultimate-browsing/engine/templates/package.json +1 -1
  347. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/fixtures/amp_redirect_stub.html +7 -0
  348. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/fixtures/search_interstitial.html +19 -0
  349. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/fixtures/wayback_available.json +1 -0
  350. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/fixtures/wayback_snapshot.html +1128 -0
  351. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/test_surrogate.py +252 -0
  352. package/packages/shared-skills/skills/ultimate-browsing/engine/tests/test_surrogate_validators.py +78 -0
  353. package/packages/shared-skills/skills/ultimate-browsing/engine/validators.py +46 -0
  354. package/packages/shared-skills/skills/ultimate-browsing/engine/waf_detector.py +1 -1
  355. package/packages/shared-skills/skills/ultimate-browsing/engine/waf_profiles.yaml +10 -5
  356. package/packages/shared-skills/skills/ultimate-browsing/references/agent-reach/social.md +1 -1
  357. package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +13 -11
  358. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/README.md +4 -4
  359. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/cache-archive.md +51 -50
  360. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/fallback.md +1 -1
  361. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/jina.md +8 -2
  362. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/naver.md +1 -1
  363. package/packages/shared-skills/skills/ultimate-browsing/references/insane-search/twitter.md +3 -3
  364. package/packages/shared-skills/skills/ulw-plan/SKILL.md +3 -3
  365. package/packages/shared-skills/skills/ulw-plan/references/full-workflow.md +30 -6
  366. package/packages/shared-skills/skills/ulw-plan/references/intent-clear.md +2 -1
  367. package/packages/shared-skills/skills/ulw-plan/references/intent-unclear.md +3 -3
  368. package/packages/shared-skills/skills/ulw-plan/scripts/scaffold-plan.mjs +1 -1
  369. package/packages/shared-skills/skills/ulw-research/SKILL.md +15 -10
  370. package/postinstall.mjs +6 -0
  371. package/dist/tools/call-omo-agent/background-agent-executor.d.ts +0 -5
  372. package/packages/omo-codex/plugin/test/aggregate-skills.test.mjs +0 -92
  373. package/packages/omo-codex/plugin/test/sync-skills-orchestration.test.mjs +0 -314
  374. package/packages/omo-codex/plugin/test/ulw-plan-scope-contract.test.mjs +0 -24
@@ -0,0 +1,101 @@
1
+ import assert from "node:assert/strict";
2
+ import { readdir, readFile } from "node:fs/promises";
3
+ import { dirname, join } from "node:path";
4
+ import test from "node:test";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ import {
8
+ codexHarnessToolCompatibility,
9
+ insertCodexCompatibilityGuidance,
10
+ } from "../scripts/sync-skills.mjs";
11
+
12
+ const frontmatter = "---\nname: fixture-sentinel\n---\n\n";
13
+ const opencodeExample = "# SENTINEL_SECTION\ntask(SENTINEL_INPUT)\n";
14
+ const pluginRoot = dirname(dirname(fileURLToPath(import.meta.url)));
15
+ const repositoryRoot = join(pluginRoot, "..", "..");
16
+ const opencodeToolPattern = /\b(?:call_omo_agent|background_output|team_[a-z_]+|task)\s*\(/;
17
+
18
+ test("#given sentinel OpenCode tool content #when compatibility guidance is inserted #then the production artifact is placed after frontmatter and before the tool token", () => {
19
+ const input = `${frontmatter}${opencodeExample}`;
20
+
21
+ const actual = insertCodexCompatibilityGuidance(input);
22
+
23
+ assert.equal(actual, `${frontmatter}${codexHarnessToolCompatibility}${opencodeExample}`);
24
+ assert.ok(actual.indexOf(codexHarnessToolCompatibility) < actual.indexOf(opencodeExample));
25
+ });
26
+
27
+ test("#given already transformed sentinel content #when compatibility guidance is inserted again #then the transform is idempotent", () => {
28
+ const once = insertCodexCompatibilityGuidance(`${frontmatter}${opencodeExample}`);
29
+
30
+ const twice = insertCodexCompatibilityGuidance(once);
31
+
32
+ assert.equal(twice, once);
33
+ });
34
+
35
+ test("#given a stale generated compatibility block #when guidance is inserted #then the production artifact replaces it", () => {
36
+ const staleSentinel = "STALE_GENERATED_SENTINEL";
37
+ const staleGuidance = codexHarnessToolCompatibility.replace("multi_agent_v1.spawn_agent", staleSentinel);
38
+ assert.notEqual(staleGuidance, codexHarnessToolCompatibility);
39
+
40
+ const actual = insertCodexCompatibilityGuidance(`${frontmatter}${staleGuidance}${opencodeExample}`);
41
+
42
+ assert.equal(actual, `${frontmatter}${codexHarnessToolCompatibility}${opencodeExample}`);
43
+ assert.equal(actual.includes(staleSentinel), false);
44
+ });
45
+
46
+ test("#given a custom compatibility block before an OpenCode tool token #when guidance is inserted #then the custom block is preserved", () => {
47
+ const generatedHeading = codexHarnessToolCompatibility.slice(0, codexHarnessToolCompatibility.indexOf("\n") + 1);
48
+ const customBlock = `${generatedHeading}\nCUSTOM_BLOCK_SENTINEL\n\n`;
49
+ const input = `${frontmatter}${customBlock}${opencodeExample}`;
50
+
51
+ const actual = insertCodexCompatibilityGuidance(input);
52
+
53
+ assert.equal(actual, input);
54
+ });
55
+
56
+ test("#given an exported template wrapper containing an OpenCode tool token #when guidance is inserted #then wrapper bytes are preserved", () => {
57
+ const templateWrapper = "export const TEMPLATE_SENTINEL = `task(INPUT_SENTINEL)`;\n";
58
+
59
+ const actual = insertCodexCompatibilityGuidance(templateWrapper);
60
+
61
+ assert.equal(actual, `${codexHarnessToolCompatibility}${templateWrapper}`);
62
+ });
63
+
64
+ test("#given real shared skills that need Codex translation #when aggregate skills are synced #then each generated skill injects the production compatibility artifact once before any remaining OpenCode tool token", async () => {
65
+ const sharedSkillsRoot = join(repositoryRoot, "shared-skills", "skills");
66
+ const entries = await readdir(sharedSkillsRoot, { withFileTypes: true });
67
+ const syncScript = await readFile(join(pluginRoot, "scripts", "sync-skills.mjs"), "utf8");
68
+ const componentSkillNames = new Set(
69
+ [...syncScript.matchAll(/\[\s*"([^"]+)"\s*,\s*"components\//g)].map((match) => match[1]),
70
+ );
71
+ let checked = 0;
72
+
73
+ for (const entry of entries) {
74
+ if (!entry.isDirectory()) continue;
75
+ if (componentSkillNames.has(entry.name)) continue;
76
+ const source = await readFile(join(sharedSkillsRoot, entry.name, "SKILL.md"), "utf8");
77
+ const sourceToolToken = source.match(opencodeToolPattern)?.[0];
78
+ if (!sourceToolToken) continue;
79
+ const generated = await readFile(join(pluginRoot, "skills", entry.name, "SKILL.md"), "utf8");
80
+
81
+ assert.equal(generated.split(codexHarnessToolCompatibility).length - 1, 1, entry.name);
82
+ const compatibilityIndex = generated.indexOf(codexHarnessToolCompatibility);
83
+ assert.ok(compatibilityIndex >= 0, entry.name);
84
+ const firstGeneratedToolIndex = generated.search(opencodeToolPattern);
85
+ assert.ok(firstGeneratedToolIndex >= compatibilityIndex, entry.name);
86
+ assert.ok(firstGeneratedToolIndex < compatibilityIndex + codexHarnessToolCompatibility.length, entry.name);
87
+ checked += 1;
88
+ }
89
+
90
+ assert.ok(checked > 0, "at least one shared skill must exercise compatibility injection");
91
+ });
92
+
93
+ test("#given the aggregate sync implementation #when its skill adaptation pipeline is inspected #then it still applies compatibility guidance before overlays", async () => {
94
+ const script = await readFile(join(pluginRoot, "scripts", "sync-skills.mjs"), "utf8");
95
+
96
+ assert.match(
97
+ script,
98
+ /applyCodexSkillOverlays\(\s*skillName,\s*insertCodexCompatibilityGuidance\(content\),?\s*\)/,
99
+ );
100
+ assert.match(script, /await adaptSkillForCodex\(skillName\)/);
101
+ });
@@ -90,9 +90,9 @@ const startWorkCodexCompletion = `When all top-level checkboxes in \`## TODOs\`
90
90
  4. Remove or mark the Boulder work as completed.
91
91
  5. Print an \`ORCHESTRATION COMPLETE\` block with the plan path, verification commands, Global Review and Debugging Gate verdict, artifacts, and cleanup receipts.`;
92
92
 
93
- const startWorkOriginalHardRule = "- No completion claim while an applicable ultraqa adversarial class was never probed. Each applicable class needs a captured observable result; each skipped class needs a one-line not-applicable reason in the ledger.\n- No PR/branch implementation, review, or merge in the main worktree; use the task-owned git worktree.\n- No unprefixed session ids in Boulder state. Codex sessions are always `codex:<session_id>`.";
93
+ const startWorkOriginalHardRule = "- No completion claim while an applicable ultraqa adversarial class was never probed. Each applicable class needs a captured observable result; each skipped class needs a one-line not-applicable reason in the ledger.\n- No PR/branch implementation, review, or merge in the main worktree; use the task-owned git worktree.\n- No unprefixed session ids in Boulder state. Sessions are always recorded as `codex:<session_id>`.";
94
94
 
95
- const startWorkCodexHardRule = "- No completion claim while an applicable ultraqa adversarial class was never probed. Each applicable class needs a captured observable result; each skipped class needs a one-line not-applicable reason in the ledger.\n- No `ORCHESTRATION COMPLETE`, final response, PR creation, PR handoff, or merge before the Global Review and Debugging Gate passes with recorded evidence.\n- No PR/branch implementation or review in the main worktree; create or use a task-owned git worktree first.\n- No unprefixed session ids in Boulder state. Codex sessions are always `codex:<session_id>`.";
95
+ const startWorkCodexHardRule = "- No completion claim while an applicable ultraqa adversarial class was never probed. Each applicable class needs a captured observable result; each skipped class needs a one-line not-applicable reason in the ledger.\n- No `ORCHESTRATION COMPLETE`, final response, PR creation, PR handoff, or merge before the Global Review and Debugging Gate passes with recorded evidence.\n- No PR/branch implementation or review in the main worktree; create or use a task-owned git worktree first.\n- No unprefixed session ids in Boulder state. Sessions are always recorded as `codex:<session_id>`.";
96
96
 
97
97
  const reviewWorkCodexGate = `
98
98
  When \`review-work\` is used as a final implementation, PR, or \`$start-work\`
@@ -127,8 +127,8 @@ prefixes when identity is needed.
127
127
  `;
128
128
  const reviewWorkCodexGatePattern = new RegExp(reviewWorkCodexGate.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
129
129
 
130
- const ulwResearchOriginalDeliveryGates = "### The delivery gates \u2014 every gate must PASS, in order\n\nNothing reaches the user until the gates pass:\n\n1. **Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.\n2. **Proofread gate \u2014 `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It returns a defect list; fix every item and re-run the gate on the delta. Deliver only on a clean pass \u2014 this gate runs BEFORE the first delivery, not after the user finds the typo.";
131
- const ulwResearchCodexDeliveryGate = "### The delivery gate \u2014 visual QA must PASS\n\nNothing reaches the user until the gate passes:\n\n**Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, clipped tables, overflowing CJK text, blank pages, unreadable chart labels, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.";
130
+ const ulwResearchOriginalDeliveryGates = "### The delivery gates \u2014 every gate must PASS, in order\n\nNothing reaches the user until the gates pass:\n\n1. **Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, images stretched or spilling their containers, diagram or chart text rendered off the spec's font or palette, clipped tables, overflowing CJK text, blank pages, unlabeled chart values, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.\n2. **Proofread gate \u2014 `task(category=\"writing\", ...)`.** Hand the final text to a dedicated `writing` worker whose only job is language: grammar, spelling, punctuation, terminology consistency, and whether the prose reads NATIVELY in the report's own language. It returns a defect list; fix every item and re-run the gate on the delta. Deliver only on a clean pass \u2014 this gate runs BEFORE the first delivery, not after the user finds the typo.";
131
+ const ulwResearchCodexDeliveryGate = "### The delivery gate \u2014 visual QA must PASS\n\nNothing reaches the user until the gate passes:\n\n**Visual QA (always).** Render the produced artifact back to images \u2014 PDF pages to PNG, the HTML in a real browser \u2014 and look at them: missing or broken figures, images stretched or spilling their containers, diagram or chart text rendered off the spec's font or palette, clipped tables, overflowing CJK text, blank pages, unlabeled chart values, wrong page breaks. Fix and re-render until the pages are clean. Reading the source markup is not visual QA; inspect the pixels.";
132
132
 
133
133
  export function removeCodexSkillOverlays(skillName, content) {
134
134
  if (skillName === "ulw-research") {
@@ -5,8 +5,6 @@ import test from "node:test";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { sharedSkillsRootPath } from "@oh-my-opencode/shared-skills";
7
7
  import {
8
- CONTEXT_PRESSURE_SKILL_BUDGET_BYTES,
9
- assertPackagedContentMatches,
10
8
  componentSkillSources,
11
9
  expectedSkills,
12
10
  listSkillFiles,
@@ -16,7 +14,6 @@ import {
16
14
 
17
15
  const root = dirname(dirname(fileURLToPath(import.meta.url)));
18
16
  const repoRoot = join(root, "..", "..", "..");
19
- const opencodeOnlyToolPattern = /\b(?:call_omo_agent|background_output|team_[a-z_]+|task)\s*\(/;
20
17
  const generatedSkillMetadataFiles = new Set(["agents/openai.yaml"]);
21
18
 
22
19
  async function readPackagedSkillFile(...segments) {
@@ -131,7 +128,6 @@ test("#given a shared skill name collides with a Codex component skill #when agg
131
128
  // when / then
132
129
  assert.notEqual(removeCodexCompatibilityGuidance(aggregateSkill), removeCodexCompatibilityGuidance(sharedSkill));
133
130
  assert.equal(removeCodexCompatibilityGuidance(aggregateSkill), removeCodexCompatibilityGuidance(componentSkill));
134
- assert.match(aggregateSkill, /multi_agent_v1/);
135
131
  });
136
132
 
137
133
  test("#given shared skill source tests #when aggregate Codex skills are synced #then source tests are not packaged", async () => {
@@ -191,9 +187,7 @@ test("#given synced ulw-loop skill #when Codex hint metadata is inspected #then
191
187
  // then
192
188
  assert.match(skill, /^---\r?\nname: ulw-loop\r?\n/m);
193
189
  assert.match(interfaceMetadata, /display_name: "\(OmO\) ulw-loop"/);
194
- assert.doesNotMatch(interfaceMetadata, /ulw-loop \/ ulw-loop/);
195
- assert.match(interfaceMetadata, /short_description: "Goal-like ultrawork loop for systematic decomposition"/);
196
- assert.match(interfaceMetadata, /default_prompt: "Use \$ulw-loop/);
190
+ assert.match(interfaceMetadata, /^\s*default_prompt:\s*".+"$/m);
197
191
  });
198
192
 
199
193
  test("#given synced ulw-loop skill #when Codex hint metadata is inspected #then ulw-loop remains discoverable as an alias", async () => {
@@ -229,92 +223,11 @@ test("#given synced git-master skill #when inspected #then commits and git histo
229
223
 
230
224
  // then
231
225
  assert.match(skill, /^---\r?\nname: git-master\r?\n/m);
232
- assert.match(skill, /MUST USE whenever a task needs a commit or git-history investigation/);
233
- assert.match(skill, /Commit only the user's requested changes/);
234
- assert.match(skill, /Choose the Git tool by the question/);
235
- assert.match(skill, /git log -S "text"/);
236
- assert.match(skill, /git blame -L start,end -- file/);
237
226
  assert.match(interfaceMetadata, /display_name: "\(OmO\) git-master"/);
238
227
  assert.match(interfaceMetadata, /- "git commit"/);
239
228
  assert.match(interfaceMetadata, /- "history search"/);
240
229
  });
241
230
 
242
- test("#given synced ulw-loop skill #when worker guidance is inspected #then context-hygiene guidance matches the source", async () => {
243
- // given
244
- const sourceSkill = await readFile(
245
- join(root, "components", "ulw-loop", "skills", "ulw-loop", "references", "full-workflow.md"),
246
- "utf8",
247
- );
248
- const syncedSkill = await readFile(join(root, "skills", "ulw-loop", "SKILL.md"), "utf8");
249
- const syncedWorkflow = await readFile(join(root, "skills", "ulw-loop", "references", "full-workflow.md"), "utf8");
250
- // ulw-loop is V2-primary (gpt-5.6 sol/terra use the flat `wait_agent`); the `multi_agent_v1.*`
251
- // namespace is documented only as the v1 fallback, so the wait_agent refs accept the bare token.
252
- const requiredPatterns = [
253
- ["wait_agent ref", /\bwait_agent\b/],
254
- ["local spawned-name tracking", /Track spawned agent names locally/],
255
- ["wait_agent mailbox path", /wait_agent.*mailbox signals/],
256
- ["progress status contract", /WORKING:/],
257
- ["long-running plan/reviewer background guidance", /Plan and reviewer agents may run for a long time/],
258
- ["bounded plan/reviewer polling", /wait_agent.*cycles/],
259
- ["exponential backoff wait guard", /double the timeout up to ~5 minutes/],
260
- ["git-master checkpointing", /git-master/],
261
- ["touched-path commit-style probe", /touched-path commit history/],
262
- ["verified work-unit commit", /verified work unit/],
263
- ["observed commit style", /commit in the observed style/],
264
- ];
265
-
266
- // when / then
267
- for (const [label, pattern] of requiredPatterns) {
268
- assert.match(sourceSkill, pattern, `source skill missing ${label}`);
269
- assert.match(syncedWorkflow, pattern, `synced workflow missing ${label}`);
270
- }
271
- assert.match(syncedSkill, /references\/full-workflow\.md/);
272
- assert.match(syncedSkill, /wait_agent/);
273
- assert.match(syncedSkill, /close_agent/);
274
- });
275
-
276
- test("#given packaged start-work skill #when inspected #then no-plan bootstrap and adversarial verification contracts are shipped", async () => {
277
- // given
278
- const skillFile = await readPackagedSkillFile("start-work", "SKILL.md");
279
-
280
- // when / then
281
- assertPackagedContentMatches(skillFile, [
282
- ["executes Prometheus plan with Boulder state", /Prometheus work plan[\s\S]*Boulder state/],
283
- ["bootstraps ulw-plan when no selectable plan exists", /no selectable plan[\s\S]*ulw-plan|ulw-plan[\s\S]*no selectable plan/i],
284
- ["does not execute work without an approved plan", /approved plan[\s\S]*(?:before|prior to)[\s\S]*execution|execution[\s\S]*(?:requires|needs)[\s\S]*approved plan/i],
285
- ["keeps hook continuation Boulder-only", /Boulder[\s\S]*(?:continuation|Stop hook)[\s\S]*(?:only|solely)|(?:continuation|Stop hook)[\s\S]*(?:only|solely)[\s\S]*Boulder/i],
286
- ["distinguishes execution from verification", /execution[\s\S]*verification|verification[\s\S]*execution/i],
287
- ["requires dirty-worktree-aware editing", /dirty worktree/i],
288
- ["requires stale-state probes", /stale state/i],
289
- ["rejects misleading success output", /misleading success output/i],
290
- ["does not accept worker done claims without independent verification", /done claim[\s\S]*independent(?:ly)? verified|independent(?:ly)? verify[\s\S]*done claim/i],
291
- ]);
292
- });
293
-
294
- test("#given packaged ulw-plan skill #when inspected #then dynamic multi-agent planning contracts are shipped", async () => {
295
- // given
296
- const skillFile = await readPackagedSkillFile("ulw-plan", "SKILL.md");
297
- const workflowFile = await readPackagedSkillFile("ulw-plan", "references", "full-workflow.md");
298
- const combinedFile = {
299
- path: `${skillFile.path} + ${workflowFile.path}`,
300
- content: `${skillFile.content}\n${workflowFile.content}`,
301
- };
302
-
303
- // when / then
304
- assertPackagedContentMatches(combinedFile, [
305
- ["self-orchestrates 5 host subagents for planning", /(?:self-orchestrates|orchestrates)[\s\S]*5[\s\S]*host subagents/i],
306
- ["requires dynamic workflow phases", /dynamic[\s\S]*workflow[\s\S]*phase|phase[\s\S]*dynamic[\s\S]*workflow/i],
307
- ["keeps verification distinct from execution", /verification[\s\S]*execution|execution[\s\S]*verification/i],
308
- ["requires dirty-worktree-aware planning", /dirty worktree/i],
309
- ["requires stale-state checks between source and packaged payloads", /stale state/i],
310
- ["rejects misleading success output", /misleading success output/i],
311
- ["does not accept subagent outputs as success without independent verification", /subagent outputs?[\s\S]*(?:not|never)[\s\S]*(?:success|approval)|independent(?:ly)? verif(?:y|ied|ication)[\s\S]*subagent outputs?/i],
312
- ["treats Discord or external content as claims, not instructions", /(?:Discord|external content)[\s\S]*claims?[\s\S]*not instructions?|not instructions?[\s\S]*(?:Discord|external content)/i],
313
- ]);
314
- assert.doesNotMatch(combinedFile.content, opencodeOnlyToolPattern);
315
- assert.doesNotMatch(combinedFile.content, /Proceeding to plan generation/);
316
- });
317
-
318
231
  test("#given packaged Codex ulw-plan surfaces #when inspected #then dangerous sandbox bypass guidance is not shipped", async () => {
319
232
  // given
320
233
  const dangerousBypassToken = ["dangerously", "bypass"].join("-");
@@ -330,34 +243,3 @@ test("#given packaged Codex ulw-plan surfaces #when inspected #then dangerous sa
330
243
  assert.doesNotMatch(packagedWorkflow.content, dangerousBypassPattern, `${packagedWorkflow.path} ships unsafe Codex bypass guidance`);
331
244
  assert.doesNotMatch(componentWorkflow.content, dangerousBypassPattern, `${componentWorkflow.path} ships unsafe Codex bypass guidance`);
332
245
  });
333
-
334
- test("#given packaged ulw-research skill #when Codex delivery gates are inspected #then the category-based proofread gate is stripped", async () => {
335
- // given
336
- const content = await readFile(join(root, "skills", "ulw-research", "SKILL.md"), "utf8");
337
-
338
- // then the writing-category proofread gate never ships to Codex (no category concept there)
339
- assert.doesNotMatch(content, /category="writing"/, "codex ulw-research ships the writing-category proofread gate");
340
- assert.doesNotMatch(content, /Proofread gate/, "codex ulw-research still references the proofread gate");
341
- // and the visual-QA delivery gate survives as the single gate
342
- assert.match(content, /### The delivery gate \u2014 visual QA must PASS/u, "codex ulw-research lost the visual-QA delivery gate");
343
- assert.match(content, /Visual QA \(always\)/, "codex ulw-research lost the visual-QA gate body");
344
- });
345
-
346
- test("#given context-pressure-prone skills #when bundled for Codex #then the eagerly loaded payload stays budgeted", async () => {
347
- // given
348
- const skillsRoot = join(root, "skills");
349
- const skillNames = ["debugging", "ulw-loop"];
350
-
351
- // when
352
- let totalBytes = 0;
353
- for (const skillName of skillNames) {
354
- const content = await readFile(join(skillsRoot, skillName, "SKILL.md"), "utf8");
355
- totalBytes += Buffer.byteLength(content, "utf8");
356
- }
357
-
358
- // then
359
- assert.ok(
360
- totalBytes <= CONTEXT_PRESSURE_SKILL_BUDGET_BYTES,
361
- `debugging + ulw-loop eager payload is ${totalBytes} bytes, above ${CONTEXT_PRESSURE_SKILL_BUDGET_BYTES}`,
362
- );
363
- });
@@ -1,48 +1,8 @@
1
1
  import assert from "node:assert/strict";
2
- import { readFileSync } from "node:fs";
3
- import { join } from "node:path";
4
2
  import test from "node:test";
5
3
 
6
- import { root } from "./aggregate-plugin-fixture.mjs";
7
4
  import { cleanupTeamRoot, createTeamRoot, readTeamJson, runTeam } from "./teammode-safety-fixture.mjs";
8
5
 
9
- const teammodeSkillPath = join("components", "teammode", "skills", "teammode", "SKILL.md");
10
-
11
- test("#given Codex App thread ids can be ambiguous across hosts #when archive guidance is read #then it separates app-thread archival from team-state archival", () => {
12
- const body = readFileSync(join(root, teammodeSkillPath), "utf8");
13
-
14
- assert.match(
15
- body,
16
- /Ambiguous Codex thread id|ambiguous across hosts/i,
17
- "archive guidance must name the Codex App multi-host ambiguity failure instead of only saying the archive tool is unavailable",
18
- );
19
- assert.match(
20
- body,
21
- /app-thread archival blocker/i,
22
- "archive guidance must classify ambiguous app-thread ids as app-thread archival blockers",
23
- );
24
- assert.match(
25
- body,
26
- /record .*team log/i,
27
- "archive guidance must require a durable team-log record when app-thread archival cannot be proven",
28
- );
29
- assert.match(
30
- body,
31
- /continue .*team-state archive/i,
32
- "archive guidance must let the team-state archive proceed after recording the app-thread archival blocker",
33
- );
34
- assert.match(
35
- body,
36
- /archive --note/i,
37
- "archive guidance must route ambiguous app-thread archive blockers into archive --note evidence",
38
- );
39
- assert.match(
40
- body,
41
- /Do not delete/i,
42
- "archive guidance must keep evidence available until ambiguous app-thread archival is resolved",
43
- );
44
- });
45
-
46
6
  test("#given app-thread archival is blocked by an ambiguous id #when archive runs with a note #then team state is archived and keeps the blocker in the log", () => {
47
7
  const tempRoot = createTeamRoot("omo-codex-teammode-archive-ambiguity-");
48
8
  try {
@@ -3,14 +3,12 @@ import { readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import test from "node:test";
5
5
 
6
- import { root } from "./aggregate-plugin-fixture.mjs";
7
6
  import { cleanupTeamRoot, createTeamRoot, runTeam, teamDir } from "./teammode-safety-fixture.mjs";
8
7
 
9
- // The teammode guide.md is what every member actually reads. The real run of leader session
10
- // 019eed1e- proved members default to silence: 10 members, ~6 min, 4 end-of-work reports, zero
11
- // peer messages, zero mid-task reports, zero send_message_to_thread calls - because the prose said
12
- // "over-communicate relentlessly" (aspirational, no trigger) and never named the tool or targets.
13
- // These tests pin the fix: a concrete push-communication protocol is the default the manual renders.
8
+ // The teammode guide.md is what every member actually reads. A real leader-session run proved members
9
+ // default to silence when the guide never names the tool or the address book, so the tests below pin
10
+ // only the machine tokens the generator must surface: the cross-thread tool name and the team.json
11
+ // field paths members address messages by. Guide/prompt wording itself is prose and stays unpinned.
14
12
 
15
13
  function buildTwoMemberTeam(tempRoot, sessionId) {
16
14
  runTeam(tempRoot, "init", "--name", "Comms", "--session-name", "frequent", "--session", sessionId);
@@ -39,69 +37,15 @@ test("#given a bound team #when the member field manual renders #then it names t
39
37
  cleanupTeamRoot(tempRoot);
40
38
  }
41
39
  });
42
-
43
- test("#given a bound team #when the member field manual renders #then it gives concrete per-moment cadence triggers, not aspirational 'constantly'", () => {
44
- const tempRoot = createTeamRoot("omo-codex-teammode-comms-");
45
- try {
46
- buildTwoMemberTeam(tempRoot, "comms-cadence");
47
- const guide = readGuide(tempRoot, "comms-cadence");
48
-
49
- // then - a concrete heartbeat cadence the model can bind to
50
- assert.match(guide, /every few tool calls/, "guide must give a concrete heartbeat trigger");
51
- assert.match(guide, /WORKING:/, "guide must keep the WORKING heartbeat marker");
52
- assert.match(guide, /BLOCKED:/, "guide must keep the BLOCKED marker");
53
- // then - an explicit peer-notify rule so cross-cutting findings are pushed, not siloed
54
- assert.match(guide, /to a \*\*peer\*\*/, "guide must have an explicit peer-notify rule");
55
- assert.match(guide, /touches their slice/, "guide must trigger peer messages on slice-touching findings");
56
- // then - the reassurance WHY that ties the two halves together: frequent reporting is what earns
57
- // uninterrupted focus, so the leader has no reason to interrupt a member who keeps it informed
58
- assert.match(guide, /uninterrupted focus/i, "guide must tell members frequent updates buy uninterrupted focus from the leader");
59
- // then - the end-only directive that previously won is gone (it licensed batch-at-the-end reporting)
60
- assert.doesNotMatch(guide, /the moment your work is complete/, "the standalone end-only report directive must be removed");
61
- } finally {
62
- cleanupTeamRoot(tempRoot);
63
- }
64
- });
65
-
66
- test("#given a member bootstrap trigger #when it is generated #then it points at the push tool and a continuous cadence, not an end-of-work report", () => {
40
+ test("#given a member bootstrap trigger #when it is generated #then it names the cross-thread push tool", () => {
67
41
  const tempRoot = createTeamRoot("omo-codex-teammode-comms-");
68
42
  try {
69
43
  buildTwoMemberTeam(tempRoot, "comms-bootstrap");
70
44
  const prompt = runTeam(tempRoot, "member-prompt", "--team", "comms-bootstrap", "--id", "A").stdout;
71
45
 
72
- // then - the first thing a member reads tells it to push via the tool as it works
46
+ // then - the first thing a member reads names the tool it can push through
73
47
  assert.match(prompt, /codex_app\.send_message_to_thread/, "bootstrap must name the push tool");
74
- assert.match(prompt, /never just one report at the end/, "bootstrap must reject end-only reporting");
75
- // then - it no longer frames reporting as a one-shot completion event
76
- assert.doesNotMatch(prompt, /report to the leader the moment you are done/, "the end-only bootstrap line must be removed");
77
48
  } finally {
78
49
  cleanupTeamRoot(tempRoot);
79
50
  }
80
51
  });
81
-
82
- test("#given the leader-facing SKILL.md #when it describes communication #then it requires --session so members can reach the leader and frames members as pushing", () => {
83
- const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
84
-
85
- // then - the leader is told members PUSH to it (not only that the leader sends)
86
- assert.match(skill, /Members push to you/i, "SKILL.md must frame members as pushing to the leader");
87
- // then - the --session requirement is stated WITH its reason (member->leader push needs a real leader thread)
88
- assert.match(skill, /--session <your own thread id>/, "SKILL.md must require init --session <your own thread id>");
89
- assert.match(skill, /stuck polling|cannot report to you/i, "SKILL.md must explain why --session matters");
90
- });
91
-
92
- // The leader (a GPT-5.5 main session) over-polls when nothing reframes silence as work: real jobdori
93
- // run 019f07a6- fired 6 leader->child pings, 4 pure "WORKING CHECK"/"NUDGE" nags that interrupted the
94
- // child mid-slice. The member guide already mandates frequent reporting; the missing half is telling the
95
- // leader to WAIT. These tests pin that the leader-facing skill reframes quiet-as-working and gates any
96
- // outbound ping behind concrete decision rules instead of letting anxiety drive a barrage.
97
- test("#given the leader-facing SKILL.md #when it covers waiting on members #then it reframes a quiet member as working and gates leader pings behind decision rules", () => {
98
- const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
99
-
100
- // then - a quiet member between heartbeats is reframed as working, not a stall to chase
101
- // (\s+ tolerates markdown line-wrapping between the two words)
102
- assert.match(skill, /working,\s+not stalled/i, "SKILL.md must reframe a quiet member as working, not stalled");
103
- // then - outbound leader messages are gated behind explicit decision rules, not anxiety
104
- assert.match(skill, /Message a member only when/i, "SKILL.md must gate leader pings behind a concrete decision rule");
105
- // then - the anti-pattern nag pings the real run produced are named as what NOT to send
106
- assert.match(skill, /are you\s+done\?/i, "SKILL.md must name the 'are you done?' style nag as forbidden");
107
- });
@@ -71,46 +71,13 @@ test("#given a worktree-backed team has bound member threads #when guide and sta
71
71
  const status = runTeam(tempRoot, "status", "--team", sessionId).stdout;
72
72
  const prompt = runTeam(tempRoot, "member-prompt", "--team", sessionId, "--id", "A").stdout;
73
73
 
74
+ // then - guide, status, and bootstrap prompt all surface the member's bound thread link and cwd
74
75
  assert.match(guide, /codex:\/\/threads\/019ef350-ee78-72a3-bd5e-e40cebc3d814/);
75
76
  assert.match(guide, /codex:\/\/threads\/019ef2dd-5b99-7ae2-8461-ffa6ca309d23/);
76
77
  assert.match(guide, /worktree `\/tmp\/review-worktree`/);
77
78
  assert.match(status, /link=codex:\/\/threads\/019ef350-ee78-72a3-bd5e-e40cebc3d814/);
78
- assert.match(prompt, /Your Codex thread link is codex:\/\/threads\/019ef350-ee78-72a3-bd5e-e40cebc3d814/);
79
- assert.match(prompt, /Work inside `\/tmp\/review-worktree`/);
80
- assert.match(prompt, /Before editing, verify that your assigned worktree exists and contains repo files/);
81
- assert.match(prompt, /BLOCKED: worktree not ready/);
82
- } finally {
83
- cleanupTeamRoot(tempRoot);
84
- }
85
- });
86
-
87
- test("#given a worktree member has no cwd bound yet #when guide and prompt render #then they tell Codex to wait for readiness", () => {
88
- const tempRoot = createTeamRoot("omo-codex-teammode-worktree-wait-");
89
- try {
90
- const sessionId = "worktree-wait";
91
- runTeam(tempRoot, "init", "--name", "Wait", "--session-name", "worktrees", "--session", sessionId, "--worktree", "--base-branch", "main");
92
- addMember(tempRoot, sessionId, {
93
- id: "A",
94
- name: "worktree-driver",
95
- focus: "drive a pending Codex worktree thread",
96
- lens: "ownership",
97
- deliverable: "ready worktree report",
98
- });
99
- addMember(tempRoot, sessionId, {
100
- id: "B",
101
- name: "integration-watch",
102
- focus: "watch integration boundaries",
103
- lens: "perspective",
104
- deliverable: "integration notes",
105
- });
106
- runTeam(tempRoot, "bind-thread", "--team", sessionId, "--id", "A", "--thread", "019ef350-ee78-72a3-bd5e-e40cebc3d814");
107
-
108
- const guide = readFileSync(`${teamDir(tempRoot, sessionId)}/guide.md`, "utf8");
109
- const prompt = runTeam(tempRoot, "member-prompt", "--team", sessionId, "--id", "A").stdout;
110
-
111
- assert.match(guide, /If Codex returns only `pendingWorktreeId`/);
112
- assert.match(guide, /wait until Codex surfaces a real thread id/);
113
- assert.match(prompt, /If this prompt arrived before your Codex worktree checkout is ready/);
79
+ assert.match(prompt, /codex:\/\/threads\/019ef350-ee78-72a3-bd5e-e40cebc3d814/);
80
+ assert.match(prompt, /\/tmp\/review-worktree/);
114
81
  } finally {
115
82
  cleanupTeamRoot(tempRoot);
116
83
  }
@@ -3,7 +3,6 @@ import { existsSync, readFileSync, writeFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import test from "node:test";
5
5
 
6
- import { root } from "./aggregate-plugin-fixture.mjs";
7
6
  import {
8
7
  cleanupTeamRoot,
9
8
  createTeamRoot,
@@ -53,45 +52,6 @@ function addV2Members(tempRoot, sessionId) {
53
52
  );
54
53
  }
55
54
 
56
- test("#given flat V2 tools are available #when the leader reads teammode #then transport selection and user announcement precede init", () => {
57
- const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
58
- const inspectIndex = skill.indexOf("Inspect your active tool list");
59
- const initIndex = skill.indexOf('team.mjs" init');
60
-
61
- assert.notEqual(inspectIndex, -1, "skill must inspect the active tool list");
62
- assert.notEqual(initIndex, -1, "skill must still document init");
63
- assert.ok(inspectIndex < initIndex, "transport inspection must happen before init");
64
- assert.match(skill, /spawn_agent.*task_name[\s\S]*send_message[\s\S]*followup_task[\s\S]*wait_agent[\s\S]*list_agents[\s\S]*interrupt_agent/);
65
- assert.match(skill, /tell the user|announce.*transport/i);
66
- assert.match(skill, /MultiAgentV2/i);
67
- assert.match(skill, /Codex App.*fallback/i);
68
- });
69
-
70
- test("#given neither transport's tools are visible #when the leader reads teammode #then search hits are revalidated and fallback is capability-aware without team state", () => {
71
- const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
72
-
73
- const searchIndex = skill.indexOf("tool_search");
74
- const unavailableIndex = skill.indexOf("Teammode unavailable");
75
- assert.notEqual(searchIndex, -1, "skill must route hidden tools through the tool_search check");
76
- assert.notEqual(unavailableIndex, -1, "skill must give the leader unavailable announcement templates");
77
- assert.ok(searchIndex < unavailableIndex, "tool_search must precede the unavailable conclusion");
78
- assert.match(skill, /revalidate.*COMPLETE.*compatible transport set/is, "a deferred-tool hit must be revalidated as a complete transport");
79
- assert.match(skill, /another visible plain-subagent mechanism.*spawn.*communicate.*observe/is, "plain-subagent fallback requires a complete visible lifecycle");
80
- assert.match(skill, /Otherwise continue serially.*capability limitation/is, "missing all transports must continue serially rather than promise workers");
81
- assert.match(skill, /Do NOT run `init`/, "the fallback must not create team state");
82
- assert.doesNotMatch(skill, /splitting the work across plain fire-and-forget subagents/i, "the skill must not promise unavailable plain subagents");
83
- });
84
-
85
- test("#given a MultiAgentV2 team #when the leader spawns members #then guidance limits calls to exposed V2 fields", () => {
86
- const skill = readFileSync(join(root, "components", "teammode", "skills", "teammode", "SKILL.md"), "utf8");
87
-
88
- assert.match(skill, /using only the V2 schema fields/i);
89
- assert.match(skill, /`task_name`[\s\S]*`message`[\s\S]*`fork_turns`/);
90
- assert.match(skill, /role, priority, or task-specific routing instruction in `message`/i);
91
- assert.match(skill, /V2 does not accept[\s\S]*`agent_type`, `model`, `reasoning_effort`, or `service_tier`/);
92
- assert.match(skill, /inherit the[\s\S]*session model/i);
93
- });
94
-
95
55
  test("#given MultiAgentV2 transport #when members are added and bound #then task names and canonical agent paths form the address book", () => {
96
56
  const tempRoot = createTeamRoot("omo-codex-teammode-v2-transport-");
97
57
  try {
@@ -123,7 +83,6 @@ test("#given MultiAgentV2 transport #when members are added and bound #then task
123
83
  { id: "B", taskName: "mailbox_delivery", agentPath: "/root/mailbox_delivery", threadId: null, threadTitle: null, status: "active" },
124
84
  ],
125
85
  );
126
- assert.match(guide, /Transport:.*MultiAgentV2/i);
127
86
  assert.match(guide, /members\[\]\.agentPath/);
128
87
  assert.match(guide, /send_message/);
129
88
  assert.match(guide, /followup_task/);
@@ -223,9 +182,7 @@ test("#given a V2 team #when the whole team is archived without a note #then no
223
182
  const archiveEntry = team.log.find((entry) => entry.event === "archive");
224
183
 
225
184
  assert.equal(team.status, "archived");
226
- assert.doesNotMatch(result.stdout, /closed all members/i, "V2 has no runtime close/archive operation to claim");
227
185
  assert.match(result.stdout, /no runtime archive operation/i);
228
- assert.doesNotMatch(archiveEntry.detail, /all members closed/i);
229
186
  assert.match(archiveEntry.detail, /no runtime archive operation/i);
230
187
  } finally {
231
188
  cleanupTeamRoot(tempRoot);
@@ -261,7 +218,6 @@ test("#given a codex_app team #when one member is archived #then the existing wo
261
218
  const result = runTeam(tempRoot, "archive", "--team", "app-archive-member", "--id", "A");
262
219
 
263
220
  assert.match(result.stdout, /archived member A/);
264
- assert.doesNotMatch(result.stdout, /no runtime archive operation/i);
265
221
  } finally {
266
222
  cleanupTeamRoot(tempRoot);
267
223
  }
@@ -83,24 +83,21 @@ test("#given a worktree team #when worktree-add A #then a real git worktree on a
83
83
  assert.match(result.stdout, /A/);
84
84
  assert.match(result.stdout, /wait for the real Codex thread id/);
85
85
  assert.match(result.stdout, /bind-thread before sending bootstrap/);
86
- assert.doesNotMatch(result.stdout, /Tell that member to:/);
87
86
  } finally {
88
87
  cleanupTeamRoot(tempRoot);
89
88
  }
90
89
  });
91
90
 
92
- test("#given worktree-add ran #when the field manual is regenerated #then it flips the member's guide to ISOLATION IS ON with the derived branch", () => {
91
+ test("#given worktree-add ran #when the field manual is regenerated #then it shows the member's derived worktree branch", () => {
93
92
  const tempRoot = createTeamRoot("omo-codex-teammode-wt-guide-");
94
93
  try {
95
94
  initGitRepo(tempRoot);
96
95
  bootstrapTeam(tempRoot, "wt-guide", { worktree: false });
97
- // before: no isolation, so the manual tells members to signal collisions instead
98
- assert.match(readFileSync(join(teamDir(tempRoot, "wt-guide"), "guide.md"), "utf8"), /does not use isolated git worktrees/);
99
96
 
100
97
  runTeam(tempRoot, "worktree-add", "--team", "wt-guide", "--id", "A");
101
98
 
99
+ // then - the regenerated guide carries the derived branch recorded in team state
102
100
  const guide = readFileSync(join(teamDir(tempRoot, "wt-guide"), "guide.md"), "utf8");
103
- assert.match(guide, /ISOLATION IS ON/);
104
101
  assert.match(guide, /team\/wt-guide\/A/, "the member's row must show its derived worktree branch");
105
102
  } finally {
106
103
  cleanupTeamRoot(tempRoot);
@@ -225,7 +222,6 @@ test("#given a member branch that cannot be merged #when integrate runs #then it
225
222
  const out = `${result.stdout}${result.stderr}`;
226
223
  assert.notEqual(result.status, 0);
227
224
  assert.match(out, /could not integrate|not something we can merge|ghost-branch-404/i, "must surface git's actual reason");
228
- assert.doesNotMatch(out, /Conflicting files/, "a non-conflict failure must NOT be mislabeled as a merge conflict");
229
225
  } finally {
230
226
  cleanupTeamRoot(tempRoot);
231
227
  }
@@ -33,7 +33,6 @@ test("#given synced skills #when the ultrawork skill is inspected #then it carri
33
33
  const directive = readFileSync(join(root, "components", "ultrawork", "directive.md"), "utf8");
34
34
  assert.match(skill, /^---\nname: ultrawork\n/);
35
35
  assert.equal(skill.endsWith(directive), true);
36
- assert.match(skill, /## 1\. Create the goal with binding success criteria/);
37
36
  });
38
37
 
39
38
  test("#given the built ultrawork CLI #when a ulw prompt is submitted #then a compact skill pointer is emitted", () => {
@@ -42,10 +41,8 @@ test("#given the built ultrawork CLI #when a ulw prompt is submitted #then a com
42
41
  const output = JSON.parse(result.stdout);
43
42
  const context = output.hookSpecificOutput.additionalContext;
44
43
  assert.match(context, /^<ultrawork-mode>/);
45
- assert.match(context, /First user-visible line this turn MUST be exactly:/);
46
44
  assert.match(context, /create_goal/);
47
45
  assert.equal(context.includes(skillPath), true);
48
- assert.equal(context.includes("Tier triage"), false);
49
46
  assert.equal(Buffer.byteLength(context, "utf8") < POINTER_MAX_BYTES, true);
50
47
  });
51
48
 
@@ -54,15 +54,12 @@ function matchesCas(state, expected, clauses) {
54
54
 
55
55
  for (const surface of surfaces) {
56
56
  test(`#given ${surface.name} #when deeper review becomes required before plan completion #then durable request state covers explicit and automatic review without inventing a digest`, async () => {
57
- const skill = await readFile(surface.skillPath, "utf8");
58
57
  const workflow = await readFile(surface.workflowPath, "utf8");
59
58
  const contract = readJsonContract(workflow, "ulw-plan-review-request-state-contract");
60
59
 
61
60
  assert.equal(contract.transition, "replace");
62
61
  assert.equal(contract.phase, "review_requested");
63
62
  assert.deepEqual(contract.applies_when, ["explicit_review_modifier_before_complete_plan", "intent=unclear_and_nontrivial"]);
64
- assert.match(skill, /Include `--review-required`[\s\S]{0,180}non-Trivial UNCLEAR/);
65
- assert.match(workflow, /--draft-only/);
66
63
  assert.equal(contract.atomic, true);
67
64
  assert.equal(contract.review_required, true);
68
65
  assert.equal(contract.plan_path, ".omo/plans/<slug>.md");