@rpamis/comet 0.4.0-beta.15 → 0.4.0-beta.17

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 (587) hide show
  1. package/README.md +37 -33
  2. package/assets/eval-reports/comet-native-vs-beta16-beta17-20260810/native-benchmark-report.html +8 -0
  3. package/assets/eval-reports/comet-native-vs-beta16-beta17-20260810/native-benchmark-report.json +286 -0
  4. package/assets/manifest.json +25 -17
  5. package/assets/skills/comet/SKILL.md +1 -1
  6. package/assets/skills/comet/agents/openai.yaml +3 -0
  7. package/assets/skills/comet/rules/comet-phase-guard.en.md +1 -1
  8. package/assets/skills/comet/rules/comet-phase-guard.md +1 -1
  9. package/assets/skills/comet/rules/comet-workflow-guard.en.md +2 -2
  10. package/assets/skills/comet/rules/comet-workflow-guard.md +2 -2
  11. package/assets/skills/comet/scripts/comet-archive.mjs +75 -75
  12. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +47 -47
  13. package/assets/skills/comet/scripts/comet-guard.mjs +119 -119
  14. package/assets/skills/comet/scripts/comet-handoff.mjs +80 -80
  15. package/assets/skills/comet/scripts/comet-hook-guard.mjs +78 -78
  16. package/assets/skills/comet/scripts/comet-hook-router.mjs +142 -140
  17. package/assets/skills/comet/scripts/comet-resume-probe.mjs +89 -89
  18. package/assets/skills/comet/scripts/comet-runtime.mjs +148 -148
  19. package/assets/skills/comet/scripts/comet-state.mjs +72 -72
  20. package/assets/skills/comet/scripts/comet-yaml-validate.mjs +94 -94
  21. package/assets/skills/comet-any/SKILL.md +2 -1
  22. package/assets/skills/comet-any/agents/openai.yaml +5 -0
  23. package/assets/skills/comet-archive/SKILL.md +7 -6
  24. package/assets/skills/comet-archive/agents/openai.yaml +5 -0
  25. package/assets/skills/comet-build/SKILL.md +14 -13
  26. package/assets/skills/comet-build/agents/openai.yaml +5 -0
  27. package/assets/skills/comet-classic/SKILL.md +14 -14
  28. package/assets/skills/comet-classic/agents/openai.yaml +3 -0
  29. package/assets/skills/{comet → comet-classic}/reference/auto-transition.md +1 -1
  30. package/assets/skills/{comet → comet-classic}/reference/comet-yaml-fields.md +2 -2
  31. package/assets/skills/{comet → comet-classic}/reference/context-recovery.md +5 -5
  32. package/assets/skills/{comet → comet-classic}/reference/debug-gate.md +2 -2
  33. package/assets/skills/{comet → comet-classic}/reference/decision-point.md +1 -1
  34. package/assets/skills/{comet → comet-classic}/reference/dirty-worktree.md +1 -1
  35. package/assets/skills/{comet → comet-classic}/reference/file-structure.md +1 -1
  36. package/assets/skills/{comet → comet-classic}/reference/intent-frame.md +1 -1
  37. package/assets/skills/{comet → comet-classic}/reference/scripts.md +1 -1
  38. package/assets/skills/{comet → comet-classic}/reference/subagent-dispatch.md +1 -1
  39. package/assets/skills/comet-design/SKILL.md +7 -6
  40. package/assets/skills/comet-design/agents/openai.yaml +5 -0
  41. package/assets/skills/comet-hotfix/SKILL.md +10 -9
  42. package/assets/skills/comet-hotfix/agents/openai.yaml +5 -0
  43. package/assets/skills/comet-native/SKILL.md +54 -168
  44. package/assets/skills/comet-native/agents/openai.yaml +3 -0
  45. package/assets/skills/comet-native/reference/artifacts.md +23 -89
  46. package/assets/skills/comet-native/reference/clarification.md +54 -29
  47. package/assets/skills/comet-native/reference/commands.md +30 -173
  48. package/assets/skills/comet-native/reference/recovery.md +38 -88
  49. package/assets/skills/comet-native/reference/workspace.md +23 -0
  50. package/assets/skills/comet-native/scripts/comet-native-archive.mjs +184 -152
  51. package/assets/skills/comet-native/scripts/comet-native-doctor.mjs +219 -163
  52. package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +125 -116
  53. package/assets/skills/comet-native/scripts/comet-native-init.mjs +134 -124
  54. package/assets/skills/comet-native/scripts/comet-native-new.mjs +170 -163
  55. package/assets/skills/comet-native/scripts/comet-native-next.mjs +179 -148
  56. package/assets/skills/comet-native/scripts/comet-native-root.mjs +152 -147
  57. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +247 -202
  58. package/assets/skills/comet-native/scripts/comet-native-select.mjs +153 -146
  59. package/assets/skills/comet-native/scripts/comet-native-show.mjs +117 -110
  60. package/assets/skills/comet-native/scripts/comet-native-spec.mjs +133 -151
  61. package/assets/skills/comet-native/scripts/comet-native-status.mjs +146 -139
  62. package/assets/skills/comet-open/SKILL.md +7 -6
  63. package/assets/skills/comet-open/agents/openai.yaml +5 -0
  64. package/assets/skills/comet-tweak/SKILL.md +11 -10
  65. package/assets/skills/comet-tweak/agents/openai.yaml +5 -0
  66. package/assets/skills/comet-verify/SKILL.md +9 -8
  67. package/assets/skills/comet-verify/agents/openai.yaml +5 -0
  68. package/assets/skills-zh/comet/SKILL.md +1 -1
  69. package/assets/skills-zh/comet/agents/openai.yaml +3 -0
  70. package/assets/skills-zh/comet-any/SKILL.md +2 -1
  71. package/assets/skills-zh/comet-any/agents/openai.yaml +5 -0
  72. package/assets/skills-zh/comet-archive/SKILL.md +7 -6
  73. package/assets/skills-zh/comet-archive/agents/openai.yaml +5 -0
  74. package/assets/skills-zh/comet-build/SKILL.md +14 -13
  75. package/assets/skills-zh/comet-build/agents/openai.yaml +5 -0
  76. package/assets/skills-zh/comet-classic/SKILL.md +15 -15
  77. package/assets/skills-zh/comet-classic/agents/openai.yaml +3 -0
  78. package/assets/skills-zh/{comet → comet-classic}/reference/auto-transition.md +1 -1
  79. package/assets/skills-zh/{comet → comet-classic}/reference/comet-yaml-fields.md +2 -2
  80. package/assets/skills-zh/{comet → comet-classic}/reference/context-recovery.md +5 -5
  81. package/assets/skills-zh/{comet → comet-classic}/reference/debug-gate.md +2 -2
  82. package/assets/skills-zh/{comet → comet-classic}/reference/decision-point.md +1 -1
  83. package/assets/skills-zh/{comet → comet-classic}/reference/dirty-worktree.md +1 -1
  84. package/assets/skills-zh/{comet → comet-classic}/reference/file-structure.md +1 -1
  85. package/assets/skills-zh/{comet → comet-classic}/reference/intent-frame.md +1 -1
  86. package/assets/skills-zh/{comet → comet-classic}/reference/scripts.md +1 -1
  87. package/assets/skills-zh/{comet → comet-classic}/reference/subagent-dispatch.md +1 -1
  88. package/assets/skills-zh/comet-design/SKILL.md +7 -6
  89. package/assets/skills-zh/comet-design/agents/openai.yaml +5 -0
  90. package/assets/skills-zh/comet-hotfix/SKILL.md +10 -9
  91. package/assets/skills-zh/comet-hotfix/agents/openai.yaml +5 -0
  92. package/assets/skills-zh/comet-native/SKILL.md +54 -168
  93. package/assets/skills-zh/comet-native/agents/openai.yaml +3 -0
  94. package/assets/skills-zh/comet-native/reference/artifacts.md +23 -89
  95. package/assets/skills-zh/comet-native/reference/clarification.md +40 -15
  96. package/assets/skills-zh/comet-native/reference/commands.md +30 -173
  97. package/assets/skills-zh/comet-native/reference/recovery.md +36 -86
  98. package/assets/skills-zh/comet-native/reference/workspace.md +23 -0
  99. package/assets/skills-zh/comet-open/SKILL.md +7 -6
  100. package/assets/skills-zh/comet-open/agents/openai.yaml +5 -0
  101. package/assets/skills-zh/comet-tweak/SKILL.md +11 -10
  102. package/assets/skills-zh/comet-tweak/agents/openai.yaml +5 -0
  103. package/assets/skills-zh/comet-verify/SKILL.md +9 -8
  104. package/assets/skills-zh/comet-verify/agents/openai.yaml +5 -0
  105. package/bin/fast-runtime-router.js +0 -4
  106. package/dist/app/commands/doctor.d.ts.map +1 -1
  107. package/dist/app/commands/doctor.js +16 -2
  108. package/dist/app/commands/doctor.js.map +1 -1
  109. package/dist/app/commands/init.d.ts.map +1 -1
  110. package/dist/app/commands/init.js +9 -1
  111. package/dist/app/commands/init.js.map +1 -1
  112. package/dist/app/commands/update.d.ts.map +1 -1
  113. package/dist/app/commands/update.js +9 -2
  114. package/dist/app/commands/update.js.map +1 -1
  115. package/dist/config/repository-layout.json +0 -8
  116. package/dist/domains/bundle/bundle-platform.d.ts.map +1 -1
  117. package/dist/domains/bundle/bundle-platform.js +8 -0
  118. package/dist/domains/bundle/bundle-platform.js.map +1 -1
  119. package/dist/domains/bundle/types.d.ts +1 -1
  120. package/dist/domains/bundle/types.d.ts.map +1 -1
  121. package/dist/domains/comet-classic/classic-evidence.d.ts.map +1 -1
  122. package/dist/domains/comet-classic/classic-evidence.js +45 -9
  123. package/dist/domains/comet-classic/classic-evidence.js.map +1 -1
  124. package/dist/domains/comet-classic/classic-layout-initialization.d.ts +4 -3
  125. package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -1
  126. package/dist/domains/comet-classic/classic-layout-initialization.js +13 -9
  127. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
  128. package/dist/domains/comet-classic/classic-layout.d.ts +2 -11
  129. package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -1
  130. package/dist/domains/comet-classic/classic-layout.js +22 -28
  131. package/dist/domains/comet-classic/classic-layout.js.map +1 -1
  132. package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -1
  133. package/dist/domains/comet-classic/classic-root-command.js +6 -1
  134. package/dist/domains/comet-classic/classic-root-command.js.map +1 -1
  135. package/dist/domains/comet-entry/hook-adapter.d.ts.map +1 -1
  136. package/dist/domains/comet-entry/hook-adapter.js +6 -0
  137. package/dist/domains/comet-entry/hook-adapter.js.map +1 -1
  138. package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -1
  139. package/dist/domains/comet-entry/hook-router-entry.js +11 -2
  140. package/dist/domains/comet-entry/hook-router-entry.js.map +1 -1
  141. package/dist/domains/comet-entry/project-activation.d.ts.map +1 -1
  142. package/dist/domains/comet-entry/project-activation.js +2 -1
  143. package/dist/domains/comet-entry/project-activation.js.map +1 -1
  144. package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -1
  145. package/dist/domains/comet-entry/resume-probe.js +48 -4
  146. package/dist/domains/comet-entry/resume-probe.js.map +1 -1
  147. package/dist/domains/comet-native/native-acceptance.d.ts +4 -3
  148. package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -1
  149. package/dist/domains/comet-native/native-acceptance.js +23 -18
  150. package/dist/domains/comet-native/native-acceptance.js.map +1 -1
  151. package/dist/domains/comet-native/native-archive-command.d.ts.map +1 -1
  152. package/dist/domains/comet-native/native-archive-command.js +204 -61
  153. package/dist/domains/comet-native/native-archive-command.js.map +1 -1
  154. package/dist/domains/comet-native/native-archive-transaction.d.ts.map +1 -1
  155. package/dist/domains/comet-native/native-archive-transaction.js +28 -23
  156. package/dist/domains/comet-native/native-archive-transaction.js.map +1 -1
  157. package/dist/domains/comet-native/native-archive.d.ts +1 -0
  158. package/dist/domains/comet-native/native-archive.d.ts.map +1 -1
  159. package/dist/domains/comet-native/native-archive.js +56 -12
  160. package/dist/domains/comet-native/native-archive.js.map +1 -1
  161. package/dist/domains/comet-native/native-bounded-file.d.ts +32 -2
  162. package/dist/domains/comet-native/native-bounded-file.d.ts.map +1 -1
  163. package/dist/domains/comet-native/native-bounded-file.js +87 -6
  164. package/dist/domains/comet-native/native-bounded-file.js.map +1 -1
  165. package/dist/domains/comet-native/native-build-evidence.d.ts.map +1 -1
  166. package/dist/domains/comet-native/native-build-evidence.js +23 -1
  167. package/dist/domains/comet-native/native-build-evidence.js.map +1 -1
  168. package/dist/domains/comet-native/native-change.d.ts +1 -0
  169. package/dist/domains/comet-native/native-change.d.ts.map +1 -1
  170. package/dist/domains/comet-native/native-change.js +96 -8
  171. package/dist/domains/comet-native/native-change.js.map +1 -1
  172. package/dist/domains/comet-native/native-check-executor.d.ts +36 -0
  173. package/dist/domains/comet-native/native-check-executor.d.ts.map +1 -0
  174. package/dist/domains/comet-native/native-check-executor.js +132 -0
  175. package/dist/domains/comet-native/native-check-executor.js.map +1 -0
  176. package/dist/domains/comet-native/native-check-receipt-model.d.ts +9 -0
  177. package/dist/domains/comet-native/native-check-receipt-model.d.ts.map +1 -1
  178. package/dist/domains/comet-native/native-check-receipt-model.js +70 -8
  179. package/dist/domains/comet-native/native-check-receipt-model.js.map +1 -1
  180. package/dist/domains/comet-native/native-check-receipt-storage.d.ts.map +1 -1
  181. package/dist/domains/comet-native/native-check-receipt-storage.js +9 -8
  182. package/dist/domains/comet-native/native-check-receipt-storage.js.map +1 -1
  183. package/dist/domains/comet-native/native-check-receipt.d.ts.map +1 -1
  184. package/dist/domains/comet-native/native-check-receipt.js +123 -60
  185. package/dist/domains/comet-native/native-check-receipt.js.map +1 -1
  186. package/dist/domains/comet-native/native-checkpoint-command.d.ts.map +1 -1
  187. package/dist/domains/comet-native/native-checkpoint-command.js +0 -6
  188. package/dist/domains/comet-native/native-checkpoint-command.js.map +1 -1
  189. package/dist/domains/comet-native/native-checkpoint-storage.d.ts.map +1 -1
  190. package/dist/domains/comet-native/native-checkpoint-storage.js +27 -19
  191. package/dist/domains/comet-native/native-checkpoint-storage.js.map +1 -1
  192. package/dist/domains/comet-native/native-cli-help.d.ts +6 -0
  193. package/dist/domains/comet-native/native-cli-help.d.ts.map +1 -0
  194. package/dist/domains/comet-native/native-cli-help.js +192 -0
  195. package/dist/domains/comet-native/native-cli-help.js.map +1 -0
  196. package/dist/domains/comet-native/native-cli-shared.d.ts +2 -2
  197. package/dist/domains/comet-native/native-cli-shared.d.ts.map +1 -1
  198. package/dist/domains/comet-native/native-cli-shared.js +46 -24
  199. package/dist/domains/comet-native/native-cli-shared.js.map +1 -1
  200. package/dist/domains/comet-native/native-cli.d.ts.map +1 -1
  201. package/dist/domains/comet-native/native-cli.js +18 -11
  202. package/dist/domains/comet-native/native-cli.js.map +1 -1
  203. package/dist/domains/comet-native/native-config.d.ts +2 -1
  204. package/dist/domains/comet-native/native-config.d.ts.map +1 -1
  205. package/dist/domains/comet-native/native-config.js +2 -1
  206. package/dist/domains/comet-native/native-config.js.map +1 -1
  207. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -1
  208. package/dist/domains/comet-native/native-continuation.js +175 -147
  209. package/dist/domains/comet-native/native-continuation.js.map +1 -1
  210. package/dist/domains/comet-native/native-diagnostics.d.ts.map +1 -1
  211. package/dist/domains/comet-native/native-diagnostics.js +96 -13
  212. package/dist/domains/comet-native/native-diagnostics.js.map +1 -1
  213. package/dist/domains/comet-native/native-doctor-command.d.ts.map +1 -1
  214. package/dist/domains/comet-native/native-doctor-command.js +327 -0
  215. package/dist/domains/comet-native/native-doctor-command.js.map +1 -1
  216. package/dist/domains/comet-native/native-doctor.d.ts +1 -0
  217. package/dist/domains/comet-native/native-doctor.d.ts.map +1 -1
  218. package/dist/domains/comet-native/native-doctor.js +116 -22
  219. package/dist/domains/comet-native/native-doctor.js.map +1 -1
  220. package/dist/domains/comet-native/native-evidence-projection.d.ts +50 -0
  221. package/dist/domains/comet-native/native-evidence-projection.d.ts.map +1 -0
  222. package/dist/domains/comet-native/native-evidence-projection.js +284 -0
  223. package/dist/domains/comet-native/native-evidence-projection.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 +14 -12
  226. package/dist/domains/comet-native/native-evidence-retention.js.map +1 -1
  227. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
  228. package/dist/domains/comet-native/native-evidence-storage.js +14 -11
  229. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
  230. package/dist/domains/comet-native/native-findings.d.ts.map +1 -1
  231. package/dist/domains/comet-native/native-findings.js +18 -0
  232. package/dist/domains/comet-native/native-findings.js.map +1 -1
  233. package/dist/domains/comet-native/native-git-provenance.d.ts +16 -0
  234. package/dist/domains/comet-native/native-git-provenance.d.ts.map +1 -0
  235. package/dist/domains/comet-native/native-git-provenance.js +171 -0
  236. package/dist/domains/comet-native/native-git-provenance.js.map +1 -0
  237. package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -1
  238. package/dist/domains/comet-native/native-hook-guard.js +159 -18
  239. package/dist/domains/comet-native/native-hook-guard.js.map +1 -1
  240. package/dist/domains/comet-native/native-init-command.d.ts.map +1 -1
  241. package/dist/domains/comet-native/native-init-command.js +14 -2
  242. package/dist/domains/comet-native/native-init-command.js.map +1 -1
  243. package/dist/domains/comet-native/native-local-execution.d.ts +25 -0
  244. package/dist/domains/comet-native/native-local-execution.d.ts.map +1 -0
  245. package/dist/domains/comet-native/native-local-execution.js +241 -0
  246. package/dist/domains/comet-native/native-local-execution.js.map +1 -0
  247. package/dist/domains/comet-native/native-lock.d.ts +1 -1
  248. package/dist/domains/comet-native/native-lock.d.ts.map +1 -1
  249. package/dist/domains/comet-native/native-lock.js +9 -9
  250. package/dist/domains/comet-native/native-lock.js.map +1 -1
  251. package/dist/domains/comet-native/native-loop-runtime.d.ts +63 -0
  252. package/dist/domains/comet-native/native-loop-runtime.d.ts.map +1 -0
  253. package/dist/domains/comet-native/native-loop-runtime.js +580 -0
  254. package/dist/domains/comet-native/native-loop-runtime.js.map +1 -0
  255. package/dist/domains/comet-native/native-mutation-lock.d.ts +2 -0
  256. package/dist/domains/comet-native/native-mutation-lock.d.ts.map +1 -1
  257. package/dist/domains/comet-native/native-mutation-lock.js +23 -2
  258. package/dist/domains/comet-native/native-mutation-lock.js.map +1 -1
  259. package/dist/domains/comet-native/native-new-command.d.ts.map +1 -1
  260. package/dist/domains/comet-native/native-new-command.js +27 -20
  261. package/dist/domains/comet-native/native-new-command.js.map +1 -1
  262. package/dist/domains/comet-native/native-next-command.d.ts.map +1 -1
  263. package/dist/domains/comet-native/native-next-command.js +114 -63
  264. package/dist/domains/comet-native/native-next-command.js.map +1 -1
  265. package/dist/domains/comet-native/native-paths.d.ts +18 -0
  266. package/dist/domains/comet-native/native-paths.d.ts.map +1 -1
  267. package/dist/domains/comet-native/native-paths.js +125 -13
  268. package/dist/domains/comet-native/native-paths.js.map +1 -1
  269. package/dist/domains/comet-native/native-portable-acceptance.d.ts +28 -0
  270. package/dist/domains/comet-native/native-portable-acceptance.d.ts.map +1 -0
  271. package/dist/domains/comet-native/native-portable-acceptance.js +73 -0
  272. package/dist/domains/comet-native/native-portable-acceptance.js.map +1 -0
  273. package/dist/domains/comet-native/native-portable-archive.d.ts +37 -0
  274. package/dist/domains/comet-native/native-portable-archive.d.ts.map +1 -0
  275. package/dist/domains/comet-native/native-portable-archive.js +492 -0
  276. package/dist/domains/comet-native/native-portable-archive.js.map +1 -0
  277. package/dist/domains/comet-native/native-portable-continuation.d.ts +29 -0
  278. package/dist/domains/comet-native/native-portable-continuation.d.ts.map +1 -0
  279. package/dist/domains/comet-native/native-portable-continuation.js +341 -0
  280. package/dist/domains/comet-native/native-portable-continuation.js.map +1 -0
  281. package/dist/domains/comet-native/native-portable-migration-runtime.d.ts +9 -0
  282. package/dist/domains/comet-native/native-portable-migration-runtime.d.ts.map +1 -0
  283. package/dist/domains/comet-native/native-portable-migration-runtime.js +213 -0
  284. package/dist/domains/comet-native/native-portable-migration-runtime.js.map +1 -0
  285. package/dist/domains/comet-native/native-portable-migration.d.ts +42 -0
  286. package/dist/domains/comet-native/native-portable-migration.d.ts.map +1 -0
  287. package/dist/domains/comet-native/native-portable-migration.js +212 -0
  288. package/dist/domains/comet-native/native-portable-migration.js.map +1 -0
  289. package/dist/domains/comet-native/native-portable-recovery.d.ts +15 -0
  290. package/dist/domains/comet-native/native-portable-recovery.d.ts.map +1 -0
  291. package/dist/domains/comet-native/native-portable-recovery.js +203 -0
  292. package/dist/domains/comet-native/native-portable-recovery.js.map +1 -0
  293. package/dist/domains/comet-native/native-portable-runtime.d.ts +150 -0
  294. package/dist/domains/comet-native/native-portable-runtime.d.ts.map +1 -0
  295. package/dist/domains/comet-native/native-portable-runtime.js +1444 -0
  296. package/dist/domains/comet-native/native-portable-runtime.js.map +1 -0
  297. package/dist/domains/comet-native/native-portable-state.d.ts +30 -0
  298. package/dist/domains/comet-native/native-portable-state.d.ts.map +1 -0
  299. package/dist/domains/comet-native/native-portable-state.js +688 -0
  300. package/dist/domains/comet-native/native-portable-state.js.map +1 -0
  301. package/dist/domains/comet-native/native-portable-status.d.ts +62 -0
  302. package/dist/domains/comet-native/native-portable-status.d.ts.map +1 -0
  303. package/dist/domains/comet-native/native-portable-status.js +125 -0
  304. package/dist/domains/comet-native/native-portable-status.js.map +1 -0
  305. package/dist/domains/comet-native/native-portable-text.d.ts +8 -0
  306. package/dist/domains/comet-native/native-portable-text.d.ts.map +1 -0
  307. package/dist/domains/comet-native/native-portable-text.js +28 -0
  308. package/dist/domains/comet-native/native-portable-text.js.map +1 -0
  309. package/dist/domains/comet-native/native-portable-transactions.d.ts +41 -0
  310. package/dist/domains/comet-native/native-portable-transactions.d.ts.map +1 -0
  311. package/dist/domains/comet-native/native-portable-transactions.js +204 -0
  312. package/dist/domains/comet-native/native-portable-transactions.js.map +1 -0
  313. package/dist/domains/comet-native/native-portable-types.d.ts +165 -0
  314. package/dist/domains/comet-native/native-portable-types.d.ts.map +1 -0
  315. package/dist/domains/comet-native/native-portable-types.js +18 -0
  316. package/dist/domains/comet-native/native-portable-types.js.map +1 -0
  317. package/dist/domains/comet-native/native-repair-integration.js +5 -5
  318. package/dist/domains/comet-native/native-repair-integration.js.map +1 -1
  319. package/dist/domains/comet-native/native-resume-view.d.ts.map +1 -1
  320. package/dist/domains/comet-native/native-resume-view.js +1 -5
  321. package/dist/domains/comet-native/native-resume-view.js.map +1 -1
  322. package/dist/domains/comet-native/native-root-move.d.ts.map +1 -1
  323. package/dist/domains/comet-native/native-root-move.js +4 -20
  324. package/dist/domains/comet-native/native-root-move.js.map +1 -1
  325. package/dist/domains/comet-native/native-run-consistency.d.ts.map +1 -1
  326. package/dist/domains/comet-native/native-run-consistency.js +8 -12
  327. package/dist/domains/comet-native/native-run-consistency.js.map +1 -1
  328. package/dist/domains/comet-native/native-run-store.js +4 -4
  329. package/dist/domains/comet-native/native-run-store.js.map +1 -1
  330. package/dist/domains/comet-native/native-runner-input.d.ts +160 -0
  331. package/dist/domains/comet-native/native-runner-input.d.ts.map +1 -0
  332. package/dist/domains/comet-native/native-runner-input.js +347 -0
  333. package/dist/domains/comet-native/native-runner-input.js.map +1 -0
  334. package/dist/domains/comet-native/native-runner-protocol.d.ts +40 -0
  335. package/dist/domains/comet-native/native-runner-protocol.d.ts.map +1 -0
  336. package/dist/domains/comet-native/native-runner-protocol.js +55 -0
  337. package/dist/domains/comet-native/native-runner-protocol.js.map +1 -0
  338. package/dist/domains/comet-native/native-runtime-package.d.ts +3 -0
  339. package/dist/domains/comet-native/native-runtime-package.d.ts.map +1 -1
  340. package/dist/domains/comet-native/native-runtime-package.js +5 -1
  341. package/dist/domains/comet-native/native-runtime-package.js.map +1 -1
  342. package/dist/domains/comet-native/native-schema-migration.d.ts.map +1 -1
  343. package/dist/domains/comet-native/native-schema-migration.js +30 -27
  344. package/dist/domains/comet-native/native-schema-migration.js.map +1 -1
  345. package/dist/domains/comet-native/native-select-command.d.ts.map +1 -1
  346. package/dist/domains/comet-native/native-select-command.js +8 -4
  347. package/dist/domains/comet-native/native-select-command.js.map +1 -1
  348. package/dist/domains/comet-native/native-selection.d.ts.map +1 -1
  349. package/dist/domains/comet-native/native-selection.js +11 -2
  350. package/dist/domains/comet-native/native-selection.js.map +1 -1
  351. package/dist/domains/comet-native/native-show-command.d.ts.map +1 -1
  352. package/dist/domains/comet-native/native-show-command.js +36 -0
  353. package/dist/domains/comet-native/native-show-command.js.map +1 -1
  354. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -1
  355. package/dist/domains/comet-native/native-snapshot.js +13 -10
  356. package/dist/domains/comet-native/native-snapshot.js.map +1 -1
  357. package/dist/domains/comet-native/native-spec-command.d.ts.map +1 -1
  358. package/dist/domains/comet-native/native-spec-command.js +14 -28
  359. package/dist/domains/comet-native/native-spec-command.js.map +1 -1
  360. package/dist/domains/comet-native/native-specs.js +3 -3
  361. package/dist/domains/comet-native/native-specs.js.map +1 -1
  362. package/dist/domains/comet-native/native-status-command.d.ts.map +1 -1
  363. package/dist/domains/comet-native/native-status-command.js +7 -17
  364. package/dist/domains/comet-native/native-status-command.js.map +1 -1
  365. package/dist/domains/comet-native/native-status-discovery.d.ts +51 -0
  366. package/dist/domains/comet-native/native-status-discovery.d.ts.map +1 -0
  367. package/dist/domains/comet-native/native-status-discovery.js +299 -0
  368. package/dist/domains/comet-native/native-status-discovery.js.map +1 -0
  369. package/dist/domains/comet-native/native-trajectory-recovery.d.ts.map +1 -1
  370. package/dist/domains/comet-native/native-trajectory-recovery.js +6 -9
  371. package/dist/domains/comet-native/native-trajectory-recovery.js.map +1 -1
  372. package/dist/domains/comet-native/native-transaction.d.ts.map +1 -1
  373. package/dist/domains/comet-native/native-transaction.js +31 -20
  374. package/dist/domains/comet-native/native-transaction.js.map +1 -1
  375. package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -1
  376. package/dist/domains/comet-native/native-transition-evidence.js +1 -0
  377. package/dist/domains/comet-native/native-transition-evidence.js.map +1 -1
  378. package/dist/domains/comet-native/native-transition-journal.d.ts.map +1 -1
  379. package/dist/domains/comet-native/native-transition-journal.js +71 -22
  380. package/dist/domains/comet-native/native-transition-journal.js.map +1 -1
  381. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -1
  382. package/dist/domains/comet-native/native-transitions.js +167 -15
  383. package/dist/domains/comet-native/native-transitions.js.map +1 -1
  384. package/dist/domains/comet-native/native-types.d.ts +36 -1
  385. package/dist/domains/comet-native/native-types.d.ts.map +1 -1
  386. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -1
  387. package/dist/domains/comet-native/native-verification-receipt-runtime.js +18 -100
  388. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -1
  389. package/dist/domains/comet-native/native-verification-report-v2.d.ts +12 -0
  390. package/dist/domains/comet-native/native-verification-report-v2.d.ts.map +1 -0
  391. package/dist/domains/comet-native/native-verification-report-v2.js +141 -0
  392. package/dist/domains/comet-native/native-verification-report-v2.js.map +1 -0
  393. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -1
  394. package/dist/domains/comet-native/native-verification-runtime.js +7 -2
  395. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -1
  396. package/dist/domains/comet-native/native-verification-scope.d.ts +23 -0
  397. package/dist/domains/comet-native/native-verification-scope.d.ts.map +1 -1
  398. package/dist/domains/comet-native/native-verification-scope.js +106 -19
  399. package/dist/domains/comet-native/native-verification-scope.js.map +1 -1
  400. package/dist/domains/comet-native/native-verifier-protocol.d.ts +49 -0
  401. package/dist/domains/comet-native/native-verifier-protocol.d.ts.map +1 -0
  402. package/dist/domains/comet-native/native-verifier-protocol.js +157 -0
  403. package/dist/domains/comet-native/native-verifier-protocol.js.map +1 -0
  404. package/dist/domains/comet-native/native-workspace-finish.d.ts +61 -0
  405. package/dist/domains/comet-native/native-workspace-finish.d.ts.map +1 -0
  406. package/dist/domains/comet-native/native-workspace-finish.js +332 -0
  407. package/dist/domains/comet-native/native-workspace-finish.js.map +1 -0
  408. package/dist/domains/comet-native/native-workspace-preparation.d.ts +32 -0
  409. package/dist/domains/comet-native/native-workspace-preparation.d.ts.map +1 -0
  410. package/dist/domains/comet-native/native-workspace-preparation.js +265 -0
  411. package/dist/domains/comet-native/native-workspace-preparation.js.map +1 -0
  412. package/dist/domains/comet-native/native-workspace.d.ts +9 -1
  413. package/dist/domains/comet-native/native-workspace.d.ts.map +1 -1
  414. package/dist/domains/comet-native/native-workspace.js +109 -11
  415. package/dist/domains/comet-native/native-workspace.js.map +1 -1
  416. package/dist/domains/dashboard/native-adapter.d.ts +136 -127
  417. package/dist/domains/dashboard/native-adapter.d.ts.map +1 -1
  418. package/dist/domains/dashboard/native-adapter.js +157 -271
  419. package/dist/domains/dashboard/native-adapter.js.map +1 -1
  420. package/dist/domains/dashboard/native-collector.d.ts +4 -4
  421. package/dist/domains/dashboard/native-collector.d.ts.map +1 -1
  422. package/dist/domains/dashboard/native-collector.js +230 -412
  423. package/dist/domains/dashboard/native-collector.js.map +1 -1
  424. package/dist/domains/dashboard/native-legacy-adapter.d.ts +30 -0
  425. package/dist/domains/dashboard/native-legacy-adapter.d.ts.map +1 -0
  426. package/dist/domains/dashboard/native-legacy-adapter.js +115 -0
  427. package/dist/domains/dashboard/native-legacy-adapter.js.map +1 -0
  428. package/dist/domains/dashboard/web/assets/{arc-ClrSujVb.js → arc-CkuYweSh.js} +1 -1
  429. package/dist/domains/dashboard/web/assets/{architectureDiagram-3BPJPVTR-B4A_t84A.js → architectureDiagram-3BPJPVTR--tTGrKam.js} +1 -1
  430. package/dist/domains/dashboard/web/assets/{blockDiagram-GPEHLZMM-D72u2953.js → blockDiagram-GPEHLZMM-DLKYOixs.js} +1 -1
  431. package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-Ca5zba3N.js → c4Diagram-AAUBKEIU-BL17BIb8.js} +1 -1
  432. package/dist/domains/dashboard/web/assets/channel-Cg__FSMr.js +1 -0
  433. package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-CCVPBm0J.js → chunk-2J33WTMH-B_DDS2IK.js} +1 -1
  434. package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-JYluRsP-.js → chunk-4BX2VUAB-vQyyh3eG.js} +1 -1
  435. package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-DfYm7pN7.js → chunk-55IACEB6-Cug8J1Qa.js} +1 -1
  436. package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-CwghIMO9.js → chunk-727SXJPM-pMreYMW7.js} +1 -1
  437. package/dist/domains/dashboard/web/assets/{chunk-AQP2D5EJ-BA_zgMXZ.js → chunk-AQP2D5EJ-BUkV_rb7.js} +1 -1
  438. package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-BAJLB5V6.js → chunk-FMBD7UC4-CQXqBSqQ.js} +1 -1
  439. package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-Bj6HWRwi.js → chunk-ND2GUHAM-XWLMOyd4.js} +1 -1
  440. package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-B1kXfg5N.js → chunk-QZHKN3VN-4drjXzHQ.js} +1 -1
  441. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-CsC-pvu9.js +1 -0
  442. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-CsC-pvu9.js +1 -0
  443. package/dist/domains/dashboard/web/assets/{cose-bilkent-S5V4N54A-BBrkuiAU.js → cose-bilkent-S5V4N54A-IQKP-hgj.js} +1 -1
  444. package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-DlFhgQHt.js → cynefin-VYW2F7L2-CvvRO4J2.js} +1 -1
  445. package/dist/domains/dashboard/web/assets/{dagre-BM42HDAG-B0Bk5oiP.js → dagre-BM42HDAG-DeOQo7bP.js} +1 -1
  446. package/dist/domains/dashboard/web/assets/demo-CeIDHUFJ.js +24 -0
  447. package/dist/domains/dashboard/web/assets/{diagram-2AECGRRQ-tvTUiBA2.js → diagram-2AECGRRQ-IQd_jQwB.js} +1 -1
  448. package/dist/domains/dashboard/web/assets/{diagram-5GNKFQAL-BZfcK29q.js → diagram-5GNKFQAL-Dllkdt0m.js} +1 -1
  449. package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-BQahyP-C.js → diagram-KO2AKTUF-CN_LYqvT.js} +1 -1
  450. package/dist/domains/dashboard/web/assets/{diagram-LMA3HP47-D5bJnW2C.js → diagram-LMA3HP47-DK36WkNN.js} +1 -1
  451. package/dist/domains/dashboard/web/assets/{diagram-OG6HWLK6-DTwWdzWJ.js → diagram-OG6HWLK6-iqUnMYEh.js} +1 -1
  452. package/dist/domains/dashboard/web/assets/{erDiagram-TEJ5UH35-BbvrdCp9.js → erDiagram-TEJ5UH35-Bc64lzy8.js} +1 -1
  453. package/dist/domains/dashboard/web/assets/{flowDiagram-I6XJVG4X-DgbR7Tcc.js → flowDiagram-I6XJVG4X-UfOqef9j.js} +1 -1
  454. package/dist/domains/dashboard/web/assets/{ganttDiagram-6RSMTGT7-wWMOA7F4.js → ganttDiagram-6RSMTGT7-D-u6Aauc.js} +1 -1
  455. package/dist/domains/dashboard/web/assets/{gitGraphDiagram-PVQCEYII-DCxvMAUJ.js → gitGraphDiagram-PVQCEYII-CaWEk3PM.js} +1 -1
  456. package/dist/domains/dashboard/web/assets/index-BFwKBVTJ.css +1 -0
  457. package/dist/domains/dashboard/web/assets/{index-Blit0P5Z.js → index-BNyOfAhu.js} +1 -1
  458. package/dist/domains/dashboard/web/assets/index-COZ_03uK.js +257 -0
  459. package/dist/domains/dashboard/web/assets/{infoDiagram-5YYISTIA-9qXEkzDe.js → infoDiagram-5YYISTIA-BK07mNG0.js} +1 -1
  460. package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-Dkf5othW.js → ishikawaDiagram-YF4QCWOH-mWnmaWfZ.js} +1 -1
  461. package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-C2_IkO4s.js → journeyDiagram-JHISSGLW-BPy-P7xx.js} +1 -1
  462. package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-BxWgu4DL.js → kanban-definition-UN3LZRKU-3Jq9c_lo.js} +1 -1
  463. package/dist/domains/dashboard/web/assets/{linear-Dkr6p-Ro.js → linear-kQyEW-4G.js} +1 -1
  464. package/dist/domains/dashboard/web/assets/{mermaid.core-DZUcsoG4.js → mermaid.core-COBBjtVH.js} +4 -4
  465. package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-C9xyxGfa.js → mindmap-definition-RKZ34NQL-CyyurUpv.js} +1 -1
  466. package/dist/domains/dashboard/web/assets/{pieDiagram-4H26LBE5-Dn67tdOF.js → pieDiagram-4H26LBE5-CJro_XKk.js} +1 -1
  467. package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-Cy6iOcxc.js → quadrantDiagram-W4KKPZXB-CpayUMjH.js} +1 -1
  468. package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-B_gZONhx.js → requirementDiagram-4Y6WPE33-Bi8YpfnA.js} +1 -1
  469. package/dist/domains/dashboard/web/assets/{sankeyDiagram-5OEKKPKP-C3u-4dOk.js → sankeyDiagram-5OEKKPKP-Wx60WwHe.js} +1 -1
  470. package/dist/domains/dashboard/web/assets/{sequenceDiagram-3UESZ5HK-Xd3ByTVF.js → sequenceDiagram-3UESZ5HK-BiMsRFbc.js} +1 -1
  471. package/dist/domains/dashboard/web/assets/{stateDiagram-AJRCARHV-CJGHL7Up.js → stateDiagram-AJRCARHV-BrURMY0R.js} +1 -1
  472. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-BpEE-yEg.js +1 -0
  473. package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-DvONX2YQ.js → timeline-definition-PNZ67QCA-aHrrtV-b.js} +1 -1
  474. package/dist/domains/dashboard/web/assets/{vennDiagram-CIIHVFJN-B-L4qWy4.js → vennDiagram-CIIHVFJN-DGB16bvR.js} +1 -1
  475. package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-cf39WX2o.js → wardleyDiagram-YWT4CUSO-RVQbcySh.js} +1 -1
  476. package/dist/domains/dashboard/web/assets/{xychartDiagram-2RQKCTM6-Dk1vcm3u.js → xychartDiagram-2RQKCTM6-DMzzwDVX.js} +1 -1
  477. package/dist/domains/dashboard/web/index.html +2 -2
  478. package/dist/domains/factory/package.d.ts.map +1 -1
  479. package/dist/domains/factory/package.js +7 -22
  480. package/dist/domains/factory/package.js.map +1 -1
  481. package/dist/domains/skill/platform-inspect.d.ts.map +1 -1
  482. package/dist/domains/skill/platform-inspect.js +11 -3
  483. package/dist/domains/skill/platform-inspect.js.map +1 -1
  484. package/dist/domains/skill/platform-install.d.ts +7 -1
  485. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  486. package/dist/domains/skill/platform-install.js +114 -33
  487. package/dist/domains/skill/platform-install.js.map +1 -1
  488. package/dist/domains/skill/uninstall.d.ts.map +1 -1
  489. package/dist/domains/skill/uninstall.js +69 -15
  490. package/dist/domains/skill/uninstall.js.map +1 -1
  491. package/dist/domains/workflow-contract/index.d.ts +1 -0
  492. package/dist/domains/workflow-contract/index.d.ts.map +1 -1
  493. package/dist/domains/workflow-contract/index.js +1 -0
  494. package/dist/domains/workflow-contract/index.js.map +1 -1
  495. package/dist/domains/workflow-contract/project-config.d.ts +2 -0
  496. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
  497. package/dist/domains/workflow-contract/project-config.js +77 -17
  498. package/dist/domains/workflow-contract/project-config.js.map +1 -1
  499. package/dist/domains/workflow-contract/project-gitignore.d.ts +9 -0
  500. package/dist/domains/workflow-contract/project-gitignore.d.ts.map +1 -0
  501. package/dist/domains/workflow-contract/project-gitignore.js +108 -0
  502. package/dist/domains/workflow-contract/project-gitignore.js.map +1 -0
  503. package/dist/platform/install/platforms.d.ts +3 -1
  504. package/dist/platform/install/platforms.d.ts.map +1 -1
  505. package/dist/platform/install/platforms.js +9 -0
  506. package/dist/platform/install/platforms.js.map +1 -1
  507. package/dist/platform/paths/git-worktree.d.ts +2 -1
  508. package/dist/platform/paths/git-worktree.d.ts.map +1 -1
  509. package/dist/platform/paths/git-worktree.js +14 -1
  510. package/dist/platform/paths/git-worktree.js.map +1 -1
  511. package/dist/platform/process/external-command.d.ts +13 -0
  512. package/dist/platform/process/external-command.d.ts.map +1 -0
  513. package/dist/platform/process/external-command.js +45 -0
  514. package/dist/platform/process/external-command.js.map +1 -0
  515. package/dist/platform/process/git.d.ts +12 -0
  516. package/dist/platform/process/git.d.ts.map +1 -0
  517. package/dist/platform/process/git.js +86 -0
  518. package/dist/platform/process/git.js.map +1 -0
  519. package/dist/platform/process/spawn-command.d.ts +8 -0
  520. package/dist/platform/process/spawn-command.d.ts.map +1 -0
  521. package/dist/platform/process/spawn-command.js +113 -0
  522. package/dist/platform/process/spawn-command.js.map +1 -0
  523. package/eval/local/tasks/comet-native-clarification/validation/test_native_clarification.py +9 -21
  524. package/eval/local/tasks/comet-native-clarification-depth/validation/test_native_clarification_depth.py +4 -7
  525. package/eval/local/tasks/comet-native-clarification-modes/validation/test_native_clarification_modes.py +4 -10
  526. package/eval/local/tasks/comet-native-interrupted-transition/instruction.md +1 -1
  527. package/eval/local/tasks/comet-native-interrupted-transition/validation/test_native_interrupted_transition.py +15 -16
  528. package/eval/local/tasks/comet-native-repository-fact/instruction.md +2 -2
  529. package/eval/local/tasks/comet-native-repository-fact/validation/test_native_repository_fact.py +8 -2
  530. package/eval/local/tasks/comet-native-wave-b-decision-resume/instruction.md +8 -4
  531. package/eval/local/tasks/comet-native-wave-b-decision-resume/task.toml +6 -6
  532. package/eval/local/tasks/comet-native-wave-b-decision-resume/validation/test_native_wave_b_decision_resume.py +126 -135
  533. package/eval/local/tasks/comet-native-wave-c-verification-integrity/instruction.md +6 -6
  534. package/eval/local/tasks/comet-native-wave-c-verification-integrity/task.toml +8 -8
  535. package/eval/local/tasks/comet-native-wave-c-verification-integrity/validation/test_native_wave_c_verification_integrity.py +97 -317
  536. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/instruction.md +7 -7
  537. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/task.toml +4 -4
  538. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/validation/test_native_wave_d_stagnation_stop.py +130 -199
  539. package/eval/local/tasks/comet-native-wave-e-parallel-safety/instruction.md +5 -5
  540. package/eval/local/tasks/comet-native-wave-e-parallel-safety/task.toml +8 -8
  541. package/eval/local/tasks/comet-native-wave-e-parallel-safety/validation/test_native_wave_e_parallel_safety.py +135 -239
  542. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/instruction.md +3 -3
  543. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/task.toml +6 -6
  544. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/validation/test_native_wave_f_dashboard_readonly.py +81 -439
  545. package/eval/local/tasks/comet-native-workflow/instruction.md +5 -4
  546. package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +145 -502
  547. package/eval/local/tasks/index.yaml +5 -5
  548. package/eval/local/tests/scaffold/test_native_aligned_eval.py +146 -35
  549. package/eval/local/tests/scaffold/test_native_wave_evaluations.py +75 -2054
  550. package/eval/local/tests/scaffold/test_tasks.py +38 -52
  551. package/eval/local/tests/tasks/test_tasks.py +3 -3
  552. package/eval/local/treatments/comet/comet_native_phase1.yaml +7 -4
  553. package/eval/scaffold/python/native_eval.py +10 -5
  554. package/eval/scaffold/python/validation/native_v4.py +249 -0
  555. package/eval/scaffold/python/validation/native_wave.py +4 -5
  556. package/eval/scaffold/python/validation/native_workflow.py +193 -97
  557. package/eval/scaffold/python/validation/rubric.py +114 -1
  558. package/package.json +8 -5
  559. package/assets/skills/comet-native/scripts/comet-native-check.mjs +0 -179
  560. package/assets/skills/comet-native/scripts/comet-native-checkpoint.mjs +0 -179
  561. package/assets/skills/comet-native/scripts/comet-native-evidence.mjs +0 -151
  562. package/assets/skills/comet-native/scripts/comet-native-receipt.mjs +0 -187
  563. package/dist/domains/comet-native/native-check-entry.d.ts +0 -2
  564. package/dist/domains/comet-native/native-check-entry.d.ts.map +0 -1
  565. package/dist/domains/comet-native/native-check-entry.js +0 -4
  566. package/dist/domains/comet-native/native-check-entry.js.map +0 -1
  567. package/dist/domains/comet-native/native-checkpoint-entry.d.ts +0 -2
  568. package/dist/domains/comet-native/native-checkpoint-entry.d.ts.map +0 -1
  569. package/dist/domains/comet-native/native-checkpoint-entry.js +0 -4
  570. package/dist/domains/comet-native/native-checkpoint-entry.js.map +0 -1
  571. package/dist/domains/comet-native/native-evidence-entry.d.ts +0 -2
  572. package/dist/domains/comet-native/native-evidence-entry.d.ts.map +0 -1
  573. package/dist/domains/comet-native/native-evidence-entry.js +0 -4
  574. package/dist/domains/comet-native/native-evidence-entry.js.map +0 -1
  575. package/dist/domains/comet-native/native-receipt-entry.d.ts +0 -2
  576. package/dist/domains/comet-native/native-receipt-entry.d.ts.map +0 -1
  577. package/dist/domains/comet-native/native-receipt-entry.js +0 -4
  578. package/dist/domains/comet-native/native-receipt-entry.js.map +0 -1
  579. package/dist/domains/dashboard/web/assets/channel-B_u-_i2t.js +0 -1
  580. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BpA7BPgX.js +0 -1
  581. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BpA7BPgX.js +0 -1
  582. package/dist/domains/dashboard/web/assets/demo-DZYPLZpF.js +0 -25
  583. package/dist/domains/dashboard/web/assets/index-Bk1o-4VO.css +0 -1
  584. package/dist/domains/dashboard/web/assets/index-g8vyW0R_.js +0 -257
  585. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-rKvBgr6I.js +0 -1
  586. /package/assets/skills/{comet → comet-classic}/reference/classic-layout.md +0 -0
  587. /package/assets/skills-zh/{comet → comet-classic}/reference/classic-layout.md +0 -0
