oh-my-codex 0.20.5 → 0.21.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 (687) hide show
  1. package/Cargo.toml +1 -1
  2. package/README.md +20 -17
  3. package/dist/agents/__tests__/definitions.test.js +0 -27
  4. package/dist/agents/__tests__/definitions.test.js.map +1 -1
  5. package/dist/agents/__tests__/native-config.test.js +3 -8
  6. package/dist/agents/__tests__/native-config.test.js.map +1 -1
  7. package/dist/agents/definitions.d.ts.map +1 -1
  8. package/dist/agents/definitions.js +0 -41
  9. package/dist/agents/definitions.js.map +1 -1
  10. package/dist/agents/policy.d.ts.map +1 -1
  11. package/dist/agents/policy.js +0 -1
  12. package/dist/agents/policy.js.map +1 -1
  13. package/dist/autopilot/__tests__/completion-gate-advisory.test.d.ts +2 -0
  14. package/dist/autopilot/__tests__/completion-gate-advisory.test.d.ts.map +1 -0
  15. package/dist/autopilot/__tests__/completion-gate-advisory.test.js +383 -0
  16. package/dist/autopilot/__tests__/completion-gate-advisory.test.js.map +1 -0
  17. package/dist/autopilot/completion-gate.d.ts +6 -1
  18. package/dist/autopilot/completion-gate.d.ts.map +1 -1
  19. package/dist/autopilot/completion-gate.js +247 -7
  20. package/dist/autopilot/completion-gate.js.map +1 -1
  21. package/dist/catalog/__tests__/generator.test.js +15 -10
  22. package/dist/catalog/__tests__/generator.test.js.map +1 -1
  23. package/dist/catalog/__tests__/plugin-bundle-ssot.test.js +13 -7
  24. package/dist/catalog/__tests__/plugin-bundle-ssot.test.js.map +1 -1
  25. package/dist/catalog/__tests__/schema.test.js +3 -5
  26. package/dist/catalog/__tests__/schema.test.js.map +1 -1
  27. package/dist/catalog/schema.js +1 -1
  28. package/dist/catalog/schema.js.map +1 -1
  29. package/dist/cli/__tests__/autopilot.test.d.ts +2 -0
  30. package/dist/cli/__tests__/autopilot.test.d.ts.map +1 -0
  31. package/dist/cli/__tests__/autopilot.test.js +143 -0
  32. package/dist/cli/__tests__/autopilot.test.js.map +1 -0
  33. package/dist/cli/__tests__/codex-plugin-layout.test.js +6 -2
  34. package/dist/cli/__tests__/codex-plugin-layout.test.js.map +1 -1
  35. package/dist/cli/__tests__/doctor-state-root-binding.test.js +69 -2
  36. package/dist/cli/__tests__/doctor-state-root-binding.test.js.map +1 -1
  37. package/dist/cli/__tests__/doctor-team.test.js +85 -0
  38. package/dist/cli/__tests__/doctor-team.test.js.map +1 -1
  39. package/dist/cli/__tests__/doctor-warning-copy.test.js +3 -3
  40. package/dist/cli/__tests__/doctor-warning-copy.test.js.map +1 -1
  41. package/dist/cli/__tests__/launch-fallback.test.js +105 -0
  42. package/dist/cli/__tests__/launch-fallback.test.js.map +1 -1
  43. package/dist/cli/__tests__/package-bin-contract.test.js +5 -8
  44. package/dist/cli/__tests__/package-bin-contract.test.js.map +1 -1
  45. package/dist/cli/__tests__/ralph-deslop-contract.test.js +4 -18
  46. package/dist/cli/__tests__/ralph-deslop-contract.test.js.map +1 -1
  47. package/dist/cli/__tests__/ralph-goal-mode-contract.test.js +4 -30
  48. package/dist/cli/__tests__/ralph-goal-mode-contract.test.js.map +1 -1
  49. package/dist/cli/__tests__/ralph-prd-deep-interview.test.js +4 -15
  50. package/dist/cli/__tests__/ralph-prd-deep-interview.test.js.map +1 -1
  51. package/dist/cli/__tests__/ralplan.test.js +49 -4
  52. package/dist/cli/__tests__/ralplan.test.js.map +1 -1
  53. package/dist/cli/__tests__/session-scoped-runtime.test.js +35 -0
  54. package/dist/cli/__tests__/session-scoped-runtime.test.js.map +1 -1
  55. package/dist/cli/__tests__/session-search-help.test.js +65 -3
  56. package/dist/cli/__tests__/session-search-help.test.js.map +1 -1
  57. package/dist/cli/__tests__/setup-agents-overwrite.test.js +49 -0
  58. package/dist/cli/__tests__/setup-agents-overwrite.test.js.map +1 -1
  59. package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js +34 -0
  60. package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js.map +1 -1
  61. package/dist/cli/__tests__/setup-hooks-trust-e2e.test.js +1 -1
  62. package/dist/cli/__tests__/setup-hooks-trust-e2e.test.js.map +1 -1
  63. package/dist/cli/__tests__/setup-install-mode.test.js +75 -22
  64. package/dist/cli/__tests__/setup-install-mode.test.js.map +1 -1
  65. package/dist/cli/__tests__/setup-prompts-overwrite.test.js +1 -1
  66. package/dist/cli/__tests__/setup-prompts-overwrite.test.js.map +1 -1
  67. package/dist/cli/__tests__/setup-refresh.test.js +3 -6
  68. package/dist/cli/__tests__/setup-refresh.test.js.map +1 -1
  69. package/dist/cli/__tests__/setup-skills-overwrite.test.js +180 -21
  70. package/dist/cli/__tests__/setup-skills-overwrite.test.js.map +1 -1
  71. package/dist/cli/__tests__/ultragoal.test.js +44 -0
  72. package/dist/cli/__tests__/ultragoal.test.js.map +1 -1
  73. package/dist/cli/__tests__/uninstall.test.js +23 -23
  74. package/dist/cli/__tests__/uninstall.test.js.map +1 -1
  75. package/dist/cli/__tests__/update.test.js +81 -1
  76. package/dist/cli/__tests__/update.test.js.map +1 -1
  77. package/dist/cli/autopilot.d.ts +8 -0
  78. package/dist/cli/autopilot.d.ts.map +1 -0
  79. package/dist/cli/autopilot.js +160 -0
  80. package/dist/cli/autopilot.js.map +1 -0
  81. package/dist/cli/doctor.d.ts +12 -0
  82. package/dist/cli/doctor.d.ts.map +1 -1
  83. package/dist/cli/doctor.js +159 -19
  84. package/dist/cli/doctor.js.map +1 -1
  85. package/dist/cli/index.d.ts +1 -1
  86. package/dist/cli/index.d.ts.map +1 -1
  87. package/dist/cli/index.js +82 -15
  88. package/dist/cli/index.js.map +1 -1
  89. package/dist/cli/mcp-parity.d.ts.map +1 -1
  90. package/dist/cli/mcp-parity.js +7 -3
  91. package/dist/cli/mcp-parity.js.map +1 -1
  92. package/dist/cli/native-assets.d.ts +1 -1
  93. package/dist/cli/native-assets.d.ts.map +1 -1
  94. package/dist/cli/package-manager-ownership.d.ts +6 -0
  95. package/dist/cli/package-manager-ownership.d.ts.map +1 -1
  96. package/dist/cli/package-manager-ownership.js +15 -0
  97. package/dist/cli/package-manager-ownership.js.map +1 -1
  98. package/dist/cli/plugin-marketplace.d.ts +1 -0
  99. package/dist/cli/plugin-marketplace.d.ts.map +1 -1
  100. package/dist/cli/plugin-marketplace.js +123 -55
  101. package/dist/cli/plugin-marketplace.js.map +1 -1
  102. package/dist/cli/ralplan.d.ts +3 -1
  103. package/dist/cli/ralplan.d.ts.map +1 -1
  104. package/dist/cli/ralplan.js +59 -1
  105. package/dist/cli/ralplan.js.map +1 -1
  106. package/dist/cli/session-search.d.ts.map +1 -1
  107. package/dist/cli/session-search.js +38 -1
  108. package/dist/cli/session-search.js.map +1 -1
  109. package/dist/cli/setup.d.ts +3 -0
  110. package/dist/cli/setup.d.ts.map +1 -1
  111. package/dist/cli/setup.js +370 -183
  112. package/dist/cli/setup.js.map +1 -1
  113. package/dist/cli/ultragoal.d.ts +1 -1
  114. package/dist/cli/ultragoal.d.ts.map +1 -1
  115. package/dist/cli/ultragoal.js +8 -5
  116. package/dist/cli/ultragoal.js.map +1 -1
  117. package/dist/cli/update.d.ts +2 -1
  118. package/dist/cli/update.d.ts.map +1 -1
  119. package/dist/cli/update.js +21 -1
  120. package/dist/cli/update.js.map +1 -1
  121. package/dist/compat/__tests__/upgrade-from-0-20.test.d.ts +2 -0
  122. package/dist/compat/__tests__/upgrade-from-0-20.test.d.ts.map +1 -0
  123. package/dist/compat/__tests__/upgrade-from-0-20.test.js +109 -0
  124. package/dist/compat/__tests__/upgrade-from-0-20.test.js.map +1 -0
  125. package/dist/compat/upgrade-from-0-20.d.ts +64 -0
  126. package/dist/compat/upgrade-from-0-20.d.ts.map +1 -0
  127. package/dist/compat/upgrade-from-0-20.js +276 -0
  128. package/dist/compat/upgrade-from-0-20.js.map +1 -0
  129. package/dist/hooks/__tests__/analyze-skill-contract.test.js +24 -31
  130. package/dist/hooks/__tests__/analyze-skill-contract.test.js.map +1 -1
  131. package/dist/hooks/__tests__/anti-slop-workflow.test.js +66 -135
  132. package/dist/hooks/__tests__/anti-slop-workflow.test.js.map +1 -1
  133. package/dist/hooks/__tests__/autopilot-skill-contract.test.js +47 -129
  134. package/dist/hooks/__tests__/autopilot-skill-contract.test.js.map +1 -1
  135. package/dist/hooks/__tests__/code-review-skill-contract.test.js +16 -18
  136. package/dist/hooks/__tests__/code-review-skill-contract.test.js.map +1 -1
  137. package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts +2 -14
  138. package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts.map +1 -1
  139. package/dist/hooks/__tests__/consensus-execution-handoff.test.js +56 -234
  140. package/dist/hooks/__tests__/consensus-execution-handoff.test.js.map +1 -1
  141. package/dist/hooks/__tests__/deep-interview-contract.test.js +1 -3
  142. package/dist/hooks/__tests__/deep-interview-contract.test.js.map +1 -1
  143. package/dist/hooks/__tests__/design-skill.test.js +18 -16
  144. package/dist/hooks/__tests__/design-skill.test.js.map +1 -1
  145. package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js +24 -20
  146. package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js.map +1 -1
  147. package/dist/hooks/__tests__/issue-3293-autopilot-handoff.test.js +8 -16
  148. package/dist/hooks/__tests__/issue-3293-autopilot-handoff.test.js.map +1 -1
  149. package/dist/hooks/__tests__/issue-3497-hook-simplification.test.d.ts +2 -0
  150. package/dist/hooks/__tests__/issue-3497-hook-simplification.test.d.ts.map +1 -0
  151. package/dist/hooks/__tests__/issue-3497-hook-simplification.test.js +169 -0
  152. package/dist/hooks/__tests__/issue-3497-hook-simplification.test.js.map +1 -0
  153. package/dist/hooks/__tests__/keyword-detector.test.js +137 -908
  154. package/dist/hooks/__tests__/keyword-detector.test.js.map +1 -1
  155. package/dist/hooks/__tests__/notify-fallback-watcher.test.js +4 -4
  156. package/dist/hooks/__tests__/notify-fallback-watcher.test.js.map +1 -1
  157. package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js +18 -54
  158. package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js.map +1 -1
  159. package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js +14 -904
  160. package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js.map +1 -1
  161. package/dist/hooks/__tests__/notify-hook-session-scope.test.js +5 -5
  162. package/dist/hooks/__tests__/notify-hook-session-scope.test.js.map +1 -1
  163. package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js +5 -5
  164. package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js.map +1 -1
  165. package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js +7 -7
  166. package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js.map +1 -1
  167. package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js +7 -6
  168. package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js.map +1 -1
  169. package/dist/hooks/__tests__/pre-context-gate-skills.test.js +19 -21
  170. package/dist/hooks/__tests__/pre-context-gate-skills.test.js.map +1 -1
  171. package/dist/hooks/__tests__/prompt-guidance-contract.test.js +15 -4
  172. package/dist/hooks/__tests__/prompt-guidance-contract.test.js.map +1 -1
  173. package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js +23 -28
  174. package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js.map +1 -1
  175. package/dist/hooks/__tests__/research-workflow-boundaries.test.js +9 -8
  176. package/dist/hooks/__tests__/research-workflow-boundaries.test.js.map +1 -1
  177. package/dist/hooks/__tests__/session.test.js +599 -18
  178. package/dist/hooks/__tests__/session.test.js.map +1 -1
  179. package/dist/hooks/__tests__/skill-catalog-hygiene.test.js +13 -22
  180. package/dist/hooks/__tests__/skill-catalog-hygiene.test.js.map +1 -1
  181. package/dist/hooks/__tests__/skill-guidance-contract.test.js +3 -13
  182. package/dist/hooks/__tests__/skill-guidance-contract.test.js.map +1 -1
  183. package/dist/hooks/__tests__/sunset-routing-contract.test.d.ts +2 -0
  184. package/dist/hooks/__tests__/sunset-routing-contract.test.d.ts.map +1 -0
  185. package/dist/hooks/__tests__/sunset-routing-contract.test.js +172 -0
  186. package/dist/hooks/__tests__/sunset-routing-contract.test.js.map +1 -0
  187. package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js +2 -2
  188. package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js.map +1 -1
  189. package/dist/hooks/__tests__/tmux-hook-engine.test.js +18 -3
  190. package/dist/hooks/__tests__/tmux-hook-engine.test.js.map +1 -1
  191. package/dist/hooks/__tests__/visual-ralph-skill.test.js +20 -17
  192. package/dist/hooks/__tests__/visual-ralph-skill.test.js.map +1 -1
  193. package/dist/hooks/__tests__/visual-verdict-loop.test.js +17 -18
  194. package/dist/hooks/__tests__/visual-verdict-loop.test.js.map +1 -1
  195. package/dist/hooks/keyword-detector.d.ts +7 -55
  196. package/dist/hooks/keyword-detector.d.ts.map +1 -1
  197. package/dist/hooks/keyword-detector.js +155 -363
  198. package/dist/hooks/keyword-detector.js.map +1 -1
  199. package/dist/hooks/keyword-registry.d.ts.map +1 -1
  200. package/dist/hooks/keyword-registry.js +14 -26
  201. package/dist/hooks/keyword-registry.js.map +1 -1
  202. package/dist/hooks/native/capability-warnings.d.ts +16 -0
  203. package/dist/hooks/native/capability-warnings.d.ts.map +1 -0
  204. package/dist/hooks/native/capability-warnings.js +40 -0
  205. package/dist/hooks/native/capability-warnings.js.map +1 -0
  206. package/dist/hooks/native/index.d.ts +17 -0
  207. package/dist/hooks/native/index.d.ts.map +1 -0
  208. package/dist/hooks/native/index.js +17 -0
  209. package/dist/hooks/native/index.js.map +1 -0
  210. package/dist/hooks/native/pre-tool-use-advisory.d.ts +17 -0
  211. package/dist/hooks/native/pre-tool-use-advisory.d.ts.map +1 -0
  212. package/dist/hooks/native/pre-tool-use-advisory.js +112 -0
  213. package/dist/hooks/native/pre-tool-use-advisory.js.map +1 -0
  214. package/dist/hooks/native/types.d.ts +30 -0
  215. package/dist/hooks/native/types.d.ts.map +1 -0
  216. package/dist/hooks/native/types.js +22 -0
  217. package/dist/hooks/native/types.js.map +1 -0
  218. package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -1
  219. package/dist/hooks/prompt-guidance-contract.js +46 -93
  220. package/dist/hooks/prompt-guidance-contract.js.map +1 -1
  221. package/dist/hooks/session.d.ts +17 -4
  222. package/dist/hooks/session.d.ts.map +1 -1
  223. package/dist/hooks/session.js +572 -25
  224. package/dist/hooks/session.js.map +1 -1
  225. package/dist/hooks/sunset-stub.d.ts +17 -0
  226. package/dist/hooks/sunset-stub.d.ts.map +1 -0
  227. package/dist/hooks/sunset-stub.js +125 -0
  228. package/dist/hooks/sunset-stub.js.map +1 -0
  229. package/dist/hud/__tests__/tmux-split-realtmux.test.d.ts +2 -0
  230. package/dist/hud/__tests__/tmux-split-realtmux.test.d.ts.map +1 -0
  231. package/dist/hud/__tests__/tmux-split-realtmux.test.js +112 -0
  232. package/dist/hud/__tests__/tmux-split-realtmux.test.js.map +1 -0
  233. package/dist/hud/__tests__/tmux.test.js +63 -1
  234. package/dist/hud/__tests__/tmux.test.js.map +1 -1
  235. package/dist/hud/tmux.d.ts +1 -0
  236. package/dist/hud/tmux.d.ts.map +1 -1
  237. package/dist/hud/tmux.js +17 -9
  238. package/dist/hud/tmux.js.map +1 -1
  239. package/dist/mcp/__tests__/state-server-ralph-phase.test.js +29 -4
  240. package/dist/mcp/__tests__/state-server-ralph-phase.test.js.map +1 -1
  241. package/dist/mcp/__tests__/state-server-schema.test.js +13 -3
  242. package/dist/mcp/__tests__/state-server-schema.test.js.map +1 -1
  243. package/dist/mcp/__tests__/state-server.test.js +11 -1033
  244. package/dist/mcp/__tests__/state-server.test.js.map +1 -1
  245. package/dist/mcp/state-server.d.ts +67 -96
  246. package/dist/mcp/state-server.d.ts.map +1 -1
  247. package/dist/mcp/state-server.js +116 -67
  248. package/dist/mcp/state-server.js.map +1 -1
  249. package/dist/modes/__tests__/base-autopilot-gates.test.js +1 -197
  250. package/dist/modes/__tests__/base-autopilot-gates.test.js.map +1 -1
  251. package/dist/modes/__tests__/base-autoresearch-contract.test.js +1 -85
  252. package/dist/modes/__tests__/base-autoresearch-contract.test.js.map +1 -1
  253. package/dist/modes/__tests__/base-multi-state-compat.test.js +1 -35
  254. package/dist/modes/__tests__/base-multi-state-compat.test.js.map +1 -1
  255. package/dist/modes/__tests__/base-session-scope.test.js +1 -158
  256. package/dist/modes/__tests__/base-session-scope.test.js.map +1 -1
  257. package/dist/modes/base.d.ts +1 -1
  258. package/dist/modes/base.d.ts.map +1 -1
  259. package/dist/modes/base.js +56 -85
  260. package/dist/modes/base.js.map +1 -1
  261. package/dist/native-assets/policy.d.ts +1 -1
  262. package/dist/native-assets/policy.d.ts.map +1 -1
  263. package/dist/native-assets/policy.js +1 -1
  264. package/dist/native-assets/policy.js.map +1 -1
  265. package/dist/notifications/__tests__/formatter.test.js +8 -0
  266. package/dist/notifications/__tests__/formatter.test.js.map +1 -1
  267. package/dist/notifications/__tests__/template-engine.test.js +8 -0
  268. package/dist/notifications/__tests__/template-engine.test.js.map +1 -1
  269. package/dist/notifications/formatter.js +1 -1
  270. package/dist/notifications/formatter.js.map +1 -1
  271. package/dist/notifications/template-engine.js +1 -1
  272. package/dist/notifications/template-engine.js.map +1 -1
  273. package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js +0 -21
  274. package/dist/planning/__tests__/approved-execution-lifecycle-matrix.test.js.map +1 -1
  275. package/dist/question/autopilot-wait.d.ts.map +1 -1
  276. package/dist/question/autopilot-wait.js +2 -2
  277. package/dist/question/autopilot-wait.js.map +1 -1
  278. package/dist/question/deep-interview.d.ts +1 -2
  279. package/dist/question/deep-interview.d.ts.map +1 -1
  280. package/dist/question/deep-interview.js +4 -4
  281. package/dist/question/deep-interview.js.map +1 -1
  282. package/dist/ralplan/__tests__/runtime.test.js +44 -789
  283. package/dist/ralplan/__tests__/runtime.test.js.map +1 -1
  284. package/dist/ralplan/runtime.d.ts +1 -1
  285. package/dist/ralplan/runtime.d.ts.map +1 -1
  286. package/dist/ralplan/runtime.js +116 -29
  287. package/dist/ralplan/runtime.js.map +1 -1
  288. package/dist/runtime/bridge.d.ts.map +1 -1
  289. package/dist/runtime/bridge.js +45 -0
  290. package/dist/runtime/bridge.js.map +1 -1
  291. package/dist/scripts/__tests__/codex-native-hook.test.js +7361 -19497
  292. package/dist/scripts/__tests__/codex-native-hook.test.js.map +1 -1
  293. package/dist/scripts/__tests__/docs-site-contract.test.js +2 -2
  294. package/dist/scripts/__tests__/docs-site-contract.test.js.map +1 -1
  295. package/dist/scripts/__tests__/generated-artifact-drift.test.d.ts +2 -0
  296. package/dist/scripts/__tests__/generated-artifact-drift.test.d.ts.map +1 -0
  297. package/dist/scripts/__tests__/generated-artifact-drift.test.js +84 -0
  298. package/dist/scripts/__tests__/generated-artifact-drift.test.js.map +1 -0
  299. package/dist/scripts/__tests__/issue-3293-callsite-parity.test.js +13 -3
  300. package/dist/scripts/__tests__/issue-3293-callsite-parity.test.js.map +1 -1
  301. package/dist/scripts/__tests__/issue-3293-hook-owned-cancel.test.js +32 -84
  302. package/dist/scripts/__tests__/issue-3293-hook-owned-cancel.test.js.map +1 -1
  303. package/dist/scripts/__tests__/issue-3311-ultragoal-native-outside-tmux.test.js +69 -404
  304. package/dist/scripts/__tests__/issue-3311-ultragoal-native-outside-tmux.test.js.map +1 -1
  305. package/dist/scripts/__tests__/issue-3358-ultragoal-cancel-lifecycle.test.js +107 -624
  306. package/dist/scripts/__tests__/issue-3358-ultragoal-cancel-lifecycle.test.js.map +1 -1
  307. package/dist/scripts/__tests__/issue-3369-autopilot-ralplan-state-machine.test.js +3 -171
  308. package/dist/scripts/__tests__/issue-3369-autopilot-ralplan-state-machine.test.js.map +1 -1
  309. package/dist/scripts/__tests__/issue-3481-conductor-deadlock.test.d.ts +2 -0
  310. package/dist/scripts/__tests__/issue-3481-conductor-deadlock.test.d.ts.map +1 -0
  311. package/dist/scripts/__tests__/issue-3481-conductor-deadlock.test.js +63 -0
  312. package/dist/scripts/__tests__/issue-3481-conductor-deadlock.test.js.map +1 -0
  313. package/dist/scripts/__tests__/issue-3486-pretooluse-lock-regression.test.d.ts +2 -0
  314. package/dist/scripts/__tests__/issue-3486-pretooluse-lock-regression.test.d.ts.map +1 -0
  315. package/dist/scripts/__tests__/issue-3486-pretooluse-lock-regression.test.js +65 -0
  316. package/dist/scripts/__tests__/issue-3486-pretooluse-lock-regression.test.js.map +1 -0
  317. package/dist/scripts/__tests__/issue-3536-external-team-state-root.test.d.ts +2 -0
  318. package/dist/scripts/__tests__/issue-3536-external-team-state-root.test.d.ts.map +1 -0
  319. package/dist/scripts/__tests__/issue-3536-external-team-state-root.test.js +189 -0
  320. package/dist/scripts/__tests__/issue-3536-external-team-state-root.test.js.map +1 -0
  321. package/dist/scripts/__tests__/prompt-inventory.test.js +54 -1
  322. package/dist/scripts/__tests__/prompt-inventory.test.js.map +1 -1
  323. package/dist/scripts/__tests__/reasoning-artifact-contract.test.js +2 -2
  324. package/dist/scripts/__tests__/reasoning-artifact-contract.test.js.map +1 -1
  325. package/dist/scripts/__tests__/role-intent-bootstrap-e2e-3181.test.js +46 -77
  326. package/dist/scripts/__tests__/role-intent-bootstrap-e2e-3181.test.js.map +1 -1
  327. package/dist/scripts/__tests__/smoke-packed-install.test.js +26 -17
  328. package/dist/scripts/__tests__/smoke-packed-install.test.js.map +1 -1
  329. package/dist/scripts/codex-native-hook.d.ts +1 -1
  330. package/dist/scripts/codex-native-hook.d.ts.map +1 -1
  331. package/dist/scripts/codex-native-hook.js +187 -979
  332. package/dist/scripts/codex-native-hook.js.map +1 -1
  333. package/dist/scripts/codex-native-pre-post.d.ts.map +1 -1
  334. package/dist/scripts/codex-native-pre-post.js +8 -20
  335. package/dist/scripts/codex-native-pre-post.js.map +1 -1
  336. package/dist/scripts/notify-hook/auto-nudge.d.ts +2 -48
  337. package/dist/scripts/notify-hook/auto-nudge.d.ts.map +1 -1
  338. package/dist/scripts/notify-hook/auto-nudge.js +1 -0
  339. package/dist/scripts/notify-hook/auto-nudge.js.map +1 -1
  340. package/dist/scripts/notify-hook/team-dispatch.d.ts.map +1 -1
  341. package/dist/scripts/notify-hook/team-dispatch.js +8 -5
  342. package/dist/scripts/notify-hook/team-dispatch.js.map +1 -1
  343. package/dist/scripts/notify-hook/team-tmux-guard.d.ts +1 -1
  344. package/dist/scripts/notify-hook/team-tmux-guard.d.ts.map +1 -1
  345. package/dist/scripts/notify-hook/team-tmux-guard.js +3 -2
  346. package/dist/scripts/notify-hook/team-tmux-guard.js.map +1 -1
  347. package/dist/scripts/notify-hook.d.ts.map +1 -1
  348. package/dist/scripts/notify-hook.js +2 -51
  349. package/dist/scripts/notify-hook.js.map +1 -1
  350. package/dist/scripts/prompt-inventory.d.ts +39 -0
  351. package/dist/scripts/prompt-inventory.d.ts.map +1 -1
  352. package/dist/scripts/prompt-inventory.js +108 -3
  353. package/dist/scripts/prompt-inventory.js.map +1 -1
  354. package/dist/scripts/run-compiled-ci.js +2 -0
  355. package/dist/scripts/run-compiled-ci.js.map +1 -1
  356. package/dist/scripts/run-test-files.js +1 -0
  357. package/dist/scripts/run-test-files.js.map +1 -1
  358. package/dist/scripts/smoke-packed-install.d.ts.map +1 -1
  359. package/dist/scripts/smoke-packed-install.js +2 -8
  360. package/dist/scripts/smoke-packed-install.js.map +1 -1
  361. package/dist/scripts/sync-prompt-guidance-fragments.js +62 -20
  362. package/dist/scripts/sync-prompt-guidance-fragments.js.map +1 -1
  363. package/dist/scripts/tmux-hook-engine.d.ts +1 -1
  364. package/dist/scripts/tmux-hook-engine.d.ts.map +1 -1
  365. package/dist/scripts/tmux-hook-engine.js +3 -3
  366. package/dist/scripts/tmux-hook-engine.js.map +1 -1
  367. package/dist/scripts/verify-capabilities-lock.d.ts +3 -0
  368. package/dist/scripts/verify-capabilities-lock.d.ts.map +1 -0
  369. package/dist/scripts/verify-capabilities-lock.js +22 -0
  370. package/dist/scripts/verify-capabilities-lock.js.map +1 -0
  371. package/dist/state/__tests__/authority-decreasing.test.d.ts +2 -0
  372. package/dist/state/__tests__/authority-decreasing.test.d.ts.map +1 -0
  373. package/dist/state/__tests__/authority-decreasing.test.js +78 -0
  374. package/dist/state/__tests__/authority-decreasing.test.js.map +1 -0
  375. package/dist/state/__tests__/handoff-carrier.test.d.ts +2 -0
  376. package/dist/state/__tests__/handoff-carrier.test.d.ts.map +1 -0
  377. package/dist/state/__tests__/handoff-carrier.test.js +96 -0
  378. package/dist/state/__tests__/handoff-carrier.test.js.map +1 -0
  379. package/dist/state/__tests__/operations.test.js +339 -1596
  380. package/dist/state/__tests__/operations.test.js.map +1 -1
  381. package/dist/state/__tests__/single-writer-invariant.test.d.ts +2 -0
  382. package/dist/state/__tests__/single-writer-invariant.test.d.ts.map +1 -0
  383. package/dist/state/__tests__/single-writer-invariant.test.js +342 -0
  384. package/dist/state/__tests__/single-writer-invariant.test.js.map +1 -0
  385. package/dist/state/__tests__/stale-state-neutralization.test.d.ts +2 -0
  386. package/dist/state/__tests__/stale-state-neutralization.test.d.ts.map +1 -0
  387. package/dist/state/__tests__/stale-state-neutralization.test.js +84 -0
  388. package/dist/state/__tests__/stale-state-neutralization.test.js.map +1 -0
  389. package/dist/state/__tests__/workflow-transition.test.js +20 -33
  390. package/dist/state/__tests__/workflow-transition.test.js.map +1 -1
  391. package/dist/state/handoff-carrier.d.ts +46 -0
  392. package/dist/state/handoff-carrier.d.ts.map +1 -0
  393. package/dist/state/handoff-carrier.js +85 -0
  394. package/dist/state/handoff-carrier.js.map +1 -0
  395. package/dist/state/namespace-owners.d.ts +34 -0
  396. package/dist/state/namespace-owners.d.ts.map +1 -0
  397. package/dist/state/namespace-owners.js +127 -0
  398. package/dist/state/namespace-owners.js.map +1 -0
  399. package/dist/state/operations.d.ts +6 -4
  400. package/dist/state/operations.d.ts.map +1 -1
  401. package/dist/state/operations.js +81 -226
  402. package/dist/state/operations.js.map +1 -1
  403. package/dist/state/skill-active.d.ts.map +1 -1
  404. package/dist/state/skill-active.js +1 -8
  405. package/dist/state/skill-active.js.map +1 -1
  406. package/dist/state/workflow-transition-reconcile.d.ts.map +1 -1
  407. package/dist/state/workflow-transition-reconcile.js +5 -31
  408. package/dist/state/workflow-transition-reconcile.js.map +1 -1
  409. package/dist/state/workflow-transition.d.ts +1 -27
  410. package/dist/state/workflow-transition.d.ts.map +1 -1
  411. package/dist/state/workflow-transition.js +6 -789
  412. package/dist/state/workflow-transition.js.map +1 -1
  413. package/dist/team/__tests__/api-interop.test.js +1 -0
  414. package/dist/team/__tests__/api-interop.test.js.map +1 -1
  415. package/dist/team/__tests__/scaling.test.js +47 -8
  416. package/dist/team/__tests__/scaling.test.js.map +1 -1
  417. package/dist/team/__tests__/team-ops-contract.test.js +1 -0
  418. package/dist/team/__tests__/team-ops-contract.test.js.map +1 -1
  419. package/dist/team/__tests__/tmux-session.test.js +212 -15
  420. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  421. package/dist/team/__tests__/tmux-source-authority-realtmux.test.js +11 -1
  422. package/dist/team/__tests__/tmux-source-authority-realtmux.test.js.map +1 -1
  423. package/dist/team/__tests__/worker-bootstrap.test.js +11 -13
  424. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  425. package/dist/team/__tests__/worker-provenance.test.d.ts +2 -0
  426. package/dist/team/__tests__/worker-provenance.test.d.ts.map +1 -0
  427. package/dist/team/__tests__/worker-provenance.test.js +251 -0
  428. package/dist/team/__tests__/worker-provenance.test.js.map +1 -0
  429. package/dist/team/api-interop.d.ts.map +1 -1
  430. package/dist/team/api-interop.js +14 -8
  431. package/dist/team/api-interop.js.map +1 -1
  432. package/dist/team/mcp-comm.d.ts.map +1 -1
  433. package/dist/team/mcp-comm.js +3 -8
  434. package/dist/team/mcp-comm.js.map +1 -1
  435. package/dist/team/scaling.js +1 -1
  436. package/dist/team/scaling.js.map +1 -1
  437. package/dist/team/state.d.ts +1 -0
  438. package/dist/team/state.d.ts.map +1 -1
  439. package/dist/team/state.js +11 -1
  440. package/dist/team/state.js.map +1 -1
  441. package/dist/team/team-ops.d.ts +1 -0
  442. package/dist/team/team-ops.d.ts.map +1 -1
  443. package/dist/team/team-ops.js +1 -0
  444. package/dist/team/team-ops.js.map +1 -1
  445. package/dist/team/tmux-session.d.ts +2 -0
  446. package/dist/team/tmux-session.d.ts.map +1 -1
  447. package/dist/team/tmux-session.js +63 -34
  448. package/dist/team/tmux-session.js.map +1 -1
  449. package/dist/team/ultragoal-context.d.ts +1 -0
  450. package/dist/team/ultragoal-context.d.ts.map +1 -1
  451. package/dist/team/ultragoal-context.js +2 -0
  452. package/dist/team/ultragoal-context.js.map +1 -1
  453. package/dist/team/worker-provenance.d.ts +35 -0
  454. package/dist/team/worker-provenance.d.ts.map +1 -0
  455. package/dist/team/worker-provenance.js +213 -0
  456. package/dist/team/worker-provenance.js.map +1 -0
  457. package/dist/ultragoal/__tests__/artifacts.test.js +103 -0
  458. package/dist/ultragoal/__tests__/artifacts.test.js.map +1 -1
  459. package/dist/ultragoal/__tests__/docs-contract.test.js +88 -59
  460. package/dist/ultragoal/__tests__/docs-contract.test.js.map +1 -1
  461. package/dist/ultragoal/artifacts.d.ts +1 -0
  462. package/dist/ultragoal/artifacts.d.ts.map +1 -1
  463. package/dist/ultragoal/artifacts.js +35 -5
  464. package/dist/ultragoal/artifacts.js.map +1 -1
  465. package/dist/url-reader/__tests__/url-reader.test.js +14 -0
  466. package/dist/url-reader/__tests__/url-reader.test.js.map +1 -1
  467. package/dist/url-reader/index.js +5 -3
  468. package/dist/url-reader/index.js.map +1 -1
  469. package/dist/utils/__tests__/version.test.js +17 -0
  470. package/dist/utils/__tests__/version.test.js.map +1 -1
  471. package/dist/utils/version.d.ts.map +1 -1
  472. package/dist/utils/version.js +2 -1
  473. package/dist/utils/version.js.map +1 -1
  474. package/package.json +6 -3
  475. package/plugins/oh-my-codex/.codex-plugin/plugin.json +1 -1
  476. package/plugins/oh-my-codex/skills/ai-slop-cleaner/SKILL.md +60 -135
  477. package/plugins/oh-my-codex/skills/analyze/SKILL.md +35 -111
  478. package/plugins/oh-my-codex/skills/autopilot/SKILL.md +69 -168
  479. package/plugins/oh-my-codex/skills/cancel/SKILL.md +33 -337
  480. package/plugins/oh-my-codex/skills/code-review/SKILL.md +66 -256
  481. package/plugins/oh-my-codex/skills/configure-notifications/SKILL.md +30 -216
  482. package/plugins/oh-my-codex/skills/deep-interview/SKILL.md +11 -10
  483. package/plugins/oh-my-codex/skills/design/SKILL.md +32 -132
  484. package/plugins/oh-my-codex/skills/doctor/SKILL.md +56 -177
  485. package/plugins/oh-my-codex/skills/omx-setup/SKILL.md +35 -116
  486. package/plugins/oh-my-codex/skills/plan/SKILL.md +45 -228
  487. package/plugins/oh-my-codex/skills/ralplan/SKILL.md +16 -16
  488. package/plugins/oh-my-codex/skills/skill/SKILL.md +82 -807
  489. package/plugins/oh-my-codex/skills/team/SKILL.md +32 -520
  490. package/plugins/oh-my-codex/skills/ultragoal/SKILL.md +47 -151
  491. package/plugins/oh-my-codex/skills/ultraqa/SKILL.md +75 -252
  492. package/plugins/oh-my-codex/skills/visual-ralph/SKILL.md +33 -111
  493. package/plugins/oh-my-codex/skills/worker/SKILL.md +40 -113
  494. package/prompts/analyst.md +27 -107
  495. package/prompts/api-reviewer.md +17 -84
  496. package/prompts/architect.md +31 -70
  497. package/prompts/code-reviewer.md +18 -107
  498. package/prompts/code-simplifier.md +32 -110
  499. package/prompts/critic.md +32 -54
  500. package/prompts/dependency-expert.md +37 -107
  501. package/prompts/designer.md +40 -107
  502. package/prompts/executor.md +26 -75
  503. package/prompts/information-architect.md +51 -200
  504. package/prompts/performance-reviewer.md +17 -81
  505. package/prompts/planner.md +33 -76
  506. package/prompts/product-analyst.md +65 -280
  507. package/prompts/product-manager.md +48 -216
  508. package/prompts/qa-tester.md +33 -104
  509. package/prompts/quality-reviewer.md +17 -93
  510. package/prompts/quality-strategist.md +31 -255
  511. package/prompts/researcher.md +32 -89
  512. package/prompts/security-reviewer.md +12 -98
  513. package/prompts/test-engineer.md +29 -110
  514. package/prompts/ux-researcher.md +46 -300
  515. package/prompts/verifier.md +23 -51
  516. package/skills/ai-slop-cleaner/SKILL.md +60 -135
  517. package/skills/analyze/SKILL.md +35 -111
  518. package/skills/autopilot/SKILL.md +69 -168
  519. package/skills/autoresearch-goal/SKILL.md +6 -31
  520. package/skills/cancel/SKILL.md +33 -337
  521. package/skills/code-review/SKILL.md +66 -256
  522. package/skills/configure-notifications/SKILL.md +30 -216
  523. package/skills/deep-interview/SKILL.md +11 -10
  524. package/skills/design/SKILL.md +32 -132
  525. package/skills/doctor/SKILL.md +56 -177
  526. package/skills/omx-setup/SKILL.md +35 -116
  527. package/skills/pipeline/SKILL.md +6 -89
  528. package/skills/plan/SKILL.md +45 -228
  529. package/skills/ralph/SKILL.md +6 -290
  530. package/skills/ralplan/SKILL.md +16 -16
  531. package/skills/skill/SKILL.md +82 -807
  532. package/skills/team/SKILL.md +32 -520
  533. package/skills/ultragoal/SKILL.md +47 -151
  534. package/skills/ultraqa/SKILL.md +75 -252
  535. package/skills/ultrawork/SKILL.md +6 -182
  536. package/skills/visual-ralph/SKILL.md +33 -111
  537. package/skills/worker/SKILL.md +40 -113
  538. package/src/scripts/__tests__/codex-native-hook.test.ts +17518 -32980
  539. package/src/scripts/__tests__/docs-site-contract.test.ts +2 -2
  540. package/src/scripts/__tests__/generated-artifact-drift.test.ts +97 -0
  541. package/src/scripts/__tests__/issue-3293-callsite-parity.test.ts +12 -2
  542. package/src/scripts/__tests__/issue-3293-hook-owned-cancel.test.ts +32 -33
  543. package/src/scripts/__tests__/issue-3311-ultragoal-native-outside-tmux.test.ts +67 -481
  544. package/src/scripts/__tests__/issue-3358-ultragoal-cancel-lifecycle.test.ts +115 -615
  545. package/src/scripts/__tests__/issue-3369-autopilot-ralplan-state-machine.test.ts +0 -168
  546. package/src/scripts/__tests__/issue-3481-conductor-deadlock.test.ts +77 -0
  547. package/src/scripts/__tests__/issue-3486-pretooluse-lock-regression.test.ts +95 -0
  548. package/src/scripts/__tests__/issue-3536-external-team-state-root.test.ts +216 -0
  549. package/src/scripts/__tests__/prompt-inventory.test.ts +62 -1
  550. package/src/scripts/__tests__/reasoning-artifact-contract.test.ts +1 -2
  551. package/src/scripts/__tests__/role-intent-bootstrap-e2e-3181.test.ts +49 -78
  552. package/src/scripts/__tests__/smoke-packed-install.test.ts +28 -19
  553. package/src/scripts/codex-native-hook.ts +216 -1144
  554. package/src/scripts/codex-native-pre-post.ts +17 -22
  555. package/src/scripts/notify-hook/auto-nudge.ts +1 -0
  556. package/src/scripts/notify-hook/team-dispatch.ts +8 -5
  557. package/src/scripts/notify-hook/team-tmux-guard.ts +3 -1
  558. package/src/scripts/notify-hook.ts +2 -51
  559. package/src/scripts/prompt-inventory.ts +142 -3
  560. package/src/scripts/run-compiled-ci.ts +2 -0
  561. package/src/scripts/run-test-files.ts +1 -0
  562. package/src/scripts/smoke-packed-install.ts +2 -8
  563. package/src/scripts/sync-prompt-guidance-fragments.ts +59 -22
  564. package/src/scripts/tmux-hook-engine.ts +3 -3
  565. package/src/scripts/verify-capabilities-lock.ts +23 -0
  566. package/templates/AGENTS.md +45 -10
  567. package/templates/catalog-manifest.json +6 -146
  568. package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts +0 -2
  569. package/dist/autopilot/__tests__/deep-interview-gate.test.d.ts.map +0 -1
  570. package/dist/autopilot/__tests__/deep-interview-gate.test.js +0 -215
  571. package/dist/autopilot/__tests__/deep-interview-gate.test.js.map +0 -1
  572. package/dist/autopilot/__tests__/ralplan-gate.test.d.ts +0 -2
  573. package/dist/autopilot/__tests__/ralplan-gate.test.d.ts.map +0 -1
  574. package/dist/autopilot/__tests__/ralplan-gate.test.js +0 -114
  575. package/dist/autopilot/__tests__/ralplan-gate.test.js.map +0 -1
  576. package/dist/autopilot/deep-interview-gate.d.ts +0 -18
  577. package/dist/autopilot/deep-interview-gate.d.ts.map +0 -1
  578. package/dist/autopilot/deep-interview-gate.js +0 -396
  579. package/dist/autopilot/deep-interview-gate.js.map +0 -1
  580. package/dist/autopilot/ralplan-gate.d.ts +0 -18
  581. package/dist/autopilot/ralplan-gate.d.ts.map +0 -1
  582. package/dist/autopilot/ralplan-gate.js +0 -149
  583. package/dist/autopilot/ralplan-gate.js.map +0 -1
  584. package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts +0 -2
  585. package/dist/hooks/__tests__/prometheus-strict-contract.test.d.ts.map +0 -1
  586. package/dist/hooks/__tests__/prometheus-strict-contract.test.js +0 -320
  587. package/dist/hooks/__tests__/prometheus-strict-contract.test.js.map +0 -1
  588. package/dist/pipeline/__tests__/orchestrator.test.d.ts +0 -2
  589. package/dist/pipeline/__tests__/orchestrator.test.d.ts.map +0 -1
  590. package/dist/pipeline/__tests__/orchestrator.test.js +0 -892
  591. package/dist/pipeline/__tests__/orchestrator.test.js.map +0 -1
  592. package/dist/pipeline/__tests__/stages.test.d.ts +0 -2
  593. package/dist/pipeline/__tests__/stages.test.d.ts.map +0 -1
  594. package/dist/pipeline/__tests__/stages.test.js +0 -1695
  595. package/dist/pipeline/__tests__/stages.test.js.map +0 -1
  596. package/dist/pipeline/index.d.ts +0 -25
  597. package/dist/pipeline/index.d.ts.map +0 -1
  598. package/dist/pipeline/index.js +0 -17
  599. package/dist/pipeline/index.js.map +0 -1
  600. package/dist/pipeline/orchestrator.d.ts +0 -52
  601. package/dist/pipeline/orchestrator.d.ts.map +0 -1
  602. package/dist/pipeline/orchestrator.js +0 -505
  603. package/dist/pipeline/orchestrator.js.map +0 -1
  604. package/dist/pipeline/review-verdict.d.ts +0 -3
  605. package/dist/pipeline/review-verdict.d.ts.map +0 -1
  606. package/dist/pipeline/review-verdict.js +0 -14
  607. package/dist/pipeline/review-verdict.js.map +0 -1
  608. package/dist/pipeline/stages/code-review.d.ts +0 -35
  609. package/dist/pipeline/stages/code-review.d.ts.map +0 -1
  610. package/dist/pipeline/stages/code-review.js +0 -55
  611. package/dist/pipeline/stages/code-review.js.map +0 -1
  612. package/dist/pipeline/stages/deep-interview.d.ts +0 -15
  613. package/dist/pipeline/stages/deep-interview.d.ts.map +0 -1
  614. package/dist/pipeline/stages/deep-interview.js +0 -32
  615. package/dist/pipeline/stages/deep-interview.js.map +0 -1
  616. package/dist/pipeline/stages/ralph-verify.d.ts +0 -53
  617. package/dist/pipeline/stages/ralph-verify.d.ts.map +0 -1
  618. package/dist/pipeline/stages/ralph-verify.js +0 -89
  619. package/dist/pipeline/stages/ralph-verify.js.map +0 -1
  620. package/dist/pipeline/stages/ralplan.d.ts +0 -27
  621. package/dist/pipeline/stages/ralplan.d.ts.map +0 -1
  622. package/dist/pipeline/stages/ralplan.js +0 -180
  623. package/dist/pipeline/stages/ralplan.js.map +0 -1
  624. package/dist/pipeline/stages/team-exec.d.ts +0 -52
  625. package/dist/pipeline/stages/team-exec.d.ts.map +0 -1
  626. package/dist/pipeline/stages/team-exec.js +0 -266
  627. package/dist/pipeline/stages/team-exec.js.map +0 -1
  628. package/dist/pipeline/stages/ultragoal.d.ts +0 -23
  629. package/dist/pipeline/stages/ultragoal.d.ts.map +0 -1
  630. package/dist/pipeline/stages/ultragoal.js +0 -53
  631. package/dist/pipeline/stages/ultragoal.js.map +0 -1
  632. package/dist/pipeline/stages/ultraqa.d.ts +0 -33
  633. package/dist/pipeline/stages/ultraqa.d.ts.map +0 -1
  634. package/dist/pipeline/stages/ultraqa.js +0 -49
  635. package/dist/pipeline/stages/ultraqa.js.map +0 -1
  636. package/dist/pipeline/types.d.ts +0 -124
  637. package/dist/pipeline/types.d.ts.map +0 -1
  638. package/dist/pipeline/types.js +0 -8
  639. package/dist/pipeline/types.js.map +0 -1
  640. package/dist/ralplan/__tests__/consensus-gate.test.d.ts +0 -2
  641. package/dist/ralplan/__tests__/consensus-gate.test.d.ts.map +0 -1
  642. package/dist/ralplan/__tests__/consensus-gate.test.js +0 -88
  643. package/dist/ralplan/__tests__/consensus-gate.test.js.map +0 -1
  644. package/dist/ralplan/consensus-gate.d.ts +0 -70
  645. package/dist/ralplan/consensus-gate.d.ts.map +0 -1
  646. package/dist/ralplan/consensus-gate.js +0 -496
  647. package/dist/ralplan/consensus-gate.js.map +0 -1
  648. package/dist/scripts/notify-hook/ralph-session-resume.d.ts +0 -25
  649. package/dist/scripts/notify-hook/ralph-session-resume.d.ts.map +0 -1
  650. package/dist/scripts/notify-hook/ralph-session-resume.js +0 -377
  651. package/dist/scripts/notify-hook/ralph-session-resume.js.map +0 -1
  652. package/dist/state/__tests__/planning-gate.test.d.ts +0 -2
  653. package/dist/state/__tests__/planning-gate.test.d.ts.map +0 -1
  654. package/dist/state/__tests__/planning-gate.test.js +0 -629
  655. package/dist/state/__tests__/planning-gate.test.js.map +0 -1
  656. package/plugins/oh-my-codex/skills/autoresearch-goal/SKILL.md +0 -39
  657. package/plugins/oh-my-codex/skills/pipeline/SKILL.md +0 -97
  658. package/plugins/oh-my-codex/skills/prometheus-strict/README.md +0 -35
  659. package/plugins/oh-my-codex/skills/prometheus-strict/SKILL.md +0 -219
  660. package/plugins/oh-my-codex/skills/ralph/SKILL.md +0 -298
  661. package/plugins/oh-my-codex/skills/ultrawork/SKILL.md +0 -190
  662. package/plugins/oh-my-codex/skills/ultrawork/references/agent-tiers.md +0 -62
  663. package/prompts/prometheus-strict-metis.md +0 -274
  664. package/prompts/prometheus-strict-momus.md +0 -82
  665. package/prompts/prometheus-strict-oracle.md +0 -107
  666. package/prompts/scholastic.md +0 -11
  667. package/prompts/sisyphus-lite.md +0 -111
  668. package/skills/ask-claude/SKILL.md +0 -12
  669. package/skills/ask-gemini/SKILL.md +0 -12
  670. package/skills/build-fix/SKILL.md +0 -10
  671. package/skills/deepsearch/SKILL.md +0 -10
  672. package/skills/ecomode/SKILL.md +0 -114
  673. package/skills/ecomode/references/agent-tiers.md +0 -61
  674. package/skills/frontend-ui-ux/SKILL.md +0 -16
  675. package/skills/help/SKILL.md +0 -10
  676. package/skills/note/SKILL.md +0 -10
  677. package/skills/prometheus-strict/README.md +0 -35
  678. package/skills/prometheus-strict/SKILL.md +0 -219
  679. package/skills/ralph-init/SKILL.md +0 -10
  680. package/skills/review/SKILL.md +0 -10
  681. package/skills/security-review/SKILL.md +0 -10
  682. package/skills/swarm/SKILL.md +0 -12
  683. package/skills/tdd/SKILL.md +0 -104
  684. package/skills/trace/SKILL.md +0 -10
  685. package/skills/visual-verdict/SKILL.md +0 -10
  686. package/skills/web-clone/SKILL.md +0 -357
  687. package/src/scripts/notify-hook/ralph-session-resume.ts +0 -466
