@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,189 +1,46 @@
1
- # Native Command Reference
1
+ # Native command and exception reference
2
2
 
3
- Read this file only when you need options not listed by the main Skill, receipts, partial scope, or recovery commands.
3
+ During the normal flow, execute the command returned in Runtime `continuation`. This file explains returned fields and handles these cases: command input is rejected, the Verifier cannot start, the Verifier task fails, the Verifier cannot decide because external information is missing, or the Runtime asks the user to confirm degraded verification. `continuation.disposition` says whether to continue, wait for the user, resolve a blocker, or finish. Use a follow-up command containing `--confirmed` only after explicit user confirmation.
4
4
 
5
- ## Project and change
6
-
7
- Determine the current intent first; do not execute this section from top to bottom. Use read-only commands to establish facts, and run a write command only when its stated condition is met. After any write command, immediately reread `status <change-name>` and use the returned phase and continuation to decide what comes next.
8
-
9
- ### Enable Native for the first time
10
-
11
- ```text
12
- comet native init [--root <artifact-root>] [--language en|zh-CN]
13
- ```
14
-
15
- Use this only when the project has not enabled Native yet or when Native directories and language configuration need to be completed. It creates the required directories and writes `.comet/config.yaml`. Existing configuration keeps its current artifact root but may update the language. `init` does not migrate an existing artifact root; the command fails when an explicit `--root` conflicts with existing configuration.
16
-
17
- Afterward, run `root show` to confirm the effective location. Do not use `init` as a resume command when a change already exists.
18
-
19
- ### Inspect or migrate the artifact root
20
-
21
- ```text
22
- comet native root show
23
- comet native root move <artifact-root>
24
- ```
25
-
26
- `artifact-root` is project-relative.
27
-
28
- - `root show` is read-only. It returns the project root, configured artifact root, effective Native directory, language, and any unfinished migration.
29
- - `root move` is a transactional write operation. Run it only when the user explicitly wants to migrate the entire Native artifact root; it moves Native data and updates configuration. Do not simulate migration by editing configuration directly.
30
-
31
- An unfinished migration blocks other Native writes. Run read-only `doctor` first, then follow its report and use `doctor --repair` to recover.
32
-
33
- ### Discover and read changes (read-only)
34
-
35
- ```text
36
- comet native status [--cursor <token>]
37
- comet native status <change-name> [--details [--acceptance-cursor <token>]]
38
- comet native show <change-name>
39
- ```
40
-
41
- `status` without a change name returns paginated candidates. When multiple reasonable candidates remain, show the candidates and their phases to the user and ask them to choose. Do not guess.
42
-
43
- - `status <change-name>` returns the phase, revision, check summary, next command, and continuation. Add `--details` when findings, checkpoint details, or acceptance items are needed.
44
- - `show` returns state, the brief, and proposed specs. Use it only after identifying the target change to read requirements and specifications; it does not replace the phase and continuation check.
45
- - When `findingsTruncated` is true, handle the returned findings and read details again.
46
- - When `acceptancePage.nextCursor` is non-null, continue with `--acceptance-cursor`.
47
- - When a change collection has a non-null `nextCursor`, continue with `--cursor`.
48
-
49
- These commands do not modify selection, phase, or change content.
50
-
51
- ### Resume an existing change
5
+ Treat CLI help as authoritative for command signatures and current arguments:
52
6
 
53
7
  ```text
54
- comet native select <change-name>
8
+ comet native --help
9
+ comet native <command> --help
10
+ comet native <group> <command> --help
55
11
  ```
56
12
 
57
- Run this only after the target change is unique or the user has explicitly selected it. `select` updates only the current Native selection and does not change the phase. A successful result returns that change's continuation.
13
+ ## Next action returned by the Runtime
58
14
 