@@ -1,219 +1,105 @@
1
1
  ---
2
2
  name: comet-native
3
- description: Use when the user explicitly invokes /comet-native, asks to start or resume a Native change, or the entry router selects Native; clarify requirements, read state, and drive Shape → Build → Verify → Archive.
3
+ description: "Comet Native workflow. Use when the user explicitly invokes /comet-native, asks to start or resume a Native change, or the entry router selects Native."
4
4
  ---
5
5
 
6
6
  # Comet Native
7
7
 
8
- Native stores requirements, complete target specifications, state, and evidence. You understand, implement, and verify; the Runtime owns state, boundaries, and recovery.
8
+ Native stores the requirements, complete target specifications, current progress, and verification conclusions in the project. After completing each phase, return to the Runtime for the next action and handle only the phase it specifies.
9
9
 
10
- ## Core rules
10
+ ## Inviolable boundaries
11
11
 
12
- Read these values from `.comet/config.yaml`:
13
-
14
- - `native.clarification_mode`: defaults to `sequential`;
15
- - `native.archive_confirmation`: defaults to `automatic`;
16
- - `native.max_verify_failures`: defaults to `5`.
17
-
18
- Config, selection, change state, and formal artifacts on disk take precedence over chat memory. Do not directly edit Runtime-managed state, evidence, locks, or transaction files.
19
-
20
- The Native main workflow does not depend on any external Skill.
21
-
22
- ## CLI bootstrap
23
-
24
- The Native Skill uses only the public `comet native <cmd>` CLI on PATH. Packaged command bundles are internal installation and Runtime assets; the Skill does not search for or invoke them directly. If a 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, enumerate platform directories, or invoke an internal bundle directly.
25
-
26
- Common commands:
27
-
28
- ```bash
29
- comet native status [--json]
30
- comet native show <change-name>
31
- comet native select <change-name>
32
- comet native new <change-name> [--language en|zh-CN] [--isolation current|branch|worktree]
33
- comet native next <change-name> --summary <text> [--confirmed]
34
- comet native archive <change-name> --dry-run
35
- ```
12
+ - The on-disk `.comet/config.yaml`, current change, `comet-state.yaml`, and formal Markdown are the working source; chat memory is only supplementary.
13
+ - The Runtime manages workflow state, local tasks, logs, locks, and transactions. Advance every phase through the public `comet native` commands on PATH.
14
+ - If a command is unavailable, report an incomplete Comet installation and stop. Treat `comet native <command> --help` as authoritative for arguments and output.
15
+ - The Builder submits a candidate. A fresh read-only Verifier subagent or separate Agent task makes the verification judgment.
16
+ - This Skill and the Runtime complete the Native workflow; Native does not depend on any external Skill.
36
17
 