@@ -1,105 +1,49 @@
1
1
  ---
2
2
  name: autopilot
3
- description: "[OMX] Strict autonomous loop: $deep-interview -> $ralplan -> $ultragoal (+ $team if needed) -> $code-review -> $ultraqa"
3
+ description: "[OMX] Canonical autonomous orchestrator: $deep-interview -> $ralplan -> $ultragoal"
4
4
  ---
5
5
 
6
+ # Autopilot
7
+
6
8
  <Purpose>
7
- Autopilot is the strict autonomous delivery loop for non-trivial work. Its recommended/default contract is exactly:
9
+ Autopilot is the first-class canonical orchestrator for hands-off delivery. Its defining default chain is mandatory:
8
10
 
9
11
  ```text
10
- $deep-interview -> $ralplan -> $ultragoal (+ $team if needed) -> $code-review -> $ultraqa
12
+ $deep-interview -> $ralplan -> $ultragoal
11
13
  ```
12
14
 
13
- If `$code-review` or `$ultraqa` is not clean, Autopilot returns to `$ralplan` with the findings as the next planning input, then continues again through `$ultragoal`, `$code-review`, and `$ultraqa` until the gates are clean or a hard blocker is reported. Ralph is a legacy/explicit alternate execution loop only; do not advertise Ralph as the default Autopilot path.
15
+ The chain is not a list of optional hints and Autopilot is not an alias for direct execution. Autopilot supervises each child stage in one recoverable session, carries durable artifacts forward, and continues through implementation verification until the requested outcome is complete or a genuine blocker is recorded.
14
16
  </Purpose>
