@aibyzero/cm-workflow 0.10.5

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 (448) hide show
  1. package/.codex-plugin/plugin.json +30 -0
  2. package/AGENTS.md +74 -0
  3. package/CONTRIBUTING.md +62 -0
  4. package/LICENSE +21 -0
  5. package/README.md +263 -0
  6. package/SECURITY.md +49 -0
  7. package/THIRD_PARTY_NOTICES.md +29 -0
  8. package/VERSION +1 -0
  9. package/agents/cm-backend-agent.md +34 -0
  10. package/agents/cm-contract-agent.md +34 -0
  11. package/agents/cm-database-agent.md +34 -0
  12. package/agents/cm-frontend-agent.md +33 -0
  13. package/agents/cm-miniprogram-agent.md +33 -0
  14. package/agents/cm-ui-agent.md +34 -0
  15. package/assets/docs/command-picker-mobile.svg +56 -0
  16. package/assets/docs/command-picker.svg +56 -0
  17. package/assets/docs/user-guide-hero-mobile.svg +35 -0
  18. package/assets/docs/user-guide-hero.svg +36 -0
  19. package/assets/readme/delivery-flow.svg +86 -0
  20. package/assets/readme/hero.svg +77 -0
  21. package/assets/readme/recovery-record.svg +73 -0
  22. package/assets/readme/test-evidence.svg +64 -0
  23. package/compat/claude-commands/cm-ai.md +3 -0
  24. package/compat/claude-commands/cm-check.md +3 -0
  25. package/compat/claude-commands/cm-fix.md +3 -0
  26. package/compat/claude-commands/cm-idea.md +3 -0
  27. package/compat/claude-commands/cm-init.md +3 -0
  28. package/compat/claude-commands/cm-prd.md +3 -0
  29. package/compat/claude-commands/cm-refactor.md +3 -0
  30. package/compat/claude-commands/cm-test.md +3 -0
  31. package/docs/architecture.md +155 -0
  32. package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-a1-handoff.json +57 -0
  33. package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-a2-handoff.json +58 -0
  34. package/docs/fixes/.reviews/fix-cancel-throw-T-FIX-cancel-throw-r1.md +121 -0
  35. package/docs/fixes/.reviews/fix-cancel-throw-v2-T-FIX-cancel-throw-v2-a1-handoff.json +56 -0
  36. package/docs/fixes/.reviews/fix-cancel-throw-v2-T-FIX-cancel-throw-v2-r1.md +100 -0
  37. package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a1-handoff.json +61 -0
  38. package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a2-handoff.json +63 -0
  39. package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-r1.md +58 -0
  40. package/docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-r2.md +55 -0
  41. package/docs/fixes/.reviews/fix-f01-dual-failure-terminal-T-FIX-f01-dual-failure-terminal-a1-handoff.json +65 -0
  42. package/docs/fixes/.reviews/fix-f01-dual-failure-terminal-T-FIX-f01-dual-failure-terminal-r1.md +88 -0
  43. package/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r1.md +33 -0
  44. package/docs/fixes/.reviews/fix-manifest-runtime-checkbox-drift-r2.md +31 -0
  45. package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a1-handoff.json +56 -0
  46. package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-a2-handoff.json +85 -0
  47. package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r1.md +53 -0
  48. package/docs/fixes/.reviews/fix-model-call-boundary-identity-T-FIX-model-call-boundary-identity-r2.md +80 -0
  49. package/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-a1-handoff.json +35 -0
  50. package/docs/fixes/.reviews/fix-review-evidence-scope-honesty-T-FIX-review-evidence-scope-honesty-r1.md +33 -0
  51. package/docs/fixes/.reviews/fix-windows-cp1252-log-output-r1.md +30 -0
  52. package/docs/fixes/.reviews/fix-windows-cp1252-log-output-r2.md +16 -0
  53. package/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-a1-handoff.json +40 -0
  54. package/docs/fixes/.reviews/openai-compatible-depth-fixture-T-FIX-openai-compatible-depth-fixture-r1.md +30 -0
  55. package/docs/fixes/20260729-windows-cp1252-log-output.md +65 -0
  56. package/docs/fixes/20260804-manifest-runtime-checkbox-drift.md +67 -0
  57. package/docs/fixes/20260806-model-call-boundary-identity.md +80 -0
  58. package/docs/fixes/20260807-prelanding-integrity.md +58 -0
  59. package/docs/fixes/20260826-openai-compatible-depth-fixture.md +39 -0
  60. package/docs/fixes/20260903-cm-js-n1n2-admission-r1.md +64 -0
  61. package/docs/fixes/20260903-cm-js-n1n2-admission-successor.md +83 -0
  62. package/docs/fixes/20260903-s4c1b-v3-cancel-throw.md +89 -0
  63. package/docs/fixes/20260904-f01-codex-dual-failure-terminal.md +89 -0
  64. package/docs/fixes/20260907-wip-triage-log.md +44 -0
  65. package/docs/installation.md +202 -0
  66. package/docs/js-workflow-control.md +1010 -0
  67. package/docs/sample-prd/prd-funding-rate-alert.md +42 -0
  68. package/docs/sample-specs/docs//351/234/200/346/261/202/347/244/272/344/276/213.md +24 -0
  69. package/docs/user-guide.md +526 -0
  70. package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/README.md +19 -0
  71. package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.excalidraw +3650 -0
  72. package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.mp4 +0 -0
  73. package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.png +0 -0
  74. package/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.spec.json +223 -0
  75. package/install-codex.sh +184 -0
  76. package/install.ps1 +206 -0
  77. package/install.sh +244 -0
  78. package/package.json +58 -0
  79. package/runtime/external-expert.md +302 -0
  80. package/runtime/js/cm-ai/accepted-fix.mjs +28 -0
  81. package/runtime/js/cm-ai/claude-developer-adapter.mjs +6 -0
  82. package/runtime/js/cm-ai/claude-review-adapter.mjs +16 -0
  83. package/runtime/js/cm-ai/claude-review-stream.mjs +53 -0
  84. package/runtime/js/cm-ai/claude-tool-preview.mjs +107 -0
  85. package/runtime/js/cm-ai/cm-ai-admission.mjs +353 -0
  86. package/runtime/js/cm-ai/cm-ai-context-refresh.mjs +217 -0
  87. package/runtime/js/cm-ai/cm-ai-conversation-entry.mjs +538 -0
  88. package/runtime/js/cm-ai/cm-ai-learning-handoff-writer.mjs +119 -0
  89. package/runtime/js/cm-ai/cm-ai-learning-writer.mjs +172 -0
  90. package/runtime/js/cm-ai/cm-ai-qa-log.mjs +320 -0
  91. package/runtime/js/cm-ai/cm-ai-run-finalizer.mjs +107 -0
  92. package/runtime/js/cm-ai/code-projects.mjs +85 -0
  93. package/runtime/js/cm-ai/codex-config.mjs +48 -0
  94. package/runtime/js/cm-ai/codex-developer-adapter.mjs +5 -0
  95. package/runtime/js/cm-ai/codex-developer-basic-output.schema.json +6 -0
  96. package/runtime/js/cm-ai/codex-developer-output.schema.json +37 -0
  97. package/runtime/js/cm-ai/codex-review-adapter.mjs +73 -0
  98. package/runtime/js/cm-ai/contracts.mjs +156 -0
  99. package/runtime/js/cm-ai/developer-adapter.mjs +93 -0
  100. package/runtime/js/cm-ai/durable-runner-state.mjs +504 -0
  101. package/runtime/js/cm-ai/effect-contract.mjs +102 -0
  102. package/runtime/js/cm-ai/execution-platform.mjs +7 -0
  103. package/runtime/js/cm-ai/execution-store.mjs +211 -0
  104. package/runtime/js/cm-ai/fix-code-association.mjs +40 -0
  105. package/runtime/js/cm-ai/gate-bridge.mjs +25 -0
  106. package/runtime/js/cm-ai/host-bootstrap.mjs +170 -0
  107. package/runtime/js/cm-ai/host-check.mjs +89 -0
  108. package/runtime/js/cm-ai/host-conversation-execution.mjs +125 -0
  109. package/runtime/js/cm-ai/host-documentation.mjs +40 -0
  110. package/runtime/js/cm-ai/host-handoff.mjs +71 -0
  111. package/runtime/js/cm-ai/host-project-execution.mjs +58 -0
  112. package/runtime/js/cm-ai/host-qa-executor.mjs +238 -0
  113. package/runtime/js/cm-ai/host-qa-fix-owner.mjs +131 -0
  114. package/runtime/js/cm-ai/host-qa-fix.mjs +30 -0
  115. package/runtime/js/cm-ai/host-qa-policy.mjs +70 -0
  116. package/runtime/js/cm-ai/host-review-authority.mjs +36 -0
  117. package/runtime/js/cm-ai/host-review-file.mjs +56 -0
  118. package/runtime/js/cm-ai/host-role-routing.mjs +41 -0
  119. package/runtime/js/cm-ai/host-session.mjs +96 -0
  120. package/runtime/js/cm-ai/host-tool-bridge.mjs +53 -0
  121. package/runtime/js/cm-ai/host-workflow-capabilities.mjs +45 -0
  122. package/runtime/js/cm-ai/host.mjs +20 -0
  123. package/runtime/js/cm-ai/index.mjs +7 -0
  124. package/runtime/js/cm-ai/provider-review-observation.mjs +86 -0
  125. package/runtime/js/cm-ai/qa-fix-definition.mjs +21 -0
  126. package/runtime/js/cm-ai/review-evidence-file.mjs +38 -0
  127. package/runtime/js/cm-ai/review-package.mjs +426 -0
  128. package/runtime/js/cm-ai/review-result.schema.json +40 -0
  129. package/runtime/js/cm-ai/review-runner.mjs +35 -0
  130. package/runtime/js/cm-ai/task-commit-codec.mjs +54 -0
  131. package/runtime/js/cm-ai/task-commit.mjs +201 -0
  132. package/runtime/js/cm-ai/task-owner.mjs +97 -0
  133. package/runtime/js/cm-ai/task-runner.mjs +766 -0
  134. package/runtime/js/cm-ai/tool-preview.mjs +205 -0
  135. package/runtime/js/cm-ai/worker-claude.mjs +104 -0
  136. package/runtime/js/cm-ai/worker-codex-developer.mjs +124 -0
  137. package/runtime/js/cm-ai/worker-codex.mjs +143 -0
  138. package/runtime/js/cm-check/host.mjs +101 -0
  139. package/runtime/js/cm-fix/baseline.mjs +70 -0
  140. package/runtime/js/cm-fix/cause-evidence.mjs +24 -0
  141. package/runtime/js/cm-fix/cause-invocation.mjs +40 -0
  142. package/runtime/js/cm-fix/cause-package.mjs +68 -0
  143. package/runtime/js/cm-fix/dossier.mjs +140 -0
  144. package/runtime/js/cm-fix/execution.mjs +1549 -0
  145. package/runtime/js/cm-fix/final-review-evidence.mjs +20 -0
  146. package/runtime/js/cm-fix/final-review.mjs +156 -0
  147. package/runtime/js/cm-fix/finish.mjs +124 -0
  148. package/runtime/js/cm-fix/handoff.mjs +64 -0
  149. package/runtime/js/cm-fix/host-review.mjs +38 -0
  150. package/runtime/js/cm-fix/host.mjs +96 -0
  151. package/runtime/js/cm-fix/investigation.mjs +25 -0
  152. package/runtime/js/cm-fix/layout.mjs +17 -0
  153. package/runtime/js/cm-fix/learning-writeback.mjs +86 -0
  154. package/runtime/js/cm-fix/learning.mjs +31 -0
  155. package/runtime/js/cm-fix/metrics.mjs +75 -0
  156. package/runtime/js/cm-fix/progress.mjs +64 -0
  157. package/runtime/js/cm-fix/protected-edits.mjs +95 -0
  158. package/runtime/js/cm-fix/qa-source.mjs +58 -0
  159. package/runtime/js/cm-fix/red-test.mjs +92 -0
  160. package/runtime/js/cm-fix/regression-evidence.mjs +64 -0
  161. package/runtime/js/cm-fix/regression.mjs +41 -0
  162. package/runtime/js/cm-fix/repair.mjs +95 -0
  163. package/runtime/js/cm-fix/reproduce.mjs +54 -0
  164. package/runtime/js/cm-fix/retrospective.mjs +41 -0
  165. package/runtime/js/cm-fix/review-baseline.mjs +47 -0
  166. package/runtime/js/cm-fix/start.mjs +49 -0
  167. package/runtime/js/cm-fix/test-author.mjs +63 -0
  168. package/runtime/js/cm-fix/visual.mjs +72 -0
  169. package/runtime/js/cm-fix/walkthrough.mjs +126 -0
  170. package/runtime/js/cm-idea/session.mjs +79 -0
  171. package/runtime/js/cm-init/draft-generation.mjs +66 -0
  172. package/runtime/js/cm-init/draft-inspection.mjs +70 -0
  173. package/runtime/js/cm-init/project-analysis.mjs +60 -0
  174. package/runtime/js/cm-init/project-scan.mjs +55 -0
  175. package/runtime/js/cm-init/review-evidence.mjs +80 -0
  176. package/runtime/js/cm-prd/accepted-design.mjs +46 -0
  177. package/runtime/js/cm-prd/analysis.mjs +260 -0
  178. package/runtime/js/cm-prd/change.mjs +268 -0
  179. package/runtime/js/cm-prd/correction-check.mjs +49 -0
  180. package/runtime/js/cm-prd/design-risk.mjs +30 -0
  181. package/runtime/js/cm-prd/disposition-plan.mjs +33 -0
  182. package/runtime/js/cm-prd/draft-save.mjs +122 -0
  183. package/runtime/js/cm-prd/draft.mjs +70 -0
  184. package/runtime/js/cm-prd/materials.mjs +48 -0
  185. package/runtime/js/cm-prd/review-correction.mjs +158 -0
  186. package/runtime/js/cm-prd/review-disposition.mjs +96 -0
  187. package/runtime/js/cm-prd/review-findings.mjs +36 -0
  188. package/runtime/js/cm-prd/review-host.mjs +48 -0
  189. package/runtime/js/cm-prd/review-preparation.mjs +49 -0
  190. package/runtime/js/cm-prd/review-publication.mjs +56 -0
  191. package/runtime/js/cm-prd/self-check.mjs +75 -0
  192. package/runtime/js/cm-prd/session.mjs +74 -0
  193. package/runtime/js/cm-prd/summary.mjs +133 -0
  194. package/runtime/js/cm-refactor/host.mjs +2 -0
  195. package/runtime/js/cm-refactor/records.mjs +86 -0
  196. package/runtime/js/cm-refactor/workflow.mjs +478 -0
  197. package/runtime/js/cm-test/declared-command.mjs +32 -0
  198. package/runtime/js/cm-test/host.mjs +319 -0
  199. package/runtime/js/cm-test/logic-results.mjs +39 -0
  200. package/runtime/js/cm-test/recovery.mjs +58 -0
  201. package/runtime/js/cm-test/session.mjs +56 -0
  202. package/runtime/js/cm-test/source-snapshot.mjs +136 -0
  203. package/runtime/logging.md +207 -0
  204. package/runtime/model-efficiency.md +201 -0
  205. package/runtime/orchestration.md +113 -0
  206. package/runtime/project-context.md +43 -0
  207. package/runtime/project-learning.md +49 -0
  208. package/runtime/review.md +140 -0
  209. package/runtime/steelman-review.md +111 -0
  210. package/runtime/task-gates.md +283 -0
  211. package/runtime/task-handoff.schema.json +103 -0
  212. package/runtime/test-contract.md +212 -0
  213. package/runtime/workflow-config.md +118 -0
  214. package/runtime/workflow-routing.md +82 -0
  215. package/scripts/cm-ai-admission.mjs +50 -0
  216. package/scripts/cm-ai-admission.test.mjs +38 -0
  217. package/scripts/cm-ai-batch-host.mjs +77 -0
  218. package/scripts/cm-ai-batch-host.test.mjs +155 -0
  219. package/scripts/cm-ai-batch-run.mjs +136 -0
  220. package/scripts/cm-ai-batch-run.test.mjs +128 -0
  221. package/scripts/cm-ai-bootstrap.test.mjs +228 -0
  222. package/scripts/cm-ai-fix-integration.test.mjs +233 -0
  223. package/scripts/cm-ai-host.mjs +175 -0
  224. package/scripts/cm-ai-host.test.mjs +368 -0
  225. package/scripts/cm-ai-multi-root.test.mjs +289 -0
  226. package/scripts/cm-ai-nested-execution.test.mjs +313 -0
  227. package/scripts/cm-ai-run.mjs +293 -0
  228. package/scripts/cm-ai-run.test.mjs +336 -0
  229. package/scripts/cm-check-entry.mjs +120 -0
  230. package/scripts/cm-check-host.mjs +29 -0
  231. package/scripts/cm-check-host.test.mjs +71 -0
  232. package/scripts/cm-check-runtime.ps1 +69 -0
  233. package/scripts/cm-check-runtime.sh +910 -0
  234. package/scripts/cm-claude-probe.test.mjs +54 -0
  235. package/scripts/cm-claude-review-stream.test.mjs +45 -0
  236. package/scripts/cm-claude-worker.test.mjs +92 -0
  237. package/scripts/cm-codex-developer-adapter.test.mjs +85 -0
  238. package/scripts/cm-codex-developer-worker.test.mjs +128 -0
  239. package/scripts/cm-codex-review-progress.test.mjs +96 -0
  240. package/scripts/cm-execution-platform.test.mjs +47 -0
  241. package/scripts/cm-fix-cause-invocation.test.mjs +72 -0
  242. package/scripts/cm-fix-cause-package.test.mjs +68 -0
  243. package/scripts/cm-fix-code-association.test.mjs +55 -0
  244. package/scripts/cm-fix-entry.mjs +132 -0
  245. package/scripts/cm-fix-execution.test.mjs +63 -0
  246. package/scripts/cm-fix-final-review.test.mjs +124 -0
  247. package/scripts/cm-fix-host-review-assembly.test.mjs +34 -0
  248. package/scripts/cm-fix-host-review.test.mjs +261 -0
  249. package/scripts/cm-fix-host-sequence.test.mjs +26 -0
  250. package/scripts/cm-fix-host.mjs +89 -0
  251. package/scripts/cm-fix-host.test.mjs +105 -0
  252. package/scripts/cm-fix-learning-writeback.test.mjs +73 -0
  253. package/scripts/cm-fix-learning.test.mjs +66 -0
  254. package/scripts/cm-fix-metrics.test.mjs +58 -0
  255. package/scripts/cm-fix-no-existing-tests.test.mjs +92 -0
  256. package/scripts/cm-fix-observation-dossier.test.mjs +452 -0
  257. package/scripts/cm-fix-progress.test.mjs +45 -0
  258. package/scripts/cm-fix-protected-edits.test.mjs +54 -0
  259. package/scripts/cm-fix-qa-source.test.mjs +206 -0
  260. package/scripts/cm-fix-red-owner.test.mjs +143 -0
  261. package/scripts/cm-fix-red-test.test.mjs +38 -0
  262. package/scripts/cm-fix-regression.test.mjs +57 -0
  263. package/scripts/cm-fix-repair-owner.test.mjs +370 -0
  264. package/scripts/cm-fix-repair.test.mjs +68 -0
  265. package/scripts/cm-fix-reproduce.test.mjs +31 -0
  266. package/scripts/cm-fix-retrospective.test.mjs +46 -0
  267. package/scripts/cm-fix-review-baseline.test.mjs +54 -0
  268. package/scripts/cm-fix-review-recovery.test.mjs +197 -0
  269. package/scripts/cm-fix-test-author.test.mjs +105 -0
  270. package/scripts/cm-fix-visual-bare.test.mjs +171 -0
  271. package/scripts/cm-fix-walkthrough.test.mjs +45 -0
  272. package/scripts/cm-host-check.test.mjs +113 -0
  273. package/scripts/cm-host-documentation.test.mjs +45 -0
  274. package/scripts/cm-host-handoff.test.mjs +58 -0
  275. package/scripts/cm-host-qa-executor.test.mjs +156 -0
  276. package/scripts/cm-host-qa-policy.test.mjs +59 -0
  277. package/scripts/cm-host-review-authority.test.mjs +60 -0
  278. package/scripts/cm-host-role-routing.test.mjs +33 -0
  279. package/scripts/cm-idea-entry.mjs +104 -0
  280. package/scripts/cm-idea-host.mjs +144 -0
  281. package/scripts/cm-idea-host.test.mjs +75 -0
  282. package/scripts/cm-idea-recovery.test.mjs +90 -0
  283. package/scripts/cm-init-analysis-host.test.mjs +50 -0
  284. package/scripts/cm-init-draft-generation.test.mjs +52 -0
  285. package/scripts/cm-init-draft-inspection.test.mjs +41 -0
  286. package/scripts/cm-init-entry.mjs +170 -0
  287. package/scripts/cm-init-host.mjs +284 -0
  288. package/scripts/cm-init-host.test.mjs +231 -0
  289. package/scripts/cm-init-project-analysis.test.mjs +47 -0
  290. package/scripts/cm-init-project-scan.test.mjs +41 -0
  291. package/scripts/cm-init-revision-host.test.mjs +61 -0
  292. package/scripts/cm-init-session.test.mjs +122 -0
  293. package/scripts/cm-log-event.mjs +538 -0
  294. package/scripts/cm-log-event.py +133 -0
  295. package/scripts/cm-log-event.test.mjs +70 -0
  296. package/scripts/cm-openai-compatible-call.py +661 -0
  297. package/scripts/cm-prd-analysis.test.mjs +67 -0
  298. package/scripts/cm-prd-completion.test.mjs +190 -0
  299. package/scripts/cm-prd-design-phase.test.mjs +296 -0
  300. package/scripts/cm-prd-draft-save.test.mjs +63 -0
  301. package/scripts/cm-prd-draft.test.mjs +39 -0
  302. package/scripts/cm-prd-entry.mjs +245 -0
  303. package/scripts/cm-prd-host.mjs +273 -0
  304. package/scripts/cm-prd-host.test.mjs +169 -0
  305. package/scripts/cm-prd-materials.test.mjs +41 -0
  306. package/scripts/cm-prd-review-claim.test.mjs +42 -0
  307. package/scripts/cm-prd-review-disposition.test.mjs +196 -0
  308. package/scripts/cm-prd-review-gate.mjs +194 -0
  309. package/scripts/cm-prd-review-gate.py +26 -0
  310. package/scripts/cm-prd-review-host.test.mjs +30 -0
  311. package/scripts/cm-prd-review-preparation.test.mjs +69 -0
  312. package/scripts/cm-prd-review-publication.test.mjs +95 -0
  313. package/scripts/cm-prd-revision.test.mjs +32 -0
  314. package/scripts/cm-prd-self-check.test.mjs +23 -0
  315. package/scripts/cm-prd-sources.test.mjs +76 -0
  316. package/scripts/cm-prd-timing.py +272 -0
  317. package/scripts/cm-refactor-entry.mjs +145 -0
  318. package/scripts/cm-refactor-host.mjs +26 -0
  319. package/scripts/cm-refactor-host.test.mjs +201 -0
  320. package/scripts/cm-review-dependency-snapshot.test.mjs +67 -0
  321. package/scripts/cm-review-inventory.test.mjs +109 -0
  322. package/scripts/cm-spec-manifest.mjs +104 -0
  323. package/scripts/cm-spec-manifest.py +26 -0
  324. package/scripts/cm-task-gate.mjs +879 -0
  325. package/scripts/cm-task-gate.py +312 -0
  326. package/scripts/cm-task-gate.test.mjs +202 -0
  327. package/scripts/cm-test-declared-command.test.mjs +18 -0
  328. package/scripts/cm-test-entry.mjs +231 -0
  329. package/scripts/cm-test-host.mjs +40 -0
  330. package/scripts/cm-test-host.test.mjs +169 -0
  331. package/scripts/cm-test-logic-results.test.mjs +26 -0
  332. package/scripts/cm-test-session.test.mjs +138 -0
  333. package/scripts/cm-usage-report.py +516 -0
  334. package/scripts/cm-workflow-config.mjs +463 -0
  335. package/scripts/cm-workflow-config.test.mjs +181 -0
  336. package/scripts/cm-workflow.mjs +36 -0
  337. package/scripts/cm-workflow.test.mjs +51 -0
  338. package/scripts/cm_workflow_config.py +52 -0
  339. package/scripts/fixtures/claude-review-process.mjs +35 -0
  340. package/scripts/fixtures/codex-review-process.mjs +22 -0
  341. package/scripts/fixtures/prd-review-gate-python-oracle.py +320 -0
  342. package/scripts/fixtures/spec-manifest-python-oracle.py +172 -0
  343. package/scripts/scan-public-safety.py +117 -0
  344. package/scripts/test-cm-log-event.py +1213 -0
  345. package/scripts/test-cm-openai-compatible-call.py +1185 -0
  346. package/scripts/test-cm-prd-review-gate.py +272 -0
  347. package/scripts/test-cm-prd-timing.py +168 -0
  348. package/scripts/test-cm-usage-report.py +584 -0
  349. package/scripts/test-npm-install.py +171 -0
  350. package/scripts/test-scan-public-safety.py +76 -0
  351. package/scripts/test-shell-compat.sh +365 -0
  352. package/scripts/test-spec-manifest.py +263 -0
  353. package/scripts/test-task-gate.py +46 -0
  354. package/scripts/test-workflow-config.py +30 -0
  355. package/scripts/validate-public-repo.py +245 -0
  356. package/scripts/validate-test-cases.mjs +71 -0
  357. package/scripts/validate-test-cases.py +27 -0
  358. package/scripts/validate-test-cases.test.mjs +36 -0
  359. package/skills/cm-ai/SKILL.md +137 -0
  360. package/skills/cm-ai/references/N1-init.md +108 -0
  361. package/skills/cm-ai/references/N2-enter-feature.md +38 -0
  362. package/skills/cm-ai/references/N3-execute-task.md +123 -0
  363. package/skills/cm-ai/references/N4-review.md +103 -0
  364. package/skills/cm-ai/references/N5-mark-done.md +117 -0
  365. package/skills/cm-ai/references/N6-qa-eval.md +102 -0
  366. package/skills/cm-ai/references/N7-context.md +23 -0
  367. package/skills/cm-ai/references/N8-finish.md +103 -0
  368. package/skills/cm-ai/references/js-host.md +126 -0
  369. package/skills/cm-backend-engineer/SKILL.md +100 -0
  370. package/skills/cm-check/SKILL.md +52 -0
  371. package/skills/cm-check/references/js-host.md +44 -0
  372. package/skills/cm-contract-engineer/SKILL.md +136 -0
  373. package/skills/cm-database-engineer/SKILL.md +89 -0
  374. package/skills/cm-devops-engineer/SKILL.md +137 -0
  375. package/skills/cm-doc-syncer/SKILL.md +150 -0
  376. package/skills/cm-finance-expert/SKILL.md +85 -0
  377. package/skills/cm-fix/SKILL.md +199 -0
  378. package/skills/cm-fix/references/cross-boundary-debugging.md +44 -0
  379. package/skills/cm-fix/references/js-host.md +135 -0
  380. package/skills/cm-frontend-engineer/SKILL.md +127 -0
  381. package/skills/cm-idea/SKILL.md +55 -0
  382. package/skills/cm-idea/references/domains/trading.md +97 -0
  383. package/skills/cm-idea/references/example-prd.md +92 -0
  384. package/skills/cm-idea/references/idea-to-prd.md +282 -0
  385. package/skills/cm-idea/references/js-host.md +63 -0
  386. package/skills/cm-init/SKILL.md +191 -0
  387. package/skills/cm-init/references/js-host.md +123 -0
  388. package/skills/cm-miniprogram-engineer/SKILL.md +141 -0
  389. package/skills/cm-miniprogram-engineer/references/platform-readiness.md +58 -0
  390. package/skills/cm-miniprogram-engineer/references/release-checklist.md +59 -0
  391. package/skills/cm-prd/SKILL.md +548 -0
  392. package/skills/cm-prd/references/brownfield.md +13 -0
  393. package/skills/cm-prd/references/change-mode.md +145 -0
  394. package/skills/cm-prd/references/context-scope.md +62 -0
  395. package/skills/cm-prd/references/greenfield.md +80 -0
  396. package/skills/cm-prd/references/js-change-recovery.md +57 -0
  397. package/skills/cm-prd/references/js-host.md +98 -0
  398. package/skills/cm-prd/references/phase-timing.md +68 -0
  399. package/skills/cm-prd/references/spec-self-check.md +22 -0
  400. package/skills/cm-product-manager/SKILL.md +83 -0
  401. package/skills/cm-qa-engineer/SKILL.md +142 -0
  402. package/skills/cm-refactor/SKILL.md +236 -0
  403. package/skills/cm-refactor/references/js-batch.md +75 -0
  404. package/skills/cm-refactor/references/js-host.md +78 -0
  405. package/skills/cm-test/SKILL.md +288 -0
  406. package/skills/cm-test/references/js-host.md +118 -0
  407. package/skills/cm-ui-engineer/SKILL.md +105 -0
  408. package/skills/codebase-context/SKILL.md +489 -0
  409. package/skills/darwin-skill/NOTICE.md +26 -0
  410. package/skills/darwin-skill/README.md +272 -0
  411. package/skills/darwin-skill/SKILL.md +492 -0
  412. package/skills/darwin-skill/references/runtime-neutrality.md +68 -0
  413. package/skills/darwin-skill/references/skilllens-evidence.md +142 -0
  414. package/skills/darwin-skill/scripts/screenshot.mjs +71 -0
  415. package/skills/darwin-skill/templates/result-card-dark.html +698 -0
  416. package/skills/darwin-skill/templates/result-card-white.html +444 -0
  417. package/skills/darwin-skill/templates/result-card.html +616 -0
  418. package/skills/external-expert/SKILL.md +250 -0
  419. package/templates/arch-reference.md +68 -0
  420. package/templates/auto-update/cm-announce.sh +19 -0
  421. package/templates/auto-update/cm-update.sh +274 -0
  422. package/templates/cm-workflow.yml +52 -0
  423. package/templates/dashboard/dashboard.html +153 -0
  424. package/templates/dashboard/serve.sh +10 -0
  425. package/templates/hooks/pre-commit-cm-task-check +67 -0
  426. package/templates/pixel/cm-pixel.html +388 -0
  427. package/templates/pixel/cm-pixel.sh +212 -0
  428. package/templates/pixel/dev/README.md +20 -0
  429. package/templates/pixel/dev/atlas-preview.png +0 -0
  430. package/templates/pixel/dev/build.py +55 -0
  431. package/templates/pixel/dev/sheets/roguelikeChar_transparent.png +0 -0
  432. package/templates/pixel/dev/sheets/roguelikeCity_tilemap.png +0 -0
  433. package/templates/pixel/dev/sheets/roguelikeIndoor_transparent.png +0 -0
  434. package/templates/pixel/dev/template.html +388 -0
  435. package/templates/pixel/serve.sh +12 -0
  436. package/templates/refactor/cm-refactor-denies.json +14 -0
  437. package/templates/rules/backend-api.md +36 -0
  438. package/templates/rules/coding-style.md +44 -0
  439. package/templates/rules/database.md +27 -0
  440. package/templates/rules/finance.md +32 -0
  441. package/templates/rules/frontend.md +32 -0
  442. package/templates/rules/git-workflow.md +25 -0
  443. package/templates/rules/miniprogram.md +31 -0
  444. package/templates/rules/security.md +31 -0
  445. package/templates/rules/smart-contract.md +28 -0
  446. package/templates/rules/testing.md +36 -0
  447. package/templates/statusline/cm-statusline.sh +73 -0
  448. package/templates/ui-lens/cm-ui-lens-extract.mjs +55 -0
