@rpamis/comet 0.4.0-beta.11 → 0.4.0-beta.13

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 (514) hide show
  1. package/README.md +1 -1
  2. package/assets/manifest.json +15 -1
  3. package/assets/skills/comet/SKILL.md +10 -12
  4. package/assets/skills/comet/reference/classic-layout.md +2 -2
  5. package/assets/skills/comet/reference/comet-yaml-fields.md +1 -1
  6. package/assets/skills/comet/reference/context-recovery.md +3 -3
  7. package/assets/skills/comet/reference/decision-point.md +4 -5
  8. package/assets/skills/comet/reference/scripts.md +17 -47
  9. package/assets/skills/comet/reference/subagent-dispatch.md +8 -8
  10. package/assets/skills/comet/rules/comet-phase-guard.en.md +2 -2
  11. package/assets/skills/comet/rules/comet-phase-guard.md +2 -2
  12. package/assets/skills/comet/rules/comet-workflow-guard.en.md +4 -3
  13. package/assets/skills/comet/rules/comet-workflow-guard.md +4 -3
  14. package/assets/skills/comet/scripts/comet-archive.mjs +165 -2
  15. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +146 -8071
  16. package/assets/skills/comet/scripts/comet-guard.mjs +207 -2
  17. package/assets/skills/comet/scripts/comet-handoff.mjs +165 -2
  18. package/assets/skills/comet/scripts/comet-hook-guard.mjs +151 -2
  19. package/assets/skills/comet/scripts/comet-hook-router.mjs +155 -12083
  20. package/assets/skills/comet/scripts/comet-intent.mjs +10 -2
  21. package/assets/skills/comet/scripts/comet-resume-probe.mjs +148 -2
  22. package/assets/skills/comet/scripts/comet-runtime.mjs +286 -19192
  23. package/assets/skills/comet/scripts/comet-state.mjs +164 -2
  24. package/assets/skills/comet/scripts/comet-yaml-validate.mjs +149 -2
  25. package/assets/skills/comet-archive/SKILL.md +1 -1
  26. package/assets/skills/comet-build/SKILL.md +13 -14
  27. package/assets/skills/comet-classic/SKILL.md +9 -9
  28. package/assets/skills/comet-design/SKILL.md +4 -4
  29. package/assets/skills/comet-hotfix/SKILL.md +2 -2
  30. package/assets/skills/comet-native/SKILL.md +35 -22
  31. package/assets/skills/comet-native/reference/artifacts.md +0 -7
  32. package/assets/skills/comet-native/reference/clarification.md +1 -1
  33. package/assets/skills/comet-native/reference/commands.md +69 -57
  34. package/assets/skills/comet-native/reference/recovery.md +11 -1
  35. package/assets/skills/comet-native/scripts/comet-native-archive.mjs +178 -0
  36. package/assets/skills/comet-native/scripts/comet-native-check.mjs +173 -0
  37. package/assets/skills/comet-native/scripts/comet-native-checkpoint.mjs +179 -0
  38. package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +207 -0
  39. package/assets/skills/comet-native/scripts/comet-native-evidence.mjs +151 -0
  40. package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +150 -2
  41. package/assets/skills/comet-native/scripts/comet-native-init.mjs +171 -0
  42. package/assets/skills/comet-native/scripts/comet-native-new.mjs +200 -0
  43. package/assets/skills/comet-native/scripts/comet-native-next.mjs +182 -0
  44. package/assets/skills/comet-native/scripts/comet-native-receipt.mjs +179 -0
  45. package/assets/skills/comet-native/scripts/comet-native-root.mjs +185 -0
  46. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +229 -34143
  47. package/assets/skills/comet-native/scripts/comet-native-select.mjs +178 -0
  48. package/assets/skills/comet-native/scripts/comet-native-show.mjs +151 -0
  49. package/assets/skills/comet-native/scripts/comet-native-spec.mjs +181 -0
  50. package/assets/skills/comet-native/scripts/comet-native-status.mjs +175 -0
  51. package/assets/skills/comet-tweak/SKILL.md +2 -2
  52. package/assets/skills/comet-verify/SKILL.md +3 -3
  53. package/assets/skills-zh/comet/SKILL.md +10 -12
  54. package/assets/skills-zh/comet/reference/classic-layout.md +2 -2
  55. package/assets/skills-zh/comet/reference/comet-yaml-fields.md +1 -1
  56. package/assets/skills-zh/comet/reference/context-recovery.md +3 -3
  57. package/assets/skills-zh/comet/reference/decision-point.md +4 -5
  58. package/assets/skills-zh/comet/reference/scripts.md +9 -39
  59. package/assets/skills-zh/comet/reference/subagent-dispatch.md +8 -8
  60. package/assets/skills-zh/comet-archive/SKILL.md +1 -1
  61. package/assets/skills-zh/comet-build/SKILL.md +13 -14
  62. package/assets/skills-zh/comet-classic/SKILL.md +7 -7
  63. package/assets/skills-zh/comet-design/SKILL.md +5 -5
  64. package/assets/skills-zh/comet-hotfix/SKILL.md +2 -2
  65. package/assets/skills-zh/comet-native/SKILL.md +35 -22
  66. package/assets/skills-zh/comet-native/reference/artifacts.md +0 -7
  67. package/assets/skills-zh/comet-native/reference/clarification.md +1 -1
  68. package/assets/skills-zh/comet-native/reference/commands.md +69 -57
  69. package/assets/skills-zh/comet-native/reference/recovery.md +11 -1
  70. package/assets/skills-zh/comet-tweak/SKILL.md +2 -2
  71. package/assets/skills-zh/comet-verify/SKILL.md +3 -3
  72. package/bin/comet.js +5 -1
  73. package/bin/fast-runtime-router.js +82 -0
  74. package/dist/app/cli/index.js +57 -18
  75. package/dist/app/cli/index.js.map +1 -1
  76. package/dist/app/commands/classic.js +2 -2
  77. package/dist/app/commands/classic.js.map +1 -1
  78. package/dist/app/commands/dashboard.d.ts.map +1 -1
  79. package/dist/app/commands/dashboard.js +2 -1
  80. package/dist/app/commands/dashboard.js.map +1 -1
  81. package/dist/app/commands/doctor.d.ts.map +1 -1
  82. package/dist/app/commands/doctor.js +9 -3
  83. package/dist/app/commands/doctor.js.map +1 -1
  84. package/dist/app/commands/i18n.d.ts +1 -1
  85. package/dist/app/commands/i18n.d.ts.map +1 -1
  86. package/dist/app/commands/i18n.js +10 -0
  87. package/dist/app/commands/i18n.js.map +1 -1
  88. package/dist/app/commands/init.d.ts.map +1 -1
  89. package/dist/app/commands/init.js +9 -5
  90. package/dist/app/commands/init.js.map +1 -1
  91. package/dist/app/commands/uninstall.d.ts.map +1 -1
  92. package/dist/app/commands/uninstall.js +150 -8
  93. package/dist/app/commands/uninstall.js.map +1 -1
  94. package/dist/app/commands/update.d.ts +1 -0
  95. package/dist/app/commands/update.d.ts.map +1 -1
  96. package/dist/app/commands/update.js +166 -24
  97. package/dist/app/commands/update.js.map +1 -1
  98. package/dist/config/repository-layout.json +33 -6
  99. package/dist/domains/comet-classic/classic-archive-entry.js +1 -1
  100. package/dist/domains/comet-classic/classic-archive-entry.js.map +1 -1
  101. package/dist/domains/comet-classic/classic-branch-binding.d.ts.map +1 -1
  102. package/dist/domains/comet-classic/classic-branch-binding.js +8 -2
  103. package/dist/domains/comet-classic/classic-branch-binding.js.map +1 -1
  104. package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -1
  105. package/dist/domains/comet-classic/classic-current-change.js +6 -1
  106. package/dist/domains/comet-classic/classic-current-change.js.map +1 -1
  107. package/dist/domains/comet-classic/classic-guard-entry.js +1 -1
  108. package/dist/domains/comet-classic/classic-guard-entry.js.map +1 -1
  109. package/dist/domains/comet-classic/classic-guard.js +1 -1
  110. package/dist/domains/comet-classic/classic-guard.js.map +1 -1
  111. package/dist/domains/comet-classic/classic-handoff-entry.js +1 -1
  112. package/dist/domains/comet-classic/classic-handoff-entry.js.map +1 -1
  113. package/dist/domains/comet-classic/classic-hook-guard-entry.js +1 -1
  114. package/dist/domains/comet-classic/classic-hook-guard-entry.js.map +1 -1
  115. package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
  116. package/dist/domains/comet-classic/classic-hook-guard.js +7 -4
  117. package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
  118. package/dist/domains/comet-classic/classic-intent-entry.js +1 -1
  119. package/dist/domains/comet-classic/classic-intent-entry.js.map +1 -1
  120. package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -1
  121. package/dist/domains/comet-classic/classic-layout-initialization.js +18 -11
  122. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
  123. package/dist/domains/comet-classic/classic-layout.d.ts +7 -4
  124. package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -1
  125. package/dist/domains/comet-classic/classic-layout.js +9 -9
  126. package/dist/domains/comet-classic/classic-layout.js.map +1 -1
  127. package/dist/domains/comet-classic/classic-resume-probe-entry.js +1 -1
  128. package/dist/domains/comet-classic/classic-resume-probe-entry.js.map +1 -1
  129. package/dist/domains/comet-classic/classic-root-command.d.ts +4 -1
  130. package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -1
  131. package/dist/domains/comet-classic/classic-root-command.js +159 -49
  132. package/dist/domains/comet-classic/classic-root-command.js.map +1 -1
  133. package/dist/domains/comet-classic/classic-root-move.d.ts +0 -1
  134. package/dist/domains/comet-classic/classic-root-move.d.ts.map +1 -1
  135. package/dist/domains/comet-classic/classic-root-move.js +24 -121
  136. package/dist/domains/comet-classic/classic-root-move.js.map +1 -1
  137. package/dist/domains/comet-classic/classic-script-entry.d.ts +2 -2
  138. package/dist/domains/comet-classic/classic-script-entry.d.ts.map +1 -1
  139. package/dist/domains/comet-classic/classic-script-entry.js +4 -3
  140. package/dist/domains/comet-classic/classic-script-entry.js.map +1 -1
  141. package/dist/domains/comet-classic/classic-state-command.js +6 -6
  142. package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
  143. package/dist/domains/comet-classic/classic-state-entry.js +1 -1
  144. package/dist/domains/comet-classic/classic-state-entry.js.map +1 -1
  145. package/dist/domains/comet-classic/classic-validate-entry.js +1 -1
  146. package/dist/domains/comet-classic/classic-validate-entry.js.map +1 -1
  147. package/dist/domains/comet-entry/current-selection-repair.js +1 -1
  148. package/dist/domains/comet-entry/current-selection-repair.js.map +1 -1
  149. package/dist/domains/comet-entry/entry-reads.d.ts +17 -0
  150. package/dist/domains/comet-entry/entry-reads.d.ts.map +1 -0
  151. package/dist/domains/comet-entry/entry-reads.js +20 -0
  152. package/dist/domains/comet-entry/entry-reads.js.map +1 -0
  153. package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -1
  154. package/dist/domains/comet-entry/hook-router-entry.js +3 -1
  155. package/dist/domains/comet-entry/hook-router-entry.js.map +1 -1
  156. package/dist/domains/comet-entry/hook-router.d.ts +12 -2
  157. package/dist/domains/comet-entry/hook-router.d.ts.map +1 -1
  158. package/dist/domains/comet-entry/hook-router.js +48 -17
  159. package/dist/domains/comet-entry/hook-router.js.map +1 -1
  160. package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
  161. package/dist/domains/comet-entry/init-workflow.js +7 -8
  162. package/dist/domains/comet-entry/init-workflow.js.map +1 -1
  163. package/dist/domains/comet-entry/resolve-entry.d.ts.map +1 -1
  164. package/dist/domains/comet-entry/resolve-entry.js +3 -4
  165. package/dist/domains/comet-entry/resolve-entry.js.map +1 -1
  166. package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -1
  167. package/dist/domains/comet-entry/resume-probe.js +16 -5
  168. package/dist/domains/comet-entry/resume-probe.js.map +1 -1
  169. package/dist/domains/comet-native/native-acceptance.d.ts +1 -2
  170. package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -1
  171. package/dist/domains/comet-native/native-acceptance.js +5 -29
  172. package/dist/domains/comet-native/native-acceptance.js.map +1 -1
  173. package/dist/domains/comet-native/native-archive-command.d.ts +3 -0
  174. package/dist/domains/comet-native/native-archive-command.d.ts.map +1 -0
  175. package/dist/domains/comet-native/native-archive-command.js +49 -0
  176. package/dist/domains/comet-native/native-archive-command.js.map +1 -0
  177. package/dist/domains/comet-native/native-archive-entry.d.ts +2 -0
  178. package/dist/domains/comet-native/native-archive-entry.d.ts.map +1 -0
  179. package/dist/domains/comet-native/native-archive-entry.js +4 -0
  180. package/dist/domains/comet-native/native-archive-entry.js.map +1 -0
  181. package/dist/domains/comet-native/native-check-command.d.ts +3 -0
  182. package/dist/domains/comet-native/native-check-command.d.ts.map +1 -0
  183. package/dist/domains/comet-native/native-check-command.js +30 -0
  184. package/dist/domains/comet-native/native-check-command.js.map +1 -0
  185. package/dist/domains/comet-native/native-check-entry.d.ts +2 -0
  186. package/dist/domains/comet-native/native-check-entry.d.ts.map +1 -0
  187. package/dist/domains/comet-native/native-check-entry.js +4 -0
  188. package/dist/domains/comet-native/native-check-entry.js.map +1 -0
  189. package/dist/domains/comet-native/native-checkpoint-command.d.ts +3 -0
  190. package/dist/domains/comet-native/native-checkpoint-command.d.ts.map +1 -0
  191. package/dist/domains/comet-native/native-checkpoint-command.js +39 -0
  192. package/dist/domains/comet-native/native-checkpoint-command.js.map +1 -0
  193. package/dist/domains/comet-native/native-checkpoint-entry.d.ts +2 -0
  194. package/dist/domains/comet-native/native-checkpoint-entry.d.ts.map +1 -0
  195. package/dist/domains/comet-native/native-checkpoint-entry.js +4 -0
  196. package/dist/domains/comet-native/native-checkpoint-entry.js.map +1 -0
  197. package/dist/domains/comet-native/native-cli-shared.d.ts +40 -0
  198. package/dist/domains/comet-native/native-cli-shared.d.ts.map +1 -0
  199. package/dist/domains/comet-native/native-cli-shared.js +272 -0
  200. package/dist/domains/comet-native/native-cli-shared.js.map +1 -0
  201. package/dist/domains/comet-native/native-cli.d.ts +2 -5
  202. package/dist/domains/comet-native/native-cli.d.ts.map +1 -1
  203. package/dist/domains/comet-native/native-cli.js +37 -1228
  204. package/dist/domains/comet-native/native-cli.js.map +1 -1
  205. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -1
  206. package/dist/domains/comet-native/native-continuation.js +34 -5
  207. package/dist/domains/comet-native/native-continuation.js.map +1 -1
  208. package/dist/domains/comet-native/native-doctor-command.d.ts +3 -0
  209. package/dist/domains/comet-native/native-doctor-command.d.ts.map +1 -0
  210. package/dist/domains/comet-native/native-doctor-command.js +29 -0
  211. package/dist/domains/comet-native/native-doctor-command.js.map +1 -0
  212. package/dist/domains/comet-native/native-doctor-entry.d.ts +2 -0
  213. package/dist/domains/comet-native/native-doctor-entry.d.ts.map +1 -0
  214. package/dist/domains/comet-native/native-doctor-entry.js +4 -0
  215. package/dist/domains/comet-native/native-doctor-entry.js.map +1 -0
  216. package/dist/domains/comet-native/native-evidence-command.d.ts +3 -0
  217. package/dist/domains/comet-native/native-evidence-command.d.ts.map +1 -0
  218. package/dist/domains/comet-native/native-evidence-command.js +35 -0
  219. package/dist/domains/comet-native/native-evidence-command.js.map +1 -0
  220. package/dist/domains/comet-native/native-evidence-entry.d.ts +2 -0
  221. package/dist/domains/comet-native/native-evidence-entry.d.ts.map +1 -0
  222. package/dist/domains/comet-native/native-evidence-entry.js +4 -0
  223. package/dist/domains/comet-native/native-evidence-entry.js.map +1 -0
  224. package/dist/domains/comet-native/native-evidence-retention.d.ts.map +1 -1
  225. package/dist/domains/comet-native/native-evidence-retention.js +5 -21
  226. package/dist/domains/comet-native/native-evidence-retention.js.map +1 -1
  227. package/dist/domains/comet-native/native-evidence-storage.d.ts +19 -14
  228. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
  229. package/dist/domains/comet-native/native-evidence-storage.js +91 -46
  230. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
  231. package/dist/domains/comet-native/native-findings.d.ts.map +1 -1
  232. package/dist/domains/comet-native/native-findings.js +24 -4
  233. package/dist/domains/comet-native/native-findings.js.map +1 -1
  234. package/dist/domains/comet-native/native-hook-guard-command.d.ts +3 -0
  235. package/dist/domains/comet-native/native-hook-guard-command.d.ts.map +1 -0
  236. package/dist/domains/comet-native/native-hook-guard-command.js +32 -0
  237. package/dist/domains/comet-native/native-hook-guard-command.js.map +1 -0
  238. package/dist/domains/comet-native/native-hook-guard-entry.d.ts +2 -0
  239. package/dist/domains/comet-native/native-hook-guard-entry.d.ts.map +1 -0
  240. package/dist/domains/comet-native/native-hook-guard-entry.js +4 -0
  241. package/dist/domains/comet-native/native-hook-guard-entry.js.map +1 -0
  242. package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -1
  243. package/dist/domains/comet-native/native-hook-guard.js +7 -1
  244. package/dist/domains/comet-native/native-hook-guard.js.map +1 -1
  245. package/dist/domains/comet-native/native-init-command.d.ts +3 -0
  246. package/dist/domains/comet-native/native-init-command.d.ts.map +1 -0
  247. package/dist/domains/comet-native/native-init-command.js +29 -0
  248. package/dist/domains/comet-native/native-init-command.js.map +1 -0
  249. package/dist/domains/comet-native/native-init-entry.d.ts +2 -0
  250. package/dist/domains/comet-native/native-init-entry.d.ts.map +1 -0
  251. package/dist/domains/comet-native/native-init-entry.js +4 -0
  252. package/dist/domains/comet-native/native-init-entry.js.map +1 -0
  253. package/dist/domains/comet-native/native-new-command.d.ts +3 -0
  254. package/dist/domains/comet-native/native-new-command.d.ts.map +1 -0
  255. package/dist/domains/comet-native/native-new-command.js +35 -0
  256. package/dist/domains/comet-native/native-new-command.js.map +1 -0
  257. package/dist/domains/comet-native/native-new-entry.d.ts +2 -0
  258. package/dist/domains/comet-native/native-new-entry.d.ts.map +1 -0
  259. package/dist/domains/comet-native/native-new-entry.js +4 -0
  260. package/dist/domains/comet-native/native-new-entry.js.map +1 -0
  261. package/dist/domains/comet-native/native-next-command.d.ts +3 -0
  262. package/dist/domains/comet-native/native-next-command.d.ts.map +1 -0
  263. package/dist/domains/comet-native/native-next-command.js +82 -0
  264. package/dist/domains/comet-native/native-next-command.js.map +1 -0
  265. package/dist/domains/comet-native/native-next-entry.d.ts +2 -0
  266. package/dist/domains/comet-native/native-next-entry.d.ts.map +1 -0
  267. package/dist/domains/comet-native/native-next-entry.js +4 -0
  268. package/dist/domains/comet-native/native-next-entry.js.map +1 -0
  269. package/dist/domains/comet-native/native-receipt-command.d.ts +3 -0
  270. package/dist/domains/comet-native/native-receipt-command.d.ts.map +1 -0
  271. package/dist/domains/comet-native/native-receipt-command.js +107 -0
  272. package/dist/domains/comet-native/native-receipt-command.js.map +1 -0
  273. package/dist/domains/comet-native/native-receipt-entry.d.ts +2 -0
  274. package/dist/domains/comet-native/native-receipt-entry.d.ts.map +1 -0
  275. package/dist/domains/comet-native/native-receipt-entry.js +4 -0
  276. package/dist/domains/comet-native/native-receipt-entry.js.map +1 -0
  277. package/dist/domains/comet-native/native-receipt-refresh.d.ts +86 -0
  278. package/dist/domains/comet-native/native-receipt-refresh.d.ts.map +1 -0
  279. package/dist/domains/comet-native/native-receipt-refresh.js +232 -0
  280. package/dist/domains/comet-native/native-receipt-refresh.js.map +1 -0
  281. package/dist/domains/comet-native/native-repair-integration.d.ts +1 -3
  282. package/dist/domains/comet-native/native-repair-integration.d.ts.map +1 -1
  283. package/dist/domains/comet-native/native-repair-integration.js +12 -15
  284. package/dist/domains/comet-native/native-repair-integration.js.map +1 -1
  285. package/dist/domains/comet-native/native-repair-runtime.d.ts +0 -1
  286. package/dist/domains/comet-native/native-repair-runtime.d.ts.map +1 -1
  287. package/dist/domains/comet-native/native-repair-runtime.js +3 -10
  288. package/dist/domains/comet-native/native-repair-runtime.js.map +1 -1
  289. package/dist/domains/comet-native/native-repair-stagnation.d.ts +1 -9
  290. package/dist/domains/comet-native/native-repair-stagnation.d.ts.map +1 -1
  291. package/dist/domains/comet-native/native-repair-stagnation.js +4 -14
  292. package/dist/domains/comet-native/native-repair-stagnation.js.map +1 -1
  293. package/dist/domains/comet-native/native-root-command.d.ts +3 -0
  294. package/dist/domains/comet-native/native-root-command.d.ts.map +1 -0
  295. package/dist/domains/comet-native/native-root-command.js +29 -0
  296. package/dist/domains/comet-native/native-root-command.js.map +1 -0
  297. package/dist/domains/comet-native/native-root-entry.d.ts +2 -0
  298. package/dist/domains/comet-native/native-root-entry.d.ts.map +1 -0
  299. package/dist/domains/comet-native/native-root-entry.js +4 -0
  300. package/dist/domains/comet-native/native-root-entry.js.map +1 -0
  301. package/dist/domains/comet-native/native-script-entry.d.ts +12 -0
  302. package/dist/domains/comet-native/native-script-entry.d.ts.map +1 -0
  303. package/dist/domains/comet-native/native-script-entry.js +44 -0
  304. package/dist/domains/comet-native/native-script-entry.js.map +1 -0
  305. package/dist/domains/comet-native/native-select-command.d.ts +3 -0
  306. package/dist/domains/comet-native/native-select-command.d.ts.map +1 -0
  307. package/dist/domains/comet-native/native-select-command.js +15 -0
  308. package/dist/domains/comet-native/native-select-command.js.map +1 -0
  309. package/dist/domains/comet-native/native-select-entry.d.ts +2 -0
  310. package/dist/domains/comet-native/native-select-entry.d.ts.map +1 -0
  311. package/dist/domains/comet-native/native-select-entry.js +4 -0
  312. package/dist/domains/comet-native/native-select-entry.js.map +1 -0
  313. package/dist/domains/comet-native/native-show-command.d.ts +3 -0
  314. package/dist/domains/comet-native/native-show-command.d.ts.map +1 -0
  315. package/dist/domains/comet-native/native-show-command.js +41 -0
  316. package/dist/domains/comet-native/native-show-command.js.map +1 -0
  317. package/dist/domains/comet-native/native-show-entry.d.ts +2 -0
  318. package/dist/domains/comet-native/native-show-entry.d.ts.map +1 -0
  319. package/dist/domains/comet-native/native-show-entry.js +4 -0
  320. package/dist/domains/comet-native/native-show-entry.js.map +1 -0
  321. package/dist/domains/comet-native/native-snapshot.d.ts +9 -0
  322. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -1
  323. package/dist/domains/comet-native/native-snapshot.js +141 -45
  324. package/dist/domains/comet-native/native-snapshot.js.map +1 -1
  325. package/dist/domains/comet-native/native-spec-command.d.ts +3 -0
  326. package/dist/domains/comet-native/native-spec-command.d.ts.map +1 -0
  327. package/dist/domains/comet-native/native-spec-command.js +34 -0
  328. package/dist/domains/comet-native/native-spec-command.js.map +1 -0
  329. package/dist/domains/comet-native/native-spec-entry.d.ts +2 -0
  330. package/dist/domains/comet-native/native-spec-entry.d.ts.map +1 -0
  331. package/dist/domains/comet-native/native-spec-entry.js +4 -0
  332. package/dist/domains/comet-native/native-spec-entry.js.map +1 -0
  333. package/dist/domains/comet-native/native-status-command.d.ts +3 -0
  334. package/dist/domains/comet-native/native-status-command.d.ts.map +1 -0
  335. package/dist/domains/comet-native/native-status-command.js +36 -0
  336. package/dist/domains/comet-native/native-status-command.js.map +1 -0
  337. package/dist/domains/comet-native/native-status-entry.d.ts +2 -0
  338. package/dist/domains/comet-native/native-status-entry.d.ts.map +1 -0
  339. package/dist/domains/comet-native/native-status-entry.js +4 -0
  340. package/dist/domains/comet-native/native-status-entry.js.map +1 -0
  341. package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -1
  342. package/dist/domains/comet-native/native-transition-evidence.js +0 -10
  343. package/dist/domains/comet-native/native-transition-evidence.js.map +1 -1
  344. package/dist/domains/comet-native/native-transitions.d.ts +4 -0
  345. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -1
  346. package/dist/domains/comet-native/native-transitions.js +31 -35
  347. package/dist/domains/comet-native/native-transitions.js.map +1 -1
  348. package/dist/domains/comet-native/native-types.d.ts +8 -6
  349. package/dist/domains/comet-native/native-types.d.ts.map +1 -1
  350. package/dist/domains/comet-native/native-verification-evidence.d.ts +2 -48
  351. package/dist/domains/comet-native/native-verification-evidence.d.ts.map +1 -1
  352. package/dist/domains/comet-native/native-verification-evidence.js +13 -301
  353. package/dist/domains/comet-native/native-verification-evidence.js.map +1 -1
  354. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +16 -138
  355. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -1
  356. package/dist/domains/comet-native/native-verification-receipt-runtime.js +132 -770
  357. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -1
  358. package/dist/domains/comet-native/native-verification-receipt.d.ts +3 -89
  359. package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -1
  360. package/dist/domains/comet-native/native-verification-receipt.js +19 -350
  361. package/dist/domains/comet-native/native-verification-receipt.js.map +1 -1
  362. package/dist/domains/comet-native/native-verification-runtime.d.ts +28 -4
  363. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -1
  364. package/dist/domains/comet-native/native-verification-runtime.js +101 -218
  365. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -1
  366. package/dist/domains/dashboard/collector.d.ts.map +1 -1
  367. package/dist/domains/dashboard/collector.js +53 -41
  368. package/dist/domains/dashboard/collector.js.map +1 -1
  369. package/dist/domains/dashboard/native-collector.d.ts.map +1 -1
  370. package/dist/domains/dashboard/native-collector.js +13 -3
  371. package/dist/domains/dashboard/native-collector.js.map +1 -1
  372. package/dist/domains/dashboard/project-directory.d.ts +20 -0
  373. package/dist/domains/dashboard/project-directory.d.ts.map +1 -0
  374. package/dist/domains/dashboard/project-directory.js +87 -0
  375. package/dist/domains/dashboard/project-directory.js.map +1 -0
  376. package/dist/domains/dashboard/project-root.d.ts +8 -0
  377. package/dist/domains/dashboard/project-root.d.ts.map +1 -0
  378. package/dist/domains/dashboard/project-root.js +68 -0
  379. package/dist/domains/dashboard/project-root.js.map +1 -0
  380. package/dist/domains/dashboard/server.d.ts +1 -0
  381. package/dist/domains/dashboard/server.d.ts.map +1 -1
  382. package/dist/domains/dashboard/server.js +50 -10
  383. package/dist/domains/dashboard/server.js.map +1 -1
  384. package/dist/domains/dashboard/web/assets/{arc-BXWNV2Qv.js → arc-mNt_SS1l.js} +1 -1
  385. package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-Bc5akVD6.js +36 -0
  386. package/dist/domains/dashboard/web/assets/{blockDiagram-GPEHLZMM-P2PGImSM.js → blockDiagram-GPEHLZMM-C43zhVBe.js} +2 -2
  387. package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-fTj6Xhs1.js → c4Diagram-AAUBKEIU-dToETarK.js} +2 -2
  388. package/dist/domains/dashboard/web/assets/channel-b2wWDG4F.js +1 -0
  389. package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-BjFDZ5yo.js → chunk-2J33WTMH-C0oO137R.js} +1 -1
  390. package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-BAUkbZdT.js → chunk-4BX2VUAB-CGms1fgI.js} +1 -1
  391. package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-DBmuiYme.js → chunk-55IACEB6-Bugl8v6f.js} +1 -1
  392. package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-Do9ufCgY.js → chunk-727SXJPM-8ATNMlBG.js} +1 -1
  393. package/dist/domains/dashboard/web/assets/{chunk-AQP2D5EJ-qRQWlB5d.js → chunk-AQP2D5EJ-BNYjSSqU.js} +1 -1
  394. package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-BzDzeJ4_.js → chunk-FMBD7UC4-_nJAqSbe.js} +1 -1
  395. package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-OQcAmIvL.js → chunk-ND2GUHAM-lyxYm5NX.js} +1 -1
  396. package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-BiRfH4d2.js → chunk-QZHKN3VN-PUMVeWpd.js} +1 -1
  397. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-B9SWZywo.js +1 -0
  398. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-B9SWZywo.js +1 -0
  399. package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-DzMqjexn.js +1 -0
  400. package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-B3F-qRTJ.js → cynefin-VYW2F7L2-B67ET0eq.js} +1 -1
  401. package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-CQPMvRLK.js +4 -0
  402. package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-BRpLrFHM.js +43 -0
  403. package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-CPGWuGrE.js +10 -0
  404. package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-DrPGimEt.js → diagram-KO2AKTUF-D2wpX2iO.js} +2 -2
  405. package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-D54mAbDu.js +24 -0
  406. package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-ZGQDpSs_.js +24 -0
  407. package/dist/domains/dashboard/web/assets/{erDiagram-TEJ5UH35-CoB0mzhk.js → erDiagram-TEJ5UH35-C3qDo7sd.js} +2 -2
  408. package/dist/domains/dashboard/web/assets/{flowDiagram-I6XJVG4X-lT53XfSE.js → flowDiagram-I6XJVG4X-B7hStPd9.js} +2 -2
  409. package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-IqcLFbTK.js +292 -0
  410. package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-YrMZpzUu.js +106 -0
  411. package/dist/domains/dashboard/web/assets/index-DhtBssCt.js +257 -0
  412. package/dist/domains/dashboard/web/assets/{index-QO0z6F4w.js → index-icxk8_BP.js} +1 -1
  413. package/dist/domains/dashboard/web/assets/index-pr3axVDI.css +1 -0
  414. package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-CcIgGK_7.js +2 -0
  415. package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-Dkspu33d.js → ishikawaDiagram-YF4QCWOH-1x3rNjGP.js} +2 -2
  416. package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-C-EM1sZl.js → journeyDiagram-JHISSGLW-B2XiqMNP.js} +2 -2
  417. package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-BTbB0IO2.js → kanban-definition-UN3LZRKU-x46cGuo3.js} +2 -2
  418. package/dist/domains/dashboard/web/assets/{linear-Cp0UrqDr.js → linear-DFLqGZWl.js} +1 -1
  419. package/dist/domains/dashboard/web/assets/{mermaid.core-CucmqsLW.js → mermaid.core-g3J6BACc.js} +69 -69
  420. package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-CjEshF1X.js → mindmap-definition-RKZ34NQL-CTdeKmcX.js} +2 -2
  421. package/dist/domains/dashboard/web/assets/{pieDiagram-4H26LBE5-DrwFnX1b.js → pieDiagram-4H26LBE5-C_obwjIf.js} +2 -2
  422. package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-CjG6pBR2.js → quadrantDiagram-W4KKPZXB-B6Gnfz9M.js} +4 -4
  423. package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-BpUQVqCV.js → requirementDiagram-4Y6WPE33-nX4PObnB.js} +2 -2
  424. package/dist/domains/dashboard/web/assets/{sankeyDiagram-5OEKKPKP-BeGkEvzR.js → sankeyDiagram-5OEKKPKP-QjDwwHgl.js} +2 -2
  425. package/dist/domains/dashboard/web/assets/{sequenceDiagram-3UESZ5HK-sSTU3MCO.js → sequenceDiagram-3UESZ5HK-BEEe0j6B.js} +2 -2
  426. package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CXfAaBgM.js +1 -0
  427. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-CD3nS4cC.js +1 -0
  428. package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-DCN7NjEs.js → timeline-definition-PNZ67QCA-BOzX2EnD.js} +2 -2
  429. package/dist/domains/dashboard/web/assets/{vennDiagram-CIIHVFJN-DZAN1_rr.js → vennDiagram-CIIHVFJN-C40vhXRq.js} +2 -2
  430. package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-FfkJfr4C.js → wardleyDiagram-YWT4CUSO-B1rm89JH.js} +2 -2
  431. package/dist/domains/dashboard/web/assets/{xychartDiagram-2RQKCTM6-CD8B-EmR.js → xychartDiagram-2RQKCTM6-BlMr59qK.js} +2 -2
  432. package/dist/domains/dashboard/web/index.html +2 -2
  433. package/dist/domains/integrations/openspec.d.ts +1 -0
  434. package/dist/domains/integrations/openspec.d.ts.map +1 -1
  435. package/dist/domains/integrations/openspec.js +6 -0
  436. package/dist/domains/integrations/openspec.js.map +1 -1
  437. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  438. package/dist/domains/skill/platform-install.js +4 -6
  439. package/dist/domains/skill/platform-install.js.map +1 -1
  440. package/dist/domains/skill/uninstall.d.ts +6 -2
  441. package/dist/domains/skill/uninstall.d.ts.map +1 -1
  442. package/dist/domains/skill/uninstall.js +128 -19
  443. package/dist/domains/skill/uninstall.js.map +1 -1
  444. package/dist/domains/workflow-contract/project-config.d.ts +1 -0
  445. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
  446. package/dist/domains/workflow-contract/project-config.js +45 -1
  447. package/dist/domains/workflow-contract/project-config.js.map +1 -1
  448. package/dist/platform/install/detect.d.ts +1 -0
  449. package/dist/platform/install/detect.d.ts.map +1 -1
  450. package/dist/platform/install/detect.js +2 -0
  451. package/dist/platform/install/detect.js.map +1 -1
  452. package/dist/platform/process/hook-read-cache.d.ts +45 -0
  453. package/dist/platform/process/hook-read-cache.d.ts.map +1 -0
  454. package/dist/platform/process/hook-read-cache.js +102 -0
  455. package/dist/platform/process/hook-read-cache.js.map +1 -0
  456. package/dist/platform/version/version.d.ts.map +1 -1
  457. package/dist/platform/version/version.js +9 -2
  458. package/dist/platform/version/version.js.map +1 -1
  459. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +2 -0
  460. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +2 -0
  461. package/eval/local/tasks/comet-native-workflow/instruction.md +5 -17
  462. package/eval/local/tasks/comet-native-workflow/task.toml +4 -2
  463. package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +227 -300
  464. package/eval/local/tests/conftest.py +0 -193
  465. package/eval/local/tests/scaffold/test_native_wave_evaluations.py +107 -180
  466. package/eval/local/tests/scaffold/test_tasks.py +6 -9
  467. package/eval/local/tests/scaffold/test_utils.py +4 -7
  468. package/eval/scaffold/shell/docker.sh +2 -95
  469. package/package.json +7 -3
  470. package/dist/domains/comet-native/native-controller-trust.d.ts +0 -21
  471. package/dist/domains/comet-native/native-controller-trust.d.ts.map +0 -1
  472. package/dist/domains/comet-native/native-controller-trust.js +0 -140
  473. package/dist/domains/comet-native/native-controller-trust.js.map +0 -1
  474. package/dist/domains/comet-native/native-independent-review.d.ts +0 -28
  475. package/dist/domains/comet-native/native-independent-review.d.ts.map +0 -1
  476. package/dist/domains/comet-native/native-independent-review.js +0 -134
  477. package/dist/domains/comet-native/native-independent-review.js.map +0 -1
  478. package/dist/domains/comet-native/native-review-contract.d.ts +0 -6
  479. package/dist/domains/comet-native/native-review-contract.d.ts.map +0 -1
  480. package/dist/domains/comet-native/native-review-contract.js +0 -6
  481. package/dist/domains/comet-native/native-review-contract.js.map +0 -1
  482. package/dist/domains/comet-native/native-review-identity.d.ts +0 -50
  483. package/dist/domains/comet-native/native-review-identity.d.ts.map +0 -1
  484. package/dist/domains/comet-native/native-review-identity.js +0 -209
  485. package/dist/domains/comet-native/native-review-identity.js.map +0 -1
  486. package/dist/domains/comet-native/native-review-signer.d.ts +0 -24
  487. package/dist/domains/comet-native/native-review-signer.d.ts.map +0 -1
  488. package/dist/domains/comet-native/native-review-signer.js +0 -125
  489. package/dist/domains/comet-native/native-review-signer.js.map +0 -1
  490. package/dist/domains/comet-native/native-review-trust.d.ts +0 -35
  491. package/dist/domains/comet-native/native-review-trust.d.ts.map +0 -1
  492. package/dist/domains/comet-native/native-review-trust.js +0 -176
  493. package/dist/domains/comet-native/native-review-trust.js.map +0 -1
  494. package/dist/domains/dashboard/web/assets/_commonjsHelpers-CqkleIqs.js +0 -1
  495. package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-CjVHPivo.js +0 -36
  496. package/dist/domains/dashboard/web/assets/channel--JtnhJr8.js +0 -1
  497. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BRGmx8Iz.js +0 -1
  498. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BRGmx8Iz.js +0 -1
  499. package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-CZk37fGn.js +0 -1
  500. package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-D5BQ0eqN.js +0 -4
  501. package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-33mXstha.js +0 -43
  502. package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-BWHCMFvD.js +0 -10
  503. package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-BBlsg7jG.js +0 -24
  504. package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-CsaFSpHi.js +0 -24
  505. package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-D1SQ56fl.js +0 -292
  506. package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-D4oDMS5x.js +0 -106
  507. package/dist/domains/dashboard/web/assets/index-D-AGxvI4.css +0 -1
  508. package/dist/domains/dashboard/web/assets/index-Msce_H_q.js +0 -24
  509. package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-BeICn98s.js +0 -2
  510. package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CcFBc6qh.js +0 -1
  511. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-D5zZYi4x.js +0 -1
  512. package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-review-fixture +0 -1
  513. package/eval/scaffold/shell/native-review-signer-daemon.mjs +0 -144
  514. package/eval/scaffold/shell/native-review-verifier-daemon.mjs +0 -178