37
18
  ## Start or resume
38
19
 
39
- 1. In a Git project, first read the current branch and `git worktree list --porcelain`. Run read-only `comet native status --project-root <path> --json` for every safely accessible working directory. This is default discovery; do not wait for the user to say “parallel.”
40
- 2. Run `comet native status` in the current working directory and combine it with the other working-directory results to identify the target change, its owning working directory, and phase. If a matching active change exists, resume in that working directory instead of creating another one.
41
- 3. Run `comet native show <change-name>` for the target. In Verify, Archive, or Build after a failure, also run the status command with `--details`.
42
- 4. When more acceptance items are needed, follow `acceptancePage.nextCursor`. If findings are truncated, handle the returned findings and then read details again.
43
- 5. Enter the target's actual working directory and run `comet native select <change-name>`. Do not require the user to run `cd` manually.
44
-
45
- If multiple reasonable candidates remain, ask the user to select one. Create a change only after confirming that no matching active change exists in any discovered working directory, then follow the workspace protocol below.
46
-
47
- Use only the Native artifact root selected by project configuration.
48
-
49
- ## Workspace protocol for a new change
50
-
51
- The parallelism unit is a change: separate changes may progress concurrently in separate working directories. One change is writable only from its bound working directory and current execution context; Native does not create a long-lived session lease.
52
-
53
- Before creation, inspect the current branch, uncommitted changes, active Native changes in the current directory, and registered Git worktrees. Keep three workspace modes:
54
-
55
- - `current`: keep the current branch and directory;
56
- - `branch`: create and switch to a change branch in the current directory;
57
- - `worktree`: create a separate change branch and Git working directory, then continue there.
58
-
59
- Selection rules:
60
-
61
- - When the current directory is clean and no discovered working directory has another active change, default directly to `current`; do not ask whether the user wants “parallel” work.
62
- - When uncommitted changes or other facts make isolation materially affect the user's directory, present one joint `current / branch / worktree` choice with the recommendation, branch, and working-directory path. Do not split it into a separate “parallel?” question.
63
- - When another active Native change owns the current directory, disclose that `current` and `branch` are unavailable because of baseline-drift risk, then use the only safe `worktree` mode. Active changes already in other worktrees do not disable `current` or `branch` here.
64
- - In the same choice, the user may override the default branch `comet/<change-name>` and directory `.worktrees/<change-name>`. On a path or branch collision, stop; do not add a random suffix or take over a directory that is not already legally bound to this change.
65
-
66
- Prepare `branch` or `worktree` before running `new` and before the baseline is captured. The target branch defaults to the starting branch at the moment the branch or worktree is created:
67
-
68
- ```text
69
- # current
70
- comet native new <change-name> --language en --isolation current
71
-
72
- # branch: create and switch branches first
73
- comet native new <change-name> --language en \
74
- --isolation branch --change-branch comet/<change-name> --target-branch <starting-branch>
75
-
76
- # worktree: create and enter .worktrees/<change-name> first
77
- comet native new <change-name> --language en \
78
- --isolation worktree --change-branch comet/<change-name> --target-branch <starting-branch>
79
- ```
20
+ 1. When the change name is known, run `comet native status <change-name> --details --json` directly. Only run `comet native status --json` when the name is unknown, then query the selected change in detail.
21
+ 2. Run pagination commands from `nextPageArgs` only when the current phase needs the complete acceptance list. Run `show` or read the corresponding brief/Spec only when editing or checking formal content.
22
+ 3. When an active change already exists, enter the returned `workspace.projectRoot` and run `select`. Ask the user only when multiple reasonable candidates remain.
23
+ 4. Create a change only when no matching active change exists, using the artifact directory from configuration.
80
24
 
