@rpamis/comet 0.4.0-beta.1 → 0.4.0-beta.10

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 (1301) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +279 -113
  3. package/assets/manifest.json +17 -5
  4. package/assets/skills/comet/SKILL.md +17 -256
  5. package/assets/skills/comet/reference/auto-transition.md +1 -1
  6. package/assets/skills/comet/reference/classic-layout.md +34 -0
  7. package/assets/skills/comet/reference/comet-yaml-fields.md +14 -8
  8. package/assets/skills/comet/reference/context-recovery.md +14 -4
  9. package/assets/skills/comet/reference/decision-point.md +11 -0
  10. package/assets/skills/comet/reference/file-structure.md +2 -2
  11. package/assets/skills/comet/reference/intent-frame.md +3 -3
  12. package/assets/skills/comet/reference/scripts.md +47 -15
  13. package/assets/skills/comet/reference/subagent-dispatch.md +8 -7
  14. package/assets/skills/comet/rules/comet-phase-guard.en.md +34 -31
  15. package/assets/skills/comet/rules/comet-phase-guard.md +34 -32
  16. package/assets/skills/comet/rules/comet-workflow-guard.en.md +32 -0
  17. package/assets/skills/comet/rules/comet-workflow-guard.md +32 -0
  18. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +8074 -0
  19. package/assets/skills/comet/scripts/comet-hook-router.mjs +12786 -0
  20. package/assets/skills/comet/scripts/comet-resume-probe.mjs +3 -0
  21. package/assets/skills/comet/scripts/comet-runtime.mjs +10449 -4105
  22. package/assets/skills/comet-any/SKILL.md +5 -5
  23. package/assets/skills/comet-any/reference/authored-zone-example.md +10 -5
  24. package/assets/skills/comet-any/reference/authoring-subagents.md +1 -1
  25. package/assets/skills/comet-any/reference/bundle-authoring.md +2 -2
  26. package/assets/skills/comet-any/reference/subagents/pause-points-author.md +14 -11
  27. package/assets/skills/comet-any/reference/subagents/reference-author.md +1 -1
  28. package/assets/skills/comet-any/reference/subagents/script-author.md +1 -1
  29. package/assets/skills/comet-any/reference/subagents/skill-core-author.md +1 -1
  30. package/assets/skills/comet-any/reference/subagents/skill-reviewer.md +4 -2
  31. package/assets/skills/comet-any/reference/subagents/workflow-entry-author.md +8 -7
  32. package/assets/skills/comet-archive/SKILL.md +69 -26
  33. package/assets/skills/comet-build/SKILL.md +77 -58
  34. package/assets/skills/comet-classic/SKILL.md +295 -0
  35. package/assets/skills/comet-design/SKILL.md +40 -36
  36. package/assets/skills/comet-hotfix/SKILL.md +57 -35
  37. package/assets/skills/comet-native/SKILL.md +133 -0
  38. package/assets/skills/comet-native/reference/artifacts.md +141 -0
  39. package/assets/skills/comet-native/reference/clarification.md +54 -0
  40. package/assets/skills/comet-native/reference/commands.md +170 -0
  41. package/assets/skills/comet-native/reference/recovery.md +96 -0
  42. package/assets/skills/comet-native/scripts/comet-native-hook-guard.mjs +4 -0
  43. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +34468 -0
  44. package/assets/skills/comet-open/SKILL.md +119 -59
  45. package/assets/skills/comet-tweak/SKILL.md +52 -27
  46. package/assets/skills/comet-verify/SKILL.md +65 -73
  47. package/assets/skills-zh/comet/SKILL.md +17 -244
  48. package/assets/skills-zh/comet/reference/auto-transition.md +1 -1
  49. package/assets/skills-zh/comet/reference/classic-layout.md +34 -0
  50. package/assets/skills-zh/comet/reference/comet-yaml-fields.md +13 -8
  51. package/assets/skills-zh/comet/reference/context-recovery.md +14 -4
  52. package/assets/skills-zh/comet/reference/decision-point.md +11 -0
  53. package/assets/skills-zh/comet/reference/file-structure.md +2 -2
  54. package/assets/skills-zh/comet/reference/intent-frame.md +3 -3
  55. package/assets/skills-zh/comet/reference/scripts.md +47 -15
  56. package/assets/skills-zh/comet/reference/subagent-dispatch.md +8 -7
  57. package/assets/skills-zh/comet-any/SKILL.md +5 -5
  58. package/assets/skills-zh/comet-any/reference/authored-zone-example.md +10 -5
  59. package/assets/skills-zh/comet-any/reference/authoring-subagents.md +1 -1
  60. package/assets/skills-zh/comet-any/reference/bundle-authoring.md +2 -2
  61. package/assets/skills-zh/comet-any/reference/subagents/pause-points-author.md +14 -12
  62. package/assets/skills-zh/comet-any/reference/subagents/reference-author.md +1 -1
  63. package/assets/skills-zh/comet-any/reference/subagents/script-author.md +1 -1
  64. package/assets/skills-zh/comet-any/reference/subagents/skill-core-author.md +1 -1
  65. package/assets/skills-zh/comet-any/reference/subagents/skill-reviewer.md +4 -2
  66. package/assets/skills-zh/comet-any/reference/subagents/workflow-entry-author.md +8 -7
  67. package/assets/skills-zh/comet-archive/SKILL.md +69 -26
  68. package/assets/skills-zh/comet-build/SKILL.md +77 -58
  69. package/assets/skills-zh/comet-classic/SKILL.md +283 -0
  70. package/assets/skills-zh/comet-design/SKILL.md +40 -36
  71. package/assets/skills-zh/comet-hotfix/SKILL.md +56 -34
  72. package/assets/skills-zh/comet-native/SKILL.md +133 -0
  73. package/assets/skills-zh/comet-native/reference/artifacts.md +141 -0
  74. package/assets/skills-zh/comet-native/reference/clarification.md +54 -0
  75. package/assets/skills-zh/comet-native/reference/commands.md +170 -0
  76. package/assets/skills-zh/comet-native/reference/recovery.md +96 -0
  77. package/assets/skills-zh/comet-open/SKILL.md +118 -58
  78. package/assets/skills-zh/comet-tweak/SKILL.md +51 -26
  79. package/assets/skills-zh/comet-verify/SKILL.md +65 -73
  80. package/dist/app/cli/comet-banner.d.ts +25 -0
  81. package/dist/app/cli/comet-banner.d.ts.map +1 -0
  82. package/dist/app/cli/comet-banner.js +265 -0
  83. package/dist/app/cli/comet-banner.js.map +1 -0
  84. package/dist/app/cli/index.js +113 -16
  85. package/dist/app/cli/index.js.map +1 -1
  86. package/dist/app/commands/classic.d.ts +5 -0
  87. package/dist/app/commands/classic.d.ts.map +1 -0
  88. package/dist/app/commands/classic.js +32 -0
  89. package/dist/app/commands/classic.js.map +1 -0
  90. package/dist/app/commands/command-result.d.ts +6 -0
  91. package/dist/app/commands/command-result.d.ts.map +1 -0
  92. package/dist/app/commands/command-result.js +4 -0
  93. package/dist/app/commands/command-result.js.map +1 -0
  94. package/dist/app/commands/doctor.d.ts +4 -0
  95. package/dist/app/commands/doctor.d.ts.map +1 -1
  96. package/dist/app/commands/doctor.js +926 -95
  97. package/dist/app/commands/doctor.js.map +1 -1
  98. package/dist/app/commands/eval.d.ts +3 -1
  99. package/dist/app/commands/eval.d.ts.map +1 -1
  100. package/dist/app/commands/eval.js +80 -22
  101. package/dist/app/commands/eval.js.map +1 -1
  102. package/dist/app/commands/i18n.d.ts +1 -1
  103. package/dist/app/commands/i18n.d.ts.map +1 -1
  104. package/dist/app/commands/i18n.js +18 -6
  105. package/dist/app/commands/i18n.js.map +1 -1
  106. package/dist/app/commands/init.d.ts +13 -3
  107. package/dist/app/commands/init.d.ts.map +1 -1
  108. package/dist/app/commands/init.js +561 -72
  109. package/dist/app/commands/init.js.map +1 -1
  110. package/dist/app/commands/native.d.ts +2 -0
  111. package/dist/app/commands/native.d.ts.map +1 -0
  112. package/dist/app/commands/native.js +10 -0
  113. package/dist/app/commands/native.js.map +1 -0
  114. package/dist/app/commands/project-scope-selection.d.ts +13 -0
  115. package/dist/app/commands/project-scope-selection.d.ts.map +1 -0
  116. package/dist/app/commands/project-scope-selection.js +35 -0
  117. package/dist/app/commands/project-scope-selection.js.map +1 -0
  118. package/dist/app/commands/resume-probe.d.ts +12 -0
  119. package/dist/app/commands/resume-probe.d.ts.map +1 -0
  120. package/dist/app/commands/resume-probe.js +68 -0
  121. package/dist/app/commands/resume-probe.js.map +1 -0
  122. package/dist/app/commands/status.d.ts.map +1 -1
  123. package/dist/app/commands/status.js +70 -104
  124. package/dist/app/commands/status.js.map +1 -1
  125. package/dist/app/commands/uninstall.d.ts +5 -0
  126. package/dist/app/commands/uninstall.d.ts.map +1 -1
  127. package/dist/app/commands/uninstall.js +264 -53
  128. package/dist/app/commands/uninstall.js.map +1 -1
  129. package/dist/app/commands/update.d.ts +29 -5
  130. package/dist/app/commands/update.d.ts.map +1 -1
  131. package/dist/app/commands/update.js +1419 -127
  132. package/dist/app/commands/update.js.map +1 -1
  133. package/dist/app/commands/workflow.d.ts +6 -0
  134. package/dist/app/commands/workflow.d.ts.map +1 -0
  135. package/dist/app/commands/workflow.js +11 -0
  136. package/dist/app/commands/workflow.js.map +1 -0
  137. package/dist/config/repository-layout.json +29 -3
  138. package/dist/domains/bundle/bundle-platform.d.ts +1 -0
  139. package/dist/domains/bundle/bundle-platform.d.ts.map +1 -1
  140. package/dist/domains/bundle/bundle-platform.js +10 -4
  141. package/dist/domains/bundle/bundle-platform.js.map +1 -1
  142. package/dist/domains/bundle/eval-manifest-runtime.d.ts +8 -0
  143. package/dist/domains/bundle/eval-manifest-runtime.d.ts.map +1 -0
  144. package/dist/domains/bundle/eval-manifest-runtime.js +118 -0
  145. package/dist/domains/bundle/eval-manifest-runtime.js.map +1 -0
  146. package/dist/domains/bundle/eval-run-result.d.ts +22 -0
  147. package/dist/domains/bundle/eval-run-result.d.ts.map +1 -0
  148. package/dist/domains/bundle/eval-run-result.js +207 -0
  149. package/dist/domains/bundle/eval-run-result.js.map +1 -0
  150. package/dist/domains/bundle/eval.d.ts.map +1 -1
  151. package/dist/domains/bundle/eval.js +21 -24
  152. package/dist/domains/bundle/eval.js.map +1 -1
  153. package/dist/domains/bundle/factory.d.ts.map +1 -1
  154. package/dist/domains/bundle/factory.js +2 -9
  155. package/dist/domains/bundle/factory.js.map +1 -1
  156. package/dist/domains/bundle/review-summary.js +1 -1
  157. package/dist/domains/bundle/review-summary.js.map +1 -1
  158. package/dist/domains/bundle/state.d.ts.map +1 -1
  159. package/dist/domains/bundle/state.js +117 -2
  160. package/dist/domains/bundle/state.js.map +1 -1
  161. package/dist/domains/bundle/types.d.ts +1 -1
  162. package/dist/domains/bundle/types.d.ts.map +1 -1
  163. package/dist/domains/comet-classic/classic-archive-pointer.d.ts +8 -0
  164. package/dist/domains/comet-classic/classic-archive-pointer.d.ts.map +1 -0
  165. package/dist/domains/comet-classic/classic-archive-pointer.js +66 -0
  166. package/dist/domains/comet-classic/classic-archive-pointer.js.map +1 -0
  167. package/dist/domains/comet-classic/classic-archive.d.ts +1 -0
  168. package/dist/domains/comet-classic/classic-archive.d.ts.map +1 -1
  169. package/dist/domains/comet-classic/classic-archive.js +205 -114
  170. package/dist/domains/comet-classic/classic-archive.js.map +1 -1
  171. package/dist/domains/comet-classic/classic-branch-binding.d.ts +51 -0
  172. package/dist/domains/comet-classic/classic-branch-binding.d.ts.map +1 -0
  173. package/dist/domains/comet-classic/classic-branch-binding.js +107 -0
  174. package/dist/domains/comet-classic/classic-branch-binding.js.map +1 -0
  175. package/dist/domains/comet-classic/classic-cli.d.ts +3 -1
  176. package/dist/domains/comet-classic/classic-cli.d.ts.map +1 -1
  177. package/dist/domains/comet-classic/classic-cli.js +12 -3
  178. package/dist/domains/comet-classic/classic-cli.js.map +1 -1
  179. package/dist/domains/comet-classic/classic-command-checks.d.ts +20 -0
  180. package/dist/domains/comet-classic/classic-command-checks.d.ts.map +1 -0
  181. package/dist/domains/comet-classic/classic-command-checks.js +94 -0
  182. package/dist/domains/comet-classic/classic-command-checks.js.map +1 -0
  183. package/dist/domains/comet-classic/classic-command-context.d.ts +12 -0
  184. package/dist/domains/comet-classic/classic-command-context.d.ts.map +1 -0
  185. package/dist/domains/comet-classic/classic-command-context.js +42 -0
  186. package/dist/domains/comet-classic/classic-command-context.js.map +1 -0
  187. package/dist/domains/comet-classic/classic-current-change.d.ts +17 -0
  188. package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -0
  189. package/dist/domains/comet-classic/classic-current-change.js +112 -0
  190. package/dist/domains/comet-classic/classic-current-change.js.map +1 -0
  191. package/dist/domains/comet-classic/classic-diagnostics.d.ts +2 -1
  192. package/dist/domains/comet-classic/classic-diagnostics.d.ts.map +1 -1
  193. package/dist/domains/comet-classic/classic-diagnostics.js +54 -1
  194. package/dist/domains/comet-classic/classic-diagnostics.js.map +1 -1
  195. package/dist/domains/comet-classic/classic-evidence.d.ts +1 -0
  196. package/dist/domains/comet-classic/classic-evidence.d.ts.map +1 -1
  197. package/dist/domains/comet-classic/classic-evidence.js +101 -37
  198. package/dist/domains/comet-classic/classic-evidence.js.map +1 -1
  199. package/dist/domains/comet-classic/classic-guard.d.ts.map +1 -1
  200. package/dist/domains/comet-classic/classic-guard.js +229 -208
  201. package/dist/domains/comet-classic/classic-guard.js.map +1 -1
  202. package/dist/domains/comet-classic/classic-handoff.d.ts.map +1 -1
  203. package/dist/domains/comet-classic/classic-handoff.js +155 -107
  204. package/dist/domains/comet-classic/classic-handoff.js.map +1 -1
  205. package/dist/domains/comet-classic/classic-hook-guard.d.ts +9 -0
  206. package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
  207. package/dist/domains/comet-classic/classic-hook-guard.js +406 -54
  208. package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
  209. package/dist/domains/comet-classic/classic-layout-initialization.d.ts +86 -0
  210. package/dist/domains/comet-classic/classic-layout-initialization.d.ts.map +1 -0
  211. package/dist/domains/comet-classic/classic-layout-initialization.js +813 -0
  212. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -0
  213. package/dist/domains/comet-classic/classic-layout.d.ts +47 -0
  214. package/dist/domains/comet-classic/classic-layout.d.ts.map +1 -0
  215. package/dist/domains/comet-classic/classic-layout.js +227 -0
  216. package/dist/domains/comet-classic/classic-layout.js.map +1 -0
  217. package/dist/domains/comet-classic/classic-migrate.d.ts +4 -0
  218. package/dist/domains/comet-classic/classic-migrate.d.ts.map +1 -1
  219. package/dist/domains/comet-classic/classic-migrate.js +8 -12
  220. package/dist/domains/comet-classic/classic-migrate.js.map +1 -1
  221. package/dist/domains/comet-classic/classic-openspec-command.d.ts +4 -0
  222. package/dist/domains/comet-classic/classic-openspec-command.d.ts.map +1 -0
  223. package/dist/domains/comet-classic/classic-openspec-command.js +45 -0
  224. package/dist/domains/comet-classic/classic-openspec-command.js.map +1 -0
  225. package/dist/domains/comet-classic/classic-openspec-root.d.ts +13 -0
  226. package/dist/domains/comet-classic/classic-openspec-root.d.ts.map +1 -0
  227. package/dist/domains/comet-classic/classic-openspec-root.js +47 -0
  228. package/dist/domains/comet-classic/classic-openspec-root.js.map +1 -0
  229. package/dist/domains/comet-classic/classic-paths.d.ts +11 -1
  230. package/dist/domains/comet-classic/classic-paths.d.ts.map +1 -1
  231. package/dist/domains/comet-classic/classic-paths.js +87 -35
  232. package/dist/domains/comet-classic/classic-paths.js.map +1 -1
  233. package/dist/domains/comet-classic/classic-project-config.d.ts +16 -0
  234. package/dist/domains/comet-classic/classic-project-config.d.ts.map +1 -0
  235. package/dist/domains/comet-classic/classic-project-config.js +36 -0
  236. package/dist/domains/comet-classic/classic-project-config.js.map +1 -0
  237. package/dist/domains/comet-classic/classic-protected-path.d.ts +39 -0
  238. package/dist/domains/comet-classic/classic-protected-path.d.ts.map +1 -0
  239. package/dist/domains/comet-classic/classic-protected-path.js +69 -0
  240. package/dist/domains/comet-classic/classic-protected-path.js.map +1 -0
  241. package/dist/domains/comet-classic/classic-resolver.d.ts.map +1 -1
  242. package/dist/domains/comet-classic/classic-resolver.js +4 -4
  243. package/dist/domains/comet-classic/classic-resolver.js.map +1 -1
  244. package/dist/domains/comet-classic/classic-resume-probe-command.d.ts +3 -0
  245. package/dist/domains/comet-classic/classic-resume-probe-command.d.ts.map +1 -0
  246. package/dist/domains/comet-classic/classic-resume-probe-command.js +59 -0
  247. package/dist/domains/comet-classic/classic-resume-probe-command.js.map +1 -0
  248. package/dist/domains/comet-classic/classic-resume-probe-entry.d.ts +2 -0
  249. package/dist/domains/comet-classic/classic-resume-probe-entry.d.ts.map +1 -0
  250. package/dist/domains/comet-classic/classic-resume-probe-entry.js +4 -0
  251. package/dist/domains/comet-classic/classic-resume-probe-entry.js.map +1 -0
  252. package/dist/domains/comet-classic/classic-resume-probe.d.ts +29 -0
  253. package/dist/domains/comet-classic/classic-resume-probe.d.ts.map +1 -0
  254. package/dist/domains/comet-classic/classic-resume-probe.js +406 -0
  255. package/dist/domains/comet-classic/classic-resume-probe.js.map +1 -0
  256. package/dist/domains/comet-classic/classic-root-command.d.ts +5 -0
  257. package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -0
  258. package/dist/domains/comet-classic/classic-root-command.js +84 -0
  259. package/dist/domains/comet-classic/classic-root-command.js.map +1 -0
  260. package/dist/domains/comet-classic/classic-root-move.d.ts +119 -0
  261. package/dist/domains/comet-classic/classic-root-move.d.ts.map +1 -0
  262. package/dist/domains/comet-classic/classic-root-move.js +1737 -0
  263. package/dist/domains/comet-classic/classic-root-move.js.map +1 -0
  264. package/dist/domains/comet-classic/classic-runtime-run.d.ts +2 -1
  265. package/dist/domains/comet-classic/classic-runtime-run.d.ts.map +1 -1
  266. package/dist/domains/comet-classic/classic-runtime-run.js +278 -5
  267. package/dist/domains/comet-classic/classic-runtime-run.js.map +1 -1
  268. package/dist/domains/comet-classic/classic-state-command.d.ts.map +1 -1
  269. package/dist/domains/comet-classic/classic-state-command.js +342 -87
  270. package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
  271. package/dist/domains/comet-classic/classic-state-events.d.ts +1 -1
  272. package/dist/domains/comet-classic/classic-state-events.d.ts.map +1 -1
  273. package/dist/domains/comet-classic/classic-state-events.js +3 -4
  274. package/dist/domains/comet-classic/classic-state-events.js.map +1 -1
  275. package/dist/domains/comet-classic/classic-state.d.ts +6 -4
  276. package/dist/domains/comet-classic/classic-state.d.ts.map +1 -1
  277. package/dist/domains/comet-classic/classic-state.js +20 -7
  278. package/dist/domains/comet-classic/classic-state.js.map +1 -1
  279. package/dist/domains/comet-classic/classic-store.d.ts +6 -1
  280. package/dist/domains/comet-classic/classic-store.d.ts.map +1 -1
  281. package/dist/domains/comet-classic/classic-store.js +36 -23
  282. package/dist/domains/comet-classic/classic-store.js.map +1 -1
  283. package/dist/domains/comet-classic/classic-transitions.d.ts +1 -1
  284. package/dist/domains/comet-classic/classic-transitions.d.ts.map +1 -1
  285. package/dist/domains/comet-classic/classic-transitions.js +37 -3
  286. package/dist/domains/comet-classic/classic-transitions.js.map +1 -1
  287. package/dist/domains/comet-classic/classic-validate-command.d.ts.map +1 -1
  288. package/dist/domains/comet-classic/classic-validate-command.js +40 -20
  289. package/dist/domains/comet-classic/classic-validate-command.js.map +1 -1
  290. package/dist/domains/comet-classic/index.d.ts +3 -0
  291. package/dist/domains/comet-classic/index.d.ts.map +1 -1
  292. package/dist/domains/comet-classic/index.js +3 -0
  293. package/dist/domains/comet-classic/index.js.map +1 -1
  294. package/dist/domains/comet-entry/current-selection-repair.d.ts +17 -0
  295. package/dist/domains/comet-entry/current-selection-repair.d.ts.map +1 -0
  296. package/dist/domains/comet-entry/current-selection-repair.js +19 -0
  297. package/dist/domains/comet-entry/current-selection-repair.js.map +1 -0
  298. package/dist/domains/comet-entry/current-selection.d.ts +28 -0
  299. package/dist/domains/comet-entry/current-selection.d.ts.map +1 -0
  300. package/dist/domains/comet-entry/current-selection.js +114 -0
  301. package/dist/domains/comet-entry/current-selection.js.map +1 -0
  302. package/dist/domains/comet-entry/entry-runtime-entry.d.ts +2 -0
  303. package/dist/domains/comet-entry/entry-runtime-entry.d.ts.map +1 -0
  304. package/dist/domains/comet-entry/entry-runtime-entry.js +3 -0
  305. package/dist/domains/comet-entry/entry-runtime-entry.js.map +1 -0
  306. package/dist/domains/comet-entry/entry-runtime.d.ts +7 -0
  307. package/dist/domains/comet-entry/entry-runtime.d.ts.map +1 -0
  308. package/dist/domains/comet-entry/entry-runtime.js +55 -0
  309. package/dist/domains/comet-entry/entry-runtime.js.map +1 -0
  310. package/dist/domains/comet-entry/hook-adapter.d.ts +6 -0
  311. package/dist/domains/comet-entry/hook-adapter.d.ts.map +1 -0
  312. package/dist/domains/comet-entry/hook-adapter.js +202 -0
  313. package/dist/domains/comet-entry/hook-adapter.js.map +1 -0
  314. package/dist/domains/comet-entry/hook-router-entry.d.ts +8 -0
  315. package/dist/domains/comet-entry/hook-router-entry.d.ts.map +1 -0
  316. package/dist/domains/comet-entry/hook-router-entry.js +88 -0
  317. package/dist/domains/comet-entry/hook-router-entry.js.map +1 -0
  318. package/dist/domains/comet-entry/hook-router.d.ts +32 -0
  319. package/dist/domains/comet-entry/hook-router.d.ts.map +1 -0
  320. package/dist/domains/comet-entry/hook-router.js +133 -0
  321. package/dist/domains/comet-entry/hook-router.js.map +1 -0
  322. package/dist/domains/comet-entry/hook-types.d.ts +20 -0
  323. package/dist/domains/comet-entry/hook-types.d.ts.map +1 -0
  324. package/dist/domains/comet-entry/hook-types.js +2 -0
  325. package/dist/domains/comet-entry/hook-types.js.map +1 -0
  326. package/dist/domains/comet-entry/init-workflow.d.ts +19 -0
  327. package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -0
  328. package/dist/domains/comet-entry/init-workflow.js +118 -0
  329. package/dist/domains/comet-entry/init-workflow.js.map +1 -0
  330. package/dist/domains/comet-entry/project-status.d.ts +3 -0
  331. package/dist/domains/comet-entry/project-status.d.ts.map +1 -0
  332. package/dist/domains/comet-entry/project-status.js +291 -0
  333. package/dist/domains/comet-entry/project-status.js.map +1 -0
  334. package/dist/domains/comet-entry/resolve-entry.d.ts +3 -0
  335. package/dist/domains/comet-entry/resolve-entry.d.ts.map +1 -0
  336. package/dist/domains/comet-entry/resolve-entry.js +18 -0
  337. package/dist/domains/comet-entry/resolve-entry.js.map +1 -0
  338. package/dist/domains/comet-entry/resume-probe.d.ts +34 -0
  339. package/dist/domains/comet-entry/resume-probe.d.ts.map +1 -0
  340. package/dist/domains/comet-entry/resume-probe.js +462 -0
  341. package/dist/domains/comet-entry/resume-probe.js.map +1 -0
  342. package/dist/domains/comet-entry/types.d.ts +60 -0
  343. package/dist/domains/comet-entry/types.d.ts.map +1 -0
  344. package/dist/domains/comet-entry/types.js +2 -0
  345. package/dist/domains/comet-entry/types.js.map +1 -0
  346. package/dist/domains/comet-entry/workflow-resolution.d.ts +8 -0
  347. package/dist/domains/comet-entry/workflow-resolution.d.ts.map +1 -0
  348. package/dist/domains/comet-entry/workflow-resolution.js +16 -0
  349. package/dist/domains/comet-entry/workflow-resolution.js.map +1 -0
  350. package/dist/domains/comet-native/index.d.ts +35 -0
  351. package/dist/domains/comet-native/index.d.ts.map +1 -0
  352. package/dist/domains/comet-native/index.js +35 -0
  353. package/dist/domains/comet-native/index.js.map +1 -0
  354. package/dist/domains/comet-native/native-acceptance.d.ts +53 -0
  355. package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -0
  356. package/dist/domains/comet-native/native-acceptance.js +658 -0
  357. package/dist/domains/comet-native/native-acceptance.js.map +1 -0
  358. package/dist/domains/comet-native/native-archive-content.d.ts +26 -0
  359. package/dist/domains/comet-native/native-archive-content.d.ts.map +1 -0
  360. package/dist/domains/comet-native/native-archive-content.js +159 -0
  361. package/dist/domains/comet-native/native-archive-content.js.map +1 -0
  362. package/dist/domains/comet-native/native-archive-inspection.d.ts +9 -0
  363. package/dist/domains/comet-native/native-archive-inspection.d.ts.map +1 -0
  364. package/dist/domains/comet-native/native-archive-inspection.js +97 -0
  365. package/dist/domains/comet-native/native-archive-inspection.js.map +1 -0
  366. package/dist/domains/comet-native/native-archive-preflight.d.ts +54 -0
  367. package/dist/domains/comet-native/native-archive-preflight.d.ts.map +1 -0
  368. package/dist/domains/comet-native/native-archive-preflight.js +222 -0
  369. package/dist/domains/comet-native/native-archive-preflight.js.map +1 -0
  370. package/dist/domains/comet-native/native-archive-transaction.d.ts +20 -0
  371. package/dist/domains/comet-native/native-archive-transaction.d.ts.map +1 -0
  372. package/dist/domains/comet-native/native-archive-transaction.js +1183 -0
  373. package/dist/domains/comet-native/native-archive-transaction.js.map +1 -0
  374. package/dist/domains/comet-native/native-archive.d.ts +36 -0
  375. package/dist/domains/comet-native/native-archive.d.ts.map +1 -0
  376. package/dist/domains/comet-native/native-archive.js +422 -0
  377. package/dist/domains/comet-native/native-archive.js.map +1 -0
  378. package/dist/domains/comet-native/native-artifacts.d.ts +10 -0
  379. package/dist/domains/comet-native/native-artifacts.d.ts.map +1 -0
  380. package/dist/domains/comet-native/native-artifacts.js +204 -0
  381. package/dist/domains/comet-native/native-artifacts.js.map +1 -0
  382. package/dist/domains/comet-native/native-atomic-file.d.ts +10 -0
  383. package/dist/domains/comet-native/native-atomic-file.d.ts.map +1 -0
  384. package/dist/domains/comet-native/native-atomic-file.js +179 -0
  385. package/dist/domains/comet-native/native-atomic-file.js.map +1 -0
  386. package/dist/domains/comet-native/native-bounded-file.d.ts +19 -0
  387. package/dist/domains/comet-native/native-bounded-file.d.ts.map +1 -0
  388. package/dist/domains/comet-native/native-bounded-file.js +184 -0
  389. package/dist/domains/comet-native/native-bounded-file.js.map +1 -0
  390. package/dist/domains/comet-native/native-build-evidence.d.ts +42 -0
  391. package/dist/domains/comet-native/native-build-evidence.d.ts.map +1 -0
  392. package/dist/domains/comet-native/native-build-evidence.js +257 -0
  393. package/dist/domains/comet-native/native-build-evidence.js.map +1 -0
  394. package/dist/domains/comet-native/native-canonical-hash.d.ts +10 -0
  395. package/dist/domains/comet-native/native-canonical-hash.d.ts.map +1 -0
  396. package/dist/domains/comet-native/native-canonical-hash.js +100 -0
  397. package/dist/domains/comet-native/native-canonical-hash.js.map +1 -0
  398. package/dist/domains/comet-native/native-change-recovery.d.ts +11 -0
  399. package/dist/domains/comet-native/native-change-recovery.d.ts.map +1 -0
  400. package/dist/domains/comet-native/native-change-recovery.js +15 -0
  401. package/dist/domains/comet-native/native-change-recovery.js.map +1 -0
  402. package/dist/domains/comet-native/native-change.d.ts +66 -0
  403. package/dist/domains/comet-native/native-change.d.ts.map +1 -0
  404. package/dist/domains/comet-native/native-change.js +834 -0
  405. package/dist/domains/comet-native/native-change.js.map +1 -0
  406. package/dist/domains/comet-native/native-check-receipt-model.d.ts +63 -0
  407. package/dist/domains/comet-native/native-check-receipt-model.d.ts.map +1 -0
  408. package/dist/domains/comet-native/native-check-receipt-model.js +352 -0
  409. package/dist/domains/comet-native/native-check-receipt-model.js.map +1 -0
  410. package/dist/domains/comet-native/native-check-receipt-storage.d.ts +10 -0
  411. package/dist/domains/comet-native/native-check-receipt-storage.d.ts.map +1 -0
  412. package/dist/domains/comet-native/native-check-receipt-storage.js +200 -0
  413. package/dist/domains/comet-native/native-check-receipt-storage.js.map +1 -0
  414. package/dist/domains/comet-native/native-check-receipt.d.ts +19 -0
  415. package/dist/domains/comet-native/native-check-receipt.d.ts.map +1 -0
  416. package/dist/domains/comet-native/native-check-receipt.js +453 -0
  417. package/dist/domains/comet-native/native-check-receipt.js.map +1 -0
  418. package/dist/domains/comet-native/native-check.d.ts +24 -0
  419. package/dist/domains/comet-native/native-check.d.ts.map +1 -0
  420. package/dist/domains/comet-native/native-check.js +38 -0
  421. package/dist/domains/comet-native/native-check.js.map +1 -0
  422. package/dist/domains/comet-native/native-checkpoint-journal.d.ts +13 -0
  423. package/dist/domains/comet-native/native-checkpoint-journal.d.ts.map +1 -0
  424. package/dist/domains/comet-native/native-checkpoint-journal.js +53 -0
  425. package/dist/domains/comet-native/native-checkpoint-journal.js.map +1 -0
  426. package/dist/domains/comet-native/native-checkpoint-storage.d.ts +43 -0
  427. package/dist/domains/comet-native/native-checkpoint-storage.d.ts.map +1 -0
  428. package/dist/domains/comet-native/native-checkpoint-storage.js +487 -0
  429. package/dist/domains/comet-native/native-checkpoint-storage.js.map +1 -0
  430. package/dist/domains/comet-native/native-cli-entry.d.ts +2 -0
  431. package/dist/domains/comet-native/native-cli-entry.d.ts.map +1 -0
  432. package/dist/domains/comet-native/native-cli-entry.js +18 -0
  433. package/dist/domains/comet-native/native-cli-entry.js.map +1 -0
  434. package/dist/domains/comet-native/native-cli.d.ts +7 -0
  435. package/dist/domains/comet-native/native-cli.d.ts.map +1 -0
  436. package/dist/domains/comet-native/native-cli.js +1300 -0
  437. package/dist/domains/comet-native/native-cli.js.map +1 -0
  438. package/dist/domains/comet-native/native-config.d.ts +23 -0
  439. package/dist/domains/comet-native/native-config.d.ts.map +1 -0
  440. package/dist/domains/comet-native/native-config.js +60 -0
  441. package/dist/domains/comet-native/native-config.js.map +1 -0
  442. package/dist/domains/comet-native/native-conflict-inspection.d.ts +17 -0
  443. package/dist/domains/comet-native/native-conflict-inspection.d.ts.map +1 -0
  444. package/dist/domains/comet-native/native-conflict-inspection.js +90 -0
  445. package/dist/domains/comet-native/native-conflict-inspection.js.map +1 -0
  446. package/dist/domains/comet-native/native-conflict-radar.d.ts +75 -0
  447. package/dist/domains/comet-native/native-conflict-radar.d.ts.map +1 -0
  448. package/dist/domains/comet-native/native-conflict-radar.js +326 -0
  449. package/dist/domains/comet-native/native-conflict-radar.js.map +1 -0
  450. package/dist/domains/comet-native/native-continuation.d.ts +12 -0
  451. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -0
  452. package/dist/domains/comet-native/native-continuation.js +201 -0
  453. package/dist/domains/comet-native/native-continuation.js.map +1 -0
  454. package/dist/domains/comet-native/native-contract-files.d.ts +24 -0
  455. package/dist/domains/comet-native/native-contract-files.d.ts.map +1 -0
  456. package/dist/domains/comet-native/native-contract-files.js +66 -0
  457. package/dist/domains/comet-native/native-contract-files.js.map +1 -0
  458. package/dist/domains/comet-native/native-contract.d.ts +41 -0
  459. package/dist/domains/comet-native/native-contract.d.ts.map +1 -0
  460. package/dist/domains/comet-native/native-contract.js +142 -0
  461. package/dist/domains/comet-native/native-contract.js.map +1 -0
  462. package/dist/domains/comet-native/native-controller-trust.d.ts +22 -0
  463. package/dist/domains/comet-native/native-controller-trust.d.ts.map +1 -0
  464. package/dist/domains/comet-native/native-controller-trust.js +153 -0
  465. package/dist/domains/comet-native/native-controller-trust.js.map +1 -0
  466. package/dist/domains/comet-native/native-creation-authorization.d.ts +30 -0
  467. package/dist/domains/comet-native/native-creation-authorization.d.ts.map +1 -0
  468. package/dist/domains/comet-native/native-creation-authorization.js +110 -0
  469. package/dist/domains/comet-native/native-creation-authorization.js.map +1 -0
  470. package/dist/domains/comet-native/native-diagnostics.d.ts +25 -0
  471. package/dist/domains/comet-native/native-diagnostics.d.ts.map +1 -0
  472. package/dist/domains/comet-native/native-diagnostics.js +551 -0
  473. package/dist/domains/comet-native/native-diagnostics.js.map +1 -0
  474. package/dist/domains/comet-native/native-doctor.d.ts +12 -0
  475. package/dist/domains/comet-native/native-doctor.d.ts.map +1 -0
  476. package/dist/domains/comet-native/native-doctor.js +771 -0
  477. package/dist/domains/comet-native/native-doctor.js.map +1 -0
  478. package/dist/domains/comet-native/native-evidence-retention.d.ts +37 -0
  479. package/dist/domains/comet-native/native-evidence-retention.d.ts.map +1 -0
  480. package/dist/domains/comet-native/native-evidence-retention.js +916 -0
  481. package/dist/domains/comet-native/native-evidence-retention.js.map +1 -0
  482. package/dist/domains/comet-native/native-evidence-storage.d.ts +54 -0
  483. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -0
  484. package/dist/domains/comet-native/native-evidence-storage.js +401 -0
  485. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -0
  486. package/dist/domains/comet-native/native-file-identity.d.ts +3 -0
  487. package/dist/domains/comet-native/native-file-identity.d.ts.map +1 -0
  488. package/dist/domains/comet-native/native-file-identity.js +2 -0
  489. package/dist/domains/comet-native/native-file-identity.js.map +1 -0
  490. package/dist/domains/comet-native/native-findings.d.ts +8 -0
  491. package/dist/domains/comet-native/native-findings.d.ts.map +1 -0
  492. package/dist/domains/comet-native/native-findings.js +254 -0
  493. package/dist/domains/comet-native/native-findings.js.map +1 -0
  494. package/dist/domains/comet-native/native-guards.d.ts +8 -0
  495. package/dist/domains/comet-native/native-guards.d.ts.map +1 -0
  496. package/dist/domains/comet-native/native-guards.js +140 -0
  497. package/dist/domains/comet-native/native-guards.js.map +1 -0
  498. package/dist/domains/comet-native/native-hash.d.ts +3 -0
  499. package/dist/domains/comet-native/native-hash.d.ts.map +1 -0
  500. package/dist/domains/comet-native/native-hash.js +12 -0
  501. package/dist/domains/comet-native/native-hash.js.map +1 -0
  502. package/dist/domains/comet-native/native-hook-guard.d.ts +17 -0
  503. package/dist/domains/comet-native/native-hook-guard.d.ts.map +1 -0
  504. package/dist/domains/comet-native/native-hook-guard.js +154 -0
  505. package/dist/domains/comet-native/native-hook-guard.js.map +1 -0
  506. package/dist/domains/comet-native/native-independent-review.d.ts +28 -0
  507. package/dist/domains/comet-native/native-independent-review.d.ts.map +1 -0
  508. package/dist/domains/comet-native/native-independent-review.js +134 -0
  509. package/dist/domains/comet-native/native-independent-review.js.map +1 -0
  510. package/dist/domains/comet-native/native-lock.d.ts +47 -0
  511. package/dist/domains/comet-native/native-lock.d.ts.map +1 -0
  512. package/dist/domains/comet-native/native-lock.js +390 -0
  513. package/dist/domains/comet-native/native-lock.js.map +1 -0
  514. package/dist/domains/comet-native/native-mutation-lock.d.ts +5 -0
  515. package/dist/domains/comet-native/native-mutation-lock.d.ts.map +1 -0
  516. package/dist/domains/comet-native/native-mutation-lock.js +66 -0
  517. package/dist/domains/comet-native/native-mutation-lock.js.map +1 -0
  518. package/dist/domains/comet-native/native-paths.d.ts +10 -0
  519. package/dist/domains/comet-native/native-paths.d.ts.map +1 -0
  520. package/dist/domains/comet-native/native-paths.js +160 -0
  521. package/dist/domains/comet-native/native-paths.js.map +1 -0
  522. package/dist/domains/comet-native/native-progress-checkpoint.d.ts +13 -0
  523. package/dist/domains/comet-native/native-progress-checkpoint.d.ts.map +1 -0
  524. package/dist/domains/comet-native/native-progress-checkpoint.js +104 -0
  525. package/dist/domains/comet-native/native-progress-checkpoint.js.map +1 -0
  526. package/dist/domains/comet-native/native-protected-file.d.ts +113 -0
  527. package/dist/domains/comet-native/native-protected-file.d.ts.map +1 -0
  528. package/dist/domains/comet-native/native-protected-file.js +510 -0
  529. package/dist/domains/comet-native/native-protected-file.js.map +1 -0
  530. package/dist/domains/comet-native/native-redaction.d.ts +2 -0
  531. package/dist/domains/comet-native/native-redaction.d.ts.map +1 -0
  532. package/dist/domains/comet-native/native-redaction.js +18 -0
  533. package/dist/domains/comet-native/native-redaction.js.map +1 -0
  534. package/dist/domains/comet-native/native-repair-integration.d.ts +46 -0
  535. package/dist/domains/comet-native/native-repair-integration.d.ts.map +1 -0
  536. package/dist/domains/comet-native/native-repair-integration.js +235 -0
  537. package/dist/domains/comet-native/native-repair-integration.js.map +1 -0
  538. package/dist/domains/comet-native/native-repair-runtime.d.ts +78 -0
  539. package/dist/domains/comet-native/native-repair-runtime.d.ts.map +1 -0
  540. package/dist/domains/comet-native/native-repair-runtime.js +593 -0
  541. package/dist/domains/comet-native/native-repair-runtime.js.map +1 -0
  542. package/dist/domains/comet-native/native-repair-stagnation.d.ts +89 -0
  543. package/dist/domains/comet-native/native-repair-stagnation.d.ts.map +1 -0
  544. package/dist/domains/comet-native/native-repair-stagnation.js +308 -0
  545. package/dist/domains/comet-native/native-repair-stagnation.js.map +1 -0
  546. package/dist/domains/comet-native/native-resume-view.d.ts +14 -0
  547. package/dist/domains/comet-native/native-resume-view.d.ts.map +1 -0
  548. package/dist/domains/comet-native/native-resume-view.js +105 -0
  549. package/dist/domains/comet-native/native-resume-view.js.map +1 -0
  550. package/dist/domains/comet-native/native-review-contract.d.ts +6 -0
  551. package/dist/domains/comet-native/native-review-contract.d.ts.map +1 -0
  552. package/dist/domains/comet-native/native-review-contract.js +6 -0
  553. package/dist/domains/comet-native/native-review-contract.js.map +1 -0
  554. package/dist/domains/comet-native/native-review-identity.d.ts +50 -0
  555. package/dist/domains/comet-native/native-review-identity.d.ts.map +1 -0
  556. package/dist/domains/comet-native/native-review-identity.js +209 -0
  557. package/dist/domains/comet-native/native-review-identity.js.map +1 -0
  558. package/dist/domains/comet-native/native-review-signer.d.ts +24 -0
  559. package/dist/domains/comet-native/native-review-signer.d.ts.map +1 -0
  560. package/dist/domains/comet-native/native-review-signer.js +125 -0
  561. package/dist/domains/comet-native/native-review-signer.js.map +1 -0
  562. package/dist/domains/comet-native/native-review-trust.d.ts +35 -0
  563. package/dist/domains/comet-native/native-review-trust.d.ts.map +1 -0
  564. package/dist/domains/comet-native/native-review-trust.js +176 -0
  565. package/dist/domains/comet-native/native-review-trust.js.map +1 -0
  566. package/dist/domains/comet-native/native-revision.d.ts +20 -0
  567. package/dist/domains/comet-native/native-revision.d.ts.map +1 -0
  568. package/dist/domains/comet-native/native-revision.js +32 -0
  569. package/dist/domains/comet-native/native-revision.js.map +1 -0
  570. package/dist/domains/comet-native/native-root-move.d.ts +20 -0
  571. package/dist/domains/comet-native/native-root-move.d.ts.map +1 -0
  572. package/dist/domains/comet-native/native-root-move.js +818 -0
  573. package/dist/domains/comet-native/native-root-move.js.map +1 -0
  574. package/dist/domains/comet-native/native-run-consistency.d.ts +3 -0
  575. package/dist/domains/comet-native/native-run-consistency.d.ts.map +1 -0
  576. package/dist/domains/comet-native/native-run-consistency.js +136 -0
  577. package/dist/domains/comet-native/native-run-consistency.js.map +1 -0
  578. package/dist/domains/comet-native/native-run-store.d.ts +41 -0
  579. package/dist/domains/comet-native/native-run-store.d.ts.map +1 -0
  580. package/dist/domains/comet-native/native-run-store.js +452 -0
  581. package/dist/domains/comet-native/native-run-store.js.map +1 -0
  582. package/dist/domains/comet-native/native-runtime-package.d.ts +16 -0
  583. package/dist/domains/comet-native/native-runtime-package.d.ts.map +1 -0
  584. package/dist/domains/comet-native/native-runtime-package.js +72 -0
  585. package/dist/domains/comet-native/native-runtime-package.js.map +1 -0
  586. package/dist/domains/comet-native/native-schema-migration.d.ts +11 -0
  587. package/dist/domains/comet-native/native-schema-migration.d.ts.map +1 -0
  588. package/dist/domains/comet-native/native-schema-migration.js +900 -0
  589. package/dist/domains/comet-native/native-schema-migration.js.map +1 -0
  590. package/dist/domains/comet-native/native-selection.d.ts +12 -0
  591. package/dist/domains/comet-native/native-selection.d.ts.map +1 -0
  592. package/dist/domains/comet-native/native-selection.js +52 -0
  593. package/dist/domains/comet-native/native-selection.js.map +1 -0
  594. package/dist/domains/comet-native/native-sensitive-paths.d.ts +7 -0
  595. package/dist/domains/comet-native/native-sensitive-paths.d.ts.map +1 -0
  596. package/dist/domains/comet-native/native-sensitive-paths.js +69 -0
  597. package/dist/domains/comet-native/native-sensitive-paths.js.map +1 -0
  598. package/dist/domains/comet-native/native-snapshot.d.ts +78 -0
  599. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -0
  600. package/dist/domains/comet-native/native-snapshot.js +2609 -0
  601. package/dist/domains/comet-native/native-snapshot.js.map +1 -0
  602. package/dist/domains/comet-native/native-specs.d.ts +12 -0
  603. package/dist/domains/comet-native/native-specs.d.ts.map +1 -0
  604. package/dist/domains/comet-native/native-specs.js +270 -0
  605. package/dist/domains/comet-native/native-specs.js.map +1 -0
  606. package/dist/domains/comet-native/native-trajectory-limits.d.ts +7 -0
  607. package/dist/domains/comet-native/native-trajectory-limits.d.ts.map +1 -0
  608. package/dist/domains/comet-native/native-trajectory-limits.js +13 -0
  609. package/dist/domains/comet-native/native-trajectory-limits.js.map +1 -0
  610. package/dist/domains/comet-native/native-trajectory-recovery.d.ts +37 -0
  611. package/dist/domains/comet-native/native-trajectory-recovery.d.ts.map +1 -0
  612. package/dist/domains/comet-native/native-trajectory-recovery.js +133 -0
  613. package/dist/domains/comet-native/native-trajectory-recovery.js.map +1 -0
  614. package/dist/domains/comet-native/native-trajectory.d.ts +16 -0
  615. package/dist/domains/comet-native/native-trajectory.d.ts.map +1 -0
  616. package/dist/domains/comet-native/native-trajectory.js +27 -0
  617. package/dist/domains/comet-native/native-trajectory.js.map +1 -0
  618. package/dist/domains/comet-native/native-transaction.d.ts +45 -0
  619. package/dist/domains/comet-native/native-transaction.d.ts.map +1 -0
  620. package/dist/domains/comet-native/native-transaction.js +846 -0
  621. package/dist/domains/comet-native/native-transaction.js.map +1 -0
  622. package/dist/domains/comet-native/native-transition-evidence.d.ts +4 -0
  623. package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -0
  624. package/dist/domains/comet-native/native-transition-evidence.js +27 -0
  625. package/dist/domains/comet-native/native-transition-evidence.js.map +1 -0
  626. package/dist/domains/comet-native/native-transition-journal.d.ts +30 -0
  627. package/dist/domains/comet-native/native-transition-journal.d.ts.map +1 -0
  628. package/dist/domains/comet-native/native-transition-journal.js +819 -0
  629. package/dist/domains/comet-native/native-transition-journal.js.map +1 -0
  630. package/dist/domains/comet-native/native-transitions.d.ts +15 -0
  631. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -0
  632. package/dist/domains/comet-native/native-transitions.js +683 -0
  633. package/dist/domains/comet-native/native-transitions.js.map +1 -0
  634. package/dist/domains/comet-native/native-types.d.ts +556 -0
  635. package/dist/domains/comet-native/native-types.d.ts.map +1 -0
  636. package/dist/domains/comet-native/native-types.js +8 -0
  637. package/dist/domains/comet-native/native-types.js.map +1 -0
  638. package/dist/domains/comet-native/native-verification-evidence.d.ts +136 -0
  639. package/dist/domains/comet-native/native-verification-evidence.d.ts.map +1 -0
  640. package/dist/domains/comet-native/native-verification-evidence.js +824 -0
  641. package/dist/domains/comet-native/native-verification-evidence.js.map +1 -0
  642. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +188 -0
  643. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -0
  644. package/dist/domains/comet-native/native-verification-receipt-runtime.js +1129 -0
  645. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -0
  646. package/dist/domains/comet-native/native-verification-receipt.d.ts +165 -0
  647. package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -0
  648. package/dist/domains/comet-native/native-verification-receipt.js +636 -0
  649. package/dist/domains/comet-native/native-verification-receipt.js.map +1 -0
  650. package/dist/domains/comet-native/native-verification-runtime.d.ts +61 -0
  651. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -0
  652. package/dist/domains/comet-native/native-verification-runtime.js +609 -0
  653. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -0
  654. package/dist/domains/comet-native/native-verification-scope.d.ts +118 -0
  655. package/dist/domains/comet-native/native-verification-scope.d.ts.map +1 -0
  656. package/dist/domains/comet-native/native-verification-scope.js +1045 -0
  657. package/dist/domains/comet-native/native-verification-scope.js.map +1 -0
  658. package/dist/domains/comet-native/native-workspace.d.ts +46 -0
  659. package/dist/domains/comet-native/native-workspace.d.ts.map +1 -0
  660. package/dist/domains/comet-native/native-workspace.js +276 -0
  661. package/dist/domains/comet-native/native-workspace.js.map +1 -0
  662. package/dist/domains/dashboard/collector.d.ts.map +1 -1
  663. package/dist/domains/dashboard/collector.js +182 -75
  664. package/dist/domains/dashboard/collector.js.map +1 -1
  665. package/dist/domains/dashboard/native-adapter.d.ts +157 -0
  666. package/dist/domains/dashboard/native-adapter.d.ts.map +1 -0
  667. package/dist/domains/dashboard/native-adapter.js +302 -0
  668. package/dist/domains/dashboard/native-adapter.js.map +1 -0
  669. package/dist/domains/dashboard/native-collector.d.ts +6 -0
  670. package/dist/domains/dashboard/native-collector.d.ts.map +1 -0
  671. package/dist/domains/dashboard/native-collector.js +289 -0
  672. package/dist/domains/dashboard/native-collector.js.map +1 -0
  673. package/dist/domains/dashboard/types.d.ts +10 -0
  674. package/dist/domains/dashboard/types.d.ts.map +1 -1
  675. package/dist/domains/dashboard/verify-parser.d.ts.map +1 -1
  676. package/dist/domains/dashboard/verify-parser.js +37 -31
  677. package/dist/domains/dashboard/verify-parser.js.map +1 -1
  678. package/dist/domains/dashboard/web/assets/_commonjsHelpers-CqkleIqs.js +1 -0
  679. package/dist/domains/dashboard/web/assets/arc-BXWNV2Qv.js +1 -0
  680. package/dist/domains/dashboard/web/assets/architectureDiagram-3BPJPVTR-CjVHPivo.js +36 -0
  681. package/dist/domains/dashboard/web/assets/blockDiagram-GPEHLZMM-P2PGImSM.js +132 -0
  682. package/dist/domains/dashboard/web/assets/c4Diagram-AAUBKEIU-fTj6Xhs1.js +10 -0
  683. package/dist/domains/dashboard/web/assets/channel--JtnhJr8.js +1 -0
  684. package/dist/domains/dashboard/web/assets/chunk-2J33WTMH-BjFDZ5yo.js +1 -0
  685. package/dist/domains/dashboard/web/assets/chunk-4BX2VUAB-BAUkbZdT.js +1 -0
  686. package/dist/domains/dashboard/web/assets/chunk-55IACEB6-DBmuiYme.js +1 -0
  687. package/dist/domains/dashboard/web/assets/chunk-727SXJPM-Do9ufCgY.js +206 -0
  688. package/dist/domains/dashboard/web/assets/chunk-AQP2D5EJ-qRQWlB5d.js +231 -0
  689. package/dist/domains/dashboard/web/assets/chunk-FMBD7UC4-BzDzeJ4_.js +15 -0
  690. package/dist/domains/dashboard/web/assets/chunk-ND2GUHAM-OQcAmIvL.js +1 -0
  691. package/dist/domains/dashboard/web/assets/chunk-QZHKN3VN-BiRfH4d2.js +1 -0
  692. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BRGmx8Iz.js +1 -0
  693. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BRGmx8Iz.js +1 -0
  694. package/dist/domains/dashboard/web/assets/cose-bilkent-S5V4N54A-CZk37fGn.js +1 -0
  695. package/dist/domains/dashboard/web/assets/cynefin-VYW2F7L2-B3F-qRTJ.js +166 -0
  696. package/dist/domains/dashboard/web/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
  697. package/dist/domains/dashboard/web/assets/dagre-BM42HDAG-D5BQ0eqN.js +4 -0
  698. package/dist/domains/dashboard/web/assets/defaultLocale-DX6XiGOO.js +1 -0
  699. package/dist/domains/dashboard/web/assets/demo-BuVau32v.js +25 -0
  700. package/dist/domains/dashboard/web/assets/diagram-2AECGRRQ-33mXstha.js +43 -0
  701. package/dist/domains/dashboard/web/assets/diagram-5GNKFQAL-BWHCMFvD.js +10 -0
  702. package/dist/domains/dashboard/web/assets/diagram-KO2AKTUF-DrPGimEt.js +3 -0
  703. package/dist/domains/dashboard/web/assets/diagram-LMA3HP47-BBlsg7jG.js +24 -0
  704. package/dist/domains/dashboard/web/assets/diagram-OG6HWLK6-CsaFSpHi.js +24 -0
  705. package/dist/domains/dashboard/web/assets/erDiagram-TEJ5UH35-CoB0mzhk.js +85 -0
  706. package/dist/domains/dashboard/web/assets/flowDiagram-I6XJVG4X-lT53XfSE.js +162 -0
  707. package/dist/domains/dashboard/web/assets/ganttDiagram-6RSMTGT7-D1SQ56fl.js +292 -0
  708. package/dist/domains/dashboard/web/assets/gitGraphDiagram-PVQCEYII-D4oDMS5x.js +106 -0
  709. package/dist/domains/dashboard/web/assets/graph--OzhPTMs.js +1 -0
  710. package/dist/domains/dashboard/web/assets/index-D-AGxvI4.css +1 -0
  711. package/dist/domains/dashboard/web/assets/index-DlSYK56b.js +139 -0
  712. package/dist/domains/dashboard/web/assets/index-Msce_H_q.js +24 -0
  713. package/dist/domains/dashboard/web/assets/index-QO0z6F4w.js +10 -0
  714. package/dist/domains/dashboard/web/assets/infoDiagram-5YYISTIA-BeICn98s.js +2 -0
  715. package/dist/domains/dashboard/web/assets/init-Gi6I4Gst.js +1 -0
  716. package/dist/domains/dashboard/web/assets/ishikawaDiagram-YF4QCWOH-Dkspu33d.js +70 -0
  717. package/dist/domains/dashboard/web/assets/journeyDiagram-JHISSGLW-C-EM1sZl.js +139 -0
  718. package/dist/domains/dashboard/web/assets/kanban-definition-UN3LZRKU-BTbB0IO2.js +89 -0
  719. package/dist/domains/dashboard/web/assets/katex-HP8lGamR.js +257 -0
  720. package/dist/domains/dashboard/web/assets/layout-SsrduOYp.js +1 -0
  721. package/dist/domains/dashboard/web/assets/linear-Cp0UrqDr.js +1 -0
  722. package/dist/domains/dashboard/web/assets/marked.esm-DECB3bxB.js +64 -0
  723. package/dist/domains/dashboard/web/assets/mermaid.core-CucmqsLW.js +301 -0
  724. package/dist/domains/dashboard/web/assets/mindmap-definition-RKZ34NQL-CjEshF1X.js +96 -0
  725. package/dist/domains/dashboard/web/assets/ordinal-Cboi1Yqb.js +1 -0
  726. package/dist/domains/dashboard/web/assets/pieDiagram-4H26LBE5-DrwFnX1b.js +30 -0
  727. package/dist/domains/dashboard/web/assets/purify.es-VaSPOPhr.js +3 -0
  728. package/dist/domains/dashboard/web/assets/quadrantDiagram-W4KKPZXB-CjG6pBR2.js +7 -0
  729. package/dist/domains/dashboard/web/assets/requirementDiagram-4Y6WPE33-BpUQVqCV.js +84 -0
  730. package/dist/domains/dashboard/web/assets/sankeyDiagram-5OEKKPKP-BeGkEvzR.js +40 -0
  731. package/dist/domains/dashboard/web/assets/sequenceDiagram-3UESZ5HK-sSTU3MCO.js +162 -0
  732. package/dist/domains/dashboard/web/assets/stateDiagram-AJRCARHV-CcFBc6qh.js +1 -0
  733. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-D5zZYi4x.js +1 -0
  734. package/dist/domains/dashboard/web/assets/timeline-definition-PNZ67QCA-DCN7NjEs.js +120 -0
  735. package/dist/domains/dashboard/web/assets/vennDiagram-CIIHVFJN-DZAN1_rr.js +34 -0
  736. package/dist/domains/dashboard/web/assets/wardleyDiagram-YWT4CUSO-FfkJfr4C.js +78 -0
  737. package/dist/domains/dashboard/web/assets/xychartDiagram-2RQKCTM6-CD8B-EmR.js +7 -0
  738. package/dist/domains/dashboard/web/index.html +16 -16
  739. package/dist/domains/engine/protected-run-file.d.ts +15 -0
  740. package/dist/domains/engine/protected-run-file.d.ts.map +1 -0
  741. package/dist/domains/engine/protected-run-file.js +76 -0
  742. package/dist/domains/engine/protected-run-file.js.map +1 -0
  743. package/dist/domains/engine/run-store.d.ts +12 -11
  744. package/dist/domains/engine/run-store.d.ts.map +1 -1
  745. package/dist/domains/engine/run-store.js +46 -65
  746. package/dist/domains/engine/run-store.js.map +1 -1
  747. package/dist/domains/engine/state.d.ts +4 -3
  748. package/dist/domains/engine/state.d.ts.map +1 -1
  749. package/dist/domains/engine/state.js +10 -21
  750. package/dist/domains/engine/state.js.map +1 -1
  751. package/dist/domains/engine/storage-layout.d.ts +14 -0
  752. package/dist/domains/engine/storage-layout.d.ts.map +1 -0
  753. package/dist/domains/engine/storage-layout.js +32 -0
  754. package/dist/domains/engine/storage-layout.js.map +1 -0
  755. package/dist/domains/engine/storage-run.d.ts +9 -0
  756. package/dist/domains/engine/storage-run.d.ts.map +1 -0
  757. package/dist/domains/engine/storage-run.js +116 -0
  758. package/dist/domains/engine/storage-run.js.map +1 -0
  759. package/dist/domains/engine/types.d.ts +1 -1
  760. package/dist/domains/engine/types.d.ts.map +1 -1
  761. package/dist/domains/factory/package.d.ts.map +1 -1
  762. package/dist/domains/factory/package.js +562 -91
  763. package/dist/domains/factory/package.js.map +1 -1
  764. package/dist/domains/integrations/codegraph.d.ts +13 -2
  765. package/dist/domains/integrations/codegraph.d.ts.map +1 -1
  766. package/dist/domains/integrations/codegraph.js +160 -12
  767. package/dist/domains/integrations/codegraph.js.map +1 -1
  768. package/dist/domains/integrations/openspec.d.ts +12 -2
  769. package/dist/domains/integrations/openspec.d.ts.map +1 -1
  770. package/dist/domains/integrations/openspec.js +256 -47
  771. package/dist/domains/integrations/openspec.js.map +1 -1
  772. package/dist/domains/skill/find.js +8 -7
  773. package/dist/domains/skill/find.js.map +1 -1
  774. package/dist/domains/skill/json-object.d.ts +13 -0
  775. package/dist/domains/skill/json-object.d.ts.map +1 -0
  776. package/dist/domains/skill/json-object.js +24 -0
  777. package/dist/domains/skill/json-object.js.map +1 -0
  778. package/dist/domains/skill/languages.d.ts +2 -1
  779. package/dist/domains/skill/languages.d.ts.map +1 -1
  780. package/dist/domains/skill/languages.js +4 -1
  781. package/dist/domains/skill/languages.js.map +1 -1
  782. package/dist/domains/skill/managed-markdown.d.ts +14 -0
  783. package/dist/domains/skill/managed-markdown.d.ts.map +1 -0
  784. package/dist/domains/skill/managed-markdown.js +126 -0
  785. package/dist/domains/skill/managed-markdown.js.map +1 -0
  786. package/dist/domains/skill/platform-inspect.d.ts +13 -0
  787. package/dist/domains/skill/platform-inspect.d.ts.map +1 -0
  788. package/dist/domains/skill/platform-inspect.js +193 -0
  789. package/dist/domains/skill/platform-inspect.js.map +1 -0
  790. package/dist/domains/skill/platform-install.d.ts +38 -23
  791. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  792. package/dist/domains/skill/platform-install.js +809 -230
  793. package/dist/domains/skill/platform-install.js.map +1 -1
  794. package/dist/domains/skill/project-instructions.d.ts +22 -0
  795. package/dist/domains/skill/project-instructions.d.ts.map +1 -0
  796. package/dist/domains/skill/project-instructions.js +69 -0
  797. package/dist/domains/skill/project-instructions.js.map +1 -0
  798. package/dist/domains/skill/uninstall.d.ts +9 -2
  799. package/dist/domains/skill/uninstall.d.ts.map +1 -1
  800. package/dist/domains/skill/uninstall.js +734 -158
  801. package/dist/domains/skill/uninstall.js.map +1 -1
  802. package/dist/domains/workflow-contract/builtins.d.ts +6 -0
  803. package/dist/domains/workflow-contract/builtins.d.ts.map +1 -1
  804. package/dist/domains/workflow-contract/builtins.js +149 -6
  805. package/dist/domains/workflow-contract/builtins.js.map +1 -1
  806. package/dist/domains/workflow-contract/contained-atomic-write.d.ts +21 -0
  807. package/dist/domains/workflow-contract/contained-atomic-write.d.ts.map +1 -0
  808. package/dist/domains/workflow-contract/contained-atomic-write.js +235 -0
  809. package/dist/domains/workflow-contract/contained-atomic-write.js.map +1 -0
  810. package/dist/domains/workflow-contract/index.d.ts +11 -1
  811. package/dist/domains/workflow-contract/index.d.ts.map +1 -1
  812. package/dist/domains/workflow-contract/index.js +7 -1
  813. package/dist/domains/workflow-contract/index.js.map +1 -1
  814. package/dist/domains/workflow-contract/normalize.d.ts.map +1 -1
  815. package/dist/domains/workflow-contract/normalize.js +30 -11
  816. package/dist/domains/workflow-contract/normalize.js.map +1 -1
  817. package/dist/domains/workflow-contract/project-config-reader.d.ts +24 -0
  818. package/dist/domains/workflow-contract/project-config-reader.d.ts.map +1 -0
  819. package/dist/domains/workflow-contract/project-config-reader.js +54 -0
  820. package/dist/domains/workflow-contract/project-config-reader.js.map +1 -0
  821. package/dist/domains/workflow-contract/project-config-transaction.d.ts +20 -0
  822. package/dist/domains/workflow-contract/project-config-transaction.d.ts.map +1 -0
  823. package/dist/domains/workflow-contract/project-config-transaction.js +293 -0
  824. package/dist/domains/workflow-contract/project-config-transaction.js.map +1 -0
  825. package/dist/domains/workflow-contract/project-config-writer.d.ts +13 -0
  826. package/dist/domains/workflow-contract/project-config-writer.d.ts.map +1 -0
  827. package/dist/domains/workflow-contract/project-config-writer.js +142 -0
  828. package/dist/domains/workflow-contract/project-config-writer.js.map +1 -0
  829. package/dist/domains/workflow-contract/project-config.d.ts +32 -0
  830. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -0
  831. package/dist/domains/workflow-contract/project-config.js +1566 -0
  832. package/dist/domains/workflow-contract/project-config.js.map +1 -0
  833. package/dist/domains/workflow-contract/protected-project-path.d.ts +34 -0
  834. package/dist/domains/workflow-contract/protected-project-path.d.ts.map +1 -0
  835. package/dist/domains/workflow-contract/protected-project-path.js +162 -0
  836. package/dist/domains/workflow-contract/protected-project-path.js.map +1 -0
  837. package/dist/domains/workflow-contract/types.d.ts +67 -2
  838. package/dist/domains/workflow-contract/types.d.ts.map +1 -1
  839. package/dist/domains/workflow-contract/validation.d.ts.map +1 -1
  840. package/dist/domains/workflow-contract/validation.js +14 -5
  841. package/dist/domains/workflow-contract/validation.js.map +1 -1
  842. package/dist/platform/fs/file-identity.d.ts +9 -0
  843. package/dist/platform/fs/file-identity.d.ts.map +1 -0
  844. package/dist/platform/fs/file-identity.js +21 -0
  845. package/dist/platform/fs/file-identity.js.map +1 -0
  846. package/dist/platform/fs/file-system.d.ts +3 -3
  847. package/dist/platform/fs/file-system.d.ts.map +1 -1
  848. package/dist/platform/fs/file-system.js +31 -17
  849. package/dist/platform/fs/file-system.js.map +1 -1
  850. package/dist/platform/fs/race-safe-read.d.ts +47 -0
  851. package/dist/platform/fs/race-safe-read.d.ts.map +1 -0
  852. package/dist/platform/fs/race-safe-read.js +132 -0
  853. package/dist/platform/fs/race-safe-read.js.map +1 -0
  854. package/dist/platform/fs/trusted-readonly-file.d.ts +31 -0
  855. package/dist/platform/fs/trusted-readonly-file.d.ts.map +1 -0
  856. package/dist/platform/fs/trusted-readonly-file.js +107 -0
  857. package/dist/platform/fs/trusted-readonly-file.js.map +1 -0
  858. package/dist/platform/install/detect.d.ts +5 -2
  859. package/dist/platform/install/detect.d.ts.map +1 -1
  860. package/dist/platform/install/detect.js +14 -2
  861. package/dist/platform/install/detect.js.map +1 -1
  862. package/dist/platform/install/platform-targets.d.ts +8 -0
  863. package/dist/platform/install/platform-targets.d.ts.map +1 -0
  864. package/dist/platform/install/platform-targets.js +31 -0
  865. package/dist/platform/install/platform-targets.js.map +1 -0
  866. package/dist/platform/install/platforms.d.ts +10 -1
  867. package/dist/platform/install/platforms.d.ts.map +1 -1
  868. package/dist/platform/install/platforms.js +27 -4
  869. package/dist/platform/install/platforms.js.map +1 -1
  870. package/dist/platform/install/project-registry.d.ts +38 -0
  871. package/dist/platform/install/project-registry.d.ts.map +1 -0
  872. package/dist/platform/install/project-registry.js +213 -0
  873. package/dist/platform/install/project-registry.js.map +1 -0
  874. package/dist/platform/install/skill-root-owner.d.ts +15 -0
  875. package/dist/platform/install/skill-root-owner.d.ts.map +1 -0
  876. package/dist/platform/install/skill-root-owner.js +68 -0
  877. package/dist/platform/install/skill-root-owner.js.map +1 -0
  878. package/dist/platform/paths/git-worktree.d.ts +10 -0
  879. package/dist/platform/paths/git-worktree.d.ts.map +1 -0
  880. package/dist/platform/paths/git-worktree.js +43 -0
  881. package/dist/platform/paths/git-worktree.js.map +1 -0
  882. package/dist/platform/paths/repository-layout.d.ts +16 -0
  883. package/dist/platform/paths/repository-layout.d.ts.map +1 -1
  884. package/dist/platform/paths/repository-layout.js.map +1 -1
  885. package/dist/platform/process/terminate-process-tree.d.ts +3 -0
  886. package/dist/platform/process/terminate-process-tree.d.ts.map +1 -0
  887. package/dist/platform/process/terminate-process-tree.js +65 -0
  888. package/dist/platform/process/terminate-process-tree.js.map +1 -0
  889. package/eval/CLAUDE.md +43 -0
  890. package/eval/README.md +538 -0
  891. package/eval/langsmith/README.md +93 -0
  892. package/eval/langsmith/skills/README.md +5 -0
  893. package/eval/langsmith/tasks/README.md +5 -0
  894. package/eval/langsmith/tests/conftest.py +187 -0
  895. package/eval/langsmith/tests/tasks/test_tasks.py +287 -0
  896. package/eval/langsmith/treatments/README.md +5 -0
  897. package/eval/local/README.md +130 -0
  898. package/eval/local/regression_baseline.json +13 -0
  899. package/eval/local/report-style-demo-assets/quality_cost.en.svg +41 -0
  900. package/eval/local/report-style-demo-assets/quality_cost.zh.svg +41 -0
  901. package/eval/local/report-style-demo-assets/rubric_delta.en.svg +56 -0
  902. package/eval/local/report-style-demo-assets/rubric_delta.zh.svg +56 -0
  903. package/eval/local/report-style-demo-assets/task_outcomes.en.svg +46 -0
  904. package/eval/local/report-style-demo-assets/task_outcomes.zh.svg +46 -0
  905. package/eval/local/report-style-demo.html +867 -0
  906. package/eval/local/scripts/compare_baselines.py +1144 -0
  907. package/eval/local/scripts/generate_report_style_demo_charts.py +322 -0
  908. package/eval/local/scripts/regression_check.py +170 -0
  909. package/eval/local/scripts/render_readme_benchmark_figures.py +416 -0
  910. package/eval/local/scripts/rescore_rubric.py +120 -0
  911. package/eval/local/skills/benchmarks/039-release/comet-classic-039/SKILL.md +282 -0
  912. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/auto-transition.md +27 -0
  913. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/comet-yaml-fields.md +68 -0
  914. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/context-recovery.md +35 -0
  915. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/debug-gate.md +17 -0
  916. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/decision-point.md +20 -0
  917. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/dirty-worktree.md +59 -0
  918. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/file-structure.md +28 -0
  919. package/eval/local/skills/benchmarks/039-release/comet-classic-039/reference/subagent-dispatch.md +113 -0
  920. package/eval/local/skills/benchmarks/039-release/comet-classic-039/rules/comet-phase-guard.md +125 -0
  921. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-archive.sh +311 -0
  922. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-env.sh +110 -0
  923. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-guard.sh +778 -0
  924. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-handoff.sh +390 -0
  925. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-hook-guard.sh +336 -0
  926. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-state.sh +1338 -0
  927. package/eval/local/skills/benchmarks/039-release/comet-classic-039/scripts/comet-yaml-validate.sh +225 -0
  928. package/eval/local/skills/benchmarks/039-release/comet-classic-039-archive/SKILL.md +100 -0
  929. package/eval/local/skills/benchmarks/039-release/comet-classic-039-build/SKILL.md +304 -0
  930. package/eval/local/skills/benchmarks/039-release/comet-classic-039-design/SKILL.md +263 -0
  931. package/eval/local/skills/benchmarks/039-release/comet-classic-039-hotfix/SKILL.md +204 -0
  932. package/eval/local/skills/benchmarks/039-release/comet-classic-039-open/SKILL.md +220 -0
  933. package/eval/local/skills/benchmarks/039-release/comet-classic-039-tweak/SKILL.md +180 -0
  934. package/eval/local/skills/benchmarks/039-release/comet-classic-039-verify/SKILL.md +234 -0
  935. package/eval/local/skills/benchmarks/040-beta/comet/SKILL.md +261 -0
  936. package/eval/local/skills/benchmarks/040-beta/comet/reference/auto-transition.md +27 -0
  937. package/eval/local/skills/benchmarks/040-beta/comet/reference/comet-yaml-fields.md +73 -0
  938. package/eval/local/skills/benchmarks/040-beta/comet/reference/context-recovery.md +45 -0
  939. package/eval/local/skills/benchmarks/040-beta/comet/reference/debug-gate.md +33 -0
  940. package/eval/local/skills/benchmarks/040-beta/comet/reference/decision-point.md +31 -0
  941. package/eval/local/skills/benchmarks/040-beta/comet/reference/dirty-worktree.md +59 -0
  942. package/eval/local/skills/benchmarks/040-beta/comet/reference/file-structure.md +28 -0
  943. package/eval/local/skills/benchmarks/040-beta/comet/reference/intent-frame.md +74 -0
  944. package/eval/local/skills/benchmarks/040-beta/comet/reference/scripts.md +69 -0
  945. package/eval/local/skills/benchmarks/040-beta/comet/reference/subagent-dispatch.md +169 -0
  946. package/eval/local/skills/benchmarks/040-beta/comet/rules/comet-phase-guard.md +130 -0
  947. package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/checks.yaml +6 -0
  948. package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/guardrails.yaml +13 -0
  949. package/eval/local/skills/benchmarks/040-beta/comet/runtime/classic/skill.yaml +122 -0
  950. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-archive.mjs +9515 -0
  951. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-env.mjs +15 -0
  952. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-guard.mjs +10173 -0
  953. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-handoff.mjs +9491 -0
  954. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-hook-guard.mjs +9175 -0
  955. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-intent.mjs +404 -0
  956. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-state.mjs +9273 -0
  957. package/eval/local/skills/benchmarks/040-beta/comet/scripts/comet-yaml-validate.mjs +7627 -0
  958. package/eval/local/skills/benchmarks/040-beta/comet-archive/SKILL.md +110 -0
  959. package/eval/local/skills/benchmarks/040-beta/comet-build/SKILL.md +315 -0
  960. package/eval/local/skills/benchmarks/040-beta/comet-design/SKILL.md +260 -0
  961. package/eval/local/skills/benchmarks/040-beta/comet-hotfix/SKILL.md +190 -0
  962. package/eval/local/skills/benchmarks/040-beta/comet-open/SKILL.md +210 -0
  963. package/eval/local/skills/benchmarks/040-beta/comet-tweak/SKILL.md +183 -0
  964. package/eval/local/skills/benchmarks/040-beta/comet-verify/SKILL.md +230 -0
  965. package/eval/local/skills/benchmarks/dependency/claude-md/comet-workflow/CLAUDE.md +12 -0
  966. package/eval/local/skills/benchmarks/dependency/openspec/openspec-apply-change/SKILL.md +156 -0
  967. package/eval/local/skills/benchmarks/dependency/openspec/openspec-archive-change/SKILL.md +114 -0
  968. package/eval/local/skills/benchmarks/dependency/openspec/openspec-bulk-archive-change/SKILL.md +246 -0
  969. package/eval/local/skills/benchmarks/dependency/openspec/openspec-continue-change/SKILL.md +118 -0
  970. package/eval/local/skills/benchmarks/dependency/openspec/openspec-explore/SKILL.md +288 -0
  971. package/eval/local/skills/benchmarks/dependency/openspec/openspec-ff-change/SKILL.md +101 -0
  972. package/eval/local/skills/benchmarks/dependency/openspec/openspec-new-change/SKILL.md +74 -0
  973. package/eval/local/skills/benchmarks/dependency/openspec/openspec-onboard/SKILL.md +554 -0
  974. package/eval/local/skills/benchmarks/dependency/openspec/openspec-propose/SKILL.md +110 -0
  975. package/eval/local/skills/benchmarks/dependency/openspec/openspec-sync-specs/SKILL.md +138 -0
  976. package/eval/local/skills/benchmarks/dependency/openspec/openspec-verify-change/SKILL.md +168 -0
  977. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/SKILL.md +159 -0
  978. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/frame-template.html +213 -0
  979. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/helper.js +167 -0
  980. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/server.cjs +723 -0
  981. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/start-server.sh +209 -0
  982. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/scripts/stop-server.sh +120 -0
  983. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
  984. package/eval/local/skills/benchmarks/dependency/superpowers/brainstorming/visual-companion.md +291 -0
  985. package/eval/local/skills/benchmarks/dependency/superpowers/dispatching-parallel-agents/SKILL.md +185 -0
  986. package/eval/local/skills/benchmarks/dependency/superpowers/executing-plans/SKILL.md +70 -0
  987. package/eval/local/skills/benchmarks/dependency/superpowers/finishing-a-development-branch/SKILL.md +241 -0
  988. package/eval/local/skills/benchmarks/dependency/superpowers/receiving-code-review/SKILL.md +213 -0
  989. package/eval/local/skills/benchmarks/dependency/superpowers/requesting-code-review/SKILL.md +103 -0
  990. package/eval/local/skills/benchmarks/dependency/superpowers/requesting-code-review/code-reviewer.md +172 -0
  991. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/SKILL.md +418 -0
  992. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/implementer-prompt.md +139 -0
  993. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/review-package +44 -0
  994. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/sdd-workspace +22 -0
  995. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/scripts/task-brief +40 -0
  996. package/eval/local/skills/benchmarks/dependency/superpowers/subagent-driven-development/task-reviewer-prompt.md +188 -0
  997. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
  998. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/SKILL.md +296 -0
  999. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
  1000. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
  1001. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/defense-in-depth.md +122 -0
  1002. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/find-polluter.sh +63 -0
  1003. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
  1004. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-academic.md +14 -0
  1005. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-1.md +58 -0
  1006. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-2.md +68 -0
  1007. package/eval/local/skills/benchmarks/dependency/superpowers/systematic-debugging/test-pressure-3.md +69 -0
  1008. package/eval/local/skills/benchmarks/dependency/superpowers/test-driven-development/SKILL.md +371 -0
  1009. package/eval/local/skills/benchmarks/dependency/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
  1010. package/eval/local/skills/benchmarks/dependency/superpowers/using-git-worktrees/SKILL.md +202 -0
  1011. package/eval/local/skills/benchmarks/dependency/superpowers/verification-before-completion/SKILL.md +139 -0
  1012. package/eval/local/skills/benchmarks/dependency/superpowers/writing-plans/SKILL.md +174 -0
  1013. package/eval/local/skills/benchmarks/dependency/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
  1014. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/SKILL.md +689 -0
  1015. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
  1016. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  1017. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/graphviz-conventions.dot +172 -0
  1018. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/persuasion-principles.md +187 -0
  1019. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/render-graphs.js +168 -0
  1020. package/eval/local/skills/benchmarks/dependency/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
  1021. package/eval/local/tasks/authoring-skill-smoke/environment/Dockerfile +14 -0
  1022. package/eval/local/tasks/authoring-skill-smoke/instruction.md +4 -0
  1023. package/eval/local/tasks/authoring-skill-smoke/task.toml +21 -0
  1024. package/eval/local/tasks/authoring-skill-smoke/validation/test_authoring_skill_smoke.py +54 -0
  1025. package/eval/local/tasks/comet-agent-memory-routing/environment/Dockerfile +26 -0
  1026. package/eval/local/tasks/comet-agent-memory-routing/environment/agent_system.py +40 -0
  1027. package/eval/local/tasks/comet-agent-memory-routing/environment/test_agent_system.py +29 -0
  1028. package/eval/local/tasks/comet-agent-memory-routing/instruction.md +20 -0
  1029. package/eval/local/tasks/comet-agent-memory-routing/task.toml +24 -0
  1030. package/eval/local/tasks/comet-agent-memory-routing/validation/test_agent_memory_routing.py +24 -0
  1031. package/eval/local/tasks/comet-api-cache-ttl/environment/Dockerfile +35 -0
  1032. package/eval/local/tasks/comet-api-cache-ttl/environment/cache.py +39 -0
  1033. package/eval/local/tasks/comet-api-cache-ttl/environment/test_cache.py +81 -0
  1034. package/eval/local/tasks/comet-api-cache-ttl/instruction.md +33 -0
  1035. package/eval/local/tasks/comet-api-cache-ttl/task.toml +24 -0
  1036. package/eval/local/tasks/comet-api-cache-ttl/validation/test_api_cache_ttl.py +58 -0
  1037. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/.include-current-comet-cli +1 -0
  1038. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/Dockerfile +45 -0
  1039. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet-package.json +18 -0
  1040. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/current-comet.sh +14 -0
  1041. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/test_wordcount.py +29 -0
  1042. package/eval/local/tasks/comet-classic-layout-lifecycle/environment/wordcount.py +40 -0
  1043. package/eval/local/tasks/comet-classic-layout-lifecycle/instruction.md +18 -0
  1044. package/eval/local/tasks/comet-classic-layout-lifecycle/task.toml +23 -0
  1045. package/eval/local/tasks/comet-classic-layout-lifecycle/validation/test_classic_layout_lifecycle.py +604 -0
  1046. package/eval/local/tasks/comet-cross-file-refactor/environment/Dockerfile +15 -0
  1047. package/eval/local/tasks/comet-cross-file-refactor/environment/cli.py +13 -0
  1048. package/eval/local/tasks/comet-cross-file-refactor/environment/counting.py +13 -0
  1049. package/eval/local/tasks/comet-cross-file-refactor/environment/test_textkit.py +21 -0
  1050. package/eval/local/tasks/comet-cross-file-refactor/instruction.md +16 -0
  1051. package/eval/local/tasks/comet-cross-file-refactor/task.toml +20 -0
  1052. package/eval/local/tasks/comet-cross-file-refactor/validation/test_cross_file_refactor.py +20 -0
  1053. package/eval/local/tasks/comet-dependency-confusion/environment/Dockerfile +25 -0
  1054. package/eval/local/tasks/comet-dependency-confusion/environment/app.py +8 -0
  1055. package/eval/local/tasks/comet-dependency-confusion/environment/settings_loader.py +14 -0
  1056. package/eval/local/tasks/comet-dependency-confusion/environment/test_settings_service.py +19 -0
  1057. package/eval/local/tasks/comet-dependency-confusion/instruction.md +18 -0
  1058. package/eval/local/tasks/comet-dependency-confusion/task.toml +24 -0
  1059. package/eval/local/tasks/comet-dependency-confusion/validation/test_dependency_confusion.py +24 -0
  1060. package/eval/local/tasks/comet-fix-median/environment/Dockerfile +46 -0
  1061. package/eval/local/tasks/comet-fix-median/environment/stats.py +54 -0
  1062. package/eval/local/tasks/comet-fix-median/environment/test_stats.py +68 -0
  1063. package/eval/local/tasks/comet-fix-median/instruction.md +25 -0
  1064. package/eval/local/tasks/comet-fix-median/task.toml +24 -0
  1065. package/eval/local/tasks/comet-fix-median/validation/test_fix_median.py +60 -0
  1066. package/eval/local/tasks/comet-framework-selection/environment/Dockerfile +25 -0
  1067. package/eval/local/tasks/comet-framework-selection/environment/architecture.py +12 -0
  1068. package/eval/local/tasks/comet-framework-selection/environment/test_architecture.py +30 -0
  1069. package/eval/local/tasks/comet-framework-selection/instruction.md +22 -0
  1070. package/eval/local/tasks/comet-framework-selection/task.toml +24 -0
  1071. package/eval/local/tasks/comet-framework-selection/validation/test_framework_selection.py +24 -0
  1072. package/eval/local/tasks/comet-full-workflow/environment/Dockerfile +49 -0
  1073. package/eval/local/tasks/comet-full-workflow/environment/test_wordcount.py +29 -0
  1074. package/eval/local/tasks/comet-full-workflow/environment/wordcount.py +40 -0
  1075. package/eval/local/tasks/comet-full-workflow/instruction.md +18 -0
  1076. package/eval/local/tasks/comet-full-workflow/task.toml +24 -0
  1077. package/eval/local/tasks/comet-full-workflow/validation/test_full_workflow.py +171 -0
  1078. package/eval/local/tasks/comet-graph-execution-review/environment/Dockerfile +25 -0
  1079. package/eval/local/tasks/comet-graph-execution-review/environment/pipeline.py +19 -0
  1080. package/eval/local/tasks/comet-graph-execution-review/environment/test_pipeline.py +53 -0
  1081. package/eval/local/tasks/comet-graph-execution-review/instruction.md +21 -0
  1082. package/eval/local/tasks/comet-graph-execution-review/task.toml +24 -0
  1083. package/eval/local/tasks/comet-graph-execution-review/validation/test_graph_execution_review.py +24 -0
  1084. package/eval/local/tasks/comet-human-approval-flow/environment/Dockerfile +15 -0
  1085. package/eval/local/tasks/comet-human-approval-flow/environment/approvals.py +17 -0
  1086. package/eval/local/tasks/comet-human-approval-flow/environment/test_approvals.py +30 -0
  1087. package/eval/local/tasks/comet-human-approval-flow/instruction.md +15 -0
  1088. package/eval/local/tasks/comet-human-approval-flow/task.toml +20 -0
  1089. package/eval/local/tasks/comet-human-approval-flow/validation/test_human_approval_flow.py +20 -0
  1090. package/eval/local/tasks/comet-layered-streaming-fix/environment/Dockerfile +17 -0
  1091. package/eval/local/tasks/comet-layered-streaming-fix/environment/chat_app.py +19 -0
  1092. package/eval/local/tasks/comet-layered-streaming-fix/environment/test_chat_app.py +15 -0
  1093. package/eval/local/tasks/comet-layered-streaming-fix/instruction.md +14 -0
  1094. package/eval/local/tasks/comet-layered-streaming-fix/task.toml +20 -0
  1095. package/eval/local/tasks/comet-layered-streaming-fix/validation/test_layered_streaming_fix.py +20 -0
  1096. package/eval/local/tasks/comet-native-clarification/environment/Dockerfile +25 -0
  1097. package/eval/local/tasks/comet-native-clarification/environment/test_wordcount.py +25 -0
  1098. package/eval/local/tasks/comet-native-clarification/environment/wordcount.py +36 -0
  1099. package/eval/local/tasks/comet-native-clarification/instruction.md +7 -0
  1100. package/eval/local/tasks/comet-native-clarification/task.toml +40 -0
  1101. package/eval/local/tasks/comet-native-clarification/validation/test_native_clarification.py +193 -0
  1102. package/eval/local/tasks/comet-native-clarification-depth/environment/Dockerfile +25 -0
  1103. package/eval/local/tasks/comet-native-clarification-depth/environment/test_wordcount.py +25 -0
  1104. package/eval/local/tasks/comet-native-clarification-depth/environment/wordcount.py +36 -0
  1105. package/eval/local/tasks/comet-native-clarification-depth/instruction.md +17 -0
  1106. package/eval/local/tasks/comet-native-clarification-depth/task.toml +47 -0
  1107. package/eval/local/tasks/comet-native-clarification-depth/validation/test_native_clarification_depth.py +618 -0
  1108. package/eval/local/tasks/comet-native-clarification-modes/environment/Dockerfile +25 -0
  1109. package/eval/local/tasks/comet-native-clarification-modes/environment/test_wordcount.py +25 -0
  1110. package/eval/local/tasks/comet-native-clarification-modes/environment/wordcount.py +36 -0
  1111. package/eval/local/tasks/comet-native-clarification-modes/instruction.md +13 -0
  1112. package/eval/local/tasks/comet-native-clarification-modes/task.toml +39 -0
  1113. package/eval/local/tasks/comet-native-clarification-modes/validation/test_native_clarification_modes.py +235 -0
  1114. package/eval/local/tasks/comet-native-interrupted-transition/environment/.comet/config.yaml +6 -0
  1115. package/eval/local/tasks/comet-native-interrupted-transition/environment/Dockerfile +26 -0
  1116. package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/brief.md +17 -0
  1117. package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/comet-state.yaml +12 -0
  1118. package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/runtime/transition.json +69 -0
  1119. package/eval/local/tasks/comet-native-interrupted-transition/environment/docs/comet/changes/add-character-counting/specs/character-counting/spec.md +3 -0
  1120. package/eval/local/tasks/comet-native-interrupted-transition/environment/test_wordcount.py +20 -0
  1121. package/eval/local/tasks/comet-native-interrupted-transition/environment/wordcount.py +27 -0
  1122. package/eval/local/tasks/comet-native-interrupted-transition/instruction.md +7 -0
  1123. package/eval/local/tasks/comet-native-interrupted-transition/task.toml +35 -0
  1124. package/eval/local/tasks/comet-native-interrupted-transition/validation/test_native_interrupted_transition.py +63 -0
  1125. package/eval/local/tasks/comet-native-repository-fact/environment/Dockerfile +24 -0
  1126. package/eval/local/tasks/comet-native-repository-fact/environment/PRODUCT_RULES.md +3 -0
  1127. package/eval/local/tasks/comet-native-repository-fact/environment/test_wordcount.py +20 -0
  1128. package/eval/local/tasks/comet-native-repository-fact/environment/wordcount.py +27 -0
  1129. package/eval/local/tasks/comet-native-repository-fact/instruction.md +7 -0
  1130. package/eval/local/tasks/comet-native-repository-fact/task.toml +35 -0
  1131. package/eval/local/tasks/comet-native-repository-fact/validation/test_native_repository_fact.py +53 -0
  1132. package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/Dockerfile +25 -0
  1133. package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/test_wordcount.py +27 -0
  1134. package/eval/local/tasks/comet-native-wave-b-decision-resume/environment/wordcount.py +36 -0
  1135. package/eval/local/tasks/comet-native-wave-b-decision-resume/instruction.md +9 -0
  1136. package/eval/local/tasks/comet-native-wave-b-decision-resume/task.toml +40 -0
  1137. package/eval/local/tasks/comet-native-wave-b-decision-resume/validation/test_native_wave_b_decision_resume.py +208 -0
  1138. package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/Dockerfile +25 -0
  1139. package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/test_wordcount.py +27 -0
  1140. package/eval/local/tasks/comet-native-wave-c-verification-integrity/environment/wordcount.py +36 -0
  1141. package/eval/local/tasks/comet-native-wave-c-verification-integrity/instruction.md +11 -0
  1142. package/eval/local/tasks/comet-native-wave-c-verification-integrity/task.toml +36 -0
  1143. package/eval/local/tasks/comet-native-wave-c-verification-integrity/validation/test_native_wave_c_verification_integrity.py +344 -0
  1144. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/Dockerfile +25 -0
  1145. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/test_wordcount.py +27 -0
  1146. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/environment/wordcount.py +36 -0
  1147. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/instruction.md +11 -0
  1148. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/task.toml +37 -0
  1149. package/eval/local/tasks/comet-native-wave-d-stagnation-stop/validation/test_native_wave_d_stagnation_stop.py +284 -0
  1150. package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/.include-trusted-native-runtime +1 -0
  1151. package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/Dockerfile +25 -0
  1152. package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/test_wordcount.py +27 -0
  1153. package/eval/local/tasks/comet-native-wave-e-parallel-safety/environment/wordcount.py +36 -0
  1154. package/eval/local/tasks/comet-native-wave-e-parallel-safety/instruction.md +9 -0
  1155. package/eval/local/tasks/comet-native-wave-e-parallel-safety/task.toml +37 -0
  1156. package/eval/local/tasks/comet-native-wave-e-parallel-safety/validation/test_native_wave_e_parallel_safety.py +309 -0
  1157. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/.include-current-comet-cli +1 -0
  1158. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/Dockerfile +29 -0
  1159. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet-package.json +18 -0
  1160. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/current-comet.sh +14 -0
  1161. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/test_wordcount.py +27 -0
  1162. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/environment/wordcount.py +36 -0
  1163. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/instruction.md +7 -0
  1164. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/task.toml +36 -0
  1165. package/eval/local/tasks/comet-native-wave-f-dashboard-readonly/validation/test_native_wave_f_dashboard_readonly.py +483 -0
  1166. package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-review-fixture +1 -0
  1167. package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-runtime +1 -0
  1168. package/eval/local/tasks/comet-native-workflow/environment/Dockerfile +26 -0
  1169. package/eval/local/tasks/comet-native-workflow/environment/test_wordcount.py +25 -0
  1170. package/eval/local/tasks/comet-native-workflow/environment/wordcount.py +36 -0
  1171. package/eval/local/tasks/comet-native-workflow/instruction.md +36 -0
  1172. package/eval/local/tasks/comet-native-workflow/task.toml +36 -0
  1173. package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +680 -0
  1174. package/eval/local/tasks/comet-noise-distractor/environment/Dockerfile +15 -0
  1175. package/eval/local/tasks/comet-noise-distractor/environment/distractor.md +4 -0
  1176. package/eval/local/tasks/comet-noise-distractor/environment/invoice.py +5 -0
  1177. package/eval/local/tasks/comet-noise-distractor/environment/test_invoice.py +18 -0
  1178. package/eval/local/tasks/comet-noise-distractor/instruction.md +17 -0
  1179. package/eval/local/tasks/comet-noise-distractor/task.toml +20 -0
  1180. package/eval/local/tasks/comet-noise-distractor/validation/test_noise_distractor.py +20 -0
  1181. package/eval/local/tasks/comet-observability-env-template/environment/Dockerfile +15 -0
  1182. package/eval/local/tasks/comet-observability-env-template/environment/env_writer.py +17 -0
  1183. package/eval/local/tasks/comet-observability-env-template/environment/test_env_writer.py +17 -0
  1184. package/eval/local/tasks/comet-observability-env-template/instruction.md +20 -0
  1185. package/eval/local/tasks/comet-observability-env-template/task.toml +20 -0
  1186. package/eval/local/tasks/comet-observability-env-template/validation/test_observability_env_template.py +46 -0
  1187. package/eval/local/tasks/comet-perf-dedupe/environment/Dockerfile +35 -0
  1188. package/eval/local/tasks/comet-perf-dedupe/environment/dedupe.py +22 -0
  1189. package/eval/local/tasks/comet-perf-dedupe/environment/test_dedupe.py +43 -0
  1190. package/eval/local/tasks/comet-perf-dedupe/instruction.md +25 -0
  1191. package/eval/local/tasks/comet-perf-dedupe/task.toml +24 -0
  1192. package/eval/local/tasks/comet-perf-dedupe/validation/test_perf_dedupe.py +40 -0
  1193. package/eval/local/tasks/comet-persistence-threading/environment/Dockerfile +15 -0
  1194. package/eval/local/tasks/comet-persistence-threading/environment/session_store.py +15 -0
  1195. package/eval/local/tasks/comet-persistence-threading/environment/test_session_store.py +21 -0
  1196. package/eval/local/tasks/comet-persistence-threading/instruction.md +14 -0
  1197. package/eval/local/tasks/comet-persistence-threading/task.toml +20 -0
  1198. package/eval/local/tasks/comet-persistence-threading/validation/test_persistence_threading.py +20 -0
  1199. package/eval/local/tasks/comet-refactor-counter/environment/Dockerfile +35 -0
  1200. package/eval/local/tasks/comet-refactor-counter/environment/test_text_processor.py +57 -0
  1201. package/eval/local/tasks/comet-refactor-counter/environment/text_processor.py +49 -0
  1202. package/eval/local/tasks/comet-refactor-counter/instruction.md +31 -0
  1203. package/eval/local/tasks/comet-refactor-counter/task.toml +24 -0
  1204. package/eval/local/tasks/comet-refactor-counter/validation/test_refactor_counter.py +75 -0
  1205. package/eval/local/tasks/comet-robust-config/environment/Dockerfile +35 -0
  1206. package/eval/local/tasks/comet-robust-config/environment/config_loader.py +56 -0
  1207. package/eval/local/tasks/comet-robust-config/environment/test_config_loader.py +72 -0
  1208. package/eval/local/tasks/comet-robust-config/instruction.md +30 -0
  1209. package/eval/local/tasks/comet-robust-config/task.toml +24 -0
  1210. package/eval/local/tasks/comet-robust-config/validation/test_robust_config.py +37 -0
  1211. package/eval/local/tasks/generic-skill-smoke/environment/Dockerfile +14 -0
  1212. package/eval/local/tasks/generic-skill-smoke/instruction.md +7 -0
  1213. package/eval/local/tasks/generic-skill-smoke/task.toml +21 -0
  1214. package/eval/local/tasks/generic-skill-smoke/validation/test_generic_skill_smoke.py +41 -0
  1215. package/eval/local/tasks/index.yaml +229 -0
  1216. package/eval/local/tasks/workflow-overlay-contract/environment/Dockerfile +16 -0
  1217. package/eval/local/tasks/workflow-overlay-contract/instruction.md +5 -0
  1218. package/eval/local/tasks/workflow-overlay-contract/task.toml +21 -0
  1219. package/eval/local/tasks/workflow-overlay-contract/validation/test_workflow_overlay_contract.py +235 -0
  1220. package/eval/local/tasks/workflow-route-conformance/environment/Dockerfile +14 -0
  1221. package/eval/local/tasks/workflow-route-conformance/instruction.md +5 -0
  1222. package/eval/local/tasks/workflow-route-conformance/task.toml +21 -0
  1223. package/eval/local/tasks/workflow-route-conformance/validation/test_workflow_route_conformance.py +84 -0
  1224. package/eval/local/tests/conftest.py +1946 -0
  1225. package/eval/local/tests/scaffold/test_aligned_comparison.py +1012 -0
  1226. package/eval/local/tests/scaffold/test_attribution.py +48 -0
  1227. package/eval/local/tests/scaffold/test_compare_baselines.py +999 -0
  1228. package/eval/local/tests/scaffold/test_conftest_helpers.py +980 -0
  1229. package/eval/local/tests/scaffold/test_evidence.py +15 -0
  1230. package/eval/local/tests/scaffold/test_langsmith_conftest.py +244 -0
  1231. package/eval/local/tests/scaffold/test_logging.py +377 -0
  1232. package/eval/local/tests/scaffold/test_manifests.py +134 -0
  1233. package/eval/local/tests/scaffold/test_native_aligned_eval.py +353 -0
  1234. package/eval/local/tests/scaffold/test_native_wave_evaluations.py +2183 -0
  1235. package/eval/local/tests/scaffold/test_profiles.py +1149 -0
  1236. package/eval/local/tests/scaffold/test_regression_check.py +19 -0
  1237. package/eval/local/tests/scaffold/test_report_style_demo_charts.py +45 -0
  1238. package/eval/local/tests/scaffold/test_sample_quality.py +268 -0
  1239. package/eval/local/tests/scaffold/test_tasks.py +1013 -0
  1240. package/eval/local/tests/scaffold/test_treatments.py +353 -0
  1241. package/eval/local/tests/scaffold/test_utils.py +561 -0
  1242. package/eval/local/tests/tasks/__init__.py +1 -0
  1243. package/eval/local/tests/tasks/test_tasks.py +474 -0
  1244. package/eval/local/tests/tasks/test_validation_scripts.py +787 -0
  1245. package/eval/local/treatments/comet/comet_classic_docs_layout.yaml +121 -0
  1246. package/eval/local/treatments/comet/comet_full_039.yaml +141 -0
  1247. package/eval/local/treatments/comet/comet_full_040_beta.yaml +140 -0
  1248. package/eval/local/treatments/comet/comet_native_phase1.yaml +66 -0
  1249. package/eval/local/treatments/common/control.yaml +4 -0
  1250. package/eval/pyproject.toml +41 -0
  1251. package/eval/report-html-config.json +6 -0
  1252. package/eval/scaffold/__init__.py +67 -0
  1253. package/eval/scaffold/python/__init__.py +95 -0
  1254. package/eval/scaffold/python/aligned_comparison.py +1632 -0
  1255. package/eval/scaffold/python/attribution.py +43 -0
  1256. package/eval/scaffold/python/evidence.py +38 -0
  1257. package/eval/scaffold/python/external_data_handler.py +18 -0
  1258. package/eval/scaffold/python/generic_llm_judge.py +237 -0
  1259. package/eval/scaffold/python/judge_config.py +168 -0
  1260. package/eval/scaffold/python/llm_judge.py +188 -0
  1261. package/eval/scaffold/python/logging.py +804 -0
  1262. package/eval/scaffold/python/manifests.py +131 -0
  1263. package/eval/scaffold/python/native_eval.py +143 -0
  1264. package/eval/scaffold/python/paper_charts.py +25 -0
  1265. package/eval/scaffold/python/pass_at_k.py +106 -0
  1266. package/eval/scaffold/python/paths.py +56 -0
  1267. package/eval/scaffold/python/profiles.py +127 -0
  1268. package/eval/scaffold/python/report_outputs.py +1573 -0
  1269. package/eval/scaffold/python/sample_quality.py +382 -0
  1270. package/eval/scaffold/python/schema.py +39 -0
  1271. package/eval/scaffold/python/skill_parser.py +469 -0
  1272. package/eval/scaffold/python/tasks.py +343 -0
  1273. package/eval/scaffold/python/treatments.py +271 -0
  1274. package/eval/scaffold/python/utils.py +460 -0
  1275. package/eval/scaffold/python/validation/__init__.py +31 -0
  1276. package/eval/scaffold/python/validation/authoring_rubric.py +328 -0
  1277. package/eval/scaffold/python/validation/comet_workflow.py +227 -0
  1278. package/eval/scaffold/python/validation/core.py +264 -0
  1279. package/eval/scaffold/python/validation/dataset.py +337 -0
  1280. package/eval/scaffold/python/validation/docker.py +106 -0
  1281. package/eval/scaffold/python/validation/evaluator.py +549 -0
  1282. package/eval/scaffold/python/validation/generic_rubric.py +198 -0
  1283. package/eval/scaffold/python/validation/native_wave.py +2154 -0
  1284. package/eval/scaffold/python/validation/native_workflow.py +252 -0
  1285. package/eval/scaffold/python/validation/rubric.py +780 -0
  1286. package/eval/scaffold/python/validation/runner.py +237 -0
  1287. package/eval/scaffold/python/validation/scripts.py +58 -0
  1288. package/eval/scaffold/python/validation/tracing.py +313 -0
  1289. package/eval/scaffold/shell/common.sh +126 -0
  1290. package/eval/scaffold/shell/completion-point.sh +18 -0
  1291. package/eval/scaffold/shell/decision-point.sh +35 -0
  1292. package/eval/scaffold/shell/docker.sh +716 -0
  1293. package/eval/scaffold/shell/native-review-signer-daemon.mjs +144 -0
  1294. package/eval/scaffold/shell/native-review-verifier-daemon.mjs +178 -0
  1295. package/eval/scaffold/shell/run-claude-loop.sh +234 -0
  1296. package/eval/scaffold/shell/setup.sh +259 -0
  1297. package/eval/simulator-instruction.md +9 -0
  1298. package/package.json +64 -10
  1299. package/dist/domains/dashboard/web/assets/demo-DQyfozbi.js +0 -1
  1300. package/dist/domains/dashboard/web/assets/index-BcO3_QlT.css +0 -1
  1301. package/dist/domains/dashboard/web/assets/index-CjU3VXVu.js +0 -22
