@azx-pbc/axiom-compiler 0.0.0-stage → 0.0.6

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 (655) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +415 -2
  3. package/dist/article.d.ts +12 -0
  4. package/dist/article.d.ts.map +1 -0
  5. package/dist/article.js +16 -0
  6. package/dist/article.js.map +1 -0
  7. package/dist/cli/args.d.ts +101 -0
  8. package/dist/cli/args.d.ts.map +1 -0
  9. package/dist/cli/args.js +158 -0
  10. package/dist/cli/args.js.map +1 -0
  11. package/dist/cli/check.d.ts +2 -0
  12. package/dist/cli/check.d.ts.map +1 -0
  13. package/dist/cli/check.js +33 -0
  14. package/dist/cli/check.js.map +1 -0
  15. package/dist/cli/compile.d.ts +2 -0
  16. package/dist/cli/compile.d.ts.map +1 -0
  17. package/dist/cli/compile.js +43 -0
  18. package/dist/cli/compile.js.map +1 -0
  19. package/dist/cli/count.d.ts +15 -0
  20. package/dist/cli/count.d.ts.map +1 -0
  21. package/dist/cli/count.js +21 -0
  22. package/dist/cli/count.js.map +1 -0
  23. package/dist/cli/dataset.d.ts +28 -0
  24. package/dist/cli/dataset.d.ts.map +1 -0
  25. package/dist/cli/dataset.js +115 -0
  26. package/dist/cli/dataset.js.map +1 -0
  27. package/dist/cli/diff.d.ts +2 -0
  28. package/dist/cli/diff.d.ts.map +1 -0
  29. package/dist/cli/diff.js +297 -0
  30. package/dist/cli/diff.js.map +1 -0
  31. package/dist/cli/explain.d.ts +2 -0
  32. package/dist/cli/explain.d.ts.map +1 -0
  33. package/dist/cli/explain.js +95 -0
  34. package/dist/cli/explain.js.map +1 -0
  35. package/dist/cli/fields.d.ts +11 -0
  36. package/dist/cli/fields.d.ts.map +1 -0
  37. package/dist/cli/fields.js +13 -0
  38. package/dist/cli/fields.js.map +1 -0
  39. package/dist/cli/main.d.ts +2 -0
  40. package/dist/cli/main.d.ts.map +1 -0
  41. package/dist/cli/main.js +40 -0
  42. package/dist/cli/main.js.map +1 -0
  43. package/dist/cli/read.d.ts +56 -0
  44. package/dist/cli/read.d.ts.map +1 -0
  45. package/dist/cli/read.js +179 -0
  46. package/dist/cli/read.js.map +1 -0
  47. package/dist/cli/render.d.ts +58 -0
  48. package/dist/cli/render.d.ts.map +1 -0
  49. package/dist/cli/render.js +422 -0
  50. package/dist/cli/render.js.map +1 -0
  51. package/dist/cli/schema.d.ts +28 -0
  52. package/dist/cli/schema.d.ts.map +1 -0
  53. package/dist/cli/schema.js +46 -0
  54. package/dist/cli/schema.js.map +1 -0
  55. package/dist/cli/suite-report.d.ts +18 -0
  56. package/dist/cli/suite-report.d.ts.map +1 -0
  57. package/dist/cli/suite-report.js +58 -0
  58. package/dist/cli/suite-report.js.map +1 -0
  59. package/dist/cli/suites.d.ts +25 -0
  60. package/dist/cli/suites.d.ts.map +1 -0
  61. package/dist/cli/suites.js +67 -0
  62. package/dist/cli/suites.js.map +1 -0
  63. package/dist/cli/terminal.d.ts +45 -0
  64. package/dist/cli/terminal.d.ts.map +1 -0
  65. package/dist/cli/terminal.js +119 -0
  66. package/dist/cli/terminal.js.map +1 -0
  67. package/dist/cli/test.d.ts +12 -0
  68. package/dist/cli/test.d.ts.map +1 -0
  69. package/dist/cli/test.js +199 -0
  70. package/dist/cli/test.js.map +1 -0
  71. package/dist/cli/usage.d.ts +15 -0
  72. package/dist/cli/usage.d.ts.map +1 -0
  73. package/dist/cli/usage.js +95 -0
  74. package/dist/cli/usage.js.map +1 -0
  75. package/dist/cli.d.ts +3 -0
  76. package/dist/cli.d.ts.map +1 -0
  77. package/dist/cli.js +51 -0
  78. package/dist/cli.js.map +1 -0
  79. package/dist/compile/artifact-members.d.ts +57 -0
  80. package/dist/compile/artifact-members.d.ts.map +1 -0
  81. package/dist/compile/artifact-members.js +130 -0
  82. package/dist/compile/artifact-members.js.map +1 -0
  83. package/dist/compile/artifact.d.ts +20 -0
  84. package/dist/compile/artifact.d.ts.map +1 -0
  85. package/dist/compile/artifact.js +87 -0
  86. package/dist/compile/artifact.js.map +1 -0
  87. package/dist/compile/compilation.d.ts +46 -0
  88. package/dist/compile/compilation.d.ts.map +1 -0
  89. package/dist/compile/compilation.js +4 -0
  90. package/dist/compile/compilation.js.map +1 -0
  91. package/dist/compile/computed.d.ts +22 -0
  92. package/dist/compile/computed.d.ts.map +1 -0
  93. package/dist/compile/computed.js +245 -0
  94. package/dist/compile/computed.js.map +1 -0
  95. package/dist/compile/condition-warnings.d.ts +12 -0
  96. package/dist/compile/condition-warnings.d.ts.map +1 -0
  97. package/dist/compile/condition-warnings.js +26 -0
  98. package/dist/compile/condition-warnings.js.map +1 -0
  99. package/dist/compile/conditions.d.ts +18 -0
  100. package/dist/compile/conditions.d.ts.map +1 -0
  101. package/dist/compile/conditions.js +22 -0
  102. package/dist/compile/conditions.js.map +1 -0
  103. package/dist/compile/cross-checks.d.ts +67 -0
  104. package/dist/compile/cross-checks.d.ts.map +1 -0
  105. package/dist/compile/cross-checks.js +238 -0
  106. package/dist/compile/cross-checks.js.map +1 -0
  107. package/dist/compile/datasets.d.ts +52 -0
  108. package/dist/compile/datasets.d.ts.map +1 -0
  109. package/dist/compile/datasets.js +183 -0
  110. package/dist/compile/datasets.js.map +1 -0
  111. package/dist/compile/dead-weight.d.ts +26 -0
  112. package/dist/compile/dead-weight.d.ts.map +1 -0
  113. package/dist/compile/dead-weight.js +244 -0
  114. package/dist/compile/dead-weight.js.map +1 -0
  115. package/dist/compile/declaration-rules.d.ts +54 -0
  116. package/dist/compile/declaration-rules.d.ts.map +1 -0
  117. package/dist/compile/declaration-rules.js +510 -0
  118. package/dist/compile/declaration-rules.js.map +1 -0
  119. package/dist/compile/declarations.d.ts +44 -0
  120. package/dist/compile/declarations.d.ts.map +1 -0
  121. package/dist/compile/declarations.js +160 -0
  122. package/dist/compile/declarations.js.map +1 -0
  123. package/dist/compile/document.d.ts +4 -0
  124. package/dist/compile/document.d.ts.map +1 -0
  125. package/dist/compile/document.js +13 -0
  126. package/dist/compile/document.js.map +1 -0
  127. package/dist/compile/expression.d.ts +38 -0
  128. package/dist/compile/expression.d.ts.map +1 -0
  129. package/dist/compile/expression.js +288 -0
  130. package/dist/compile/expression.js.map +1 -0
  131. package/dist/compile/hashes.d.ts +26 -0
  132. package/dist/compile/hashes.d.ts.map +1 -0
  133. package/dist/compile/hashes.js +96 -0
  134. package/dist/compile/hashes.js.map +1 -0
  135. package/dist/compile/item-targets.d.ts +12 -0
  136. package/dist/compile/item-targets.d.ts.map +1 -0
  137. package/dist/compile/item-targets.js +287 -0
  138. package/dist/compile/item-targets.js.map +1 -0
  139. package/dist/compile/messages.d.ts +8 -0
  140. package/dist/compile/messages.d.ts.map +1 -0
  141. package/dist/compile/messages.js +62 -0
  142. package/dist/compile/messages.js.map +1 -0
  143. package/dist/compile/option-availability.d.ts +51 -0
  144. package/dist/compile/option-availability.d.ts.map +1 -0
  145. package/dist/compile/option-availability.js +171 -0
  146. package/dist/compile/option-availability.js.map +1 -0
  147. package/dist/compile/option-codes.d.ts +27 -0
  148. package/dist/compile/option-codes.d.ts.map +1 -0
  149. package/dist/compile/option-codes.js +212 -0
  150. package/dist/compile/option-codes.js.map +1 -0
  151. package/dist/compile/references.d.ts +14 -0
  152. package/dist/compile/references.d.ts.map +1 -0
  153. package/dist/compile/references.js +126 -0
  154. package/dist/compile/references.js.map +1 -0
  155. package/dist/compile/rows-from.d.ts +27 -0
  156. package/dist/compile/rows-from.d.ts.map +1 -0
  157. package/dist/compile/rows-from.js +164 -0
  158. package/dist/compile/rows-from.js.map +1 -0
  159. package/dist/compile/rules.d.ts +58 -0
  160. package/dist/compile/rules.d.ts.map +1 -0
  161. package/dist/compile/rules.js +327 -0
  162. package/dist/compile/rules.js.map +1 -0
  163. package/dist/compile/suggestions.d.ts +52 -0
  164. package/dist/compile/suggestions.d.ts.map +1 -0
  165. package/dist/compile/suggestions.js +633 -0
  166. package/dist/compile/suggestions.js.map +1 -0
  167. package/dist/compile/targets.d.ts +22 -0
  168. package/dist/compile/targets.d.ts.map +1 -0
  169. package/dist/compile/targets.js +125 -0
  170. package/dist/compile/targets.js.map +1 -0
  171. package/dist/compile/types.d.ts +84 -0
  172. package/dist/compile/types.d.ts.map +1 -0
  173. package/dist/compile/types.js +2 -0
  174. package/dist/compile/types.js.map +1 -0
  175. package/dist/compile/warning.d.ts +45 -0
  176. package/dist/compile/warning.d.ts.map +1 -0
  177. package/dist/compile/warning.js +2 -0
  178. package/dist/compile/warning.js.map +1 -0
  179. package/dist/compile-yaml.d.ts +23 -0
  180. package/dist/compile-yaml.d.ts.map +1 -0
  181. package/dist/compile-yaml.js +30 -0
  182. package/dist/compile-yaml.js.map +1 -0
  183. package/dist/compile.d.ts +78 -0
  184. package/dist/compile.d.ts.map +1 -0
  185. package/dist/compile.js +372 -0
  186. package/dist/compile.js.map +1 -0
  187. package/dist/csv/limits.d.ts +43 -0
  188. package/dist/csv/limits.d.ts.map +1 -0
  189. package/dist/csv/limits.js +51 -0
  190. package/dist/csv/limits.js.map +1 -0
  191. package/dist/csv/scalar.d.ts +33 -0
  192. package/dist/csv/scalar.d.ts.map +1 -0
  193. package/dist/csv/scalar.js +77 -0
  194. package/dist/csv/scalar.js.map +1 -0
  195. package/dist/datasets/csv.d.ts +46 -0
  196. package/dist/datasets/csv.d.ts.map +1 -0
  197. package/dist/datasets/csv.js +293 -0
  198. package/dist/datasets/csv.js.map +1 -0
  199. package/dist/datasets/declaration.d.ts +16 -0
  200. package/dist/datasets/declaration.d.ts.map +1 -0
  201. package/dist/datasets/declaration.js +104 -0
  202. package/dist/datasets/declaration.js.map +1 -0
  203. package/dist/datasets/diagnostics.d.ts +65 -0
  204. package/dist/datasets/diagnostics.d.ts.map +1 -0
  205. package/dist/datasets/diagnostics.js +2 -0
  206. package/dist/datasets/diagnostics.js.map +1 -0
  207. package/dist/datasets/diff.d.ts +46 -0
  208. package/dist/datasets/diff.d.ts.map +1 -0
  209. package/dist/datasets/diff.js +84 -0
  210. package/dist/datasets/diff.js.map +1 -0
  211. package/dist/datasets/document.d.ts +12 -0
  212. package/dist/datasets/document.d.ts.map +1 -0
  213. package/dist/datasets/document.js +382 -0
  214. package/dist/datasets/document.js.map +1 -0
  215. package/dist/datasets/index.d.ts +43 -0
  216. package/dist/datasets/index.d.ts.map +1 -0
  217. package/dist/datasets/index.js +68 -0
  218. package/dist/datasets/index.js.map +1 -0
  219. package/dist/datasets/repair.d.ts +26 -0
  220. package/dist/datasets/repair.d.ts.map +1 -0
  221. package/dist/datasets/repair.js +60 -0
  222. package/dist/datasets/repair.js.map +1 -0
  223. package/dist/document-path.d.ts +62 -0
  224. package/dist/document-path.d.ts.map +1 -0
  225. package/dist/document-path.js +200 -0
  226. package/dist/document-path.js.map +1 -0
  227. package/dist/expr/boundary.d.ts +8 -0
  228. package/dist/expr/boundary.d.ts.map +1 -0
  229. package/dist/expr/boundary.js +243 -0
  230. package/dist/expr/boundary.js.map +1 -0
  231. package/dist/expr/compile-expr.d.ts +35 -0
  232. package/dist/expr/compile-expr.d.ts.map +1 -0
  233. package/dist/expr/compile-expr.js +66 -0
  234. package/dist/expr/compile-expr.js.map +1 -0
  235. package/dist/expr/deprecation.d.ts +23 -0
  236. package/dist/expr/deprecation.d.ts.map +1 -0
  237. package/dist/expr/deprecation.js +28 -0
  238. package/dist/expr/deprecation.js.map +1 -0
  239. package/dist/expr/diagnostics.d.ts +31 -0
  240. package/dist/expr/diagnostics.d.ts.map +1 -0
  241. package/dist/expr/diagnostics.js +34 -0
  242. package/dist/expr/diagnostics.js.map +1 -0
  243. package/dist/expr/lexer.d.ts +49 -0
  244. package/dist/expr/lexer.d.ts.map +1 -0
  245. package/dist/expr/lexer.js +277 -0
  246. package/dist/expr/lexer.js.map +1 -0
  247. package/dist/expr/lint-warnings.d.ts +11 -0
  248. package/dist/expr/lint-warnings.d.ts.map +1 -0
  249. package/dist/expr/lint-warnings.js +20 -0
  250. package/dist/expr/lint-warnings.js.map +1 -0
  251. package/dist/expr/lint.d.ts +41 -0
  252. package/dist/expr/lint.d.ts.map +1 -0
  253. package/dist/expr/lint.js +1034 -0
  254. package/dist/expr/lint.js.map +1 -0
  255. package/dist/expr/parse/aggregates.d.ts +13 -0
  256. package/dist/expr/parse/aggregates.d.ts.map +1 -0
  257. package/dist/expr/parse/aggregates.js +48 -0
  258. package/dist/expr/parse/aggregates.js.map +1 -0
  259. package/dist/expr/parse/budget.d.ts +11 -0
  260. package/dist/expr/parse/budget.d.ts.map +1 -0
  261. package/dist/expr/parse/budget.js +57 -0
  262. package/dist/expr/parse/budget.js.map +1 -0
  263. package/dist/expr/parse/grammar.d.ts +9 -0
  264. package/dist/expr/parse/grammar.d.ts.map +1 -0
  265. package/dist/expr/parse/grammar.js +699 -0
  266. package/dist/expr/parse/grammar.js.map +1 -0
  267. package/dist/expr/parse/literals.d.ts +20 -0
  268. package/dist/expr/parse/literals.d.ts.map +1 -0
  269. package/dist/expr/parse/literals.js +132 -0
  270. package/dist/expr/parse/literals.js.map +1 -0
  271. package/dist/expr/parse/stream.d.ts +60 -0
  272. package/dist/expr/parse/stream.d.ts.map +1 -0
  273. package/dist/expr/parse/stream.js +151 -0
  274. package/dist/expr/parse/stream.js.map +1 -0
  275. package/dist/expr/parser.d.ts +45 -0
  276. package/dist/expr/parser.d.ts.map +1 -0
  277. package/dist/expr/parser.js +110 -0
  278. package/dist/expr/parser.js.map +1 -0
  279. package/dist/expr/print/spell.d.ts +78 -0
  280. package/dist/expr/print/spell.d.ts.map +1 -0
  281. package/dist/expr/print/spell.js +592 -0
  282. package/dist/expr/print/spell.js.map +1 -0
  283. package/dist/expr/print.d.ts +20 -0
  284. package/dist/expr/print.d.ts.map +1 -0
  285. package/dist/expr/print.js +102 -0
  286. package/dist/expr/print.js.map +1 -0
  287. package/dist/expr/suggest.d.ts +26 -0
  288. package/dist/expr/suggest.d.ts.map +1 -0
  289. package/dist/expr/suggest.js +77 -0
  290. package/dist/expr/suggest.js.map +1 -0
  291. package/dist/expr/typecheck/aggregates.d.ts +8 -0
  292. package/dist/expr/typecheck/aggregates.d.ts.map +1 -0
  293. package/dist/expr/typecheck/aggregates.js +334 -0
  294. package/dist/expr/typecheck/aggregates.js.map +1 -0
  295. package/dist/expr/typecheck/arithmetic.d.ts +6 -0
  296. package/dist/expr/typecheck/arithmetic.d.ts.map +1 -0
  297. package/dist/expr/typecheck/arithmetic.js +258 -0
  298. package/dist/expr/typecheck/arithmetic.js.map +1 -0
  299. package/dist/expr/typecheck/arity.d.ts +38 -0
  300. package/dist/expr/typecheck/arity.d.ts.map +1 -0
  301. package/dist/expr/typecheck/arity.js +173 -0
  302. package/dist/expr/typecheck/arity.js.map +1 -0
  303. package/dist/expr/typecheck/calls.d.ts +6 -0
  304. package/dist/expr/typecheck/calls.d.ts.map +1 -0
  305. package/dist/expr/typecheck/calls.js +137 -0
  306. package/dist/expr/typecheck/calls.js.map +1 -0
  307. package/dist/expr/typecheck/comparison.d.ts +13 -0
  308. package/dist/expr/typecheck/comparison.d.ts.map +1 -0
  309. package/dist/expr/typecheck/comparison.js +200 -0
  310. package/dist/expr/typecheck/comparison.js.map +1 -0
  311. package/dist/expr/typecheck/compound.d.ts +24 -0
  312. package/dist/expr/typecheck/compound.d.ts.map +1 -0
  313. package/dist/expr/typecheck/compound.js +175 -0
  314. package/dist/expr/typecheck/compound.js.map +1 -0
  315. package/dist/expr/typecheck/context.d.ts +44 -0
  316. package/dist/expr/typecheck/context.d.ts.map +1 -0
  317. package/dist/expr/typecheck/context.js +2 -0
  318. package/dist/expr/typecheck/context.js.map +1 -0
  319. package/dist/expr/typecheck/datasets.d.ts +17 -0
  320. package/dist/expr/typecheck/datasets.d.ts.map +1 -0
  321. package/dist/expr/typecheck/datasets.js +136 -0
  322. package/dist/expr/typecheck/datasets.js.map +1 -0
  323. package/dist/expr/typecheck/digest.d.ts +7 -0
  324. package/dist/expr/typecheck/digest.d.ts.map +1 -0
  325. package/dist/expr/typecheck/digest.js +44 -0
  326. package/dist/expr/typecheck/digest.js.map +1 -0
  327. package/dist/expr/typecheck/fold.d.ts +41 -0
  328. package/dist/expr/typecheck/fold.d.ts.map +1 -0
  329. package/dist/expr/typecheck/fold.js +71 -0
  330. package/dist/expr/typecheck/fold.js.map +1 -0
  331. package/dist/expr/typecheck/gate-folds.d.ts +22 -0
  332. package/dist/expr/typecheck/gate-folds.d.ts.map +1 -0
  333. package/dist/expr/typecheck/gate-folds.js +40 -0
  334. package/dist/expr/typecheck/gate-folds.js.map +1 -0
  335. package/dist/expr/typecheck/guards.d.ts +6 -0
  336. package/dist/expr/typecheck/guards.d.ts.map +1 -0
  337. package/dist/expr/typecheck/guards.js +38 -0
  338. package/dist/expr/typecheck/guards.js.map +1 -0
  339. package/dist/expr/typecheck/member.d.ts +17 -0
  340. package/dist/expr/typecheck/member.d.ts.map +1 -0
  341. package/dist/expr/typecheck/member.js +46 -0
  342. package/dist/expr/typecheck/member.js.map +1 -0
  343. package/dist/expr/typecheck/money.d.ts +8 -0
  344. package/dist/expr/typecheck/money.d.ts.map +1 -0
  345. package/dist/expr/typecheck/money.js +49 -0
  346. package/dist/expr/typecheck/money.js.map +1 -0
  347. package/dist/expr/typecheck/numeric.d.ts +8 -0
  348. package/dist/expr/typecheck/numeric.d.ts.map +1 -0
  349. package/dist/expr/typecheck/numeric.js +84 -0
  350. package/dist/expr/typecheck/numeric.js.map +1 -0
  351. package/dist/expr/typecheck/operands.d.ts +27 -0
  352. package/dist/expr/typecheck/operands.d.ts.map +1 -0
  353. package/dist/expr/typecheck/operands.js +106 -0
  354. package/dist/expr/typecheck/operands.js.map +1 -0
  355. package/dist/expr/typecheck/paths.d.ts +21 -0
  356. package/dist/expr/typecheck/paths.d.ts.map +1 -0
  357. package/dist/expr/typecheck/paths.js +321 -0
  358. package/dist/expr/typecheck/paths.js.map +1 -0
  359. package/dist/expr/typecheck/records.d.ts +24 -0
  360. package/dist/expr/typecheck/records.d.ts.map +1 -0
  361. package/dist/expr/typecheck/records.js +53 -0
  362. package/dist/expr/typecheck/records.js.map +1 -0
  363. package/dist/expr/typecheck/sequences.d.ts +15 -0
  364. package/dist/expr/typecheck/sequences.d.ts.map +1 -0
  365. package/dist/expr/typecheck/sequences.js +55 -0
  366. package/dist/expr/typecheck/sequences.js.map +1 -0
  367. package/dist/expr/typecheck/strings.d.ts +8 -0
  368. package/dist/expr/typecheck/strings.d.ts.map +1 -0
  369. package/dist/expr/typecheck/strings.js +188 -0
  370. package/dist/expr/typecheck/strings.js.map +1 -0
  371. package/dist/expr/typecheck/temporal.d.ts +7 -0
  372. package/dist/expr/typecheck/temporal.d.ts.map +1 -0
  373. package/dist/expr/typecheck/temporal.js +80 -0
  374. package/dist/expr/typecheck/temporal.js.map +1 -0
  375. package/dist/expr/typecheck/types.d.ts +163 -0
  376. package/dist/expr/typecheck/types.d.ts.map +1 -0
  377. package/dist/expr/typecheck/types.js +404 -0
  378. package/dist/expr/typecheck/types.js.map +1 -0
  379. package/dist/expr/typecheck.d.ts +75 -0
  380. package/dist/expr/typecheck.d.ts.map +1 -0
  381. package/dist/expr/typecheck.js +242 -0
  382. package/dist/expr/typecheck.js.map +1 -0
  383. package/dist/expr/undecided.d.ts +13 -0
  384. package/dist/expr/undecided.d.ts.map +1 -0
  385. package/dist/expr/undecided.js +58 -0
  386. package/dist/expr/undecided.js.map +1 -0
  387. package/dist/expr/values/code-points.d.ts +13 -0
  388. package/dist/expr/values/code-points.d.ts.map +1 -0
  389. package/dist/expr/values/code-points.js +25 -0
  390. package/dist/expr/values/code-points.js.map +1 -0
  391. package/dist/expr/values/inline.d.ts +77 -0
  392. package/dist/expr/values/inline.d.ts.map +1 -0
  393. package/dist/expr/values/inline.js +404 -0
  394. package/dist/expr/values/inline.js.map +1 -0
  395. package/dist/expr/values/interval.d.ts +19 -0
  396. package/dist/expr/values/interval.d.ts.map +1 -0
  397. package/dist/expr/values/interval.js +1180 -0
  398. package/dist/expr/values/interval.js.map +1 -0
  399. package/dist/index.d.ts +163 -0
  400. package/dist/index.d.ts.map +1 -0
  401. package/dist/index.js +128 -0
  402. package/dist/index.js.map +1 -0
  403. package/dist/ingest/document.d.ts +58 -0
  404. package/dist/ingest/document.d.ts.map +1 -0
  405. package/dist/ingest/document.js +83 -0
  406. package/dist/ingest/document.js.map +1 -0
  407. package/dist/ingest/yaml-document.d.ts +15 -0
  408. package/dist/ingest/yaml-document.d.ts.map +1 -0
  409. package/dist/ingest/yaml-document.js +42 -0
  410. package/dist/ingest/yaml-document.js.map +1 -0
  411. package/dist/ingest/yaml.d.ts +51 -0
  412. package/dist/ingest/yaml.d.ts.map +1 -0
  413. package/dist/ingest/yaml.js +340 -0
  414. package/dist/ingest/yaml.js.map +1 -0
  415. package/dist/layout/compile.d.ts +6 -0
  416. package/dist/layout/compile.d.ts.map +1 -0
  417. package/dist/layout/compile.js +224 -0
  418. package/dist/layout/compile.js.map +1 -0
  419. package/dist/layout/context.d.ts +12 -0
  420. package/dist/layout/context.d.ts.map +1 -0
  421. package/dist/layout/context.js +26 -0
  422. package/dist/layout/context.js.map +1 -0
  423. package/dist/layout/grammar.d.ts +34 -0
  424. package/dist/layout/grammar.d.ts.map +1 -0
  425. package/dist/layout/grammar.js +171 -0
  426. package/dist/layout/grammar.js.map +1 -0
  427. package/dist/layout/read.d.ts +54 -0
  428. package/dist/layout/read.d.ts.map +1 -0
  429. package/dist/layout/read.js +101 -0
  430. package/dist/layout/read.js.map +1 -0
  431. package/dist/layout/shape.d.ts +34 -0
  432. package/dist/layout/shape.d.ts.map +1 -0
  433. package/dist/layout/shape.js +149 -0
  434. package/dist/layout/shape.js.map +1 -0
  435. package/dist/messages/compile.d.ts +47 -0
  436. package/dist/messages/compile.d.ts.map +1 -0
  437. package/dist/messages/compile.js +202 -0
  438. package/dist/messages/compile.js.map +1 -0
  439. package/dist/messages/locale.d.ts +18 -0
  440. package/dist/messages/locale.d.ts.map +1 -0
  441. package/dist/messages/locale.js +33 -0
  442. package/dist/messages/locale.js.map +1 -0
  443. package/dist/messages/slots.d.ts +54 -0
  444. package/dist/messages/slots.d.ts.map +1 -0
  445. package/dist/messages/slots.js +137 -0
  446. package/dist/messages/slots.js.map +1 -0
  447. package/dist/overlay/compile-overlay.d.ts +29 -0
  448. package/dist/overlay/compile-overlay.d.ts.map +1 -0
  449. package/dist/overlay/compile-overlay.js +120 -0
  450. package/dist/overlay/compile-overlay.js.map +1 -0
  451. package/dist/overlay/compose.d.ts +26 -0
  452. package/dist/overlay/compose.d.ts.map +1 -0
  453. package/dist/overlay/compose.js +674 -0
  454. package/dist/overlay/compose.js.map +1 -0
  455. package/dist/overlay/types.d.ts +41 -0
  456. package/dist/overlay/types.d.ts.map +1 -0
  457. package/dist/overlay/types.js +2 -0
  458. package/dist/overlay/types.js.map +1 -0
  459. package/dist/publish/classify.d.ts +50 -0
  460. package/dist/publish/classify.d.ts.map +1 -0
  461. package/dist/publish/classify.js +85 -0
  462. package/dist/publish/classify.js.map +1 -0
  463. package/dist/publish/environment.d.ts +15 -0
  464. package/dist/publish/environment.d.ts.map +1 -0
  465. package/dist/publish/environment.js +2 -0
  466. package/dist/publish/environment.js.map +1 -0
  467. package/dist/publish/migrations.d.ts +108 -0
  468. package/dist/publish/migrations.d.ts.map +1 -0
  469. package/dist/publish/migrations.js +166 -0
  470. package/dist/publish/migrations.js.map +1 -0
  471. package/dist/publish/observation.d.ts +29 -0
  472. package/dist/publish/observation.d.ts.map +1 -0
  473. package/dist/publish/observation.js +43 -0
  474. package/dist/publish/observation.js.map +1 -0
  475. package/dist/publish/readiness.d.ts +197 -0
  476. package/dist/publish/readiness.d.ts.map +1 -0
  477. package/dist/publish/readiness.js +239 -0
  478. package/dist/publish/readiness.js.map +1 -0
  479. package/dist/publish/vectors.d.ts +50 -0
  480. package/dist/publish/vectors.d.ts.map +1 -0
  481. package/dist/publish/vectors.js +306 -0
  482. package/dist/publish/vectors.js.map +1 -0
  483. package/dist/publish/verify.d.ts +146 -0
  484. package/dist/publish/verify.d.ts.map +1 -0
  485. package/dist/publish/verify.js +548 -0
  486. package/dist/publish/verify.js.map +1 -0
  487. package/dist/scenarios/branch.d.ts +36 -0
  488. package/dist/scenarios/branch.d.ts.map +1 -0
  489. package/dist/scenarios/branch.js +30 -0
  490. package/dist/scenarios/branch.js.map +1 -0
  491. package/dist/scenarios/capture.d.ts +89 -0
  492. package/dist/scenarios/capture.d.ts.map +1 -0
  493. package/dist/scenarios/capture.js +443 -0
  494. package/dist/scenarios/capture.js.map +1 -0
  495. package/dist/scenarios/classifier.d.ts +20 -0
  496. package/dist/scenarios/classifier.d.ts.map +1 -0
  497. package/dist/scenarios/classifier.js +88 -0
  498. package/dist/scenarios/classifier.js.map +1 -0
  499. package/dist/scenarios/credit.d.ts +33 -0
  500. package/dist/scenarios/credit.d.ts.map +1 -0
  501. package/dist/scenarios/credit.js +330 -0
  502. package/dist/scenarios/credit.js.map +1 -0
  503. package/dist/scenarios/csv.d.ts +34 -0
  504. package/dist/scenarios/csv.d.ts.map +1 -0
  505. package/dist/scenarios/csv.js +1047 -0
  506. package/dist/scenarios/csv.js.map +1 -0
  507. package/dist/scenarios/data-identity.d.ts +39 -0
  508. package/dist/scenarios/data-identity.d.ts.map +1 -0
  509. package/dist/scenarios/data-identity.js +28 -0
  510. package/dist/scenarios/data-identity.js.map +1 -0
  511. package/dist/scenarios/document.d.ts +148 -0
  512. package/dist/scenarios/document.d.ts.map +1 -0
  513. package/dist/scenarios/document.js +513 -0
  514. package/dist/scenarios/document.js.map +1 -0
  515. package/dist/scenarios/environment.d.ts +64 -0
  516. package/dist/scenarios/environment.d.ts.map +1 -0
  517. package/dist/scenarios/environment.js +106 -0
  518. package/dist/scenarios/environment.js.map +1 -0
  519. package/dist/scenarios/evidence.d.ts +128 -0
  520. package/dist/scenarios/evidence.d.ts.map +1 -0
  521. package/dist/scenarios/evidence.js +179 -0
  522. package/dist/scenarios/evidence.js.map +1 -0
  523. package/dist/scenarios/expectations.d.ts +63 -0
  524. package/dist/scenarios/expectations.d.ts.map +1 -0
  525. package/dist/scenarios/expectations.js +490 -0
  526. package/dist/scenarios/expectations.js.map +1 -0
  527. package/dist/scenarios/references.d.ts +15 -0
  528. package/dist/scenarios/references.d.ts.map +1 -0
  529. package/dist/scenarios/references.js +239 -0
  530. package/dist/scenarios/references.js.map +1 -0
  531. package/dist/scenarios/report.d.ts +216 -0
  532. package/dist/scenarios/report.d.ts.map +1 -0
  533. package/dist/scenarios/report.js +54 -0
  534. package/dist/scenarios/report.js.map +1 -0
  535. package/dist/scenarios/runner.d.ts +55 -0
  536. package/dist/scenarios/runner.d.ts.map +1 -0
  537. package/dist/scenarios/runner.js +205 -0
  538. package/dist/scenarios/runner.js.map +1 -0
  539. package/dist/scenarios/vocabulary.d.ts +19 -0
  540. package/dist/scenarios/vocabulary.d.ts.map +1 -0
  541. package/dist/scenarios/vocabulary.js +56 -0
  542. package/dist/scenarios/vocabulary.js.map +1 -0
  543. package/dist/schema/catalogue.d.ts +54 -0
  544. package/dist/schema/catalogue.d.ts.map +1 -0
  545. package/dist/schema/catalogue.js +221 -0
  546. package/dist/schema/catalogue.js.map +1 -0
  547. package/dist/schema/check.d.ts +22 -0
  548. package/dist/schema/check.d.ts.map +1 -0
  549. package/dist/schema/check.js +30 -0
  550. package/dist/schema/check.js.map +1 -0
  551. package/dist/schema/closed.d.ts +19 -0
  552. package/dist/schema/closed.d.ts.map +1 -0
  553. package/dist/schema/closed.js +33 -0
  554. package/dist/schema/closed.js.map +1 -0
  555. package/dist/schema/collapse.d.ts +27 -0
  556. package/dist/schema/collapse.d.ts.map +1 -0
  557. package/dist/schema/collapse.js +143 -0
  558. package/dist/schema/collapse.js.map +1 -0
  559. package/dist/schema/controls.d.ts +46 -0
  560. package/dist/schema/controls.d.ts.map +1 -0
  561. package/dist/schema/controls.js +75 -0
  562. package/dist/schema/controls.js.map +1 -0
  563. package/dist/schema/dataset-declaration.d.ts +11 -0
  564. package/dist/schema/dataset-declaration.d.ts.map +1 -0
  565. package/dist/schema/dataset-declaration.js +11 -0
  566. package/dist/schema/dataset-declaration.js.map +1 -0
  567. package/dist/schema/declaration-warnings.d.ts +14 -0
  568. package/dist/schema/declaration-warnings.d.ts.map +1 -0
  569. package/dist/schema/declaration-warnings.js +77 -0
  570. package/dist/schema/declaration-warnings.js.map +1 -0
  571. package/dist/schema/declarations.d.ts +41 -0
  572. package/dist/schema/declarations.d.ts.map +1 -0
  573. package/dist/schema/declarations.js +1299 -0
  574. package/dist/schema/declarations.js.map +1 -0
  575. package/dist/schema/diagnostic.d.ts +118 -0
  576. package/dist/schema/diagnostic.d.ts.map +1 -0
  577. package/dist/schema/diagnostic.js +39 -0
  578. package/dist/schema/diagnostic.js.map +1 -0
  579. package/dist/schema/document.d.ts +93 -0
  580. package/dist/schema/document.d.ts.map +1 -0
  581. package/dist/schema/document.js +507 -0
  582. package/dist/schema/document.js.map +1 -0
  583. package/dist/schema/fields.d.ts +11 -0
  584. package/dist/schema/fields.d.ts.map +1 -0
  585. package/dist/schema/fields.js +265 -0
  586. package/dist/schema/fields.js.map +1 -0
  587. package/dist/schema/gates.d.ts +4 -0
  588. package/dist/schema/gates.d.ts.map +1 -0
  589. package/dist/schema/gates.js +68 -0
  590. package/dist/schema/gates.js.map +1 -0
  591. package/dist/schema/located.d.ts +27 -0
  592. package/dist/schema/located.d.ts.map +1 -0
  593. package/dist/schema/located.js +56 -0
  594. package/dist/schema/located.js.map +1 -0
  595. package/dist/schema/measurement.d.ts +9 -0
  596. package/dist/schema/measurement.d.ts.map +1 -0
  597. package/dist/schema/measurement.js +38 -0
  598. package/dist/schema/measurement.js.map +1 -0
  599. package/dist/schema/member-wording.d.ts +35 -0
  600. package/dist/schema/member-wording.d.ts.map +1 -0
  601. package/dist/schema/member-wording.js +286 -0
  602. package/dist/schema/member-wording.js.map +1 -0
  603. package/dist/schema/metaschema.d.ts +20 -0
  604. package/dist/schema/metaschema.d.ts.map +1 -0
  605. package/dist/schema/metaschema.js +476 -0
  606. package/dist/schema/metaschema.js.map +1 -0
  607. package/dist/schema/pointer.d.ts +31 -0
  608. package/dist/schema/pointer.d.ts.map +1 -0
  609. package/dist/schema/pointer.js +73 -0
  610. package/dist/schema/pointer.js.map +1 -0
  611. package/dist/schema/primary.d.ts +29 -0
  612. package/dist/schema/primary.d.ts.map +1 -0
  613. package/dist/schema/primary.js +48 -0
  614. package/dist/schema/primary.js.map +1 -0
  615. package/dist/schema/publish-vector.d.ts +17 -0
  616. package/dist/schema/publish-vector.d.ts.map +1 -0
  617. package/dist/schema/publish-vector.js +34 -0
  618. package/dist/schema/publish-vector.js.map +1 -0
  619. package/dist/schema/repair.d.ts +34 -0
  620. package/dist/schema/repair.d.ts.map +1 -0
  621. package/dist/schema/repair.js +163 -0
  622. package/dist/schema/repair.js.map +1 -0
  623. package/dist/schema/schema-v1.generated.d.ts +14 -0
  624. package/dist/schema/schema-v1.generated.d.ts.map +1 -0
  625. package/dist/schema/schema-v1.generated.js +7089 -0
  626. package/dist/schema/schema-v1.generated.js.map +1 -0
  627. package/dist/schema/screens.d.ts +4 -0
  628. package/dist/schema/screens.d.ts.map +1 -0
  629. package/dist/schema/screens.js +28 -0
  630. package/dist/schema/screens.js.map +1 -0
  631. package/dist/schema/test-values.d.ts +12 -0
  632. package/dist/schema/test-values.d.ts.map +1 -0
  633. package/dist/schema/test-values.js +97 -0
  634. package/dist/schema/test-values.js.map +1 -0
  635. package/dist/schema/unions.d.ts +46 -0
  636. package/dist/schema/unions.d.ts.map +1 -0
  637. package/dist/schema/unions.js +131 -0
  638. package/dist/schema/unions.js.map +1 -0
  639. package/dist/schema/validate-yaml.d.ts +14 -0
  640. package/dist/schema/validate-yaml.d.ts.map +1 -0
  641. package/dist/schema/validate-yaml.js +17 -0
  642. package/dist/schema/validate-yaml.js.map +1 -0
  643. package/dist/schema/validate.d.ts +46 -0
  644. package/dist/schema/validate.d.ts.map +1 -0
  645. package/dist/schema/validate.js +186 -0
  646. package/dist/schema/validate.js.map +1 -0
  647. package/dist/testing.d.ts +21 -0
  648. package/dist/testing.d.ts.map +1 -0
  649. package/dist/testing.js +28 -0
  650. package/dist/testing.js.map +1 -0
  651. package/dist/vocabulary.d.ts +6 -0
  652. package/dist/vocabulary.d.ts.map +1 -0
  653. package/dist/vocabulary.js +26 -0
  654. package/dist/vocabulary.js.map +1 -0
  655. package/package.json +66 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/publish/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,MAAM,GACP,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAsIlD,8FAA8F;AAC9F,MAAM,UAAU,aAAa,CAAC,YAAiC;IAC7D,MAAM,QAAQ,GAAG;QACf,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,WAAW,EAAE,YAAY,CAAC,WAAW;QACrC,eAAe,EAAE,YAAY,CAAC,eAAe;QAC7C,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,aAAa,EAAE,YAAY,CAAC,aAAa;QACzC,QAAQ,EAAE,YAAY,CAAC,QAAQ;QAC/B,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C,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAC1E;oBACD,UAAU,EAAE,QAAQ,CAAC,UAAU;iBAChC,CAAC,CAAC;aACJ,CACN;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n artifactBehaviour,\n assertNever,\n canonicalHash,\n DEFAULT_EVIDENCE_TIER,\n isTier,\n} from '@azx-pbc/axiom-runtime';\nimport type {\n ArtifactBehaviour,\n CompiledSchema,\n EvaluationEnv,\n LookupTableDocument,\n RuleKind,\n} from '@azx-pbc/axiom-runtime';\nimport { MemoryLookupStore } from '@azx-pbc/axiom-runtime/lookup';\nimport type { ResolvedDatasetPin } from '@azx-pbc/axiom-runtime/lookup';\nimport { isDeferredStub } from '../compile/rules.js';\nimport { missedPinDetail, readDataIdentity } from '../scenarios/data-identity.js';\nimport { runScenarioSuite } from '../scenarios/runner.js';\nimport type { DeclaredEnvironment, ScenarioSuiteDocument } from '../scenarios/document.js';\nimport { describeTarget } from '../scenarios/report.js';\nimport type { AssertionTarget, ScenarioSuiteReport } from '../scenarios/report.js';\nimport type { BranchRefusal } from '../scenarios/branch.js';\nimport { writerRulesOf } from '../scenarios/evidence.js';\nimport { environmentHashOf, normalizeEnvironment } from '../scenarios/environment.js';\nimport { resolveRunEnvironment } from './environment.js';\nimport type { PublishEnvironment } from './environment.js';\nimport { evidencePathOf, readinessGaps } from './readiness.js';\nimport type {\n DeclaredRuleOrigin,\n PublishEvidence,\n PublishGap,\n PublishReadiness,\n RuleCoverage,\n} from './readiness.js';\nimport { runEmbeddedVectors } from './vectors.js';\nimport type { EmbeddedVector } from './vectors.js';\n\n/**\n * Executing the evidence a publisher is asked for, and deriving one verdict from it.\n *\n * Publishing credit is only ever granted to something this call ran: the artifact's embedded\n * vectors, replayed here, and each supplied scenario suite passed through the one runner. No\n * caller-supplied coverage summary, stored pass or foreign report is a parameter, so there is no\n * path by which a claim nobody executed becomes evidence.\n *\n * The run binds itself to the artifact's identity — `artifactBehaviour(compiled)` — and to the\n * table versions the supplied documents resolve. A pinned table with no resolvable version leaves\n * the run unable to state what it judged, and a scenario or vector that did not hold is reported\n * as the gap it is, so the verdict is fail-closed on every path.\n */\n\n/** What a verification needs that the artifact cannot carry: the suites to run and the tables they read. */\nexport interface PublishVerificationOptions {\n /** Scenario suites to execute beside the artifact's own vectors, in the order given. */\n readonly suites?: readonly ScenarioSuiteDocument[];\n /**\n * The table documents a run may install. A table this artifact pins and no document answers\n * with the pinned version is a miss, and a miss is a gap: a publisher cannot bind evidence to\n * data it does not hold.\n */\n readonly datasets?: readonly LookupTableDocument[];\n /**\n * The baseline environment the run judges under: the tier, record date and capability flags its\n * vectors start from and its suites inherit where their own defaults state nothing. A vector\n * case or a scenario's own `given` may override a member; that case's result commits the\n * environment it actually used, so the baseline never labels a decision taken under another.\n *\n * The report commits this baseline, so two runs that differ only in a member nobody read —\n * a record date no table resolves against, a capability no rule asks about — are two decisions\n * taken in two environments and say so. A suite may declare the same members; the run refuses\n * declarations that contradict each other rather than preferring one.\n */\n readonly environment?: DeclaredEnvironment;\n /**\n * The declaration each compiler-synthesised rule came from, as `compile()` reports it.\n *\n * A rule a field declaration compiles to belongs to the artifact, but its id belongs to the\n * compiler. Supplying the origins lets a gap name the field and member the author can repair\n * instead of an id their document does not contain. Omitted — a replay over bare artifact\n * bytes — the gap names the rule id, which is all that artifact states.\n */\n readonly declarations?: readonly DeclaredRuleOrigin[];\n}\n\n/**\n * Something the run observed that grants no publish credit, and why.\n *\n * Kept apart from the coverage it does not contribute to, because it is a hint about evidence the\n * suite could have stated — an assertion that passed while proving nothing about its rule, or a\n * firing no assertion covered — never credit.\n */\nexport interface ObservedOnly {\n readonly target: AssertionTarget;\n readonly refusal: BranchRefusal;\n}\n\n/**\n * The verdict and the evidence it rests on: what `--out` stores beside the artifact.\n *\n * This is the shape `spec/semantics/rules-v1.md` `RULES-3.1.2` names as publishing evidence. Its\n * `gaps` are bounded by the artifact's rule list and the suites the run named — a rule's failing\n * vectors and a suite each state one gap however many of their claims failed — rather than by how\n * much failed. The run transcript — every vector, every assertion, every failed scenario's\n * `explain()` trace — is what a terminal reads under `--max-diagnostics`; storing it would make a\n * publish report as large as the failure it records.\n *\n * A stored report is an unauthenticated proposal, never an authorisation and never an input: no\n * exported entry accepts one, so a gate re-derives the verdict by running `verifyPublishReadiness`\n * over the artifact it serves rather than trusting bytes beside it. Editing `ready` in the file\n * therefore changes nothing but the file.\n */\nexport type PublishReport = PublishReadiness & {\n readonly behaviorHash: string;\n /**\n * The baseline environment the run and its vectors started from, normalized: the tier always,\n * and the record date and capability flags exactly when a declaration named them\n * (`publish/environment.ts`).\n *\n * A decision is a function of its environment, so an archived report that omitted it could not\n * say which record date or tier it was taken at. A vector or scenario may override a member;\n * `evidenceHash` commits each case's effective environment as well, so this member is never a\n * claim about a case that judged under another. `capabilities` is committed as a set.\n */\n readonly environment: PublishEnvironment;\n /**\n * The digest of `environment`, so a stored report can hand its environment to a replay and a\n * gate can tell an environment edited beside the digest from the one that was judged.\n * `environmentHashOf(environment)` is the one derivation.\n */\n readonly environmentHash: string;\n /**\n * The digest of the evidence the run executed: the artifact's behaviour hash, the baseline\n * environment it judged under, the table pins it resolved, every vector's verdict in its own\n * effective environment, and every suite's assertions, stale cases and unasserted observations.\n *\n * Two runs that judged two different suites, the same suite against another table version, or\n * the same evidence in another environment are different pieces of evidence and say so; a stored\n * report names the evidence it rests on rather than only the artifact it was judged against.\n * `behaviorHash` excludes `testCases` by contract (`RULES-5.1.2`), so it alone would let three\n * different suites produce one report.\n *\n * The verdict the digest accompanies — `ready`, `gaps`, `coverage` and `observedOnly` — is not\n * folded into it. Those members are a pure function of the folded evidence and the artifact's\n * rules (which `behaviorHash` commits), so equal digests derived from equal evidence yield equal\n * verdicts; folding them would restate the same facts in a second form. What the digest does not\n * do is authenticate them: a stored report is a proposal, and a member edited beside the digest\n * is a claim no gate reads, because a gate re-derives the verdict rather than trusting the file\n * (`PublishReport`). A consumer that must know a report's members came from one run compares the\n * digest a fresh verification derives, not the members alone.\n */\n readonly evidenceHash: string;\n readonly datasetHashes: readonly ResolvedDatasetPin[];\n readonly coverage: readonly RuleCoverage[];\n readonly observedOnly: readonly ObservedOnly[];\n};\n\n/**\n * The verdict, the executed evidence behind it, and the run detail an operator reads.\n *\n * It is a `PublishReport` and nothing else about the verdict: `publishReport` narrows it to the\n * stored shape, so a report cannot state one verdict and carry another. The extra members are\n * what a terminal prints.\n */\nexport type PublishVerification = PublishReport & {\n readonly vectors: readonly EmbeddedVector[];\n readonly suites: readonly ScenarioSuiteReport[];\n};\n\n/** The stored form of a verification: the report, without the run detail a terminal reads. */\nexport function publishReport(verification: PublishVerification): PublishReport {\n const evidence = {\n behaviorHash: verification.behaviorHash,\n environment: verification.environment,\n environmentHash: verification.environmentHash,\n evidenceHash: verification.evidenceHash,\n datasetHashes: verification.datasetHashes,\n coverage: verification.coverage,\n observedOnly: verification.observedOnly,\n };\n return verification.ready\n ? { ready: true, ...evidence }\n : { ready: false, gaps: verification.gaps, ...evidence };\n}\n\n/** A coverage tally while the run is still accumulating it. */\ninterface CoverageTally {\n readonly kind: RuleKind;\n attempts: number;\n firing: boolean;\n nonFiring: boolean;\n}\n\n/** The artifact's pinned table digests, or the reason the supplied documents cannot state them. */\ntype DatasetPins =\n | { readonly ok: true; readonly pins: readonly ResolvedDatasetPin[] }\n | {\n readonly ok: false;\n /** Every pin the artifact states, misses included, so a report still names what it judged. */\n readonly pins: readonly ResolvedDatasetPin[];\n readonly gap: PublishGap;\n };\n\n/**\n * The artifact's data identity for this run, or the one gap that stops it being stated.\n *\n * An uninstallable catalogue and a table no document answers with the pinned version are the same\n * kind of fact: the artifact depends on that version whether or not a rule happened to read it, so\n * the run has no identity to bind its evidence to. The read itself is `data-identity.ts`, which a\n * suite run uses too, so the sentence and the miss list are stated once.\n */\nfunction datasetPins(\n compiled: CompiledSchema,\n documents: readonly LookupTableDocument[],\n): DatasetPins {\n const read = readDataIdentity(compiled, documents);\n if (!read.ok) {\n return {\n ok: false,\n pins: [],\n gap: { kind: 'stale_dataset', path: '$.datasets', detail: read.detail },\n };\n }\n const { pins, misses } = read.identity;\n if (misses.length === 0) return { ok: true, pins };\n return {\n ok: false,\n pins,\n gap: { kind: 'stale_dataset', path: '$.datasets', detail: missedPinDetail(misses) },\n };\n}\n\n/**\n * The rule a target names directly, for crediting a claim that failed or proved nothing.\n *\n * A target that names its rule can be counted as an attempt even when it earns no credit, so the\n * verdict says \"no case where it fires\" rather than \"no case at all\". A field- or export-shaped\n * target names no rule, and the credit it would earn already names the rule it is evidence about.\n * A `computed` target names a field, whose one field-scope writer is the rule that produced it,\n * so the attempt is counted against the writer exactly as the vector path counts it.\n */\nfunction ruleIdOf(target: AssertionTarget, compiled: CompiledSchema): string | undefined {\n switch (target.kind) {\n case 'rule':\n case 'gateItem':\n case 'gateStatus':\n case 'gateOutcome':\n case 'gateUndeterminedItem':\n case 'screenOutcome':\n case 'screenReason':\n return target.ruleId;\n case 'computed': {\n const writers = writerRulesOf(compiled, target.fieldId);\n return writers.length === 1 ? writers[0]?.ruleId : undefined;\n }\n case 'ready':\n case 'fieldVisible':\n case 'fieldHidden':\n case 'fieldRequired':\n case 'fieldMissingRequired':\n case 'fieldDisabled':\n case 'rowFact':\n case 'exportIncludes':\n case 'exportExcludes':\n case 'exportValue':\n case 'exportRefused':\n return undefined;\n default:\n return assertNever(target);\n }\n}\n\n/** The vector env: every pinned table the supplied documents can install. */\nfunction vectorEnv(\n compiled: CompiledSchema,\n documents: readonly LookupTableDocument[],\n environment: PublishEnvironment,\n): EvaluationEnv {\n const pinned = new Set((compiled.datasets ?? []).map((ref) => ref.tableId));\n const tables = documents.filter((document) => pinned.has(document.tableId));\n return {\n tier: environment.tier,\n ...(environment.recordDate === undefined ? {} : { recordDate: environment.recordDate }),\n ...(environment.capabilities === undefined ? {} : { capabilities: environment.capabilities }),\n ...(tables.length === 0 ? {} : { lookup: new MemoryLookupStore(tables) }),\n };\n}\n\n/**\n * The rules a device artifact carries in place of server logic, which prove nothing here.\n *\n * A client artifact states its target and is refused before this is read; this catches the same\n * artifact with its target stripped, and an artifact assembled by hand from one. The shape is the\n * compiler's own `isDeferredStub`, so the producer and this reading cannot disagree about what a\n * stub is.\n *\n * `target` is packaging, and packaging is whatever the holder of the bytes says it is: a caller\n * that relabels a device artifact `server` must not turn its deferred stubs into decided checks,\n * so the shape is read whatever the label says. A genuine server artifact is unaffected — the\n * compiler never emits a stub for one, and an authored server rule whose expression is the\n * deferred marker with no embedded case is the one shape the two cannot be told apart by, which\n * is already how a server artifact's rule of that shape reads.\n */\nfunction stubRuleIds(compiled: CompiledSchema): ReadonlySet<string> {\n const stubs = new Set<string>();\n for (const rule of compiled.rules ?? []) {\n if (isDeferredStub(rule)) stubs.add(rule.ruleId);\n }\n return stubs;\n}\n\n/**\n * Verifies that an artifact's executed evidence satisfies the publishing rule.\n *\n * `ready` is `true` only when every rule has a passing case on each branch its expression can\n * reach among the vectors and suites this call ran, every one of those claims held, and every table\n * the artifact pins resolves to the version it was compiled against. Everything else is a gap\n * naming the rule, the location and the reason.\n */\nexport function verifyPublishReadiness(\n compiled: CompiledSchema,\n options: PublishVerificationOptions = {},\n): PublishVerification {\n // One derivation per verification: the run, each suite report and the verdict all state this\n // identity, and re-deriving it per suite would re-hash every rule of the artifact.\n const behaviour = artifactBehaviour(compiled);\n const behaviorHash = behaviour.behaviorHash;\n const documents = options.datasets ?? [];\n const suiteDocuments = options.suites ?? [];\n const declarations = options.declarations ?? [];\n const tallies = new Map<string, CoverageTally>(\n (compiled.rules ?? []).map((rule) => [\n rule.ruleId,\n { kind: rule.kind, attempts: 0, firing: false, nonFiring: false },\n ]),\n );\n const environment = resolveRunEnvironment(\n options.environment,\n suiteDocuments.map((suite) => ({\n // The parser runs a scenario at the evidence default tier when its document names none, so a\n // suite always judges at a tier; declaring the effective one keeps a caller's `client`\n // environment from silently disagreeing with it.\n defaults: {\n tier: suite.defaults.tier ?? DEFAULT_EVIDENCE_TIER,\n ...(suite.defaults.recordDate === undefined\n ? {}\n : { recordDate: suite.defaults.recordDate }),\n ...(suite.defaults.capabilities === undefined\n ? {}\n : { capabilities: suite.defaults.capabilities }),\n },\n })),\n );\n if (!environment.ok) {\n // One run states one environment, so declarations that contradict each other are refused\n // rather than resolved by precedence: nothing executes, and the report states the baseline\n // the caller asked for while the gap names the contradiction.\n return refusedRun(\n behaviorHash,\n refusalBaseline(options.environment),\n [\n {\n kind: 'conflicting_environment',\n path: environment.path ?? '$.environment',\n detail: environment.detail,\n },\n ],\n tallies,\n [],\n );\n }\n const committed = environment.environment;\n if (compiled.target === 'client') {\n // A device artifact is not the artifact a publisher's evidence ran against: every\n // server-tier rule is a deferred stub and the embedded cases were stripped, so executing\n // anything here would report a stub's branch as the authored check's. The refusal comes\n // before any run, and names the artifact that can be verified.\n return refusedRun(\n behaviorHash,\n committed,\n [\n {\n kind: 'client_artifact',\n path: '$',\n detail:\n 'this artifact was compiled for a device: its server-tier rules are deferred stubs and its embedded cases do not travel, so no evidence can be executed against it; verify the server artifact the same document compiles to',\n },\n ],\n tallies,\n [],\n );\n }\n // A server-tier rule whose expression is the compiler's deferred marker with no embedded case\n // is a stub whatever the artifact's `target` says, so it is observed and never credited.\n const stubs = stubRuleIds(compiled);\n const pins = datasetPins(compiled, documents);\n const failures: PublishGap[] = [];\n const observed: ObservedOnly[] = [];\n if (!pins.ok) {\n // Without a data identity nothing installed can be bound, so no claim is executed at all and\n // the one reason is the whole verdict. Folding evidence that states nothing would add a\n // per-rule \"no embedded vector and no scenario assertion\" gap for rules whose vectors this run\n // never read, which is not a fact it established; `coverage` still names every rule as\n // unexamined, and the verdict stays fail-closed.\n return refusedRun(behaviorHash, committed, [pins.gap], tallies, pins.pins);\n }\n\n const vectors = runEmbeddedVectors(compiled, vectorEnv(compiled, documents, committed));\n // A rule's failed vectors are one reason, not one reason per case: a 500-case matrix must not\n // make the stored report as large as the failure it records. The first case names the repair.\n const failedVectors = new Map<\n string,\n {\n readonly kind: 'failed_vector' | 'unreadable_expectation' | 'stale_dataset';\n readonly ruleId: string;\n readonly path: string;\n readonly first: string;\n count: number;\n }\n >();\n for (const vector of vectors) {\n const tally = tallies.get(vector.ruleId);\n if (tally !== undefined) tally.attempts += 1;\n if (stubs.has(vector.ruleId)) {\n // The rule is the literal stub a device artifact carries, so the case observed the stub\n // rather than the authored check and proves no branch of it.\n observed.push({\n target: { kind: 'rule', ruleId: vector.ruleId },\n refusal: 'undecided',\n });\n continue;\n }\n if (vector.verdict.ok) {\n if (tally === undefined) continue;\n const credit = vector.verdict.credit;\n if (!credit.coverageEligible) {\n // Observed, never evidence: the rule deferred, or decided neither branch. The hint names\n // the same refusal a suite assertion earns for the same fact.\n observed.push({\n target: { kind: 'rule', ruleId: vector.ruleId },\n refusal: credit.refusal,\n });\n continue;\n }\n if (credit.fired) tally.firing = true;\n else tally.nonFiring = true;\n continue;\n }\n // A case that ran and did not hold, or that was judged against a stale table, names its\n // case; an unreadable expectation states the one sentence both entries give it, so a compile\n // and a verification name that defect alike.\n const named =\n vector.verdict.kind === 'failed_vector' || vector.verdict.kind === 'stale_dataset';\n const text =\n named && vector.caseId !== undefined\n ? `case \\`${vector.caseId}\\`: ${vector.verdict.detail}`\n : vector.verdict.detail;\n const key = `${vector.verdict.kind}\\u0000${vector.ruleId}`;\n const group = failedVectors.get(key);\n if (group === undefined) {\n failedVectors.set(key, {\n kind: vector.verdict.kind,\n ruleId: vector.ruleId,\n // A generated rule's case sits on the declaration that produced it, so a failed vector\n // names that member rather than the artifact slot the author never wrote.\n path: evidencePathOf(declarations, vector.ruleId, vector.path),\n first: text,\n count: 1,\n });\n continue;\n }\n group.count += 1;\n }\n for (const group of failedVectors.values()) {\n failures.push({\n kind: group.kind,\n ruleId: group.ruleId,\n path: group.path,\n detail:\n group.count === 1\n ? group.first\n : group.kind === 'stale_dataset'\n ? `${String(group.count)} cases were judged against a table that could not answer; the first is ${group.first}`\n : `${String(group.count)} cases did not hold; the first is ${group.first}`,\n });\n }\n\n const suites = suiteDocuments.map((suite) =>\n runScenarioSuite(compiled, suite, { datasets: documents, environment: committed, behaviour }),\n );\n const suiteFailures = suites.flatMap((report, suiteIndex) =>\n judgeSuite(report, suiteIndex, tallies, observed, compiled, stubs),\n );\n failures.push(...suiteFailures);\n\n return finish(\n compiled,\n {\n behaviour,\n environment: committed,\n datasetHashes: pins.pins,\n coverage: coverageOf(tallies),\n observedOnly: dedupeObserved(observed),\n vectors,\n suites,\n failures,\n },\n declarations,\n );\n}\n\n/**\n * The hint list without repeats: one entry per target and reason, however many scenarios showed\n * it. A hint says \"assert this\", so a run that observed it twice still has one thing to write.\n */\nfunction dedupeObserved(observed: readonly ObservedOnly[]): readonly ObservedOnly[] {\n const seen = new Set<string>();\n return observed.filter((entry) => {\n const key = JSON.stringify([entry.refusal, entry.target]);\n if (seen.has(key)) return false;\n seen.add(key);\n return true;\n });\n}\n\n/** One claim a suite made that did not hold, kept so the suite states one gap and names the first. */\ninterface FailedClaim {\n readonly scenarioIndex: number;\n readonly ruleId: string | undefined;\n /** The claim as the run states it: its scenario, its target and what was observed instead. */\n readonly text: string;\n}\n\n/**\n * Judges one suite against the artifact: its stale cases, its failed claims, and the credit that\n * counts.\n *\n * A suite states one gap however many of its claims failed, naming the count and the first. A gap\n * per claim would make a stored report as large as the failure it records — the thing the report's\n * shape exists to avoid — and would print the same matrix the command already prints under\n * `--max-diagnostics`. Every claim stays in the run's transcript and in those capped lines. The\n * same bound holds for stale cases: one scenario's stale table is usually every scenario's, so\n * the suite names the first case and the count.\n */\nfunction judgeSuite(\n report: ScenarioSuiteReport,\n suiteIndex: number,\n tallies: Map<string, CoverageTally>,\n observed: ObservedOnly[],\n compiled: CompiledSchema,\n stubs: ReadonlySet<string>,\n): readonly PublishGap[] {\n const suitePath = `$.suites[${String(suiteIndex)}]`;\n if (report.status === 'invalid') {\n // A refused suite ran nothing, so it contributes no coverage and its reasons are one gap; the\n // report's own diagnostics carry every reason, and the command prints them under the cap.\n const [first] = report.diagnostics;\n if (first === undefined) {\n throw new Error('the scenario runner reported an invalid suite with no diagnostic');\n }\n return [\n {\n kind: 'invalid_suite',\n path: suitePath,\n detail:\n report.diagnostics.length === 1\n ? `the suite was refused: ${first.path}: ${first.detail}`\n : `the suite was refused for ${String(report.diagnostics.length)} reasons; the first is ${first.path}: ${first.detail}`,\n },\n ];\n }\n const gaps: PublishGap[] = [];\n const stale = report.scenarios.flatMap((scenario, scenarioIndex) =>\n scenario.stale === undefined ? [] : [{ scenario, scenarioIndex, first: scenario.stale[0] }],\n );\n const [firstStale] = stale;\n if (firstStale !== undefined) {\n const table = firstStale.first;\n const text =\n table === undefined\n ? ''\n : `table \\`${table.tableId}\\` could not answer at the pinned version (${table.reason})`;\n gaps.push({\n kind: 'stale_dataset',\n path: `${suitePath}.scenarios[${String(firstStale.scenarioIndex)}]`,\n detail:\n stale.length === 1\n ? `scenario \\`${firstStale.scenario.scenarioId}\\`: ${text}`\n : `${String(stale.length)} scenarios were judged against a table that could not answer; the first is scenario \\`${firstStale.scenario.scenarioId}\\`: ${text}`,\n });\n }\n const failed: FailedClaim[] = [];\n for (const [scenarioIndex, scenario] of report.scenarios.entries()) {\n for (const assertion of scenario.assertions) {\n const named = ruleIdOf(assertion.target, compiled);\n if (!assertion.passed) {\n const tally = named === undefined ? undefined : tallies.get(named);\n if (tally !== undefined) tally.attempts += 1;\n failed.push({\n scenarioIndex,\n ruleId: named,\n text: `scenario \\`${scenario.scenarioId}\\`: ${describeTarget(assertion.target)}: ${assertion.detail}`,\n });\n continue;\n }\n if (!assertion.credit.coverageEligible) {\n if (named !== undefined) {\n const tally = tallies.get(named);\n if (tally !== undefined) tally.attempts += 1;\n }\n observed.push({ target: assertion.target, refusal: assertion.credit.refusal });\n continue;\n }\n // A coverage-eligible subject names the rule its evidence is about, but only a rule's own\n // observation proves one of its branches: a gate item's `PASS` does not imply its gate\n // passed, so counting it as the gate's non-firing branch would let a suite satisfy a gate no\n // case ever observed opening. The attempt still counts, so a gate covered only through its\n // items is told the branch is missing rather than that nothing mentioned the rule.\n const tally = tallies.get(assertion.credit.subject.ruleId);\n if (tally === undefined) continue;\n tally.attempts += 1;\n if (assertion.credit.subject.kind === 'gateItem') continue;\n if (stubs.has(assertion.credit.subject.ruleId)) {\n // The rule is the literal stub a device artifact carries: the case observed the stub, not\n // the authored check, so it proves no branch of it.\n observed.push({ target: assertion.target, refusal: 'undecided' });\n continue;\n }\n if (assertion.credit.fired) tally.firing = true;\n else tally.nonFiring = true;\n }\n for (const observation of scenario.unasserted) {\n observed.push({ target: observation.target, refusal: observation.credit.refusal });\n }\n }\n const [first] = failed;\n if (first !== undefined) {\n gaps.push({\n kind: 'failed_scenario',\n ...(first.ruleId === undefined ? {} : { ruleId: first.ruleId }),\n path: `${suitePath}.scenarios[${String(first.scenarioIndex)}]`,\n detail:\n failed.length === 1\n ? first.text\n : `${String(failed.length)} assertions did not hold; the first is ${first.text}`,\n });\n }\n return gaps;\n}\n\n/** The tallies as the ordered coverage the report states, in artifact rule order. */\nfunction coverageOf(tallies: ReadonlyMap<string, CoverageTally>): readonly RuleCoverage[] {\n return [...tallies].map(([ruleId, tally]) => ({\n ruleId,\n kind: tally.kind,\n attempts: tally.attempts,\n firing: tally.firing,\n nonFiring: tally.nonFiring,\n }));\n}\n\n/**\n * The baseline a refused run states: the caller's declaration, minus a tier no run may judge at.\n *\n * The declaration is the one member a refusal still reports, and it must be a value the\n * `PublishEnvironment` contract admits: an invalid tier is named by the gap instead, and the\n * report falls back to `DEFAULT_EVIDENCE_TIER` for the member no run could have used.\n */\nfunction refusalBaseline(declared: DeclaredEnvironment | undefined): PublishEnvironment {\n if (declared === undefined) return normalizeEnvironment({});\n return normalizeEnvironment({\n ...(declared.tier === undefined || !isTier(declared.tier) ? {} : { tier: declared.tier }),\n ...(declared.recordDate === undefined ? {} : { recordDate: declared.recordDate }),\n ...(declared.capabilities === undefined ? {} : { capabilities: declared.capabilities }),\n });\n}\n\n/**\n * A run that was refused before executing anything, with the environment it states.\n *\n * A stored report always names the environment it was asked to judge under, so the refusal paths\n * state the same members a completed run does; nothing is credited, and the gap says why.\n */\nfunction refusedRun(\n behaviorHash: string,\n environment: PublishEnvironment,\n gaps: readonly PublishGap[],\n tallies: ReadonlyMap<string, CoverageTally>,\n datasetHashes: readonly ResolvedDatasetPin[],\n): PublishVerification {\n const environmentHash = environmentHashOf(environment);\n return {\n ready: false,\n gaps,\n behaviorHash,\n environment,\n environmentHash,\n evidenceHash: evidenceHashOf({\n behaviorHash,\n environmentHash,\n datasetHashes,\n vectors: [],\n suites: [],\n }),\n datasetHashes,\n coverage: coverageOf(tallies),\n observedOnly: [],\n vectors: [],\n suites: [],\n };\n}\n\n/** Derives the verdict from the run and attaches the executed evidence to it. */\nfunction finish(\n compiled: CompiledSchema,\n run: {\n readonly behaviour: ArtifactBehaviour;\n readonly environment: PublishEnvironment;\n readonly datasetHashes: readonly ResolvedDatasetPin[];\n readonly coverage: readonly RuleCoverage[];\n readonly observedOnly: readonly ObservedOnly[];\n readonly vectors: readonly EmbeddedVector[];\n readonly suites: readonly ScenarioSuiteReport[];\n readonly failures: readonly PublishGap[];\n },\n declarations: readonly DeclaredRuleOrigin[],\n): PublishVerification {\n const behaviorHash = run.behaviour.behaviorHash;\n const evidence: PublishEvidence = {\n behaviorHash,\n coverage: run.coverage,\n failures: run.failures,\n };\n const verdict = readinessGaps(compiled, evidence, run.behaviour, declarations);\n const environmentHash = environmentHashOf(run.environment);\n // The failures are the fold's input and are stated once, as gaps; the report carries what the\n // run executed and what it proved, not a second copy of why it is not ready.\n const executed = {\n behaviorHash,\n environment: run.environment,\n environmentHash,\n evidenceHash: evidenceHashOf({\n behaviorHash,\n environmentHash,\n datasetHashes: run.datasetHashes,\n vectors: run.vectors,\n suites: run.suites,\n }),\n datasetHashes: run.datasetHashes,\n coverage: run.coverage,\n observedOnly: run.observedOnly,\n vectors: run.vectors,\n suites: run.suites,\n };\n return verdict.ready\n ? { ready: true, ...executed }\n : { ready: false, gaps: verdict.gaps, ...executed };\n}\n\n/**\n * The digest of the evidence a run executed, bound to the artifact, the environment and the\n * table versions.\n *\n * The run's own transcript is projected rather than hashed whole: a report's identity is which\n * vectors and which assertions ran, what each proved, in which environment and against which\n * pins, not the prose of a failed scenario's trace. `behaviorHash` alone cannot distinguish two\n * suites — `testCases` are presentation to it (`RULES-5.1.2`) — and a decision is a function of\n * its environment, so the digest covers the baseline and every vector's and scenario's own\n * effective environment. A case that overrode the baseline with another record date, tier or\n * capability set is a different decision even when every verdict reads the same, and a gate that\n * stores a report names the evidence rather than only the artifact.\n *\n * Deliberately not folded: `ready`, `gaps`, `coverage` and `observedOnly`. Each is derived from\n * this evidence by `readinessGaps` over the same artifact and its rules, which `behaviorHash`\n * commits, so a run that folds to one digest cannot fold to two verdicts. The digest commits what\n * executed, not the conclusion drawn from it.\n */\nfunction evidenceHashOf(run: {\n readonly behaviorHash: string;\n readonly environmentHash: string;\n readonly datasetHashes: readonly ResolvedDatasetPin[];\n readonly vectors: readonly EmbeddedVector[];\n readonly suites: readonly ScenarioSuiteReport[];\n}): string {\n return canonicalHash({\n behaviorHash: run.behaviorHash,\n environmentHash: run.environmentHash,\n datasetHashes: run.datasetHashes,\n vectors: run.vectors.map((vector) => ({\n ruleId: vector.ruleId,\n path: vector.path,\n position: vector.position,\n caseId: vector.caseId ?? null,\n environment: vector.environment ?? null,\n verdict: vector.verdict.ok\n ? { ok: true, credit: vector.verdict.credit }\n : { ok: false, kind: vector.verdict.kind, detail: vector.verdict.detail },\n })),\n suites: run.suites.map((suite) =>\n suite.status === 'invalid'\n ? { status: suite.status, diagnostics: suite.diagnostics }\n : {\n status: suite.status,\n behaviorHash: suite.behaviorHash,\n datasetHashes: suite.datasetHashes,\n environment: suite.environment,\n scenarios: suite.scenarios.map((scenario) => ({\n scenarioId: scenario.scenarioId,\n status: scenario.status,\n environment: scenario.environment,\n reportHash: scenario.reportHash,\n assertions: scenario.assertions.map((assertion) =>\n assertion.passed\n ? { target: assertion.target, passed: true, credit: assertion.credit }\n : { target: assertion.target, passed: false, detail: assertion.detail },\n ),\n unasserted: scenario.unasserted,\n })),\n },\n ),\n });\n}\n"]}
@@ -0,0 +1,36 @@
1
+ import type { Observation, RuleKind } from '@azx-pbc/axiom-runtime';
2
+ import type { CreditRefusal } from './report.js';
3
+ /**
4
+ * Why one observation proves no branch of a rule's firing table.
5
+ *
6
+ * The same vocabulary a scenario assertion records, so a vector and a suite state one fact one
7
+ * way: `deferred` means the rule did not run, and `undecided` means it ran and decided nothing.
8
+ * They are kept apart because a publisher repairs them differently — one is an environment, the
9
+ * other a record the case should have stated.
10
+ */
11
+ export type BranchRefusal = CreditRefusal;
12
+ /**
13
+ * Whether one observation is evidence of a rule's firing table, and of which branch.
14
+ *
15
+ * This is the one answer both evidence paths read: an embedded vector's declared or executed
16
+ * observation, and a scenario assertion the runner credited. The branch comes from the runtime
17
+ * firing table, so a kind's non-firing case is the kind's own answer (`UNKNOWN` is a writer's
18
+ * non-firing case, and a case that decided nothing for every other kind), never "any outcome
19
+ * that is not firing".
20
+ */
21
+ export type BranchCredit = {
22
+ readonly coverageEligible: true;
23
+ readonly fired: boolean;
24
+ } | {
25
+ readonly coverageEligible: false;
26
+ readonly refusal: BranchRefusal;
27
+ };
28
+ /**
29
+ * The branch one observation proves, or the refusal that it proves none.
30
+ *
31
+ * An observation that decides neither branch is not counted as the non-firing one: a
32
+ * `visible`/`required`/`enabled` rule asserted `UNKNOWN` would otherwise report a rule publishable
33
+ * without any case in which it ever refuses, which is the guarantee publishing exists to state.
34
+ */
35
+ export declare function branchCredit(kind: RuleKind, observation: Observation): BranchCredit;
36
+ //# sourceMappingURL=branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch.d.ts","sourceRoot":"","sources":["../../src/scenarios/branch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC;AAgB1E;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,GAAG,YAAY,CAMnF"}
@@ -0,0 +1,30 @@
1
+ import { assertNever, firingBranch } from '@azx-pbc/axiom-runtime';
2
+ /** Whether the observation states that the rule deferred rather than decided. */
3
+ function isDeferred(observation) {
4
+ switch (observation.kind) {
5
+ case 'outcome':
6
+ return observation.outcome === 'DEFERRED';
7
+ case 'screen':
8
+ return observation.outcome === 'DEFERRED';
9
+ case 'value':
10
+ return false;
11
+ default:
12
+ return assertNever(observation);
13
+ }
14
+ }
15
+ /**
16
+ * The branch one observation proves, or the refusal that it proves none.
17
+ *
18
+ * An observation that decides neither branch is not counted as the non-firing one: a
19
+ * `visible`/`required`/`enabled` rule asserted `UNKNOWN` would otherwise report a rule publishable
20
+ * without any case in which it ever refuses, which is the guarantee publishing exists to state.
21
+ */
22
+ export function branchCredit(kind, observation) {
23
+ if (isDeferred(observation))
24
+ return { coverageEligible: false, refusal: 'deferred' };
25
+ const fired = firingBranch(kind, observation);
26
+ return fired === undefined
27
+ ? { coverageEligible: false, refusal: 'undecided' }
28
+ : { coverageEligible: true, fired };
29
+ }
30
+ //# sourceMappingURL=branch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch.js","sourceRoot":"","sources":["../../src/scenarios/branch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA2BnE,iFAAiF;AACjF,SAAS,UAAU,CAAC,WAAwB;IAC1C,QAAQ,WAAW,CAAC,IAAI,EAAE,CAAC;QACzB,KAAK,SAAS;YACZ,OAAO,WAAW,CAAC,OAAO,KAAK,UAAU,CAAC;QAC5C,KAAK,QAAQ;YACX,OAAO,WAAW,CAAC,OAAO,KAAK,UAAU,CAAC;QAC5C,KAAK,OAAO;YACV,OAAO,KAAK,CAAC;QACf;YACE,OAAO,WAAW,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,WAAwB;IACnE,IAAI,UAAU,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACrF,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC9C,OAAO,KAAK,KAAK,SAAS;QACxB,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE;QACnD,CAAC,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACxC,CAAC","sourcesContent":["import { assertNever, firingBranch } from '@azx-pbc/axiom-runtime';\nimport type { Observation, RuleKind } from '@azx-pbc/axiom-runtime';\nimport type { CreditRefusal } from './report.js';\n\n/**\n * Why one observation proves no branch of a rule's firing table.\n *\n * The same vocabulary a scenario assertion records, so a vector and a suite state one fact one\n * way: `deferred` means the rule did not run, and `undecided` means it ran and decided nothing.\n * They are kept apart because a publisher repairs them differently — one is an environment, the\n * other a record the case should have stated.\n */\nexport type BranchRefusal = CreditRefusal;\n\n/**\n * Whether one observation is evidence of a rule's firing table, and of which branch.\n *\n * This is the one answer both evidence paths read: an embedded vector's declared or executed\n * observation, and a scenario assertion the runner credited. The branch comes from the runtime\n * firing table, so a kind's non-firing case is the kind's own answer (`UNKNOWN` is a writer's\n * non-firing case, and a case that decided nothing for every other kind), never \"any outcome\n * that is not firing\".\n */\nexport type BranchCredit =\n | { readonly coverageEligible: true; readonly fired: boolean }\n | { readonly coverageEligible: false; readonly refusal: BranchRefusal };\n\n/** Whether the observation states that the rule deferred rather than decided. */\nfunction isDeferred(observation: Observation): boolean {\n switch (observation.kind) {\n case 'outcome':\n return observation.outcome === 'DEFERRED';\n case 'screen':\n return observation.outcome === 'DEFERRED';\n case 'value':\n return false;\n default:\n return assertNever(observation);\n }\n}\n\n/**\n * The branch one observation proves, or the refusal that it proves none.\n *\n * An observation that decides neither branch is not counted as the non-firing one: a\n * `visible`/`required`/`enabled` rule asserted `UNKNOWN` would otherwise report a rule publishable\n * without any case in which it ever refuses, which is the guarantee publishing exists to state.\n */\nexport function branchCredit(kind: RuleKind, observation: Observation): BranchCredit {\n if (isDeferred(observation)) return { coverageEligible: false, refusal: 'deferred' };\n const fired = firingBranch(kind, observation);\n return fired === undefined\n ? { coverageEligible: false, refusal: 'undecided' }\n : { coverageEligible: true, fired };\n}\n"]}
@@ -0,0 +1,89 @@
1
+ import type { CompiledSchema, EvaluationEnv, EvaluationInput } from '@azx-pbc/axiom-runtime';
2
+ import type { ScenarioSuiteDocument } from './document.js';
3
+ import type { AssertionTarget, CreditRefusal, ScenarioDiagnostic } from './report.js';
4
+ /**
5
+ * Capturing a record as a scenario the suite can replay.
6
+ *
7
+ * The report is never accepted from a caller: it is derived from the same `(compiled, input,
8
+ * env)` the captured suite will replay, so evidence minted here belongs to an evaluation that
9
+ * actually happened. The targets are explicit for the same reason — a capture asserts what the
10
+ * caller asked it to assert, never everything the evaluation happened to observe.
11
+ *
12
+ * The record the suite states never carries a value the submission withholds: a masked or
13
+ * redacted member the overlay kept out of the export would otherwise be written into the file a
14
+ * team commits. When the submission changes a value the caller supplied, the capture writes the
15
+ * projected record and re-evaluates it, so the assertions, the hash and the replay describe one
16
+ * answer; a record whose decision reads a withheld value cannot be replayed from its export and
17
+ * is refused rather than recorded as a different decision.
18
+ *
19
+ * A capture is a recording, not a publish claim: a target whose observation holds but earns no
20
+ * coverage credit — a deferred rule, a version-mismatched lookup, an overridden default — is
21
+ * written down with the observation the run produced and reported back as uncredited, so the
22
+ * replay states the same evidence instead of the capture refusing to record what happened. Only
23
+ * an empty target list, a malformed expectation, a target whose value the submission withholds,
24
+ * and a record the suite cannot state are refused, because those state nothing a replay could
25
+ * assert without publishing something the record does not export.
26
+ */
27
+ /** One thing to assert about the captured record. */
28
+ export type CaptureTarget = {
29
+ readonly kind: 'rule';
30
+ readonly ruleId: string;
31
+ readonly rowKey?: string | number;
32
+ } | {
33
+ readonly kind: 'gateItem';
34
+ readonly ruleId: string;
35
+ readonly itemId: string;
36
+ } | {
37
+ readonly kind: 'computed';
38
+ readonly fieldId: string;
39
+ } | {
40
+ readonly kind: 'hiddenField';
41
+ readonly fieldId: string;
42
+ };
43
+ /**
44
+ * A captured assertion that holds on replay but proves nothing about a rule's branch.
45
+ *
46
+ * The vocabulary the suite report uses: the target the assertion names and the reason it earns
47
+ * no coverage credit. A consumer that reads the capture as publish evidence must skip these, and
48
+ * one that reads it as a recording keeps them.
49
+ */
50
+ export interface CapturedObservation {
51
+ readonly target: AssertionTarget;
52
+ readonly refusal: CreditRefusal;
53
+ }
54
+ /** What to capture: the scenario's identity and the assertions it must make. */
55
+ export interface CaptureOptions {
56
+ readonly scenarioId: string;
57
+ readonly description?: string;
58
+ readonly targets: readonly CaptureTarget[];
59
+ }
60
+ /** A captured suite, or why the record could not become one. */
61
+ export type CaptureResult = {
62
+ readonly ok: true;
63
+ /** A one-scenario suite that replays to the same decision. */
64
+ readonly suite: ScenarioSuiteDocument;
65
+ /** The suite's canonical text, which is the document a caller writes and reads back. */
66
+ readonly text: string;
67
+ /** The digest of the report this capture derived, from the same evaluation. */
68
+ readonly reportHash: string;
69
+ /**
70
+ * The assertions that hold on replay but earn no coverage credit, each with the reason.
71
+ * Empty when every captured observation is evidence; never a reason to refuse the capture.
72
+ */
73
+ readonly observedOnly: readonly CapturedObservation[];
74
+ } | {
75
+ readonly ok: false;
76
+ readonly diagnostics: readonly ScenarioDiagnostic[];
77
+ };
78
+ /**
79
+ * Captures one evaluated record as a one-scenario suite.
80
+ *
81
+ * The capture evaluates once, so the assertions, the hashes and the replay all describe one
82
+ * answer. A target that names something the artifact does not declare or that produced no result
83
+ * is refused with its reason, because there is no observation to record. A target that observed
84
+ * a fact earning no coverage credit is recorded and listed in `observedOnly`: the capture is a
85
+ * recording of what happened, and refusing it would hide the stale or deferred evidence a
86
+ * publisher most needs to read.
87
+ */
88
+ export declare function captureScenario(compiled: CompiledSchema, input: EvaluationInput, env: EvaluationEnv, options: CaptureOptions): CaptureResult;
89
+ //# sourceMappingURL=capture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/scenarios/capture.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EACb,eAAe,EAMhB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAqB,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,qDAAqD;AACrD,MAAM,MAAM,aAAa,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GACrF;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,M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