15
17
 
16
18
  <Use_When>
17
- - User wants hands-off execution from a concrete idea, issue, PRD, or requirements artifact to reviewed and QA-checked code
18
- - User says `$autopilot`, "autopilot", "auto pilot", "autonomous", "build me", "create me", "make me", "full auto", "handle it all", or "I want a/an..."
19
- - Task needs clarification, planning, durable execution, verification, code review, and QA with automatic follow-up when gates are not clean
19
+ - The user explicitly invokes `$autopilot`.
20
+ - The user asks for end-to-end autonomous delivery from an idea, issue, or requirements seed.
21
+ - The work needs requirements clarification, consensus planning, durable execution, and evidence-backed completion as one supervised workflow.
20
22
  </Use_When>
21
23
 
22
- <Do_Not_Use_When>
23
- - User wants to explore options or brainstorm -- use `$plan` / `$ralplan`
24
- - User says "just explain", "draft only", or "what would you suggest" -- respond conversationally
25
- - User wants a single focused code change -- use `$ultragoal`, `$ralph` only when explicitly requested, or direct executor work
26
- - User wants only review/critique of existing code -- use `$code-review`
27
- </Do_Not_Use_When>
28
-
29
- <Strict_Loop_Contract>
30
- Autopilot must not run a separate broad expansion/planning/execution/QA/validation lifecycle as its primary behavior. It delegates those concerns to the canonical workflow phases below:
31
-
32
- 1. **Phase `deep-interview`** — Socratic requirements clarification gate
33
- - Run or resume `$deep-interview` to clarify intent, scope, non-goals, constraints, and decision boundaries.
34
- - Deep-interview is a structured question chain, not a one-question gate; `max_rounds` is a cap, not a target.
35
- - After a user answers an `omx question`, re-score ambiguity against the active profile threshold. Ask another question only when a readiness gate is still unresolved and the answer would materially change execution; otherwise crystallize the spec and hand off.
36
- - Required handoff artifact: a clarified spec or concise requirements summary suitable for `$ralplan`, including an explicit interview-complete rationale when leaving deep-interview.
37
-
38
- 2. **Phase `ralplan`** — consensus planning gate
39
- - Ground the task with pre-context intake and the deep-interview artifact.
40
- - Current ownership rule: Autopilot records `planning_routing` in state before heavy planning. When the Autopilot/main model resolves to a cheap/mini lane (for example `o4-mini`, `*-mini`, `*spark*`, or an explicitly cheap/economy/lite model name), the initial planning/decomposition owner is dedicated `[planner]`; otherwise `[main]` may keep ownership for backward compatibility. A configured `agentModels.planner` is an explicit opt-in that forces dedicated `[planner]` ownership even when `[main]` is not cheap/mini.
41
- - Run or resume `$ralplan` to produce/update PRD and test-spec artifacts. If `planning_routing.owner` is `planner`, use the dedicated `[planner]` role for the initial Planner draft/decomposition before the Architect→Critic consensus gates.
42
- - PRD/test-spec files alone are not completion evidence. Local Architect→Critic approvals are lifecycle evidence, not handoff authority. Ralplan may hand off only after an official host-issued receipt is verified through a documented non-user-mintable host surface; until then retain the reviews with `ralplan_consensus_gate.complete:false` and `blocked_reason:"documented_host_consensus_receipt_unavailable"`.
43
- - On every revised planning pass, require subsequent `Architect` approval first and subsequent `Critic` approval second. These ordered reviews remain lifecycle evidence only and never replace the official host receipt.
44
- - When returning from a non-clean review or QA pass, include `return_to_ralplan_reason` and the findings as first-class planning input.
45
- - If either review is missing, blocked, out of order, or non-approving, remain in `ralplan` or report an explicit blocker/max-iteration outcome; do not progress to `$ultragoal`, `$team`, `$ralph`, or implementation.
46
- - Required handoff artifact: planning artifacts, lifecycle-only Architect→Critic reviews, and a verified official host receipt authorizing `ralplan_consensus_gate.complete:true`. Without that receipt, remain in `ralplan` and report the host blocker.
47
-
48
- 3. **Phase `ultragoal`** — durable implementation + verification loop
49
- - Run `$ultragoal` only from ralplan artifacts whose consensus gate is authorized by a verified official host receipt.
50
- - Ultragoal owns durable Codex goal handoffs, `.omx/ultragoal` ledger checkpoints, implementation, tests, build/lint/typecheck evidence, cleanup, and final review gate discipline.
51
- - Use `$team` only inside an active Ultragoal story when the story clearly benefits from coordinated parallel execution (for example independent file/module lanes, broad test matrix work, or multi-domain implementation). Team remains explicit and leader-owned; Ultragoal keeps the goal/ledger state.
52
- - Required handoff artifact: implementation evidence, changed-file summary, verification evidence, and Ultragoal ledger/checkpoint references suitable for `$code-review`.
53
-
54
- 4. **Phase `code-review`** — merge-readiness gate
55
- - Run `$code-review` on the diff/artifacts produced by `$ultragoal`.
56
- - A clean review means final recommendation `APPROVE` with architectural status `CLEAR`.
57
- - `COMMENT`, `REQUEST CHANGES`, any architectural `WATCH`/`BLOCK`, or any unresolved finding is not clean.
58
- - If not clean because the implementation must be repaired, increment the review cycle, persist `review_verdict`, set `current_phase:"rework"`, and carry the findings as the sanctioned execution-fix input. Return to Phase `ralplan` only when the review shows the plan/requirements are wrong or incomplete.
59
-
60
- 5. **Phase `ultraqa`** — adversarial QA gate
61
- - Run `$ultraqa` after a clean code review when user-facing behavior, workflows, CLI/runtime behavior, integration surfaces, or regression risk warrant adversarial QA.
62
- - For docs-only or trivially non-runtime changes, record `ultraqa` as skipped with an explicit condition and evidence.
63
- - If UltraQA finds issues, persist the QA verdict/evidence, set `return_to_ralplan_reason`, and transition back to Phase `ralplan`.
64
-
65
- The only normal terminal state is `complete` after clean code review and a passed or explicitly skipped UltraQA gate. Cancellation, blocked credentials, unrecoverable repeated failures, or explicit user stop may terminate earlier with preserved state.
66
- </Strict_Loop_Contract>
67
-
68
- <Pre-context Intake>
69
- Before Phase `deep-interview` or `ralplan` starts or resumes:
70
- 1. Derive a task slug from the request.
71
- 2. Reuse the latest relevant `.omx/context/{slug}-*.md` snapshot when available.
72
- 3. If none exists, create `.omx/context/{slug}-{timestamp}.md` (UTC `YYYYMMDDTHHMMSSZ`) with:
73
- - activation prompt / task seed
74
- - original task status (`activation-prompt`, `legacy-unverified`, or `unavailable`)
75
- - desired outcome
76
- - known facts/evidence
77
- - constraints
78
- - unknowns/open questions
79
- - likely codebase touchpoints
80
- - a scope note that the seed is the Autopilot activation prompt, not guaranteed prior conversation context
81
- 4. If brownfield facts are missing, run `explore` first before or during `$deep-interview` (`$deep-interview --quick <task>` remains acceptable for bounded low-ambiguity intake); do not skip the clarification gate merely because the task sounds actionable.
82
- 5. Carry the snapshot path in Autopilot state and all handoff artifacts.
83
- </Pre-context Intake>
24
+ <Default_Chain>
25
+ Run or resume these stages in order:
26
+
27
+ 1. **`deep-interview`** — clarify intent, scope, non-goals, constraints, acceptance criteria, and unresolved decisions. Produce a durable requirements/specification handoff. Deep Interview is a real stage; do not replace it with a one-question check or skip it merely because the task looks actionable.
28
+ 2. **`ralplan`** — turn the clarified requirements into an execution-ready consensus plan with architecture, sequencing, test, and verification guidance. Preserve review evidence as lifecycle evidence, not host-issued security authority.
29
+ 3. **`ultragoal`** — execute the approved plan through durable goals and ledger receipts, implementation, focused verification, cleanup, review, and terminal evidence.
30
+
31
+ `$team`, `$code-review`, and `$ultraqa` may be used inside the supervised execution when the active Ultragoal plan or verification boundary requires them. They do not replace or weaken the defining three-stage chain.
32
+
33
+ When review or QA proves the requirements or plan wrong, keep Autopilot active, return its supervised phase to `ralplan`, attach the findings, and continue through `ultragoal` again. Implementation-only review fixes may remain within Ultragoal's blocker/review loop.
34
+ </Default_Chain>
84
35
 