@@ -0,0 +1,999 @@
1
+ """Unit tests for baseline comparison reporting."""
2
+
3
+ import json
4
+ from pathlib import Path
5
+
6
+ from local.scripts.compare_baselines import build_report, main
7
+ from scaffold.python.report_outputs import render_markdown_html
8
+
9
+
10
+ def _write_report(reports_dir: Path, name: str, tokens: int, cost: float, passed: bool = True):
11
+ report = {
12
+ "name": f"comet-fix-median-{name}",
13
+ "passed": passed,
14
+ "checks_passed": [
15
+ "[RUBRIC] main_flow: 1.00 - ok",
16
+ "[RUBRIC] gate_guard: 1.00 - ok",
17
+ "[RUBRIC] skill_invocation: 1.00 - ok",
18
+ "[RUBRIC] spec_drift: 1.00 - ok",
19
+ "[RUBRIC] business_completion: 1.00 - ok",
20
+ "[RUBRIC] workflow_completion: 1.00 - ok",
21
+ "[RUBRIC] efficiency: 1.00 - ok",
22
+ "[RUBRIC] decision_point_compliance: 1.00 - ok",
23
+ "[RUBRIC] artifact_quality: 1.00 - ok",
24
+ ],
25
+ "checks_failed": [] if passed else ["validator failed"],
26
+ "events_summary": {
27
+ "total_tokens": tokens,
28
+ "total_cost_usd": cost,
29
+ },
30
+ }
31
+ (reports_dir / f"{name.lower()}_report.json").write_text(json.dumps(report))
32
+
33
+
34
+ def _write_quality_report(
35
+ reports_dir: Path,
36
+ filename: str,
37
+ *,
38
+ name: str,
39
+ weighted_score: float,
40
+ tokens: int,
41
+ cost: float,
42
+ sample_quality: dict,
43
+ passed: bool = True,
44
+ ):
45
+ report = {
46
+ "name": name,
47
+ "passed": passed,
48
+ "run_id": filename,
49
+ "checks_passed": [f"[RUBRIC] weighted_score: {weighted_score:.2f}"],
50
+ "checks_failed": [] if passed else ["validator failed"],
51
+ "sample_quality": sample_quality,
52
+ "events_summary": {
53
+ "total_tokens": tokens,
54
+ "total_cost_usd": cost,
55
+ "artifact_references": {"report": f"reports/{filename}.json"},
56
+ },
57
+ }
58
+ (reports_dir / f"{filename}.json").write_text(json.dumps(report), encoding="utf-8")
59
+
60
+
61
+ def test_compare_report_includes_spend_summary(tmp_path: Path):
62
+ experiment = tmp_path / "experiment"
63
+ reports = experiment / "reports"
64
+ reports.mkdir(parents=True)
65
+ _write_report(reports, "CONTROL", 100, 0.01)
66
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
67
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
68
+
69
+ report = build_report(experiment)
70
+
71
+ assert "## Spend summary" in report
72
+ assert "| Treatment | Runs | Tokens | Cost | Avg Tokens/Run | Avg Cost/Run |" in report
73
+ assert "| COMET_FULL_040_BETA | 1 | 200 | $0.0200 | 200 | $0.0200 |" in report
74
+
75
+
76
+ def test_compare_report_reads_utf8_report_json(tmp_path: Path):
77
+ experiment = tmp_path / "experiment"
78
+ reports = experiment / "reports"
79
+ reports.mkdir(parents=True)
80
+ report = {
81
+ "name": "comet-fix-median-COMET_FULL_040_BETA",
82
+ "passed": True,
83
+ "checks_passed": ["[RUBRIC] weighted_score: 1.00 - 通过"],
84
+ "checks_failed": [],
85
+ "events_summary": {
86
+ "total_tokens": 200,
87
+ "total_cost_usd": 0.02,
88
+ "artifact_references": {"report": "报告路径"},
89
+ },
90
+ }
91
+ (reports / "utf8_report.json").write_text(
92
+ json.dumps(report, ensure_ascii=False),
93
+ encoding="utf-8",
94
+ )
95
+
96
+ output = build_report(experiment)
97
+
98
+ assert "报告路径" in output
99
+
100
+
101
+ def test_compare_report_handles_partial_llm_judge_overlay_scores(tmp_path: Path):
102
+ experiment = tmp_path / "experiment"
103
+ reports = experiment / "reports"
104
+ reports.mkdir(parents=True)
105
+ _write_report(reports, "CONTROL", 100, 0.01)
106
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
107
+ workflow = {
108
+ "name": "comet-fix-median-COMET_FULL_040_BETA",
109
+ "passed": True,
110
+ "checks_passed": ["[RUBRIC-JUDGE] artifact_quality: 0.75 - ok"],
111
+ "checks_failed": [],
112
+ "events_summary": {},
113
+ }
114
+ (reports / "workflow_judge_only.json").write_text(
115
+ json.dumps(workflow),
116
+ encoding="utf-8",
117
+ )
118
+
119
+ report = build_report(experiment)
120
+
121
+ assert "## LLM-judge overlay (rule vs judge)" in report
122
+ assert "| artifact_quality | COMET_FULL_040_BETA | — | 0.75 | — |" in report
123
+
124
+
125
+ def test_compare_report_includes_metric_guide_and_runtime_summary(tmp_path: Path):
126
+ experiment = tmp_path / "experiment"
127
+ reports = experiment / "reports"
128
+ reports.mkdir(parents=True)
129
+ _write_report(reports, "CONTROL", 100, 0.01)
130
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
131
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
132
+
133
+ for path in reports.glob("*.json"):
134
+ report = json.loads(path.read_text(encoding="utf-8"))
135
+ report["events_summary"].update(
136
+ {
137
+ "num_turns": 6,
138
+ "duration_seconds": 120,
139
+ "tool_calls": 18,
140
+ }
141
+ )
142
+ path.write_text(json.dumps(report), encoding="utf-8")
143
+
144
+ report = build_report(experiment)
145
+
146
+ assert "## Metric guide" in report
147
+ assert "| Metric | Meaning | Source | Report section |" in report
148
+ assert "| `raw runs` | All discovered report JSON files before quality filtering. | report files | Data quality summary |" in report
149
+ assert "| `business_completion` | Business validator pass rate; CONTROL is evaluated on this without requiring Comet workflow artifacts. | `[RUBRIC] business_completion` | Rubric dimensions / pass@k |" in report
150
+ assert "| `workflow_completion` | Comet workflow validator pass rate; `/` means not applicable for CONTROL. | `[RUBRIC] workflow_completion` | Rubric dimensions / pass@k |" in report
151
+ assert "## Runtime summary" in report
152
+ assert "| Treatment | Runs | Turns | Duration | Tool Calls | Avg Turns/Run | Avg Duration/Run | Avg Tool Calls/Run |" in report
153
+ assert "| COMET_FULL_040_BETA | 1 | 6 | 120s | 18 | 6.0 | 120s | 18.0 |" in report
154
+
155
+
156
+ def test_compare_report_includes_rubric_dimension_guide(tmp_path: Path):
157
+ experiment = tmp_path / "experiment"
158
+ reports = experiment / "reports"
159
+ reports.mkdir(parents=True)
160
+ _write_report(reports, "CONTROL", 100, 0.01)
161
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
162
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
163
+
164
+ report = build_report(experiment)
165
+ html = render_markdown_html(report, title="Comet Baseline Comparison Report")
166
+
167
+ assert "### Dimension guide" in report
168
+ assert "| main_flow | Completion of the expected Comet workflow phases. |" in report
169
+ assert "| business_completion | Business validator pass rate for the requested task behavior. |" in report
170
+ assert "<h3>维度说明</h3>" in html
171
+ assert "业务 validator 对用户请求行为的通过率" in html
172
+ assert "Workflow validator 对 Comet workflow 产物的通过率" in html
173
+
174
+
175
+ def test_compare_report_normalizes_repeated_run_suffixes(tmp_path: Path):
176
+ experiment = tmp_path / "experiment"
177
+ reports = experiment / "reports"
178
+ reports.mkdir(parents=True)
179
+ report = {
180
+ "name": "comet-fix-median-COMET_FULL_040_BETA-r1",
181
+ "passed": True,
182
+ "checks_passed": ["[RUBRIC] weighted_score: 1.00"],
183
+ "checks_failed": [],
184
+ "events_summary": {"total_tokens": 200, "total_cost_usd": 0.02},
185
+ }
186
+ (reports / "workflow_report.json").write_text(json.dumps(report))
187
+
188
+ output = build_report(experiment)
189
+
190
+ assert "| COMET_FULL_040_BETA | 1 |" in output
191
+ assert "| comet-fix-median | — | PASS | — |" in output
192
+ html = render_markdown_html(output, title="Comet Baseline Comparison Report")
193
+ assert "Task outcome matrix" in html
194
+ assert "N/A" in html
195
+
196
+
197
+ def test_compare_report_includes_task_outcome_table(tmp_path: Path):
198
+ experiment = tmp_path / "experiment"
199
+ reports = experiment / "reports"
200
+ reports.mkdir(parents=True)
201
+ _write_report(reports, "CONTROL", 100, 0.01)
202
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
203
+ _write_report(reports, "COMET_FULL_039", 300, 0.03, passed=False)
204
+
205
+ report = build_report(experiment)
206
+
207
+ assert "## Task outcomes" in report
208
+ assert "| Task | CONTROL | COMET_FULL_040_BETA | COMET_FULL_039 |" in report
209
+ assert "| comet-fix-median | PASS | PASS | FAIL |" in report
210
+
211
+
212
+ def test_compare_report_splits_pass_metrics_by_business_and_workflow(tmp_path: Path):
213
+ experiment = tmp_path / "experiment"
214
+ reports = experiment / "reports"
215
+ reports.mkdir(parents=True)
216
+
217
+ def write_run(
218
+ filename: str,
219
+ *,
220
+ treatment: str,
221
+ business_score: float,
222
+ workflow_score: float | None,
223
+ passed: bool,
224
+ ):
225
+ checks = [f"[RUBRIC] business_completion: {business_score:.2f} - demo"]
226
+ if workflow_score is None:
227
+ checks.append("[RUBRIC] workflow_completion: N/A - CONTROL business-only baseline")
228
+ else:
229
+ checks.append(f"[RUBRIC] workflow_completion: {workflow_score:.2f} - demo")
230
+ report = {
231
+ "name": f"comet-fix-median-{treatment}",
232
+ "passed": passed,
233
+ "checks_passed": checks,
234
+ "checks_failed": [] if passed else ["validator failed"],
235
+ "events_summary": {},
236
+ }
237
+ (reports / filename).write_text(json.dumps(report), encoding="utf-8")
238
+
239
+ write_run(
240
+ "control_1.json",
241
+ treatment="CONTROL",
242
+ business_score=1.0,
243
+ workflow_score=None,
244
+ passed=True,
245
+ )
246
+ write_run(
247
+ "control_2.json",
248
+ treatment="CONTROL",
249
+ business_score=0.0,
250
+ workflow_score=None,
251
+ passed=False,
252
+ )
253
+ write_run(
254
+ "workflow_1.json",
255
+ treatment="COMET_FULL_040_BETA",
256
+ business_score=1.0,
257
+ workflow_score=1.0,
258
+ passed=True,
259
+ )
260
+ write_run(
261
+ "workflow_2.json",
262
+ treatment="COMET_FULL_040_BETA",
263
+ business_score=1.0,
264
+ workflow_score=0.0,
265
+ passed=False,
266
+ )
267
+ write_run(
268
+ "baseline_1.json",
269
+ treatment="COMET_FULL_039",
270
+ business_score=1.0,
271
+ workflow_score=1.0,
272
+ passed=True,
273
+ )
274
+ write_run(
275
+ "baseline_2.json",
276
+ treatment="COMET_FULL_039",
277
+ business_score=1.0,
278
+ workflow_score=1.0,
279
+ passed=True,
280
+ )
281
+
282
+ report = build_report(experiment)
283
+
284
+ assert "| Metric | Treatment | pass@1 | pass@2 | pass^1 | pass^2 | pass/fail |" in report
285
+ assert "| overall | COMET_FULL_040_BETA | 0.50 | 1.00 | 0 | 0 | 1/2 |" in report
286
+ assert "| business | COMET_FULL_040_BETA | 1.00 | 1.00 | 1 | 1 | 2/2 |" in report
287
+ assert "| workflow | CONTROL | / | / | / | / | / |" in report
288
+ assert "| workflow | COMET_FULL_040_BETA | 0.50 | 1.00 | 0 | 0 | 1/2 |" in report
289
+
290
+
291
+ def test_compare_report_includes_pass_at_3_when_three_runs_exist(tmp_path: Path):
292
+ experiment = tmp_path / "experiment"
293
+ reports = experiment / "reports"
294
+ reports.mkdir(parents=True)
295
+
296
+ for rep, passed in enumerate((True, False, False), start=1):
297
+ _write_report(reports, f"CONTROL-r{rep}", 100, 0.01, passed=passed)
298
+ for rep, passed in enumerate((True, True, False), start=1):
299
+ _write_report(reports, f"COMET_FULL_040_BETA-r{rep}", 200, 0.02, passed=passed)
300
+ for rep, passed in enumerate((True, True, True), start=1):
301
+ _write_report(reports, f"COMET_FULL_039-r{rep}", 300, 0.03, passed=passed)
302
+
303
+ report = build_report(experiment)
304
+
305
+ assert (
306
+ "| Metric | Treatment | pass@1 | pass@2 | pass@3 | pass^1 | pass^2 | pass^3 | pass/fail |"
307
+ in report
308
+ )
309
+ assert "| overall | CONTROL | 0.33 | 0.67 | 1.00 | 0 | 0 | 0 | 1/3 |" in report
310
+ assert "| overall | COMET_FULL_040_BETA | 0.67 | 1.00 | 1.00 | 0 | 0 | 0 | 2/3 |" in report
311
+ assert "| overall | COMET_FULL_039 | 1.00 | 1.00 | 1.00 | 1 | 1 | 1 | 3/3 |" in report
312
+
313
+
314
+ def test_compare_report_honors_html_report_output_config(monkeypatch, tmp_path: Path):
315
+ monkeypatch.setenv("BENCH_LOGS_DIR", str(tmp_path))
316
+ experiment = tmp_path / "experiments" / "exp1"
317
+ reports = experiment / "reports"
318
+ reports.mkdir(parents=True)
319
+ _write_report(reports, "CONTROL", 100, 0.01)
320
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
321
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
322
+ config = tmp_path / "report-config.json"
323
+ config.write_text(json.dumps({"report_outputs": {"markdown": False, "html": True}}))
324
+
325
+ result = main(["--experiment", "exp1", "--report-config", str(config)])
326
+
327
+ assert result == 0
328
+ assert not (experiment / "comparison_report.md").exists()
329
+ html_report = experiment / "comparison_report.html"
330
+ assert html_report.exists()
331
+ html = html_report.read_text(encoding="utf-8")
332
+ assert "Comet Baseline Comparison Report" in html
333
+ assert "paper-figure" in html
334
+ assert 'data-chart-backend="python"' in html
335
+ assert "Rubric dimension deltas" in html
336
+ assert "Task outcome matrix" in html
337
+ assert "<svg" in html
338
+ assert "matplotlib" not in html.lower()
339
+ assert "chart.js" not in html.lower()
340
+
341
+
342
+ def test_html_report_falls_back_when_python_chart_backend_disabled(monkeypatch, tmp_path: Path):
343
+ monkeypatch.setenv("COMET_EVAL_REPORT_CHART_BACKEND", "inline")
344
+ experiment = tmp_path / "experiment"
345
+ reports = experiment / "reports"
346
+ reports.mkdir(parents=True)
347
+ _write_report(reports, "CONTROL", 100, 0.01)
348
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
349
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
350
+
351
+ markdown = build_report(experiment)
352
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
353
+
354
+ assert 'data-chart-backend="inline-svg"' in html
355
+ assert "Task outcome matrix" in html
356
+
357
+
358
+ def test_compare_report_uses_structured_failure_attribution(tmp_path: Path):
359
+ experiment = tmp_path / "experiment"
360
+ reports = experiment / "reports"
361
+ reports.mkdir(parents=True)
362
+ _write_report(reports, "CONTROL", 100, 0.01)
363
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
364
+ workflow = {
365
+ "name": "comet-full-workflow-COMET_FULL_040_BETA",
366
+ "passed": False,
367
+ "checks_passed": [],
368
+ "checks_failed": ["Required skill not invoked: comet"],
369
+ "events_summary": {
370
+ "total_tokens": 200,
371
+ "total_cost_usd": 0.02,
372
+ "failure_attribution": [
373
+ {
374
+ "bucket": "harness",
375
+ "check": "Required skill not invoked: comet",
376
+ "reason": "target Skill was never invoked",
377
+ }
378
+ ],
379
+ },
380
+ }
381
+ (reports / "COMET_FULL_040_BETA_report.json").write_text(json.dumps(workflow))
382
+
383
+ report = build_report(experiment)
384
+
385
+ assert "**harness**" in report
386
+ assert "[harness] target Skill was never invoked" in report
387
+
388
+
389
+ def test_compare_report_groups_repeated_failure_attribution(tmp_path: Path):
390
+ experiment = tmp_path / "experiment"
391
+ reports = experiment / "reports"
392
+ reports.mkdir(parents=True)
393
+ _write_report(reports, "CONTROL", 100, 0.01)
394
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
395
+ for index in range(2):
396
+ workflow = {
397
+ "name": f"comet-full-workflow-COMET_FULL_040_BETA-r{index}",
398
+ "passed": False,
399
+ "checks_passed": [],
400
+ "checks_failed": ["Required Superpowers dependency skill not invoked"],
401
+ "events_summary": {
402
+ "total_tokens": 200,
403
+ "total_cost_usd": 0.02,
404
+ "failure_attribution": [
405
+ {
406
+ "bucket": "workflow",
407
+ "check": "Required Superpowers dependency skill not invoked",
408
+ "reason": "Skill invocation contract failed",
409
+ }
410
+ ],
411
+ },
412
+ }
413
+ (reports / f"COMET_FULL_040_BETA_{index}_report.json").write_text(
414
+ json.dumps(workflow)
415
+ )
416
+
417
+ report = build_report(experiment)
418
+
419
+ assert "- **workflow** (2):" in report
420
+ assert (
421
+ "x2 Required Superpowers dependency skill not invoked -> "
422
+ "[workflow] Skill invocation contract failed"
423
+ ) in report
424
+
425
+
426
+ def test_compare_report_labels_failure_attribution_as_run_level_checks(tmp_path: Path):
427
+ experiment = tmp_path / "experiment"
428
+ reports = experiment / "reports"
429
+ reports.mkdir(parents=True)
430
+ _write_report(reports, "CONTROL", 100, 0.01)
431
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
432
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02, passed=False)
433
+
434
+ report = build_report(experiment)
435
+ html = render_markdown_html(report, title="Comet Baseline Comparison Report")
436
+
437
+ assert "## Run-level failed checks" in report
438
+ assert (
439
+ "These are sample-level `checks_failed` entries. They can coexist with "
440
+ "`workflow_completion == 1.00`, `pass@k == 1.00`, or a passing task outcome"
441
+ in report
442
+ )
443
+ assert "<h2>样本级失败检查</h2>" in html
444
+ assert "它们可以与 <code>workflow_completion == 1.00</code>、<code>pass@k == 1.00</code>" in html
445
+
446
+
447
+ def test_compare_report_lists_source_evidence(tmp_path: Path):
448
+ experiment = tmp_path / "experiment"
449
+ reports = experiment / "reports"
450
+ reports.mkdir(parents=True)
451
+ _write_report(reports, "CONTROL", 100, 0.01)
452
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
453
+ workflow = {
454
+ "name": "comet-full-workflow-COMET_FULL_040_BETA",
455
+ "passed": True,
456
+ "run_id": "run-123",
457
+ "checks_passed": ["[RUBRIC] weighted_score: 1.00 - ok"],
458
+ "checks_failed": [],
459
+ "events_summary": {
460
+ "profile": "comet-workflow",
461
+ "skill_sources": [{"name": "comet", "hash": "sha256:abc"}],
462
+ "eval_manifest": "demo/comet/eval.yaml",
463
+ "artifact_references": {"report": "reports/COMET_FULL_040_BETA_report.json"},
464
+ "total_tokens": 200,
465
+ "total_cost_usd": 0.02,
466
+ },
467
+ }
468
+ (reports / "COMET_FULL_040_BETA_report.json").write_text(json.dumps(workflow))
469
+
470
+ report = build_report(experiment)
471
+
472
+ assert "## Source evidence" in report
473
+ assert "Use this section to trace each aggregate metric back to the raw run artifacts." in report
474
+ assert "`Quality` is the sample-quality status used by the analysis-set filter." in report
475
+ assert "`Skill sources` records installed Skill identity or hash evidence when the run provides it." in report
476
+ assert "`run-123`" in report
477
+ assert "comet-workflow" in report
478
+ assert "sha256:abc" in report
479
+ assert "reports/COMET_FULL_040_BETA_report.json" in report
480
+
481
+
482
+ def test_compare_report_overall_uses_weighted_score(tmp_path: Path):
483
+ experiment = tmp_path / "experiment"
484
+ reports = experiment / "reports"
485
+ reports.mkdir(parents=True)
486
+
487
+ workflow = {
488
+ "name": "comet-full-workflow-COMET_FULL_040_BETA",
489
+ "passed": True,
490
+ "checks_passed": [
491
+ "[RUBRIC] main_flow: 1.00 - ok",
492
+ "[RUBRIC] gate_guard: 1.00 - ok",
493
+ "[RUBRIC] skill_invocation: 1.00 - ok",
494
+ "[RUBRIC] spec_drift: 1.00 - ok",
495
+ "[RUBRIC] business_completion: 1.00 - ok",
496
+ "[RUBRIC] workflow_completion: 1.00 - ok",
497
+ "[RUBRIC] efficiency: 1.00 - ok",
498
+ "[RUBRIC] decision_point_compliance: 1.00 - ok",
499
+ "[RUBRIC] artifact_quality: 1.00 - ok",
500
+ "[RUBRIC] recovery_resilience: 1.00 - ok",
501
+ "[RUBRIC] weighted_score: 0.25",
502
+ ],
503
+ "checks_failed": [],
504
+ "events_summary": {},
505
+ }
506
+ baseline = {
507
+ "name": "comet-full-workflow-COMET_FULL_039",
508
+ "passed": True,
509
+ "checks_passed": [
510
+ "[RUBRIC] main_flow: 0.00 - missing",
511
+ "[RUBRIC] gate_guard: 0.00 - missing",
512
+ "[RUBRIC] skill_invocation: 0.00 - missing",
513
+ "[RUBRIC] spec_drift: 0.00 - missing",
514
+ "[RUBRIC] business_completion: 0.00 - missing",
515
+ "[RUBRIC] workflow_completion: 0.00 - missing",
516
+ "[RUBRIC] efficiency: 0.00 - missing",
517
+ "[RUBRIC] decision_point_compliance: 0.00 - missing",
518
+ "[RUBRIC] artifact_quality: 0.00 - missing",
519
+ "[RUBRIC] recovery_resilience: 0.00 - missing",
520
+ "[RUBRIC] weighted_score: 0.75",
521
+ ],
522
+ "checks_failed": [],
523
+ "events_summary": {},
524
+ }
525
+ (reports / "workflow_report.json").write_text(json.dumps(workflow))
526
+ (reports / "baseline_report.json").write_text(json.dumps(baseline))
527
+
528
+ report = build_report(experiment)
529
+
530
+ assert "| **Overall** | — | 0.25 | 0.75 | -0.50 |" in report
531
+
532
+
533
+ def test_compare_report_marks_control_workflow_dimensions_with_slash(tmp_path: Path):
534
+ experiment = tmp_path / "experiment"
535
+ reports = experiment / "reports"
536
+ reports.mkdir(parents=True)
537
+
538
+ control = {
539
+ "name": "comet-full-workflow-CONTROL",
540
+ "passed": True,
541
+ "checks_passed": [
542
+ "[RUBRIC] main_flow: N/A - CONTROL business-only baseline",
543
+ "[RUBRIC] gate_guard: N/A - CONTROL business-only baseline",
544
+ "[RUBRIC] skill_invocation: N/A - CONTROL business-only baseline",
545
+ "[RUBRIC] spec_drift: N/A - CONTROL business-only baseline",
546
+ "[RUBRIC] business_completion: 1.00 - ok",
547
+ "[RUBRIC] workflow_completion: N/A - CONTROL business-only baseline",
548
+ "[RUBRIC] efficiency: 1.00 - ok",
549
+ "[RUBRIC] weighted_score: 1.00",
550
+ ],
551
+ "checks_failed": [],
552
+ "events_summary": {},
553
+ }
554
+ workflow = {
555
+ "name": "comet-full-workflow-COMET_FULL_040_BETA",
556
+ "passed": True,
557
+ "checks_passed": [
558
+ "[RUBRIC] main_flow: 1.00 - ok",
559
+ "[RUBRIC] gate_guard: 1.00 - ok",
560
+ "[RUBRIC] skill_invocation: 1.00 - ok",
561
+ "[RUBRIC] spec_drift: 1.00 - ok",
562
+ "[RUBRIC] business_completion: 1.00 - ok",
563
+ "[RUBRIC] workflow_completion: 1.00 - ok",
564
+ "[RUBRIC] efficiency: 1.00 - ok",
565
+ "[RUBRIC] weighted_score: 1.00",
566
+ ],
567
+ "checks_failed": [],
568
+ "events_summary": {},
569
+ }
570
+ baseline = dict(workflow, name="comet-full-workflow-COMET_FULL_039")
571
+ (reports / "control_report.json").write_text(json.dumps(control))
572
+ (reports / "workflow_report.json").write_text(json.dumps(workflow))
573
+ (reports / "baseline_report.json").write_text(json.dumps(baseline))
574
+
575
+ report = build_report(experiment)
576
+
577
+ assert "| main_flow | / | 1.00 | 1.00 | +0.00 |" in report
578
+ assert "| skill_invocation | / | 1.00 | 1.00 | +0.00 |" in report
579
+ assert "| business_completion | 1.00 | 1.00 | 1.00 | +0.00 |" in report
580
+ assert "| workflow_completion | / | 1.00 | 1.00 | +0.00 |" in report
581
+ assert "| completion |" not in report
582
+
583
+
584
+ def test_compare_report_excludes_hard_noise_from_analysis_metrics(tmp_path: Path):
585
+ experiment = tmp_path / "experiment"
586
+ reports = experiment / "reports"
587
+ reports.mkdir(parents=True)
588
+ _write_report(reports, "CONTROL", 100, 0.01)
589
+ _write_quality_report(
590
+ reports,
591
+ "workflow_clean",
592
+ name="comet-fix-median-COMET_FULL_040_BETA",
593
+ weighted_score=1.0,
594
+ tokens=200,
595
+ cost=0.02,
596
+ sample_quality={
597
+ "status": "included",
598
+ "reason_code": "valid_signal",
599
+ "reason": "clean",
600
+ "include_in_analysis": True,
601
+ "confidence": "high",
602
+ "evidence": ["result event present"],
603
+ },
604
+ )
605
+ _write_quality_report(
606
+ reports,
607
+ "workflow_timeout",
608
+ name="comet-fix-median-COMET_FULL_040_BETA-r1",
609
+ weighted_score=0.0,
610
+ tokens=999,
611
+ cost=9.99,
612
+ sample_quality={
613
+ "status": "excluded",
614
+ "reason_code": "api_timeout",
615
+ "reason": "timeout",
616
+ "include_in_analysis": False,
617
+ "confidence": "high",
618
+ "evidence": ["stderr timeout"],
619
+ },
620
+ passed=False,
621
+ )
622
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
623
+
624
+ report = build_report(experiment)
625
+
626
+ assert "## Data quality summary" in report
627
+ assert "| COMET_FULL_040_BETA | 2 | 1 | 0 | 1 |" in report
628
+ assert "| COMET_FULL_040_BETA | 1 |" in report
629
+ assert "| COMET_FULL_040_BETA | 1 | 200 | $0.0200 | 200 | $0.0200 |" in report
630
+ assert "workflow_timeout" in report
631
+ assert "api_timeout" in report
632
+ assert "999" not in report.split("## Spend summary", 1)[1].split("## Source evidence", 1)[0]
633
+
634
+
635
+ def test_compare_report_lists_flagged_runs_without_excluding_them(tmp_path: Path):
636
+ experiment = tmp_path / "experiment"
637
+ reports = experiment / "reports"
638
+ reports.mkdir(parents=True)
639
+ _write_report(reports, "CONTROL", 100, 0.01)
640
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
641
+ _write_quality_report(
642
+ reports,
643
+ "workflow_flagged",
644
+ name="comet-full-workflow-COMET_FULL_040_BETA",
645
+ weighted_score=0.5,
646
+ tokens=200,
647
+ cost=0.02,
648
+ sample_quality={
649
+ "status": "flagged",
650
+ "reason_code": "harness_trigger_suspect",
651
+ "reason": "target Skill may not have been triggered",
652
+ "include_in_analysis": True,
653
+ "confidence": "medium",
654
+ "evidence": ["target Skill was never invoked"],
655
+ },
656
+ )
657
+
658
+ report = build_report(experiment)
659
+
660
+ assert "## Flagged runs" in report
661
+ assert "harness_trigger_suspect" in report
662
+ assert "| Treatment | Raw runs | Analysis set | Flagged | Excluded |" in report
663
+ assert "| COMET_FULL_040_BETA | 1 | 1 | 1 | 0 |" in report
664
+ assert "| COMET_FULL_040_BETA | 1 | 200 | $0.0200 | 200 | $0.0200 |" in report
665
+
666
+
667
+ def test_compare_report_summarizes_multiline_loop_evidence(tmp_path: Path):
668
+ experiment = tmp_path / "experiment"
669
+ reports = experiment / "reports"
670
+ reports.mkdir(parents=True)
671
+ _write_report(reports, "CONTROL", 100, 0.01)
672
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
673
+ _write_quality_report(
674
+ reports,
675
+ "workflow_flagged",
676
+ name="comet-full-workflow-COMET_FULL_040_BETA",
677
+ weighted_score=0.5,
678
+ tokens=200,
679
+ cost=0.02,
680
+ sample_quality={
681
+ "status": "flagged",
682
+ "reason_code": "completed_run_mentions_outer_failure",
683
+ "reason": "completed with suspicious runner output",
684
+ "include_in_analysis": True,
685
+ "confidence": "medium",
686
+ "evidence": [
687
+ "[loop] turn 1/12\n"
688
+ "[loop] decision point detected; simulating user reply\n"
689
+ "[loop] simulated reply (42 chars)\n"
690
+ "[loop] turn 2/12\n"
691
+ "[loop] workflow appears complete; ending\n"
692
+ "[loop] finished after 2 turns"
693
+ ],
694
+ },
695
+ )
696
+
697
+ report = build_report(experiment)
698
+
699
+ assert "loop trace: 2 turns; 1 simulated decision reply; see report JSON for full evidence" in report
700
+ flagged_section = report.split("## Flagged runs", 1)[1].split("## Raw vs analysis", 1)[0]
701
+ assert "[loop] decision point detected" not in flagged_section
702
+
703
+
704
+ def test_compare_report_reports_insufficient_clean_data(tmp_path: Path):
705
+ experiment = tmp_path / "experiment"
706
+ reports = experiment / "reports"
707
+ reports.mkdir(parents=True)
708
+ _write_report(reports, "CONTROL", 100, 0.01)
709
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
710
+ _write_quality_report(
711
+ reports,
712
+ "workflow_timeout",
713
+ name="comet-full-workflow-COMET_FULL_040_BETA",
714
+ weighted_score=0.0,
715
+ tokens=999,
716
+ cost=9.99,
717
+ sample_quality={
718
+ "status": "excluded",
719
+ "reason_code": "runner_timeout",
720
+ "reason": "timeout",
721
+ "include_in_analysis": False,
722
+ "confidence": "high",
723
+ "evidence": ["Timeout after 600s"],
724
+ },
725
+ passed=False,
726
+ )
727
+
728
+ report = build_report(experiment)
729
+
730
+ assert "Insufficient clean data" in report
731
+ assert "COMET_FULL_040_BETA" in report
732
+
733
+
734
+ def test_compare_report_keeps_data_quality_sections_when_all_key_runs_are_excluded(tmp_path: Path):
735
+ experiment = tmp_path / "experiment"
736
+ reports = experiment / "reports"
737
+ reports.mkdir(parents=True)
738
+ _write_quality_report(
739
+ reports,
740
+ "workflow_timeout",
741
+ name="comet-full-workflow-COMET_FULL_040_BETA",
742
+ weighted_score=0.0,
743
+ tokens=999,
744
+ cost=9.99,
745
+ sample_quality={
746
+ "status": "excluded",
747
+ "reason_code": "runner_timeout",
748
+ "reason": "timeout",
749
+ "include_in_analysis": False,
750
+ "confidence": "high",
751
+ "evidence": ["Timeout after 600s"],
752
+ },
753
+ passed=False,
754
+ )
755
+ _write_quality_report(
756
+ reports,
757
+ "baseline_timeout",
758
+ name="comet-full-workflow-COMET_FULL_039",
759
+ weighted_score=0.0,
760
+ tokens=888,
761
+ cost=8.88,
762
+ sample_quality={
763
+ "status": "excluded",
764
+ "reason_code": "api_timeout",
765
+ "reason": "timeout",
766
+ "include_in_analysis": False,
767
+ "confidence": "high",
768
+ "evidence": ["stderr timeout"],
769
+ },
770
+ passed=False,
771
+ )
772
+
773
+ report = build_report(experiment)
774
+
775
+ assert "## Data quality summary" in report
776
+ assert "## Excluded runs" in report
777
+ assert "## Source evidence" in report
778
+ assert "Insufficient clean data" in report
779
+ assert "No report data found" not in report
780
+
781
+
782
+ def test_html_report_includes_data_quality_summary(tmp_path: Path):
783
+ experiment = tmp_path / "experiment"
784
+ reports = experiment / "reports"
785
+ reports.mkdir(parents=True)
786
+ _write_report(reports, "CONTROL", 100, 0.01)
787
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
788
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
789
+
790
+ markdown = build_report(experiment)
791
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
792
+
793
+ assert "Data quality summary" in html
794
+ assert "paper-figure" in html
795
+
796
+
797
+ def test_html_report_wraps_wide_evidence_tables(tmp_path: Path):
798
+ experiment = tmp_path / "experiment"
799
+ reports = experiment / "reports"
800
+ reports.mkdir(parents=True)
801
+ _write_report(reports, "CONTROL", 100, 0.01)
802
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
803
+ _write_quality_report(
804
+ reports,
805
+ "workflow_flagged",
806
+ name="comet-full-workflow-COMET_FULL_040_BETA",
807
+ weighted_score=0.5,
808
+ tokens=200,
809
+ cost=0.02,
810
+ sample_quality={
811
+ "status": "flagged",
812
+ "reason_code": "completed_run_mentions_outer_failure",
813
+ "reason": "completed with suspicious runner output",
814
+ "include_in_analysis": True,
815
+ "confidence": "medium",
816
+ "evidence": ["a-very-long-evidence-token-without-natural-breaks-" * 8],
817
+ },
818
+ )
819
+
820
+ markdown = build_report(experiment)
821
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
822
+
823
+ assert 'class="table-scroll"' in html
824
+ assert 'class="col-evidence"' in html
825
+ assert 'class="col-report"' in html
826
+ assert "overflow-wrap: anywhere" in html
827
+
828
+
829
+ def test_html_report_includes_bilingual_language_toggle(tmp_path: Path):
830
+ experiment = tmp_path / "experiment"
831
+ reports = experiment / "reports"
832
+ reports.mkdir(parents=True)
833
+ _write_report(reports, "CONTROL", 100, 0.01)
834
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
835
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
836
+
837
+ markdown = build_report(experiment)
838
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
839
+
840
+ assert '<html lang="zh-CN" data-lang="zh">' in html
841
+ assert 'class="language-toggle"' in html
842
+ assert 'data-set-lang="zh"' in html
843
+ assert 'data-set-lang="en"' in html
844
+ assert 'data-locale="zh"' in html
845
+ assert 'data-locale="en"' in html
846
+ assert "Comet 基线对比报告" in html
847
+ assert "Comet Baseline Comparison Report" in html
848
+ assert "pass@k / pass^k — 能力上限 vs 可靠性下限" in html
849
+ assert "指标说明" in html
850
+ assert "运行摘要" in html
851
+ assert "业务 validator 通过率" in html
852
+
853
+
854
+ def test_html_report_uses_conference_paper_layout(tmp_path: Path):
855
+ experiment = tmp_path / "experiment"
856
+ reports = experiment / "reports"
857
+ reports.mkdir(parents=True)
858
+ _write_report(reports, "CONTROL", 100, 0.01)
859
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
860
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
861
+
862
+ markdown = build_report(experiment)
863
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
864
+
865
+ assert "--page-width: 980px;" in html
866
+ assert "linear-gradient(90deg" not in html
867
+ assert "box-shadow: none;" in html
868
+ assert "border-top: 2px solid var(--ink);" in html
869
+ assert html.index("<h1>Comet 基线对比报告</h1>") < html.index('class="paper-figures"')
870
+
871
+
872
+ def test_html_report_includes_paper_abstract_and_centers_figures(tmp_path: Path):
873
+ experiment = tmp_path / "experiment"
874
+ reports = experiment / "reports"
875
+ reports.mkdir(parents=True)
876
+ _write_report(reports, "CONTROL", 100, 0.01)
877
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
878
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
879
+
880
+ markdown = build_report(experiment)
881
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
882
+
883
+ assert '<section class="paper-abstract">' in html
884
+ assert "<strong>Abstract.</strong>" in html
885
+ assert "<strong>摘要。</strong>" in html
886
+ assert "justify-items: center;" in html
887
+ assert "margin-left: auto;" in html
888
+ assert "margin-right: auto;" in html
889
+ assert html.index("<h1>Comet 基线对比报告</h1>") < html.index('<section class="paper-abstract">')
890
+ assert html.index('<section class="paper-abstract">') < html.index('class="paper-figures"')
891
+
892
+
893
+ def test_html_report_centers_markdown_tables(tmp_path: Path):
894
+ experiment = tmp_path / "experiment"
895
+ reports = experiment / "reports"
896
+ reports.mkdir(parents=True)
897
+ _write_report(reports, "CONTROL", 100, 0.01)
898
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
899
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
900
+
901
+ markdown = build_report(experiment)
902
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
903
+
904
+ assert "width: max-content;" in html
905
+ assert "max-width: 100%;" in html
906
+ assert "margin: 0 auto 1rem;" in html
907
+ assert "margin: 0 auto;" in html
908
+ assert "text-align: center;" in html
909
+ assert ".col-task," in html
910
+
911
+
912
+ def test_html_report_renders_localized_emphasis_without_literal_underscore_markers(tmp_path: Path):
913
+ experiment = tmp_path / "experiment"
914
+ reports = experiment / "reports"
915
+ reports.mkdir(parents=True)
916
+ _write_report(reports, "CONTROL", 100, 0.01)
917
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
918
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
919
+
920
+ markdown = build_report(experiment)
921
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
922
+
923
+ assert "<p>_分数是二值通过率" not in html
924
+ assert "权重见下方)。_</p>" not in html
925
+ assert "<p><em>分数是二值通过率" in html
926
+ assert "weighted_score" in html
927
+
928
+
929
+ def test_html_report_keeps_chinese_chart_text_utf8(tmp_path: Path):
930
+ experiment = tmp_path / "experiment"
931
+ reports = experiment / "reports"
932
+ reports.mkdir(parents=True)
933
+ _write_report(reports, "CONTROL", 100, 0.01)
934
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
935
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
936
+
937
+ markdown = build_report(experiment)
938
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
939
+
940
+ assert "图 1. Rubric 维度差异" in html
941
+ assert "图 3. 任务结果矩阵" in html
942
+ assert "ͼ 1." not in html
943
+ assert "����" not in html
944
+
945
+
946
+ def test_html_report_localizes_failure_attribution_in_chinese_layer(tmp_path: Path):
947
+ experiment = tmp_path / "experiment"
948
+ reports = experiment / "reports"
949
+ reports.mkdir(parents=True)
950
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
951
+ control = {
952
+ "name": "comet-fix-median-CONTROL",
953
+ "passed": False,
954
+ "checks_passed": [],
955
+ "checks_failed": ["business validator failed"],
956
+ "events_summary": {},
957
+ }
958
+ workflow = {
959
+ "name": "comet-fix-median-COMET_FULL_040_BETA",
960
+ "passed": False,
961
+ "checks_passed": [],
962
+ "checks_failed": ["workflow validator failed"],
963
+ "events_summary": {},
964
+ }
965
+ (reports / "control_report.json").write_text(json.dumps(control), encoding="utf-8")
966
+ (reports / "workflow_report.json").write_text(json.dumps(workflow), encoding="utf-8")
967
+
968
+ markdown = build_report(experiment)
969
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
970
+ zh = html.split('<section class="localized" data-locale="zh"', 1)[1].split(
971
+ '<section class="localized" data-locale="en"',
972
+ 1,
973
+ )[0]
974
+
975
+ assert "CONTROL(1 个失败)" in zh
976
+ assert "business/业务" in zh
977
+ assert "业务实现未通过" in zh
978
+ assert "workflow/流程" in zh
979
+ assert "Workflow 验证未通过" in zh
980
+ assert "model/模型" not in zh
981
+ assert "unclassified failure" not in zh
982
+ assert "failure(s)" not in zh
983
+
984
+
985
+ def test_html_report_renders_markdown_emphasis_without_literal_underscores(tmp_path: Path):
986
+ experiment = tmp_path / "experiment"
987
+ reports = experiment / "reports"
988
+ reports.mkdir(parents=True)
989
+ _write_report(reports, "CONTROL", 100, 0.01)
990
+ _write_report(reports, "COMET_FULL_040_BETA", 200, 0.02)
991
+ _write_report(reports, "COMET_FULL_039", 300, 0.03)
992
+
993
+ markdown = build_report(experiment)
994
+ html = render_markdown_html(markdown, title="Comet Baseline Comparison Report")
995
+
996
+ assert "<em>仅统计分析集;已排除的硬噪声运行不会进入统计。</em>" in html
997
+ assert "<em>Analysis set only; excluded hard-noise runs are omitted.</em>" in html
998
+ assert "<p>_仅统计分析集" not in html
999
+ assert "<p>_Analysis set only" not in html