81
- Before creating a worktree, add `.worktrees/` to the repository-local Git exclude in the Git common directory's `info/exclude`; do not modify tracked `.gitignore` for this. The Agent continues automatically in the new working directory instead of handing navigation to the user.
25
+ ### Create a change
82
26
 
83
- Create the worktree from the resolved commit of a verified local target branch. If the source directory has uncommitted content, attribute it first: leave work proven unrelated to the new change in place; if content may belong to the new change and cannot enter through that commit, wait for the user to decide how to preserve it rather than silently committing, copying, or omitting it. The target directory must receive consistent configuration from the target branch or establish legal configuration through public `comet native init`, then verify artifact-root, language, clarification, archive, verify, and snapshot semantics. Stop when consistency cannot be proven. Never copy the source `.comet/current-change.json`.
27
+ Choose a lowercase kebab-case name, then use the [workspace selection reference](reference/workspace.md) to decide whether to use the current directory, create a branch, or create a worktree.
84
28
 
85
- After the target configuration is ready and before running `new`, the Agent must run these commands in the new working directory:
29
+ The CLI binds the branch or worktree, maintains repository-local exclusions, validates configuration, and creates state that can be resumed across devices. Then enter the returned `preparation.projectRoot`.
86
30
 
87
- ```bash
88
- comet doctor --repair --scope project
89
- comet doctor --scope project --json
90
- ```
31
+ If preparation does not finish, keep the resources already created, show the failure reason from `preparation`, and continue with the recovery direction from the Runtime or user.
91
32
 