85
36
  <Execution_Policy>
86
- - Always execute the recommended phases in order: `deep-interview`, then `ralplan`, then `ultragoal`, then `code-review`, then `ultraqa`.
87
- - `$team` is conditional and explicit: use it only within an Ultragoal story when parallel execution materially improves throughput, quality, or safety.
88
- - Never skip directly from vague/freeform expansion to implementation; unclear input must be clarified and planned through `$deep-interview` and `$ralplan`.
89
- - A non-clean `$code-review` that requires implementation repair enters Phase `rework`; a non-clean review that changes the plan/requirements, or failed `$ultraqa`, returns to `$ralplan`.
90
- - Each phase must write/update Autopilot state before handing off.
91
- - Use existing hooks, `.omx/state`, `$deep-interview`, `$ralplan`, `$ultragoal`, optional `$team`, `$code-review`, `$ultraqa`, and pipeline primitives; do not invent a separate execution framework.
92
- - Preserve legacy compatibility: if a user explicitly requests the old Ralph execution lane, use `$ralph` as an intentional alternate execution phase, but do not present it as Autopilot's default recommended loop.
93
- - Continue automatically through safe reversible phase transitions. Ask only for destructive, credential-gated, or materially preference-dependent branches.
94
- - Apply the shared workflow guidance pattern: outcome-first framing, concise visible updates for multi-step execution, local overrides for the active workflow branch, validation proportional to risk, explicit stop rules, and automatic continuation for safe reversible steps. Ask only for material, destructive, credentialed, external-production, or preference-dependent branches.
37
+ - Autopilot MUST begin at `deep-interview` for a new run and MUST preserve the phase order `deep-interview -> ralplan -> ultragoal`.
38
+ - Child stages are supervised phases, not peer workflow activations. Keep `mode:"autopilot"` active and update `current_phase` rather than replacing Autopilot with standalone child state.
39
+ - Use the current CLI state SSOT (`omx state ... --json`) and the current session-scoped state root. Do not create a second writer or revive legacy root-state authority.
40
+ - Local artifacts, prompts, trackers, transcripts, environment values, and role labels are lifecycle evidence only. Do not reintroduce the retired unrecoverable host-receipt lock or terminalize the workflow because host provenance is unavailable.
41
+ - Authority-decreasing operations are always recoverable: `$cancel`, state clear, hook disable/uninstall recovery, and stale-state repair must remain available without completion receipts or child-stage approval.
42
+ - Continue automatically through safe, reversible stage transitions. Stop only for an explicit user cancellation, a human-only dependency, or a verified terminal result.
95
43
  </Execution_Policy>
