oh-my-knowledge 1.0.0-beta.8 → 1.0.0

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 (1995) hide show
  1. package/README.md +27 -75
  2. package/README.zh.md +27 -75
  3. package/dist/assets/agent-skills/omk/SKILL.md +114 -55
  4. package/dist/assets/agent-skills/omk/references/commands.md +505 -135
  5. package/dist/assets/agent-skills/omk/references/knowledge-maintenance.md +33 -0
  6. package/dist/assets/agent-skills/omk/references/knowledge-reuse.md +69 -0
  7. package/dist/cli/commands/agents.d.ts +21 -0
  8. package/dist/cli/commands/agents.js +251 -0
  9. package/dist/cli/commands/doctor.d.ts +1 -1
  10. package/dist/cli/commands/doctor.js +17 -11
  11. package/dist/cli/commands/eval/gold/compare.d.ts +1 -1
  12. package/dist/cli/commands/eval/gold/compare.js +1 -1
  13. package/dist/cli/commands/eval/gold/index.d.ts +1 -1
  14. package/dist/cli/commands/eval/gold/init.d.ts +1 -1
  15. package/dist/cli/commands/eval/gold/validate.d.ts +1 -1
  16. package/dist/cli/commands/eval/index.d.ts +1 -2
  17. package/dist/cli/commands/eval/index.js +4 -26
  18. package/dist/cli/commands/eval/task.d.ts +13 -0
  19. package/dist/cli/commands/eval/task.js +42 -0
  20. package/dist/cli/commands/evolve.d.ts +1 -1
  21. package/dist/cli/commands/evolve.js +6 -44
  22. package/dist/cli/commands/init.d.ts +1 -1
  23. package/dist/cli/commands/init.js +57 -18
  24. package/dist/cli/commands/install.d.ts +2 -2
  25. package/dist/cli/commands/install.js +50 -132
  26. package/dist/cli/commands/know/extract.d.ts +34 -0
  27. package/dist/cli/commands/know/extract.js +285 -0
  28. package/dist/cli/commands/know/index.d.ts +8 -0
  29. package/dist/cli/commands/know/index.js +16 -0
  30. package/dist/cli/commands/know/list.d.ts +10 -0
  31. package/dist/cli/commands/know/list.js +10 -0
  32. package/dist/cli/commands/know/migrate.d.ts +23 -0
  33. package/dist/cli/commands/know/migrate.js +131 -0
  34. package/dist/cli/commands/know/retrieve.d.ts +20 -0
  35. package/dist/cli/commands/know/retrieve.js +38 -0
  36. package/dist/cli/commands/know/review.d.ts +24 -0
  37. package/dist/cli/commands/know/review.js +98 -0
  38. package/dist/cli/commands/know/revise.d.ts +21 -0
  39. package/dist/cli/commands/know/revise.js +63 -0
  40. package/dist/cli/commands/know/runs.d.ts +28 -0
  41. package/dist/cli/commands/know/runs.js +115 -0
  42. package/dist/cli/commands/know/show.d.ts +24 -0
  43. package/dist/cli/commands/know/show.js +68 -0
  44. package/dist/cli/commands/know/sources.d.ts +20 -0
  45. package/dist/cli/commands/know/sources.js +98 -0
  46. package/dist/cli/commands/observe/entity-links.d.ts +37 -0
  47. package/dist/cli/commands/observe/entity-links.js +240 -0
  48. package/dist/cli/commands/observe/inbox.d.ts +1 -1
  49. package/dist/cli/commands/observe/inbox.js +11 -9
  50. package/dist/cli/commands/observe/index.d.ts +2 -3
  51. package/dist/cli/commands/observe/index.js +9 -71
  52. package/dist/cli/commands/observe/ingest.d.ts +2 -2
  53. package/dist/cli/commands/observe/ingest.js +12 -9
  54. package/dist/cli/commands/observe/show.d.ts +1 -1
  55. package/dist/cli/commands/observe/show.js +3 -3
  56. package/dist/cli/commands/sample.d.ts +1 -1
  57. package/dist/cli/commands/sample.js +6 -6
  58. package/dist/cli/commands/studio.d.ts +4 -1
  59. package/dist/cli/commands/studio.js +72 -48
  60. package/dist/cli/index.js +4 -5
  61. package/dist/cli/lib/cell-format.d.ts +1 -5
  62. package/dist/cli/lib/cell-format.js +1 -5
  63. package/dist/cli/lib/codex-model-hint.js +5 -14
  64. package/dist/cli/lib/core-report-service.js +6 -5
  65. package/dist/cli/lib/entity-link-output.d.ts +450 -0
  66. package/dist/cli/lib/entity-link-output.js +79 -0
  67. package/dist/cli/lib/eval-output.js +0 -5
  68. package/dist/cli/lib/generation-failure-hint.js +0 -21
  69. package/dist/cli/lib/i18n-dict/common.d.ts +1 -1
  70. package/dist/cli/lib/i18n-dict/common.js +12 -8
  71. package/dist/cli/lib/i18n-dict/evolve.d.ts +1 -1
  72. package/dist/cli/lib/i18n-dict/evolve.js +2 -6
  73. package/dist/cli/lib/i18n-dict/gen.d.ts +1 -1
  74. package/dist/cli/lib/i18n-dict/gen.js +8 -20
  75. package/dist/cli/lib/i18n-dict/init.d.ts +1 -1
  76. package/dist/cli/lib/i18n-dict/init.js +6 -0
  77. package/dist/cli/lib/i18n-dict/install.d.ts +1 -1
  78. package/dist/cli/lib/i18n-dict/install.js +4 -20
  79. package/dist/cli/lib/i18n-dict/run.d.ts +1 -1
  80. package/dist/cli/lib/i18n-dict/run.js +4 -24
  81. package/dist/cli/lib/i18n-dict.d.ts +1 -4
  82. package/dist/cli/lib/i18n-dict.js +0 -6
  83. package/dist/cli/lib/i18n.d.ts +6 -3
  84. package/dist/cli/lib/i18n.js +18 -10
  85. package/dist/cli/lib/know-command.d.ts +60 -0
  86. package/dist/cli/lib/know-command.js +198 -0
  87. package/dist/cli/lib/knowledge-output.d.ts +4 -0
  88. package/dist/cli/lib/knowledge-output.js +39 -0
  89. package/dist/cli/lib/knowledge-review-actor.d.ts +3 -0
  90. package/dist/cli/lib/knowledge-review-actor.js +8 -0
  91. package/dist/cli/lib/prepare-evaluation.js +2 -2
  92. package/dist/cli/lib/progress.d.ts +1 -1
  93. package/dist/cli/lib/resolve-skill-input.d.ts +0 -1
  94. package/dist/cli/lib/run-core-evaluation.js +1 -13
  95. package/dist/cli/lib/runtime-defaults.d.ts +2 -6
  96. package/dist/cli/lib/runtime-defaults.js +15 -49
  97. package/dist/cli/lib/update-check.js +1 -1
  98. package/dist/cli/oclif/base-command.d.ts +6 -2
  99. package/dist/cli/oclif/base-command.js +32 -7
  100. package/dist/cli/oclif/i18n.d.ts +5 -2
  101. package/dist/cli/oclif/i18n.js +10 -5
  102. package/dist/cli/oclif/run.js +2 -1
  103. package/dist/cli/runtime/entity-capture.d.ts +10 -0
  104. package/dist/cli/runtime/entity-capture.js +15 -0
  105. package/dist/cli/templates/init-samples.d.ts +2 -1
  106. package/dist/cli/templates/init-samples.js +115 -43
  107. package/dist/dsh-plugin/cleanup.d.ts +3 -0
  108. package/dist/dsh-plugin/cleanup.js +22 -0
  109. package/dist/dsh-plugin/core-adapter.d.ts +2 -0
  110. package/dist/dsh-plugin/core-adapter.js +42 -48
  111. package/dist/dsh-plugin/core-command.js +2 -9
  112. package/dist/dsh-plugin/core-protocol.d.ts +1 -1
  113. package/dist/dsh-plugin/core-protocol.js +1 -1
  114. package/dist/dsh-plugin/host-executor.js +65 -50
  115. package/dist/dsh-plugin/index.js +52 -23
  116. package/dist/dsh-plugin/observe.d.ts +2 -2
  117. package/dist/dsh-plugin/observe.js +3 -3
  118. package/dist/dsh-plugin/protocol.js +2 -2
  119. package/dist/dsh-plugin/resources.d.ts +86 -0
  120. package/dist/dsh-plugin/resources.js +392 -0
  121. package/dist/dsh-plugin/trace-adapter.d.ts +2 -2
  122. package/dist/dsh-plugin/trace-adapter.js +4 -7
  123. package/dist/eval-core/analysis/bootstrap-kernel.d.ts +19 -0
  124. package/dist/eval-core/analysis/bootstrap-kernel.js +55 -0
  125. package/dist/eval-core/analysis/bootstrap.d.ts +158 -0
  126. package/dist/eval-core/analysis/bootstrap.js +205 -0
  127. package/dist/eval-core/analysis/builtin-aggregation.d.ts +28 -0
  128. package/dist/eval-core/analysis/builtin-aggregation.js +131 -0
  129. package/dist/eval-core/analysis/builtin-bootstrap.d.ts +16 -0
  130. package/dist/eval-core/analysis/builtin-bootstrap.js +447 -0
  131. package/dist/eval-core/analysis/builtin-composite.d.ts +25 -0
  132. package/dist/eval-core/analysis/builtin-composite.js +211 -0
  133. package/dist/eval-core/analysis/builtin-decisions.d.ts +38 -0
  134. package/dist/eval-core/analysis/builtin-decisions.js +177 -0
  135. package/dist/eval-core/analysis/builtin-hypothesis.d.ts +41 -0
  136. package/dist/eval-core/analysis/builtin-hypothesis.js +155 -0
  137. package/dist/eval-core/analysis/builtin-identity.d.ts +32 -0
  138. package/dist/eval-core/analysis/builtin-identity.js +134 -0
  139. package/dist/eval-core/analysis/builtin-primitives.d.ts +32 -0
  140. package/dist/eval-core/analysis/builtin-primitives.js +158 -0
  141. package/dist/eval-core/analysis/builtin-registry.d.ts +2 -0
  142. package/dist/eval-core/analysis/builtin-registry.js +235 -0
  143. package/dist/eval-core/analysis/builtin-schemas.d.ts +297 -0
  144. package/dist/eval-core/analysis/builtin-schemas.js +308 -0
  145. package/dist/eval-core/analysis/builtin-validation.d.ts +23 -0
  146. package/dist/eval-core/analysis/builtin-validation.js +74 -0
  147. package/dist/eval-core/analysis/builtins.d.ts +5 -60
  148. package/dist/eval-core/analysis/builtins.js +17 -1974
  149. package/dist/eval-core/analysis/decision.js +10 -9
  150. package/dist/eval-core/analysis/runtime.js +10 -35
  151. package/dist/eval-core/budget/index.js +5 -42
  152. package/dist/eval-core/compiler/index.d.ts +1 -3
  153. package/dist/eval-core/compiler/index.js +8 -895
  154. package/dist/eval-core/compiler/preparation/capabilities.d.ts +8 -0
  155. package/dist/eval-core/compiler/preparation/capabilities.js +175 -0
  156. package/dist/eval-core/compiler/preparation/definition.d.ts +5 -0
  157. package/dist/eval-core/compiler/preparation/definition.js +105 -0
  158. package/dist/eval-core/compiler/preparation/extensions.d.ts +11 -0
  159. package/dist/eval-core/compiler/preparation/extensions.js +74 -0
  160. package/dist/eval-core/compiler/preparation/runtimes.d.ts +7 -0
  161. package/dist/eval-core/compiler/preparation/runtimes.js +433 -0
  162. package/dist/eval-core/compiler/preparation/schemas.d.ts +9 -0
  163. package/dist/eval-core/compiler/preparation/schemas.js +122 -0
  164. package/dist/eval-core/compiler/types.d.ts +1 -1
  165. package/dist/eval-core/compiler/validation/analysis.d.ts +8 -0
  166. package/dist/eval-core/compiler/validation/analysis.js +304 -0
  167. package/dist/eval-core/compiler/validation/bindings.d.ts +4 -0
  168. package/dist/eval-core/compiler/validation/bindings.js +110 -0
  169. package/dist/eval-core/compiler/validation/policy.d.ts +2 -0
  170. package/dist/eval-core/compiler/validation/policy.js +56 -0
  171. package/dist/eval-core/compiler/validation/sampling.d.ts +2 -0
  172. package/dist/eval-core/compiler/validation/sampling.js +140 -0
  173. package/dist/eval-core/compiler/validation/shared.d.ts +3 -0
  174. package/dist/eval-core/compiler/validation/shared.js +19 -0
  175. package/dist/eval-core/compiler/validation.d.ts +2 -6
  176. package/dist/eval-core/compiler/validation.js +12 -621
  177. package/dist/eval-core/contracts/analysis-bundle.d.ts +17 -13
  178. package/dist/eval-core/contracts/analysis-bundle.js +0 -563
  179. package/dist/eval-core/contracts/analysis-input-matching.js +2 -2
  180. package/dist/eval-core/contracts/artifacts.js +2 -2
  181. package/dist/eval-core/contracts/budget.d.ts +18 -0
  182. package/dist/eval-core/contracts/budget.js +93 -83
  183. package/dist/eval-core/contracts/common.js +1 -1
  184. package/dist/eval-core/contracts/comparability.d.ts +15 -7
  185. package/dist/eval-core/contracts/comparability.js +11 -816
  186. package/dist/eval-core/contracts/definition.d.ts +10 -0
  187. package/dist/eval-core/contracts/definition.js +8 -2
  188. package/dist/eval-core/contracts/digests.d.ts +2 -2
  189. package/dist/eval-core/contracts/digests.js +8 -31
  190. package/dist/eval-core/contracts/evaluation-bundle.d.ts +13 -31
  191. package/dist/eval-core/contracts/evaluation-bundle.js +0 -843
  192. package/dist/eval-core/contracts/evaluation-identities.js +2 -2
  193. package/dist/eval-core/contracts/evaluation-report.d.ts +3 -17
  194. package/dist/eval-core/contracts/evaluation-report.js +2 -202
  195. package/dist/eval-core/contracts/execution-bundle.d.ts +6 -36
  196. package/dist/eval-core/contracts/execution-bundle.js +0 -649
  197. package/dist/eval-core/contracts/execution-controls.js +1 -3
  198. package/dist/eval-core/contracts/execution-facts.d.ts +2 -7
  199. package/dist/eval-core/contracts/execution-facts.js +1 -1
  200. package/dist/eval-core/contracts/execution-identities.d.ts +1 -1
  201. package/dist/eval-core/contracts/execution-identities.js +9 -31
  202. package/dist/eval-core/contracts/json-schema.d.ts +4 -1
  203. package/dist/eval-core/contracts/json-schema.js +10 -1
  204. package/dist/eval-core/contracts/json.js +3 -2
  205. package/dist/eval-core/contracts/plans.d.ts +5 -0
  206. package/dist/eval-core/contracts/runtime-capabilities.js +1 -1
  207. package/dist/eval-core/contracts/schemas/v1/measurement-policy.schema.json +8 -0
  208. package/dist/eval-core/contracts/schemas/v5/run-plan.schema.json +8 -0
  209. package/dist/eval-core/contracts/sealed-run-plan.d.ts +2 -2
  210. package/dist/eval-core/contracts/sealed-run-plan.js +1 -1
  211. package/dist/eval-core/contracts/series.d.ts +14 -24
  212. package/dist/eval-core/contracts/series.js +11 -387
  213. package/dist/eval-core/engine/index.js +6 -3
  214. package/dist/eval-core/evaluation/bundle.d.ts +4 -0
  215. package/dist/eval-core/evaluation/bundle.js +96 -0
  216. package/dist/eval-core/evaluation/coordinate.d.ts +34 -0
  217. package/dist/eval-core/evaluation/coordinate.js +776 -0
  218. package/dist/eval-core/evaluation/preparation.d.ts +6 -0
  219. package/dist/eval-core/evaluation/preparation.js +74 -0
  220. package/dist/eval-core/evaluation/runtime-state.d.ts +34 -0
  221. package/dist/eval-core/evaluation/runtime.js +73 -1009
  222. package/dist/eval-core/evaluation/types.d.ts +1 -1
  223. package/dist/eval-core/evaluation/types.js +1 -0
  224. package/dist/eval-core/execution/bundle.d.ts +4 -0
  225. package/dist/eval-core/execution/bundle.js +90 -0
  226. package/dist/eval-core/execution/coordinate.d.ts +27 -0
  227. package/dist/eval-core/execution/coordinate.js +669 -0
  228. package/dist/eval-core/execution/preparation.d.ts +4 -0
  229. package/dist/eval-core/execution/preparation.js +104 -0
  230. package/dist/eval-core/execution/runtime-state.d.ts +40 -0
  231. package/dist/eval-core/execution/runtime.js +20 -930
  232. package/dist/eval-core/execution/scheduler.js +1 -7
  233. package/dist/eval-core/index.d.ts +6 -5
  234. package/dist/eval-core/index.js +3 -2
  235. package/dist/eval-core/primitives/budget-outcome.d.ts +11 -0
  236. package/dist/eval-core/primitives/budget-outcome.js +8 -0
  237. package/dist/eval-core/primitives/graph.d.ts +2 -0
  238. package/dist/eval-core/primitives/graph.js +17 -0
  239. package/dist/eval-core/primitives/json-pointer.d.ts +12 -0
  240. package/dist/eval-core/primitives/json-pointer.js +31 -0
  241. package/dist/eval-core/primitives/ordering.d.ts +2 -0
  242. package/dist/eval-core/primitives/ordering.js +8 -0
  243. package/dist/eval-core/primitives/provenance.d.ts +11 -0
  244. package/dist/eval-core/primitives/provenance.js +19 -0
  245. package/dist/eval-core/runtime/abort.d.ts +2 -0
  246. package/dist/eval-core/runtime/abort.js +12 -0
  247. package/dist/eval-core/runtime/clock.d.ts +2 -0
  248. package/dist/eval-core/runtime/clock.js +4 -0
  249. package/dist/eval-core/runtime/event-stream.d.ts +1 -0
  250. package/dist/eval-core/runtime/event-stream.js +1 -0
  251. package/dist/eval-core/runtime/run-resources.d.ts +12 -0
  252. package/dist/eval-core/runtime/run-resources.js +39 -0
  253. package/dist/eval-core/schemas.js +2 -16
  254. package/dist/eval-core/series/runtime.js +21 -38
  255. package/dist/eval-core/verify/analysis-bundle.d.ts +13 -0
  256. package/dist/eval-core/verify/analysis-bundle.js +553 -0
  257. package/dist/eval-core/verify/comparability.d.ts +4 -0
  258. package/dist/eval-core/verify/comparability.js +804 -0
  259. package/dist/eval-core/verify/evaluation-bundle.d.ts +28 -0
  260. package/dist/eval-core/verify/evaluation-bundle.js +813 -0
  261. package/dist/eval-core/verify/evaluation-report.d.ts +18 -0
  262. package/dist/eval-core/verify/evaluation-report.js +201 -0
  263. package/dist/eval-core/verify/execution-bundle.d.ts +33 -0
  264. package/dist/eval-core/verify/execution-bundle.js +635 -0
  265. package/dist/eval-core/verify/index.d.ts +6 -0
  266. package/dist/eval-core/verify/index.js +6 -0
  267. package/dist/eval-core/verify/series.d.ts +24 -0
  268. package/dist/eval-core/verify/series.js +373 -0
  269. package/dist/eval-runtime/adapters/command-executor.d.ts +1 -1
  270. package/dist/eval-runtime/adapters/command-executor.js +1 -1
  271. package/dist/eval-runtime/adapters/json-executor.d.ts +3 -4
  272. package/dist/eval-runtime/adapters/json-executor.js +122 -222
  273. package/dist/eval-runtime/adapters/resource-lease.d.ts +56 -0
  274. package/dist/eval-runtime/adapters/resource-lease.js +107 -0
  275. package/dist/eval-runtime/builders/custom-evaluator.d.ts +49 -0
  276. package/dist/eval-runtime/builders/custom-evaluator.js +67 -0
  277. package/dist/eval-runtime/builders/paired-comparison.js +2 -2
  278. package/dist/eval-runtime/builders/policy.d.ts +19 -1
  279. package/dist/eval-runtime/builders/policy.js +11 -0
  280. package/dist/eval-runtime/builders/rubric-evaluator.d.ts +7 -0
  281. package/dist/eval-runtime/builders/rubric-evaluator.js +46 -0
  282. package/dist/eval-runtime/conformance/cache.d.ts +1 -1
  283. package/dist/eval-runtime/conformance/cache.js +15 -8
  284. package/dist/eval-runtime/conformance/content-store.d.ts +1 -1
  285. package/dist/eval-runtime/conformance/evaluator.d.ts +3 -3
  286. package/dist/eval-runtime/conformance/evaluator.js +28 -17
  287. package/dist/eval-runtime/conformance/executor.js +2 -2
  288. package/dist/eval-runtime/conformance/judge.js +5 -6
  289. package/dist/eval-runtime/conformance/runtime.d.ts +1 -1
  290. package/dist/eval-runtime/conformance/runtime.js +1 -1
  291. package/dist/eval-runtime/conformance/workspace-provider.d.ts +1 -1
  292. package/dist/eval-runtime/conformance/workspace-provider.js +1 -1
  293. package/dist/eval-runtime/content/executed-store.d.ts +48 -0
  294. package/dist/eval-runtime/content/executed-store.js +257 -0
  295. package/dist/eval-runtime/content/infrastructure.d.ts +51 -0
  296. package/dist/eval-runtime/content/infrastructure.js +89 -0
  297. package/dist/eval-runtime/content/result-store.d.ts +45 -0
  298. package/dist/eval-runtime/content/result-store.js +249 -0
  299. package/dist/eval-runtime/custom-evaluator.d.ts +14 -7
  300. package/dist/eval-runtime/custom-evaluator.js +173 -96
  301. package/dist/eval-runtime/debug/evaluator.d.ts +26 -0
  302. package/dist/eval-runtime/debug/evaluator.js +65 -0
  303. package/dist/eval-runtime/debug/rubric.d.ts +29 -0
  304. package/dist/eval-runtime/debug/rubric.js +92 -0
  305. package/dist/eval-runtime/evaluate.d.ts +2 -2
  306. package/dist/eval-runtime/evaluate.js +1 -1
  307. package/dist/eval-runtime/evaluation/capture-evaluators.d.ts +1 -1
  308. package/dist/eval-runtime/evaluation/capture-evaluators.js +29 -119
  309. package/dist/eval-runtime/evaluation/capture-input.d.ts +4 -4
  310. package/dist/eval-runtime/evaluation/capture-input.js +4 -4
  311. package/dist/eval-runtime/evaluation/capture-judge.d.ts +39 -0
  312. package/dist/eval-runtime/evaluation/capture-judge.js +45 -0
  313. package/dist/eval-runtime/evaluation/conformance.js +1 -1
  314. package/dist/eval-runtime/evaluation/contracts.d.ts +13 -9
  315. package/dist/eval-runtime/evaluation/definition.js +8 -8
  316. package/dist/eval-runtime/evaluation/errors.d.ts +9 -1
  317. package/dist/eval-runtime/evaluation/errors.js +7 -1
  318. package/dist/eval-runtime/evaluation/prepare.js +9 -6
  319. package/dist/eval-runtime/evaluation/result-state.d.ts +2 -2
  320. package/dist/eval-runtime/evaluation/result-state.js +1 -1
  321. package/dist/eval-runtime/evaluation/reuse.d.ts +2 -2
  322. package/dist/eval-runtime/evaluation/reuse.js +13 -8
  323. package/dist/eval-runtime/evaluation/rubric-declaration.d.ts +17 -0
  324. package/dist/eval-runtime/evaluation/rubric-declaration.js +118 -0
  325. package/dist/eval-runtime/evaluation/schemas.d.ts +15 -0
  326. package/dist/eval-runtime/evaluation/stage-session.js +1 -2
  327. package/dist/eval-runtime/evaluators/exact-match.d.ts +2 -0
  328. package/dist/eval-runtime/evaluators/exact-match.js +3 -2
  329. package/dist/eval-runtime/evaluators/formula.d.ts +28 -0
  330. package/dist/eval-runtime/evaluators/formula.js +208 -0
  331. package/dist/eval-runtime/execution/assembly.d.ts +35 -0
  332. package/dist/eval-runtime/execution/assembly.js +111 -0
  333. package/dist/eval-runtime/execution/clock.d.ts +3 -0
  334. package/dist/eval-runtime/execution/controls.d.ts +6 -0
  335. package/dist/eval-runtime/execution/controls.js +55 -0
  336. package/dist/eval-runtime/execution/lifecycle.d.ts +60 -0
  337. package/dist/eval-runtime/execution/lifecycle.js +183 -0
  338. package/dist/eval-runtime/execution/provider.d.ts +39 -0
  339. package/dist/eval-runtime/execution/provider.js +13 -0
  340. package/dist/eval-runtime/execution/run.d.ts +47 -0
  341. package/dist/eval-runtime/execution/run.js +116 -0
  342. package/dist/eval-runtime/index.d.ts +57 -12
  343. package/dist/eval-runtime/index.js +28 -3
  344. package/dist/eval-runtime/judges/rubric-contracts.d.ts +6 -5
  345. package/dist/eval-runtime/judges/rubric-contracts.js +25 -19
  346. package/dist/eval-runtime/judges/rubric-judge.d.ts +6 -5
  347. package/dist/eval-runtime/judges/rubric-judge.js +47 -62
  348. package/dist/eval-runtime/judges/rubric-kit.d.ts +6 -5
  349. package/dist/eval-runtime/judges/rubric-kit.js +9 -18
  350. package/dist/eval-runtime/judges/rubric-prompt.d.ts +2 -1
  351. package/dist/eval-runtime/judges/rubric-prompt.js +10 -12
  352. package/dist/eval-runtime/judges/rubric-readings.d.ts +13 -0
  353. package/dist/eval-runtime/judges/rubric-readings.js +44 -0
  354. package/dist/eval-runtime/resources/mcp-config.d.ts +48 -0
  355. package/dist/eval-runtime/resources/mcp-config.js +91 -0
  356. package/dist/eval-runtime/resources/mock-interception.d.ts +65 -0
  357. package/dist/eval-runtime/resources/mock-interception.js +110 -0
  358. package/dist/eval-runtime/resources/tool-policy.js +67 -0
  359. package/dist/eval-runtime/resources/workspace.d.ts +49 -0
  360. package/dist/eval-runtime/resources/workspace.js +85 -0
  361. package/dist/eval-runtime/series.js +3 -2
  362. package/dist/eval-runtime/traces/source-neutral.js +1 -1
  363. package/dist/eval-workflows/artifact-store/node-run-store.js +20 -15
  364. package/dist/eval-workflows/artifact-store/overlay-store.js +12 -10
  365. package/dist/eval-workflows/artifact-store/run-id.js +19 -0
  366. package/dist/eval-workflows/gold/dataset.js +15 -1
  367. package/dist/eval-workflows/gold/human.js +1 -1
  368. package/dist/eval-workflows/hosts/adapters/codex/cli.d.ts +1 -1
  369. package/dist/eval-workflows/hosts/adapters/codex/cli.js +19 -22
  370. package/dist/eval-workflows/hosts/adapters/codex/environment.d.ts +1 -2
  371. package/dist/eval-workflows/hosts/adapters/codex/environment.js +1 -1
  372. package/dist/eval-workflows/hosts/adapters/codex/reference-evaluator.d.ts +7 -0
  373. package/dist/eval-workflows/hosts/adapters/codex/reference-evaluator.js +48 -0
  374. package/dist/eval-workflows/hosts/adapters/codex/reference-executor.d.ts +24 -4
  375. package/dist/eval-workflows/hosts/adapters/codex/reference-executor.js +83 -56
  376. package/dist/eval-workflows/hosts/adapters/codex/reference-model.d.ts +3 -0
  377. package/dist/eval-workflows/hosts/adapters/codex/reference-model.js +37 -0
  378. package/dist/eval-workflows/hosts/adapters/codex/resources.js +3 -2
  379. package/dist/eval-workflows/hosts/adapters/codex/sdk-runtime.js +6 -32
  380. package/dist/eval-workflows/hosts/adapters/codex/sdk.d.ts +1 -1
  381. package/dist/eval-workflows/hosts/adapters/codex/sdk.js +19 -22
  382. package/dist/eval-workflows/hosts/adapters/custom/executor.d.ts +240 -0
  383. package/dist/eval-workflows/hosts/adapters/custom/executor.js +828 -0
  384. package/dist/eval-workflows/hosts/adapters/openai/api.js +18 -12
  385. package/dist/eval-workflows/hosts/adapters/openai/input.d.ts +7 -0
  386. package/dist/eval-workflows/hosts/adapters/openai/input.js +19 -0
  387. package/dist/eval-workflows/hosts/adapters/openai/protocol.d.ts +1 -1
  388. package/dist/eval-workflows/hosts/adapters/openai/protocol.js +1 -1
  389. package/dist/eval-workflows/hosts/adapters/shared/api-protocol-core.js +6 -3
  390. package/dist/eval-workflows/hosts/adapters/shared/classified-environment.js +2 -1
  391. package/dist/eval-workflows/hosts/adapters/shared/content-identity.d.ts +12 -0
  392. package/dist/eval-workflows/hosts/adapters/shared/content-identity.js +38 -3
  393. package/dist/eval-workflows/hosts/adapters/shared/sample-input.d.ts +18 -0
  394. package/dist/eval-workflows/hosts/adapters/shared/sample-input.js +40 -0
  395. package/dist/eval-workflows/hosts/adapters/shared/stateless-api-resources.d.ts +8 -2
  396. package/dist/eval-workflows/hosts/adapters/shared/stateless-api-resources.js +25 -5
  397. package/dist/eval-workflows/hosts/adapters/shared/trial-lifecycle.d.ts +44 -0
  398. package/dist/eval-workflows/hosts/adapters/shared/trial-lifecycle.js +41 -0
  399. package/dist/eval-workflows/hosts/application.d.ts +4 -10
  400. package/dist/eval-workflows/hosts/application.js +4 -19
  401. package/dist/eval-workflows/hosts/carrier-measurement.d.ts +18 -0
  402. package/dist/eval-workflows/hosts/carrier-measurement.js +249 -0
  403. package/dist/eval-workflows/hosts/composition/assembly.js +1 -3
  404. package/dist/eval-workflows/hosts/composition/builtins.js +22 -0
  405. package/dist/eval-workflows/hosts/composition/evolution-evaluation.js +0 -1
  406. package/dist/eval-workflows/hosts/composition/judge-provider-identity.d.ts +2 -1
  407. package/dist/eval-workflows/hosts/composition/judge-provider-identity.js +8 -2
  408. package/dist/eval-workflows/hosts/composition/node-preflight.js +2 -2
  409. package/dist/eval-workflows/hosts/composition/node-runtime.d.ts +1 -1
  410. package/dist/eval-workflows/hosts/composition/node-runtime.js +23 -39
  411. package/dist/eval-workflows/hosts/composition/preflight.js +1 -3
  412. package/dist/eval-workflows/hosts/composition/registered-runtime.d.ts +1 -1
  413. package/dist/eval-workflows/hosts/composition/runtime-registry.d.ts +5 -17
  414. package/dist/eval-workflows/hosts/composition/runtime-registry.js +9 -24
  415. package/dist/eval-workflows/hosts/composition/runtime.d.ts +3 -3
  416. package/dist/eval-workflows/hosts/composition/runtime.js +5 -4
  417. package/dist/eval-workflows/hosts/input-resolution/content-materialization.d.ts +27 -0
  418. package/dist/eval-workflows/hosts/input-resolution/content-materialization.js +85 -0
  419. package/dist/eval-workflows/hosts/input-resolution/node-cli-evaluation-resolver.js +45 -754
  420. package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.d.ts +21 -0
  421. package/dist/eval-workflows/hosts/input-resolution/resolution-artifacts.js +187 -0
  422. package/dist/eval-workflows/hosts/input-resolution/resolution-execution.d.ts +16 -0
  423. package/dist/eval-workflows/hosts/input-resolution/resolution-execution.js +201 -0
  424. package/dist/eval-workflows/hosts/input-resolution/resolution-resources.d.ts +29 -0
  425. package/dist/eval-workflows/hosts/input-resolution/resolution-resources.js +193 -0
  426. package/dist/eval-workflows/hosts/input-resolution/resolution-samples.d.ts +22 -0
  427. package/dist/eval-workflows/hosts/input-resolution/resolution-samples.js +130 -0
  428. package/dist/eval-workflows/hosts/local-task/acceptance.d.ts +13 -0
  429. package/dist/eval-workflows/hosts/local-task/acceptance.js +101 -0
  430. package/dist/eval-workflows/hosts/local-task/application.d.ts +99 -0
  431. package/dist/eval-workflows/hosts/local-task/application.js +177 -0
  432. package/dist/eval-workflows/hosts/local-task/diagnostics.d.ts +27 -0
  433. package/dist/eval-workflows/hosts/local-task/diagnostics.js +30 -0
  434. package/dist/eval-workflows/hosts/local-task/executor.d.ts +19 -0
  435. package/dist/eval-workflows/hosts/local-task/executor.js +135 -0
  436. package/dist/eval-workflows/hosts/local-task/files.d.ts +15 -0
  437. package/dist/eval-workflows/hosts/local-task/files.js +88 -0
  438. package/dist/eval-workflows/hosts/local-task/workspace.d.ts +6 -0
  439. package/dist/eval-workflows/hosts/local-task/workspace.js +32 -0
  440. package/dist/eval-workflows/hosts/node-environment.d.ts +3 -0
  441. package/dist/eval-workflows/hosts/node-environment.js +94 -0
  442. package/dist/eval-workflows/hosts/reference-executors.d.ts +1 -0
  443. package/dist/eval-workflows/hosts/reference-executors.js +1 -0
  444. package/dist/eval-workflows/hosts/resource-leases/access.js +1 -3
  445. package/dist/eval-workflows/hosts/resource-leases/node.js +1 -3
  446. package/dist/eval-workflows/hosts/resource-leases/types.d.ts +1 -1
  447. package/dist/eval-workflows/hosts/resource-leases/types.js +1 -1
  448. package/dist/eval-workflows/input-compilation/compile/binding.d.ts +3 -0
  449. package/dist/eval-workflows/input-compilation/compile/binding.js +190 -0
  450. package/dist/eval-workflows/input-compilation/compile/definition.d.ts +3 -0
  451. package/dist/eval-workflows/input-compilation/compile/definition.js +280 -0
  452. package/dist/eval-workflows/input-compilation/compile/policy.d.ts +4 -0
  453. package/dist/eval-workflows/input-compilation/compile/policy.js +155 -0
  454. package/dist/eval-workflows/input-compilation/compile/resources.d.ts +7 -0
  455. package/dist/eval-workflows/input-compilation/compile/resources.js +346 -0
  456. package/dist/eval-workflows/input-compilation/compile/values.d.ts +5 -0
  457. package/dist/eval-workflows/input-compilation/compile/values.js +95 -0
  458. package/dist/eval-workflows/input-compilation/compile.js +9 -1058
  459. package/dist/eval-workflows/input-compilation/parse.js +0 -6
  460. package/dist/eval-workflows/input-compilation/registry.d.ts +1 -1
  461. package/dist/eval-workflows/input-compilation/registry.js +0 -3
  462. package/dist/eval-workflows/input-compilation/types.d.ts +3 -4
  463. package/dist/eval-workflows/input-compilation/types.js +2 -2
  464. package/dist/eval-workflows/inputs/append-samples.js +2 -1
  465. package/dist/eval-workflows/inputs/contracts/config-schema.js +4 -4
  466. package/dist/eval-workflows/inputs/contracts/local-task-evidence.d.ts +46 -0
  467. package/dist/eval-workflows/inputs/contracts/local-task-evidence.js +26 -0
  468. package/dist/eval-workflows/inputs/contracts/local-task.d.ts +50 -0
  469. package/dist/eval-workflows/inputs/contracts/local-task.js +33 -0
  470. package/dist/eval-workflows/inputs/contracts/sample-input.d.ts +35 -0
  471. package/dist/eval-workflows/inputs/contracts/sample.d.ts +35 -6
  472. package/dist/eval-workflows/inputs/contracts/schemas/v3/eval-sample-set.schema.json +1021 -0
  473. package/dist/eval-workflows/inputs/contracts/variant.d.ts +1 -1
  474. package/dist/eval-workflows/inputs/eval-samples.d.ts +3 -6
  475. package/dist/eval-workflows/inputs/eval-samples.js +2 -12
  476. package/dist/eval-workflows/inputs/load-samples.d.ts +1 -1
  477. package/dist/eval-workflows/inputs/load-samples.js +10 -8
  478. package/dist/eval-workflows/inputs/rubric-contract.d.ts +1 -1
  479. package/dist/eval-workflows/inputs/rubric-contract.js +1 -1
  480. package/dist/eval-workflows/inputs/sample-contract.js +21 -5
  481. package/dist/eval-workflows/inputs/sample-document.js +7 -2
  482. package/dist/eval-workflows/inputs/sample-mapping.d.ts +4 -0
  483. package/dist/eval-workflows/inputs/sample-mapping.js +26 -0
  484. package/dist/eval-workflows/inputs/schemas/error.d.ts +5 -0
  485. package/dist/eval-workflows/inputs/schemas/error.js +12 -0
  486. package/dist/eval-workflows/inputs/schemas/json-schema.js +8 -2
  487. package/dist/eval-workflows/inputs/schemas/sample-input.d.ts +6 -0
  488. package/dist/eval-workflows/inputs/schemas/sample-input.js +102 -0
  489. package/dist/eval-workflows/inputs/schemas/sample-set.d.ts +7 -4
  490. package/dist/eval-workflows/inputs/schemas/sample-set.js +69 -9
  491. package/dist/eval-workflows/instruments/contracts/config.d.ts +1 -1
  492. package/dist/eval-workflows/instruments/prompts/judge-prompts.d.ts +1 -1
  493. package/dist/eval-workflows/instruments/prompts/judge-prompts.js +7 -1
  494. package/dist/eval-workflows/measurement/analysis/agreement-source-pairs.js +3 -26
  495. package/dist/eval-workflows/measurement/analysis/agreement-table.js +1 -1
  496. package/dist/eval-workflows/measurement/analysis/analysis-support.d.ts +0 -1
  497. package/dist/eval-workflows/measurement/analysis/analysis-support.js +0 -3
  498. package/dist/eval-workflows/measurement/analysis/assertion-layer-node.d.ts +1 -1
  499. package/dist/eval-workflows/measurement/analysis/assertion-layer-node.js +13 -9
  500. package/dist/eval-workflows/measurement/analysis/assertion-layer-parameters.d.ts +2 -0
  501. package/dist/eval-workflows/measurement/analysis/assertion-layer-parameters.js +14 -4
  502. package/dist/eval-workflows/measurement/analysis/assertion-layer.d.ts +2 -2
  503. package/dist/eval-workflows/measurement/analysis/assertion-layer.js +20 -7
  504. package/dist/eval-workflows/measurement/analysis/bootstrap-family-parameters.js +3 -2
  505. package/dist/eval-workflows/measurement/analysis/bootstrap-family-table-v2.d.ts +1 -1
  506. package/dist/eval-workflows/measurement/analysis/bootstrap-family-table-v2.js +1 -1
  507. package/dist/eval-workflows/measurement/analysis/bootstrap-family-table.js +3 -2
  508. package/dist/eval-workflows/measurement/analysis/composite-node-contract.d.ts +1 -0
  509. package/dist/eval-workflows/measurement/analysis/composite-node-contract.js +2 -1
  510. package/dist/eval-workflows/measurement/analysis/composite-table.js +2 -1
  511. package/dist/eval-workflows/measurement/analysis/dimension-node.js +2 -1
  512. package/dist/eval-workflows/measurement/analysis/dimension-parameters.js +2 -1
  513. package/dist/eval-workflows/measurement/analysis/dimension-table-v1.js +2 -1
  514. package/dist/eval-workflows/measurement/analysis/dimension-table.js +2 -1
  515. package/dist/eval-workflows/measurement/analysis/judge-aggregation.js +2 -1
  516. package/dist/eval-workflows/measurement/analysis/release-decision-parameters.js +2 -1
  517. package/dist/eval-workflows/measurement/analysis/release-decision.js +2 -1
  518. package/dist/eval-workflows/orchestration/artifact-graph-persistence.js +3 -2
  519. package/dist/eval-workflows/orchestration/evaluation-service.d.ts +2 -0
  520. package/dist/eval-workflows/orchestration/evaluation-service.js +9 -5
  521. package/dist/eval-workflows/orchestration/measurement-design.js +86 -32
  522. package/dist/eval-workflows/orchestration/orchestration.d.ts +2 -2
  523. package/dist/eval-workflows/orchestration/orchestration.js +6 -1
  524. package/dist/eval-workflows/orchestration/sample-content-resolution.d.ts +1 -1
  525. package/dist/eval-workflows/orchestration/sample-content-resolution.js +12 -18
  526. package/dist/eval-workflows/orchestration/workflow.d.ts +5 -5
  527. package/dist/eval-workflows/orchestration/workflow.js +6 -6
  528. package/dist/eval-workflows/projections/artifact-graph.d.ts +1 -1
  529. package/dist/eval-workflows/projections/artifact-graph.js +1 -1
  530. package/dist/eval-workflows/projections/carrier-measurement.d.ts +72 -0
  531. package/dist/eval-workflows/projections/contracts.d.ts +1 -47
  532. package/dist/eval-workflows/projections/contracts.js +0 -1
  533. package/dist/eval-workflows/projections/diagnostic.js +4 -6
  534. package/dist/eval-workflows/projections/evolution.js +2 -1
  535. package/dist/eval-workflows/projections/index.d.ts +0 -1
  536. package/dist/eval-workflows/projections/index.js +0 -1
  537. package/dist/eval-workflows/projections/local-task.d.ts +23 -0
  538. package/dist/eval-workflows/projections/local-task.js +25 -0
  539. package/dist/eval-workflows/resume-disposition/contracts.d.ts +80 -0
  540. package/dist/eval-workflows/resume-disposition/contracts.js +22 -0
  541. package/dist/eval-workflows/resume-disposition/disposition.d.ts +8 -0
  542. package/dist/eval-workflows/resume-disposition/disposition.js +176 -0
  543. package/dist/eval-workflows/resume-disposition/index.d.ts +2 -0
  544. package/dist/eval-workflows/resume-disposition/index.js +2 -0
  545. package/dist/eval-workflows/sample-generation/generator.d.ts +1 -1
  546. package/dist/eval-workflows/sample-generation/generator.js +53 -44
  547. package/dist/eval-workflows/sample-generation/skill-samples.js +2 -2
  548. package/dist/eval-workflows/sample-generation/trace-drafts.d.ts +2 -2
  549. package/dist/eval-workflows/sample-generation/trace-drafts.js +6 -6
  550. package/dist/executors/archive.d.ts +3 -0
  551. package/dist/executors/archive.js +18 -0
  552. package/dist/executors/contracts/archive.d.ts +23 -0
  553. package/dist/executors/contracts/mock.d.ts +1 -2
  554. package/dist/executors/contracts/openai-chat.d.ts +3 -0
  555. package/dist/executors/contracts/openai-chat.js +16 -0
  556. package/dist/executors/contracts/ports.d.ts +17 -31
  557. package/dist/executors/contracts/result.d.ts +11 -0
  558. package/dist/executors/contracts/token-budget.d.ts +25 -0
  559. package/dist/executors/contracts/token-budget.js +29 -0
  560. package/dist/executors/contracts/tool-call-status.d.ts +8 -0
  561. package/dist/executors/contracts/tool-call-status.js +71 -0
  562. package/dist/executors/contracts/tool-identity.d.ts +21 -0
  563. package/dist/executors/contracts/trace-source-kind.d.ts +4 -0
  564. package/dist/executors/contracts/trace-source-kind.js +5 -0
  565. package/dist/executors/contracts/trace-source-schema.d.ts +1 -0
  566. package/dist/executors/contracts/trace-source-schema.js +1 -0
  567. package/dist/executors/contracts/trace.d.ts +9 -0
  568. package/dist/executors/core/capabilities.d.ts +5 -1
  569. package/dist/executors/core/capabilities.js +30 -3
  570. package/dist/executors/core/diagnostics.d.ts +2 -0
  571. package/dist/executors/core/diagnostics.js +13 -0
  572. package/dist/executors/core/http.d.ts +6 -0
  573. package/dist/executors/core/http.js +46 -1
  574. package/dist/executors/core/optional-dependencies.js +1 -5
  575. package/dist/executors/core/registry.d.ts +8 -56
  576. package/dist/executors/core/registry.js +3 -45
  577. package/dist/executors/core/runtime-fingerprint.js +0 -27
  578. package/dist/executors/core/runtime.d.ts +1 -1
  579. package/dist/executors/core/runtime.js +2 -5
  580. package/dist/executors/core/subprocess.d.ts +2 -2
  581. package/dist/executors/core/subprocess.js +36 -16
  582. package/dist/executors/index.d.ts +7 -4
  583. package/dist/executors/index.js +13 -19
  584. package/dist/executors/mock-runtime/runtime.d.ts +5 -85
  585. package/dist/executors/mock-runtime/runtime.js +77 -335
  586. package/dist/executors/openai/api.d.ts +4 -1
  587. package/dist/executors/openai/api.js +115 -82
  588. package/dist/executors/openai/archive.d.ts +10 -0
  589. package/dist/executors/openai/archive.js +70 -0
  590. package/dist/executors/openai/codex/archive.d.ts +8 -0
  591. package/dist/executors/openai/codex/archive.js +231 -0
  592. package/dist/executors/openai/codex/cli-arguments.d.ts +1 -0
  593. package/dist/executors/openai/codex/cli-arguments.js +1 -0
  594. package/dist/executors/openai/codex/cli.d.ts +4 -6
  595. package/dist/executors/openai/codex/cli.js +77 -42
  596. package/dist/executors/openai/codex/config.d.ts +16 -0
  597. package/dist/executors/openai/codex/config.js +37 -0
  598. package/dist/executors/openai/codex/protocol.d.ts +4 -1
  599. package/dist/executors/openai/codex/protocol.js +12 -4
  600. package/dist/executors/openai/codex/sdk.d.ts +4 -6
  601. package/dist/executors/openai/codex/sdk.js +12 -9
  602. package/dist/executors/openai/codex/trace.js +2 -4
  603. package/dist/executors/openai/request.d.ts +14 -0
  604. package/dist/executors/openai/request.js +8 -0
  605. package/dist/executors/result-validation.js +21 -3
  606. package/dist/executors/script/index.d.ts +1 -1
  607. package/dist/executors/script/index.js +14 -17
  608. package/dist/index.d.ts +2 -0
  609. package/dist/index.js +2 -0
  610. package/dist/knowledge/adapters/association-migration.d.ts +41 -0
  611. package/dist/knowledge/adapters/association-migration.js +205 -0
  612. package/dist/knowledge/adapters/association-store.d.ts +21 -0
  613. package/dist/knowledge/adapters/association-store.js +111 -0
  614. package/dist/knowledge/adapters/body-digest.d.ts +5 -0
  615. package/dist/knowledge/adapters/body-digest.js +20 -0
  616. package/dist/knowledge/adapters/conversation-source.d.ts +30 -0
  617. package/dist/knowledge/adapters/conversation-source.js +82 -0
  618. package/dist/knowledge/adapters/durable-publication.d.ts +6 -0
  619. package/dist/knowledge/adapters/durable-publication.js +118 -0
  620. package/dist/knowledge/adapters/entity-link-api-producer.d.ts +31 -0
  621. package/dist/knowledge/adapters/entity-link-api-producer.js +27 -0
  622. package/dist/knowledge/adapters/entity-link-executor.d.ts +51 -0
  623. package/dist/knowledge/adapters/entity-link-executor.js +70 -0
  624. package/dist/knowledge/adapters/entity-link-store.d.ts +20 -0
  625. package/dist/knowledge/adapters/entity-link-store.js +131 -0
  626. package/dist/knowledge/adapters/entity-store.d.ts +14 -0
  627. package/dist/knowledge/adapters/entity-store.js +94 -0
  628. package/dist/knowledge/adapters/generation-executor.d.ts +14 -0
  629. package/dist/knowledge/adapters/generation-executor.js +65 -0
  630. package/dist/knowledge/adapters/generation-host.d.ts +11 -0
  631. package/dist/knowledge/adapters/generation-host.js +36 -0
  632. package/dist/knowledge/adapters/generation-journal-store.d.ts +25 -0
  633. package/dist/knowledge/adapters/generation-journal-store.js +470 -0
  634. package/dist/knowledge/adapters/knowledge-migration.d.ts +65 -0
  635. package/dist/knowledge/adapters/knowledge-migration.js +258 -0
  636. package/dist/knowledge/adapters/knowledge-store.d.ts +16 -0
  637. package/dist/knowledge/adapters/knowledge-store.js +88 -0
  638. package/dist/knowledge/adapters/knowledge-tags.d.ts +13 -0
  639. package/dist/knowledge/adapters/knowledge-tags.js +70 -0
  640. package/dist/knowledge/adapters/library-store.d.ts +14 -0
  641. package/dist/knowledge/adapters/library-store.js +95 -0
  642. package/dist/knowledge/adapters/project-source-reader.d.ts +36 -0
  643. package/dist/knowledge/adapters/project-source-reader.js +269 -0
  644. package/dist/knowledge/adapters/relation-store.d.ts +17 -0
  645. package/dist/knowledge/adapters/relation-store.js +164 -0
  646. package/dist/knowledge/adapters/review-store.d.ts +16 -0
  647. package/dist/knowledge/adapters/review-store.js +89 -0
  648. package/dist/knowledge/adapters/run-store.d.ts +45 -0
  649. package/dist/knowledge/adapters/run-store.js +684 -0
  650. package/dist/knowledge/adapters/source-migration.d.ts +102 -0
  651. package/dist/knowledge/adapters/source-migration.js +774 -0
  652. package/dist/knowledge/adapters/source-review-original.d.ts +8 -0
  653. package/dist/knowledge/adapters/source-review-original.js +24 -0
  654. package/dist/knowledge/adapters/source-review-store.d.ts +16 -0
  655. package/dist/knowledge/adapters/source-review-store.js +134 -0
  656. package/dist/knowledge/adapters/source-store.d.ts +29 -0
  657. package/dist/knowledge/adapters/source-store.js +348 -0
  658. package/dist/knowledge/adapters/source-workspace.d.ts +2 -0
  659. package/dist/knowledge/adapters/source-workspace.js +15 -0
  660. package/dist/knowledge/adapters/storage-state.d.ts +1 -0
  661. package/dist/knowledge/adapters/storage-state.js +9 -0
  662. package/dist/knowledge/adapters/trace-evidence.d.ts +14 -0
  663. package/dist/knowledge/adapters/trace-evidence.js +174 -0
  664. package/dist/knowledge/adapters/trace-source-reader.d.ts +55 -0
  665. package/dist/knowledge/adapters/trace-source-reader.js +252 -0
  666. package/dist/knowledge/adapters/workflow-migration.d.ts +70 -0
  667. package/dist/knowledge/adapters/workflow-migration.js +444 -0
  668. package/dist/knowledge/adapters/workspace-guard.d.ts +44 -0
  669. package/dist/knowledge/adapters/workspace-guard.js +230 -0
  670. package/dist/knowledge/application/application.d.ts +10349 -0
  671. package/dist/knowledge/application/application.js +198 -0
  672. package/dist/knowledge/application/auto-extraction.d.ts +43 -0
  673. package/dist/knowledge/application/auto-extraction.js +51 -0
  674. package/dist/knowledge/application/body-generation.d.ts +5403 -0
  675. package/dist/knowledge/application/body-generation.js +624 -0
  676. package/dist/knowledge/application/entity-catalog.d.ts +86 -0
  677. package/dist/knowledge/application/entity-catalog.js +25 -0
  678. package/dist/knowledge/application/entity-link-source.d.ts +585 -0
  679. package/dist/knowledge/application/entity-link-source.js +27 -0
  680. package/dist/knowledge/application/entity-links.d.ts +3567 -0
  681. package/dist/knowledge/application/entity-links.js +422 -0
  682. package/dist/knowledge/application/graph.d.ts +184 -0
  683. package/dist/knowledge/application/graph.js +364 -0
  684. package/dist/knowledge/application/library.d.ts +520 -0
  685. package/dist/knowledge/application/library.js +258 -0
  686. package/dist/knowledge/application/local-source-host.d.ts +51 -0
  687. package/dist/knowledge/application/local-source-host.js +99 -0
  688. package/dist/knowledge/application/local-source-updates.d.ts +4 -0
  689. package/dist/knowledge/application/local-source-updates.js +197 -0
  690. package/dist/knowledge/application/local.d.ts +202 -0
  691. package/dist/knowledge/application/local.js +159 -0
  692. package/dist/knowledge/application/operations.d.ts +788 -0
  693. package/dist/knowledge/application/operations.js +157 -0
  694. package/dist/knowledge/application/read-context.d.ts +2508 -0
  695. package/dist/knowledge/application/read-context.js +294 -0
  696. package/dist/knowledge/application/relation-operations.d.ts +702 -0
  697. package/dist/knowledge/application/relation-operations.js +45 -0
  698. package/dist/knowledge/application/relations.d.ts +743 -0
  699. package/dist/knowledge/application/relations.js +142 -0
  700. package/dist/knowledge/application/retrieval-text.d.ts +5 -0
  701. package/dist/knowledge/application/retrieval-text.js +45 -0
  702. package/dist/knowledge/application/retrieval.d.ts +108 -0
  703. package/dist/knowledge/application/retrieval.js +195 -0
  704. package/dist/knowledge/application/review-operations.d.ts +650 -0
  705. package/dist/knowledge/application/review-operations.js +33 -0
  706. package/dist/knowledge/application/review.d.ts +394 -0
  707. package/dist/knowledge/application/review.js +114 -0
  708. package/dist/knowledge/application/source-capture.d.ts +355 -0
  709. package/dist/knowledge/application/source-capture.js +261 -0
  710. package/dist/knowledge/application/source-evidence-search.d.ts +37 -0
  711. package/dist/knowledge/application/source-evidence-search.js +129 -0
  712. package/dist/knowledge/application/source-review.d.ts +886 -0
  713. package/dist/knowledge/application/source-review.js +135 -0
  714. package/dist/knowledge/application/source-summary.d.ts +130 -0
  715. package/dist/knowledge/application/source-summary.js +11 -0
  716. package/dist/knowledge/application/source-updates.d.ts +583 -0
  717. package/dist/knowledge/application/source-updates.js +208 -0
  718. package/dist/knowledge/artifacts/authoring/application.d.ts +125 -0
  719. package/dist/knowledge/artifacts/authoring/application.js +83 -0
  720. package/dist/knowledge/artifacts/authoring/carrier-contracts.d.ts +98 -0
  721. package/dist/knowledge/artifacts/authoring/carrier-library.d.ts +19 -0
  722. package/dist/knowledge/artifacts/authoring/carrier-library.js +167 -0
  723. package/dist/knowledge/artifacts/authoring/core-evolver.d.ts +65 -0
  724. package/dist/knowledge/artifacts/authoring/core-evolver.js +313 -0
  725. package/dist/knowledge/artifacts/authoring/knowledge-content.d.ts +17 -0
  726. package/dist/knowledge/artifacts/authoring/knowledge-content.js +139 -0
  727. package/dist/knowledge/artifacts/authoring/knowledge-review.d.ts +9 -0
  728. package/dist/knowledge/artifacts/authoring/knowledge-review.js +39 -0
  729. package/dist/knowledge/artifacts/authoring/scaffold.js +109 -0
  730. package/dist/knowledge/artifacts/authoring/text-edits.d.ts +6 -0
  731. package/dist/knowledge/artifacts/authoring/text-edits.js +31 -0
  732. package/dist/knowledge/artifacts/doctor/contracts.d.ts +201 -0
  733. package/dist/knowledge/artifacts/doctor/endpoint-rule.js +382 -0
  734. package/dist/knowledge/artifacts/doctor/fixer.js +338 -0
  735. package/dist/knowledge/artifacts/doctor/graph.d.ts +22 -0
  736. package/dist/knowledge/artifacts/doctor/graph.js +570 -0
  737. package/dist/knowledge/artifacts/doctor/health/composer.d.ts +18 -0
  738. package/dist/knowledge/artifacts/doctor/health/composer.js +411 -0
  739. package/dist/knowledge/artifacts/doctor/index.js +277 -0
  740. package/dist/knowledge/artifacts/doctor/messages.d.ts +20 -0
  741. package/dist/knowledge/artifacts/doctor/messages.js +224 -0
  742. package/dist/knowledge/artifacts/doctor/persistence.js +126 -0
  743. package/dist/knowledge/artifacts/doctor/renderer.d.ts +17 -0
  744. package/dist/knowledge/artifacts/doctor/report-parser.js +103 -0
  745. package/dist/knowledge/artifacts/doctor/rules.d.ts +32 -0
  746. package/dist/knowledge/artifacts/doctor/rules.js +290 -0
  747. package/dist/knowledge/artifacts/sources/artifact-resolution.d.ts +180 -0
  748. package/dist/knowledge/artifacts/sources/artifact-resolution.js +804 -0
  749. package/dist/knowledge/artifacts/sources/content-hash.js +117 -0
  750. package/dist/knowledge/artifacts/sources/deploy-artifact.js +65 -0
  751. package/dist/knowledge/artifacts/sources/install-source.d.ts +27 -0
  752. package/dist/knowledge/artifacts/sources/install-source.js +116 -0
  753. package/dist/knowledge/artifacts/sources/materialize-copy.d.ts +37 -0
  754. package/dist/knowledge/artifacts/sources/materialize-copy.js +193 -0
  755. package/dist/knowledge/associations.d.ts +350 -0
  756. package/dist/knowledge/associations.js +160 -0
  757. package/dist/knowledge/contracts.d.ts +237 -0
  758. package/dist/knowledge/contracts.js +65 -0
  759. package/dist/knowledge/entities/association-references.d.ts +5 -0
  760. package/dist/knowledge/entities/association-references.js +17 -0
  761. package/dist/knowledge/entities/contracts.d.ts +331 -0
  762. package/dist/knowledge/entities/contracts.js +50 -0
  763. package/dist/knowledge/entities/history.d.ts +4 -0
  764. package/dist/knowledge/entities/history.js +63 -0
  765. package/dist/knowledge/entities/identity.d.ts +53 -0
  766. package/dist/knowledge/entities/identity.js +106 -0
  767. package/dist/knowledge/entities/link-invocation-state.d.ts +375 -0
  768. package/dist/knowledge/entities/link-invocation-state.js +316 -0
  769. package/dist/knowledge/entities/link-invocation.d.ts +2320 -0
  770. package/dist/knowledge/entities/link-invocation.js +113 -0
  771. package/dist/knowledge/entities/links.d.ts +72 -0
  772. package/dist/knowledge/entities/links.js +39 -0
  773. package/dist/knowledge/entities/validation.d.ts +10 -0
  774. package/dist/knowledge/entities/validation.js +72 -0
  775. package/dist/knowledge/entity-library/contracts.d.ts +161 -0
  776. package/dist/knowledge/entity-library/contracts.js +38 -0
  777. package/dist/knowledge/entity-library/history.d.ts +3 -0
  778. package/dist/knowledge/entity-library/history.js +51 -0
  779. package/dist/knowledge/entity-library/write-errors.d.ts +8 -0
  780. package/dist/knowledge/entity-library/write-errors.js +11 -0
  781. package/dist/knowledge/entity-linking/entity-link-hash.d.ts +3 -0
  782. package/dist/knowledge/entity-linking/entity-link-hash.js +4 -0
  783. package/dist/knowledge/entity-linking/entity-link-prompt.d.ts +21 -0
  784. package/dist/knowledge/entity-linking/entity-link-prompt.js +35 -0
  785. package/dist/knowledge/entity-linking/entity-link-quality.d.ts +111 -0
  786. package/dist/knowledge/entity-linking/entity-link-quality.js +139 -0
  787. package/dist/knowledge/extraction/association-catalog.d.ts +15 -0
  788. package/dist/knowledge/extraction/association-catalog.js +53 -0
  789. package/dist/knowledge/extraction/body-generation-wire.d.ts +177 -0
  790. package/dist/knowledge/extraction/body-generation-wire.js +250 -0
  791. package/dist/knowledge/extraction/entities.d.ts +66 -0
  792. package/dist/knowledge/extraction/entities.js +124 -0
  793. package/dist/knowledge/extraction/entity-only-prompt.d.ts +9 -0
  794. package/dist/knowledge/extraction/entity-only-prompt.js +50 -0
  795. package/dist/knowledge/extraction/evidence.d.ts +61 -0
  796. package/dist/knowledge/extraction/evidence.js +24 -0
  797. package/dist/knowledge/extraction/generation-journal.d.ts +1290 -0
  798. package/dist/knowledge/extraction/generation-journal.js +48 -0
  799. package/dist/knowledge/extraction/generation-policy.d.ts +108 -0
  800. package/dist/knowledge/extraction/generation-policy.js +58 -0
  801. package/dist/knowledge/extraction/generation.d.ts +74 -0
  802. package/dist/knowledge/extraction/generation.js +211 -0
  803. package/dist/knowledge/extraction/knowledge-semantic-policy.d.ts +15 -0
  804. package/dist/knowledge/extraction/knowledge-semantic-policy.js +31 -0
  805. package/dist/knowledge/extraction/long-body.d.ts +92 -0
  806. package/dist/knowledge/extraction/long-body.js +210 -0
  807. package/dist/knowledge/extraction/model-wire.d.ts +69 -0
  808. package/dist/knowledge/extraction/model-wire.js +248 -0
  809. package/dist/knowledge/extraction/native-outcome.d.ts +42 -0
  810. package/dist/knowledge/extraction/native-outcome.js +152 -0
  811. package/dist/knowledge/extraction/occurrence-guided-prompt.d.ts +9 -0
  812. package/dist/knowledge/extraction/occurrence-guided-prompt.js +20 -0
  813. package/dist/knowledge/extraction/prompt.d.ts +2 -0
  814. package/dist/knowledge/extraction/prompt.js +42 -0
  815. package/dist/knowledge/extraction/proposals.d.ts +24 -0
  816. package/dist/knowledge/extraction/proposals.js +24 -0
  817. package/dist/knowledge/extraction/quote-context.d.ts +11 -0
  818. package/dist/knowledge/extraction/quote-context.js +33 -0
  819. package/dist/knowledge/extraction/quote-occurrence.d.ts +9 -0
  820. package/dist/knowledge/extraction/quote-occurrence.js +31 -0
  821. package/dist/knowledge/extraction/run-sealing.d.ts +89 -0
  822. package/dist/knowledge/extraction/run-sealing.js +42 -0
  823. package/dist/knowledge/extraction/runs.d.ts +695 -0
  824. package/dist/knowledge/extraction/runs.js +268 -0
  825. package/dist/knowledge/extraction/source-input.d.ts +524 -0
  826. package/dist/knowledge/extraction/source-input.js +61 -0
  827. package/dist/knowledge/extraction/source-passages.d.ts +63 -0
  828. package/dist/knowledge/extraction/source-passages.js +94 -0
  829. package/dist/knowledge/extraction/source-review-input.d.ts +57 -0
  830. package/dist/knowledge/extraction/source-review-input.js +81 -0
  831. package/dist/knowledge/extraction/source-review-wire.d.ts +137 -0
  832. package/dist/knowledge/extraction/source-review-wire.js +248 -0
  833. package/dist/knowledge/extraction/strict-fewshot.d.ts +1032 -0
  834. package/dist/knowledge/extraction/strict-fewshot.js +1240 -0
  835. package/dist/knowledge/extraction/strict-prompt.d.ts +3 -0
  836. package/dist/knowledge/extraction/strict-prompt.js +18 -0
  837. package/dist/knowledge/extraction/window-proposals.d.ts +342 -0
  838. package/dist/knowledge/extraction/window-proposals.js +93 -0
  839. package/dist/knowledge/extraction/writing-draft.d.ts +6 -0
  840. package/dist/knowledge/extraction/writing-draft.js +37 -0
  841. package/dist/knowledge/history.d.ts +4 -0
  842. package/dist/knowledge/history.js +79 -0
  843. package/dist/knowledge/measurement/typed-contracts.d.ts +477 -0
  844. package/dist/knowledge/measurement/typed-contracts.js +88 -0
  845. package/dist/knowledge/measurement/typed-grounding.d.ts +40 -0
  846. package/dist/knowledge/measurement/typed-grounding.js +14 -0
  847. package/dist/knowledge/measurement/typed-quote-locator.d.ts +6 -0
  848. package/dist/knowledge/measurement/typed-quote-locator.js +8 -0
  849. package/dist/knowledge/measurement/typed-validation.d.ts +19 -0
  850. package/dist/knowledge/measurement/typed-validation.js +111 -0
  851. package/dist/knowledge/migration/associations-v1.d.ts +186 -0
  852. package/dist/knowledge/migration/associations-v1.js +34 -0
  853. package/dist/knowledge/migration/legacy-v2.d.ts +242 -0
  854. package/dist/knowledge/migration/legacy-v2.js +282 -0
  855. package/dist/knowledge/relations/relation-history.d.ts +96 -0
  856. package/dist/knowledge/relations/relation-history.js +95 -0
  857. package/dist/knowledge/relations/relations.d.ts +602 -0
  858. package/dist/knowledge/relations/relations.js +65 -0
  859. package/dist/knowledge/reviews/review-history.d.ts +8 -0
  860. package/dist/knowledge/reviews/review-history.js +86 -0
  861. package/dist/knowledge/reviews/reviews.d.ts +946 -0
  862. package/dist/knowledge/reviews/reviews.js +121 -0
  863. package/dist/knowledge/sources/source-review-history.d.ts +59 -0
  864. package/dist/knowledge/sources/source-review-history.js +283 -0
  865. package/dist/knowledge/sources/source-review.d.ts +1725 -0
  866. package/dist/knowledge/sources/source-review.js +94 -0
  867. package/dist/knowledge/sources/source-store.d.ts +24 -0
  868. package/dist/knowledge/sources/sources.d.ts +1882 -0
  869. package/dist/knowledge/sources/sources.js +278 -0
  870. package/dist/knowledge/store.d.ts +239 -0
  871. package/dist/knowledge/store.js +34 -0
  872. package/dist/knowledge/tags.d.ts +12 -0
  873. package/dist/knowledge/tags.js +6 -0
  874. package/dist/knowledge/validation.d.ts +19 -0
  875. package/dist/knowledge/validation.js +46 -0
  876. package/dist/mcp/capture-store.d.ts +3 -2
  877. package/dist/mcp/capture-store.js +7 -5
  878. package/dist/mcp/feedback-store.d.ts +2 -2
  879. package/dist/mcp/feedback-store.js +3 -3
  880. package/dist/mcp/http.js +65 -27
  881. package/dist/mcp/index.d.ts +1 -1
  882. package/dist/mcp/index.js +1 -1
  883. package/dist/mcp/mcp-server.d.ts +5 -3
  884. package/dist/mcp/mcp-server.js +12 -28
  885. package/dist/mcp/review-component.d.ts +2 -1
  886. package/dist/mcp/review-component.js +39 -16
  887. package/dist/mcp/tool-copy.d.ts +25 -0
  888. package/dist/mcp/tool-copy.js +122 -0
  889. package/dist/observe/agents/collect.d.ts +105 -0
  890. package/dist/observe/agents/collect.js +686 -0
  891. package/dist/observe/agents/contracts.d.ts +369 -0
  892. package/dist/observe/agents/contracts.js +160 -0
  893. package/dist/observe/agents/detect.d.ts +39 -0
  894. package/dist/observe/agents/detect.js +144 -0
  895. package/dist/observe/agents/fs-ports.d.ts +44 -0
  896. package/dist/observe/agents/fs-ports.js +77 -0
  897. package/dist/observe/agents/index.d.ts +19 -0
  898. package/dist/observe/agents/index.js +13 -0
  899. package/dist/observe/agents/local-catalog.d.ts +40 -0
  900. package/dist/observe/agents/local-catalog.js +101 -0
  901. package/dist/observe/agents/registry.d.ts +31 -0
  902. package/dist/observe/agents/registry.js +187 -0
  903. package/dist/observe/agents/scan.d.ts +31 -0
  904. package/dist/observe/agents/scan.js +160 -0
  905. package/dist/observe/analysis/coverage-analyzer.js +258 -0
  906. package/dist/observe/analysis/gap-analyzer.d.ts +110 -0
  907. package/dist/observe/analysis/gap-analyzer.js +455 -0
  908. package/dist/observe/analysis/hedging-classifier.js +142 -0
  909. package/dist/observe/application.d.ts +15 -0
  910. package/dist/observe/application.js +11 -0
  911. package/dist/observe/contracts/experience-enums.d.ts +228 -0
  912. package/dist/observe/contracts/experience-enums.js +228 -0
  913. package/dist/observe/contracts/experience-evidence-schema.d.ts +33532 -0
  914. package/dist/observe/contracts/experience-evidence-schema.js +707 -0
  915. package/dist/observe/contracts/experience.d.ts +79 -0
  916. package/dist/observe/contracts/inbox.d.ts +181 -0
  917. package/dist/observe/contracts/skill-chain.d.ts +114 -0
  918. package/dist/observe/conversation/catalog.d.ts +57 -0
  919. package/dist/observe/conversation/catalog.js +614 -0
  920. package/dist/observe/conversation/polling-subscription-hub.js +167 -0
  921. package/dist/observe/conversation/project.d.ts +3 -0
  922. package/dist/observe/conversation/project.js +47 -0
  923. package/dist/observe/diagnosis/contracts/parser.js +181 -0
  924. package/dist/observe/diagnosis/lifecycle.js +31 -0
  925. package/dist/observe/diagnosis/observe-mapper.js +265 -0
  926. package/dist/observe/diagnosis/studio-projection.js +90 -0
  927. package/dist/observe/experience/primitives.d.ts +14 -0
  928. package/dist/observe/experience/primitives.js +86 -0
  929. package/dist/observe/experience/report-assembly.d.ts +33 -0
  930. package/dist/observe/experience/report-assembly.js +808 -0
  931. package/dist/observe/experience/report-derivations.js +283 -0
  932. package/dist/observe/experience/report-structure.d.ts +9 -0
  933. package/dist/observe/experience/session-story-episodes.d.ts +17 -0
  934. package/dist/observe/experience/session-story-episodes.js +242 -0
  935. package/dist/observe/experience/session-story-evidence.d.ts +11 -0
  936. package/dist/observe/experience/session-story-evidence.js +88 -0
  937. package/dist/observe/experience/session-story-feedback.d.ts +14 -0
  938. package/dist/observe/experience/session-story-feedback.js +330 -0
  939. package/dist/observe/experience/session-story-orchestration.d.ts +13 -0
  940. package/dist/observe/experience/session-story-orchestration.js +266 -0
  941. package/dist/observe/experience/session-story-segments.d.ts +8 -0
  942. package/dist/observe/experience/session-story-segments.js +128 -0
  943. package/dist/observe/experience/session-story.d.ts +11 -0
  944. package/dist/observe/experience/session-story.js +302 -0
  945. package/dist/observe/experience/text-signals.d.ts +6 -0
  946. package/dist/observe/experience/text-signals.js +29 -0
  947. package/dist/observe/experience/timeline.d.ts +28 -0
  948. package/dist/observe/experience/timeline.js +513 -0
  949. package/dist/observe/experience.d.ts +12 -0
  950. package/dist/observe/experience.js +7 -0
  951. package/dist/observe/inbox/diagnosis-producer.d.ts +8 -0
  952. package/dist/observe/inbox/diagnosis-producer.js +132 -0
  953. package/dist/observe/inbox/explicit-capture.js +223 -0
  954. package/dist/observe/inbox/feedback-matchers.d.ts +40 -0
  955. package/dist/observe/inbox/feedback-matchers.js +260 -0
  956. package/dist/observe/inbox/index.d.ts +14 -0
  957. package/dist/observe/inbox/index.js +7 -0
  958. package/dist/observe/inbox/metric-semantics.d.ts +8 -0
  959. package/dist/observe/inbox/metric-semantics.js +157 -0
  960. package/dist/observe/inbox/paths.d.ts +30 -0
  961. package/dist/observe/inbox/paths.js +87 -0
  962. package/dist/observe/inbox/problem-patterns.js +249 -0
  963. package/dist/observe/inbox/report-building.d.ts +18 -0
  964. package/dist/observe/inbox/report-building.js +595 -0
  965. package/dist/observe/inbox/report-presentation.d.ts +6 -0
  966. package/dist/observe/inbox/report-presentation.js +83 -0
  967. package/dist/observe/inbox/report-primitives.d.ts +17 -0
  968. package/dist/observe/inbox/report-primitives.js +88 -0
  969. package/dist/observe/inbox/report-store.d.ts +7 -0
  970. package/dist/observe/inbox/report-store.js +516 -0
  971. package/dist/observe/inbox/review-semantics.d.ts +46 -0
  972. package/dist/observe/inbox/review-semantics.js +67 -0
  973. package/dist/observe/inbox/review-state.d.ts +25 -0
  974. package/dist/observe/inbox/review-state.js +357 -0
  975. package/dist/observe/inbox/severity-reason.js +47 -0
  976. package/dist/observe/inbox/signal-semantics.d.ts +27 -0
  977. package/dist/observe/inbox/skill-chains.d.ts +20 -0
  978. package/dist/observe/inbox/skill-chains.js +65 -0
  979. package/dist/observe/inbox/skill-rollups.d.ts +58 -0
  980. package/dist/observe/inbox/skill-rollups.js +186 -0
  981. package/dist/observe/inbox/source-record-archive.d.ts +9 -0
  982. package/dist/observe/inbox/source-record-archive.js +311 -0
  983. package/dist/observe/inbox/view-model.d.ts +30 -0
  984. package/dist/observe/inbox/view-model.js +140 -0
  985. package/dist/observe/presentation.d.ts +8 -0
  986. package/dist/observe/presentation.js +5 -0
  987. package/dist/observe/skill-health/analyzer.d.ts +128 -0
  988. package/dist/observe/skill-health/analyzer.js +327 -0
  989. package/dist/observe/skill-health/experience-frontmatter.js +99 -0
  990. package/dist/observe/skill-health/persistence.d.ts +10 -0
  991. package/dist/observe/skill-health/persistence.js +21 -0
  992. package/dist/observe/skill-health/skill-chain.js +530 -0
  993. package/dist/observe/soft-standards/constants.d.ts +4 -0
  994. package/dist/observe/soft-standards/constants.js +9 -0
  995. package/dist/observe/soft-standards/llm-extractor.js +698 -0
  996. package/dist/observe/soft-standards/runtime-evaluator.js +384 -0
  997. package/dist/observe/soft-standards/skill-standards-store.d.ts +10 -0
  998. package/dist/observe/soft-standards/skill-standards-store.js +230 -0
  999. package/dist/observe/soft-standards/types.d.ts +213 -0
  1000. package/dist/observe/trace/adapters/claude/record-events.d.ts +4 -0
  1001. package/dist/observe/trace/adapters/claude/record-events.js +297 -0
  1002. package/dist/observe/trace/adapters/claude/record-schema.d.ts +60 -0
  1003. package/dist/observe/trace/adapters/claude/record-schema.js +2 -0
  1004. package/dist/observe/trace/adapters/claude/trace.d.ts +13 -0
  1005. package/dist/observe/trace/adapters/claude/trace.js +48 -0
  1006. package/dist/observe/trace/adapters/codex/context-events.d.ts +4 -0
  1007. package/dist/observe/trace/adapters/codex/context-events.js +166 -0
  1008. package/dist/observe/trace/adapters/codex/conversation-events.d.ts +4 -0
  1009. package/dist/observe/trace/adapters/codex/conversation-events.js +143 -0
  1010. package/dist/observe/trace/adapters/codex/conversion-contract.d.ts +66 -0
  1011. package/dist/observe/trace/adapters/codex/conversion-contract.js +10 -0
  1012. package/dist/observe/trace/adapters/codex/item-views.d.ts +81 -0
  1013. package/dist/observe/trace/adapters/codex/item-views.js +303 -0
  1014. package/dist/observe/trace/adapters/codex/pending-tool-events.d.ts +7 -0
  1015. package/dist/observe/trace/adapters/codex/pending-tool-events.js +100 -0
  1016. package/dist/observe/trace/adapters/codex/record-conversion.d.ts +14 -0
  1017. package/dist/observe/trace/adapters/codex/record-conversion.js +167 -0
  1018. package/dist/observe/trace/adapters/codex/record-fields.d.ts +13 -0
  1019. package/dist/observe/trace/adapters/codex/record-fields.js +35 -0
  1020. package/dist/observe/trace/adapters/codex/record-indexes.d.ts +75 -0
  1021. package/dist/observe/trace/adapters/codex/record-indexes.js +309 -0
  1022. package/dist/observe/trace/adapters/codex/record-text.d.ts +8 -0
  1023. package/dist/observe/trace/adapters/codex/record-text.js +52 -0
  1024. package/dist/observe/trace/adapters/codex/tool-event-factory.d.ts +16 -0
  1025. package/dist/observe/trace/adapters/codex/tool-event-factory.js +20 -0
  1026. package/dist/observe/trace/adapters/codex/tool-events.d.ts +4 -0
  1027. package/dist/observe/trace/adapters/codex/tool-events.js +183 -0
  1028. package/dist/observe/trace/adapters/codex/tool-status.js +114 -0
  1029. package/dist/observe/trace/adapters/codex/trace.d.ts +9 -0
  1030. package/dist/observe/trace/adapters/codex/trace.js +123 -0
  1031. package/dist/observe/trace/adapters/codex/turn-events.d.ts +4 -0
  1032. package/dist/observe/trace/adapters/codex/turn-events.js +126 -0
  1033. package/dist/observe/trace/adapters/dsh/trace.d.ts +17 -0
  1034. package/dist/observe/trace/adapters/dsh/trace.js +352 -0
  1035. package/dist/observe/trace/adapters/jsonl-records.d.ts +6 -0
  1036. package/dist/observe/trace/adapters/jsonl-records.js +67 -0
  1037. package/dist/observe/trace/adapters/markdown/trace.d.ts +8 -0
  1038. package/dist/observe/trace/adapters/markdown/trace.js +132 -0
  1039. package/dist/observe/trace/adapters/openclaw/record-events.d.ts +10 -0
  1040. package/dist/observe/trace/adapters/openclaw/record-events.js +192 -0
  1041. package/dist/observe/trace/adapters/openclaw/trace.d.ts +9 -0
  1042. package/dist/observe/trace/adapters/openclaw/trace.js +129 -0
  1043. package/dist/observe/trace/adapters/qoder/trace.d.ts +8 -0
  1044. package/dist/observe/trace/adapters/qoder/trace.js +477 -0
  1045. package/dist/observe/trace/segmentation.js +491 -0
  1046. package/dist/observe/trace/source.d.ts +64 -0
  1047. package/dist/observe/trace/source.js +592 -0
  1048. package/dist/observe/trace/streamed-records.d.ts +16 -0
  1049. package/dist/observe/trace/streamed-records.js +228 -0
  1050. package/dist/observe/trace/tool-search.js +160 -0
  1051. package/dist/observe/trace/trace-ir.d.ts +236 -0
  1052. package/dist/observe/trace/trace-ir.js +147 -0
  1053. package/dist/observe/trace/unknown-disposition.d.ts +36 -0
  1054. package/dist/observe/trace/unknown-disposition.js +233 -0
  1055. package/dist/observe/trace/zstd-frames.d.ts +18 -0
  1056. package/dist/observe/trace/zstd-frames.js +167 -0
  1057. package/dist/observe/view-models/conversation.d.ts +57 -0
  1058. package/dist/observe/view-models/index.d.ts +8 -0
  1059. package/dist/settings/user-settings.d.ts +43 -0
  1060. package/dist/settings/user-settings.js +59 -0
  1061. package/dist/shared/content-hash.d.ts +5 -1
  1062. package/dist/shared/content-hash.js +6 -2
  1063. package/dist/shared/file-lock.d.ts +6 -0
  1064. package/dist/shared/file-lock.js +53 -22
  1065. package/dist/shared/language-preference.d.ts +36 -0
  1066. package/dist/shared/language-preference.js +48 -0
  1067. package/dist/shared/llm-json.d.ts +2 -0
  1068. package/dist/shared/llm-json.js +36 -0
  1069. package/dist/storage/atomic-text.d.ts +4 -0
  1070. package/dist/storage/atomic-text.js +71 -0
  1071. package/dist/storage/default-dirs.d.ts +26 -0
  1072. package/dist/storage/default-dirs.js +27 -0
  1073. package/dist/storage/directories.d.ts +18 -0
  1074. package/dist/storage/directories.js +60 -0
  1075. package/dist/storage/discovery-index.d.ts +86 -0
  1076. package/dist/storage/discovery-index.js +297 -0
  1077. package/dist/storage/file-names.d.ts +13 -0
  1078. package/dist/storage/file-names.js +54 -0
  1079. package/dist/storage/layout.d.ts +39 -0
  1080. package/dist/storage/layout.js +52 -0
  1081. package/dist/storage/report-bundle.js +120 -0
  1082. package/dist/studio/application/agents/agents-view.d.ts +34 -0
  1083. package/dist/studio/application/agents/agents-view.js +36 -0
  1084. package/dist/studio/application/conversations/conversation-activity.d.ts +4 -0
  1085. package/dist/studio/application/conversations/conversation-activity.js +50 -0
  1086. package/dist/studio/application/conversations/conversation-extraction.d.ts +1 -0
  1087. package/dist/studio/application/conversations/conversation-extraction.js +1 -0
  1088. package/dist/studio/application/conversations/conversation-reader.d.ts +7 -0
  1089. package/dist/studio/application/conversations/conversation-reader.js +26 -0
  1090. package/dist/studio/application/conversations/list-states.d.ts +11 -0
  1091. package/dist/studio/application/conversations/list-states.js +9 -0
  1092. package/dist/studio/application/conversations/reader-states.d.ts +14 -0
  1093. package/dist/studio/application/conversations/reader-states.js +17 -0
  1094. package/dist/studio/application/conversations/reader-viewport.d.ts +36 -0
  1095. package/dist/studio/application/conversations/reader-viewport.js +35 -0
  1096. package/dist/studio/application/conversations/replay/format.d.ts +7 -0
  1097. package/dist/studio/application/conversations/replay/format.js +39 -0
  1098. package/dist/studio/application/conversations/replay/inline-markdown.d.ts +1 -0
  1099. package/dist/studio/application/conversations/replay/inline-markdown.js +99 -0
  1100. package/dist/studio/application/conversations/replay/layout.d.ts +15 -0
  1101. package/dist/studio/application/conversations/replay/layout.js +171 -0
  1102. package/dist/studio/application/conversations/replay/projection.d.ts +4 -0
  1103. package/dist/studio/application/conversations/replay/projection.js +292 -0
  1104. package/dist/studio/application/conversations/replay/routing.d.ts +3 -0
  1105. package/dist/studio/application/conversations/replay/routing.js +317 -0
  1106. package/dist/studio/application/conversations/replay/summary.d.ts +25 -0
  1107. package/dist/studio/application/conversations/sidebar-window.d.ts +24 -0
  1108. package/dist/studio/application/conversations/sidebar-window.js +26 -0
  1109. package/dist/studio/application/conversations/trajectory-evidence.d.ts +3 -0
  1110. package/dist/studio/application/conversations/trajectory-evidence.js +9 -0
  1111. package/dist/studio/application/directory-sources.d.ts +47 -0
  1112. package/dist/studio/application/directory-sources.js +44 -0
  1113. package/dist/studio/application/display/conversation-label.d.ts +13 -0
  1114. package/dist/studio/application/display/conversation-label.js +30 -0
  1115. package/dist/studio/application/display/format.d.ts +40 -0
  1116. package/dist/studio/application/display/format.js +101 -0
  1117. package/dist/studio/application/display/tone.d.ts +10 -0
  1118. package/dist/studio/application/display/tone.js +10 -0
  1119. package/dist/studio/application/knowledge/artifact-authoring.d.ts +41 -0
  1120. package/dist/studio/application/knowledge/artifact-authoring.js +16 -0
  1121. package/dist/studio/application/knowledge/auto-extraction.d.ts +4 -0
  1122. package/dist/studio/application/knowledge/auto-extraction.js +23 -0
  1123. package/dist/studio/application/knowledge/candidate-review.d.ts +5 -0
  1124. package/dist/studio/application/knowledge/candidate-review.js +20 -0
  1125. package/dist/studio/application/knowledge/candidate-status.d.ts +9 -0
  1126. package/dist/studio/application/knowledge/candidate-status.js +19 -0
  1127. package/dist/studio/application/knowledge/doctor-format.d.ts +84 -0
  1128. package/dist/studio/application/knowledge/doctor-format.js +115 -0
  1129. package/dist/studio/application/knowledge/entity-links.d.ts +14 -0
  1130. package/dist/studio/application/knowledge/entity-links.js +178 -0
  1131. package/dist/studio/application/knowledge/knowledge-candidates.d.ts +3 -0
  1132. package/dist/studio/application/knowledge/knowledge-candidates.js +226 -0
  1133. package/dist/studio/application/knowledge/knowledge-library.d.ts +424 -0
  1134. package/dist/studio/application/knowledge/knowledge-library.js +24 -0
  1135. package/dist/studio/application/knowledge/knowledge-query.d.ts +30 -0
  1136. package/dist/studio/application/knowledge/knowledge-query.js +30 -0
  1137. package/dist/studio/application/knowledge/knowledge-relations.d.ts +471 -0
  1138. package/dist/studio/application/knowledge/knowledge-relations.js +14 -0
  1139. package/dist/studio/application/knowledge/knowledge-reports.d.ts +17 -0
  1140. package/dist/studio/application/knowledge/knowledge-reports.js +231 -0
  1141. package/dist/studio/application/knowledge/knowledge-reviews.d.ts +356 -0
  1142. package/dist/studio/application/knowledge/knowledge-reviews.js +15 -0
  1143. package/dist/studio/application/knowledge/library-view.d.ts +23 -0
  1144. package/dist/studio/application/knowledge/library-view.js +7 -0
  1145. package/dist/studio/application/knowledge/skill-health.d.ts +11 -0
  1146. package/dist/studio/application/knowledge/skill-health.js +50 -0
  1147. package/dist/studio/application/knowledge/skill-index.d.ts +27 -0
  1148. package/dist/studio/application/knowledge/skill-index.js +359 -0
  1149. package/dist/studio/application/knowledge/skill-insights.d.ts +3 -0
  1150. package/dist/studio/application/knowledge/skill-insights.js +284 -0
  1151. package/dist/studio/application/knowledge/source-picker.d.ts +368 -0
  1152. package/dist/studio/application/knowledge/source-picker.js +54 -0
  1153. package/dist/studio/application/knowledge/source-view.d.ts +4 -0
  1154. package/dist/studio/application/knowledge/source-view.js +8 -0
  1155. package/dist/studio/application/measure/carrier-measurement.d.ts +20 -0
  1156. package/dist/studio/application/measure/carrier-measurement.js +51 -0
  1157. package/dist/studio/application/measure/core-run-catalog.d.ts +3 -0
  1158. package/dist/studio/application/measure/core-run-format.d.ts +33 -0
  1159. package/dist/studio/application/measure/core-run-format.js +164 -0
  1160. package/dist/studio/application/measure/core-run-projection.d.ts +6 -0
  1161. package/dist/studio/application/measure/core-run-projection.js +320 -0
  1162. package/dist/studio/application/observe/health-format.d.ts +158 -0
  1163. package/dist/studio/application/observe/health-format.js +239 -0
  1164. package/dist/studio/application/settings/settings.d.ts +35 -0
  1165. package/dist/studio/application/settings/settings.js +13 -0
  1166. package/dist/studio/http/contracts.d.ts +40 -8
  1167. package/dist/studio/http/errors.d.ts +1 -2
  1168. package/dist/studio/http/errors.js +8 -5
  1169. package/dist/studio/http/language.d.ts +10 -0
  1170. package/dist/studio/http/language.js +18 -0
  1171. package/dist/studio/http/next-context.d.ts +14 -6
  1172. package/dist/studio/http/next-context.js +5 -1
  1173. package/dist/studio/http/next-server.d.ts +1 -1
  1174. package/dist/studio/http/next-server.js +124 -56
  1175. package/dist/studio/http/page-fault.d.ts +3 -0
  1176. package/dist/studio/http/page-fault.js +23 -0
  1177. package/dist/studio/http/page-params.d.ts +32 -0
  1178. package/dist/studio/http/page-params.js +32 -0
  1179. package/dist/studio/http/page-paths.d.ts +36 -0
  1180. package/dist/studio/http/page-paths.js +36 -0
  1181. package/dist/studio/http/pages/agents-page.d.ts +12 -0
  1182. package/dist/studio/http/pages/agents-page.js +13 -0
  1183. package/dist/studio/http/pages/health-page.d.ts +38 -0
  1184. package/dist/studio/http/pages/health-page.js +49 -0
  1185. package/dist/studio/http/pages/inbox-page.d.ts +13 -0
  1186. package/dist/studio/http/pages/inbox-page.js +14 -0
  1187. package/dist/studio/http/pages/knowledge-page.d.ts +39 -0
  1188. package/dist/studio/http/pages/knowledge-page.js +59 -0
  1189. package/dist/studio/http/pages/measure-page.d.ts +18 -0
  1190. package/dist/studio/http/pages/measure-page.js +30 -0
  1191. package/dist/studio/http/pages/observe-page.d.ts +29 -0
  1192. package/dist/studio/http/pages/observe-page.js +45 -0
  1193. package/dist/studio/http/report-server.d.ts +1 -2
  1194. package/dist/studio/http/report-server.js +74 -28
  1195. package/dist/studio/http/request-errors.js +61 -28
  1196. package/dist/studio/http/request-handler.d.ts +3 -4
  1197. package/dist/studio/http/request-handler.js +60 -37
  1198. package/dist/studio/http/routes/artifact-authoring.d.ts +1 -0
  1199. package/dist/studio/http/routes/artifact-authoring.js +35 -0
  1200. package/dist/studio/http/routes/carrier-measurement.d.ts +8 -0
  1201. package/dist/studio/http/routes/carrier-measurement.js +34 -0
  1202. package/dist/studio/http/routes/contracts.d.ts +1 -1
  1203. package/dist/studio/http/routes/conversations.d.ts +1 -1
  1204. package/dist/studio/http/routes/conversations.js +39 -57
  1205. package/dist/studio/http/routes/core-runs.d.ts +10 -10
  1206. package/dist/studio/http/routes/core-runs.js +21 -62
  1207. package/dist/studio/http/routes/entity-links.d.ts +3 -0
  1208. package/dist/studio/http/routes/entity-links.js +39 -0
  1209. package/dist/studio/http/routes/knowledge-candidates.d.ts +6 -0
  1210. package/dist/studio/http/routes/knowledge-candidates.js +47 -0
  1211. package/dist/studio/http/routes/knowledge-relations.d.ts +3 -0
  1212. package/dist/studio/http/routes/knowledge-relations.js +32 -0
  1213. package/dist/studio/http/routes/knowledge-reviews.d.ts +3 -0
  1214. package/dist/studio/http/routes/knowledge-reviews.js +30 -0
  1215. package/dist/studio/http/routes/knowledge.d.ts +4 -6
  1216. package/dist/studio/http/routes/knowledge.js +5 -222
  1217. package/dist/studio/http/routes/observations.d.ts +3 -9
  1218. package/dist/studio/http/routes/observations.js +3 -109
  1219. package/dist/studio/http/routes/router.d.ts +2 -1
  1220. package/dist/studio/http/routes/router.js +2 -8
  1221. package/dist/studio/http/routes/settings.d.ts +1 -0
  1222. package/dist/studio/http/routes/settings.js +36 -0
  1223. package/dist/studio/http/server-addresses.d.ts +5 -0
  1224. package/dist/studio/http/server-addresses.js +16 -0
  1225. package/dist/studio/view-models/conversations/conversation-reader.d.ts +15 -0
  1226. package/dist/studio/view-models/conversations/replay.d.ts +85 -0
  1227. package/dist/studio/view-models/display/tone.d.ts +7 -0
  1228. package/dist/studio/view-models/display/tone.js +1 -0
  1229. package/dist/studio/view-models/knowledge/artifact-authoring.d.ts +2 -0
  1230. package/dist/studio/view-models/knowledge/artifact-authoring.js +1 -0
  1231. package/dist/studio/view-models/knowledge/entity-links.d.ts +17 -0
  1232. package/dist/studio/view-models/knowledge/entity-links.js +1 -0
  1233. package/dist/studio/view-models/knowledge/health-assessment.d.ts +16 -0
  1234. package/dist/studio/view-models/knowledge/health-assessment.js +1 -0
  1235. package/dist/studio/view-models/knowledge/insight.d.ts +75 -0
  1236. package/dist/studio/view-models/knowledge/insight.js +1 -0
  1237. package/dist/studio/view-models/knowledge/knowledge-candidates.d.ts +135 -0
  1238. package/dist/studio/view-models/knowledge/knowledge-candidates.js +1 -0
  1239. package/dist/studio/view-models/knowledge/knowledge-library.d.ts +4 -0
  1240. package/dist/studio/view-models/knowledge/knowledge-library.js +1 -0
  1241. package/dist/studio/view-models/knowledge/knowledge-relations.d.ts +2 -0
  1242. package/dist/studio/view-models/knowledge/knowledge-relations.js +1 -0
  1243. package/dist/studio/view-models/knowledge/knowledge-reports.js +1 -0
  1244. package/dist/studio/view-models/knowledge/knowledge-reviews.d.ts +2 -0
  1245. package/dist/studio/view-models/knowledge/knowledge-reviews.js +1 -0
  1246. package/dist/studio/view-models/knowledge/skill-index.d.ts +113 -0
  1247. package/dist/studio/view-models/knowledge/skill-index.js +1 -0
  1248. package/dist/studio/view-models/measure/carrier-measurement.d.ts +1 -0
  1249. package/dist/studio/view-models/measure/carrier-measurement.js +1 -0
  1250. package/dist/studio/view-models/measure/core-runs.d.ts +263 -0
  1251. package/dist/studio/view-models/measure/core-runs.js +1 -0
  1252. package/dist/studio/view-models/page-fault.d.ts +9 -0
  1253. package/dist/studio/view-models/page-fault.js +1 -0
  1254. package/dist/studio/view-models/settings/settings.d.ts +12 -0
  1255. package/dist/studio/view-models/settings/settings.js +1 -0
  1256. package/dist/studio/web/.next/BUILD_ID +1 -1
  1257. package/dist/studio/web/.next/app-path-routes-manifest.json +13 -4
  1258. package/dist/studio/web/.next/build-manifest.json +6 -6
  1259. package/dist/studio/web/.next/next-minimal-server.js.nft.json +1 -1
  1260. package/dist/studio/web/.next/next-server.js.nft.json +1 -1
  1261. package/dist/studio/web/.next/prerender-manifest.json +4 -4
  1262. package/dist/studio/web/.next/required-server-files.js +35 -2
  1263. package/dist/studio/web/.next/required-server-files.json +35 -2
  1264. package/dist/studio/web/.next/routes-manifest.json +73 -11
  1265. package/dist/studio/web/.next/server/app/_global-error/page.js +2 -2
  1266. package/dist/studio/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  1267. package/dist/studio/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  1268. package/dist/studio/web/.next/server/app/_global-error.html +1 -1
  1269. package/dist/studio/web/.next/server/app/_global-error.meta +8 -0
  1270. package/dist/studio/web/.next/server/app/_global-error.rsc +30 -20
  1271. package/dist/studio/web/.next/server/app/_global-error.segments/_full.segment.rsc +30 -20
  1272. package/dist/studio/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +36 -24
  1273. package/dist/studio/web/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -1
  1274. package/dist/studio/web/.next/server/app/_not-found/page.js +1 -1
  1275. package/dist/studio/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  1276. package/dist/studio/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  1277. package/dist/studio/web/.next/server/app/agents/page.js +1 -0
  1278. package/dist/studio/web/.next/server/app/agents/page.js.nft.json +1 -0
  1279. package/dist/studio/web/.next/server/app/agents/page_client-reference-manifest.js +1 -0
  1280. package/dist/studio/web/.next/server/app/knowledge/candidates/page.js +1 -0
  1281. package/dist/studio/web/.next/server/app/knowledge/candidates/page.js.nft.json +1 -0
  1282. package/dist/studio/web/.next/server/app/knowledge/candidates/page_client-reference-manifest.js +1 -0
  1283. package/dist/studio/web/.next/server/app/knowledge/entities/page.js +1 -0
  1284. package/dist/studio/web/.next/server/app/knowledge/entities/page.js.nft.json +1 -0
  1285. package/dist/studio/web/.next/server/app/knowledge/entities/page_client-reference-manifest.js +1 -0
  1286. package/dist/studio/web/.next/server/app/knowledge/library/page.js +55 -0
  1287. package/dist/studio/web/.next/server/app/knowledge/library/page.js.nft.json +1 -0
  1288. package/dist/studio/web/.next/server/app/knowledge/library/page_client-reference-manifest.js +1 -0
  1289. package/dist/studio/web/.next/server/app/knowledge/page.js +1 -1
  1290. package/dist/studio/web/.next/server/app/knowledge/page.js.nft.json +1 -1
  1291. package/dist/studio/web/.next/server/app/knowledge/page_client-reference-manifest.js +1 -1
  1292. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js +1 -1
  1293. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page.js.nft.json +1 -1
  1294. package/dist/studio/web/.next/server/app/knowledge/skills/[skillName]/page_client-reference-manifest.js +1 -1
  1295. package/dist/studio/web/.next/server/app/measure/[runId]/page.js +1 -1
  1296. package/dist/studio/web/.next/server/app/measure/[runId]/page.js.nft.json +1 -1
  1297. package/dist/studio/web/.next/server/app/measure/[runId]/page_client-reference-manifest.js +1 -1
  1298. package/dist/studio/web/.next/server/app/measure/page.js +1 -1
  1299. package/dist/studio/web/.next/server/app/measure/page.js.nft.json +1 -1
  1300. package/dist/studio/web/.next/server/app/measure/page_client-reference-manifest.js +1 -1
  1301. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js +1 -1
  1302. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page.js.nft.json +1 -1
  1303. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/page_client-reference-manifest.js +1 -1
  1304. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js +1 -1
  1305. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page.js.nft.json +1 -1
  1306. package/dist/studio/web/.next/server/app/observe/conversations/[threadId]/tasks/[turnId]/page_client-reference-manifest.js +1 -1
  1307. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js +1 -0
  1308. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page.js.nft.json +1 -0
  1309. package/dist/studio/web/.next/server/app/observe/health/[analysisId]/page_client-reference-manifest.js +1 -0
  1310. package/dist/studio/web/.next/server/app/observe/health/page.js +1 -0
  1311. package/dist/studio/web/.next/server/app/observe/health/page.js.nft.json +1 -0
  1312. package/dist/studio/web/.next/server/app/observe/health/page_client-reference-manifest.js +1 -0
  1313. package/dist/studio/web/.next/server/app/observe/health-diff/page.js +1 -0
  1314. package/dist/studio/web/.next/server/app/observe/health-diff/page.js.nft.json +1 -0
  1315. package/dist/studio/web/.next/server/app/observe/health-diff/page_client-reference-manifest.js +1 -0
  1316. package/dist/studio/web/.next/server/app/observe/inbox/page.js +2 -5
  1317. package/dist/studio/web/.next/server/app/observe/inbox/page.js.nft.json +1 -1
  1318. package/dist/studio/web/.next/server/app/observe/inbox/page_client-reference-manifest.js +1 -1
  1319. package/dist/studio/web/.next/server/app/observe/page.js +1 -1
  1320. package/dist/studio/web/.next/server/app/observe/page.js.nft.json +1 -1
  1321. package/dist/studio/web/.next/server/app/observe/page_client-reference-manifest.js +1 -1
  1322. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js +1 -0
  1323. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page.js.nft.json +1 -0
  1324. package/dist/studio/web/.next/server/app/observe/skill-trend/[skillName]/page_client-reference-manifest.js +1 -0
  1325. package/dist/studio/web/.next/server/app/studio-fault/page.js +1 -0
  1326. package/dist/studio/web/.next/server/app/studio-fault/page.js.nft.json +1 -0
  1327. package/dist/studio/web/.next/server/app/studio-fault/page_client-reference-manifest.js +1 -0
  1328. package/dist/studio/web/.next/server/app-paths-manifest.json +13 -4
  1329. package/dist/studio/web/.next/server/chunks/158.js +4 -0
  1330. package/dist/studio/web/.next/server/chunks/173.js +23 -0
  1331. package/dist/studio/web/.next/server/chunks/197.js +1 -0
  1332. package/dist/studio/web/.next/server/chunks/241.js +1 -0
  1333. package/dist/studio/web/.next/server/chunks/276.js +55 -0
  1334. package/dist/studio/web/.next/server/chunks/278.js +4 -0
  1335. package/dist/studio/web/.next/server/chunks/285.js +16 -0
  1336. package/dist/studio/web/.next/server/chunks/3.js +1 -0
  1337. package/dist/studio/web/.next/server/chunks/464.js +9 -0
  1338. package/dist/studio/web/.next/server/chunks/475.js +1 -0
  1339. package/dist/studio/web/.next/server/chunks/499.js +1 -0
  1340. package/dist/studio/web/.next/server/chunks/5.js +1 -0
  1341. package/dist/studio/web/.next/server/chunks/520.js +1 -0
  1342. package/dist/studio/web/.next/server/chunks/644.js +16 -0
  1343. package/dist/studio/web/.next/server/chunks/647.js +41 -0
  1344. package/dist/studio/web/.next/server/chunks/704.js +1 -0
  1345. package/dist/studio/web/.next/server/chunks/757.js +4 -0
  1346. package/dist/studio/web/.next/server/chunks/758.js +1 -0
  1347. package/dist/studio/web/.next/server/chunks/772.js +4 -4
  1348. package/dist/studio/web/.next/server/chunks/777.js +1 -0
  1349. package/dist/studio/web/.next/server/chunks/78.js +1 -0
  1350. package/dist/studio/web/.next/server/chunks/845.js +6 -0
  1351. package/dist/studio/web/.next/server/chunks/907.js +471 -0
  1352. package/dist/studio/web/.next/server/chunks/952.js +10 -0
  1353. package/dist/studio/web/.next/server/chunks/996.js +1 -0
  1354. package/dist/studio/web/.next/server/middleware-build-manifest.js +1 -1
  1355. package/dist/studio/web/.next/server/pages/500.html +1 -1
  1356. package/dist/studio/web/.next/server/preview-props.json +5 -0
  1357. package/dist/studio/web/.next/server/server-reference-manifest.json +1 -1
  1358. package/dist/studio/web/.next/server/webpack-runtime.js +1 -1
  1359. package/dist/studio/web/.next/static/chunks/0937d497-cb7a9ff884a082ab.js +1 -0
  1360. package/dist/studio/web/.next/static/chunks/1046-d6406775bf6e4e56.js +10 -0
  1361. package/dist/studio/web/.next/static/chunks/130-893cf722c2625b17.js +126 -0
  1362. package/dist/studio/web/.next/static/chunks/1492-bad4ed42c0e250f4.js +1 -0
  1363. package/dist/studio/web/.next/static/chunks/1858-c1e4347ec29d9975.js +52 -0
  1364. package/dist/studio/web/.next/static/chunks/2038-6693f44ecf63822c.js +1 -0
  1365. package/dist/studio/web/.next/static/chunks/2192-3018e652a8614c1a.js +16 -0
  1366. package/dist/studio/web/.next/static/chunks/2519-4e2ef8a5f4329f8f.js +1 -0
  1367. package/dist/studio/web/.next/static/chunks/2974-4e69b5f46cfb7dcf.js +41 -0
  1368. package/dist/studio/web/.next/static/chunks/3596-edc23b1335d9e066.js +16 -0
  1369. package/dist/studio/web/.next/static/chunks/3958-a0c0cdf3f949cce5.js +1 -0
  1370. package/dist/studio/web/.next/static/chunks/3978-7aa1fe441f992fbc.js +1 -0
  1371. package/dist/studio/web/.next/static/chunks/4994-f4341c8b63e0b273.js +23 -0
  1372. package/dist/studio/web/.next/static/chunks/5014-5f3f743dbdca752b.js +1 -0
  1373. package/dist/studio/web/.next/static/chunks/5382-1b919cde624bb761.js +1 -0
  1374. package/dist/studio/web/.next/static/chunks/5669-9c97987efcbb436b.js +4 -0
  1375. package/dist/studio/web/.next/static/chunks/5686-ca88fb679f990180.js +7 -0
  1376. package/dist/studio/web/.next/static/chunks/5810-175f6442bf41f93f.js +8 -0
  1377. package/dist/studio/web/.next/static/chunks/5834-a15c5aca742e8dfe.js +1 -0
  1378. package/dist/studio/web/.next/static/chunks/5888-7fcdb8113bad0a83.js +55 -0
  1379. package/dist/studio/web/.next/static/chunks/6238-d5503cb2b71c7dac.js +1 -0
  1380. package/dist/studio/web/.next/static/chunks/6722-e64d7dff19ba05f4.js +4 -0
  1381. package/dist/studio/web/.next/static/chunks/7754-35adc2934225f819.js +4 -0
  1382. package/dist/studio/web/.next/static/chunks/7936-e4a0d3ac28eb54cc.js +164 -0
  1383. package/dist/studio/web/.next/static/chunks/7956-5d0381b62a26fe4d.js +6 -0
  1384. package/dist/studio/web/.next/static/chunks/8093-42784c8dd11cb2f7.js +1 -0
  1385. package/dist/studio/web/.next/static/chunks/8284-7f5a979f042ab2fa.js +1 -0
  1386. package/dist/studio/web/.next/static/chunks/8791-c05283fd8a8fdb82.js +1 -0
  1387. package/dist/studio/web/.next/static/chunks/9688-4bdad39f3387b49a.js +1 -0
  1388. package/dist/studio/web/.next/static/chunks/9978-5c07c696f9455dda.js +9 -0
  1389. package/dist/studio/web/.next/static/chunks/app/_global-error/page-e609dd5f58d4d1da.js +1 -0
  1390. package/dist/studio/web/.next/static/chunks/app/_not-found/page-e609dd5f58d4d1da.js +1 -0
  1391. package/dist/studio/web/.next/static/chunks/app/agents/page-d4eaa6a8179b7b19.js +1 -0
  1392. package/dist/studio/web/.next/static/chunks/app/error-edb0db1072d1d73f.js +1 -0
  1393. package/dist/studio/web/.next/static/chunks/app/knowledge/candidates/page-9526538d0b68d6f4.js +1 -0
  1394. package/dist/studio/web/.next/static/chunks/app/knowledge/entities/page-aff10fb4087e2ead.js +1 -0
  1395. package/dist/studio/web/.next/static/chunks/app/knowledge/library/page-94bff0d5847f1372.js +1 -0
  1396. package/dist/studio/web/.next/static/chunks/app/knowledge/page-a0f3756f1167905f.js +1 -0
  1397. package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-6dba56e2cc7bf391.js +1 -0
  1398. package/dist/studio/web/.next/static/chunks/app/layout-238de1f5bd3b0186.js +1 -0
  1399. package/dist/studio/web/.next/static/chunks/app/loading-bafa7dd71ac593fb.js +1 -0
  1400. package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-18d8cdad7fbd3103.js +1 -0
  1401. package/dist/studio/web/.next/static/chunks/app/measure/page-ef11f68b9809a459.js +1 -0
  1402. package/dist/studio/web/.next/static/chunks/app/not-found-2ea031c66ca97f78.js +1 -0
  1403. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-bcc0e0e84f975fe2.js +1 -0
  1404. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-f0f71def8fed4edb.js +1 -0
  1405. package/dist/studio/web/.next/static/chunks/app/observe/health/[analysisId]/page-b9ee172f2f50b703.js +1 -0
  1406. package/dist/studio/web/.next/static/chunks/app/observe/health/page-4786159a2715cfc0.js +1 -0
  1407. package/dist/studio/web/.next/static/chunks/app/observe/health-diff/page-82c559a9f9f00e46.js +1 -0
  1408. package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-1aeba2d85fcdb064.js +1 -0
  1409. package/dist/studio/web/.next/static/chunks/app/observe/page-85aa6e5ef7030a53.js +1 -0
  1410. package/dist/studio/web/.next/static/chunks/app/observe/skill-trend/[skillName]/page-81db0784463726ef.js +1 -0
  1411. package/dist/studio/web/.next/static/chunks/app/studio-fault/page-c1a55437331aa91a.js +1 -0
  1412. package/dist/studio/web/.next/static/chunks/framework-c65554ff3488f9ae.js +1 -0
  1413. package/dist/studio/web/.next/static/chunks/main-6fb9fe9da7afc450.js +5 -0
  1414. package/dist/studio/web/.next/static/chunks/main-app-679042091c356b7b.js +1 -0
  1415. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/app-error-e609dd5f58d4d1da.js +1 -0
  1416. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-e609dd5f58d4d1da.js +1 -0
  1417. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/global-error-fb3b4a28100823de.js +1 -0
  1418. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e609dd5f58d4d1da.js +1 -0
  1419. package/dist/studio/web/.next/static/chunks/webpack-ac24233801701b11.js +1 -0
  1420. package/dist/studio/web/.next/static/css/9037c4f39a77549b.css +1 -0
  1421. package/dist/studio/web/.next/static/scyR1oH1_xcujwAsrOo96/_buildManifest.js +1 -0
  1422. package/dist/studio/web/.next/trace +108 -3
  1423. package/dist/studio/web/.next/trace-build +1 -1
  1424. package/dist/studio/web/next.config.mjs +7 -0
  1425. package/package.json +36 -64
  1426. package/dist/cli/commands/list.d.ts +0 -26
  1427. package/dist/cli/commands/list.js +0 -121
  1428. package/dist/cli/commands/promote.d.ts +0 -24
  1429. package/dist/cli/commands/promote.js +0 -141
  1430. package/dist/cli/commands/rollback.d.ts +0 -20
  1431. package/dist/cli/commands/rollback.js +0 -87
  1432. package/dist/cli/lib/actor.d.ts +0 -2
  1433. package/dist/cli/lib/actor.js +0 -13
  1434. package/dist/cli/lib/evaluation-composition.d.ts +0 -3
  1435. package/dist/cli/lib/evaluation-composition.js +0 -96
  1436. package/dist/cli/lib/i18n-dict/list.d.ts +0 -3
  1437. package/dist/cli/lib/i18n-dict/list.js +0 -40
  1438. package/dist/cli/lib/i18n-dict/promote.d.ts +0 -3
  1439. package/dist/cli/lib/i18n-dict/promote.js +0 -46
  1440. package/dist/cli/lib/i18n-dict/rollback.d.ts +0 -3
  1441. package/dist/cli/lib/i18n-dict/rollback.js +0 -22
  1442. package/dist/diagnosis/contracts/parser.js +0 -181
  1443. package/dist/diagnosis/lifecycle.js +0 -31
  1444. package/dist/diagnosis/observe-mapper.js +0 -265
  1445. package/dist/diagnosis/observe-producer.d.ts +0 -8
  1446. package/dist/diagnosis/observe-producer.js +0 -200
  1447. package/dist/diagnosis/studio-projection.js +0 -90
  1448. package/dist/eval-runtime/advanced.d.ts +0 -38
  1449. package/dist/eval-runtime/advanced.js +0 -18
  1450. package/dist/eval-runtime/clock.d.ts +0 -3
  1451. package/dist/eval-runtime/contracts.d.ts +0 -4
  1452. package/dist/eval-runtime/contracts.js +0 -2
  1453. package/dist/eval-runtime/evaluation/ordering.d.ts +0 -1
  1454. package/dist/eval-runtime/evaluation/ordering.js +0 -3
  1455. package/dist/eval-runtime/executed-store.d.ts +0 -48
  1456. package/dist/eval-runtime/executed-store.js +0 -256
  1457. package/dist/eval-runtime/execution-controls.d.ts +0 -6
  1458. package/dist/eval-runtime/execution-controls.js +0 -57
  1459. package/dist/eval-runtime/execution.d.ts +0 -60
  1460. package/dist/eval-runtime/execution.js +0 -183
  1461. package/dist/eval-runtime/infrastructure.d.ts +0 -51
  1462. package/dist/eval-runtime/infrastructure.js +0 -89
  1463. package/dist/eval-runtime/mcp-config.d.ts +0 -48
  1464. package/dist/eval-runtime/mcp-config.js +0 -90
  1465. package/dist/eval-runtime/mock-interception.d.ts +0 -65
  1466. package/dist/eval-runtime/mock-interception.js +0 -109
  1467. package/dist/eval-runtime/provider.d.ts +0 -38
  1468. package/dist/eval-runtime/provider.js +0 -13
  1469. package/dist/eval-runtime/result-store.d.ts +0 -45
  1470. package/dist/eval-runtime/result-store.js +0 -247
  1471. package/dist/eval-runtime/runner.d.ts +0 -47
  1472. package/dist/eval-runtime/runner.js +0 -116
  1473. package/dist/eval-runtime/runtime.d.ts +0 -35
  1474. package/dist/eval-runtime/runtime.js +0 -111
  1475. package/dist/eval-runtime/tool-policy.js +0 -69
  1476. package/dist/eval-runtime/workspace.d.ts +0 -49
  1477. package/dist/eval-runtime/workspace.js +0 -84
  1478. package/dist/eval-workflows/analysis/bootstrap.d.ts +0 -150
  1479. package/dist/eval-workflows/analysis/bootstrap.js +0 -307
  1480. package/dist/eval-workflows/hosts/adapters/anthropic/api.d.ts +0 -31
  1481. package/dist/eval-workflows/hosts/adapters/anthropic/api.js +0 -286
  1482. package/dist/eval-workflows/hosts/adapters/anthropic/protocol.d.ts +0 -67
  1483. package/dist/eval-workflows/hosts/adapters/anthropic/protocol.js +0 -192
  1484. package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.d.ts +0 -19
  1485. package/dist/eval-workflows/hosts/adapters/claude/cli-protocol.js +0 -274
  1486. package/dist/eval-workflows/hosts/adapters/claude/cli.d.ts +0 -48
  1487. package/dist/eval-workflows/hosts/adapters/claude/cli.js +0 -607
  1488. package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.d.ts +0 -5
  1489. package/dist/eval-workflows/hosts/adapters/claude/core-protocol-contract.js +0 -57
  1490. package/dist/eval-workflows/hosts/adapters/claude/resources.d.ts +0 -125
  1491. package/dist/eval-workflows/hosts/adapters/claude/resources.js +0 -713
  1492. package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.d.ts +0 -7
  1493. package/dist/eval-workflows/hosts/adapters/claude/sdk-protocol.js +0 -36
  1494. package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.d.ts +0 -40
  1495. package/dist/eval-workflows/hosts/adapters/claude/sdk-runtime.js +0 -163
  1496. package/dist/eval-workflows/hosts/adapters/claude/sdk.d.ts +0 -29
  1497. package/dist/eval-workflows/hosts/adapters/claude/sdk.js +0 -507
  1498. package/dist/eval-workflows/hosts/adapters/custom/command.d.ts +0 -240
  1499. package/dist/eval-workflows/hosts/adapters/custom/command.js +0 -838
  1500. package/dist/eval-workflows/inputs/contracts/schemas/v2/eval-sample-set.schema.json +0 -639
  1501. package/dist/eval-workflows/projections/managed.d.ts +0 -8
  1502. package/dist/eval-workflows/projections/managed.js +0 -105
  1503. package/dist/eval-workflows/resume-admission/admit.d.ts +0 -8
  1504. package/dist/eval-workflows/resume-admission/admit.js +0 -180
  1505. package/dist/eval-workflows/resume-admission/contracts.d.ts +0 -81
  1506. package/dist/eval-workflows/resume-admission/contracts.js +0 -22
  1507. package/dist/eval-workflows/resume-admission/index.d.ts +0 -2
  1508. package/dist/eval-workflows/resume-admission/index.js +0 -2
  1509. package/dist/evidence/graph/doctor.d.ts +0 -22
  1510. package/dist/evidence/graph/doctor.js +0 -572
  1511. package/dist/evidence/storage/default-dirs.d.ts +0 -32
  1512. package/dist/evidence/storage/default-dirs.js +0 -33
  1513. package/dist/evidence/storage/directories.d.ts +0 -18
  1514. package/dist/evidence/storage/directories.js +0 -60
  1515. package/dist/evidence/storage/discovery-index.d.ts +0 -86
  1516. package/dist/evidence/storage/discovery-index.js +0 -303
  1517. package/dist/evidence/storage/file-names.d.ts +0 -12
  1518. package/dist/evidence/storage/file-names.js +0 -51
  1519. package/dist/evidence/storage/layout.d.ts +0 -35
  1520. package/dist/evidence/storage/layout.js +0 -50
  1521. package/dist/evidence/storage/report-bundle.js +0 -122
  1522. package/dist/evidence/storage/run-id.js +0 -19
  1523. package/dist/executors/anthropic/api.d.ts +0 -3
  1524. package/dist/executors/anthropic/api.js +0 -102
  1525. package/dist/executors/anthropic/claude/cli.d.ts +0 -3
  1526. package/dist/executors/anthropic/claude/cli.js +0 -119
  1527. package/dist/executors/anthropic/claude/protocol.d.ts +0 -87
  1528. package/dist/executors/anthropic/claude/protocol.js +0 -180
  1529. package/dist/executors/anthropic/claude/sdk.d.ts +0 -20
  1530. package/dist/executors/anthropic/claude/sdk.js +0 -159
  1531. package/dist/executors/anthropic/claude/trace.d.ts +0 -9
  1532. package/dist/executors/anthropic/claude/trace.js +0 -133
  1533. package/dist/executors/core/tool-identity.d.ts +0 -29
  1534. package/dist/executors/core/trace-source-kind.d.ts +0 -4
  1535. package/dist/executors/core/trace-source-kind.js +0 -5
  1536. package/dist/executors/mock-runtime/mock-hook.cjs +0 -271
  1537. package/dist/executors/tool-call-status.d.ts +0 -8
  1538. package/dist/executors/tool-call-status.js +0 -71
  1539. package/dist/knowledge-artifacts/authoring/core-evolver.d.ts +0 -66
  1540. package/dist/knowledge-artifacts/authoring/core-evolver.js +0 -283
  1541. package/dist/knowledge-artifacts/authoring/scaffold.js +0 -109
  1542. package/dist/knowledge-artifacts/doctor/contracts.d.ts +0 -201
  1543. package/dist/knowledge-artifacts/doctor/endpoint-rule.js +0 -382
  1544. package/dist/knowledge-artifacts/doctor/fixer.js +0 -345
  1545. package/dist/knowledge-artifacts/doctor/health/composer.d.ts +0 -18
  1546. package/dist/knowledge-artifacts/doctor/health/composer.js +0 -411
  1547. package/dist/knowledge-artifacts/doctor/index.js +0 -277
  1548. package/dist/knowledge-artifacts/doctor/messages.d.ts +0 -20
  1549. package/dist/knowledge-artifacts/doctor/messages.js +0 -224
  1550. package/dist/knowledge-artifacts/doctor/persistence.js +0 -126
  1551. package/dist/knowledge-artifacts/doctor/renderer.d.ts +0 -17
  1552. package/dist/knowledge-artifacts/doctor/report-parser.js +0 -103
  1553. package/dist/knowledge-artifacts/doctor/rules.d.ts +0 -32
  1554. package/dist/knowledge-artifacts/doctor/rules.js +0 -290
  1555. package/dist/knowledge-artifacts/governance/contracts.d.ts +0 -158
  1556. package/dist/knowledge-artifacts/governance/evidence.d.ts +0 -25
  1557. package/dist/knowledge-artifacts/governance/evidence.js +0 -111
  1558. package/dist/knowledge-artifacts/governance/evolve-outcome.d.ts +0 -16
  1559. package/dist/knowledge-artifacts/governance/evolve-outcome.js +0 -41
  1560. package/dist/knowledge-artifacts/governance/index.d.ts +0 -11
  1561. package/dist/knowledge-artifacts/governance/index.js +0 -11
  1562. package/dist/knowledge-artifacts/governance/install.d.ts +0 -29
  1563. package/dist/knowledge-artifacts/governance/install.js +0 -63
  1564. package/dist/knowledge-artifacts/governance/list-query.d.ts +0 -7
  1565. package/dist/knowledge-artifacts/governance/list-query.js +0 -11
  1566. package/dist/knowledge-artifacts/governance/list-view.d.ts +0 -67
  1567. package/dist/knowledge-artifacts/governance/list-view.js +0 -77
  1568. package/dist/knowledge-artifacts/governance/observe-feedback.d.ts +0 -73
  1569. package/dist/knowledge-artifacts/governance/observe-feedback.js +0 -59
  1570. package/dist/knowledge-artifacts/governance/promote-gate.d.ts +0 -34
  1571. package/dist/knowledge-artifacts/governance/promote-gate.js +0 -32
  1572. package/dist/knowledge-artifacts/governance/source-probe.d.ts +0 -15
  1573. package/dist/knowledge-artifacts/governance/source-probe.js +0 -129
  1574. package/dist/knowledge-artifacts/governance/store.d.ts +0 -145
  1575. package/dist/knowledge-artifacts/governance/store.js +0 -594
  1576. package/dist/knowledge-artifacts/sources/artifact-resolution.d.ts +0 -184
  1577. package/dist/knowledge-artifacts/sources/artifact-resolution.js +0 -806
  1578. package/dist/knowledge-artifacts/sources/content-hash.js +0 -117
  1579. package/dist/knowledge-artifacts/sources/deploy-artifact.js +0 -65
  1580. package/dist/knowledge-artifacts/sources/install-source.d.ts +0 -37
  1581. package/dist/knowledge-artifacts/sources/install-source.js +0 -124
  1582. package/dist/knowledge-artifacts/sources/materialize-copy.d.ts +0 -37
  1583. package/dist/knowledge-artifacts/sources/materialize-copy.js +0 -193
  1584. package/dist/observability/analysis/coverage-analyzer.js +0 -258
  1585. package/dist/observability/analysis/gap-analyzer.d.ts +0 -110
  1586. package/dist/observability/analysis/gap-analyzer.js +0 -455
  1587. package/dist/observability/analysis/hedging-classifier.js +0 -142
  1588. package/dist/observability/contracts/experience-enums.d.ts +0 -227
  1589. package/dist/observability/contracts/experience-enums.js +0 -227
  1590. package/dist/observability/contracts/experience-evidence-schema.d.ts +0 -33130
  1591. package/dist/observability/contracts/experience-evidence-schema.js +0 -704
  1592. package/dist/observability/contracts/experience.d.ts +0 -80
  1593. package/dist/observability/contracts/inbox.d.ts +0 -181
  1594. package/dist/observability/contracts/skill-chain.d.ts +0 -114
  1595. package/dist/observability/conversation/catalog.d.ts +0 -41
  1596. package/dist/observability/conversation/catalog.js +0 -572
  1597. package/dist/observability/conversation/polling-subscription-hub.js +0 -149
  1598. package/dist/observability/experience/primitives.d.ts +0 -11
  1599. package/dist/observability/experience/primitives.js +0 -75
  1600. package/dist/observability/experience/report-derivations.js +0 -283
  1601. package/dist/observability/experience/report-structure.d.ts +0 -9
  1602. package/dist/observability/experience/session-story.d.ts +0 -93
  1603. package/dist/observability/experience/session-story.js +0 -1349
  1604. package/dist/observability/experience/text-signals.d.ts +0 -7
  1605. package/dist/observability/experience/text-signals.js +0 -30
  1606. package/dist/observability/experience/timeline.d.ts +0 -29
  1607. package/dist/observability/experience/timeline.js +0 -495
  1608. package/dist/observability/experience.d.ts +0 -41
  1609. package/dist/observability/experience.js +0 -812
  1610. package/dist/observability/inbox/explicit-capture.js +0 -223
  1611. package/dist/observability/inbox/feedback-matchers.d.ts +0 -41
  1612. package/dist/observability/inbox/feedback-matchers.js +0 -261
  1613. package/dist/observability/inbox/feedback-projection.d.ts +0 -20
  1614. package/dist/observability/inbox/feedback-projection.js +0 -19
  1615. package/dist/observability/inbox/index.d.ts +0 -34
  1616. package/dist/observability/inbox/index.js +0 -1260
  1617. package/dist/observability/inbox/metric-semantics.d.ts +0 -9
  1618. package/dist/observability/inbox/metric-semantics.js +0 -158
  1619. package/dist/observability/inbox/paths.d.ts +0 -10
  1620. package/dist/observability/inbox/paths.js +0 -64
  1621. package/dist/observability/inbox/problem-patterns.js +0 -246
  1622. package/dist/observability/inbox/review-semantics.d.ts +0 -27
  1623. package/dist/observability/inbox/review-semantics.js +0 -52
  1624. package/dist/observability/inbox/review-state.d.ts +0 -25
  1625. package/dist/observability/inbox/review-state.js +0 -352
  1626. package/dist/observability/inbox/severity-reason.js +0 -48
  1627. package/dist/observability/inbox/signal-semantics.d.ts +0 -28
  1628. package/dist/observability/inbox/skill-rollups.d.ts +0 -59
  1629. package/dist/observability/inbox/skill-rollups.js +0 -186
  1630. package/dist/observability/inbox/source-record-archive.d.ts +0 -14
  1631. package/dist/observability/inbox/source-record-archive.js +0 -328
  1632. package/dist/observability/inbox/view-model.d.ts +0 -55
  1633. package/dist/observability/inbox/view-model.js +0 -174
  1634. package/dist/observability/skill-health/analyzer.d.ts +0 -129
  1635. package/dist/observability/skill-health/analyzer.js +0 -328
  1636. package/dist/observability/skill-health/experience-frontmatter.js +0 -99
  1637. package/dist/observability/skill-health/persistence.d.ts +0 -18
  1638. package/dist/observability/skill-health/persistence.js +0 -43
  1639. package/dist/observability/skill-health/skill-chain.js +0 -486
  1640. package/dist/observability/soft-standards/constants.d.ts +0 -3
  1641. package/dist/observability/soft-standards/constants.js +0 -8
  1642. package/dist/observability/soft-standards/llm-extractor.js +0 -692
  1643. package/dist/observability/soft-standards/runtime-evaluator.js +0 -384
  1644. package/dist/observability/soft-standards/skill-standards-store.d.ts +0 -11
  1645. package/dist/observability/soft-standards/skill-standards-store.js +0 -240
  1646. package/dist/observability/soft-standards/types.d.ts +0 -212
  1647. package/dist/observability/trace/adapters/codex/tool-status.js +0 -114
  1648. package/dist/observability/trace/adapters/codex/trace.d.ts +0 -5
  1649. package/dist/observability/trace/adapters/codex/trace.js +0 -1091
  1650. package/dist/observability/trace/segmentation.js +0 -491
  1651. package/dist/observability/trace/source.d.ts +0 -69
  1652. package/dist/observability/trace/source.js +0 -1199
  1653. package/dist/observability/trace/tool-search.js +0 -160
  1654. package/dist/observability/trace/trace-ir.d.ts +0 -185
  1655. package/dist/observability/trace/trace-ir.js +0 -81
  1656. package/dist/observability/view-models/conversation.d.ts +0 -51
  1657. package/dist/observability/view-models/index.d.ts +0 -3
  1658. package/dist/studio/application/conversation-activity.d.ts +0 -5
  1659. package/dist/studio/application/conversation-activity.js +0 -50
  1660. package/dist/studio/application/core-run-catalog.d.ts +0 -3
  1661. package/dist/studio/application/core-run-projection.d.ts +0 -6
  1662. package/dist/studio/application/core-run-projection.js +0 -308
  1663. package/dist/studio/application/index.d.ts +0 -2
  1664. package/dist/studio/application/index.js +0 -2
  1665. package/dist/studio/application/inline-markdown.d.ts +0 -4
  1666. package/dist/studio/application/inline-markdown.js +0 -99
  1667. package/dist/studio/application/knowledge-query.d.ts +0 -24
  1668. package/dist/studio/application/knowledge-query.js +0 -30
  1669. package/dist/studio/application/knowledge-reports.d.ts +0 -22
  1670. package/dist/studio/application/knowledge-reports.js +0 -279
  1671. package/dist/studio/application/replay/format.d.ts +0 -9
  1672. package/dist/studio/application/replay/format.js +0 -52
  1673. package/dist/studio/application/replay/layout.d.ts +0 -15
  1674. package/dist/studio/application/replay/layout.js +0 -171
  1675. package/dist/studio/application/replay/projection.d.ts +0 -4
  1676. package/dist/studio/application/replay/projection.js +0 -291
  1677. package/dist/studio/application/replay/routing.d.ts +0 -20
  1678. package/dist/studio/application/replay/routing.js +0 -333
  1679. package/dist/studio/application/replay/summary.d.ts +0 -25
  1680. package/dist/studio/application/skill-health.d.ts +0 -8
  1681. package/dist/studio/application/skill-health.js +0 -86
  1682. package/dist/studio/application/skill-index.d.ts +0 -24
  1683. package/dist/studio/application/skill-index.js +0 -360
  1684. package/dist/studio/application/skill-insights.d.ts +0 -5
  1685. package/dist/studio/application/skill-insights.js +0 -218
  1686. package/dist/studio/application/trajectory-evidence.d.ts +0 -4
  1687. package/dist/studio/application/trajectory-evidence.js +0 -12
  1688. package/dist/studio/http/chart-asset.d.ts +0 -1
  1689. package/dist/studio/http/chart-asset.js +0 -21
  1690. package/dist/studio/http/inbox-page.d.ts +0 -11
  1691. package/dist/studio/http/inbox-page.js +0 -9
  1692. package/dist/studio/http/knowledge-page.d.ts +0 -23
  1693. package/dist/studio/http/knowledge-page.js +0 -27
  1694. package/dist/studio/http/observe-page.d.ts +0 -26
  1695. package/dist/studio/http/observe-page.js +0 -36
  1696. package/dist/studio/index.d.ts +0 -5
  1697. package/dist/studio/index.js +0 -5
  1698. package/dist/studio/presentation/conversation-renderer.d.ts +0 -4
  1699. package/dist/studio/presentation/conversation-renderer.js +0 -467
  1700. package/dist/studio/presentation/core-run-renderer.d.ts +0 -12
  1701. package/dist/studio/presentation/core-run-renderer.js +0 -428
  1702. package/dist/studio/presentation/doctor-detail-renderer.d.ts +0 -4
  1703. package/dist/studio/presentation/doctor-detail-renderer.js +0 -142
  1704. package/dist/studio/presentation/icons.d.ts +0 -29
  1705. package/dist/studio/presentation/icons.js +0 -71
  1706. package/dist/studio/presentation/inline-markdown.d.ts +0 -5
  1707. package/dist/studio/presentation/inline-markdown.js +0 -60
  1708. package/dist/studio/presentation/knowledge-debugger-renderer.d.ts +0 -9
  1709. package/dist/studio/presentation/knowledge-debugger-renderer.js +0 -1390
  1710. package/dist/studio/presentation/knowledge-reports-renderer.d.ts +0 -5
  1711. package/dist/studio/presentation/knowledge-reports-renderer.js +0 -196
  1712. package/dist/studio/presentation/layout.d.ts +0 -20
  1713. package/dist/studio/presentation/layout.js +0 -789
  1714. package/dist/studio/presentation/managed-history-renderer.d.ts +0 -5
  1715. package/dist/studio/presentation/managed-history-renderer.js +0 -333
  1716. package/dist/studio/presentation/observation-inbox/client-script.d.ts +0 -2
  1717. package/dist/studio/presentation/observation-inbox/client-script.js +0 -1805
  1718. package/dist/studio/presentation/observation-inbox/experience-workspace-renderer.d.ts +0 -35
  1719. package/dist/studio/presentation/observation-inbox/experience-workspace-renderer.js +0 -1721
  1720. package/dist/studio/presentation/observation-inbox/helpers.d.ts +0 -13
  1721. package/dist/studio/presentation/observation-inbox/helpers.js +0 -74
  1722. package/dist/studio/presentation/observation-inbox/metric-renderer.d.ts +0 -164
  1723. package/dist/studio/presentation/observation-inbox/metric-renderer.js +0 -325
  1724. package/dist/studio/presentation/observation-inbox/page-renderer.d.ts +0 -12
  1725. package/dist/studio/presentation/observation-inbox/page-renderer.js +0 -275
  1726. package/dist/studio/presentation/observation-inbox/process-workspace-renderer.d.ts +0 -63
  1727. package/dist/studio/presentation/observation-inbox/process-workspace-renderer.js +0 -323
  1728. package/dist/studio/presentation/observation-inbox/review-renderer.d.ts +0 -28
  1729. package/dist/studio/presentation/observation-inbox/review-renderer.js +0 -292
  1730. package/dist/studio/presentation/observation-inbox/reviewer-report.d.ts +0 -8
  1731. package/dist/studio/presentation/observation-inbox/reviewer-report.js +0 -451
  1732. package/dist/studio/presentation/observation-inbox/signal-renderer.d.ts +0 -20
  1733. package/dist/studio/presentation/observation-inbox/signal-renderer.js +0 -93
  1734. package/dist/studio/presentation/observation-inbox/skill-chain-renderer.d.ts +0 -17
  1735. package/dist/studio/presentation/observation-inbox/skill-chain-renderer.js +0 -740
  1736. package/dist/studio/presentation/observation-inbox/styles/experience.d.ts +0 -1
  1737. package/dist/studio/presentation/observation-inbox/styles/experience.js +0 -943
  1738. package/dist/studio/presentation/observation-inbox/styles/metrics.d.ts +0 -1
  1739. package/dist/studio/presentation/observation-inbox/styles/metrics.js +0 -679
  1740. package/dist/studio/presentation/observation-inbox/styles/review.d.ts +0 -1
  1741. package/dist/studio/presentation/observation-inbox/styles/review.js +0 -1422
  1742. package/dist/studio/presentation/observation-inbox/styles/shell.d.ts +0 -1
  1743. package/dist/studio/presentation/observation-inbox/styles/shell.js +0 -844
  1744. package/dist/studio/presentation/observation-inbox/styles/trajectory.d.ts +0 -1
  1745. package/dist/studio/presentation/observation-inbox/styles/trajectory.js +0 -1299
  1746. package/dist/studio/presentation/observation-inbox/styles.d.ts +0 -2
  1747. package/dist/studio/presentation/observation-inbox/styles.js +0 -11
  1748. package/dist/studio/presentation/observation-inbox/timeline.d.ts +0 -18
  1749. package/dist/studio/presentation/observation-inbox/timeline.js +0 -773
  1750. package/dist/studio/presentation/observation-inbox-renderer.d.ts +0 -4
  1751. package/dist/studio/presentation/observation-inbox-renderer.js +0 -130
  1752. package/dist/studio/presentation/report-shell.d.ts +0 -45
  1753. package/dist/studio/presentation/report-shell.js +0 -230
  1754. package/dist/studio/presentation/skill-detail-renderer.d.ts +0 -3
  1755. package/dist/studio/presentation/skill-detail-renderer.js +0 -33
  1756. package/dist/studio/presentation/skill-health-renderer.d.ts +0 -19
  1757. package/dist/studio/presentation/skill-health-renderer.js +0 -315
  1758. package/dist/studio/presentation/skill-list-renderer.d.ts +0 -3
  1759. package/dist/studio/presentation/skill-list-renderer.js +0 -36
  1760. package/dist/studio/presentation/trajectory-live.d.ts +0 -43
  1761. package/dist/studio/presentation/trajectory-live.js +0 -273
  1762. package/dist/studio/presentation/trajectory-routing.d.ts +0 -1
  1763. package/dist/studio/presentation/trajectory-routing.js +0 -19
  1764. package/dist/studio/view-models/core-runs.d.ts +0 -225
  1765. package/dist/studio/view-models/health-assessment.d.ts +0 -8
  1766. package/dist/studio/view-models/index.d.ts +0 -2
  1767. package/dist/studio/view-models/insight.d.ts +0 -68
  1768. package/dist/studio/view-models/replay.d.ts +0 -85
  1769. package/dist/studio/view-models/report-context.d.ts +0 -33
  1770. package/dist/studio/view-models/skill-index.d.ts +0 -112
  1771. package/dist/studio/web/.next/server/chunks/106.js +0 -168
  1772. package/dist/studio/web/.next/server/chunks/150.js +0 -1
  1773. package/dist/studio/web/.next/server/chunks/304.js +0 -1
  1774. package/dist/studio/web/.next/server/chunks/380.js +0 -1
  1775. package/dist/studio/web/.next/server/chunks/564.js +0 -24
  1776. package/dist/studio/web/.next/server/chunks/747.js +0 -6
  1777. package/dist/studio/web/.next/server/chunks/892.js +0 -1
  1778. package/dist/studio/web/.next/server/chunks/944.js +0 -478
  1779. package/dist/studio/web/.next/static/chunks/0937d497-4bac4f7c73c04ac9.js +0 -1
  1780. package/dist/studio/web/.next/static/chunks/111-d4b1e0d6247794ae.js +0 -57
  1781. package/dist/studio/web/.next/static/chunks/230-7633e724f4432c34.js +0 -9
  1782. package/dist/studio/web/.next/static/chunks/250-ca16280838cdcfb2.js +0 -1
  1783. package/dist/studio/web/.next/static/chunks/318-168841393bdaa8dd.js +0 -1
  1784. package/dist/studio/web/.next/static/chunks/321-518bc727ce5b7333.js +0 -1
  1785. package/dist/studio/web/.next/static/chunks/613-caa316c474dc3d66.js +0 -1
  1786. package/dist/studio/web/.next/static/chunks/658-b29b1018111cdce8.js +0 -66
  1787. package/dist/studio/web/.next/static/chunks/75-765230248b2aa7c3.js +0 -10
  1788. package/dist/studio/web/.next/static/chunks/79-8fde571ae151dc77.js +0 -168
  1789. package/dist/studio/web/.next/static/chunks/794-7f0ee86c0dc20482.js +0 -1
  1790. package/dist/studio/web/.next/static/chunks/805-72d1d862ddb0aaf7.js +0 -13
  1791. package/dist/studio/web/.next/static/chunks/810-bc57185c5bbe49f0.js +0 -8
  1792. package/dist/studio/web/.next/static/chunks/858-0ff0c6a27bd5ed08.js +0 -52
  1793. package/dist/studio/web/.next/static/chunks/868-2f9d5e42b712e805.js +0 -6
  1794. package/dist/studio/web/.next/static/chunks/913-3b71b0d79bab222a.js +0 -4
  1795. package/dist/studio/web/.next/static/chunks/app/_global-error/page-29993d7ce06ded15.js +0 -1
  1796. package/dist/studio/web/.next/static/chunks/app/_not-found/page-29993d7ce06ded15.js +0 -1
  1797. package/dist/studio/web/.next/static/chunks/app/error-54c470c75b81c772.js +0 -1
  1798. package/dist/studio/web/.next/static/chunks/app/knowledge/page-4a23fe29d9a452d6.js +0 -1
  1799. package/dist/studio/web/.next/static/chunks/app/knowledge/skills/[skillName]/page-4a23fe29d9a452d6.js +0 -1
  1800. package/dist/studio/web/.next/static/chunks/app/layout-c8c1ba3381b66bea.js +0 -1
  1801. package/dist/studio/web/.next/static/chunks/app/loading-d10eee48a75f2b12.js +0 -1
  1802. package/dist/studio/web/.next/static/chunks/app/measure/[runId]/page-efd2fe3cf9a1fcc4.js +0 -1
  1803. package/dist/studio/web/.next/static/chunks/app/measure/page-7c1a2923758fc2bb.js +0 -1
  1804. package/dist/studio/web/.next/static/chunks/app/not-found-18281623b9a3c198.js +0 -1
  1805. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/page-83d2777a89f631e7.js +0 -1
  1806. package/dist/studio/web/.next/static/chunks/app/observe/conversations/[threadId]/tasks/[turnId]/page-d5900e1c74c0dce6.js +0 -1
  1807. package/dist/studio/web/.next/static/chunks/app/observe/inbox/page-c159d5573caddac1.js +0 -1
  1808. package/dist/studio/web/.next/static/chunks/app/observe/page-f5be9a9b66d7697e.js +0 -1
  1809. package/dist/studio/web/.next/static/chunks/framework-a728c95a64c9352d.js +0 -1
  1810. package/dist/studio/web/.next/static/chunks/main-12dcc6d4dacdbcea.js +0 -5
  1811. package/dist/studio/web/.next/static/chunks/main-app-2cb213cabc9d7ea8.js +0 -1
  1812. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/app-error-29993d7ce06ded15.js +0 -1
  1813. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/forbidden-29993d7ce06ded15.js +0 -1
  1814. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/global-error-916165c397dfccfe.js +0 -1
  1815. package/dist/studio/web/.next/static/chunks/next/dist/client/components/builtin/unauthorized-29993d7ce06ded15.js +0 -1
  1816. package/dist/studio/web/.next/static/chunks/webpack-2895e3ce1a584f68.js +0 -1
  1817. package/dist/studio/web/.next/static/cnCcATSim0kBaeNDgIhxj/_buildManifest.js +0 -1
  1818. package/dist/studio/web/.next/static/css/763e4c18d841d615.css +0 -1
  1819. /package/dist/{diagnosis/contracts.js → eval-core/evaluation/runtime-state.js} +0 -0
  1820. /package/dist/{evidence/graph/contracts.js → eval-core/execution/runtime-state.js} +0 -0
  1821. /package/dist/eval-runtime/{clock.js → execution/clock.js} +0 -0
  1822. /package/dist/eval-runtime/{tool-policy.d.ts → resources/tool-policy.d.ts} +0 -0
  1823. /package/dist/{evidence/storage → eval-workflows/artifact-store}/run-id.d.ts +0 -0
  1824. /package/dist/{knowledge-artifacts/contracts.js → eval-workflows/inputs/contracts/sample-input.js} +0 -0
  1825. /package/dist/{knowledge-artifacts/doctor/contracts.js → eval-workflows/projections/carrier-measurement.js} +0 -0
  1826. /package/dist/{knowledge-artifacts/governance/contracts.js → executors/contracts/archive.js} +0 -0
  1827. /package/dist/executors/{core → contracts}/token-usage.d.ts +0 -0
  1828. /package/dist/executors/{core → contracts}/token-usage.js +0 -0
  1829. /package/dist/executors/{core → contracts}/tool-identity.js +0 -0
  1830. /package/dist/{knowledge-artifacts/skills/contracts.js → knowledge/artifacts/authoring/carrier-contracts.js} +0 -0
  1831. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.d.ts +0 -0
  1832. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/improvement.js +0 -0
  1833. /package/dist/{knowledge-artifacts → knowledge/artifacts}/authoring/scaffold.d.ts +0 -0
  1834. /package/dist/{knowledge-artifacts → knowledge/artifacts}/contracts.d.ts +0 -0
  1835. /package/dist/{observability/analysis → knowledge/artifacts}/contracts.js +0 -0
  1836. /package/dist/{observability/contracts/experience.js → knowledge/artifacts/doctor/contracts.js} +0 -0
  1837. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/endpoint-rule.d.ts +0 -0
  1838. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/fixer.d.ts +0 -0
  1839. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.d.ts +0 -0
  1840. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/builtin-dimensions.js +0 -0
  1841. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.d.ts +0 -0
  1842. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/consensus.js +0 -0
  1843. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.d.ts +0 -0
  1844. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-registry.js +0 -0
  1845. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.d.ts +0 -0
  1846. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/dimension-spec.js +0 -0
  1847. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.d.ts +0 -0
  1848. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/load-custom-dimensions.js +0 -0
  1849. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.d.ts +0 -0
  1850. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/merge-prompt.js +0 -0
  1851. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.d.ts +0 -0
  1852. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/parser.js +0 -0
  1853. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.d.ts +0 -0
  1854. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/prompt-builder.js +0 -0
  1855. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.d.ts +0 -0
  1856. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/health/register.js +0 -0
  1857. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/index.d.ts +0 -0
  1858. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/persistence.d.ts +0 -0
  1859. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/renderer.js +0 -0
  1860. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-parser.d.ts +0 -0
  1861. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.d.ts +0 -0
  1862. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/report-schema.js +0 -0
  1863. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.d.ts +0 -0
  1864. /package/dist/{knowledge-artifacts → knowledge/artifacts}/doctor/rule-kind.js +0 -0
  1865. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/contracts.d.ts +0 -0
  1866. /package/dist/{observability/contracts/inbox.js → knowledge/artifacts/skills/contracts.js} +0 -0
  1867. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.d.ts +0 -0
  1868. /package/dist/{knowledge-artifacts → knowledge/artifacts}/skills/hard-rules.js +0 -0
  1869. /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/content-hash.d.ts +0 -0
  1870. /package/dist/{knowledge-artifacts → knowledge/artifacts}/sources/deploy-artifact.d.ts +0 -0
  1871. /package/dist/{observability/contracts/problem-patterns.js → knowledge/sources/source-store.js} +0 -0
  1872. /package/dist/{observability → observe}/analysis/contracts.d.ts +0 -0
  1873. /package/dist/{observability/contracts/review.js → observe/analysis/contracts.js} +0 -0
  1874. /package/dist/{observability → observe}/analysis/coverage-analyzer.d.ts +0 -0
  1875. /package/dist/{observability → observe}/analysis/hedging-classifier.d.ts +0 -0
  1876. /package/dist/{observability/contracts/skill-chain-advisories.js → observe/contracts/experience.js} +0 -0
  1877. /package/dist/{observability/contracts/skill-chain.js → observe/contracts/inbox.js} +0 -0
  1878. /package/dist/{observability → observe}/contracts/problem-patterns.d.ts +0 -0
  1879. /package/dist/{observability/contracts/trace.js → observe/contracts/problem-patterns.js} +0 -0
  1880. /package/dist/{observability → observe}/contracts/review.d.ts +0 -0
  1881. /package/dist/{observability/conversation/index-process.d.ts → observe/contracts/review.js} +0 -0
  1882. /package/dist/{observability → observe}/contracts/skill-chain-advisories.d.ts +0 -0
  1883. /package/dist/{observability/soft-standards/types.js → observe/contracts/skill-chain-advisories.js} +0 -0
  1884. /package/dist/{observability/view-models/conversation.js → observe/contracts/skill-chain.js} +0 -0
  1885. /package/dist/{observability → observe}/contracts/trace-metadata-schema.d.ts +0 -0
  1886. /package/dist/{observability → observe}/contracts/trace-metadata-schema.js +0 -0
  1887. /package/dist/{observability → observe}/contracts/trace.d.ts +0 -0
  1888. /package/dist/{observability/view-models/index.js → observe/contracts/trace.js} +0 -0
  1889. /package/dist/{observability/view-models/knowledge-debugger.js → observe/conversation/index-process.d.ts} +0 -0
  1890. /package/dist/{observability → observe}/conversation/index-process.js +0 -0
  1891. /package/dist/{observability → observe}/conversation/knowledge-debugger.d.ts +0 -0
  1892. /package/dist/{observability → observe}/conversation/knowledge-debugger.js +0 -0
  1893. /package/dist/{observability → observe}/conversation/polling-subscription-hub.d.ts +0 -0
  1894. /package/dist/{observability → observe}/conversation/task-semantic-projection.d.ts +0 -0
  1895. /package/dist/{observability → observe}/conversation/task-semantic-projection.js +0 -0
  1896. /package/dist/{observability → observe}/conversation/task-window.d.ts +0 -0
  1897. /package/dist/{observability → observe}/conversation/task-window.js +0 -0
  1898. /package/dist/{observability → observe}/conversation/turn-index.d.ts +0 -0
  1899. /package/dist/{observability → observe}/conversation/turn-index.js +0 -0
  1900. /package/dist/{diagnosis → observe/diagnosis}/contracts/parser.d.ts +0 -0
  1901. /package/dist/{diagnosis → observe/diagnosis}/contracts.d.ts +0 -0
  1902. /package/dist/{studio/view-models/conversation-activity.js → observe/diagnosis/contracts.js} +0 -0
  1903. /package/dist/{diagnosis → observe/diagnosis}/lifecycle.d.ts +0 -0
  1904. /package/dist/{diagnosis → observe/diagnosis}/observe-mapper.d.ts +0 -0
  1905. /package/dist/{diagnosis → observe/diagnosis}/studio-projection.d.ts +0 -0
  1906. /package/dist/{observability → observe}/experience/report-codec.d.ts +0 -0
  1907. /package/dist/{observability → observe}/experience/report-codec.js +0 -0
  1908. /package/dist/{observability → observe}/experience/report-derivations.d.ts +0 -0
  1909. /package/dist/{observability → observe}/experience/report-reference-validator.d.ts +0 -0
  1910. /package/dist/{observability → observe}/experience/report-reference-validator.js +0 -0
  1911. /package/dist/{observability → observe}/experience/report-structure.js +0 -0
  1912. /package/dist/{observability → observe}/experience/report-value-guards.d.ts +0 -0
  1913. /package/dist/{observability → observe}/experience/report-value-guards.js +0 -0
  1914. /package/dist/{observability → observe}/experience/review-checklist.d.ts +0 -0
  1915. /package/dist/{observability → observe}/experience/review-checklist.js +0 -0
  1916. /package/dist/{observability → observe}/experience/reviewer-report.d.ts +0 -0
  1917. /package/dist/{observability → observe}/experience/reviewer-report.js +0 -0
  1918. /package/dist/{observability → observe}/inbox/capture-coverage.d.ts +0 -0
  1919. /package/dist/{observability → observe}/inbox/capture-coverage.js +0 -0
  1920. /package/dist/{observability → observe}/inbox/effective-review.d.ts +0 -0
  1921. /package/dist/{observability → observe}/inbox/effective-review.js +0 -0
  1922. /package/dist/{observability → observe}/inbox/explicit-capture.d.ts +0 -0
  1923. /package/dist/{observability → observe}/inbox/identity.d.ts +0 -0
  1924. /package/dist/{observability → observe}/inbox/identity.js +0 -0
  1925. /package/dist/{observability → observe}/inbox/problem-patterns.d.ts +0 -0
  1926. /package/dist/{observability → observe}/inbox/report-filter.d.ts +0 -0
  1927. /package/dist/{observability → observe}/inbox/report-filter.js +0 -0
  1928. /package/dist/{observability → observe}/inbox/resolved-review.d.ts +0 -0
  1929. /package/dist/{observability → observe}/inbox/resolved-review.js +0 -0
  1930. /package/dist/{observability → observe}/inbox/session-time-range.d.ts +0 -0
  1931. /package/dist/{observability → observe}/inbox/session-time-range.js +0 -0
  1932. /package/dist/{observability → observe}/inbox/severity-reason.d.ts +0 -0
  1933. /package/dist/{observability → observe}/inbox/signal-semantics.js +0 -0
  1934. /package/dist/{observability → observe}/prompts/document.d.ts +0 -0
  1935. /package/dist/{observability → observe}/prompts/document.js +0 -0
  1936. /package/dist/{observability → observe}/prompts/llm-enhanced-review.prompt.md +0 -0
  1937. /package/dist/{observability → observe}/skill-health/advisories.d.ts +0 -0
  1938. /package/dist/{observability → observe}/skill-health/advisories.js +0 -0
  1939. /package/dist/{observability → observe}/skill-health/experience-frontmatter.d.ts +0 -0
  1940. /package/dist/{observability → observe}/skill-health/report.d.ts +0 -0
  1941. /package/dist/{observability → observe}/skill-health/report.js +0 -0
  1942. /package/dist/{observability → observe}/skill-health/skill-chain.d.ts +0 -0
  1943. /package/dist/{observability → observe}/soft-standards/index.d.ts +0 -0
  1944. /package/dist/{observability → observe}/soft-standards/index.js +0 -0
  1945. /package/dist/{observability → observe}/soft-standards/llm-extractor.d.ts +0 -0
  1946. /package/dist/{observability → observe}/soft-standards/runtime-evaluator.d.ts +0 -0
  1947. /package/dist/{observability → observe}/soft-standards/runtime-evidence.d.ts +0 -0
  1948. /package/dist/{observability → observe}/soft-standards/runtime-evidence.js +0 -0
  1949. /package/dist/{studio/view-models/core-runs.js → observe/soft-standards/types.js} +0 -0
  1950. /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.d.ts +0 -0
  1951. /package/dist/{observability → observe}/trace/adapters/codex/conversation-index.js +0 -0
  1952. /package/dist/{observability → observe}/trace/adapters/codex/exec-command.d.ts +0 -0
  1953. /package/dist/{observability → observe}/trace/adapters/codex/exec-command.js +0 -0
  1954. /package/dist/{observability → observe}/trace/adapters/codex/protocol.d.ts +0 -0
  1955. /package/dist/{observability → observe}/trace/adapters/codex/protocol.js +0 -0
  1956. /package/dist/{observability → observe}/trace/adapters/codex/tool-status.d.ts +0 -0
  1957. /package/dist/{observability → observe}/trace/attribution.d.ts +0 -0
  1958. /package/dist/{observability → observe}/trace/attribution.js +0 -0
  1959. /package/dist/{observability → observe}/trace/index.d.ts +0 -0
  1960. /package/dist/{observability → observe}/trace/index.js +0 -0
  1961. /package/dist/{observability → observe}/trace/ingestion.d.ts +0 -0
  1962. /package/dist/{observability → observe}/trace/ingestion.js +0 -0
  1963. /package/dist/{observability → observe}/trace/message-classification.d.ts +0 -0
  1964. /package/dist/{observability → observe}/trace/message-classification.js +0 -0
  1965. /package/dist/{observability → observe}/trace/projection.d.ts +0 -0
  1966. /package/dist/{observability → observe}/trace/projection.js +0 -0
  1967. /package/dist/{observability → observe}/trace/segmentation.d.ts +0 -0
  1968. /package/dist/{observability → observe}/trace/session-index.d.ts +0 -0
  1969. /package/dist/{observability → observe}/trace/session-index.js +0 -0
  1970. /package/dist/{observability → observe}/trace/tool-search.d.ts +0 -0
  1971. /package/dist/{studio/view-models/health-assessment.js → observe/view-models/conversation.js} +0 -0
  1972. /package/dist/{studio → observe}/view-models/index.js +0 -0
  1973. /package/dist/{observability → observe}/view-models/knowledge-debugger.d.ts +0 -0
  1974. /package/dist/{studio/view-models/inline-markdown.js → observe/view-models/knowledge-debugger.js} +0 -0
  1975. /package/dist/{evidence/graph → storage/artifact-graph}/contracts.d.ts +0 -0
  1976. /package/dist/{studio/view-models/insight.js → storage/artifact-graph/contracts.js} +0 -0
  1977. /package/dist/{evidence/graph → storage/artifact-graph}/schema.d.ts +0 -0
  1978. /package/dist/{evidence/graph → storage/artifact-graph}/schema.js +0 -0
  1979. /package/dist/{evidence/storage → storage}/directory-selection.d.ts +0 -0
  1980. /package/dist/{evidence/storage → storage}/directory-selection.js +0 -0
  1981. /package/dist/{evidence/storage → storage}/report-bundle.d.ts +0 -0
  1982. /package/dist/studio/application/{replay → conversations/replay}/summary.js +0 -0
  1983. /package/dist/studio/application/{core-run-catalog.js → measure/core-run-catalog.js} +0 -0
  1984. /package/dist/studio/view-models/{conversation-activity.d.ts → conversations/conversation-activity.d.ts} +0 -0
  1985. /package/dist/studio/view-models/{knowledge-reports.js → conversations/conversation-activity.js} +0 -0
  1986. /package/dist/studio/view-models/{replay.js → conversations/conversation-reader.js} +0 -0
  1987. /package/dist/studio/view-models/{inline-markdown.d.ts → conversations/inline-markdown.d.ts} +0 -0
  1988. /package/dist/studio/view-models/{report-context.js → conversations/inline-markdown.js} +0 -0
  1989. /package/dist/studio/view-models/{skill-index.js → conversations/replay.js} +0 -0
  1990. /package/dist/studio/view-models/{trajectory-evidence.d.ts → conversations/trajectory-evidence.d.ts} +0 -0
  1991. /package/dist/studio/view-models/{trajectory-evidence.js → conversations/trajectory-evidence.js} +0 -0
  1992. /package/dist/studio/view-models/{trajectory-routing.d.ts → conversations/trajectory-routing.d.ts} +0 -0
  1993. /package/dist/studio/view-models/{trajectory-routing.js → conversations/trajectory-routing.js} +0 -0
  1994. /package/dist/studio/view-models/{knowledge-reports.d.ts → knowledge/knowledge-reports.d.ts} +0 -0
  1995. /package/dist/studio/web/.next/static/{cnCcATSim0kBaeNDgIhxj → scyR1oH1_xcujwAsrOo96}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- import type { ExperimentRole, RemoteGitRef } from '../../../knowledge-artifacts/contracts.js';