92
- Continue only when Doctor confirms that the Hook runtime is current, the platform has exactly one Router rooted in the target project, and no legacy or duplicate Comet Hook remains. The Agent runs these commands in the new working directory without asking the user to enter it manually, and never copies `.comet/current-change.json` from the source directory. If the target branch did not provide project configuration, first use the public `comet native init` command to establish the source project's verified semantics, then run the Doctor sequence above.
33
+ ## Read on demand
93
34
 
94
- If worktree creation completes only some steps, stop immediately and report the original error, target branch and path, every branch/worktree/exclude/config/change resource known to have been created, and the recoverable next action. Clean up only resources proven to be newly created by this operation and safe to remove. Preserve the scene when ownership is uncertain; never remove an existing or possibly user-owned worktree, branch, or file.
35
+ After confirming the phase, read only the needed reference:
95
36
 
96
- Runtime rechecks for a newly active change inside the same mutation lock used by `new`. If a system-default `current` loses this race and returns `workspace-isolation-required`, automatically prepare the default worktree and retry there. If an explicit user choice becomes invalid before execution, stop and reconfirm rather than silently changing modes.
97
-
98
- Existing active changes without a workspace v3 binding remain compatible: do not generate worktrees, move files, or refresh their baselines automatically. Continue selecting only one change at a time in a shared legacy directory. Only real baseline or scope drift fails closed and requires the user to decide whether to recover, recreate, or abandon the change.
99
-
100
- ## On-demand loading
101
-
102
- After confirming the current change and phase, read one corresponding reference on demand:
103
-
104
- - When entering Shape, you must first read and execute the [clarification reference](reference/clarification.md). Do not skip it because “the requirements look clear.” Do not modify project implementation or advance to Build until shared understanding is confirmed.
105
- - If you need advanced options, receipts, or partial-scope commands, read the [command reference](reference/commands.md).
106
- - If you need to edit the brief, specifications, or verification report, read the [artifact reference](reference/artifacts.md).
107
- - If interruption, stale evidence, a repair stop, conflict, lock, or migration occurs, read the [recovery reference](reference/recovery.md).
37
+ - Shape: always read and execute the [clarification reference](reference/clarification.md).
38
+ - Read the [artifact reference](reference/artifacts.md) when editing the brief or complete target specifications, or when reviewing the verification report.
39
+ - During normal progression, execute the command returned in Runtime `continuation`. Read the [command reference](reference/commands.md) only when a returned field is unclear, command input is rejected, the Verifier cannot be started, Verifier execution fails, or the Verifier needs user-provided information.
40
+ - Read the [recovery reference](reference/recovery.md) only when the task cannot continue because of an interrupted process, missing local Runtime state after moving devices, repeated lack of progress, a concurrency conflict, failed legacy migration, or damaged state.
108
41
 