96
44
 
97
45
  <State_Management>
98
- Use the CLI-first state surface (`omx state ... --json`) for Autopilot lifecycle state. State must be session-aware when a session id exists. If the explicit MCP compatibility surface is already available, equivalent `omx_state` tool calls remain acceptable but are not required.
99
-
100
- Inside active Autopilot, named child phases such as `$ralplan` are supervised phases, not peer workflow activations: keep `mode:"autopilot"` active and update `current_phase:"ralplan"` rather than starting standalone `mode:"ralplan"` over Autopilot.
101
-
102
- Required fields:
46
+ Autopilot state is session-scoped and owned by the canonical state writer. A new run records at least:
103
47
 
104
48
  ```json
105
49
  {
@@ -107,121 +51,78 @@ Required fields:
107
51
  "active": true,
108
52
  "current_phase": "deep-interview",
109
53
  "iteration": 1,
110
- "review_cycle": 0,
111
- "max_iterations": 10,
112
- "phase_cycle": ["deep-interview", "ralplan", "ultragoal", "code-review", "ultraqa"],
54
+ "phase_cycle": ["deep-interview", "ralplan", "ultragoal"],
113
55
  "handoff_artifacts": {
114
- "context_snapshot_path": ".omx/context/<slug>-<timestamp>.md",
115
56
  "deep_interview": null,
116
57
  "ralplan": null,
117
- "ralplan_consensus_gate": {
118
- "required": true,
119
- "sequence": ["architect-review", "critic-review"],
120
- "planning_artifacts_are_not_consensus": true,
121
- "required_review_roles": ["architect", "critic"],
122
- "ralplan_architect_review": null,
123
- "ralplan_critic_review": null,
124
- "complete": false
125
- },
126
- "ultragoal": null,
127
- "code_review": null,
128
- "ultraqa": null
58
+ "ultragoal": null
129
59
  },
130
- "review_verdict": null,
131
- "qa_verdict": null,
132
60
  "return_to_ralplan_reason": null
133
61
  }
134
62
  ```