1
+ import type { ExperimentRole, RemoteGitRef } from '../../../knowledge/artifacts/contracts.js';
2
2
  export interface VariantSpec {
3
3
  name: string;
4
4
  role: ExperimentRole;
@@ -1,8 +1,5 @@
1
1
  export type { Assertion, } from './contracts/assertion.js';
2
2
  export type { Mock, MockMatch, MockReturn, } from '../../executors/contracts/mock.js';
3
- export type { EvalSampleSetDocument, Sample, SampleCoverageTarget, SampleCoverageTargetKind, SampleDifficulty, SampleEnvironment, SampleProvenance, SampleRubric, SampleRubricCriterion, } from './contracts/sample.js';
4
- export { EVAL_SAMPLE_SET_SCHEMA_VERSION, createEvalSampleSetDocument, } from './schemas/sample-set.js';
5
- export declare const EVAL_SAMPLE_JSON_SCHEMA_FILES: readonly ["eval-sample-set.schema.json"];
6
- export type EvalSampleJsonSchemaFile = typeof EVAL_SAMPLE_JSON_SCHEMA_FILES[number];
7
- /** Resolves a shipped sample JSON Schema without relying on an unexported dist path. */
8
- export declare function resolveEvalSampleJsonSchema(fileName: EvalSampleJsonSchemaFile): URL;
3
+ export type { EvalSampleSetDocument, AuthoredSample as Sample, SampleCheck, SampleCoverageTarget, SampleCoverageTargetKind, SampleDifficulty, SampleEnvironment, SampleProvenance, SampleRubric, SampleRubricCriterion, } from './contracts/sample.js';
4
+ export { EVAL_SAMPLE_SET_SCHEMA_VERSION, createEvalSampleSetDocument, EvalSampleSetDocumentSchema, AuthoredSampleSchema, } from './schemas/sample-set.js';
5
+ export { SampleInputSchema, SampleMessageSchema, type SampleInput, type SampleMessage } from './schemas/sample-input.js';
@@ -1,12 +1,2 @@
1
- export { EVAL_SAMPLE_SET_SCHEMA_VERSION, createEvalSampleSetDocument, } from './schemas/sample-set.js';
2
- export const EVAL_SAMPLE_JSON_SCHEMA_FILES = [
3
- 'eval-sample-set.schema.json',
4
- ];
5
- const schemaFiles = new Set(EVAL_SAMPLE_JSON_SCHEMA_FILES);
6
- /** Resolves a shipped sample JSON Schema without relying on an unexported dist path. */
7
- export function resolveEvalSampleJsonSchema(fileName) {
8
- if (!schemaFiles.has(fileName)) {
9
- throw new TypeError(`Unknown Eval Sample JSON Schema: ${String(fileName)}`);
10
- }
11
- return new URL(`./contracts/schemas/v2/${fileName}`, import.meta.url);
12
- }
1
+ export { EVAL_SAMPLE_SET_SCHEMA_VERSION, createEvalSampleSetDocument, EvalSampleSetDocumentSchema, AuthoredSampleSchema, } from './schemas/sample-set.js';
2
+ export { SampleInputSchema, SampleMessageSchema } from './schemas/sample-input.js';
@@ -20,7 +20,7 @@ export interface LoadSamplesResult {
20
20
  * Load samples from a single file OR a directory of sample files.
21
21
  *
22
22
  * File mode (.json / .yaml / .yml):
23
- * - Versioned object: `{ schemaVersion: 'omk.eval-sample-set/v2', requires?, samples }`
23
+ * - Versioned object: `{ schemaVersion: 'omk.eval-sample-set/v3', requires?, samples }`
24
24
  *
25
25
  * Directory mode (e.g. `<skill>/.omk/`):
26
26
  * - Glob `*.{json,yaml,yml}` minus reserved prefixes (report*, health*, _*)
@@ -1,7 +1,9 @@
1
+ import { normalizeAuthoredSample } from './sample-mapping.js';
2
+ import { isJsonValue } from '../../shared/json-value.js';
1
3
  import { readFileSync, readdirSync, statSync } from 'node:fs';
2
4
  import { dirname, join, resolve } from 'node:path';
3
5
  import yaml from 'js-yaml';
4
- import { detailedSchemaIssue } from './schemas/error.js';
6
+ import { detailedSchemaIssue, rejectLegacySampleVersion } from './schemas/error.js';
5
7
  import { EvalSampleSetDocumentSchema, SampleSchema } from './schemas/sample-set.js';
6
8
  import { sampleContractValidationError } from './sample-contract.js';
7
9
  export function parseYaml(text) {
@@ -18,7 +20,7 @@ export function parseYaml(text) {
18
20
  * Load samples from a single file OR a directory of sample files.
19
21
  *
20
22
  * File mode (.json / .yaml / .yml):
21
- * - Versioned object: `{ schemaVersion: 'omk.eval-sample-set/v2', requires?, samples }`
23
+ * - Versioned object: `{ schemaVersion: 'omk.eval-sample-set/v3', requires?, samples }`
22
24
  *
23
25
  * Directory mode (e.g. `<skill>/.omk/`):
24
26
  * - Glob `*.{json,yaml,yml}` minus reserved prefixes (report*, health*, _*)
@@ -66,7 +68,7 @@ function loadSamplesFromDir(dir) {
66
68
  for (const s of single.samples) {
67
69
  const prev = seenIds.get(s.sample_id);
68
70
  if (prev) {
69
- throw new Error(`duplicate sample_id "${s.sample_id}" in ${dir}: ` +
71
+ throw new Error(`duplicate sampleId "${s.sample_id}" in ${dir}: ` +
70
72
  `defined in both "${prev}" and "${f}"`);
71
73
  }
72
74
  seenIds.set(s.sample_id, f);
@@ -133,13 +135,10 @@ export function validateSamples(samples) {
133
135
  }
134
136
  const firstIndex = firstIndexBySampleId.get(sample.sample_id);
135
137
  if (firstIndex !== undefined) {
136
- throw new Error(`duplicate sample_id "${sample.sample_id}" at samples[${i}] `
138
+ throw new Error(`duplicate sampleId "${sample.sample_id}" at samples[${i}] `
137
139
  + `(first defined at samples[${firstIndex}])`);
138
140
  }
139
141
  firstIndexBySampleId.set(sample.sample_id, i);
140
- if (!sample.prompt || typeof sample.prompt !== 'string') {
141
- throw new Error(`samples[${i}] (${sample.sample_id}) missing or invalid required field: prompt (must be a non-empty string)`);
142
- }
143
142
  // validate optional metadata enums; help users typo-check (`'easy?'` etc).
144
143
  if (sample.difficulty !== undefined && !VALID_DIFFICULTY.has(sample.difficulty)) {
145
144
  throw new Error(`samples[${i}] (${sample.sample_id}) invalid difficulty: ${JSON.stringify(sample.difficulty)}, expected one of [easy, medium, hard]`);
@@ -259,13 +258,16 @@ function loadSampleFile(samplesPath) {
259
258
  const rawContent = readFileSync(samplesPath, 'utf-8');
260
259
  const isYaml = samplesPath.endsWith('.yaml') || samplesPath.endsWith('.yml');
261
260
  const parsed = isYaml ? parseYaml(rawContent) : JSON.parse(rawContent);
261
+ rejectLegacySampleVersion(parsed);
262
+ if (!isJsonValue(parsed))
263
+ throw new Error(`invalid samples file: ${samplesPath}: expected acyclic JSON data with depth below 32`);
262
264
  const document = EvalSampleSetDocumentSchema.safeParse(parsed);
263
265
  if (!document.success) {
264
266
  const issue = detailedSchemaIssue(document.error);
265
267
  const field = issue?.path.length ? issue.path.join('.') : '$';
266
268
  throw new Error(`invalid samples file: ${samplesPath}: ${field}: ${issue?.message ?? 'invalid shape'}`);
267
269
  }
268
- const samples = document.data.samples;
270
+ const samples = document.data.samples.map(normalizeAuthoredSample);
269
271
  const requires = document.data.requires;
270
272
  validateSamples(samples);
271
273
  return { samples, requires };
@@ -1,2 +1,2 @@
1
- /** Shared authoring/runtime bound for the Eval Sample Set v2 rubric contract. */
1
+ /** Shared authoring/runtime bound for the Eval Sample Set rubric contract. */
2
2
  export declare const RUBRIC_WEIGHT_SUM_TOLERANCE = 1e-9;
@@ -1,2 +1,2 @@
1
- /** Shared authoring/runtime bound for the Eval Sample Set v2 rubric contract. */
1
+ /** Shared authoring/runtime bound for the Eval Sample Set rubric contract. */
2
2
  export const RUBRIC_WEIGHT_SUM_TOLERANCE = 1e-9;
@@ -1,3 +1,5 @@
1
+ import { resolveJsonPointer } from '../../eval-core/primitives/json-pointer.js';
2
+ import { SampleInputSchema } from './schemas/sample-input.js';
1
3
  import { isJsonValue } from '../../shared/json-value.js';
2
4
  import { ASYNC_ASSERTION_TYPES, SUPPORTED_ASSERTION_TYPES, } from './assertion-types.js';
3
5
  import { RUBRIC_WEIGHT_SUM_TOLERANCE } from './rubric-contract.js';
@@ -256,15 +258,21 @@ function mockHitReferenceValidationError(assertions, mockKeys) {
256
258
  }
257
259
  return undefined;
258
260
  }
261
+ /** Validate known reference data before spending execution work on an unresolvable check. */
262
+ function hasExpectedPointer(value, pointer) {
263
+ const result = resolveJsonPointer(value, pointer);
264
+ return result.resolved && result.value !== undefined;
265
+ }
259
266
  export function sampleContractValidationError(value, expectedId) {
260
267
  if (!isRecord(value))
261
268
  return 'sample must be an object';
262
269
  if (!isNonEmptyString(value.sample_id)
263
270
  || (expectedId !== undefined && value.sample_id !== expectedId))
264
271
  return '"sample_id" must be a non-empty matching string';
265
- if (!isNonEmptyString(value.prompt))
266
- return '"prompt" must be a non-empty string';
267
- for (const field of ['cwd', 'context']) {
272
+ const input = SampleInputSchema.safeParse(value.input);
273
+ if (!input.success)
274
+ return `"input": ${input.error.message}`;
275
+ for (const field of ['cwd', 'reference']) {
268
276
  if (value[field] !== undefined && typeof value[field] !== 'string') {
269
277
  return `"${field}" must be a string when present`;
270
278
  }
@@ -281,6 +289,14 @@ export function sampleContractValidationError(value, expectedId) {
281
289
  && entry.weight <= 1))
282
290
  || Math.abs(Object.values(value.rubric).reduce((sum, entry) => (sum + (isRecord(entry) && isFiniteNumber(entry.weight) ? entry.weight : 0)), 0) - 1) > RUBRIC_WEIGHT_SUM_TOLERANCE))
283
291
  return '"rubric" must map non-empty dimension names to criterion/weight objects whose weights sum to 1';
292
+ if (Array.isArray(value.checks)) {
293
+ for (const [index, check] of value.checks.entries()) {
294
+ if (!isRecord(check) || typeof check.expectedPointer !== 'string'
295
+ || !hasExpectedPointer(value.expected, check.expectedPointer)) {
296
+ return `"checks[${index}].expectedPointer" must resolve within expected`;
297
+ }
298
+ }
299
+ }
284
300
  if (value.assertions !== undefined) {
285
301
  if (!Array.isArray(value.assertions))
286
302
  return '"assertions" must be an array';
@@ -293,8 +309,8 @@ export function sampleContractValidationError(value, expectedId) {
293
309
  if (isRecord(assertion)
294
310
  && (assertion.type === 'faithfulness' || assertion.type === 'context_recall')
295
311
  && !isNonEmptyString(assertion.reference)
296
- && !isNonEmptyString(value.context)) {
297
- return `${JSON.stringify(assertion.type)} requires sample "context" or assertion "reference"`;
312
+ && !isNonEmptyString(value.reference)) {
313
+ return `${JSON.stringify(assertion.type)} requires sample "reference" or assertion "reference"`;
298
314
  }
299
315
  }
300
316
  }
@@ -1,6 +1,8 @@
1
+ import { normalizeAuthoredSample } from './sample-mapping.js';
2
+ import { isJsonValue } from '../../shared/json-value.js';
1
3
  import { readFileSync } from 'node:fs';
2
4
  import yaml from 'js-yaml';
3
- import { detailedSchemaIssue } from './schemas/error.js';
5
+ import { detailedSchemaIssue, rejectLegacySampleVersion } from './schemas/error.js';
4
6
  import { EvalSampleSetDocumentSchema } from './schemas/sample-set.js';
5
7
  import { parseYaml } from './load-samples.js';
6
8
  function isYamlPath(filePath) {
@@ -10,9 +12,12 @@ export function parseSampleDocument(filePath, raw = readFileSync(filePath, 'utf-
10
12
  return isYamlPath(filePath) ? parseYaml(raw) : JSON.parse(raw);
11
13
  }
12
14
  export function getSamplesArray(document, filePath) {
15
+ rejectLegacySampleVersion(document);
16
+ if (!isJsonValue(document))
17
+ throw new Error(`invalid samples file shape: ${filePath}: expected acyclic JSON data with depth below 32`);
13
18
  const parsed = EvalSampleSetDocumentSchema.safeParse(document);
14
19
  if (parsed.success)
15
- return parsed.data.samples;
20
+ return parsed.data.samples.map(normalizeAuthoredSample);
16
21
  const issue = detailedSchemaIssue(parsed.error);
17
22
  const field = issue?.path.length ? issue.path.join('.') : '$';
18
23
  throw new Error(`invalid samples file shape: ${filePath}: ${field}: ${issue?.message ?? 'invalid shape'}`);
@@ -0,0 +1,4 @@
1
+ import type { AuthoredSample, Sample } from './contracts/sample.js';
2
+ /** Pure boundary mapping between the public envelope and the resolved workflow DTO. */
3
+ export declare function normalizeAuthoredSample(sample: AuthoredSample): Sample;
4
+ export declare function authorSample(sample: Sample): AuthoredSample;
@@ -0,0 +1,26 @@
1
+ /** Pure boundary mapping between the public envelope and the resolved workflow DTO. */
2
+ export function normalizeAuthoredSample(sample) {
3
+ const { data, ...controls } = sample.executionContext ?? {};
4
+ return {
5
+ sample_id: sample.sampleId,
6
+ input: structuredClone(sample.input),
7
+ ...structuredClone(controls),
8
+ ...structuredClone(sample.evaluationContext ?? {}),
9
+ ...structuredClone(sample.annotations ?? {}),
10
+ ...(sample.expected === undefined ? {} : { expected: structuredClone(sample.expected) }),
11
+ ...(data === undefined ? {} : { executionData: structuredClone(data) }),
12
+ };
13
+ }
14
+ export function authorSample(sample) {
15
+ const { sample_id, input, expected, executionData, cwd, allowedTools, mocks, mocksStrict, environment, rubric, assertions, reference, checks, ...annotations } = structuredClone(sample);
16
+ const defined = (value) => Object.fromEntries(Object.entries(value).filter(([, item]) => item !== undefined));
17
+ const executionContext = defined({ data: executionData, cwd, allowedTools, mocks, mocksStrict, environment });
18
+ const evaluationContext = defined({ rubric, assertions, reference, checks });
19
+ return {
20
+ sampleId: sample_id, input,
21
+ ...(expected === undefined ? {} : { expected }),
22
+ ...(Object.keys(executionContext).length ? { executionContext } : {}),
23
+ ...(Object.keys(evaluationContext).length ? { evaluationContext } : {}),
24
+ ...(Object.keys(annotations).length ? { annotations } : {}),
25
+ };
26
+ }
@@ -6,3 +6,8 @@ export interface DetailedSchemaIssue {
6
6
  export declare function detailedSchemaIssue(error: {
7
7
  readonly issues: readonly unknown[];
8
8
  }): DetailedSchemaIssue;
9
+ /** Safe public diagnostic: contains no authored content or filesystem details. */
10
+ export declare class UnsupportedSampleSchemaError extends Error {
11
+ constructor();
12
+ }
13
+ export declare function rejectLegacySampleVersion(value: unknown): void;
@@ -34,3 +34,15 @@ export function detailedSchemaIssue(error) {
34
34
  })[0];
35
35
  return selected ?? { path: [], message: 'invalid shape' };
36
36
  }
37
+ /** Safe public diagnostic: contains no authored content or filesystem details. */
38
+ export class UnsupportedSampleSchemaError extends Error {
39
+ constructor() {
40
+ super('Unsupported sample schema omk.eval-sample-set/v2. Rewrite as omk.eval-sample-set/v3; the original file has not been changed.');
41
+ this.name = 'UnsupportedSampleSchemaError';
42
+ }
43
+ }
44
+ export function rejectLegacySampleVersion(value) {
45
+ if (typeof value === 'object' && value !== null && 'schemaVersion' in value
46
+ && value.schemaVersion === 'omk.eval-sample-set/v2')
47
+ throw new UnsupportedSampleSchemaError();
48
+ }
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { EvalSampleSetDocumentSchema } from './sample-set.js';
3
- const SCHEMA_URI = 'https://raw.githubusercontent.com/lizhiyao/oh-my-knowledge/main/schemas/eval-samples/v2/eval-sample-set.schema.json';
3
+ const SCHEMA_URI = 'https://raw.githubusercontent.com/lizhiyao/oh-my-knowledge/main/schemas/eval-samples/v3/eval-sample-set.schema.json';
4
4
  function assertNoEmptySchemaNode(value, path = '$') {
5
5
  if (Array.isArray(value)) {
6
6
  value.forEach((entry, index) => assertNoEmptySchemaNode(entry, `${path}[${index}]`));
@@ -42,7 +42,13 @@ export function generateEvalSampleSetJsonSchema() {
42
42
  reused: 'ref',
43
43
  });
44
44
  annotateRubricContract(generated);
45
- const schema = { ...generated, $id: SCHEMA_URI };
45
+ const schema = { ...generated, $id: SCHEMA_URI, 'x-omk-invariants': [
46
+ 'Files contain acyclic JSON data with nesting depth below 32.',
47
+ 'JSON input schema identity matches its embedded schemaDocument; value satisfies that self-contained JSON Schema 2020-12.',
48
+ 'Message and tool-call IDs are unique; tool results resolve outstanding calls and histories contain no incomplete calls.',
49
+ 'Structured-check expectedPointer resolves within expected; missing actual evidence is handled by Core.',
50
+ 'Cross-field assertion and mock references are validated before execution.',
51
+ ] };
46
52
  assertNoEmptySchemaNode(schema);
47
53
  return schema;
48
54
  }
@@ -0,0 +1,6 @@
1
+ import type { SampleInput, SampleMessage } from '../contracts/sample-input.js';
2
+ import { z } from 'zod';
3
+ export declare const SampleMessageSchema: z.ZodType<SampleMessage>;
4
+ /** Authoring input only. References and grading instructions belong outside this union. */
5
+ export declare const SampleInputSchema: z.ZodType<SampleInput>;
6
+ export type { SampleInput, SampleMessage };
@@ -0,0 +1,102 @@
1
+ import { z } from 'zod';
2
+ import _Ajv2020 from 'ajv/dist/2020.js';
3
+ import { JsonValueSchema, SchemaIdentitySchema, digestCanonicalJson } from '../../../eval-core/contracts/index.js';
4
+ const IdSchema = z.string().min(1).max(256).refine((value) => value.trim().length > 0, {
5
+ message: 'Identifier must not be blank.',
6
+ });
7
+ const ToolCallSchema = z.object({
8
+ toolCallId: IdSchema,
9
+ name: IdSchema,
10
+ arguments: z.record(z.string(), JsonValueSchema),
11
+ }).strict();
12
+ export const SampleMessageSchema = z.discriminatedUnion('role', [
13
+ z.object({ messageId: IdSchema, role: z.literal('system'), content: z.string() }).strict(),
14
+ z.object({ messageId: IdSchema, role: z.literal('user'), content: z.string() }).strict(),
15
+ z.object({
16
+ messageId: IdSchema,
17
+ role: z.literal('assistant'),
18
+ content: z.string(),
19
+ toolCalls: z.array(ToolCallSchema).min(1).optional(),
20
+ }).strict(),
21
+ z.object({
22
+ messageId: IdSchema,
23
+ role: z.literal('tool'),
24
+ toolCallId: IdSchema,
25
+ content: z.string(),
26
+ }).strict(),
27
+ ]);
28
+ const MessagesSchema = z.array(SampleMessageSchema).min(1).superRefine((messages, context) => {
29
+ const messageIds = new Set();
30
+ const callIds = new Set();
31
+ const outstanding = new Set();
32
+ let conversationStarted = false;
33
+ for (const [index, message] of messages.entries()) {
34
+ const issue = (field, message) => context.addIssue({
35
+ code: 'custom', path: [index, field], message,
36
+ });
37
+ if (messageIds.has(message.messageId))
38
+ issue('messageId', 'Duplicate messageId.');
39
+ messageIds.add(message.messageId);
40
+ if (message.role === 'system') {
41
+ if (conversationStarted)
42
+ issue('role', 'System messages must precede conversation messages.');
43
+ }
44
+ else
45
+ conversationStarted = true;
46
+ if (message.role === 'tool') {
47
+ if (!outstanding.delete(message.toolCallId)) {
48
+ issue('toolCallId', 'Tool result must reference an outstanding earlier call.');
49
+ }
50
+ continue;
51
+ }
52
+ if (outstanding.size > 0)
53
+ issue('role', 'Tool calls must receive results before the next message.');
54
+ if (message.role === 'assistant') {
55
+ for (const [callIndex, call] of (message.toolCalls ?? []).entries()) {
56
+ if (callIds.has(call.toolCallId))
57
+ context.addIssue({
58
+ code: 'custom', path: [index, 'toolCalls', callIndex, 'toolCallId'], message: 'Duplicate toolCallId.',
59
+ });
60
+ callIds.add(call.toolCallId);
61
+ outstanding.add(call.toolCallId);
62
+ }
63
+ }
64
+ }
65
+ if (outstanding.size > 0)
66
+ context.addIssue({
67
+ code: 'custom', message: 'History contains tool calls without results.',
68
+ });
69
+ });
70
+ const Ajv2020 = _Ajv2020;
71
+ const JsonInputSchema = z.object({
72
+ inputKind: z.literal('json'),
73
+ value: JsonValueSchema,
74
+ schema: SchemaIdentitySchema,
75
+ schemaDocument: z.record(z.string(), JsonValueSchema),
76
+ }).strict().superRefine((input, context) => {
77
+ try {
78
+ if (input.schema.schemaDigest !== digestCanonicalJson(input.schemaDocument)
79
+ || input.schemaDocument.$id !== input.schema.schemaUri) {
80
+ context.addIssue({ code: 'custom', path: ['schema'], message: 'Schema identity must match the embedded schema document.' });
81
+ return;
82
+ }
83
+ // No coercion, defaults, property removal, remote loading or shared mutable registry.
84
+ const validate = new Ajv2020({ strict: true, allErrors: false }).compile(input.schemaDocument);
85
+ if (!validate(input.value))
86
+ context.addIssue({ code: 'custom', path: ['value'],
87
+ message: `Input does not satisfy its schema: ${validate.errors?.[0]?.instancePath ?? ''} ${validate.errors?.[0]?.message ?? ''}` });
88
+ }
89
+ catch {
90
+ context.addIssue({ code: 'custom', path: ['schemaDocument'], message: 'Invalid or unsupported self-contained JSON Schema 2020-12.' });
91
+ }
92
+ });
93
+ /** Authoring input only. References and grading instructions belong outside this union. */
94
+ export const SampleInputSchema = z.discriminatedUnion('inputKind', [
95
+ z.object({ inputKind: z.literal('text'), text: z.string().min(1) }).strict(),
96
+ JsonInputSchema,
97
+ z.object({
98
+ inputKind: z.literal('messages'),
99
+ interactionMode: z.literal('history'),
100
+ messages: MessagesSchema,
101
+ }).strict(),
102
+ ]);
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
- import type { EvalSampleSetDocument, Sample, SampleCoverageTarget, SampleEnvironment, SampleRubricCriterion } from '../contracts/sample.js';
3
- export declare const EVAL_SAMPLE_SET_SCHEMA_VERSION: "omk.eval-sample-set/v2";
2
+ import type { EvalSampleSetDocument, AuthoredSample, Sample, SampleCoverageTarget, SampleEnvironment, SampleRubricCriterion } from '../contracts/sample.js';
3
+ export declare const EVAL_SAMPLE_SET_SCHEMA_VERSION: "omk.eval-sample-set/v3";
4
4
  export declare const SampleCoverageTargetSchema: z.ZodType<SampleCoverageTarget>;
5
5
  export declare const SampleEnvironmentSchema: z.ZodType<SampleEnvironment>;
6
6
  export declare const SampleRubricCriterionSchema: z.ZodType<SampleRubricCriterion>;
7
- /** Strict, versioned authoring case shape. Cross-field measurement rules run after parsing. */
7
+ /** Normalized workflow DTO; the public authoring envelope is AuthoredSampleSchema. */
8
8
  export declare const SampleSchema: z.ZodType<Sample>;
9
+ export declare const AuthoredSampleSchema: z.ZodType<AuthoredSample>;
9
10
  export declare const DependencyRequirementsSchema: z.ZodObject<{
10
11
  tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
12
  files: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -13,4 +14,6 @@ export declare const DependencyRequirementsSchema: z.ZodObject<{
13
14
  preflight: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
15
  }, z.core.$strict>;
15
16
  export declare const EvalSampleSetDocumentSchema: z.ZodType<EvalSampleSetDocument>;
16
- export declare function createEvalSampleSetDocument(samples: Sample[], requires?: EvalSampleSetDocument['requires']): EvalSampleSetDocument;
17
+ export declare function createWorkflowSampleSetDocument(samples: Sample[], requires?: EvalSampleSetDocument['requires']): EvalSampleSetDocument;
18
+ /** Public constructor uses the same canonical envelope as JSON/YAML authoring. */
19
+ export declare function createEvalSampleSetDocument(samples: AuthoredSample[], requires?: EvalSampleSetDocument['requires']): EvalSampleSetDocument;
@@ -1,8 +1,12 @@
1
+ import { normalizeAuthoredSample, authorSample } from '../sample-mapping.js';
2
+ import { sampleContractValidationError } from '../sample-contract.js';
1
3
  import { z } from 'zod';
4
+ import { JsonValueSchema, JsonPointerSchema } from '../../../eval-core/contracts/index.js';
5
+ import { SampleInputSchema } from './sample-input.js';
2
6
  import { RUBRIC_WEIGHT_SUM_TOLERANCE } from '../rubric-contract.js';
3
7
  import { AssertionSchema } from './assertion.js';
4
8
  import { MockSchema } from './mock.js';
5
- export const EVAL_SAMPLE_SET_SCHEMA_VERSION = 'omk.eval-sample-set/v2';
9
+ export const EVAL_SAMPLE_SET_SCHEMA_VERSION = 'omk.eval-sample-set/v3';
6
10
  export const SampleCoverageTargetSchema = z.object({
7
11
  targetKind: z.enum([
8
12
  'skill',
@@ -35,11 +39,22 @@ const SampleRubricSchema = z.record(z.string().min(1).refine((value) => value.tr
35
39
  <= RUBRIC_WEIGHT_SUM_TOLERANCE), {
36
40
  message: 'Rubric weights must sum to 1.',
37
41
  });
38
- /** Strict, versioned authoring case shape. Cross-field measurement rules run after parsing. */
42
+ const SampleChecksSchema = z.array(z.object({
43
+ checkKind: z.literal('exact-match'),
44
+ checkId: z.string().min(1).max(256),
45
+ actual: z.object({ sourceKind: z.enum(['output', 'trace']), pointer: JsonPointerSchema }).strict(),
46
+ expectedPointer: JsonPointerSchema,
47
+ layer: z.enum(['fact', 'behavior']),
48
+ weight: z.number().finite().positive().optional(),
49
+ }).strict()).min(1).refine((checks) => new Set(checks.map((check) => check.checkId)).size === checks.length, { message: 'checkId must be unique within each sample.' });
50
+ /** Normalized workflow DTO; the public authoring envelope is AuthoredSampleSchema. */
39
51
  export const SampleSchema = z.object({
40
- sample_id: z.string().min(1),
41
- prompt: z.string().min(1),
42
- context: z.string().optional(),
52
+ sample_id: z.string().min(1).max(256).refine((value) => value.trim().length > 0),
53
+ input: SampleInputSchema,
54
+ reference: z.string().optional(),
55
+ expected: JsonValueSchema.optional(),
56
+ checks: SampleChecksSchema.optional(),
57
+ executionData: JsonValueSchema.optional(),
43
58
  cwd: z.string().min(1).optional(),
44
59
  rubric: SampleRubricSchema.optional(),
45
60
  assertions: z.array(AssertionSchema).optional(),
@@ -54,6 +69,37 @@ export const SampleSchema = z.object({
54
69
  mocksStrict: z.boolean().optional(),
55
70
  environment: SampleEnvironmentSchema.optional(),
56
71
  }).strict();
72
+ export const AuthoredSampleSchema = z.object({
73
+ sampleId: z.string().min(1).max(256).refine((value) => value.trim().length > 0),
74
+ input: SampleInputSchema,
75
+ executionContext: z.object({
76
+ cwd: z.string().min(1).optional(),
77
+ allowedTools: z.array(z.string().min(1)).optional(),
78
+ mocks: z.array(MockSchema).min(1).optional(),
79
+ mocksStrict: z.boolean().optional(),
80
+ environment: SampleEnvironmentSchema.optional(),
81
+ data: JsonValueSchema.optional(),
82
+ }).strict().optional(),
83
+ expected: JsonValueSchema.optional(),
84
+ evaluationContext: z.object({
85
+ rubric: SampleRubricSchema.optional(),
86
+ assertions: z.array(AssertionSchema).optional(),
87
+ reference: z.string().optional(),
88
+ checks: SampleChecksSchema.optional(),
89
+ }).strict().optional(),
90
+ annotations: z.object({
91
+ capability: z.array(z.string().min(1)).optional(),
92
+ difficulty: z.enum(['easy', 'medium', 'hard']).optional(),
93
+ construct: z.string().min(1).optional(),
94
+ provenance: z.enum(['human', 'llm-generated', 'production-trace']).optional(),
95
+ covers: z.array(SampleCoverageTargetSchema).optional(),
96
+ tripwire: z.boolean().optional(),
97
+ }).strict().optional(),
98
+ }).strict().superRefine((sample, context) => {
99
+ const error = sampleContractValidationError(normalizeAuthoredSample(sample));
100
+ if (error !== undefined)
101
+ context.addIssue({ code: 'custom', message: error });
102
+ });
57
103
  export const DependencyRequirementsSchema = z.object({
58
104
  tools: z.array(z.string().min(1)).optional(),
59
105
  files: z.array(z.string().min(1)).optional(),
@@ -63,12 +109,26 @@ export const DependencyRequirementsSchema = z.object({
63
109
  export const EvalSampleSetDocumentSchema = z.object({
64
110
  schemaVersion: z.literal(EVAL_SAMPLE_SET_SCHEMA_VERSION),
65
111
  requires: DependencyRequirementsSchema.optional(),
66
- samples: z.array(SampleSchema).min(1),
67
- }).strict().meta({ title: 'OMK Eval Sample Set v2' });
112
+ samples: z.array(AuthoredSampleSchema).min(1),
113
+ }).strict().superRefine((document, context) => {
114
+ const firstIndexById = new Map();
115
+ for (const [index, sample] of document.samples.entries()) {
116
+ const first = firstIndexById.get(sample.sampleId);
117
+ if (first !== undefined)
118
+ context.addIssue({ code: 'custom', path: ['samples', index, 'sampleId'],
119
+ message: `duplicate sampleId "${sample.sampleId}" at samples[${index}] (first defined at samples[${first}])` });
120
+ else
121
+ firstIndexById.set(sample.sampleId, index);
122
+ }
123
+ }).meta({ title: 'OMK Eval Sample Set v3' });
124
+ export function createWorkflowSampleSetDocument(samples, requires) {
125
+ return createEvalSampleSetDocument(samples.map(authorSample), requires);
126
+ }
127
+ /** Public constructor uses the same canonical envelope as JSON/YAML authoring. */
68
128
  export function createEvalSampleSetDocument(samples, requires) {
69
129
  return {
70
130
  schemaVersion: EVAL_SAMPLE_SET_SCHEMA_VERSION,
71
- ...(requires === undefined ? {} : { requires }),
72
- samples,
131
+ ...(requires === undefined ? {} : { requires: structuredClone(requires) }),
132
+ samples: structuredClone(samples),
73
133
  };
74
134
  }
@@ -1,6 +1,6 @@
1
1
  /** Single judge configuration: provider selection plus optional deployment identity. */
2
2
  export interface JudgeConfig {
3
- /** Executor name (claude / codex / anthropic-api / openai-api / shell command). */
3
+ /** Executor name (codex / codex-sdk / openai-api / custom executable path). */
4
4
  executor: string;
5
5
  /** Model identifier or mutable alias passed to the executor. */
6
6
  model: string;
@@ -8,7 +8,7 @@ export { buildJudgePrompt, getJudgePromptHash, JUDGE_SYSTEM_PROMPT, } from '../.
8
8
  * frozen hashes in `test/measurement-governance/prompt-registry-freeze.test.ts`) whenever the template's bytes
9
9
  * change — that change is BREAKING-COMPARABILITY.
10
10
  *
11
- * Naming: a single main version (`v5`) + a `-feature` suffix per debias/context capability.
11
+ * Naming: a single main version (`v6`) + a `-feature` suffix per debias/context capability.
12
12
  * The only asymmetry between the two strings is the `-len` suffix, gated by the
13
13
  * `--no-debias-length` toggle; every other feature is always-on and appears in both.
14
14
  */
@@ -5,6 +5,10 @@ export { buildJudgePrompt, getJudgePromptHash, JUDGE_SYSTEM_PROMPT, } from '../.
5
5
  // RAG 与语义相似度等 OMK 产品工作流 prompt 仍由本模块拥有。
6
6
  // 这些是测量学不变量:文本字节决定可比性,改动须配合 prompt-registry 的冻结 hash bump
7
7
  // (BREAKING-COMPARABILITY)。执行器调用 / JSON 解析逻辑位于 Evaluation Core runtime adapter。
8
+ // 评委 prompt 刻意只用中文,不跟随 --lang/OMK_LANG/全局设置/系统 locale 解析出的输出语言:
9
+ // prompt 字节进宿主 Runtime 身份,绑环境就等于让同一份封存配置在不同机器上量到不同仪器。
10
+ // 英文界面下评委指令与 reason 仍是中文,这一代价已被明确接受。
11
+ // 口径见 docs/specs/evaluation/evaluation-scoring-equivalence.md §4。
8
12
  // ===========================================================================
9
13
  // Rubric 主评委 prompt
10
14
  // ===========================================================================
@@ -17,7 +21,7 @@ export { buildJudgePrompt, getJudgePromptHash, JUDGE_SYSTEM_PROMPT, } from '../.
17
21
  * frozen hashes in `test/measurement-governance/prompt-registry-freeze.test.ts`) whenever the template's bytes
18
22
  * change — that change is BREAKING-COMPARABILITY.
19
23
  *
20
- * Naming: a single main version (`v5`) + a `-feature` suffix per debias/context capability.
24
+ * Naming: a single main version (`v6`) + a `-feature` suffix per debias/context capability.
21
25
  * The only asymmetry between the two strings is the `-len` suffix, gated by the
22
26
  * `--no-debias-length` toggle; every other feature is always-on and appears in both.
23
27
  */
@@ -32,6 +36,8 @@ export { buildJudgePrompt, getJudgePromptHash, JUDGE_SYSTEM_PROMPT, } from '../.
32
36
  // 偏向更长的回答,还隐性偏向排版精致(标题 / 列表 / 加粗)与语气自信 / 自我
33
37
  // 表扬(谄媚 / 权威偏置)的回答;显式指令要求评委只对照评分标准核内容。
34
38
  // 同时借此把命名统一成单一主序号(v5)+ feature 后缀,`-len` 仍是开关那条。
39
+ // v6-multi-cot-toolargs-fmt(off) / v6-multi-cot-toolargs-fmt-len(on)
40
+ // : 一次调用读取有序维度列表,返回逐 metricId 的 scores 数组。
35
41
  // ===========================================================================
36
42
  // 语义相似度评委 prompt(semantic_similarity 断言)
37
43
  // ===========================================================================
@@ -1,30 +1,7 @@
1
- function decodePointerToken(token) {
2
- return token.replaceAll('~1', '/').replaceAll('~0', '~');
3
- }
1
+ import { resolveJsonPointer } from '../../../eval-core/primitives/json-pointer.js';
4
2
  function resolvePointer(value, pointer) {
5
- if (pointer === '')
6
- return value;
7
- let current = value;
8
- for (const rawToken of pointer.slice(1).split('/')) {
9
- const token = decodePointerToken(rawToken);
10
- if (Array.isArray(current)) {
11
- if (!/^(?:0|[1-9]\d*)$/.test(token))
12
- return undefined;
13
- current = current[Number(token)];
14
- }
15
- else if (current !== null && typeof current === 'object') {
16
- const record = current;
17
- current = Object.prototype.hasOwnProperty.call(current, token)
18
- ? record[token]
19
- : undefined;
20
- }
21
- else {
22
- return undefined;
23
- }
24
- if (current === undefined)
25
- return undefined;
26
- }
27
- return current;
3
+ const result = resolveJsonPointer(value, pointer);
4
+ return result.resolved ? result.value : undefined;
28
5
  }
29
6
  function goldRating(sample, parameters) {
30
7
  const context = sample.analysis?.context;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { drawBootstrapMetric, summarizeBootstrapMetric, } from '../../analysis/bootstrap.js';
2
+ import { drawBootstrapMetric, summarizeBootstrapMetric, } from '../../../eval-core/analysis/bootstrap.js';
3
3
  import { computeAgreementEvidence, computeKrippendorffAlpha, computePearson, computeWeightedKappa, } from '../../gold/human.js';
4
4
  import { IdentifierSchema, Sha256DigestSchema, canonicalizeJson, schemaIdentityKey, } from '../../../eval-core/contracts/index.js';
5
5
  import { analysisJsonSchema, analysisSchemaIdentity, createAnalysisSchemaValidator, } from './analysis-support.js';
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { type CoreSchemaValidationContext, type CoreSchemaValidator, type JsonValue, type RuntimeIdentity, type SchemaIdentity } from '../../../eval-core/contracts/index.js';
3
3
  import type { AnalysisNodeExecutionContext, AnalysisNodeExecutionResult, AnalysisNodeImplementation } from '../../../eval-core/analysis/index.js';
4
- export declare function compareStrings(left: string, right: string): number;
5
4
  export declare function round(value: number, decimals: number): number;
6
5
  export declare function analysisJsonSchema(schema: z.ZodType, invariants: readonly string[]): JsonValue;
7
6
  export declare function analysisSchemaIdentity(schemaVersion: string, schemaUri: string, schema: JsonValue): SchemaIdentity;