109
42
  ## Shape
110
43
 
111
- First investigate facts available from the repository, tools, and runtime environment. Ask the user only when different choices would materially change user-visible results and the existing requirements do not resolve the choice reliably. You own implementation choices.
112
-
113
- Follow the clarification reference according to `clarification_mode`. Even when the initial assessment finds no unresolved behavior, complete its information classification and silent-assumption check. After every user answer, immediately update Decisions, the brief, and the complete target specifications in the same change. Keep unresolved items `[blocking]`; do not modify project implementation or advance while a blocker remains.
44
+ First investigate facts that can be determined from the repository, tools, and runtime environment. Independent fact-finding may be delegated to subagents. Follow `native.clarification_mode` and the clarification reference to maintain a decision tree. Ask the user only for choices that change the visible result and cannot be inferred reliably.
114
45
 
115
- After all user decisions are resolved, check again for silent assumptions. Give the user a shared-understanding summary covering the goal, scope, key decisions, acceptance criteria, and non-goals. Only after explicit confirmation may you remove the final blocker and advance:
46
+ Immediately synchronize confirmed user-visible decisions and important constraints into Decisions, the brief, and complete target specifications. Keep ordinary implementation choices in the implementation and tests unless they affect visible behavior. Acceptance items must be specific, observable, and non-duplicative.
116
47
 
117
- ```text
118
- comet native next <change-name> --summary <summary> --confirmed
119
- ```
48
+ Keep unresolved questions `[blocking]`; do not modify implementation while a blocker remains. Completion criterion: every choice that affects the visible result and every unstated assumption has been handled, no `[blocking]` item remains, the user has explicitly confirmed the outcome, scope, key decisions, acceptance items, and non-goals, and the Runtime has entered Build. Advance with the continuation containing `--confirmed` only after explicit user confirmation.
120
49
 
121
- If the brief or specifications change confirmed behavior, obtain confirmation again. Do not edit confirmation state manually.
50
+ ## Build ↔ Verify Loop
122
51
 
123
- ## Build
52
+ Build and Verify form a bounded acceptance Loop: the Builder submits a candidate, the Runtime runs the necessary checks, and a fresh read-only Verifier evaluates it. If verification does not pass, return to Build, make the changes, and submit the next candidate. When every item passes, enter Archive.
124
53
 
125
- Implement the simplest reliable solution that satisfies the brief and complete target specifications. Work may proceed in batches. Long tasks may use a checkpoint for recovery context, but a checkpoint is not completion evidence.
54
+ `iteration` is the implementation-candidate round. `attempt` is the number of times a Verifier has been started for the same candidate. Repeated failures, no meaningful progress, or repeated Verifier execution errors cause the Runtime to enter an await-user or blocked state at its configured budget. The Runtime updates all counters; the Agent follows only the latest `continuation`.
126
55
 
127
- When requirements change, update the formal artifacts first. If a new user decision appears, stay in Build but repeat the Shape clarification and confirmation boundary: save a `[blocking]` item, pause implementation, and ask the user. After confirmation, update Decisions, the brief, and the complete target specifications, then remove the blocker. When leaving Build, run the command returned by the Runtime and pass `--confirmed`.
56
+ ## Build
128
57
 
129
- After the candidate implementation is complete, review it against the complete specifications and every acceptance item for omissions, then advance with real project artifacts:
58
+ For the first implementation, read the current brief, complete target specifications, and all acceptance items. When Verify returns to Build, first address the failed items, blocked verification issues, and failed checks reported by the Verifier. Before submitting again, recheck the complete specifications and all acceptance items so that fixing the reported issue does not hide other omissions.
130
59
 
131
- ```text
132
- comet native next <change-name> \
133
- --summary <summary> \
134
- --artifact <project-path> \
135
- [--confirmed]
136
- ```
60
+ When requirements change, classify them first:
137
61
 
138
- If no code changed or the Runtime cannot prove complete scope, read the command reference. Never describe unknown or incomplete scope as complete.
62
+ - The current requirement was implemented incompletely: use `--return-to-build` from Verify or Archive to return to Build.
63
+ - User-visible behavior or acceptance criteria changed: return to Shape, update the formal artifacts, and reconfirm.
64
+ - The request is unrelated to the current requirement: keep it for another change.
139
65
 
140
- ## Completion Loop
66
+ Apply the same rule when the user explicitly adds to the current scope.
141
67
 
142
- After entering Build, converge through this loop:
68
+ When the candidate is ready, use the input template in Runtime `continuation` to submit a concise Builder handoff: what changed in this round, which acceptance items were addressed, which development-time checks were or were not actually run, and any known limitations.
143
69
 
144
- 1. Run `comet native status <change-name> --details` and read the currently required acceptance pages. After a Verify failure, prioritize failed or missing acceptance items and failed checks.
145
- 2. Complete one related batch of real repairs. You may write a checkpoint before interruption, but a checkpoint is not completion evidence.
146
- 3. When a candidate implementation exists, reread the brief, complete specifications, and every acceptance item, then perform one complete review.
147
- 4. Run real validation and submit the Verify result.
148
- 5. `fail` returns to Build and repeats from step 1 without running Archive; only `pass` enters Archive.
70
+ The handoff is stored in `comet-state.yaml`; it does not create a separate file and does not mean verification passed. The Runtime gives it to the Verifier, and the Builder submits it once.
149
71
 
150
- `blocked` pauses the normal Build → Verify loop and enters a recovery branch. After handling the findings, resume from step 1 according to the new continuation. End the current work only at `done`, `await-user`, or an explicit caller stop point. One Agent turn, one checkpoint, one `blocked` result, or the Agent saying “complete” is not a terminal state. The Agent finds and repairs gaps; the Runtime decides whether completion has been proven.
72
+ Completion criterion: the implementation and relevant checks are ready for verification, the complete acceptance list has been rechecked, and the Runtime accepts the handoff and enters Verify.
151
73
 
152
74
  ## Verify
153
75
 
154
- Run real validation based on the acceptance items, complete target specifications, and change risk. Record actual results in `verification.md` and the acceptance evidence. A check that did not run or failed cannot be reported as passed.
76
+ When the Runtime requests `dispatch-verifier`, first fill `inputOptions.template` with the tests and check commands needed for the current candidate, then let the Runtime execute them. The Runtime reuses completed checks. Follow the latest `continuation` for any retry or additional check.
155
77
 
156
- Use acceptance IDs and receipts returned by the Runtime. Read the artifact and command references when you need to generate the evidence block or record an automated or manual receipt.
78
+ After the Runtime returns `verifierDispatch`, immediately start a fresh read-only Verifier subagent. If the platform does not support subagents, start a new Agent task separate from the Builder session.
157
79
 
158
- Submit `pass` only when the Runtime accepts the complete, fresh acceptance matrix and required checks. Reverify after relevant implementation, specification, report, or evidence changes.
80
+ The Verifier first reads the acceptance items, brief, complete target Specs, actual implementation, and Runtime check results. It reads the Builder handoff last, as an investigation lead, so the verification judgment remains independent.
159
81
 
160
- When submitting Verify, pass only `--result` and `--report`; `next` does not accept `--receipt` or caller-supplied required-check arguments. The Runtime validates the report format, complete acceptance matrix, and acceptance receipts before it runs or reuses the built-in required check for the current scope. If the report is invalid, fix it before retrying instead of submitting the same `next` command repeatedly.
82
+ The Verifier remains read-only. If existing checks are insufficient, list the additional checks in the `inputOptions.template` returned by the Runtime. The Runtime executes them and returns the results to the Verifier.
161
83
 
162
- `fail` returns to Build. Fix the failed or missing acceptance items and failed checks reported by the Runtime before verifying again; another `next` call is not itself a repair. For `repair-stagnation-stop`, follow the recovery reference to form a new hypothesis and use the Runtime-provided override. Wait for the user only when the continuation requires `repair-continuation-decision`.
84
+ The Verifier must finally mark every acceptance item exactly once as `passed`, `failed`, or `blocked`. For a failed or blocked item, provide a reason that the next Build round can act on directly. If the Verifier cannot be started, execution fails, or external information is missing, follow the command reference and the latest `continuation`.
163
85
 