135
63
 
136
- - **On start**: `omx state write --input '{"mode":"autopilot","active":true,"current_phase":"deep-interview","iteration":1,"review_cycle":0,"state":{"phase_cycle":["deep-interview","ralplan","ultragoal","code-review","ultraqa"],"handoff_artifacts":{"context_snapshot_path":"<snapshot-path>","deep_interview":null,"ralplan":null,"ralplan_consensus_gate":{"required":true,"sequence":["architect-review","critic-review"],"planning_artifacts_are_not_consensus":true,"required_review_roles":["architect","critic"],"ralplan_architect_review":null,"ralplan_critic_review":null,"complete":false},"ultragoal":null,"code_review":null,"ultraqa":null},"review_verdict":null,"qa_verdict":null,"return_to_ralplan_reason":null}}' --json`
137
- - **On deep-interview -> ralplan**: only after a separate gate proves the interview chain is explicitly complete or the user explicitly authorized a skip. For completion, persist `deep_interview_gate:{"status":"complete","rationale":"<why requirements are complete>","handoff_summary":"<summary>"}` (or equivalent non-empty rationale/summary) plus the clarified spec/requirements under `handoff_artifacts.deep_interview`; if a final `omx question` was involved, keep its same-session answered record linked by `question_id`/`satisfied_at`. For skip, persist `deep_interview_gate:{"status":"skipped","skip_authorized_by_user":true,"skip_reason":"<user-authorized reason>","skipped_at":"<timestamp>","source":"user","session_id":"<session>"}`. Do not leave deep-interview merely because the first `omx question` was answered or cleared.
138
- - The stable `<!-- OMX:AUTOPILOT:DEEP-INTERVIEW-RALPLAN-HANDOFF:v1 -->` marker immediately precedes the executable completion handoff fence; automation may locate exactly that fence.
64
+ Start or update state only through the CLI-first state surface:
139
65
 