package/README.md CHANGED
@@ -852,7 +852,7 @@ Track our development progress and upcoming features on the [Comet Roadmap](http
852
852
 
853
853
  ## Star History
854
854
 
855
- [![Star History Chart](https://api.star-history.com/chart?repos=rpamis/comet&type=date&legend=top-left&sealed_token=lB84nxf4Emtuo-2F58IUt3ya0FIbY3dTDwnIl9UFA3u_IvEUqaI6dpYXmPItlNJcT00eAFXz5xyZN9TsoBh2la54tkgUbdncTIoFIJco7TO-Vrt-m9SFxw)](https://www.star-history.com/?repos=rpamis%2Fcomet&type=date&legend=top-left)
855
+ [![Star History Chart](https://api.star-history.com/chart?repos=rpamis/comet&type=date&legend=top-left&sealed_token=UMxkYc2GrflG4LawVBIB1HY-k5O2WqatK4llgyINHBnPZRAl9PdOtca_ciCdXoKWpzzOF_K2YLyQ0CQ1Lx1tJjeO53J5mgRo9yK0DanAT_ClPsf4O2XxBQ)](https://www.star-history.com/?repos=rpamis%2Fcomet&type=date&legend=top-left)
856
856
 
857
857
  ## Contributors
858
858
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.0-beta.11",
2
+ "version": "0.4.0-beta.13",
3
3
  "skills": [
4
4
  "comet/SKILL.md",
5
5
  "comet-classic/SKILL.md",
@@ -44,6 +44,20 @@
44
44
  "comet-native/reference/recovery.md",
45
45
  "comet-native/scripts/comet-native-runtime.mjs",
46
46
  "comet-native/scripts/comet-native-hook-guard.mjs",
47
+ "comet-native/scripts/comet-native-init.mjs",
48
+ "comet-native/scripts/comet-native-root.mjs",
49
+ "comet-native/scripts/comet-native-new.mjs",
50
+ "comet-native/scripts/comet-native-spec.mjs",
51
+ "comet-native/scripts/comet-native-show.mjs",
52
+ "comet-native/scripts/comet-native-status.mjs",
53
+ "comet-native/scripts/comet-native-select.mjs",
54
+ "comet-native/scripts/comet-native-checkpoint.mjs",
55
+ "comet-native/scripts/comet-native-check.mjs",
56
+ "comet-native/scripts/comet-native-evidence.mjs",
57
+ "comet-native/scripts/comet-native-receipt.mjs",
58
+ "comet-native/scripts/comet-native-next.mjs",
59
+ "comet-native/scripts/comet-native-archive.mjs",
60
+ "comet-native/scripts/comet-native-doctor.mjs",
47
61
  "comet-open/SKILL.md",
48
62
  "comet-design/SKILL.md",
49
63
  "comet-build/SKILL.md",
@@ -1,28 +1,26 @@
1
1
  ---
2
2
  name: comet
3
- description: "Route /comet requests or an active Comet change to the permanent Comet Native or Comet Classic entry selected by project configuration."
3
+ description: "Use when the user explicitly invokes /comet or asks to use Comet without choosing Native or Classic; load exactly one permanent entry from project configuration."
4
4
  ---
5
5
 
6
6
  # Comet Entry
7
7
 
8
8
  `/comet` only selects an entry. It does not contain either workflow's execution method.
9
9
 
10
- 1. First try the Comet CLI installed on PATH in the current project:
10
+ Once this Skill is loaded, treat the `/comet` entry as selected. Immediately perform the entry resolution below; do not re-evaluate whether the task is suitable for Comet or only explain why Comet will not be used.
11
+
12
+ 1. Run the public Comet CLI installed on PATH in the current project:
11
13
 
12
14
  ```text
13
15
  comet workflow resolve . --json
14
16
  ```
15
17
 
16
- 2. **Only** when the host explicitly reports `command not found`, `executable not found`, or `ENOENT`, proving that `comet` is absent from PATH, locate `<comet-skill-root>` from this `SKILL.md` and run the bundled entry runtime:
17
-
18
- ```text
19
- node <comet-skill-root>/scripts/comet-entry-runtime.mjs . --json
20
- ```
18
+ 2. Parse the JSON. Only accept `schema: comet.workflow-resolution.v1` and a `skill` value listed below.
19
+ If the command returns `command not found`, `executable not found`, or `ENOENT`, stop and explain that the Comet CLI installation is incomplete. Do not search for Skill files, scan platform configuration directories, or invoke an internal bundle directly. If the CLI starts but exits nonzero, configuration parsing fails, output is not JSON, or a required field is invalid, likewise stop and report the original error without falling back or guessing.
20
+ 3. Select exactly one entry based only on the returned `skill`. Immediately use the Skill tool to load that entry, and load no other entry:
21
+ - `/comet-native` → **Execute immediately:** Use the Skill tool to load the `comet-native` skill. Do not skip this step.
22
+ - `/comet-classic` → **Execute immediately:** Use the Skill tool to load the `comet-classic` skill. Do not skip this step.
21
23
 
22
- If the CLI starts but exits nonzero, configuration parsing fails, output is not JSON, or a required field is invalid, do not retry through the bundled runtime. Stop and report the original error without falling back or guessing.
23
- 3. Parse the JSON. Only accept `schema: comet.workflow-resolution.v1` and a `skill` value listed below.
24
- 4. Invoke exactly one entry based only on the returned `skill`, passing the user's original request through unchanged:
25
- - `comet-native` → `/comet-native`
26
- - `comet-classic` → `/comet-classic`
24
+ After the skill is loaded, pass the user's original request unchanged to the loaded entry Skill as its user input.
27
25
 
28
26
  Do not switch workflows based on task size, file count, active changes, or model judgment. Native and Classic changes, states, and artifacts always remain independent.
@@ -30,5 +30,5 @@ Accept only `schema: comet.classic-layout.v1`. Bind the returned `openSpecRoot`,
30
30
 
31
31
  - New Classic projects default to `docs/openspec/`.
32
32
  - A missing `classic.artifact_layout` defaults to `docs/openspec/`. When `comet update` detects existing root-level `openspec/` artifacts, it explicitly backfills `legacy` without moving them.
33
- - Normal init/update never moves existing artifacts. Run `comet classic root move docs --dry-run` first and retain its plan ID; use `comet classic root move docs --apply --plan <id>` only with explicit user authorization.
34
- - The first migration version rejects every active or unmanaged OpenSpec change.
33
+ - Normal init/update never moves existing artifacts. Run `comet classic root move docs --dry-run` to inspect the current state; after confirmation, run `comet classic root move docs --apply` to migrate. The Runtime manages migration identity and locked revalidation internally.
34
+ - Migration moves the complete legacy-layout tree as-is, including active, unmanaged, and incompletely archived changes; change state does not block a root move.
@@ -45,7 +45,7 @@ archived: false
45
45
  | `base_ref` | Git commit SHA recorded at init for scale assessment. Used as baseline for changed-file counting when no plan exists |
46
46
  | `build_mode` | Selected execution mode; may be empty. Values: `subagent-driven-development` (isolated background subagents implement and review each task), `executing-plans` (main session executes sequentially by plan), `direct` (main session codes directly; allowed by default only for hotfix/tweak, full workflow requires `direct_override: true`) |
47
47
  | `build_pause` | Build phase internal pause point. `null` = no pause, `plan-ready` = plan generated, paused for user model switch |
48
- | `subagent_dispatch` | `null` or `confirmed`. Only when the platform's real background subagent/Task/multi-agent dispatch capability is confirmed may `build_mode: subagent-driven-development` be written and used to leave the build phase |
48
+ | `subagent_dispatch` | `null` or `confirmed`. `confirmed` records that the user selected `subagent-driven-development`; this mode may leave build only with that record |
49
49
  | `tdd_mode` | `tdd` or `direct`. Full workflow must select before leaving build. `tdd` forces write-failing-test-first per task; `direct` skips per-task TDD but still requires relevant tests and bug-regression evidence. hotfix/tweak default to `direct` |
50
50
  | `review_mode` | `off`, `standard`, or `thorough`. Full workflow must select before leaving build; hotfix/tweak default to `off` |
51
51
  | `isolation` | `current`, `branch`, or `worktree`. Full init may be `null`, but before leaving build the user must explicitly select `current`, create/select a real `branch`, or create/select a real `worktree`; hotfix/tweak may also truthfully use all three modes after the entry user decision point, and must not claim branch isolation before creating one |
@@ -6,7 +6,7 @@ This protocol is shared by all comet sub-skills that may trigger context compres
6
6
 
7
7
  ## Any-Entry Recovery Principle
8
8
 
9
- The user may resume the workflow directly from `/comet-open`, `/comet-design`, `/comet-build`, `/comet-verify`, `/comet-archive`, `/comet-hotfix`, or `/comet-tweak`. On entry to any sub-skill, first locate scripts via `comet/reference/scripts.md`, then run the entry check or recovery check for that sub-skill's phase. Do not infer phase from conversation history.
9
+ The user may resume the workflow directly from `/comet-open`, `/comet-design`, `/comet-build`, `/comet-verify`, `/comet-archive`, `/comet-hotfix`, or `/comet-tweak`. On entry to any sub-skill, use `comet/reference/scripts.md` to run the public CLI command, then run the entry check or recovery check for that sub-skill's phase. Do not infer phase from conversation history.
10
10
 
11
11
  ```bash
12
12
  comet state check <change-name> <phase> --recover
@@ -16,10 +16,10 @@ If the check shows the actual phase, workflow, or evidence belongs to another sk
16
16
 
17
17
  ## Recovery Without Explicit `/comet-classic`
18
18
 
19
- If the user did not mention `/comet-classic`, but this repository may have an active change, run the Ambient Resume probe before starting work that may need code changes or investigation. First locate scripts via `comet/reference/scripts.md` and ensure `$COMET_RESUME_PROBE` is available, then pass the current user request on stdin:
19
+ If the user did not mention `/comet-classic`, but this repository may have an active change, run the Ambient Resume probe before starting work that may need code changes or investigation. Use `comet/reference/scripts.md` to run the public CLI command, then pass the current user request on stdin:
20
20
 
21
21
  ```bash
22
- node "$COMET_RESUME_PROBE" probe --stdin
22
+ comet resume-probe . --stdin --json
23
23
  ```
24
24
 
25
25
  Only `auto_resume` should resume automatically; `ask_user` must ask one short question; `out_of_scope` and `none` do not enter the workflow.
@@ -13,14 +13,13 @@ Distinguish user decisions, automatic handling, and stop conditions:
13
13
  - **Stop condition**: a missing dependency, corrupt state, path escape, or unavailable external command leaves no valid next action; report the blocker and recovery condition without inventing choices
14
14
  - **Manual handoff**: `NEXT: manual` returns control; it is not a new user decision point. Print `HINT`, end the current invocation, and do not ask whether to continue
15
15
 
16
- Only the first category uses this protocol. Merge adjacent choices that can be answered together, and do not re-ask persisted choices that remain valid. Preflight platform capabilities and state before presenting options, and show only executable choices. If a field has only one valid value, explain why and apply it without creating a separate pause.
16
+ Only the first category uses this protocol. Merge adjacent choices that can be answered together, and do not re-ask persisted choices that remain valid. Do not preflight, infer, or filter an option based on whether a later tool or operation may succeed. Present every workflow-supported choice; after the user selects one, run the requested action and stop with its original error if it fails. If a field has only one workflow-valid value, explain why and apply it without creating a separate pause.
17
17
 
18
18
  ## Core Rules
19
19
 
20
20
  - Decision points are blocking points. Pause and wait for an explicit user choice before continuing
21
- - Use the current platform's available user input or confirmation mechanism to collect the choice; when platforms such as Claude Code provide `AskUserQuestion`, prefer `AskUserQuestion` to present single-select or multi-select options
22
- - If the current tool list does not include `AskUserQuestion`, or the first `AskUserQuestion` call fails, treat structured questions as unavailable for this session; do not repeatedly retry `AskUserQuestion` for later decision points in the same session, and use the text-options fallback directly
23
- - If the current platform has no structured question tool, ask clear options in the conversation and stop until the user replies
21
+ - Use `AskUserQuestion` for single-select or multi-select choices when it is present; otherwise ask clear options in the conversation and wait for the reply
22
+ - When `AskUserQuestion` cannot be used, treat structured questions as unavailable for this session; do not repeatedly retry it for later decision points, and use the text-options fallback directly
24
23
  - Never substitute recommendation rules, defaults, historical preferences, or “the user would probably agree” for current confirmation
25
24
  - Do not write state fields, execute the chosen branch, or auto-continue before the user explicitly chooses
26
25
 
@@ -31,7 +30,7 @@ When using structured questions:
31
30
  - Use a single-select `AskUserQuestion` question for single-choice decision points, and a multi-select question for multi-choice decision points
32
31
  - Each option must include a short label and impact description; recommendations may explain tradeoffs but must not auto-select
33
32
  - If the tool call succeeds, wait for the user to answer through that question; do not also print a duplicate text option list
34
- - If the tool is missing, the call fails, or the host reports an error, record that structured questions are unavailable for this session, then use the text-options fallback
33
+ - If the tool is missing or the call fails, record that structured questions are unavailable for this session, then use the text-options fallback
35
34
 
36
35
  ## Minimum Presentation Requirements
37
36
 
@@ -1,12 +1,16 @@
1
- # Stable CLI and Internal Script Compatibility
1
+ # Stable Public CLI Contract
2
2
 
3
3
  Canonical path: `comet/reference/scripts.md`
4
4
 
5
- This file is the single source of truth for Comet's public CLI and internal script compatibility. Public workflows must prefer the stable command surface: `comet state`, `comet guard`, `comet handoff`, and `comet archive`.
5
+ This file is the single source of truth for Classic Skill calls into the Comet Runtime. Skills use only the public `comet` CLI on PATH. The packaged `comet/scripts/*.mjs` files are internal installation and Runtime assets; Skills do not search for or invoke them directly.
6
6
 
7
- ## Public Workflow Contract
7
+ ## CLI bootstrap
8
8
 
9
- Normal installations and everyday workflows use the `comet` CLI directly. They do not need to locate launchers and must not expose the internal `classic` name to users:
9
+ When entering a workflow, run the required public `comet` command below directly. If it returns `command not found`, `executable not found`, or `ENOENT`, stop and explain that the Comet CLI installation is incomplete. Do not search for Skill files, enumerate platform directories, or invoke an internal bundle directly. If the CLI starts but exits nonzero, report the original error and do not retry through an internal script.
10
+
11
+ ## Public workflow contract
12
+
13
+ Everyday workflows use the public CLI:
10
14
 
11
15
  ```bash
12
16
  comet state select <change-name>
@@ -16,51 +20,17 @@ comet state check <change-name> <phase>
16
20
  comet guard <change-name> <phase> --apply
17
21
  comet handoff <change-name>
18
22
  comet archive <change-name>
23
+ comet resume-probe . --stdin --json
24
+ comet classic intent route --stdin
19
25
  ```
20
26
 
21
27
  When multiple active changes coexist, run `comet state select <change-name>` after resolving the intended change. Ordinary source writes are governed only by that selection; without one, the hook blocks and asks for a choice. A single active change retains automatic routing. Select again after switching branch/worktree or when the recorded selection becomes stale.
22
28
 
23
29
  Guard `--apply` advances state after checks pass. Use `comet state transition` when expressing a state event directly, and `comet state next` after phase advancement to determine whether to invoke the next Skill automatically.
24
30
 
25
- ## Compatibility, Recovery, and Internal Command Bootstrap
26
-
27
- The script discovery below is only for legacy compatibility, recovery when the CLI is unavailable, and internal `/comet-classic` entry commands. Normal public workflows must not prefer it. Comet scripts are distributed in `comet/scripts/`; recovery code must locate them once and cache environment variables instead of hardcoding paths:
28
-
29
- ```bash
30
- COMET_ENV="${COMET_ENV:-$(find . "$HOME"/.*/skills "$HOME/.config" "$HOME/.gemini" -path '*/comet/scripts/comet-env.mjs' -type f -print -quit 2>/dev/null)}"
31
- if [ -z "$COMET_ENV" ]; then
32
- echo "ERROR: comet-env.mjs not found. Ensure the comet skill is installed." >&2
33
- return 1
34
- fi
35
- COMET_SCRIPTS_DIR="$(node "$COMET_ENV")"
36
- COMET_STATE="$COMET_SCRIPTS_DIR/comet-state.mjs"
37
- COMET_GUARD="$COMET_SCRIPTS_DIR/comet-guard.mjs"
38
- COMET_HANDOFF="$COMET_SCRIPTS_DIR/comet-handoff.mjs"
39
- COMET_ARCHIVE="$COMET_SCRIPTS_DIR/comet-archive.mjs"
40
- COMET_INTENT="$COMET_SCRIPTS_DIR/comet-intent.mjs"
41
- COMET_RESUME_PROBE="$COMET_SCRIPTS_DIR/comet-resume-probe.mjs"
42
-
43
- # Stop workflow when script location fails
44
- if [ -z "$COMET_SCRIPTS_DIR" ]; then
45
- echo "ERROR: Comet scripts not found. Ensure the comet skill is installed." >&2
46
- return 1
47
- fi
48
- ```
49
-
50
- Agents run this bootstrap only when entering one of the compatibility, recovery, or internal-command paths above. `COMET_INTENT` and `COMET_RESUME_PROBE` remain necessary for internal entry routing and must not be removed globally.
51
-
52
- | Variable | Purpose |
53
- |----------|---------|
54
- | `COMET_STATE` | `.comet.yaml` state reads/writes, phase checks, and recovery context |
55
- | `COMET_GUARD` | Phase exit guard and `--apply` state advancement |
56
- | `COMET_HANDOFF` | Design/Build handoff context pack generation |
57
- | `COMET_ARCHIVE` | One-command archive and main spec sync |
58
- | `COMET_INTENT` | `/comet-classic` entry intent recognition and route scoring |
59
- | `COMET_RESUME_PROBE` | Read-only Ambient Resume probe that decides whether to resume an active Comet workflow |
60
-
61
- ## Auto state update
31
+ ## Automatic state updates
62
32
 
63
- Guard supports `--apply` flag, automatically updating `.comet.yaml` state fields after checks pass:
33
+ Guard supports `--apply`, which updates `.comet.yaml` state fields after checks pass:
64
34
 
65
35
  ```bash
66
36
  comet guard <change-name> <phase> --apply
@@ -82,19 +52,19 @@ comet state transition <change-name> preset-escalate
82
52
 
83
53
  Archive completion is handled by `comet archive <change-name>` after OpenSpec moves the change into its date-prefixed archive directory. Use `archive-confirm` or `archive-reopen` for the pre-archive decision, and do not manually run the `archived` transition outside that flow.
84
54
 
85
- ## Resolve next action
55
+ ## Resolve the next action
86
56
 
87
- After guard-based phase advancement, use the `next` subcommand to determine whether to auto-invoke the next skill:
57
+ After guard-based phase advancement, use the `next` subcommand to determine whether to invoke the next Skill automatically:
88
58
 
89
59
  ```bash
90
60
  comet state next <change-name>
91
61
  ```
92
62
 
93
- Output format: `NEXT: auto|manual|done` + `SKILL: <skill-name>` (omitted for `done`) + `HINT` (for `manual` only). With `auto_transition: false`, output is `manual`, which pauses only the next skill invocation and does not block phase updates.
63
+ Output format: `NEXT: auto|manual|done` + `SKILL: <skill-name>` (omitted for `done`) + `HINT` (for `manual` only). With `auto_transition: false`, output is `manual`, which pauses only the next Skill invocation and does not block phase updates.
94
64
 
95
- ## Archive script
65
+ ## Archive command
96
66
 
97
- Complete all archive steps in one command:
67
+ Complete all archive steps with:
98
68
 
99
69
  ```bash
100
70
  comet archive <change-name>
@@ -2,7 +2,7 @@
2
2
 
3
3
  Canonical path: `comet/reference/subagent-dispatch.md`
4
4
 
5
- This document provides Comet-specific extensions applied **on top of** the Superpowers `subagent-driven-development` skill. The Superpowers `subagent-driven-development` skill provides the base continuous dispatch loop (a fresh implementer for each task, including the default task reviewer node) and enforces continuous execution. This document adds Comet-specific real background dispatch, task tracking, state verification, context recovery, and review/fix budgets; Comet's `review_mode` takes over the reviewer stage to decide which tasks need reviewers, how many fix rounds are allowed, and which final review runs. If the Superpowers skill conflicts with this document, the more specific Comet constraints here take precedence.
5
+ This document provides Comet-specific extensions applied **on top of** the Superpowers `subagent-driven-development` skill. The Superpowers `subagent-driven-development` skill provides the base continuous dispatch loop (a fresh implementer for each task, including the default task reviewer node) and enforces continuous execution. This document adds Comet-specific subagent dispatch, task tracking, state verification, context recovery, and review/fix budgets; Comet's `review_mode` takes over the reviewer stage to decide which tasks need reviewers, how many fix rounds are allowed, and which final review runs. If the Superpowers skill conflicts with this document, the more specific Comet constraints here take precedence.
6
6
 
7
7
  > **⚠️ CRITICAL — No Pause Between Tasks**
8
8
  >
@@ -13,7 +13,7 @@ This document provides Comet-specific extensions applied **on top of** the Super
13
13
  > - There is irreducible ambiguity that cannot be resolved from the repository, plan, or existing context
14
14
  > - The user **explicitly** asks to pause
15
15
  >
16
- > Background dispatch capability disappearing during execution is a runtime stop condition, not automatically a new user decision point. Exit the dispatch loop and return to the same `/comet-build` Step 2 joint decision with `subagent-driven-development` removed. If only one execution method remains, explain why and apply it directly; wait for the user only when multiple valid methods remain.
16
+ > A subagent-dispatch failure is a runtime stop condition, not automatically a new user decision point. Record the current task as `BLOCKED` with the failure reason, stop the dispatch loop, and follow the current change's blocked/recovery flow; the main session must not take over implementation.
17
17
  >
18
18
  > This rule applies to the ENTIRE dispatch loop, not just individual tasks.
19
19
 
@@ -33,9 +33,9 @@ Apply these on every task, in addition to the Superpowers skill's dispatch loop:
33
33
  The main session is the **coordinator only** and must NOT execute tasks directly or modify source code. The coordinator may modify only the plan, OpenSpec task, and subagent progress checkpoint for durable tracking. Never bundle multiple tasks into one agent. Dispatch a fresh background implementer agent for every task; when `review_mode` requires review or fixes, the task reviewer, fix agents, and the final reviewer must also each use a fresh background agent:
34
34
 
35
35
  - **Claude Code**: Use the `Agent` tool with `run_in_background: true` for each implementer, task reviewer, fix agent, and final reviewer. Never execute tasks inline and do not accidentally enter team mode, which requires a pre-created team.
36
- - **Other platforms**: Use the platform's equivalent background agent / Task / multi-agent dispatch mechanism.
36
+ - **Other platforms**: Use the agent / Task / multi-agent dispatch mechanism. Follow its scheduling, context, and result-return semantics.
37
37
  - **Never** reuse implementers, reviewers, or fix agents across tasks or roles. Each agent gets a fresh, isolated context containing only the single task and role-specific context it needs.
38
- - If real background dispatch capability disappears during execution, stop dispatching and do not let the main session implement the task. Return to the same `/comet-build` Step 2 joint decision with the unavailable mode removed. Do not create a separate "switch to executing-plans" pause; apply the only valid mode directly when just one remains.
38
+ - If subagent dispatch fails, stop dispatching and do not let the main session implement the task. Record the current task as `BLOCKED` with the failure reason and follow the current change's blocked/recovery flow.
39
39
 
40
40
  ### 1. Dispatch Prompt and Return Contract
41
41
 
@@ -69,13 +69,12 @@ Reviewer prompts must stay neutral:
69
69
  - Do not pre-judge, suppress, or down-rank findings in the reviewer prompt. If a likely finding conflicts with the plan, let the reviewer report it, then ask the user which requirement governs.
70
70
  - Do not paste accumulated prior-task history into later dispatches. Give only the current task, the relevant interfaces/constraints, and the handoff artifacts exposed by the loaded Superpowers `subagent-driven-development` skill.
71
71
 
72
- **Model selection (mandatory)**: Every dispatch must specify the model explicitly. An omitted model silently inherits the session's most expensive model, slowing execution and raising cost. Follow the Superpowers `subagent-driven-development` Model Selection rules:
72
+ **Model selection**: When a model selector is present, choose an appropriate model for each role. Otherwise use the default model. Do not invent a model argument or turn a missing selector into a blocking condition. When selection is available, follow the Superpowers `subagent-driven-development` Model Selection rules:
73
73
 
74
74
  - **Implementer / fix agent**: prose-described implementation work uses at least the standard tier; multi-file integration, pattern matching, or debugging → standard tier; requires design judgment or broad codebase understanding → most capable tier. Use the cheapest tier only when the plan text already contains the complete code to write (transcription + testing) or for a single-file mechanical fix.
75
75
  - **Reviewer (task-level / final)**: scale to the diff's size, complexity, and risk. A small mechanical diff does not need the most capable model; a subtle concurrency change does.
76
76
  - **Final whole-branch review**: use the most capable available model, not the session default.
77
77
 
78
- Omitting the model equals letting it run the session's most expensive model — directly defeating this section's goal.
79
78
 
80
79
  ### 2. Implementer Scope Restriction
81
80
 
@@ -97,6 +96,7 @@ The coordinator must maintain `<classic-change-dir>/.comet/subagent-progress.md`
97
96
 
98
97
  - The unique current plan task text and mapped OpenSpec task text
99
98
  - Current stage: `implementing | task-review | checkoff | done | blocked | final-review | final-fix`
99
+ - Model used for the current dispatch, when it can be identified
100
100
  - Implementation commit hash, changed files, and RED/GREEN evidence
101
101
  - The selected `review_mode`
102
102
  - Review stages already passed and unresolved reviewer feedback
@@ -143,8 +143,8 @@ When a reviewer returns an item that cannot be verified from review material alo
143
143
  4. Runs targeted verification:
144
144
 
145
145
  ```bash
146
- comet state task-checkoff <plan-file> <plan-task-text>
147
- comet state task-checkoff <classic-change-dir>/tasks.md <openspec-task-text>
146
+ comet state task-checkoff "<plan-file>" "<plan-task-text>"
147
+ comet state task-checkoff "<classic-change-dir>/tasks.md" "<openspec-task-text>"
148
148
  ```
149
149
 
150
150
  Run the second command only when the corresponding mapping exists. The script requires the task text to appear exactly once and be checked; verification failure blocks moving to the next task.
@@ -28,7 +28,7 @@ Ordinary source writes are governed only by the selected change phase. With mult
28
28
  | `verify` | Verification, record verification report | Skip failure handling, handle the branch early |
29
29
  | `archive` | Confirm archive, run archive script, commit archive changes, handle the branch | Write source code |
30
30
 
31
- The hook hard interception allowlist includes the OpenSpec and Superpowers roots returned by the Classic layout resolver, plus workflow and platform workspaces such as `.superpowers/*`, `.claude/*`, and `.comet/*`; write access to these paths does not allow skipping the current phase's artifacts or confirmation requirements.
31
+ The hook hard-interception allowlist exempts only artifacts legal in the current phase as returned by the Classic layout resolver, plus Comet-owned `.comet/*` and `.superpowers/*` control workspaces and root-level Markdown files. Configuration directories and any worktree/source files inside them are not generally exempt and must obey the current change's phase restrictions.
32
32
 
33
33
  ### Phase-Entry Self-Consistency Check (Before Writing Source Code)
34
34
 
@@ -86,7 +86,7 @@ The following decision points must pause to wait for explicit user selection; do
86
86
 
87
87
  ## Build Phase Specifics
88
88
 
89
- 1. After plan creation, filter unavailable options, then ask one joint question: pause, or submit workspace/execution/TDD/review settings and any conditional branch name together
89
+ 1. After plan creation, ask one joint question with every workflow-supported choice: pause, or submit workspace/execution/TDD/review settings and any conditional branch name together
90
90
  2. After each task acceptance, must: tasks.md checkmark → git commit (do not accumulate). `subagent-driven-development` must complete acceptance according to the current `review_mode`, then the coordinator performs targeted verification by unique task text; do not use an incomplete task summary table to replace current task verification
91
91
  3. When encountering failures, must load **systematic-debugging** skill; do not propose source code fixes before root cause is located
92
92
  4. spec change grading: small changes edit directly | medium changes load brainstorming | large changes pause and wait for user confirmation to split
@@ -28,7 +28,7 @@ comet state select <change-name>
28
28
  | `verify` | 验证、记录验证报告 | 跳过失败处理、提前处理分支 |
29
29
  | `archive` | 确认归档、运行归档脚本、提交归档改动、分支处理 | 写源代码 |
30
30
 
31
- Hook 硬拦截白名单包括 Classic layout resolver 返回的 OpenSpec 与 Superpowers roots,以及 `.superpowers/*`、`.claude/*` 和 `.comet/*` 等流程/平台工作区;这些路径可写不代表可以跳过当前阶段的产物和确认要求。
31
+ Hook 硬拦截仅豁免 Classic layout resolver 返回的当前阶段合法产物,以及 Comet 自有的 `.comet/*`、`.superpowers/*` 控制工作区和根目录 Markdown。配置目录及其中的 worktree/source 文件不属于通用豁免范围,必须服从当前 change 的阶段约束。
32
32
 
33
33
  ### 阶段进入自洽性校验(写源代码前必查)
34
34
 
@@ -86,7 +86,7 @@ Hook 硬拦截白名单包括 Classic layout resolver 返回的 OpenSpec 与 Sup
86
86
 
87
87
  ## Build 阶段专项
88
88
 
89
- 1. plan 创建后先过滤不可执行选项,再只发起一个联合决策:暂停,或一次性提交工作区/执行/TDD/审查配置及条件性的分支名
89
+ 1. plan 创建后,展示本工作流支持的全部选择并只发起一个联合决策:暂停,或一次性提交工作区/执行/TDD/审查配置及条件性的分支名
90
90
  2. 每个 task 验收后必须: tasks.md 打勾 → git commit(不得积攒)。`subagent-driven-development` 必须按当前 `review_mode` 完成验收,再由协调者按任务唯一文本定向勾选和验证;不得用未完成任务总表代替当前任务验证
91
91
  3. 遇到失败必须加载 **systematic-debugging** skill,根因未定位前不得提出源码修复
92
92
  4. spec 变更分级: 小改直接编辑 | 中改加载 brainstorming | 大改暂停等用户确认拆分
@@ -8,8 +8,8 @@ At the start of every turn, when resuming work, or after possible context compre
8
8
 
9
9
  1. Read `.comet/config.yaml`: `workflows` lists enabled capabilities, while `default_workflow` only selects the default `/comet` entry.
10
10
  2. Read `.comet/current-change.json`: its `workflow + change` identifies the current request owner.
11
- 3. Without a selection, infer read-only ownership only when exactly one active Comet change exists across the project. Multiple candidates require an explicit user selection.
12
- 4. Stop on an invalid, stale, cross-branch, missing, or archived selection. Never fall back to `default_workflow` to guess ownership.
11
+ 3. When the selection is missing, or its target change is missing or archived, enumerate active Comet changes across the project again: zero means there is no current Comet request, exactly one permits read-only inference, and multiple candidates require an explicit user selection.
12
+ 4. Stop when the selection file is unreadable, its format or schema is invalid, its workflow is disabled, its branch is invalid, or change state cannot be read safely. Never fall back to `default_workflow` to guess ownership.
13
13
 
14
14
  A legacy Classic project without the current project schema uses only the Classic legacy fallback; that fallback never enables Native.
15
15
 
@@ -21,6 +21,7 @@ A legacy Classic project without the current project schema uses only the Classi
21
21
  | Classic | Open, Design, Archive | Build, Verify |
22
22
 
23
23
  - Native Verify only runs checks and records evidence. When it exposes an implementation problem, record the failed result and use the Native Runtime to return to Build before modifying the implementation. Ordinary dot-prefixed project files do not become cross-phase allowlisted paths merely because of their names.
24
+ - Ordinary write permission in Native Build does not override unresolved `[blocking]` user decisions in the brief. When a new decision appears, follow the Native Skill to pause implementation and reconfirm.
24
25
  - For Native ownership, resume `/comet-native` and continue from Native state, evidence, and automatic-progression rules.
25
26
  - For Classic ownership, resume `/comet-classic` and continue from Classic state, decision points, and phase rules.
26
27
  - Never convert a Native change into a Classic change or vice versa. Switching workflows means selecting a separate change.
@@ -29,4 +30,4 @@ A legacy Classic project without the current project schema uses only the Classi
29
30
 
30
31
  Each platform must install exactly one Comet Hook Router. One write event may invoke at most one workflow Guard; do not run separate Native and Classic Hooks.
31
32
 
32
- The Hook evaluates multi-file and patch targets atomically. It fails closed when the current phase blocks ordinary project writes, ownership is ambiguous, state is stale, or a write target cannot be determined safely. Never bypass the Hook; follow its denial message to resume the owning workflow and select the current change again.
33
+ The Hook evaluates multi-file and patch targets atomically. It fails closed when the current phase blocks ordinary project writes, multiple ownership candidates exist, the selection or state cannot be read safely, or a write target cannot be determined. Never bypass the Hook; follow its denial message to resume the owning workflow, and select a current change only when ownership is ambiguous.
@@ -8,8 +8,8 @@
8
8
 
9
9
  1. 读取 `.comet/config.yaml`:`workflows` 表示项目启用的能力,`default_workflow` 只决定 `/comet` 的默认入口。
10
10
  2. 读取 `.comet/current-change.json`:其中的 `workflow + change` 才是当前需求所有者。
11
- 3. selection 缺失时,只有全项目恰好一个 Comet 活跃 change 才能只读推断;存在多个候选时必须暂停并让用户选择。
12
- 4. selection 无效、过期、跨分支失效或指向已归档 change 时停止,不得回退到 `default_workflow` 猜测。
11
+ 3. selection 缺失,或 selection 指向的 change 已不存在/已归档时,重新枚举全项目的 Comet 活跃 change:零个表示当前没有 Comet 需求;恰好一个时只读推断;多个候选时暂停并让用户选择。
12
+ 4. selection 文件不可读、格式或 schema 无效、workflow 未启用、跨分支失效或 change 状态不可安全读取时停止,不得回退到 `default_workflow` 猜测。
13
13
 
14
14
  Classic 旧项目没有新版配置时只按 Classic legacy fallback 处理,不得因此启用 Native。
15
15
 
@@ -21,6 +21,7 @@ Classic 旧项目没有新版配置时只按 Classic legacy fallback 处理,
21
21
  | Classic | Open、Design、Archive | Build、Verify |
22
22
 
23
23
  - Native 的 Verify 只运行检查并记录证据;发现实现问题时,先记录失败并通过 Native Runtime 回到 Build,再修改实现。点号开头的普通项目文件不因名称而自动成为跨阶段白名单。
24
+ - Native Build 的普通写入权限不覆盖 brief 中未解决的 `[blocking]` 用户决定;出现新决定时按 Native Skill 暂停实现并重新确认。
24
25
  - 当前 workflow 是 Native:恢复 `/comet-native`,由 Native 状态、证据和自动推进协议继续。
25
26
  - 当前 workflow 是 Classic:恢复 `/comet-classic`,由 Classic 状态、确认点和阶段协议继续。
26
27
  - 不要把 Native change 转换成 Classic change,或反向转换;切换 workflow 必须选择另一个独立 change。
@@ -29,4 +30,4 @@ Classic 旧项目没有新版配置时只按 Classic legacy fallback 处理,
29
30
 
30
31
  平台只应安装一个 Comet Hook Router。一次写入事件最多进入一个 workflow Guard;不得分别运行 Native 和 Classic Hook。
31
32
 
32
- Hook 会对多文件和 patch 目标整体裁决。当前阶段不允许普通项目写入、selection 不明确、状态失效或目标无法安全判断时会失败关闭。不要绕过 Hook;按拒绝信息恢复对应 workflow 并重新选择当前 change。
33
+ Hook 会对多文件和 patch 目标整体裁决。当前阶段不允许普通项目写入、存在多个所有权候选、selection/状态不可安全读取或写入目标无法判断时会失败关闭。不要绕过 Hook;按拒绝信息恢复对应 workflow,只有所有权不明确时才重新选择当前 change。