59
- After selecting, reread `status <change-name>`, confirm the phase, and then load the reference for that phase. Do not treat `select` as a phase-transition command.
60
-
61
- ### Create a new change
62
-
63
- ```text
64
- comet native new <change-name> [--language en|zh-CN] \
65
- [--isolation current|branch|worktree] \
66
- [--change-branch <branch>] \
67
- [--target-branch <branch>]
68
- ```
15
+ - `disposition`: whether to continue, wait for the user, resolve a blocker, or finish.
16
+ - `commandArgs`: the complete command arguments the Runtime requires.
17
+ - `inputOptions`: fields and a JSON template for this command.
18
+ - `workspace` / `preparation`: the actual working directory and change-creation result.
19
+ - `stateVersion` / `loop`: the current state version and acceptance Loop progress.
20
+ - `acceptance` / `nextPageArgs`: the acceptance summary and command for the next page.
21
+ - `verifierDispatch`: inputs needed to start an independent Verifier.
22
+ - `workspaceFinishResult` / `recoveryArgs`: the post-Archive workspace result and recovery command.
69
23
 
70
- Run `new` only after scanning registered working directories and confirming that no matching active change exists. When configuration is absent, it creates the default Native configuration and `docs/comet/`; it then creates a Shape change, makes it current, and returns a continuation plus the workspace binding.
24
+ Angle brackets in a template mark values to fill in. `await-user` means wait for the user's decision before running an advancing command. `localExecution: absent` means only that this machine has no currently running local task; it does not mean the change is damaged.
71
25
 
72
- `--isolation` defaults to `current`. For `branch` and `worktree`, the Agent first creates and enters the actual branch or worktree and passes the starting `--target-branch`; Runtime checks `--change-branch` against the current branch. `worktree` creation is accepted only in a linked Git worktree. A new change records its workspace mode, change branch, target branch, and physical working-directory identity; subsequent writes must remain aligned.
26
+ ## Fill command input
73
27
 
74
- Exit code `73` with `error.code: workspace-isolation-required` means another active change appeared in the same working directory under the `new` mutation lock. Retry automatically in a new worktree only when the original mode was the system-default `current`. Reconfirm if an explicit user choice became invalid.
28
+ Copy `inputOptions.template` into a temporary system JSON file, replace only the requested values, then execute `continuation.commandArgs`. Delete the temporary file afterward. Preserve the acceptance iteration, Verifier attempt, state version, and task identifiers already present in the template. Fill only the fields exposed by the template.
75
29
 
76
- Immediately run `show <change-name>` and `status <change-name>`, then enter Shape clarification and shared-understanding confirmation. Do not create a new change to bypass a blocker, conflict, or recovery problem in an existing change.
30
+ - `builder-handoff`: submit the implementation summary for this round, addressed acceptance IDs, development checks the Builder actually ran, and known limitations. Leave acceptance conclusions to the Verifier.
31
+ - `dispatch-verifier`: list the checks the Runtime should execute for the current candidate. Submit an empty list when no command-based check applies.
32
+ - `verifier-response`: request additional checks or submit a final result that covers every acceptance ID.
33
+ - `verifier-execution-error` / `verifier-unavailable`: report that the Verifier task failed or could not start. Preserve the task-binding fields from the template so a late message from an old task cannot affect a new Verifier.
77
34
 