140
- <!-- OMX:AUTOPILOT:DEEP-INTERVIEW-RALPLAN-HANDOFF:v1 -->
141
66
  ```bash
142
- omx state write --input '{"mode":"autopilot","active":true,"current_phase":"ralplan","session_id":"'"${OMX_SESSION_ID:?authoritative OMX session required}"'","workingDirectory":"'"${PWD:?working directory required}"'","state":{"deep_interview_gate":{"status":"complete","rationale":"requirements are clarified and ready for planning","handoff_summary":"durable deep-interview handoff recorded for ralplan"},"handoff_artifacts":{"deep_interview":".omx/specs/deep-interview-handoff.md"}}}' --json
67
+ omx state write --input '{"mode":"autopilot","active":true,"current_phase":"deep-interview","state":{"phase_cycle":["deep-interview","ralplan","ultragoal"],"handoff_artifacts":{"deep_interview":null,"ralplan":null,"ultragoal":null},"return_to_ralplan_reason":null}}' --json
143
68
  ```
144
- - The artifact path above must already contain the durable clarified requirements/specification before this command runs. Omit session aliases unless needed; if emitted, `owner_omx_session_id`, `codex_session_id`, and `owner_codex_session_id` must each equal `session_id`.
145
- - **Optional execution contract foundation**: when a downstream handoff explicitly sets `execution_contract_required:true`, persist a complete structured `execution_contract` under `handoff_artifacts.deep_interview` before leaving deep-interview. The canonical schema is `version:1`, `execution_stride:"task"|"deliverable"|"milestone"`, `source:"deep-interview"`, `selected_by:"user"|"default"`, `allow_task_shrink:<boolean>`, non-empty `completion_unit`, non-empty `stop_condition`, `acceptance_coverage_scope:"task"|"deliverable"|"milestone"`, and `shrink_policy:"allowed"|"ask_before_shrink"|"deny_unless_blocked"`.
146
- - Stride semantics are binding only when `execution_contract_required:true`: `task` means `allow_task_shrink:true`, `acceptance_coverage_scope:"task"`, `shrink_policy:"allowed"`; `deliverable` means `allow_task_shrink:false`, `acceptance_coverage_scope:"deliverable"`, `shrink_policy:"ask_before_shrink"`; `milestone` means `allow_task_shrink:false`, `acceptance_coverage_scope:"milestone"`, `shrink_policy:"deny_unless_blocked"`.
147
- - Preserve legacy behavior when `execution_contract_required` is absent or false. Do not infer stride from prose, broadness, phase names, snapshots, or task size; this foundation only validates an explicit structured contract and deliberately uses `milestone` rather than `phase`. New artifacts must write canonical snake_case keys under `handoff_artifacts.deep_interview`; the runtime may read legacy camelCase field/marker aliases and direct/nested `execution_contract` locations only as compatibility input.
148
- - **On ralplan -> ultragoal**: only after `ralplan_consensus_gate.complete:true` from an official host-issued receipt verified through a documented non-user-mintable host surface. Native-subagent Architect/Critic lanes, tracker records, `codex_exec`, and artifact approvals are lifecycle or trace evidence only. Until that verifier exists, keep `current_phase:"ralplan"` and persist `blocked_reason:"documented_host_consensus_receipt_unavailable"`.
149
- - **On missing ralplan consensus evidence**: keep `current_phase:"ralplan"`, persist `ralplan_consensus_gate.complete:false` with `blocked_reason`, and report an explicit blocker or max-iteration outcome instead of handing off to execution.
150
- - **On ultragoal -> code-review**: set `current_phase:"code-review"`, persist implementation/test/ledger evidence under `handoff_artifacts.ultragoal`.
151
- - **On code-review -> ultraqa**: set `current_phase:"ultraqa"` only after a real `$code-review` stage/subagent has produced durable evidence; persist the clean review under `handoff_artifacts.code_review` with its source thread/tool/stage reference. Do not author `review_verdict:{clean:true}` from the leader's own summary.
152
- - **On non-clean code-review requiring implementation repair**: increment `review_cycle`, set `current_phase:"rework"`, persist `review_verdict`, persist the phase handoff under `handoff_artifacts.code_review`, and keep the fix scoped to the review findings before returning to `code-review`.
153
- - **On clean review + passed/skipped QA**: set `active:false`, `current_phase:"complete"`, persist `review_verdict:{recommendation:"APPROVE", architectural_status:"CLEAR", clean:true}`, `qa_verdict:{clean:true, skipped:<boolean>, reason:<string|null>}`, and `completed_at` only when both gates have durable source evidence. Required evidence is either (a) actual `$code-review`/`$ultraqa` stage or native-subagent/thread/tool records, or (b) for QA only, an explicit persisted skip reason for a documented docs-only/trivially non-runtime condition. If that evidence is missing, keep the active phase at `code-review` or `ultraqa` and record a blocker instead of self-attesting a clean gate.
154
- - **On non-clean review requiring plan changes or failed QA**: increment `iteration` and `review_cycle`, set `current_phase:"ralplan"`, persist `review_verdict` or `qa_verdict`, persist the phase handoff, and set `return_to_ralplan_reason` to a concise findings-driven reason.
155
- - **Legacy Ralph state**: if a user explicitly selected the legacy Ralph execution lane, phase names and handoff keys may include `ralph`; preserve and resume them rather than rewriting history to Ultragoal.
156
- - **On cancellation**: run `$cancel`; preserve progress for resume rather than deleting handoff artifacts.
69
+
70
+ Stage transitions:
71
+
72
+ - **`deep-interview -> ralplan`**: require a durable clarified requirements/specification artifact and a non-empty completion rationale. Preserve same-session question evidence when a question surface was used.
73
+ - **`ralplan -> ultragoal`**: require durable planning artifacts, sequential Architect then Critic approvals, and a session/review-cycle-bound `ralplan_execution_handoff`. For supervised Autopilot, the explicit Autopilot request is the source of that bound handoff. Ordinary progression MUST NOT depend on a host-issued consensus receipt; missing host provenance is not a blocker.
74
+ - **`ultragoal -> complete`**: require durable goal/ledger completion receipts and fresh verification evidence matching the requested outcome.
75
+ - **review/QA loopback**: keep Autopilot active, set `current_phase:"ralplan"`, and persist `return_to_ralplan_reason` plus the findings.
76
+ - **cancellation**: run `$cancel`; preserve handoff artifacts for inspection or resume and mark the exact session terminal without deleting unrelated state.
77
+ - **clear/recovery**: exact-session clear may remove corrupt or stale Autopilot state. It must not require forward-progression evidence and must not clear other skills or sessions.
157
78
  </State_Management>
158
79
 
159
80
  <Continuation_And_Resume>
160
- When the user says `continue`, `resume`, or `keep going` while Autopilot is active, read `autopilot-state.json` and continue from `current_phase`:
161
- - `deep-interview`: clarify requirements and record the handoff artifact.
162
- - `ralplan`: run/update consensus planning from current handoffs and any `return_to_ralplan_reason`.
163
- - `ultragoal`: execute the approved plan durably and record verification/ledger evidence.
164
- - `rework`: perform only the implementation fixes required by the current code-review findings, record fresh implementation/verification evidence, and return to `code-review`.
165
- - `team`: continue explicit team work only when it is nested under the active Ultragoal story and report evidence back to the leader.
166
- - `code-review`: review the current diff and decide clean vs return-to-ralplan.
167
- - `ultraqa`: run or explicitly skip adversarial QA based on the documented condition, then finish if clean or transition to `ralplan` with findings if not clean.
168
- - `ralph`: resume only for explicit legacy Ralph-path Autopilot state.
169
- - `complete`: report completion evidence; do not restart.
170
-
171
- Do not restart discovery or discard handoff artifacts on continuation.
172
- </Continuation_And_Resume>
81
+ When the user says `continue`, `resume`, or `keep going`, read the current session's `autopilot-state.json` and continue from `current_phase`:
173
82
 