@@ -0,0 +1,100 @@
1
+ ---
2
+ at: 2026-09-03T20:17:03-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: T-FIX-cancel-throw-v2
6
+ attempt: 1
7
+ round: 1
8
+ verdict: approved
9
+ blocking_findings: 0
10
+ handoff: fix-cancel-throw-v2-T-FIX-cancel-throw-v2-a1-handoff.json
11
+ handoff_sha256: 3e41e6b10cb818567cd7801b4b1d9598ec3b29fcb9788a4278253773a944e5ab
12
+ scope:
13
+ - experiments/js-orchestration/review-invocation-v3.test.mjs
14
+ - experiments/js-orchestration/task-runner.mjs
15
+ ---
16
+
17
+ # Findings
18
+
19
+ Zero findings; no blocking findings were found in the two-file correction, its
20
+ regression, the corrected review envelope, or the independently exercised recovery
21
+ behavior.
22
+
23
+ # Correctness and cancellation causality
24
+
25
+ The authorization catch in `task-runner.mjs:321-324` now preserves the state when an
26
+ explicit cancellation has already won or the shared controller is aborted. In the
27
+ reviewed sequence, `runner.cancel()` first persists the authoritative `control`
28
+ record and establishes `cancelled/cancelled`; the catch then returns before the
29
+ competing `unknown/authorization_invalid` classification, allowing the enclosing
30
+ effect to write its normal checkpoint. The guard is before registration and adapter
31
+ dispatch and does not alter grant validation, invocation result handling, receipt or
32
+ completion authority, or the durable record schema.
33
+
34
+ The new test at `review-invocation-v3.test.mjs:160-169` exercises the formerly failing
35
+ cancel-then-throw sequence and checks the material contract: terminal
36
+ `cancelled/cancelled`, zero dispatch, no invocation registration/diagnostic, exact
37
+ durable suffix `effect-intent -> control -> effect-checkpoint`, and byte-equivalent
38
+ state after reopening the real local execution store. This is a behavioral recovery
39
+ test rather than an assertion tied only to the new conditional.
40
+
41
+ # Ordinary-error separation
42
+
43
+ A separate local synthetic probe used a genuine `openTaskExecutionStore` with an
44
+ authorization callback that throws without cancelling. It completed as
45
+ `unknown/authorization_invalid`, recorded no `control` or invocation registration,
46
+ performed zero adapter dispatches, wrote only
47
+ `effect-intent -> effect-checkpoint`, retained `cancellationRequested: false`, and
48
+ resumed identically. The correction therefore does not mask ordinary authorization
49
+ errors or invent cancellation authority.
50
+
51
+ # Verification
52
+
53
+ - Current product hashes exactly matched the handoff:
54
+ - `task-runner.mjs` — `9224a6007142f44b1f624cd76bc3848e7441ad97bda03c75ffeae46bf2baf626`
55
+ - `review-invocation-v3.test.mjs` — `8450d76555adff7dc84b03d873a447f1ef96dd06a05c1c1c2ce5580c9aa20dcb`
56
+ - The handoff bytes matched SHA-256
57
+ `3e41e6b10cb818567cd7801b4b1d9598ec3b29fcb9788a4278253773a944e5ab`.
58
+ - The repository-supported N4 invocation independently returned
59
+ `ready_for_review` for task attempt 1 with that same handoff SHA-256.
60
+ - `node --test experiments/js-orchestration/review-invocation-v3.test.mjs` — exit 0,
61
+ **30/30 passed** independently.
62
+ - `node --check` on each scoped product file — exit 0.
63
+ - The ordinary-throw recovery probe above — exit 0 and all assertions passed; it
64
+ used only synthetic temporary local data and made no provider call.
65
+ - The handoff reports the full Node suite at **964/964** and the runtime/public/diff/
66
+ shell gates as passed. Those broader author results were not independently rerun
67
+ in this focused review. The exact five pre-existing public-safety findings remain
68
+ disclosed, outside the two-file scope, and unwaived.
69
+
70
+ # Scope and residual risk
71
+
72
+ The reviewed bytes and accepted handoff are limited to the two declared product
73
+ files. No durable schema, authorization-grant shape, registration protocol, receipt,
74
+ completion, provider, installation, Git, or F01 behavior expansion was found. The
75
+ files are untracked relative to the current repository index, so a Git diff cannot
76
+ serve as independent task-delta evidence; this review is instead bound to the full
77
+ current file contents and their exact hashes. That dirty-tree limitation does not
78
+ weaken the behavioral assertions above, but the approval becomes invalid if either
79
+ reviewed file or the handoff changes.
80
+
81
+ The unchanged V3 boundary remains: this is local host-trust fixture evidence, not
82
+ remote provenance, real-provider authorization, remote cancellation, billing-stop,
83
+ installed-runtime, CI/platform, or completion-authority evidence. The five existing
84
+ public-safety findings remain a separate unwaived risk and are not cleared by this
85
+ approval.
86
+
87
+ # Learning check
88
+
89
+ The scoped lesson is supported: a reentrant trusted host callback must preserve an
90
+ already durable explicit cancellation on both normal and exceptional exits before
91
+ dispatch. No `AGENTS.md` edit is needed for this correction, and this reviewer did
92
+ not modify product code or project learning state.
93
+
94
+ # Verdict and next action
95
+
96
+ **Approved with zero findings/no blocking findings.** The next action is for the main
97
+ executor to run the repository's N5 check against this exact handoff and review, then
98
+ continue the cm-fix regression and closeout sequence only if the content-bound gate
99
+ passes. Any change to either scoped product file, this handoff, or execution
100
+ instructions requires a fresh review.
@@ -0,0 +1,61 @@
1
+ {
2
+ "schema_version": 1,
3
+ "task_id": "T-FIX-cm-js-n1n2-admission-successor",
4
+ "attempt": 1,
5
+ "status": "ready_for_review",
6
+ "changed_files": [
7
+ "experiments/js-orchestration/cm-ai-admission.mjs",
8
+ "experiments/js-orchestration/cm-ai-admission.test.mjs",
9
+ "experiments/js-orchestration/README.md",
10
+ "AGENTS.md",
11
+ "docs/fixes/20260903-cm-js-n1n2-admission-successor.md"
12
+ ],
13
+ "verification": [
14
+ {
15
+ "command": "node --test experiments/js-orchestration/cm-ai-admission.test.mjs",
16
+ "status": "passed",
17
+ "evidence": "Baseline 13/13; after adding five R2 reproductions, 13 passed and 5 failed with wrong ready/complete states; after the minimum repair, 18/18 passed."
18
+ },
19
+ {
20
+ "command": "node --check experiments/js-orchestration/cm-ai-admission.mjs",
21
+ "status": "passed",
22
+ "evidence": "Node syntax check exited 0 after the repair."
23
+ },
24
+ {
25
+ "command": "node --test experiments/js-orchestration/*.test.mjs",
26
+ "status": "passed",
27
+ "evidence": "982/982 tests passed with exit 0."
28
+ },
29
+ {
30
+ "command": "./scripts/cm-check-runtime.sh",
31
+ "status": "passed",
32
+ "evidence": "Runtime check passed, including log, workflow config, preparation, revision, ownership, and task-gate fixtures for plugin v0.10.4."
33
+ },
34
+ {
35
+ "command": "python3 scripts/validate-public-repo.py",
36
+ "status": "passed",
37
+ "evidence": "Public repository validation passed for v0.10.4 and 8 core skills."
38
+ },
39
+ {
40
+ "command": "git diff --check",
41
+ "status": "passed",
42
+ "evidence": "Tracked diff has no whitespace errors; new candidate files are separately bound by full-file SHA-256 and parsed by Node/tests."
43
+ }
44
+ ],
45
+ "evidence": [
46
+ "Human successor authorization and exact non-goals: .omx/plans/cm-js-n1n2-admission-successor.md",
47
+ "Independent R2 reproductions and blocked predecessor: .omx/research/cm-js-n1n2-admission-review-r2.md",
48
+ "Defect archive with red/green evidence: docs/fixes/20260903-cm-js-n1n2-admission-successor.md",
49
+ "Ordered five-file SHA-256 manifest digest: afa843a2226c32b06192ecb51b701660516b5e30349bf24ec2673c10e7ae8d30",
50
+ "Implementation SHA-256: 5c7af1310541e3091385d48c6a16da615581ec109d8610d68909b3cf44a9292e",
51
+ "Focused-test SHA-256: a8d28402f70bb1dfe034990430407f6386dd993fdd799af1da3f1c6595ea2ce3",
52
+ "README SHA-256: 72a37b7069c2a4fd524f8ec54a9ef247b51cb8202106eb64cf5c3eb9fff66d81",
53
+ "AGENTS.md SHA-256: 2c5f5395e4c2c2192bf80d7c6a1c58d0163df72bd274e71e61b5e7d8b9d36d11",
54
+ "Defect archive SHA-256: f78c74fe865fbd231988daf23502efd245c1732a3d0cce3dd9d42efd5d42e400",
55
+ "Public safety scan remains exit 1 with the exact five pre-existing findings in docs/marketing/wechat-draft-dry-run.json, tool-preview.mjs, and worker-codex.mjs; none is in successor scope and none is waived.",
56
+ "Pre-successor dirty-status hash: f0f7b07d8061a858e56204e95789e6fe580c3f9668bfbc527b18109f34e19626. Unrelated tracked and untracked user changes are excluded.",
57
+ "Source compatibility degradation: runtime/model-efficiency.md and the installed-Skill hash-implementation command are absent from this repository; the source v1 handoff schema and available check-n4 gate remain authoritative."
58
+ ],
59
+ "blockers": [],
60
+ "scope_deviation": []
61
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "schema_version": 1,
3
+ "task_id": "T-FIX-cm-js-n1n2-admission-successor",
4
+ "attempt": 2,
5
+ "status": "ready_for_review",
6
+ "changed_files": [
7
+ "experiments/js-orchestration/cm-ai-admission.mjs",
8
+ "experiments/js-orchestration/cm-ai-admission.test.mjs",
9
+ "experiments/js-orchestration/README.md",
10
+ "AGENTS.md",
11
+ "docs/fixes/20260903-cm-js-n1n2-admission-successor.md"
12
+ ],
13
+ "verification": [
14
+ {
15
+ "command": "node --test experiments/js-orchestration/cm-ai-admission.test.mjs",
16
+ "status": "passed",
17
+ "evidence": "Successor R1 cross-alias reproduction failed red with 18 passed/1 failed and actual complete versus blocked; after one-line match-key uniqueness repair, 19/19 passed."
18
+ },
19
+ {
20
+ "command": "node --check experiments/js-orchestration/cm-ai-admission.mjs",
21
+ "status": "passed",
22
+ "evidence": "Node syntax check exited 0 for attempt 2."
23
+ },
24
+ {
25
+ "command": "node --test experiments/js-orchestration/*.test.mjs",
26
+ "status": "passed",
27
+ "evidence": "983/983 tests passed with exit 0 after the R1 correction."
28
+ },
29
+ {
30
+ "command": "./scripts/cm-check-runtime.sh",
31
+ "status": "passed",
32
+ "evidence": "Runtime check passed for plugin v0.10.4 after the R1 correction."
33
+ },
34
+ {
35
+ "command": "python3 scripts/validate-public-repo.py",
36
+ "status": "passed",
37
+ "evidence": "Public repository validation passed for v0.10.4 and 8 core skills."
38
+ },
39
+ {
40
+ "command": "git diff --check",
41
+ "status": "passed",
42
+ "evidence": "Tracked diff has no whitespace errors; new candidate files are separately bound by full-file SHA-256 and parsed by Node/tests."
43
+ }
44
+ ],
45
+ "evidence": [
46
+ "Human successor authorization and exact non-goals: .omx/plans/cm-js-n1n2-admission-successor.md",
47
+ "Blocked predecessor R2: .omx/research/cm-js-n1n2-admission-review-r2.md",
48
+ "Successor attempt1 handoff: docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a1-handoff.json",
49
+ "Successor R1 changes_requested evidence: docs/fixes/.reviews/fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-r1.md",
50
+ "Defect archive with both red-green cycles: docs/fixes/20260903-cm-js-n1n2-admission-successor.md",
51
+ "Ordered five-file SHA-256 manifest digest: e856aa0e470b535b4cf3bebcb5b7cddbde2bbe6e84833ddc2c1939b9e47830ea",
52
+ "Implementation SHA-256: 4f3255ef5a8e225d336096a0a4cb519ec25ec8251bc82fb3e4885f786231eecf",
53
+ "Focused-test SHA-256: 9ca76c3cfd87ea6b81851a27c176a980f94e03416ecf6e011fb10008bebae003",
54
+ "README SHA-256: 5aac78e5e74a653fdd09fe2888af1d94d459a91f2b8123bfeb11a5e0d8c95cdc",
55
+ "AGENTS.md SHA-256: 4f435c1e34088df7dd4f5a77936f14456f0099e72f173a2cd7f4384495463528",
56
+ "Defect archive SHA-256: 08aea6a285bac5dfac62407bf9700e5fdf17ad3050be9307d29299dd7355214e",
57
+ "Public safety scan remains exit 1 with the exact five pre-existing findings; none is in successor scope and none is waived.",
58
+ "Pre-successor dirty-status hash: f0f7b07d8061a858e56204e95789e6fe580c3f9668bfbc527b18109f34e19626. Unrelated user changes remain excluded.",
59
+ "Source compatibility degradation remains unchanged: no runtime/model-efficiency.md or hash-implementation command was invented."
60
+ ],
61
+ "blockers": [],
62
+ "scope_deviation": []
63
+ }
@@ -0,0 +1,58 @@
1
+ ---
2
+ at: 2026-09-03T19:52:53-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: T-FIX-cm-js-n1n2-admission-successor
6
+ attempt: 1
7
+ round: 1
8
+ verdict: changes_requested
9
+ blocking_findings: 1
10
+ handoff: fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a1-handoff.json
11
+ handoff_sha256: bd3b5ddb6dcd3947a7735ca37bd9f65a1fa220a980d09378105c370ceb83d25f
12
+ scope:
13
+ - experiments/js-orchestration/cm-ai-admission.mjs
14
+ - experiments/js-orchestration/cm-ai-admission.test.mjs
15
+ - experiments/js-orchestration/README.md
16
+ - AGENTS.md
17
+ - docs/fixes/20260903-cm-js-n1n2-admission-successor.md
18
+ ---
19
+
20
+ # Fresh successor implementation Review R1
21
+
22
+ Reviewer thread:`01a06b2b-ef9e-7d03-b150-5282e3c48308`
23
+
24
+ ## Finding
25
+
26
+ **Medium — Review 身份唯一性只检查去前缀 slug,没有检查实际匹配的完整别名集合。**
27
+
28
+ `cm-ai-admission.mjs:66` 只比较去掉首个数字前缀后的 slug 是否重复,但
29
+ `missingReviewIds()` 同时接受完整 feature 名和去前缀 slug。对抗输入:
30
+
31
+ - `1.login/T-001` 已完成;
32
+ - `2.1.login/T-001` 已完成;
33
+ - 只有 `.reviews/1.login-T-001-r1.md`。
34
+
35
+ 两个 slug 分别是 `login` 和 `1.login`,当前唯一性检查通过;同一个证据却既作为
36
+ `1.login` 的完整名匹配,又作为 `2.1.login` 的 slug 匹配。实际错误返回
37
+ `complete/all_tasks_terminal` 且 `warnings: []`,第二个 feature 的欠账被消音。
38
+
39
+ 建议保证所有实际匹配键——完整目录名和去编号 slug——全局无碰撞,或收紧 feature
40
+ 后缀语法。现有重复 slug 用例没有覆盖跨别名碰撞。
41
+
42
+ ## 已确认闭环
43
+
44
+ - 前任 R2 五类输入全部通过 focused tests。
45
+ - recorded 合同指向 specs 外:`spec_status_invalid`。
46
+ - legacy 合同指向相邻 feature:`test_cases_invalid`。
47
+ - `.reviews` 内外部文件 symlink 不计为证据,欠账 warning 保留。
48
+ - 没有扩大 AC、hardlink、通用 TOCTOU 或更广泛信任模型范围。
49
+
50
+ ## 验证
51
+
52
+ - handoff 和五个目标文件审查前后哈希精确匹配。
53
+ - N4 通过并绑定 handoff `bd3b5dd...d25f`。
54
+ - focused 18/18、full Node 982/982、syntax/runtime/public/diff 通过。
55
+ - safety 仍精确为五个已知界外命中,没有 scoped 新项。
56
+ - reviewer 未修改仓库、创建凭证、提交、完成任务、安装或委派。
57
+
58
+ **Verdict: changes_requested**
@@ -0,0 +1,55 @@
1
+ ---
2
+ at: 2026-09-04T00:02:21-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: T-FIX-cm-js-n1n2-admission-successor
6
+ attempt: 2
7
+ round: 2
8
+ verdict: approved
9
+ blocking_findings: 0
10
+ handoff: fix-cm-js-n1n2-admission-successor-T-FIX-cm-js-n1n2-admission-successor-a2-handoff.json
11
+ handoff_sha256: 5b60605d5534ed5b7550b9d6f13241145af9b3ebbfc4d0c9a6f04852b302b61c
12
+ scope:
13
+ - experiments/js-orchestration/cm-ai-admission.mjs
14
+ - experiments/js-orchestration/cm-ai-admission.test.mjs
15
+ - experiments/js-orchestration/README.md
16
+ - AGENTS.md
17
+ - docs/fixes/20260903-cm-js-n1n2-admission-successor.md
18
+ ---
19
+
20
+ # Fresh successor implementation Review R2
21
+
22
+ Reviewer thread:`01a06b35-6a4f-7c11-9b96-90822df10eb8`
23
+
24
+ ## Findings
25
+
26
+ Zero findings(High / Medium / Low 均为 0)。五文件范围内没有发现可复现的错误结果。
27
+
28
+ ## R1 closure
29
+
30
+ - `1.login` 与 `2.1.login` 的完整名/slug 碰撞输入现在返回
31
+ `blocked/feature_contract_invalid`。
32
+ - 独立正向探针使用不冲突的 `1.login` 与 `2.1.profile`,结果为
33
+ `complete/all_tasks_terminal` 且无 warning,正常编号命名没有被误伤。
34
+ - 前任 R2 五类路径/身份回归全部保持关闭。
35
+
36
+ ## Checks
37
+
38
+ - a2 handoff 与五个目标文件审查前后 SHA-256 完全一致。
39
+ - a1 → R1 `changes_requested` → a2 链完整,N4 exit 0。
40
+ - `node --check`:exit 0。
41
+ - focused:19/19 passed。
42
+ - full Node:983/983 passed,exit 0。
43
+ - runtime:passed,plugin v0.10.4。
44
+ - public repository validation:passed,8 core skills。
45
+ - `git diff --check`:exit 0。
46
+ - safety 仍精确为五个已知界外命中,没有新增 scoped finding。
47
+ - README 与 Learning 教训准确描述 containment、完整名/slug 冲突和只读边界。
48
+ - reviewer 未修改仓库、创建证据、提交、完成任务、安装、调用外部 provider 或委派。
49
+
50
+ ## Residual non-blocking risk
51
+
52
+ 证据仍是本机同步只读 fixture,不是实际宿主/provider、远程 CI 或发布证据。hardlink、
53
+ 通用 TOCTOU 与 `- AC-999:` 解释风险是本 successor 明确排除的范围,没有被提升为完成条件。
54
+
55
+ **Verdict: approved**
@@ -0,0 +1,65 @@
1
+ {
2
+ "schema_version": 1,
3
+ "task_id": "T-FIX-f01-dual-failure-terminal",
4
+ "attempt": 1,
5
+ "status": "ready_for_review",
6
+ "changed_files": [
7
+ ".omx/research/f01-codex-review-live/smoke.mjs",
8
+ ".omx/research/f01-codex-review-live/smoke.test.mjs",
9
+ "AGENTS.md",
10
+ "docs/fixes/20260904-f01-codex-dual-failure-terminal.md",
11
+ "experiments/js-orchestration/codex-review-adapter.test.mjs",
12
+ "experiments/js-orchestration/smoke.test.mjs",
13
+ "experiments/js-orchestration/worker-codex.mjs"
14
+ ],
15
+ "verification": [
16
+ {
17
+ "command": "node --test --test-name-pattern='duplicate provider failure|error then turn.failed|one observed non-authoritative' experiments/js-orchestration/smoke.test.mjs experiments/js-orchestration/codex-review-adapter.test.mjs .omx/research/f01-codex-review-live/smoke.test.mjs",
18
+ "status": "passed",
19
+ "evidence": "Before the repair all 3 selected tests failed for duplicate terminal forwarding, observation_invalid, and provider_thread_invalid; after the repair all 3 passed."
20
+ },
21
+ {
22
+ "command": "node --test experiments/js-orchestration/smoke.test.mjs experiments/js-orchestration/codex-review-adapter.test.mjs .omx/research/f01-codex-review-live/smoke.test.mjs",
23
+ "status": "passed",
24
+ "evidence": "84/84 related worker, adapter, V3 wiring, and live harness tests passed."
25
+ },
26
+ {
27
+ "command": "node --test experiments/js-orchestration/*.test.mjs",
28
+ "status": "passed",
29
+ "evidence": "996/996 tests passed; the observer duplicate_terminal rejection canary remained green."
30
+ },
31
+ {
32
+ "command": "./scripts/cm-check-runtime.sh",
33
+ "status": "passed",
34
+ "evidence": "Runtime consistency and bundled fixtures passed for plugin v0.10.4."
35
+ },
36
+ {
37
+ "command": "bash scripts/test-shell-compat.sh && python3 scripts/test-workflow-config.py && python3 scripts/test-task-gate.py",
38
+ "status": "passed",
39
+ "evidence": "Shell compatibility, workflow config, readonly preparation, final revision, ownership, and task-gate fixtures passed."
40
+ },
41
+ {
42
+ "command": "python3 scripts/validate-public-repo.py",
43
+ "status": "passed",
44
+ "evidence": "Public repository validation passed for v0.10.4."
45
+ },
46
+ {
47
+ "command": "node --check experiments/js-orchestration/worker-codex.mjs && node --check .omx/research/f01-codex-review-live/smoke.mjs && find . -type f -name '*.sh' -print0 | xargs -0 -n1 /bin/bash -n && git diff --check",
48
+ "status": "passed",
49
+ "evidence": "Scoped JavaScript syntax, repository shell syntax, and whitespace checks passed."
50
+ }
51
+ ],
52
+ "evidence": [
53
+ "Authorized scope: offline-only normalization of the observed error then turn.failed sequence plus correction of string-valued reviewInvocation.started reporting; no provider retry or new live attempt.",
54
+ "Root cause and red-to-green evidence: docs/fixes/20260904-f01-codex-dual-failure-terminal.md.",
55
+ "Pre-task file SHA-256: worker-codex e6a17da264c231443c9dd7a1ae13336947d334999c0e08a5caa712efc3b476cd; smoke.test c912ef6ae1ad0f39e7801d57856b889a3b7e4f5be10fedc83d013d3297233deb; codex-review-adapter.test 22b5a6c5fa09cfa84c7ec68a5e56d2883223e8ce0872ac98e4bc904ae2595152; live smoke 962c187f27558b6c83642297434c644525199c999a2c704acd07f80198173f7f; live smoke.test 1eed100e355e4c3c5cb7806ae1ef11fb6714d31e313dab7e64aa8ac9c78c1c77.",
56
+ "Review candidate SHA-256: AGENTS.md 1c80191e54ae286582f6c884a01a150e05a160646d3e4a750cdf240be15fd36a; worker-codex 2407e3aa80bca3566247dd609d32cdb3e1919c7cb4ea0b01e6d05c47a6d9e420; smoke.test 0be4d60710f62fe2b4bbe0d3173b2648f9a32e3be49f80919eb781545ecfc282; codex-review-adapter.test 92bf6205ea758adbcdaf4b596d4be475342ff1fa8bf8ffd7f06dcd7847f76729; live smoke 0b755785789bc1fcb835b3dd0cfda1da3c0911808e0f9bfe3c4b83c8cdad9ff5; live smoke.test 9d78d8c95ccea07e36e33bfeba8cdb555dced7225e9146be2cad6f9593fa9701; defect archive e7f92380db7afb1b39c33e915454c37798fd9cafeefb41459b1e84a189021cd1.",
57
+ "Behavior after repair: thread.started then turn.started then error then turn.failed is normalized to one error terminal plus process_closed and persists as unknown/transport_incomplete with the provider thread retained, one spawn, no redispatch, null receipt, null taskCommit, and unchanged tasks bytes.",
58
+ "Observer contract was not changed; its duplicate_terminal rejection test still passes.",
59
+ "Public safety scan remains exit 1 with the exact five pre-existing findings in docs/marketing/wechat-draft-dry-run.json, tool-preview.mjs, and worker-codex.mjs; none was introduced, fixed, or waived by this task.",
60
+ "Current dirty status hash is ca05fa9c1904c04587bdc3b81bbcb5c568fb4c2d9ea01850caf41271b2eb26e7. All unrelated tracked and untracked user changes remain excluded.",
61
+ "No preflight, live/provider invocation, retry, F01 checkbox, F01 third item, F02, F05 product wiring, installation, Git, push, release, receipt, completion, or real project task write occurred."
62
+ ],
63
+ "blockers": [],
64
+ "scope_deviation": []
65
+ }
@@ -0,0 +1,88 @@
1
+ ---
2
+ at: 2026-09-04T03:31:33-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: T-FIX-f01-dual-failure-terminal
6
+ attempt: 1
7
+ round: 1
8
+ verdict: approved
9
+ blocking_findings: 0
10
+ handoff: fix-f01-dual-failure-terminal-T-FIX-f01-dual-failure-terminal-a1-handoff.json
11
+ handoff_sha256: 15b3a7e9108c7733831a24d80bc7d0051f49a682c84ac9aa876d7e5669ab38da
12
+ scope:
13
+ - .omx/research/f01-codex-review-live/smoke.mjs
14
+ - .omx/research/f01-codex-review-live/smoke.test.mjs
15
+ - AGENTS.md
16
+ - docs/fixes/20260904-f01-codex-dual-failure-terminal.md
17
+ - experiments/js-orchestration/codex-review-adapter.test.mjs
18
+ - experiments/js-orchestration/smoke.test.mjs
19
+ - experiments/js-orchestration/worker-codex.mjs
20
+ ---
21
+
22
+ # Findings
23
+
24
+ Zero findings. No blocking or non-blocking correctness, security, contract,
25
+ test-quality, regression, or scope findings were identified.
26
+
27
+ # Review binding and scope
28
+
29
+ - Fresh reviewer thread: `01a06bf3-21ec-7e13-b7b0-86f04f05ef74`; it received no
30
+ authoring history and made no repository changes.
31
+ - The authoritative handoff SHA-256 exactly matched
32
+ `15b3a7e9108c7733831a24d80bc7d0051f49a682c84ac9aa876d7e5669ab38da`.
33
+ - All seven `changed_files` paths were reviewed in full and every current file hash
34
+ matched the review-candidate hash recorded in the handoff.
35
+ - The reviewer independently accounted for the dirty-status hash difference as the
36
+ newly created handoff itself; unrelated dirty files remained outside scope.
37
+
38
+ # Behavior and contract verification
39
+
40
+ - For `thread.started → turn.started → error → turn.failed`, the worker forwards the
41
+ first failure terminal, suppresses the second, preserves `process_closed`, and
42
+ returns `failed/provider_failed`.
43
+ - A duplicate terminal sent directly to the observer remains rejected because its
44
+ existing `need(terminal===null)` rule was not changed; the original
45
+ `duplicate_terminal` test still passes.
46
+ - V3 consumes the normalized failure as `unknown/transport_incomplete`, retains the
47
+ provider thread, emits no receipt or task commit, leaves `tasks.md` unchanged, and
48
+ performs one spawn with no redispatch after reopen/run.
49
+ - `providerThreadFromState` reads the actual string-valued
50
+ `reviewInvocation.started`; validator, `result.json`, and console reporting use the
51
+ same helper.
52
+ - Existing success, cancellation, timeout, item error, malformed input, single
53
+ failure, and spawn-failure behavior remains fail closed. The implementation change
54
+ is confined to repeated top-level failure-terminal forwarding.
55
+
56
+ The preserved pre-repair live evidence binds the old worker/smoke hashes and records
57
+ the actual duplicate sequence ending in `unknown/observation_invalid`. The added
58
+ tests assert outcomes the former behavior could not satisfy, so the red-to-green
59
+ claim does not require or authorize another provider run.
60
+
61
+ # Verification performed independently
62
+
63
+ - Focused repair tests: 3/3 passed.
64
+ - Related worker/adapter/live-harness tests: 84/84 passed.
65
+ - Observer contract tests: 59/59 passed, including `duplicate_terminal`.
66
+ - Full `experiments/js-orchestration/*.test.mjs`: exit 0.
67
+ - Public safety scan reproduced exactly the five disclosed pre-existing findings;
68
+ no new finding was introduced by this repair.
69
+ - No Codex CLI, provider, live, preflight, installation, or Git-write operation was
70
+ performed.
71
+
72
+ # Learning and archive review
73
+
74
+ The new root project lesson narrowly requires provider failure dialects to be
75
+ normalized at the worker boundary while keeping the observer strict. It grants no
76
+ retry, completion, F05, provider, installation, or release authority.
77
+
78
+ The defect archive accurately separates observed facts from the unknown upstream
79
+ provider cause, preserves the no-retry boundary, and excludes F01 completion, F02,
80
+ F05 product wiring, installation, Git, release, and provider expansion.
81
+
82
+ # Residual risk and disposition
83
+
84
+ Residual risk is limited to the existing five out-of-scope public-safety findings
85
+ and the intentional absence of another provider run. Neither is a blocker for this
86
+ offline adapter-normalization repair.
87
+
88
+ Disposition: **approved**. Blocking finding count: **0**.
@@ -0,0 +1,33 @@
1
+ ---
2
+ at: 2026-08-04T20:10:00-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: fix-manifest-runtime-checkbox-drift
6
+ round: 1
7
+ scope:
8
+ - scripts/cm-spec-manifest.py
9
+ - scripts/test-spec-manifest.py
10
+ - runtime/test-contract.md
11
+ - skills/cm-ai/references/N1-init.md
12
+ - skills/cm-prd/SKILL.md
13
+ - docs/architecture.md
14
+ - docs/user-guide.md
15
+ ---
16
+
17
+ Verdict: changes_requested (1 blocking finding).
18
+
19
+ The runtime task/AC checkbox normalization is correct for ordinary specification
20
+ lines, but the regular expressions also match Markdown examples inside fenced or
21
+ four-space-indented code blocks. Changing an example from unchecked to checked
22
+ could therefore evade the approved-spec manifest.
23
+
24
+ Review comment:
25
+
26
+ - [P1] Do not normalize task/AC-shaped text inside Markdown code examples —
27
+ `scripts/cm-spec-manifest.py`
28
+
29
+ Normalize only semantic list items in the document body. Preserve fenced and
30
+ indented code bytes exactly, and add regression fixtures for both forms.
31
+
32
+ Disposition: accepted. The implementation will remain schema-compatible, but
33
+ the canonicalization pass will become Markdown-context-aware before round 2.
@@ -0,0 +1,31 @@
1
+ ---
2
+ at: 2026-08-04T20:22:00-07:00
3
+ reviewer: codex-subagent
4
+ independent: true
5
+ task: fix-manifest-runtime-checkbox-drift
6
+ round: 2
7
+ scope:
8
+ - scripts/cm-spec-manifest.py
9
+ - scripts/test-spec-manifest.py
10
+ - runtime/test-contract.md
11
+ - skills/cm-ai/references/N1-init.md
12
+ - skills/cm-prd/SKILL.md
13
+ - docs/architecture.md
14
+ - docs/user-guide.md
15
+ ---
16
+
17
+ Verdict: approved (0 blocking findings).
18
+
19
+ The first-round Markdown context issue is resolved. Independent verification
20
+ confirmed:
21
+
22
+ - initial unchecked files retain their raw SHA-256 for backward compatibility;
23
+ - ordinary `T-*` and `AC-*` completion markers remain manifest-matched;
24
+ - fenced and indented code examples, ordinary checklists, and task/AC text
25
+ changes still produce a manifest mismatch;
26
+ - backtick/tilde fences, tab indentation, CRLF, and non-UTF-8 bytes remain safe;
27
+ - the completed isolated dogfood specs fixture returns `status: matched`;
28
+ - the focused fixture, runtime check, plugin validation, and `git diff --check`
29
+ pass.
30
+
31
+ The reviewer made no file changes.
@@ -0,0 +1,56 @@
1
+ {
2
+ "schema_version": 1,
3
+ "task_id": "T-FIX-model-call-boundary-identity",
4
+ "attempt": 1,
5
+ "status": "ready_for_review",
6
+ "changed_files": [
7
+ ".claude/rules/security.md",
8
+ ".claude/rules/testing.md",
9
+ ".omx/logs/execution-ledger.md",
10
+ ".omx/plans/model-usage-adapter.md",
11
+ "README.md",
12
+ "docs/fixes/20260806-model-call-boundary-identity.md",
13
+ "runtime/logging.md",
14
+ "runtime/model-efficiency.md",
15
+ "scripts/cm-log-event.py",
16
+ "scripts/cm-openai-compatible-call.py",
17
+ "scripts/cm-usage-report.py",
18
+ "scripts/test-cm-openai-compatible-call.py",
19
+ "scripts/test-cm-usage-report.py"
20
+ ],
21
+ "verification": [
22
+ {
23
+ "command": "python3 scripts/test-cm-openai-compatible-call.py",
24
+ "status": "passed",
25
+ "evidence": "Strict JSON/URL/Unicode/depth, response error logging, exit 3/4, duplicate and completed call-id fixtures passed."
26
+ },
27
+ {
28
+ "command": "python3 scripts/test-cm-usage-report.py",
29
+ "status": "passed",
30
+ "evidence": "Writer identity matching plus reporter mismatch, conflicting-claim and usage-before-claim fixtures passed."
31
+ },
32
+ {
33
+ "command": "./scripts/cm-check-runtime.sh",
34
+ "status": "passed",
35
+ "evidence": "Runtime, logging, timing, routing, adapter, config, task-gate and manifest fixtures passed for plugin v0.10.4."
36
+ },
37
+ {
38
+ "command": "python3 scripts/validate-public-repo.py && python3 scripts/scan-public-safety.py",
39
+ "status": "passed",
40
+ "evidence": "Public repository validation and safety scan passed."
41
+ },
42
+ {
43
+ "command": "/bin/bash scripts/test-shell-compat.sh && plugin validator && git diff --check",
44
+ "status": "passed",
45
+ "evidence": "Shell compatibility, Codex plugin validation and whitespace validation passed."
46
+ }
47
+ ],
48
+ "evidence": [
49
+ "docs/fixes/20260806-model-call-boundary-identity.md",
50
+ "red: deep packet exited 1 with RecursionError before repair",
51
+ "red: mismatched usage counted success and resolved an unrelated claim before repair",
52
+ "green: mismatched writer event exits 2 and reporter keeps the claim unresolved"
53
+ ],
54
+ "blockers": [],
55
+ "scope_deviation": []
56
+ }