78
- ### Correct the specification history
79
-
80
- ```text
81
- comet native spec remove <change-name> <capability>
82
- comet native spec rebase <change-name> --summary <text>
83
- ```
84
-
85
- Neither command is an ordinary file-editing command. `spec remove` records a specification operation that removes a capability; use it only when the target behavior truly requires that capability to be removed. `spec rebase` handles concurrent canonical specification changes only: reread the canonical specification, rewrite the complete target specification, and use the summary to record why the rebase was needed.
86
-
87
- Both `spec remove` and `spec rebase` modify the change's specification history and return a new continuation. Immediately reread `status <change-name>` afterward. Do not edit operations, base hashes, or Runtime state manually.
88
-
89
- ## Checkpoints and checks
90
-
91
- ```text
92
- comet native checkpoint <change-name> \
93
- --summary <text> \
94
- --next-action <text> \
95
- [--artifact <project-relative-path>]... \
96
- [--expect-revision <n>]
97
-
98
- comet native check <change-name>
99
- comet native evidence format [--entries <path>]
100
- ```
101
-
102
- A checkpoint stores only recovery context and real artifact references. It does not change phase or replace completion evidence.
103
-
104
- `check` is a built-in Native check, not a replacement for project tests. It exits with `1` when it finds issues or stale evidence.
105
-
106
- `evidence format` reads acceptance entries from stdin or `--entries` and emits the canonical machine block for `verification.md`.
107
-
108
- When submitting `pass`, 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. Fix `verification.md` from the reported error before retrying; do not repeatedly submit the same `next` command. `next` does not accept `--receipt`, and callers do not provide the required-check receipt.
109
-
110
- ## Acceptance receipts
111
-
112
- Automated validation:
113
-
114
- ```text
115
- comet native receipt automated <change-name> \
116
- [--acceptance <id>]... \
117
- [--timeout-ms <milliseconds>] \
118
- -- <executable> [args...]
119
- ```
120
-
121
- Manual observation:
122
-
123
- ```text
124
- comet native receipt manual <change-name> \
125
- --acceptance <id>... \
126
- --step <text> \
127
- --observation <text>
128
- ```
129
-
130
- Create receipts only for commands or manual observations that actually occurred. Failed, skipped, blocked, or timed-out results cannot support pass.
131
-
132
- Refresh stale receipts in bulk:
133
-
134
- ```text
135
- comet native receipt refresh <change-name> [--apply]
136
- ```
137
-
138
- A receipt is bound to the revision, contract, scope, snapshot, and artifacts in effect when it was issued. Any state write (checkpoint, spec refresh, phase advance) bumps the revision, which invalidates receipts issued before that bump. `next --result` then fails with `verification-receipt-binding-mismatch`, listing each stale receipt and the diverging field.
139
-
140
- Without `--apply` (default) it is a preview: it reports which manual receipts are stale, which automated receipts must be re-run, and which required-check receipts must be regenerated via `comet native check`, without touching any file.
141
-
142
- With `--apply`: it re-issues only stale manual receipts whose binding mismatch is limited to `sourceRevision`, and writes the canonical evidence block back into the `# Acceptance evidence` section of verification.md. Contract, scope, snapshot, or artifact mismatches remain manual verification blockers. Automated receipts are never silently re-issued (they attest to a real command execution); refresh only reports the commands you must re-run via `receipt automated`.
143
-
144
- ## Phase progression
145
-
146
- ```text
147
- comet native next <change-name> --summary <text> \
148
- [--confirmed] \
149
- [--artifact <project-relative-path>]... \
150
- [--no-code-reason <text>] \
151
- [--allow-partial-scope <sha256> --partial-reason <text> --confirmed] \
152
- [--result pass|fail] \
153
- [--report <change-relative-path>] \
154
- [--override-repair <sha256> --override-summary <text>]
155
-
156
- comet native archive <change-name> --dry-run [--finish merge|push|pull-request|keep]
157
- comet native archive <change-name> --expect-preflight <sha256> [--confirmed]
158
- ```
159
-
160
- - Shape: pass `--confirmed` only after the user confirms the final shared understanding.
161
- - Build: provide a real `--artifact`; use `--no-code-reason` only when no project file changed. If changed requirements introduce a new user decision, stay in Build and repeat clarification and confirmation first. After confirmation, update the formal artifacts, then run the transition command returned by the Runtime with `--confirmed`.
162
- - Partial scope: explain the exact gaps and risks returned by the Runtime. Changes beyond the returned detail budget are summarized by a `scope-detail-overflow` count and content hash; use the matching scope hash, reason, and `--confirmed` only after the user accepts them.
163
- - Verify: provide `--result` and a complete report. For the standard report path, submit `comet native next <change-name> --summary <summary> --result pass|fail --report verification.md`. 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 on pass; do not pass `--receipt`. Acceptance entries in the report reference automated/manual receipts directly. Executed failures reference their failed receipts, while checks that were not run include a `skipped_reason`. The Runtime derives failed acceptance and check identifiers from the report and receipts.
164
- - Repair override: use only the signature returned by status and only for one explicit new repair hypothesis.
165
- - Archive: use a plain dry-run for current isolation. For branch/worktree, after the user makes the joint finishing choice, pass `--finish` to persist it and generate a new preflight. Then use the exact preflight hash returned by that preview. `required` mode also requires explicit user confirmation. Never combine `--finish` with `--expect-preflight`.
166
-
167
- ## Diagnostics and recovery
168
-
169
- ```text
170
- comet native doctor [<change-name>]
171
- comet native doctor [<change-name>] --repair
172
- comet native doctor [<change-name>] --repair [--strategy continue|rollback]
173
- ```
35
+ The Runtime executes and records verification checks. Development checks listed in the Builder handoff only describe the candidate; the Verifier relies on actual Runtime check results. The latest `continuation` decides whether to add checks, retry, or start a new Verifier.
174
36
 