164
- An intermediate Verify failure never runs Archive or triggers archive confirmation. Continue Build → Verify until pass, a Runtime block, or a required user decision.
86
+ Completion criterion: the Runtime has accepted the complete Verifier result and has explicitly entered one of Build, Archive, `await-user`, `blocked`, or `done`.
165
87
 
166
88
  ## Archive
167
89
 
168
- Prepare Archive only after the final Verify pass. First read the change's workspace binding; treat legacy workspace metadata as `current` for compatibility.
169
-
170
- `current` continues to use `native.archive_confirmation` without a separate branch-finishing question. Before Archive, `branch` or `worktree` requires one joint choice:
171
-
172
- 1. archive and merge locally into the bound target branch;
173
- 2. archive and push the change branch;
174
- 3. archive, push, and open a PR;
175
- 4. archive and keep the current branch/working directory;
176
- 5. do not archive yet.
177
-
178
- Show the exact change branch, target branch, and working directory. Recommend one option based on whether the target branch is locally available and its working directory is clean. Execute external Git actions only after the user chooses; preserve the scene and stop on “do not archive.”
179
-
180
- Then preview:
181
-
182
- ```text
183
- # current
184
- comet native archive <change-name> --dry-run
185
-
186
- # branch / worktree: persist the joint choice in formal workspace metadata
187
- comet native archive <change-name> --dry-run --finish merge|push|pull-request|keep
188
- ```
189
-
190
- After a successful preview:
191
-
192
- - `automatic`: run the exact commit command returned by the continuation;
193
- - `required`: show the implementation, verification, and specification-operation summary, then wait for the user to archive now or keep the change active.
194
-
195
- Do not reuse an old preflight. If facts drift or a canonical conflict or unfinished transaction appears, follow the continuation and the recovery reference.
196
-
197
- The returned `workspaceFinish` must match the user's choice. Later sessions recover that decision from formal workspace metadata without another routine prompt. After Archive succeeds, stage and commit only confirmed implementation, specification, and Archive paths owned by this change; exclude unrelated user work. The preceding joint choice authorizes this one exact stage/commit and the selected finishing action:
198
-
199
- - Local merge: merge the change branch in the bound target branch's working directory and run post-merge validation proportional to the change risk. On success, remove the clean change worktree and the merged local branch. Preserve both on any failure.
200
- - Push: push the change branch. On success, a clean change worktree may be removed, but retain the local and remote branches.
201
- - Push and PR: after pushing, create the PR with the workspace's persisted `targetBranch` as its base instead of inferring the repository default branch, then apply the push cleanup. Native does not continuously monitor the PR.
202
- - Keep: retain the branch and working directory after committing; do not merge or push.
203
-
204
- Archive multiple changes independently. Only local merges that update the same target ref must be serialized. Resolve a conflict automatically only when the resolution mechanically preserves both confirmed contracts, then revalidate. Abort any semantic conflict and ask whether to create a separate integration change; never silently overwrite either side.
90
+ Continue only when `continuation` permits Archive. Archive uses the accepted verification result directly. When a `branch` or `worktree` needs a finish decision, show the actual change branch, target branch, and directory together, then let the user choose merge, push, create a PR, keep the workspace, or defer Archive.
205
91
 
206
- ## Continuation and stop points
92
+ Commit only the implementation and formal artifacts that belong to the current change, preserving other user changes. Execute the returned `commandArgs`, then inspect `workspaceFinishResult`. If it is `blocked`, preserve the workspace and run the recovery command in `recoveryArgs`.
207
93
 
208
- Shape, Build, and Verify transitions return `next: auto | manual` together with `continuation.disposition: continue | await-user | blocked | done`, required inputs, and the next action. Archive does not advance through `next`; a successful archive returns `done`. After every transition, act on that Runtime continuation:
94
+ Completion criterion: state is `done`, and the user-authorized workspace finish result is `completed` or `kept`. Follow `continuation` for any other result.
209
95
 
210
- - `continue`: reread the phase and currently required artifacts, then continue;
211
- - `await-user`: wait for a decision or missing input that genuinely requires the user;
212
- - `blocked`: pause the normal loop, handle the findings, and read the recovery reference when needed; then resume according to the new continuation rather than ending the task because it was `blocked`;
213
- - `done`: the change is complete.
96
+ ## Follow-up actions
214
97
 
215
- `next: auto` means only that the current transition succeeded; later work has not run automatically. If the caller explicitly requests a stop after a transition, update the formal artifacts, run the one allowed transition, make no tool calls after the transition succeeds, then output the agreed marker and end the turn, even when the continuation is `continue`.
98
+ After every command, handle only the latest `continuation`:
216
99
 
217
- For legacy metadata, `workspace-root-changed` and `workspace-inspection-unavailable` are read-only advisories and do not block progression or Archive by themselves. `workspace-binding-root-changed`, `workspace-branch-changed`, `workspace-kind-changed`, and `workspace-vcs-unavailable` mean a new binding is invalid; return to the bound working directory and branch or stop for recovery. Other unknown workspace-integrity findings, confirmed conflicts, stale evidence, and repair stops must also be resolved. When the Runtime requires workspace identity repair, run read-only doctor and then follow its explicit `doctor --repair` report.
100
+ - `continue`: execute `commandArgs` and fill `inputOptions` from its template.
101
+ - `await-user`: wait for the listed user decision.
102
+ - `blocked`: resolve the listed blocker or recovery action first.
103
+ - `done`: finish.
218
104
 
219
- Never place tokens, passwords, private keys, connection strings, or other credentials in summaries, reasons, reports, or artifacts.
105
+ After a state-changing command, query the change details again and confirm the current phase, acceptance Loop, state version, and working directory. Run `show` only when formal content is needed.
@@ -0,0 +1,3 @@
1
+ interface:
2
+ display_name: "Comet Native"
3
+ short_description: "Comet Native workflow"
@@ -1,54 +1,34 @@
1
- # Native Artifact Reference
1
+ # Native artifact reference
2
2
 
3
- Read this file only when editing the brief, complete target specifications, verification report, or acceptance evidence.
3
+ Read this file only when editing the brief or complete target specifications, or reviewing a Runtime-generated verification report.
4
4
 
5
- ## Artifact boundary
5
+ ## Editing boundaries
6
6
 
7
- The Agent primarily edits:
7
+ Each active change directory contains only user-readable formal artifacts that can be synchronized through Git:
8
8
 
9
9
  ```text
10
10
  <artifact-root>/comet/changes/<change-name>/
11
+ comet-state.yaml
11
12
  brief.md
12
13
  specs/<capability>/spec.md
13
14
  verification.md
14
15
  ```
15
16
 
16
- Project configuration, the current change, change state, and `runtime/workspace.json` are read inputs. Do not manually change Runtime-managed phase, confirmation, specification operations, workspace bindings, scope, evidence, checkpoints, locks, or transaction fields.
17
+ The Agent edits only the brief and complete target specifications. The Runtime manages `comet-state.yaml` and `verification.md`, generating the report after it first accepts a Verifier result.
17
18
 
18
- For a new change, `comet.native.workspace.v3` records `isolation`, `changeBranch`, `targetBranch`, the finishing choice persisted by `--finish` before Archive, and physical directory identity. It supports cross-session recovery and write protection; it is not a session lease. Legacy v1/v2 metadata remains compatible and must not be manually migrated merely to enable isolation.
19
+ Local Runtime data always lives under the Git-ignored `.comet/runtime/native/`. Each active change keeps local state and logs under `changes/<change-name>/state.json` and `logs/`; project-level locks and short-lived transactions also live in this Runtime directory. Always let the Runtime create, migrate, and repair these machine files.
19
20
 
20
- The Native artifact root is selected only by `.comet/config.yaml`. Do not scan another workflow's directories or create a second state root.
21
+ ## Portable state and report
21
22
 
22
- ## Scope snapshot boundaries
23
+ `comet-state.yaml` is the only trusted workflow state for cross-device recovery. It records the current phase, status, version, acceptance Loop counters, verification result, Builder handoff, blockers, next action, check summaries, and compact history. Local processes, absolute paths, and full command output remain only in the local Runtime. The Runtime updates this file.
23
24
 
24
- Git snapshots contain tracked and non-ignored untracked files, with each submodule/gitlink treated atomically. Non-Git projects use a bounded physical-tree snapshot.
25
+ `verification.md` is a readable report generated by the Runtime from the same YAML version. If the report is missing or behind, the Runtime rebuilds only the report; it does not rerun checks or a Verifier for that reason. Workflow progress always comes from YAML and cannot be advanced by editing the Markdown report.
25
26
 
26
- - `git-selection-changed`: wait until Git writes are stable, then retry. It cannot be authorized as partial scope.
27
- - `physical-selection-changed` or `physical-enumeration-limit`: wait for a stable filesystem or reduce the project tree, then retry. Neither can be authorized as partial scope.
28
- - When scope details exceed the budget, the Runtime reports a `scope-detail-overflow` count and content hash instead of guessing omitted paths. Do not edit evidence or treat an incomplete snapshot as complete.
29
-
30
- ## Project configuration
31
-
32
- Configuration that directly affects Agent behavior:
33
-
34
- ```yaml
35
- native:
36
- artifact_root: docs
37
- language: en
38
- clarification_mode: sequential
39
- archive_confirmation: automatic
40
- max_verify_failures: 5
41
- ```
42
-
43
- - `clarification_mode`: `sequential` or `batch`.
44
- - `archive_confirmation`: `automatic` or `required`.
45
- - `max_verify_failures`: total Verify-fail submissions allowed for one confirmed contract.
46
-
47
- Missing fields default to `sequential`, `automatic`, and `5`. Configuration changes do not keep old evidence fresh or clear existing blockers automatically.
27
+ `.comet/config.yaml` selects the workflow and the artifact directory for changes. Synchronize this file when using a non-default artifact directory that must be resumed across devices. Keep every other `.comet/*` path local.
48
28
 
49
29
  ## Brief
50
30
 
51
- `brief.md` uses these level-one headings:
31
+ `brief.md` uses these non-empty level-one headings:
52
32
 
53
33
  ```text
54
34
  # Outcome
@@ -61,76 +41,30 @@ Missing fields default to `sequential`, `automatic`, and `5`. Configuration chan
61
41
  # Verification expectations
62
42
  ```
63
43
 
64
- Outcome, Scope, Non-goals, and Acceptance examples must contain substantive content.
65
-
66
- Blocking items in Open questions use these fixed forms:
44
+ Use these forms in Open questions only for real unresolved user questions:
67
45
 
68
46
  ```text
69
47
  - [blocking] <current Sequential question>
70
- - [blocking] Q1: <question>
48
+ - [blocking] Q1: <Batch question>
71
49
  - [blocking] CONFIRM: <final shared understanding>
72
50
  ```
73
51
 
74
- Keep unanswered or ambiguous questions. After the user confirms a decision, write it into Decisions and the complete target specifications before removing its blocker. Do not preserve hidden reasoning.
75
-
76
- ## Complete target specifications
52
+ As soon as a decision is confirmed, write it into Decisions and the complete target specifications, then remove the corresponding blocker. Formal artifacts record conclusions and reasons, not hidden model reasoning.
77
53
 