174
- <Pipeline_Orchestrator>
175
- Autopilot may be represented by the configurable pipeline orchestrator (`src/pipeline/`) when useful. The default Autopilot pipeline contract is:
83
+ - `deep-interview`: resume clarification and produce the requirements handoff.
84
+ - `ralplan`: resume consensus planning from the deep-interview artifact and any loopback findings.
85
+ - `ultragoal`: resume durable execution from the approved plan and ledger.
86
+ - `complete`: report the terminal evidence; do not restart.
87
+ - `cancelled`, `cleared`, or `failed`: report preserved artifacts and start a new run only on a new explicit Autopilot request.
176
88
 
177
- ```text
178
- deep-interview -> ralplan -> ultragoal -> code-review -> ultraqa
179
- ```
89
+ Never discard valid handoff artifacts or restart discovery merely because the conversation resumed.
90
+ </Continuation_And_Resume>
180
91
 
181
- Pipeline state should use `current_phase` values that match the same phase names (`deep-interview`, `ralplan`, `ultragoal`, `rework`, `code-review`, `ultraqa`, `complete`, `failed`) and should carry `iteration`, `review_cycle`, `handoff_artifacts`, `review_verdict`, `qa_verdict`, and `return_to_ralplan_reason` alongside stage results. `$team` is not a default pipeline stage; it is an explicit conditional execution engine inside an Ultragoal story.
182
- </Pipeline_Orchestrator>
92
+ <Recovery_Contract>
93
+ Autopilot continuation hooks may nudge an active non-terminal run, but they MUST fail open for recovery:
183
94
 
184
- <Escalation_And_Stop_Conditions>
185
- - Stop and report a blocker when required credentials/authority are missing.
186
- - Stop and report when the same review or QA failure recurs across 3 review cycles with no meaningful new plan.
187
- - Stop when the user says "stop", "cancel", or "abort" and run `$cancel`.
188
- - Otherwise, continue the loop until `$code-review` is clean and `$ultraqa` has passed or been explicitly skipped with evidence.
189
- </Escalation_And_Stop_Conditions>
95
+ - A stale, malformed, cancelled, cleared, complete, or foreign-session state must not keep Stop blocked.
96
+ - `$cancel`, exact-session state clear, and setup hook disable/uninstall paths must remain executable while Autopilot is active or damaged.
97
+ - Continuation must be bounded and session-scoped; never recreate an unconditional hook lock.
98
+ </Recovery_Contract>
190
99
 
191
100
  <Final_Checklist>
192
- - [ ] Phase `deep-interview` produced/updated clarified requirements or a concise spec
193
- - [ ] Phase `ralplan` produced/updated planning artifacts and preserved subsequent Architect→Critic approvals as lifecycle-only evidence; it advanced only with a verified official host receipt, or remained in `ralplan` with `complete:false` and `blocked_reason:"documented_host_consensus_receipt_unavailable"`.
194
- - [ ] Phase `ultragoal` implemented and verified the plan with fresh evidence and durable ledger/checkpoint references
195
- - [ ] Phase `rework` was used for implementation-only review fixes when applicable, with findings scoped to a fresh code-review cycle
196
- - [ ] `$team` was used only if the active Ultragoal story needed coordinated parallel work, or explicitly recorded as not needed
197
- - [ ] Phase `code-review` returned a clean verdict (`APPROVE` + `CLEAR`)
198
- - [ ] Phase `ultraqa` passed, or was explicitly skipped because the change was docs-only/trivially non-runtime with evidence
199
- - [ ] Clean `review_verdict` cites durable source evidence from a real `$code-review` stage/subagent/thread/tool record; `qa_verdict` cites durable `$ultraqa` evidence or an explicit persisted low-risk skip reason; leader-authored summaries alone are not gate evidence
200
- - [ ] `review_verdict.clean` is true, `qa_verdict.clean` is true, and `return_to_ralplan_reason` is null
201
- - [ ] Tests/build/lint/typecheck evidence from Ultragoal is available in handoff artifacts
202
- - [ ] Autopilot state is marked `complete` or cancellation state is preserved coherently
203
- - [ ] User receives a concise summary with clarification, plan, implementation, verification, review, and QA evidence
101
+ - [ ] A new run started with `deep-interview`.
102
+ - [ ] Deep Interview produced a durable clarified requirements/specification handoff.
103
+ - [ ] Ralplan produced an execution-ready plan with lifecycle review evidence.
104
+ - [ ] Ultragoal completed the plan with durable goals and ledger receipts.
105
+ - [ ] Verification evidence covers the requested behavior, failure paths, and recovery paths.
106
+ - [ ] Missing host provenance did not block ordinary progression, cancel, clear, or hook recovery.
107
+ - [ ] Autopilot state is terminal and exact-session artifacts remain coherent.
204
108
  </Final_Checklist>
205
109
 
206
110
  <Examples>
207
111
  <Good>
208
- User: `$autopilot implement GitHub issue #42`
209
- Flow: create/load context snapshot -> `$deep-interview` requirements check -> `$ralplan` issue plan -> `$ultragoal` durable implementation + tests (launch `$team` only if a story needs parallel lanes) -> `$code-review` -> `$ultraqa`; if review or QA requests changes, return to `$ralplan` with findings.
112
+ User: `$autopilot implement issue #42`
113
+ Flow: activate Autopilot at `deep-interview`, crystallize requirements, continue to supervised `ralplan`, then supervised `ultragoal`, verify the completed outcome, and mark the exact session complete.
210
114
  </Good>
211
115
 
212
116
  <Good>
213
117
  User: `continue`
214
- Context: Autopilot state says `current_phase:"code-review"`.
215
- Flow: run `$code-review` on current diff, persist verdict, transition to `ultraqa` if clean or to `ralplan` with findings if not clean.
216
- </Good>
217
-
218
- <Good>
219
- User: `$autopilot --legacy-ralph finish the migration`
220
- Flow: preserve the explicit legacy Ralph execution choice and run the old Ralph execution lane as an alternate, without changing the documented default Autopilot recommendation.
118
+ Context: Autopilot state has `current_phase:"ralplan"`.
119
+ Flow: resume the existing plan from the deep-interview handoff; do not create a separate standalone Ralplan run.
221
120
  </Good>
222
121
 
223
122
  <Bad>
224
- Autopilot invents independent "Expansion", "QA", and "Validation" phases and treats them as the primary lifecycle.
225
- Why bad: this bypasses the strict `$deep-interview -> $ralplan -> $ultragoal -> $code-review -> $ultraqa` contract.
123
+ Flow: treat `$deep-interview`, `$ralplan`, and `$ultragoal` as optional suggestions and jump directly to implementation.
124
+ Why bad: this hollows out Autopilot's defining orchestration contract.
226
125
  </Bad>
227
126
  </Examples>
127
+
128
+ Task: {{ARGUMENTS}}
@@ -1,39 +1,14 @@
1
1
  ---
2
2
  name: autoresearch-goal
3
- description: Durable professor-critic research workflow over Codex goal mode without reviving deprecated omx autoresearch
3
+ description: Sunset stub — use $autoresearch instead
4
4
  ---
5
5
 
6
- # Autoresearch Goal
6
+ # Autoresearch-goal — removed
7
7
 
8
- Use this workflow when a research mission should be bound to Codex goal-mode focus while OMX remains the durable state owner. This is for research projects that need Codex goal-mode management plus professor/critic-style validation; it is not the default answer for ordinary pre-planning best-practice lookup.
8
+ `$autoresearch-goal` was removed in OMX 0.21; use `$autoresearch` instead.
9
9
 
10
- ## Boundary
11
- - Do **not** use or revive the deprecated `omx autoresearch` direct launch surface.
12
- - Do **not** claim shell commands mutate hidden Codex `/goal` state.
13
- - Do **not** edit upstream `../../codex` or add dependencies.
14
- - Use `get_goal`, `create_goal`, and `update_goal({status: "complete"})` only through the active Codex thread when those tools are available.
10
+ Autoresearch-goal was a duplicate research-over-goal-mode entry point. `$autoresearch` is the single canonical validator-gated research loop; it owns the research mission lifecycle that autoresearch-goal duplicated.
15
11
 
16
- ## Artifacts
17
- `omx autoresearch-goal` writes:
18
- - `.omx/goals/autoresearch/<slug>/mission.json`
19
- - `.omx/goals/autoresearch/<slug>/rubric.md`
20
- - `.omx/goals/autoresearch/<slug>/ledger.jsonl`
21
- - `.omx/goals/autoresearch/<slug>/completion.json`
12
+ Migration: replace `$autoresearch-goal` with `$autoresearch`.
22
13
 
23
- ## Flow
24
- 1. Create the mission and professor-critic rubric:
25
- `omx autoresearch-goal create --topic "..." --rubric "..." --critic-command "..."`
26
- 2. Emit the model-facing handoff:
27
- `omx autoresearch-goal handoff --slug <slug>`
28
- 3. In the active Codex thread, call `get_goal`; call `create_goal` only if no active goal exists and the printed payload is the intended objective.
29
- 4. Research iteratively against the rubric. Record every critic outcome:
30
- `omx autoresearch-goal verdict --slug <slug> --verdict <pass|fail|blocked> --evidence "..."`
31
- 5. Completion is blocked until professor-critic validation records `verdict=pass`. After the mission audit passes, call `update_goal({status: "complete"})`, call `get_goal` again, then run:
32
- `omx autoresearch-goal complete --slug <slug> --codex-goal-json <get_goal-json-or-path>`
33
- 6. Treat the completion command as read-only reconciliation plus durable OMX state update; hooks and shell commands must not mutate Codex goal state.
34
- 7. After the completion command succeeds, run `/goal clear` in the Codex UI before starting another goal in this same thread/session. OMX prints this terminal cleanup step but does not invoke hidden clear routes.
35
-
36
- ## Completion gate
37
- A passing professor-critic artifact and a matching complete Codex `get_goal` snapshot are required. Assistant prose, partial tests, or a failed/blocked verdict are not sufficient.
38
-
39
- Lifecycle: `create_goal` starts the Codex thread goal, `update_goal({status: "complete"})` marks terminal success after the professor-critic and audit pass, and `/goal clear` removes the completed thread goal when another same-thread goal is needed. OMX shell commands and hooks reconcile snapshots and print the cleanup instruction; they must not mutate hidden Codex goal state.
14
+ Task: {{ARGUMENTS}}