175
- Run read-only doctor first. Use `--repair` only when its report offers a repair action. Ordinary phase transitions support only `continue`; whether Archive or root move allows rollback is determined by doctor.
37
+ ## Exceptional cases
176
38
 
177
- ## Output and exit codes
39
+ - Independent Verifier cannot start: first confirm that all applicable checks are listed and every Runtime check passes. Then report unavailable using the template and wait for the user to decide whether to accept degraded verification with command checks only and no independent semantic review.
40
+ - Verifier is temporarily unable to decide (`semantic blocked`): if only user or external information is missing, execute the resolution action returned by the Runtime. If the implementation must change, return to Build.
41
+ - A Skill-coordinated Verifier reports all items passed (`skill-coordinated pass`): when the Runtime requires user confirmation, explain the verification boundary once, then execute the returned command after confirmation.
42
+ - Verifier task fails (`execution error`): submit the error using the template, then read the new `continuation`. The Runtime decides which checks to reuse and whether to retry.
178
43
 
179
- Every command supports `--json`. JSON mode returns one object with `command`, `exitCode`, `data`, and `error` on failure.
44
+ ## Diagnostics
180
45
 
181
- | Exit code | Meaning |
182
- | --- | --- |
183
- | `0` | Success |
184
- | `1` | Built-in check found issues or stale results |
185
- | `64` | Invalid arguments or usage |
186
- | `65` | Invalid configuration, state, or artifact |
187
- | `73` | Lock, transaction, concurrency, or root conflict |
188
- | `75` | Repair stagnation or failure budget blocks progress |
189
- | `70` | Unexpected internal failure |
46
+ Run read-only `doctor` first. Execute a repair command only when `doctor` explicitly returns one; the Runtime continues to manage locks, cross-device state, and transactions.
@@ -1,117 +1,67 @@
1
- # Native Recovery Reference
1
+ # Native recovery reference
2
2
 
3
- Read this file only when the Runtime reports interruption, stale evidence, a repair stop, conflict, lock, migration, or damaged state.
3
+ Read this file only when the Runtime reports an interrupted local task, missing Runtime files, repeated lack of progress, a concurrency conflict, failed legacy migration, or damaged state.
4
4
 
5
- ## General rule
5
+ ## General principles
6
6
 
7
- Stop writing and run read-only diagnostics first:
7
+ Stop modifying the project, then rerun `status --details --json` and read-only `doctor`. Execute only a recovery action explicitly returned by `continuation` or `doctor`. Always leave portable state, local tasks, locks, and transactions to the Runtime. If safe automatic recovery cannot be determined, preserve the workspace and wait for the user.
8
8
 
9
- ```text
10
- comet native doctor [<change-name>]
11
- ```
9
+ ## Workspace
12
10
 
13
- Act only on facts returned by doctor or the continuation. Do not edit state, hashes, evidence, locks, or transaction files manually. When the Runtime cannot prove an automatic repair is safe, preserve the scene and wait for the user.
11
+ `status` searches registered worktrees for a change whose binding matches and returns the actual `workspace.projectRoot`. Enter that directory and run `select` again. Resume the found change in its found directory; do not copy it or recreate a change with the same name elsewhere.
14
12
 
15
- ## Workspace advisories
13
+ If the project root, branch, workspace type, or Git state differs from the record in `comet-state.yaml`, the Runtime prevents writes. When it can safely locate or create the declared worktree, follow the returned action. Otherwise it enters `await-user`.
16
14
 