78
- Write specifications at:
54
+ Acceptance criteria must be specific, observable, and non-duplicative. Use simple sequential IDs such as `A1`, `A2`, and `A3`. IDs map results only; they are not derived from content and do not identify files. On Shape confirmation, the Runtime saves the full acceptance text and its source.
79
55
 
80
- ```text
81
- changes/<change-name>/specs/<capability>/spec.md
82
- ```
56
+ ## Complete target specifications
83
57
 
84
- Each file describes the complete capability behavior after Archive, not an incremental patch against old text.
58
+ Each `specs/<capability>/spec.md` describes the complete capability behavior after Archive, rather than only the difference from older text:
85
59
 
86
60
  - New capability: write the complete specification.
87
- - Existing capability: write the complete replacement specification.
88
- - Removed capability: run `comet native spec remove`; do not only delete the file.
61
+ - Existing capability: write the complete updated specification.
62
+ - Removed capability: use CLI `spec remove`; do not only delete the file.
89
63
 
90
- The Runtime records create, replace, remove, and the canonical baseline. On a canonical conflict, reread and rewrite the complete target specification before using `spec rebase`. Do not edit Runtime state or hashes manually.
64
+ If an archived canonical Spec changes in a way that conflicts with the current change, reread the latest Spec, rewrite the current change's complete target specification according to user intent, then execute the Runtime-provided rebase action. The Runtime continues to own Spec operation type and workflow state.
91
65
 
92
66
  ## Verification
93
67
 
94
- `verification.md` uses these non-empty level-one headings:
95
-
96
- ```text
97
- # Acceptance evidence
98
- # Commands and results
99
- # Skipped checks
100
- # Spec consistency
101
- # Known limitations and risks
102
- # Conclusion
103
- ```
104
-
105
- Record real commands, results, and reviewable facts. Put checks that did not run under Skipped checks. A failing result cannot be reported as pass.
106
-
107
- ## Acceptance evidence
108
-
109
- Use acceptance IDs returned by the Runtime; do not calculate them. Prepare the entries array, then run:
110
-
111
- ```text
112
- comet native evidence format [--entries <path>]
113
- ```
114
-
115
- Place the command output unchanged under `# Acceptance evidence`. The basic input shape is:
116
-
117
- ```json
118
- [
119
- {
120
- "acceptance_id": "acceptance-<sha256>",
121
- "status": "passed",
122
- "evidence_refs": ["runtime/evidence/receipts/<sha256>.json"]
123
- },
124
- {
125
- "acceptance_id": "acceptance-<sha256>",
126
- "status": "failed",
127
- "evidence_refs": [],
128
- "skipped_reason": "actual failure or incomplete reason"
129
- }
130
- ]
131
- ```
132
-
133
- - `passed` references a currently valid typed receipt.
134
- - `failed` states the actual failure or skipped reason.
68
+ The report shows the outcome and reason for every acceptance item, redacted command previews and states for checks that actually ran, blockers, risks, and compact acceptance Loop history. Full command output remains in local logs.
135
69
 
136
- Do not hand-format the machine block, reuse an evidence ref from another change, or report failed, skipped, or blocked results as passed.
70
+ The Runtime generates the verification conclusion from YAML. Failed, blocked, not-run, or timed-out items retain their state. The final result is pass only when every acceptance item for the current candidate has a conclusion and every necessary check succeeds.
@@ -1,54 +1,79 @@
1
- # Native Clarification Reference
1
+ # Native clarification reference
2
2
 
3
3
  You must read this file after entering Shape. Do not modify project implementation or advance to Build until problem classification, the silent-assumption check, and shared-understanding confirmation are complete.
4
4
 
5
5
  ## Whether to ask
6
6
 
7
- Separate information into three categories:
7
+ First separate three kinds of information:
8
8
 
9
- - **Investigable fact**: repository state, tool capability, dependency defaults, and runtime environment. The Agent investigates it.
10
- - **User decision**: alternatives materially change output, defaults, failure behavior, scope, or irreversible effects. The user confirms it.
11
- - **Implementation choice**: algorithm, structure, or working method that does not change user-visible results. The Agent decides it.
9
+ - **Investigable fact**: repository state, tool capabilities, dependency defaults, and runtime environment. The Agent investigates these; independent fact-finding can be delegated to subagents.
10
+ - **User decision**: choices that materially change output, default behavior, failure results, scope, or irreversible impact. The user confirms these.
11
+ - **Implementation choice**: algorithms, structures, and working methods that do not change the visible result. The Agent decides these.
12
12
 
13
- Ask only when ambiguity would materially change user-visible results and cannot be resolved reliably from the user's request, formal specifications, or an applicable contract. Do not invent questions to cover a checklist or send implementation choices to the user.
13
+ Ask the user only when ambiguity materially changes the visible result and cannot be determined reliably from the request, formal specifications, or project rules. Questions must come from real divergence; the Agent decides ordinary implementation details directly.
14
14
 
15
- Rewrite ambiguous behavior as comparable “input → output” or “trigger → result” cases. Each question includes:
15
+ Rewrite ambiguous behavior into comparable “input → output” or “trigger → result” form. Every question should contain:
16
16
 
17
- - Question: the user-visible difference to decide;
18
- - Recommendation: the preferred option and why;
19
- - Impact: the practical result of each option.
17
+ - Question: the user-visible difference to decide.
18
+ - Recommendation: the preferred option and reason.
19
+ - Impact: the actual result of each option.
20
20
 
21
- ## Sequential
21
+ ## How to ask the user
22
22
 
23
- 1. Investigate facts required by the current question.
24
- 2. Find the most upstream unresolved question whose prerequisites are settled.
23
+ Pause at a user decision point and wait for an explicit choice. If only one valid option exists, explain why and adopt it directly. Use a text question for open-ended questions or when the options cannot be listed accurately.
24
+
25
+ When two or more clear, mutually exclusive, executable options exist and the platform provides `AskUserQuestion`, prefer a structured question:
26
+
27
+ - Sequential mode submits one single-choice or multiple-choice question at a time.
28
+ - Batch mode submits the complete current question set in one request. If the tool cannot hold the complete set, ask the entire batch as text instead of splitting the round because of tool limits.
29
+ - Give every option a short label and its actual impact. Put the recommended option first and explain why; a recommendation does not replace user confirmation.
30
+ - After a successful tool call, wait for the answer without printing a duplicate text option list.
31
+ - If the tool is unavailable or the call fails, use text questions for the rest of this session instead of retrying the same tool repeatedly.
32
+
33
+ For a text question, state whether it is single-choice or multiple-choice, number the options, recommendation, and impact, ask the user to reply with a number, then pause.
34
+
35
+ ## Decision tree and fact-finding
36
+
37
+ Before asking the first user question, create and continuously maintain a decision tree. Include only user decisions that materially change the visible result. Treat investigable facts as prerequisites and ordinary implementation choices as Agent-owned.
38
+
39
+ For every decision node, record at least what must be decided, which decision it depends on, which facts must be investigated first, and whether it is waiting, askable, or resolved. A node becomes askable only after its prerequisite decisions and facts are known. Questions in the same round must be independent.
40
+
41
+ The decision tree exists only in the Agent's working process and creates no new Runtime file or state field. Write only actual unresolved user questions into the brief as existing `[blocking]` lines. After every user answer or fact-finding conclusion, immediately update affected nodes and later branches, then recompute which nodes are askable.
42
+
43
+ When a fact is still unknown, pause only the dependent node and its later branches; continue handling unrelated questions. If no node is currently askable, continue investigating pending facts and check for omitted branches.
44
+
45
+ ## Sequential mode
46
+
47
+ 1. Investigate the facts required by the decision tree and isolate branches still waiting on facts.
48
+ 2. Choose one currently askable node. If several exist, prefer the question that affects more later choices or has greater impact on the visible result.
25
49
  3. Save one `- [blocking] <question>` in the brief.
26
- 4. Ask only that question and wait for the answer.
27
- 5. After the answer, immediately update Decisions, the brief, and the complete target specifications, then inspect the remaining questions.
50
+ 4. Ask exactly one currently askable node and wait for the answer. Ask the next user decision in a later round.
51
+ 5. After the user answers, immediately update Decisions, the brief, and complete target specifications.
52
+ 6. Update the decision tree, recompute askable nodes, and begin the next round.
28
53
 
29
- Keep ambiguous, partial, or unanswered content `[blocking]`. An answer decides only the behavior it covers explicitly.
54
+ Ambiguous, partial, or unanswered content remains `[blocking]`. An answer decides only the behavior it explicitly covers.
30
55
 
31
- ## Batch
56
+ ## Batch mode
32
57
 
33
- Each round contains only questions whose prerequisite decisions and environmental facts are settled and whose answers do not depend on one another:
58
+ In each round, find the complete set of decision-tree questions that can be asked together: their prerequisite decisions and environment facts are known, and their answers do not depend on one another.
34
59
 
35
- 1. Save `- [blocking] Q1: <question>`, `- [blocking] Q2: <question>` in the brief.
36
- 2. Ask the entire round together, giving Question, Recommendation, and Impact for each item.
37
- 3. Update the formal artifacts after the answer. Keep unanswered or ambiguous questions `[blocking]`.
38
- 4. Compute the next round from the new answers.
60
+ 1. Save `- [blocking] Q1: <question>` and `- [blocking] Q2: <question>` in the brief.
61
+ 2. Ask every currently askable node in one round, giving the question, recommendation, and impact for each.
62
+ 3. Update formal artifacts after the user answers. Unanswered or unclear questions remain `[blocking]`.
63
+ 4. Update answered and unanswered nodes in the decision tree, then compute the complete node set for the next round.
39
64
 
40
- Do not compress independent decisions into one multi-select question or split one ready batch across multiple rounds.
65
+ Keep every independent decision as a separate question. Ask mutually independent questions together in the same batch.
41
66
 
42
67
  ## Persistence and final confirmation
43
68
 
44
- Write every confirmed answer immediately into Decisions and the complete target specifications of the existing change. Do not update only the brief, wait until final confirmation to write specifications, or create another change for a clarification answer.
69
+ Write every confirmed decision immediately into Decisions and the complete target specifications of the existing change, synchronizing the brief. Add supplemental answers to the same change.
45
70
 
46
- After all identified questions are resolved:
71
+ Begin final confirmation only when every identified branch has been handled, no pending fact could change visible behavior, no askable node remains, and unstated assumptions create no new question:
47
72
 
48
- 1. Check for remaining silent assumptions.
49
- 2. Give the user a summary of the goal, scope, key decisions, acceptance criteria, and non-goals.
73
+ 1. Check again for unstated assumptions that could still affect the result.
74
+ 2. Present a summary of the outcome, scope, key decisions, acceptance criteria, and non-goals.
50
75
  3. Save `- [blocking] CONFIRM: <confirmation>` in the brief.
51
76
  4. Wait for explicit user confirmation.
52
- 5. Remove the blocker and advance with `--confirmed`.
77
+ 5. After confirmation, remove the blocker and advance with `--confirmed`.
53
78
 
54
- The initial feature request is not the final shared-understanding confirmation. If the user changes or rejects the summary, update the formal artifacts and continue clarification.
79
+ The initial request is not final shared-understanding confirmation. If the user adds to or rejects the summary, update the formal artifacts and continue clarifying.