17
- First use `git worktree list --porcelain` and `comet native status --project-root <path> --json` in each safely accessible directory to find the change's actual working directory. Do not copy an active change directory, recreate the same change in another worktree, or take ownership by editing `workspace.json`.
15
+ If the original directory or branch is truly lost, the user decides which recovery directory to use, whether to rebuild from a trusted backup, or whether to abandon the change.
18
16
 
19
- For legacy metadata, `workspace-root-changed` and `workspace-inspection-unavailable` explain where current root facts came from and do not independently block progression or Archive. These new binding errors do block writes:
17
+ ## Stable state and local tasks
20
18
 
21
- - `workspace-binding-root-changed`: the physical working directory differs from the one that created the change;
22
- - `workspace-branch-changed`: the current branch differs from the bound change branch;
23
- - `workspace-kind-changed`: the change is worktree-bound but the directory is no longer a linked worktree;
24
- - `workspace-vcs-unavailable`: the bound Git working directory is unavailable.
19
+ `comet-state.yaml` records the last workflow state that can be resumed safely. Local `state.json` only says what this machine is executing. If it is missing, stale, or belongs to an old task, the Runtime rebuilds it from YAML, the brief, and target Specs. Local state cannot overwrite newer YAML.
25
20
 
26
- Resume and `select` from the registered original working directory. If the directory or branch is genuinely lost, preserve artifacts and run read-only doctor. When Runtime cannot prove a repair, stop and ask the user whether to restore the directory, reconstruct from a trusted backup, or abandon the change. Do not treat every `workspace-*` finding as advisory or refresh the baseline automatically.
21
+ - Shape: remain in Shape and continue clarification or confirmation.
22
+ - Build: if the Runtime shows `repairing`, Verify has returned to Build. Keep the current iteration and continue from the Builder handoff, unresolved acceptance items, and next action.
23
+ - Verify (`verify-ready`): rerun the necessary checks for the current candidate and start a new Verifier. Do not reuse a pass from the old device.
24
+ - Archive (`archive-ready`): safely return to Verify, reset the verification result to `pending`, and verify the implementation synchronized to the new device.
25
+ - `await-user` / `blocked`: restore the original blocker, responsible actor, and allowed actions; wait until the corresponding condition is satisfied.
26
+ - `done` under the active directory: complete only directory movement and cleanup that can be determined safely.
27
+ - `done` under the archive directory: present the change as read-only and finished.
27
28
 
28
- `workspace-isolation-required` is a creation race. A system-default `current` may automatically retry after preparing a separate worktree; reconfirm when an explicit user choice became invalid.
29
+ Treat old task processes, log connections, and Agent sessions as lost. Do not infer success from leftover files. When a check finished but YAML does not record its result, rerun only checks that are safe to repeat; potentially side-effecting external actions become `await-user`.
29
30
 
30
- ## Unfinished phase transition
31
+ If `verification.md` is missing, its write was interrupted, or `generated_from_state_version` is behind, rebuild only the report from YAML. YAML remains the recovery source; Archive cannot be authorized until the report version aligns.
31
32
 
32
- When status or doctor reports an unfinished transition, first retry the original action as directed by the continuation. When explicit repair is required:
33
+ An active change from an older release appears read-only as `migration-required`. Use `doctor --repair` or the migration command explicitly returned by the Runtime. If migration fails, keep the legacy files and wait for the Runtime's next action.
33
34
 
34
- ```text
35
- comet native doctor <change-name> --repair --strategy continue
36
- ```
35
+ ## Zero chat context and cross-device recovery
37
36
 
38
- Ordinary Shape, Build, and Verify transitions support only continue, not rollback.
37
+ To resume on a new device with no chat history, obtain the same synchronized project code, `comet-state.yaml`, brief, and target Specs. Also synchronize `.comet/config.yaml` when the change uses a non-default artifact directory.
39
38
 
40
- ## Missing or incomplete baseline
39
+ Stop progression on the old device before synchronizing. A Git conflict or two different contents for the same state version enters a blocked state for the user to resolve.
41
40
 
42
- `baseline-snapshot-missing` and `baseline-snapshot-incomplete` cannot be repaired from current files or by editing evidence.
41
+ Unsynchronized code from the old device cannot be recovered from workflow state, and a subagent task cannot continue across devices. The new device creates local tasks from the workspace, acceptance Loop, verification result, blockers, Builder handoff, and next action in YAML. If the synchronized implementation is incomplete, the new Verifier reports the gap and returns to Build.
43
42
 
44
- The only safe options are:
43
+ Reverification of Verify or archive-ready state on a new device is recovery: it does not increment the implementation iteration, failure count, or stagnation count. Only actually starting a new Verifier increments the Verifier attempt. Completed Shape and Build work are not repeated, and the Runtime does not scan the whole project to guess progress.
45
44
 
46
- 1. restore the original baseline from a trusted backup; or
47
- 2. preserve the user's brief, specifications, and implementation facts, then create a new change.
45
+ ## Failed Verify and repeated lack of progress
48
46
 
49
- ## Stale evidence
47
+ After Verify fails, read the failed and blocked acceptance items and failed checks. Make actual changes, then submit a new Builder handoff. Progress means the unresolved problem set becomes smaller. Editing explanatory text, repeating the same check, or reporting the same reason again does not resolve a problem.
50
48
 
51
- Changes to the brief, specifications, implementation, report, or receipts may stale the old scope or Verify pass. Follow the continuation back to Build, reconfirm changed user-visible behavior, generate a new scope, and verify again. Do not reuse an old pass or preflight.
49
+ After repeated rounds without progress or repeated Verifier task errors, follow the blocker action returned by the Runtime. When failed iterations reach `native.max_verify_failures`, the workflow enters `await-user` so the user can continue the current target, change the confirmed requirements, or stop.
52
50
 
53
- Receipts are bound to revision: every state write (checkpoint, spec refresh, phase advance) bumps the revision, which invalidates receipts issued before that bump. When `next --result` reports `verification-receipt-binding-mismatch`, the finding lists each stale receipt and the diverging field (e.g. `sourceRevision: expected 6, got 5`) and gives the recovery command. Only a source-revision-only mismatch on manual evidence can be refreshed without returning to Verify; run `comet native receipt refresh <change> --apply` to re-issue it at the current revision and rewrite verification.md. Contract, scope, snapshot, or artifact mismatches require fresh verification. Automated receipts must be re-executed with `receipt automated` and are never silently re-issued.
51
+ The verification failure count resets after the user confirms a new acceptance list and starts a new goal round.
54
52
 
55
- ## Verify fail and repair stop
53
+ ## Specification and Archive conflicts
56
54
 
57
- After Verify fail returns to Build:
55
+ If an archived canonical Spec changes during the current change, reread the latest canonical Spec, brief, and complete target specification. Rewrite the current target according to user intent, execute the rebase action from Runtime conflict information, then reimplement and reverify. Preserve concurrent additions.
58
56
 
59
- 1. read failed or missing acceptance items and failed checks from status details;
60
- 2. actually repair those gaps;
61
- 3. rerun the relevant validation;
62
- 4. submit the Verify result again.
57
+ When two active changes modify the same capability, Archive enters `await-user`. The user chooses which change to Archive first; the other then rebases onto the latest canonical Spec.
63
58
 
64
- When the same gap appears for the third time, the Runtime returns `repair-stagnation-stop`. This is not a user decision: read the signature from status, form one concrete new repair hypothesis that differs from the previous attempt, make the corresponding change, and use that signature and hypothesis summary for one repair override. Do not ask the user for a signature, hash, or override argument.
59
+ If Archive or change-directory movement is interrupted, use the transaction state and allowed actions returned by `doctor`. When paths, workflow state, and actual files disagree, preserve both sides and wait for an explicit recovery action.
65
60
 
66
- When the override is exhausted or `native.max_verify_failures` is reached, the continuation returns `await-user` with `repair-continuation-decision`. Explain the current failure and attempted approaches, then ask the user to choose only:
61
+ If `workspaceFinishResult.status` is `blocked`, the change may already be archived or Git-committed. First run `recoveryArgs` to inspect actual Git state, then follow the returned result.
67
62
 
68
- 1. continue trying: increase `native.max_verify_failures` and continue;
69
- 2. change the confirmed contract: return to Shape, update the brief and complete target specification, and reconfirm;
70
- 3. stop this repair: preserve the change and current scene without progressing or running Archive.
63
+ ## Damaged state
71
64
 
72
- The user chooses only the direction. You update configuration or formal artifacts, read the Runtime signature, and execute the follow-up commands.
73
-
74
- ## Canonical specification conflict
75
-
76
- When Archive reports that a canonical specification changed:
77
-
78
- 1. reread the latest canonical specification, brief, and proposed complete specification;
79
- 2. rewrite the complete target specification according to user intent;
80
- 3. run:
81
-
82
- ```text
83
- comet native spec rebase <change-name> --summary <summary>
84
- ```
85
-
86
- 4. implement, confirm, and verify again from the phase returned by the Runtime.
87
-
88
- Do not edit `base_hash` or overwrite concurrent changes.
89
-
90
- ## Interrupted Archive
91
-
92
- Run doctor first to identify the transaction and allowed recovery direction:
93
-
94
- ```text
95
- comet native doctor <change-name>
96
- comet native doctor <change-name> --repair --strategy continue
97
- comet native doctor <change-name> --repair --strategy rollback
98
- ```
99
-
100
- - `continue`: finish Archive;
101
- - `rollback`: restore the active change;
102
- - when doctor does not offer rollback, do not attempt one manually.
103
-
104
- If the journal and actual files disagree, paths conflict, or safety cannot be proven, preserve every related directory and stop automatic repair.
105
-
106
- ## Interrupted artifact-root migration
107
-
108
- Ordinary Native writes stop while `pending_root_move` exists. Run doctor and use only the continue or rollback action it offers.
109
-
110
- If the old and new roots differ, delete neither tree. Give the user both paths returned by doctor.
111
-
112
- ## Locks, selection, or damaged artifacts
113
-
114
- - Do not delete locks manually. Use `--repair` only when doctor explicitly reports safe takeover.
115
- - Doctor may clear a selection that points to a missing change.
116
- - Damaged config, change state, brief, specification, or verification content is not guessed and rewritten automatically.
117
- - When doctor cannot determine the owner, transaction, or file identity safely, preserve the scene and stop.
65
+ - The Runtime manages locks. Repair them only when `doctor` returns an explicit command.
66
+ - If config, change, brief, specifications, or verification data is damaged, preserve the original file and wait for a recovery source from `doctor` or the user.
67
+ - If the same change exists in both active and archive, file ownership is unclear, or transaction progress cannot be determined, preserve the workspace and stop writing.
@@ -0,0 +1,23 @@
1
+ # Native workspace selection reference
2
+
3
+ Read this file only when creating a change. If the user has already chosen `current`, `branch`, or `worktree`, use that choice directly.
4
+
5
+ When no isolation mode is specified, ask the user only if any of these conditions is true:
6
+
7
+ - The current directory has uncommitted work.
8
+ - Another active Native change already exists.
9
+ - The user requested parallel or isolated work without choosing how.
10
+
11
+ If none applies, use the Runtime default, `current`.
12
+
13
+ When asking, present isolation mode as one single-choice decision:
14
+
15
+ | Option | Mode | Actual impact |
16
+ | --- | --- | --- |
17
+ | A | Current directory (`current`) | Keep the current branch and directory; create no Git branch or working directory |
18
+ | B | New branch (`branch`) | Switch the current directory to a new change branch; requires a clean worktree |
19
+ | C | New worktree (`worktree`) | Create a separate branch and working directory; suitable for parallel changes or uncommitted work in the current directory |
20
+
21
+ Show every valid option consistent with the current state and user request. Do not filter out an option merely because a later command might fail. Recommend A when the user explicitly wants to stay on the current branch; recommend B when an independent branch is needed without parallel work; recommend C for parallel work, uncommitted work in the current directory, or another active Native change.
22
+
23
+ A recommendation is explanatory only. Wait for the user's choice before creating anything. Follow the [clarification reference](clarification.md) for the question: prefer a structured single-choice tool, or use numbered text and pause when the tool is unavailable. If only one valid option exists, explain why and adopt it directly.