@azx-pbc/axiom-runtime 0.0.0-stage → 0.0.1

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 (755) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +714 -2
  3. package/dist/cache/index.d.ts +191 -0
  4. package/dist/cache/index.d.ts.map +1 -0
  5. package/dist/cache/index.js +361 -0
  6. package/dist/cache/index.js.map +1 -0
  7. package/dist/canonical/jcs.d.ts +78 -0
  8. package/dist/canonical/jcs.d.ts.map +1 -0
  9. package/dist/canonical/jcs.js +500 -0
  10. package/dist/canonical/jcs.js.map +1 -0
  11. package/dist/canonical/restricted-json.d.ts +7 -0
  12. package/dist/canonical/restricted-json.d.ts.map +1 -0
  13. package/dist/canonical/restricted-json.js +318 -0
  14. package/dist/canonical/restricted-json.js.map +1 -0
  15. package/dist/canonical/restricted-value.d.ts +59 -0
  16. package/dist/canonical/restricted-value.d.ts.map +1 -0
  17. package/dist/canonical/restricted-value.js +156 -0
  18. package/dist/canonical/restricted-value.js.map +1 -0
  19. package/dist/canonical/restricted.d.ts +85 -0
  20. package/dist/canonical/restricted.d.ts.map +1 -0
  21. package/dist/canonical/restricted.js +163 -0
  22. package/dist/canonical/restricted.js.map +1 -0
  23. package/dist/canonical/signature.d.ts +38 -0
  24. package/dist/canonical/signature.d.ts.map +1 -0
  25. package/dist/canonical/signature.js +47 -0
  26. package/dist/canonical/signature.js.map +1 -0
  27. package/dist/eval/access/delivery.d.ts +63 -0
  28. package/dist/eval/access/delivery.d.ts.map +1 -0
  29. package/dist/eval/access/delivery.js +98 -0
  30. package/dist/eval/access/delivery.js.map +1 -0
  31. package/dist/eval/access/overlay.d.ts +72 -0
  32. package/dist/eval/access/overlay.d.ts.map +1 -0
  33. package/dist/eval/access/overlay.js +402 -0
  34. package/dist/eval/access/overlay.js.map +1 -0
  35. package/dist/eval/access/projection.d.ts +159 -0
  36. package/dist/eval/access/projection.d.ts.map +1 -0
  37. package/dist/eval/access/projection.js +211 -0
  38. package/dist/eval/access/projection.js.map +1 -0
  39. package/dist/eval/access/window.d.ts +128 -0
  40. package/dist/eval/access/window.d.ts.map +1 -0
  41. package/dist/eval/access/window.js +254 -0
  42. package/dist/eval/access/window.js.map +1 -0
  43. package/dist/eval/access/write.d.ts +113 -0
  44. package/dist/eval/access/write.d.ts.map +1 -0
  45. package/dist/eval/access/write.js +119 -0
  46. package/dist/eval/access/write.js.map +1 -0
  47. package/dist/eval/addressing.d.ts +131 -0
  48. package/dist/eval/addressing.d.ts.map +1 -0
  49. package/dist/eval/addressing.js +270 -0
  50. package/dist/eval/addressing.js.map +1 -0
  51. package/dist/eval/budget.d.ts +143 -0
  52. package/dist/eval/budget.d.ts.map +1 -0
  53. package/dist/eval/budget.js +387 -0
  54. package/dist/eval/budget.js.map +1 -0
  55. package/dist/eval/computed.d.ts +46 -0
  56. package/dist/eval/computed.d.ts.map +1 -0
  57. package/dist/eval/computed.js +89 -0
  58. package/dist/eval/computed.js.map +1 -0
  59. package/dist/eval/denials.d.ts +64 -0
  60. package/dist/eval/denials.d.ts.map +1 -0
  61. package/dist/eval/denials.js +87 -0
  62. package/dist/eval/denials.js.map +1 -0
  63. package/dist/eval/engine/cancellation.d.ts +12 -0
  64. package/dist/eval/engine/cancellation.d.ts.map +1 -0
  65. package/dist/eval/engine/cancellation.js +56 -0
  66. package/dist/eval/engine/cancellation.js.map +1 -0
  67. package/dist/eval/engine/delta.d.ts +104 -0
  68. package/dist/eval/engine/delta.d.ts.map +1 -0
  69. package/dist/eval/engine/delta.js +466 -0
  70. package/dist/eval/engine/delta.js.map +1 -0
  71. package/dist/eval/engine/deps.d.ts +136 -0
  72. package/dist/eval/engine/deps.d.ts.map +1 -0
  73. package/dist/eval/engine/deps.js +345 -0
  74. package/dist/eval/engine/deps.js.map +1 -0
  75. package/dist/eval/engine/identity.d.ts +128 -0
  76. package/dist/eval/engine/identity.d.ts.map +1 -0
  77. package/dist/eval/engine/identity.js +398 -0
  78. package/dist/eval/engine/identity.js.map +1 -0
  79. package/dist/eval/engine/index.d.ts +200 -0
  80. package/dist/eval/engine/index.d.ts.map +1 -0
  81. package/dist/eval/engine/index.js +1242 -0
  82. package/dist/eval/engine/index.js.map +1 -0
  83. package/dist/eval/engine/measurement.d.ts +23 -0
  84. package/dist/eval/engine/measurement.d.ts.map +1 -0
  85. package/dist/eval/engine/measurement.js +42 -0
  86. package/dist/eval/engine/measurement.js.map +1 -0
  87. package/dist/eval/engine/naive.d.ts +19 -0
  88. package/dist/eval/engine/naive.d.ts.map +1 -0
  89. package/dist/eval/engine/naive.js +59 -0
  90. package/dist/eval/engine/naive.js.map +1 -0
  91. package/dist/eval/engine/ops.d.ts +214 -0
  92. package/dist/eval/engine/ops.d.ts.map +1 -0
  93. package/dist/eval/engine/ops.js +1422 -0
  94. package/dist/eval/engine/ops.js.map +1 -0
  95. package/dist/eval/engine/patches.d.ts +40 -0
  96. package/dist/eval/engine/patches.d.ts.map +1 -0
  97. package/dist/eval/engine/patches.js +125 -0
  98. package/dist/eval/engine/patches.js.map +1 -0
  99. package/dist/eval/engine/ports.d.ts +71 -0
  100. package/dist/eval/engine/ports.d.ts.map +1 -0
  101. package/dist/eval/engine/ports.js +2 -0
  102. package/dist/eval/engine/ports.js.map +1 -0
  103. package/dist/eval/engine/session.d.ts +116 -0
  104. package/dist/eval/engine/session.d.ts.map +1 -0
  105. package/dist/eval/engine/session.js +653 -0
  106. package/dist/eval/engine/session.js.map +1 -0
  107. package/dist/eval/engine/snapshot.d.ts +97 -0
  108. package/dist/eval/engine/snapshot.d.ts.map +1 -0
  109. package/dist/eval/engine/snapshot.js +221 -0
  110. package/dist/eval/engine/snapshot.js.map +1 -0
  111. package/dist/eval/engine/subscriptions.d.ts +47 -0
  112. package/dist/eval/engine/subscriptions.d.ts.map +1 -0
  113. package/dist/eval/engine/subscriptions.js +103 -0
  114. package/dist/eval/engine/subscriptions.js.map +1 -0
  115. package/dist/eval/engine/trace.d.ts +77 -0
  116. package/dist/eval/engine/trace.d.ts.map +1 -0
  117. package/dist/eval/engine/trace.js +140 -0
  118. package/dist/eval/engine/trace.js.map +1 -0
  119. package/dist/eval/error-diagnostic.d.ts +26 -0
  120. package/dist/eval/error-diagnostic.d.ts.map +1 -0
  121. package/dist/eval/error-diagnostic.js +63 -0
  122. package/dist/eval/error-diagnostic.js.map +1 -0
  123. package/dist/eval/evaluate-expr.d.ts +44 -0
  124. package/dist/eval/evaluate-expr.d.ts.map +1 -0
  125. package/dist/eval/evaluate-expr.js +149 -0
  126. package/dist/eval/evaluate-expr.js.map +1 -0
  127. package/dist/eval/evaluate.d.ts +282 -0
  128. package/dist/eval/evaluate.d.ts.map +1 -0
  129. package/dist/eval/evaluate.js +391 -0
  130. package/dist/eval/evaluate.js.map +1 -0
  131. package/dist/eval/evolution/relocate.d.ts +72 -0
  132. package/dist/eval/evolution/relocate.d.ts.map +1 -0
  133. package/dist/eval/evolution/relocate.js +427 -0
  134. package/dist/eval/evolution/relocate.js.map +1 -0
  135. package/dist/eval/evolution/select.d.ts +11 -0
  136. package/dist/eval/evolution/select.d.ts.map +1 -0
  137. package/dist/eval/evolution/select.js +53 -0
  138. package/dist/eval/evolution/select.js.map +1 -0
  139. package/dist/eval/evolution/upcast.d.ts +13 -0
  140. package/dist/eval/evolution/upcast.d.ts.map +1 -0
  141. package/dist/eval/evolution/upcast.js +88 -0
  142. package/dist/eval/evolution/upcast.js.map +1 -0
  143. package/dist/eval/expr/aggregates.d.ts +75 -0
  144. package/dist/eval/expr/aggregates.d.ts.map +1 -0
  145. package/dist/eval/expr/aggregates.js +991 -0
  146. package/dist/eval/expr/aggregates.js.map +1 -0
  147. package/dist/eval/expr/arithmetic.d.ts +26 -0
  148. package/dist/eval/expr/arithmetic.d.ts.map +1 -0
  149. package/dist/eval/expr/arithmetic.js +387 -0
  150. package/dist/eval/expr/arithmetic.js.map +1 -0
  151. package/dist/eval/expr/between.d.ts +17 -0
  152. package/dist/eval/expr/between.d.ts.map +1 -0
  153. package/dist/eval/expr/between.js +46 -0
  154. package/dist/eval/expr/between.js.map +1 -0
  155. package/dist/eval/expr/binder.d.ts +96 -0
  156. package/dist/eval/expr/binder.d.ts.map +1 -0
  157. package/dist/eval/expr/binder.js +253 -0
  158. package/dist/eval/expr/binder.js.map +1 -0
  159. package/dist/eval/expr/call-dispatch.d.ts +28 -0
  160. package/dist/eval/expr/call-dispatch.d.ts.map +1 -0
  161. package/dist/eval/expr/call-dispatch.js +114 -0
  162. package/dist/eval/expr/call-dispatch.js.map +1 -0
  163. package/dist/eval/expr/collections.d.ts +20 -0
  164. package/dist/eval/expr/collections.d.ts.map +1 -0
  165. package/dist/eval/expr/collections.js +66 -0
  166. package/dist/eval/expr/collections.js.map +1 -0
  167. package/dist/eval/expr/compare.d.ts +36 -0
  168. package/dist/eval/expr/compare.d.ts.map +1 -0
  169. package/dist/eval/expr/compare.js +115 -0
  170. package/dist/eval/expr/compare.js.map +1 -0
  171. package/dist/eval/expr/datasets.d.ts +28 -0
  172. package/dist/eval/expr/datasets.d.ts.map +1 -0
  173. package/dist/eval/expr/datasets.js +304 -0
  174. package/dist/eval/expr/datasets.js.map +1 -0
  175. package/dist/eval/expr/digest.d.ts +23 -0
  176. package/dist/eval/expr/digest.d.ts.map +1 -0
  177. package/dist/eval/expr/digest.js +89 -0
  178. package/dist/eval/expr/digest.js.map +1 -0
  179. package/dist/eval/expr/domains.d.ts +19 -0
  180. package/dist/eval/expr/domains.d.ts.map +1 -0
  181. package/dist/eval/expr/domains.js +18 -0
  182. package/dist/eval/expr/domains.js.map +1 -0
  183. package/dist/eval/expr/host.d.ts +152 -0
  184. package/dist/eval/expr/host.d.ts.map +1 -0
  185. package/dist/eval/expr/host.js +36 -0
  186. package/dist/eval/expr/host.js.map +1 -0
  187. package/dist/eval/expr/lists.d.ts +24 -0
  188. package/dist/eval/expr/lists.d.ts.map +1 -0
  189. package/dist/eval/expr/lists.js +155 -0
  190. package/dist/eval/expr/lists.js.map +1 -0
  191. package/dist/eval/expr/member.d.ts +15 -0
  192. package/dist/eval/expr/member.d.ts.map +1 -0
  193. package/dist/eval/expr/member.js +32 -0
  194. package/dist/eval/expr/member.js.map +1 -0
  195. package/dist/eval/expr/money-ops.d.ts +10 -0
  196. package/dist/eval/expr/money-ops.d.ts.map +1 -0
  197. package/dist/eval/expr/money-ops.js +17 -0
  198. package/dist/eval/expr/money-ops.js.map +1 -0
  199. package/dist/eval/expr/operands.d.ts +27 -0
  200. package/dist/eval/expr/operands.d.ts.map +1 -0
  201. package/dist/eval/expr/operands.js +167 -0
  202. package/dist/eval/expr/operands.js.map +1 -0
  203. package/dist/eval/expr/presence.d.ts +27 -0
  204. package/dist/eval/expr/presence.d.ts.map +1 -0
  205. package/dist/eval/expr/presence.js +140 -0
  206. package/dist/eval/expr/presence.js.map +1 -0
  207. package/dist/eval/expr/records.d.ts +22 -0
  208. package/dist/eval/expr/records.d.ts.map +1 -0
  209. package/dist/eval/expr/records.js +101 -0
  210. package/dist/eval/expr/records.js.map +1 -0
  211. package/dist/eval/expr/rule-refs.d.ts +25 -0
  212. package/dist/eval/expr/rule-refs.d.ts.map +1 -0
  213. package/dist/eval/expr/rule-refs.js +60 -0
  214. package/dist/eval/expr/rule-refs.js.map +1 -0
  215. package/dist/eval/expr/sequences.d.ts +26 -0
  216. package/dist/eval/expr/sequences.d.ts.map +1 -0
  217. package/dist/eval/expr/sequences.js +151 -0
  218. package/dist/eval/expr/sequences.js.map +1 -0
  219. package/dist/eval/expr/value.d.ts +99 -0
  220. package/dist/eval/expr/value.d.ts.map +1 -0
  221. package/dist/eval/expr/value.js +14 -0
  222. package/dist/eval/expr/value.js.map +1 -0
  223. package/dist/eval/expression.d.ts +142 -0
  224. package/dist/eval/expression.d.ts.map +1 -0
  225. package/dist/eval/expression.js +446 -0
  226. package/dist/eval/expression.js.map +1 -0
  227. package/dist/eval/firing.d.ts +68 -0
  228. package/dist/eval/firing.d.ts.map +1 -0
  229. package/dist/eval/firing.js +222 -0
  230. package/dist/eval/firing.js.map +1 -0
  231. package/dist/eval/gate.d.ts +110 -0
  232. package/dist/eval/gate.d.ts.map +1 -0
  233. package/dist/eval/gate.js +278 -0
  234. package/dist/eval/gate.js.map +1 -0
  235. package/dist/eval/layout-visibility.d.ts +18 -0
  236. package/dist/eval/layout-visibility.d.ts.map +1 -0
  237. package/dist/eval/layout-visibility.js +61 -0
  238. package/dist/eval/layout-visibility.js.map +1 -0
  239. package/dist/eval/option-availability.d.ts +26 -0
  240. package/dist/eval/option-availability.d.ts.map +1 -0
  241. package/dist/eval/option-availability.js +580 -0
  242. package/dist/eval/option-availability.js.map +1 -0
  243. package/dist/eval/options-boundary.d.ts +15 -0
  244. package/dist/eval/options-boundary.d.ts.map +1 -0
  245. package/dist/eval/options-boundary.js +40 -0
  246. package/dist/eval/options-boundary.js.map +1 -0
  247. package/dist/eval/options.d.ts +99 -0
  248. package/dist/eval/options.d.ts.map +1 -0
  249. package/dist/eval/options.js +96 -0
  250. package/dist/eval/options.js.map +1 -0
  251. package/dist/eval/overrides.d.ts +116 -0
  252. package/dist/eval/overrides.d.ts.map +1 -0
  253. package/dist/eval/overrides.js +176 -0
  254. package/dist/eval/overrides.js.map +1 -0
  255. package/dist/eval/paths.d.ts +25 -0
  256. package/dist/eval/paths.d.ts.map +1 -0
  257. package/dist/eval/paths.js +47 -0
  258. package/dist/eval/paths.js.map +1 -0
  259. package/dist/eval/presentation-reads.d.ts +20 -0
  260. package/dist/eval/presentation-reads.d.ts.map +1 -0
  261. package/dist/eval/presentation-reads.js +2 -0
  262. package/dist/eval/presentation-reads.js.map +1 -0
  263. package/dist/eval/presentation.d.ts +122 -0
  264. package/dist/eval/presentation.d.ts.map +1 -0
  265. package/dist/eval/presentation.js +255 -0
  266. package/dist/eval/presentation.js.map +1 -0
  267. package/dist/eval/reader/context-value.d.ts +41 -0
  268. package/dist/eval/reader/context-value.d.ts.map +1 -0
  269. package/dist/eval/reader/context-value.js +129 -0
  270. package/dist/eval/reader/context-value.js.map +1 -0
  271. package/dist/eval/reader/covered.d.ts +53 -0
  272. package/dist/eval/reader/covered.d.ts.map +1 -0
  273. package/dist/eval/reader/covered.js +139 -0
  274. package/dist/eval/reader/covered.js.map +1 -0
  275. package/dist/eval/reader/declarations.d.ts +182 -0
  276. package/dist/eval/reader/declarations.d.ts.map +1 -0
  277. package/dist/eval/reader/declarations.js +153 -0
  278. package/dist/eval/reader/declarations.js.map +1 -0
  279. package/dist/eval/reader/member-access.d.ts +87 -0
  280. package/dist/eval/reader/member-access.d.ts.map +1 -0
  281. package/dist/eval/reader/member-access.js +212 -0
  282. package/dist/eval/reader/member-access.js.map +1 -0
  283. package/dist/eval/reader/memo.d.ts +34 -0
  284. package/dist/eval/reader/memo.d.ts.map +1 -0
  285. package/dist/eval/reader/memo.js +67 -0
  286. package/dist/eval/reader/memo.js.map +1 -0
  287. package/dist/eval/reader/overlay.d.ts +74 -0
  288. package/dist/eval/reader/overlay.d.ts.map +1 -0
  289. package/dist/eval/reader/overlay.js +365 -0
  290. package/dist/eval/reader/overlay.js.map +1 -0
  291. package/dist/eval/reader/questions.d.ts +37 -0
  292. package/dist/eval/reader/questions.d.ts.map +1 -0
  293. package/dist/eval/reader/questions.js +78 -0
  294. package/dist/eval/reader/questions.js.map +1 -0
  295. package/dist/eval/reader/resolve.d.ts +84 -0
  296. package/dist/eval/reader/resolve.d.ts.map +1 -0
  297. package/dist/eval/reader/resolve.js +310 -0
  298. package/dist/eval/reader/resolve.js.map +1 -0
  299. package/dist/eval/reader/value-read.d.ts +50 -0
  300. package/dist/eval/reader/value-read.d.ts.map +1 -0
  301. package/dist/eval/reader/value-read.js +133 -0
  302. package/dist/eval/reader/value-read.js.map +1 -0
  303. package/dist/eval/reader/withheld.d.ts +48 -0
  304. package/dist/eval/reader/withheld.d.ts.map +1 -0
  305. package/dist/eval/reader/withheld.js +108 -0
  306. package/dist/eval/reader/withheld.js.map +1 -0
  307. package/dist/eval/reader-paths.d.ts +24 -0
  308. package/dist/eval/reader-paths.d.ts.map +1 -0
  309. package/dist/eval/reader-paths.js +23 -0
  310. package/dist/eval/reader-paths.js.map +1 -0
  311. package/dist/eval/reader.d.ts +281 -0
  312. package/dist/eval/reader.d.ts.map +1 -0
  313. package/dist/eval/reader.js +560 -0
  314. package/dist/eval/reader.js.map +1 -0
  315. package/dist/eval/receipt.d.ts +37 -0
  316. package/dist/eval/receipt.d.ts.map +1 -0
  317. package/dist/eval/receipt.js +222 -0
  318. package/dist/eval/receipt.js.map +1 -0
  319. package/dist/eval/report/assemble.d.ts +84 -0
  320. package/dist/eval/report/assemble.d.ts.map +1 -0
  321. package/dist/eval/report/assemble.js +277 -0
  322. package/dist/eval/report/assemble.js.map +1 -0
  323. package/dist/eval/report/fold.d.ts +18 -0
  324. package/dist/eval/report/fold.d.ts.map +1 -0
  325. package/dist/eval/report/fold.js +58 -0
  326. package/dist/eval/report/fold.js.map +1 -0
  327. package/dist/eval/rule/alternatives.d.ts +23 -0
  328. package/dist/eval/rule/alternatives.d.ts.map +1 -0
  329. package/dist/eval/rule/alternatives.js +46 -0
  330. package/dist/eval/rule/alternatives.js.map +1 -0
  331. package/dist/eval/rule/behaviour.d.ts +47 -0
  332. package/dist/eval/rule/behaviour.d.ts.map +1 -0
  333. package/dist/eval/rule/behaviour.js +249 -0
  334. package/dist/eval/rule/behaviour.js.map +1 -0
  335. package/dist/eval/rule/compute.d.ts +46 -0
  336. package/dist/eval/rule/compute.d.ts.map +1 -0
  337. package/dist/eval/rule/compute.js +158 -0
  338. package/dist/eval/rule/compute.js.map +1 -0
  339. package/dist/eval/rule/create-state.d.ts +42 -0
  340. package/dist/eval/rule/create-state.d.ts.map +1 -0
  341. package/dist/eval/rule/create-state.js +134 -0
  342. package/dist/eval/rule/create-state.js.map +1 -0
  343. package/dist/eval/rule/diagnostics.d.ts +24 -0
  344. package/dist/eval/rule/diagnostics.d.ts.map +1 -0
  345. package/dist/eval/rule/diagnostics.js +45 -0
  346. package/dist/eval/rule/diagnostics.js.map +1 -0
  347. package/dist/eval/rule/execution.d.ts +24 -0
  348. package/dist/eval/rule/execution.d.ts.map +1 -0
  349. package/dist/eval/rule/execution.js +495 -0
  350. package/dist/eval/rule/execution.js.map +1 -0
  351. package/dist/eval/rule/gate.d.ts +12 -0
  352. package/dist/eval/rule/gate.d.ts.map +1 -0
  353. package/dist/eval/rule/gate.js +34 -0
  354. package/dist/eval/rule/gate.js.map +1 -0
  355. package/dist/eval/rule/item.d.ts +11 -0
  356. package/dist/eval/rule/item.d.ts.map +1 -0
  357. package/dist/eval/rule/item.js +265 -0
  358. package/dist/eval/rule/item.js.map +1 -0
  359. package/dist/eval/rule/prepare.d.ts +64 -0
  360. package/dist/eval/rule/prepare.d.ts.map +1 -0
  361. package/dist/eval/rule/prepare.js +131 -0
  362. package/dist/eval/rule/prepare.js.map +1 -0
  363. package/dist/eval/rule/result.d.ts +97 -0
  364. package/dist/eval/rule/result.d.ts.map +1 -0
  365. package/dist/eval/rule/result.js +347 -0
  366. package/dist/eval/rule/result.js.map +1 -0
  367. package/dist/eval/rule/runner.d.ts +128 -0
  368. package/dist/eval/rule/runner.d.ts.map +1 -0
  369. package/dist/eval/rule/runner.js +296 -0
  370. package/dist/eval/rule/runner.js.map +1 -0
  371. package/dist/eval/rule/screen.d.ts +32 -0
  372. package/dist/eval/rule/screen.d.ts.map +1 -0
  373. package/dist/eval/rule/screen.js +73 -0
  374. package/dist/eval/rule/screen.js.map +1 -0
  375. package/dist/eval/rule/state.d.ts +137 -0
  376. package/dist/eval/rule/state.d.ts.map +1 -0
  377. package/dist/eval/rule/state.js +2 -0
  378. package/dist/eval/rule/state.js.map +1 -0
  379. package/dist/eval/rule/steps.d.ts +44 -0
  380. package/dist/eval/rule/steps.d.ts.map +1 -0
  381. package/dist/eval/rule/steps.js +367 -0
  382. package/dist/eval/rule/steps.js.map +1 -0
  383. package/dist/eval/rule/visibility.d.ts +18 -0
  384. package/dist/eval/rule/visibility.d.ts.map +1 -0
  385. package/dist/eval/rule/visibility.js +79 -0
  386. package/dist/eval/rule/visibility.js.map +1 -0
  387. package/dist/eval/seal.d.ts +74 -0
  388. package/dist/eval/seal.d.ts.map +1 -0
  389. package/dist/eval/seal.js +154 -0
  390. package/dist/eval/seal.js.map +1 -0
  391. package/dist/eval/signature-coverage.d.ts +19 -0
  392. package/dist/eval/signature-coverage.d.ts.map +1 -0
  393. package/dist/eval/signature-coverage.js +160 -0
  394. package/dist/eval/signature-coverage.js.map +1 -0
  395. package/dist/eval/state/derive.d.ts +72 -0
  396. package/dist/eval/state/derive.d.ts.map +1 -0
  397. package/dist/eval/state/derive.js +61 -0
  398. package/dist/eval/state/derive.js.map +1 -0
  399. package/dist/eval/state/describe.d.ts +18 -0
  400. package/dist/eval/state/describe.d.ts.map +1 -0
  401. package/dist/eval/state/describe.js +19 -0
  402. package/dist/eval/state/describe.js.map +1 -0
  403. package/dist/eval/state/field-state.d.ts +471 -0
  404. package/dist/eval/state/field-state.d.ts.map +1 -0
  405. package/dist/eval/state/field-state.js +1604 -0
  406. package/dist/eval/state/field-state.js.map +1 -0
  407. package/dist/eval/state/measurement.d.ts +136 -0
  408. package/dist/eval/state/measurement.d.ts.map +1 -0
  409. package/dist/eval/state/measurement.js +209 -0
  410. package/dist/eval/state/measurement.js.map +1 -0
  411. package/dist/eval/state/options.d.ts +21 -0
  412. package/dist/eval/state/options.d.ts.map +1 -0
  413. package/dist/eval/state/options.js +3 -0
  414. package/dist/eval/state/options.js.map +1 -0
  415. package/dist/eval/state/readiness.d.ts +400 -0
  416. package/dist/eval/state/readiness.d.ts.map +1 -0
  417. package/dist/eval/state/readiness.js +1067 -0
  418. package/dist/eval/state/readiness.js.map +1 -0
  419. package/dist/eval/state/snapshot.d.ts +130 -0
  420. package/dist/eval/state/snapshot.d.ts.map +1 -0
  421. package/dist/eval/state/snapshot.js +35 -0
  422. package/dist/eval/state/snapshot.js.map +1 -0
  423. package/dist/eval/state/unavailable-options.d.ts +54 -0
  424. package/dist/eval/state/unavailable-options.d.ts.map +1 -0
  425. package/dist/eval/state/unavailable-options.js +82 -0
  426. package/dist/eval/state/unavailable-options.js.map +1 -0
  427. package/dist/eval/state/value-state.d.ts +38 -0
  428. package/dist/eval/state/value-state.d.ts.map +1 -0
  429. package/dist/eval/state/value-state.js +52 -0
  430. package/dist/eval/state/value-state.js.map +1 -0
  431. package/dist/eval/submission/admission.d.ts +50 -0
  432. package/dist/eval/submission/admission.d.ts.map +1 -0
  433. package/dist/eval/submission/admission.js +174 -0
  434. package/dist/eval/submission/admission.js.map +1 -0
  435. package/dist/eval/submission/authority.d.ts +71 -0
  436. package/dist/eval/submission/authority.d.ts.map +1 -0
  437. package/dist/eval/submission/authority.js +118 -0
  438. package/dist/eval/submission/authority.js.map +1 -0
  439. package/dist/eval/submission/datasets.d.ts +28 -0
  440. package/dist/eval/submission/datasets.d.ts.map +1 -0
  441. package/dist/eval/submission/datasets.js +109 -0
  442. package/dist/eval/submission/datasets.js.map +1 -0
  443. package/dist/eval/submission/index.d.ts +15 -0
  444. package/dist/eval/submission/index.d.ts.map +1 -0
  445. package/dist/eval/submission/index.js +13 -0
  446. package/dist/eval/submission/index.js.map +1 -0
  447. package/dist/eval/submission/refusals.d.ts +103 -0
  448. package/dist/eval/submission/refusals.d.ts.map +1 -0
  449. package/dist/eval/submission/refusals.js +15 -0
  450. package/dist/eval/submission/refusals.js.map +1 -0
  451. package/dist/eval/submission/signatures.d.ts +7 -0
  452. package/dist/eval/submission/signatures.d.ts.map +1 -0
  453. package/dist/eval/submission/signatures.js +215 -0
  454. package/dist/eval/submission/signatures.js.map +1 -0
  455. package/dist/eval/submission/writes.d.ts +51 -0
  456. package/dist/eval/submission/writes.d.ts.map +1 -0
  457. package/dist/eval/submission/writes.js +203 -0
  458. package/dist/eval/submission/writes.js.map +1 -0
  459. package/dist/eval/submission.d.ts +53 -0
  460. package/dist/eval/submission.d.ts.map +1 -0
  461. package/dist/eval/submission.js +521 -0
  462. package/dist/eval/submission.js.map +1 -0
  463. package/dist/eval/suggestions-to-engine.d.ts +18 -0
  464. package/dist/eval/suggestions-to-engine.d.ts.map +1 -0
  465. package/dist/eval/suggestions-to-engine.js +40 -0
  466. package/dist/eval/suggestions-to-engine.js.map +1 -0
  467. package/dist/eval/suggestions.d.ts +17 -0
  468. package/dist/eval/suggestions.d.ts.map +1 -0
  469. package/dist/eval/suggestions.js +314 -0
  470. package/dist/eval/suggestions.js.map +1 -0
  471. package/dist/eval/undecided.d.ts +64 -0
  472. package/dist/eval/undecided.d.ts.map +1 -0
  473. package/dist/eval/undecided.js +101 -0
  474. package/dist/eval/undecided.js.map +1 -0
  475. package/dist/eval/verdict.d.ts +66 -0
  476. package/dist/eval/verdict.d.ts.map +1 -0
  477. package/dist/eval/verdict.js +106 -0
  478. package/dist/eval/verdict.js.map +1 -0
  479. package/dist/eval/verify-signature.d.ts +78 -0
  480. package/dist/eval/verify-signature.d.ts.map +1 -0
  481. package/dist/eval/verify-signature.js +185 -0
  482. package/dist/eval/verify-signature.js.map +1 -0
  483. package/dist/eval/version-dispatch.d.ts +38 -0
  484. package/dist/eval/version-dispatch.d.ts.map +1 -0
  485. package/dist/eval/version-dispatch.js +61 -0
  486. package/dist/eval/version-dispatch.js.map +1 -0
  487. package/dist/eval/visibility.d.ts +33 -0
  488. package/dist/eval/visibility.d.ts.map +1 -0
  489. package/dist/eval/visibility.js +83 -0
  490. package/dist/eval/visibility.js.map +1 -0
  491. package/dist/evaluate.d.ts +24 -0
  492. package/dist/evaluate.d.ts.map +1 -0
  493. package/dist/evaluate.js +18 -0
  494. package/dist/evaluate.js.map +1 -0
  495. package/dist/expr/builtin-docs.d.ts +51 -0
  496. package/dist/expr/builtin-docs.d.ts.map +1 -0
  497. package/dist/expr/builtin-docs.js +874 -0
  498. package/dist/expr/builtin-docs.js.map +1 -0
  499. package/dist/expr/builtins.d.ts +50 -0
  500. package/dist/expr/builtins.d.ts.map +1 -0
  501. package/dist/expr/builtins.js +966 -0
  502. package/dist/expr/builtins.js.map +1 -0
  503. package/dist/expr/decimal-precision.d.ts +39 -0
  504. package/dist/expr/decimal-precision.d.ts.map +1 -0
  505. package/dist/expr/decimal-precision.js +62 -0
  506. package/dist/expr/decimal-precision.js.map +1 -0
  507. package/dist/expr/decimal.d.ts +172 -0
  508. package/dist/expr/decimal.d.ts.map +1 -0
  509. package/dist/expr/decimal.js +782 -0
  510. package/dist/expr/decimal.js.map +1 -0
  511. package/dist/expr/deprecations.d.ts +34 -0
  512. package/dist/expr/deprecations.d.ts.map +1 -0
  513. package/dist/expr/deprecations.js +17 -0
  514. package/dist/expr/deprecations.js.map +1 -0
  515. package/dist/expr/diagnostics.d.ts +21 -0
  516. package/dist/expr/diagnostics.d.ts.map +1 -0
  517. package/dist/expr/diagnostics.js +231 -0
  518. package/dist/expr/diagnostics.js.map +1 -0
  519. package/dist/expr/direction.d.ts +30 -0
  520. package/dist/expr/direction.d.ts.map +1 -0
  521. package/dist/expr/direction.js +77 -0
  522. package/dist/expr/direction.js.map +1 -0
  523. package/dist/expr/example-expression.d.ts +62 -0
  524. package/dist/expr/example-expression.d.ts.map +1 -0
  525. package/dist/expr/example-expression.js +670 -0
  526. package/dist/expr/example-expression.js.map +1 -0
  527. package/dist/expr/instant.d.ts +49 -0
  528. package/dist/expr/instant.d.ts.map +1 -0
  529. package/dist/expr/instant.js +111 -0
  530. package/dist/expr/instant.js.map +1 -0
  531. package/dist/expr/logic.d.ts +17 -0
  532. package/dist/expr/logic.d.ts.map +1 -0
  533. package/dist/expr/logic.js +65 -0
  534. package/dist/expr/logic.js.map +1 -0
  535. package/dist/expr/messages.d.ts +45 -0
  536. package/dist/expr/messages.d.ts.map +1 -0
  537. package/dist/expr/messages.js +280 -0
  538. package/dist/expr/messages.js.map +1 -0
  539. package/dist/expr/money.d.ts +38 -0
  540. package/dist/expr/money.d.ts.map +1 -0
  541. package/dist/expr/money.js +127 -0
  542. package/dist/expr/money.js.map +1 -0
  543. package/dist/expr/ordering.d.ts +56 -0
  544. package/dist/expr/ordering.d.ts.map +1 -0
  545. package/dist/expr/ordering.js +167 -0
  546. package/dist/expr/ordering.js.map +1 -0
  547. package/dist/expr/pattern.d.ts +44 -0
  548. package/dist/expr/pattern.d.ts.map +1 -0
  549. package/dist/expr/pattern.js +458 -0
  550. package/dist/expr/pattern.js.map +1 -0
  551. package/dist/expr/plain-date.d.ts +90 -0
  552. package/dist/expr/plain-date.d.ts.map +1 -0
  553. package/dist/expr/plain-date.js +230 -0
  554. package/dist/expr/plain-date.js.map +1 -0
  555. package/dist/expr/plural-categories.d.ts +8 -0
  556. package/dist/expr/plural-categories.d.ts.map +1 -0
  557. package/dist/expr/plural-categories.js +15 -0
  558. package/dist/expr/plural-categories.js.map +1 -0
  559. package/dist/expr/plural-keys.d.ts +39 -0
  560. package/dist/expr/plural-keys.d.ts.map +1 -0
  561. package/dist/expr/plural-keys.js +46 -0
  562. package/dist/expr/plural-keys.js.map +1 -0
  563. package/dist/expr/plural.d.ts +33 -0
  564. package/dist/expr/plural.d.ts.map +1 -0
  565. package/dist/expr/plural.js +50 -0
  566. package/dist/expr/plural.js.map +1 -0
  567. package/dist/expr/quantity.d.ts +31 -0
  568. package/dist/expr/quantity.d.ts.map +1 -0
  569. package/dist/expr/quantity.js +83 -0
  570. package/dist/expr/quantity.js.map +1 -0
  571. package/dist/expr/reduce.d.ts +50 -0
  572. package/dist/expr/reduce.d.ts.map +1 -0
  573. package/dist/expr/reduce.js +236 -0
  574. package/dist/expr/reduce.js.map +1 -0
  575. package/dist/expr/regex.d.ts +108 -0
  576. package/dist/expr/regex.d.ts.map +1 -0
  577. package/dist/expr/regex.js +1207 -0
  578. package/dist/expr/regex.js.map +1 -0
  579. package/dist/expr/select-locale.d.ts +67 -0
  580. package/dist/expr/select-locale.d.ts.map +1 -0
  581. package/dist/expr/select-locale.js +219 -0
  582. package/dist/expr/select-locale.js.map +1 -0
  583. package/dist/expr/sequences.d.ts +123 -0
  584. package/dist/expr/sequences.d.ts.map +1 -0
  585. package/dist/expr/sequences.js +234 -0
  586. package/dist/expr/sequences.js.map +1 -0
  587. package/dist/expr/strings.d.ts +50 -0
  588. package/dist/expr/strings.d.ts.map +1 -0
  589. package/dist/expr/strings.js +184 -0
  590. package/dist/expr/strings.js.map +1 -0
  591. package/dist/expr/validation.d.ts +32 -0
  592. package/dist/expr/validation.d.ts.map +1 -0
  593. package/dist/expr/validation.js +182 -0
  594. package/dist/expr/validation.js.map +1 -0
  595. package/dist/graph/freeze.d.ts +4 -0
  596. package/dist/graph/freeze.d.ts.map +1 -0
  597. package/dist/graph/freeze.js +52 -0
  598. package/dist/graph/freeze.js.map +1 -0
  599. package/dist/graph/index.d.ts +15 -0
  600. package/dist/graph/index.d.ts.map +1 -0
  601. package/dist/graph/index.js +13 -0
  602. package/dist/graph/index.js.map +1 -0
  603. package/dist/graph/inspect.d.ts +76 -0
  604. package/dist/graph/inspect.d.ts.map +1 -0
  605. package/dist/graph/inspect.js +263 -0
  606. package/dist/graph/inspect.js.map +1 -0
  607. package/dist/graph/read-walk.d.ts +101 -0
  608. package/dist/graph/read-walk.d.ts.map +1 -0
  609. package/dist/graph/read-walk.js +358 -0
  610. package/dist/graph/read-walk.js.map +1 -0
  611. package/dist/graph/record-index.d.ts +24 -0
  612. package/dist/graph/record-index.d.ts.map +1 -0
  613. package/dist/graph/record-index.js +35 -0
  614. package/dist/graph/record-index.js.map +1 -0
  615. package/dist/index.d.ts +104 -0
  616. package/dist/index.d.ts.map +1 -0
  617. package/dist/index.js +139 -0
  618. package/dist/index.js.map +1 -0
  619. package/dist/lookup/digest.d.ts +51 -0
  620. package/dist/lookup/digest.d.ts.map +1 -0
  621. package/dist/lookup/digest.js +46 -0
  622. package/dist/lookup/digest.js.map +1 -0
  623. package/dist/lookup/index.d.ts +28 -0
  624. package/dist/lookup/index.d.ts.map +1 -0
  625. package/dist/lookup/index.js +27 -0
  626. package/dist/lookup/index.js.map +1 -0
  627. package/dist/lookup/install.d.ts +48 -0
  628. package/dist/lookup/install.d.ts.map +1 -0
  629. package/dist/lookup/install.js +315 -0
  630. package/dist/lookup/install.js.map +1 -0
  631. package/dist/lookup/pass.d.ts +55 -0
  632. package/dist/lookup/pass.d.ts.map +1 -0
  633. package/dist/lookup/pass.js +212 -0
  634. package/dist/lookup/pass.js.map +1 -0
  635. package/dist/lookup/pins.d.ts +34 -0
  636. package/dist/lookup/pins.d.ts.map +1 -0
  637. package/dist/lookup/pins.js +39 -0
  638. package/dist/lookup/pins.js.map +1 -0
  639. package/dist/lookup/provenance.d.ts +23 -0
  640. package/dist/lookup/provenance.d.ts.map +1 -0
  641. package/dist/lookup/provenance.js +78 -0
  642. package/dist/lookup/provenance.js.map +1 -0
  643. package/dist/lookup/readiness.d.ts +13 -0
  644. package/dist/lookup/readiness.d.ts.map +1 -0
  645. package/dist/lookup/readiness.js +57 -0
  646. package/dist/lookup/readiness.js.map +1 -0
  647. package/dist/lookup/resolve.d.ts +24 -0
  648. package/dist/lookup/resolve.d.ts.map +1 -0
  649. package/dist/lookup/resolve.js +201 -0
  650. package/dist/lookup/resolve.js.map +1 -0
  651. package/dist/lookup/store.d.ts +41 -0
  652. package/dist/lookup/store.d.ts.map +1 -0
  653. package/dist/lookup/store.js +74 -0
  654. package/dist/lookup/store.js.map +1 -0
  655. package/dist/model/access.d.ts +200 -0
  656. package/dist/model/access.d.ts.map +1 -0
  657. package/dist/model/access.js +125 -0
  658. package/dist/model/access.js.map +1 -0
  659. package/dist/model/artifact-members.d.ts +3 -0
  660. package/dist/model/artifact-members.d.ts.map +1 -0
  661. package/dist/model/artifact-members.js +38 -0
  662. package/dist/model/artifact-members.js.map +1 -0
  663. package/dist/model/composition.d.ts +47 -0
  664. package/dist/model/composition.d.ts.map +1 -0
  665. package/dist/model/composition.js +66 -0
  666. package/dist/model/composition.js.map +1 -0
  667. package/dist/model/domain.d.ts +51 -0
  668. package/dist/model/domain.d.ts.map +1 -0
  669. package/dist/model/domain.js +75 -0
  670. package/dist/model/domain.js.map +1 -0
  671. package/dist/model/duration.d.ts +31 -0
  672. package/dist/model/duration.d.ts.map +1 -0
  673. package/dist/model/duration.js +136 -0
  674. package/dist/model/duration.js.map +1 -0
  675. package/dist/model/errors.d.ts +58 -0
  676. package/dist/model/errors.d.ts.map +1 -0
  677. package/dist/model/errors.js +81 -0
  678. package/dist/model/errors.js.map +1 -0
  679. package/dist/model/evolution.d.ts +177 -0
  680. package/dist/model/evolution.d.ts.map +1 -0
  681. package/dist/model/evolution.js +5 -0
  682. package/dist/model/evolution.js.map +1 -0
  683. package/dist/model/expr-children.d.ts +15 -0
  684. package/dist/model/expr-children.d.ts.map +1 -0
  685. package/dist/model/expr-children.js +45 -0
  686. package/dist/model/expr-children.js.map +1 -0
  687. package/dist/model/guards.d.ts +9 -0
  688. package/dist/model/guards.d.ts.map +1 -0
  689. package/dist/model/guards.js +11 -0
  690. package/dist/model/guards.js.map +1 -0
  691. package/dist/model/input.d.ts +42 -0
  692. package/dist/model/input.d.ts.map +1 -0
  693. package/dist/model/input.js +26 -0
  694. package/dist/model/input.js.map +1 -0
  695. package/dist/model/integer.d.ts +14 -0
  696. package/dist/model/integer.d.ts.map +1 -0
  697. package/dist/model/integer.js +16 -0
  698. package/dist/model/integer.js.map +1 -0
  699. package/dist/model/intrinsic.d.ts +18 -0
  700. package/dist/model/intrinsic.d.ts.map +1 -0
  701. package/dist/model/intrinsic.js +21 -0
  702. package/dist/model/intrinsic.js.map +1 -0
  703. package/dist/model/layout.d.ts +129 -0
  704. package/dist/model/layout.d.ts.map +1 -0
  705. package/dist/model/layout.js +2 -0
  706. package/dist/model/layout.js.map +1 -0
  707. package/dist/model/media.d.ts +33 -0
  708. package/dist/model/media.d.ts.map +1 -0
  709. package/dist/model/media.js +86 -0
  710. package/dist/model/media.js.map +1 -0
  711. package/dist/model/members.generated.d.ts +11 -0
  712. package/dist/model/members.generated.d.ts.map +1 -0
  713. package/dist/model/members.generated.js +71 -0
  714. package/dist/model/members.generated.js.map +1 -0
  715. package/dist/model/row-address.d.ts +27 -0
  716. package/dist/model/row-address.d.ts.map +1 -0
  717. package/dist/model/row-address.js +146 -0
  718. package/dist/model/row-address.js.map +1 -0
  719. package/dist/model/schema.d.ts +108 -0
  720. package/dist/model/schema.d.ts.map +1 -0
  721. package/dist/model/schema.js +2 -0
  722. package/dist/model/schema.js.map +1 -0
  723. package/dist/model/shape.d.ts +193 -0
  724. package/dist/model/shape.d.ts.map +1 -0
  725. package/dist/model/shape.js +2 -0
  726. package/dist/model/shape.js.map +1 -0
  727. package/dist/model/time.d.ts +61 -0
  728. package/dist/model/time.d.ts.map +1 -0
  729. package/dist/model/time.js +110 -0
  730. package/dist/model/time.js.map +1 -0
  731. package/dist/model/types.d.ts +1329 -0
  732. package/dist/model/types.d.ts.map +1 -0
  733. package/dist/model/types.js +424 -0
  734. package/dist/model/types.js.map +1 -0
  735. package/dist/model/values.d.ts +91 -0
  736. package/dist/model/values.d.ts.map +1 -0
  737. package/dist/model/values.js +195 -0
  738. package/dist/model/values.js.map +1 -0
  739. package/dist/model/wire.d.ts +356 -0
  740. package/dist/model/wire.d.ts.map +1 -0
  741. package/dist/model/wire.js +1504 -0
  742. package/dist/model/wire.js.map +1 -0
  743. package/dist/offline/index.d.ts +374 -0
  744. package/dist/offline/index.d.ts.map +1 -0
  745. package/dist/offline/index.js +422 -0
  746. package/dist/offline/index.js.map +1 -0
  747. package/dist/testing.d.ts +30 -0
  748. package/dist/testing.d.ts.map +1 -0
  749. package/dist/testing.js +42 -0
  750. package/dist/testing.js.map +1 -0
  751. package/dist/version.d.ts +30 -0
  752. package/dist/version.d.ts.map +1 -0
  753. package/dist/version.js +116 -0
  754. package/dist/version.js.map +1 -0
  755. package/package.json +98 -3
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The receipt every evaluation entry checks before it reads an artifact.
3
+ *
4
+ * A `CompiledSchema` is closed and versioned, but the type is erased at run time: a host that
5
+ * rehydrated a stored artifact with `JSON.parse(...) as CompiledSchema`, or that loaded one
6
+ * compiled by a different Expr version, would otherwise be evaluated as v1 and report a verdict
7
+ * the artifact does not mean. That is a correctness failure with a security shape: a `validate`
8
+ * rule whose expression changed meaning between versions decides the wrong thing, and nothing in
9
+ * the report says so. A misspelt `onHide` has the same shape one step quieter — `"exclud"` is
10
+ * read as the `preserve` default, so a hidden value the author meant to drop is exported.
11
+ *
12
+ * The metaschema is the compiler's authority; the runtime cannot run it without pulling the
13
+ * compiler onto a device. So the runtime checks the facts it depends on — the members the
14
+ * contract requires, the shape of each member an entry walks before it decides anything, and the
15
+ * one version this build implements. A member's *contents* stay the compiler's: a rule's
16
+ * expression, a field's primitive and a layout node's text are evaluated against their own
17
+ * contracts downstream, and re-validating them here would put a second copy of the metaschema on
18
+ * every device.
19
+ *
20
+ * A mismatch is a violated invariant, not an expected failure: the host has to fix its storage
21
+ * or its dependency. It throws with the member and the reason so the fix is obvious, and never
22
+ * with a structure it read — a refusal that prints a member's payload can print a hidden value —
23
+ * so anything that is not a scalar is named by its class.
24
+ *
25
+ * **The v1 retention obligation.** This is the one version check every artifact entry passes
26
+ * through. `EXPR-1.1.4` requires a v1 evaluator to remain while v1 artifacts remain in retention,
27
+ * so when `exprVersion: 2` lands this function must accept both versions and the caller must
28
+ * dispatch; it must never widen the v1 path or delete it. The obligation and the evaluator it
29
+ * protects are recorded in `spec/release/expr-retention.json`, and
30
+ * `test/retention/expr-version-retention.test.ts` proves the v1 arm still evaluates a sealed v1
31
+ * artifact and that this build refuses a v2 artifact with the supported version named.
32
+ */
33
+ /** Refuses an artifact this runtime cannot evaluate, naming the member that failed. */
34
+ export declare function assertArtifactReceipt(compiled: unknown): void;
35
+ /** The same receipt for a standalone compiled expression, which states no schema. */
36
+ export declare function assertExpressionReceipt(compiled: unknown): void;
37
+ //# sourceMappingURL=receipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../src/eval/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AA8EH,uFAAuF;AACvF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CA4F7D;AAED,qFAAqF;AACrF,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAqD/D"}
@@ -0,0 +1,222 @@
1
+ /**
2
+ * The receipt every evaluation entry checks before it reads an artifact.
3
+ *
4
+ * A `CompiledSchema` is closed and versioned, but the type is erased at run time: a host that
5
+ * rehydrated a stored artifact with `JSON.parse(...) as CompiledSchema`, or that loaded one
6
+ * compiled by a different Expr version, would otherwise be evaluated as v1 and report a verdict
7
+ * the artifact does not mean. That is a correctness failure with a security shape: a `validate`
8
+ * rule whose expression changed meaning between versions decides the wrong thing, and nothing in
9
+ * the report says so. A misspelt `onHide` has the same shape one step quieter — `"exclud"` is
10
+ * read as the `preserve` default, so a hidden value the author meant to drop is exported.
11
+ *
12
+ * The metaschema is the compiler's authority; the runtime cannot run it without pulling the
13
+ * compiler onto a device. So the runtime checks the facts it depends on — the members the
14
+ * contract requires, the shape of each member an entry walks before it decides anything, and the
15
+ * one version this build implements. A member's *contents* stay the compiler's: a rule's
16
+ * expression, a field's primitive and a layout node's text are evaluated against their own
17
+ * contracts downstream, and re-validating them here would put a second copy of the metaschema on
18
+ * every device.
19
+ *
20
+ * A mismatch is a violated invariant, not an expected failure: the host has to fix its storage
21
+ * or its dependency. It throws with the member and the reason so the fix is obvious, and never
22
+ * with a structure it read — a refusal that prints a member's payload can print a hidden value —
23
+ * so anything that is not a scalar is named by its class.
24
+ *
25
+ * **The v1 retention obligation.** This is the one version check every artifact entry passes
26
+ * through. `EXPR-1.1.4` requires a v1 evaluator to remain while v1 artifacts remain in retention,
27
+ * so when `exprVersion: 2` lands this function must accept both versions and the caller must
28
+ * dispatch; it must never widen the v1 path or delete it. The obligation and the evaluator it
29
+ * protects are recorded in `spec/release/expr-retention.json`, and
30
+ * `test/retention/expr-version-retention.test.ts` proves the v1 arm still evaluates a sealed v1
31
+ * artifact and that this build refuses a v2 artifact with the supported version named.
32
+ */
33
+ import { ARTIFACT_ROOT_MEMBERS } from '../model/artifact-members.js';
34
+ import { isCompositionReport } from '../model/composition.js';
35
+ import { isTier } from '../model/types.js';
36
+ import { AXIOM_VERSION, compareVersions, isVersionText } from '../version.js';
37
+ function presentArtifact(compiled, what) {
38
+ if (typeof compiled !== 'object' || compiled === null || Array.isArray(compiled)) {
39
+ throw new TypeError(`Axiom: the ${what} is not an object`);
40
+ }
41
+ return compiled;
42
+ }
43
+ /** Whether a member a list may hold is a record: the only shape every entry can walk. */
44
+ function isMemberRecord(value) {
45
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
46
+ }
47
+ /**
48
+ * How a refusal spells the value it read, without repeating a structure.
49
+ *
50
+ * `JSON.stringify` would run a `toJSON` the artifact carries and would throw on a cycle, a second
51
+ * untrusted-code path inside the check that exists to refuse untrusted artifacts. A string is
52
+ * spelled as JSON so `"2"` stays distinct from `2`; anything else is named by class, which is all
53
+ * an operator needs to know the storage is wrong.
54
+ */
55
+ function spell(value) {
56
+ switch (typeof value) {
57
+ case 'string':
58
+ return JSON.stringify(value);
59
+ case 'number':
60
+ case 'boolean':
61
+ case 'bigint':
62
+ return String(value);
63
+ case 'function':
64
+ case 'symbol':
65
+ return `a ${typeof value}`;
66
+ case 'object':
67
+ return value === null ? 'null' : Array.isArray(value) ? 'a list' : 'an object';
68
+ case 'undefined':
69
+ return 'nothing';
70
+ }
71
+ }
72
+ /**
73
+ * The list members an artifact states, with the noun each refusal names one entry by.
74
+ *
75
+ * Every entry walks these lists before it decides anything: the fields a record is read against,
76
+ * the rules a report runs, the chrome a presentation draws, the tables a lookup is pinned to. A
77
+ * rehydrated artifact stating `rules: "nope"` or `rules: [null]` therefore failed inside the
78
+ * evaluator with `rules.map is not a function` — a message that names neither the member nor the
79
+ * artifact — and a `fields` list holding a number decided a silent wrong answer, because the
80
+ * declaration it should have carried simply vanished.
81
+ */
82
+ const LIST_MEMBERS = [
83
+ ['fields', 'field'],
84
+ ['rules', 'rule'],
85
+ ['layout', 'layout'],
86
+ ['datasets', 'dataset'],
87
+ ];
88
+ function assertMemberList(artifact, member, noun) {
89
+ const list = Reflect.get(artifact, member);
90
+ if (list === undefined)
91
+ return;
92
+ if (!Array.isArray(list)) {
93
+ throw new TypeError(`Axiom: the artifact states ${member} as ${spell(list)}; this runtime reads a list of objects`);
94
+ }
95
+ for (const item of list) {
96
+ if (isMemberRecord(item))
97
+ continue;
98
+ throw new TypeError(`Axiom: the artifact states a ${noun} entry that is ${spell(item)}; this runtime reads an object`);
99
+ }
100
+ }
101
+ /** Refuses an artifact this runtime cannot evaluate, naming the member that failed. */
102
+ export function assertArtifactReceipt(compiled) {
103
+ const artifact = presentArtifact(compiled, 'artifact');
104
+ const version = Reflect.get(artifact, 'exprVersion');
105
+ if (version !== 1) {
106
+ throw new TypeError(version === undefined
107
+ ? 'Axiom: the artifact states no exprVersion; this runtime implements 1'
108
+ : `Axiom: the artifact states exprVersion ${spell(version)}; this runtime implements 1`);
109
+ }
110
+ if (typeof Reflect.get(artifact, 'schemaId') !== 'string') {
111
+ throw new TypeError('Axiom: the artifact states no schemaId');
112
+ }
113
+ const schemaVersion = Reflect.get(artifact, 'schemaVersion');
114
+ if (typeof schemaVersion !== 'number' || !Number.isSafeInteger(schemaVersion)) {
115
+ throw new TypeError('Axiom: the artifact states no integer schemaVersion');
116
+ }
117
+ // The metaschema's own lower bound. A zero or negative edition is not one any compiler can
118
+ // emit, so a document stating one came from storage that was edited or written by another
119
+ // producer; evaluating it would report a `schemaVersion` no authority ever issued.
120
+ if (schemaVersion < 1) {
121
+ throw new TypeError(`Axiom: the artifact states schemaVersion ${spell(schemaVersion)}; this runtime reads a positive safe integer`);
122
+ }
123
+ // The artifact is closed, as the compiler's contract is. An unknown root member is refused
124
+ // instead of ignored: a member this build does not read may be one a later release added to
125
+ // change what a rule decides, and evaluating around it would answer the wrong question.
126
+ const knownMembers = new Set(ARTIFACT_ROOT_MEMBERS);
127
+ for (const member of Object.keys(artifact)) {
128
+ if (knownMembers.has(member))
129
+ continue;
130
+ throw new TypeError(`Axiom: the artifact carries ${spell(member)}, which exprVersion 1 does not declare`);
131
+ }
132
+ // The producer stamp is the package-skew refusal. A runtime older than the compiler that made
133
+ // the artifact cannot know the members or semantics that release added, so it refuses by name
134
+ // rather than reading the members it happens to recognise.
135
+ const producerVersion = Reflect.get(artifact, 'producerVersion');
136
+ if (producerVersion !== undefined) {
137
+ if (typeof producerVersion !== 'string' || !isVersionText(producerVersion)) {
138
+ throw new TypeError(`Axiom: the artifact states producerVersion ${spell(producerVersion)}; this runtime reads a release version`);
139
+ }
140
+ // Both sides were just proven versions: `isVersionText` above, and `AXIOM_VERSION` is a
141
+ // literal this module imports. `compareVersions` returns `undefined` only when a side does
142
+ // not parse, so that arm is unreachable here; reading it as "not newer" would fail open on a
143
+ // violated invariant, so it throws instead.
144
+ const precedence = compareVersions(producerVersion, AXIOM_VERSION);
145
+ if (precedence === undefined) {
146
+ throw new TypeError(`Axiom: producerVersion ${producerVersion} or this runtime's ${AXIOM_VERSION} is not a release version; both were just checked, so this is a violated invariant`);
147
+ }
148
+ if (precedence > 0) {
149
+ throw new TypeError(`Axiom: the artifact was produced by Axiom ${producerVersion}, which is newer than this runtime's ${AXIOM_VERSION}; this runtime cannot evaluate it`);
150
+ }
151
+ }
152
+ // The one required list, refused by name before the shared loop reaches it.
153
+ if (!Array.isArray(Reflect.get(artifact, 'fields'))) {
154
+ throw new TypeError('Axiom: the artifact states no field list');
155
+ }
156
+ for (const [member, noun] of LIST_MEMBERS)
157
+ assertMemberList(artifact, member, noun);
158
+ // The tier-pairing refusal reads the target to tell a device artifact from a server one, so a
159
+ // rehydrated artifact that misspells it must be refused here rather than silently read as the
160
+ // server default — whose server-tier rules would then be credited from stubs.
161
+ const target = Reflect.get(artifact, 'target');
162
+ if (target !== undefined && !isTier(target)) {
163
+ throw new TypeError(`Axiom: the artifact states a target outside the two tiers: ${spell(target)}`);
164
+ }
165
+ // The same argument one step quieter: every hiding decision compares this member to `exclude`,
166
+ // so a misspelling is read as `preserve` and a hidden value the author meant to drop travels
167
+ // in the submission.
168
+ const onHide = Reflect.get(artifact, 'onHide');
169
+ if (onHide !== undefined && onHide !== 'preserve' && onHide !== 'exclude') {
170
+ throw new TypeError(`Axiom: the artifact states onHide ${spell(onHide)}; this runtime implements "preserve" or "exclude"`);
171
+ }
172
+ // A composition is copied into every report verbatim. A malformed one would seal a version
173
+ // report no configuration ever had, and assembly has no refusal arm to report it from.
174
+ const composition = Reflect.get(artifact, 'composition');
175
+ if (composition !== undefined && !isCompositionReport(composition)) {
176
+ throw new TypeError('Axiom: the artifact states a composition that is not an ordered list of named overlay editions');
177
+ }
178
+ }
179
+ /** The same receipt for a standalone compiled expression, which states no schema. */
180
+ export function assertExpressionReceipt(compiled) {
181
+ const expression = presentArtifact(compiled, 'compiled expression');
182
+ const version = Reflect.get(expression, 'exprVersion');
183
+ if (version !== 1) {
184
+ throw new TypeError(version === undefined
185
+ ? 'Axiom: the expression states no exprVersion; this runtime implements 1'
186
+ : `Axiom: the expression states exprVersion ${spell(version)}; this runtime implements 1`);
187
+ }
188
+ // The tree is the member every evaluation starts from. A rehydrated expression that misspells
189
+ // it otherwise reports `ENGINE_ERROR` with no path and no member named, which sends a host
190
+ // looking for a fault in the record it evaluated.
191
+ if (!isMemberRecord(Reflect.get(expression, 'expr'))) {
192
+ throw new TypeError('Axiom: the compiled expression states no expression tree');
193
+ }
194
+ const declarations = Reflect.get(expression, 'declarations');
195
+ if (!isMemberRecord(declarations)) {
196
+ throw new TypeError('Axiom: the compiled expression states no declaration table');
197
+ }
198
+ // The members `evaluateExpr` reads off the declaration table, each walked before a decision: a
199
+ // `fields` list is indexed, a `context` declaration supplies roots, and `schemaVersion` becomes
200
+ // the value `context.schema_version` reads. A wrong shape decides a wrong answer rather than a
201
+ // diagnosable failure, so each is refused by the name a host needs to fix its storage.
202
+ const fields = Reflect.get(declarations, 'fields');
203
+ if (fields !== undefined && (!Array.isArray(fields) || !fields.every(isMemberRecord))) {
204
+ throw new TypeError(`Axiom: the compiled expression states declarations.fields as ${spell(fields)}; this runtime reads a list of objects`);
205
+ }
206
+ const context = Reflect.get(declarations, 'context');
207
+ if (context !== undefined) {
208
+ if (!isMemberRecord(context)) {
209
+ throw new TypeError(`Axiom: the compiled expression states declarations.context as ${spell(context)}; this runtime reads an object`);
210
+ }
211
+ const roots = Reflect.get(context, 'roots');
212
+ if (roots !== undefined && (!Array.isArray(roots) || !roots.every(isMemberRecord))) {
213
+ throw new TypeError(`Axiom: the compiled expression states declarations.context.roots as ${spell(roots)}; this runtime reads a list of objects`);
214
+ }
215
+ }
216
+ const schemaVersion = Reflect.get(declarations, 'schemaVersion');
217
+ if (schemaVersion !== undefined &&
218
+ (typeof schemaVersion !== 'number' || !Number.isSafeInteger(schemaVersion) || schemaVersion < 1)) {
219
+ throw new TypeError(`Axiom: the compiled expression states declarations.schemaVersion as ${spell(schemaVersion)}; this runtime reads a positive safe integer`);
220
+ }
221
+ }
222
+ //# sourceMappingURL=receipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../src/eval/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9E,SAAS,eAAe,CAAC,QAAiB,EAAE,IAAY;IACtD,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjF,MAAM,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CAAC,CAAC;IACrD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,SAAS,CACjB,iEAAiE,KAAK,CAAC,OAAO,CAAC,gCAAgC,CAChH,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACnF,MAAM,IAAI,SAAS,CACjB,uEAAuE,KAAK,CAAC,KAAK,CAAC,wCAAwC,CAC5H,CAAC;QACJ,CAAC;IACH,CAAC;IACD,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IACjE,IACE,aAAa,KAAK,SAAS;QAC3B,CAAC,OAAO,aAAa,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,aAAa,GAAG,CAAC,CAAC,EAChG,CAAC;QACD,MAAM,IAAI,SAAS,CACjB,uEAAuE,KAAK,CAAC,aAAa,CAAC,8CAA8C,CAC1I,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["/**\n * The receipt every evaluation entry checks before it reads an artifact.\n *\n * A `CompiledSchema` is closed and versioned, but the type is erased at run time: a host that\n * rehydrated a stored artifact with `JSON.parse(...) as CompiledSchema`, or that loaded one\n * compiled by a different Expr version, would otherwise be evaluated as v1 and report a verdict\n * the artifact does not mean. That is a correctness failure with a security shape: a `validate`\n * rule whose expression changed meaning between versions decides the wrong thing, and nothing in\n * the report says so. A misspelt `onHide` has the same shape one step quieter — `\"exclud\"` is\n * read as the `preserve` default, so a hidden value the author meant to drop is exported.\n *\n * The metaschema is the compiler's authority; the runtime cannot run it without pulling the\n * compiler onto a device. So the runtime checks the facts it depends on — the members the\n * contract requires, the shape of each member an entry walks before it decides anything, and the\n * one version this build implements. A member's *contents* stay the compiler's: a rule's\n * expression, a field's primitive and a layout node's text are evaluated against their own\n * contracts downstream, and re-validating them here would put a second copy of the metaschema on\n * every device.\n *\n * A mismatch is a violated invariant, not an expected failure: the host has to fix its storage\n * or its dependency. It throws with the member and the reason so the fix is obvious, and never\n * with a structure it read — a refusal that prints a member's payload can print a hidden value —\n * so anything that is not a scalar is named by its class.\n *\n * **The v1 retention obligation.** This is the one version check every artifact entry passes\n * through. `EXPR-1.1.4` requires a v1 evaluator to remain while v1 artifacts remain in retention,\n * so when `exprVersion: 2` lands this function must accept both versions and the caller must\n * dispatch; it must never widen the v1 path or delete it. The obligation and the evaluator it\n * protects are recorded in `spec/release/expr-retention.json`, and\n * `test/retention/expr-version-retention.test.ts` proves the v1 arm still evaluates a sealed v1\n * artifact and that this build refuses a v2 artifact with the supported version named.\n */\n\nimport { ARTIFACT_ROOT_MEMBERS } from '../model/artifact-members.js';\nimport { isCompositionReport } from '../model/composition.js';\nimport { isTier } from '../model/types.js';\nimport { AXIOM_VERSION, compareVersions, isVersionText } from '../version.js';\n\nfunction presentArtifact(compiled: unknown, what: string): object {\n if (typeof compiled !== 'object' || compiled === null || Array.isArray(compiled)) {\n throw new TypeError(`Axiom: the ${what} is not an object`);\n }\n return compiled;\n}\n\n/** Whether a member a list may hold is a record: the only shape every entry can walk. */\nfunction isMemberRecord(value: unknown): boolean {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * How a refusal spells the value it read, without repeating a structure.\n *\n * `JSON.stringify` would run a `toJSON` the artifact carries and would throw on a cycle, a second\n * untrusted-code path inside the check that exists to refuse untrusted artifacts. A string is\n * spelled as JSON so `\"2\"` stays distinct from `2`; anything else is named by class, which is all\n * an operator needs to know the storage is wrong.\n */\nfunction spell(value: unknown): string {\n switch (typeof value) {\n case 'string':\n return JSON.stringify(value);\n case 'number':\n case 'boolean':\n case 'bigint':\n return String(value);\n case 'function':\n case 'symbol':\n return `a ${typeof value}`;\n case 'object':\n return value === null ? 'null' : Array.isArray(value) ? 'a list' : 'an object';\n case 'undefined':\n return 'nothing';\n }\n}\n\n/**\n * The list members an artifact states, with the noun each refusal names one entry by.\n *\n * Every entry walks these lists before it decides anything: the fields a record is read against,\n * the rules a report runs, the chrome a presentation draws, the tables a lookup is pinned to. A\n * rehydrated artifact stating `rules: \"nope\"` or `rules: [null]` therefore failed inside the\n * evaluator with `rules.map is not a function` — a message that names neither the member nor the\n * artifact — and a `fields` list holding a number decided a silent wrong answer, because the\n * declaration it should have carried simply vanished.\n */\nconst LIST_MEMBERS = [\n ['fields', 'field'],\n ['rules', 'rule'],\n ['layout', 'layout'],\n ['datasets', 'dataset'],\n] as const;\n\nfunction assertMemberList(artifact: object, member: string, noun: string): void {\n const list: unknown = Reflect.get(artifact, member);\n if (list === undefined) return;\n if (!Array.isArray(list)) {\n throw new TypeError(\n `Axiom: the artifact states ${member} as ${spell(list)}; this runtime reads a list of objects`,\n );\n }\n for (const item of list) {\n if (isMemberRecord(item)) continue;\n throw new TypeError(\n `Axiom: the artifact states a ${noun} entry that is ${spell(item)}; this runtime reads an object`,\n );\n }\n}\n\n/** Refuses an artifact this runtime cannot evaluate, naming the member that failed. */\nexport function assertArtifactReceipt(compiled: unknown): void {\n const artifact = presentArtifact(compiled, 'artifact');\n const version = Reflect.get(artifact, 'exprVersion');\n if (version !== 1) {\n throw new TypeError(\n version === undefined\n ? 'Axiom: the artifact states no exprVersion; this runtime implements 1'\n : `Axiom: the artifact states exprVersion ${spell(version)}; this runtime implements 1`,\n );\n }\n if (typeof Reflect.get(artifact, 'schemaId') !== 'string') {\n throw new TypeError('Axiom: the artifact states no schemaId');\n }\n const schemaVersion = Reflect.get(artifact, 'schemaVersion');\n if (typeof schemaVersion !== 'number' || !Number.isSafeInteger(schemaVersion)) {\n throw new TypeError('Axiom: the artifact states no integer schemaVersion');\n }\n // The metaschema's own lower bound. A zero or negative edition is not one any compiler can\n // emit, so a document stating one came from storage that was edited or written by another\n // producer; evaluating it would report a `schemaVersion` no authority ever issued.\n if (schemaVersion < 1) {\n throw new TypeError(\n `Axiom: the artifact states schemaVersion ${spell(schemaVersion)}; this runtime reads a positive safe integer`,\n );\n }\n // The artifact is closed, as the compiler's contract is. An unknown root member is refused\n // instead of ignored: a member this build does not read may be one a later release added to\n // change what a rule decides, and evaluating around it would answer the wrong question.\n const knownMembers = new Set(ARTIFACT_ROOT_MEMBERS);\n for (const member of Object.keys(artifact)) {\n if (knownMembers.has(member)) continue;\n throw new TypeError(\n `Axiom: the artifact carries ${spell(member)}, which exprVersion 1 does not declare`,\n );\n }\n // The producer stamp is the package-skew refusal. A runtime older than the compiler that made\n // the artifact cannot know the members or semantics that release added, so it refuses by name\n // rather than reading the members it happens to recognise.\n const producerVersion = Reflect.get(artifact, 'producerVersion');\n if (producerVersion !== undefined) {\n if (typeof producerVersion !== 'string' || !isVersionText(producerVersion)) {\n throw new TypeError(\n `Axiom: the artifact states producerVersion ${spell(producerVersion)}; this runtime reads a release version`,\n );\n }\n // Both sides were just proven versions: `isVersionText` above, and `AXIOM_VERSION` is a\n // literal this module imports. `compareVersions` returns `undefined` only when a side does\n // not parse, so that arm is unreachable here; reading it as \"not newer\" would fail open on a\n // violated invariant, so it throws instead.\n const precedence = compareVersions(producerVersion, AXIOM_VERSION);\n if (precedence === undefined) {\n throw new TypeError(\n `Axiom: producerVersion ${producerVersion} or this runtime's ${AXIOM_VERSION} is not a release version; both were just checked, so this is a violated invariant`,\n );\n }\n if (precedence > 0) {\n throw new TypeError(\n `Axiom: the artifact was produced by Axiom ${producerVersion}, which is newer than this runtime's ${AXIOM_VERSION}; this runtime cannot evaluate it`,\n );\n }\n }\n // The one required list, refused by name before the shared loop reaches it.\n if (!Array.isArray(Reflect.get(artifact, 'fields'))) {\n throw new TypeError('Axiom: the artifact states no field list');\n }\n for (const [member, noun] of LIST_MEMBERS) assertMemberList(artifact, member, noun);\n // The tier-pairing refusal reads the target to tell a device artifact from a server one, so a\n // rehydrated artifact that misspells it must be refused here rather than silently read as the\n // server default — whose server-tier rules would then be credited from stubs.\n const target = Reflect.get(artifact, 'target');\n if (target !== undefined && !isTier(target)) {\n throw new TypeError(\n `Axiom: the artifact states a target outside the two tiers: ${spell(target)}`,\n );\n }\n // The same argument one step quieter: every hiding decision compares this member to `exclude`,\n // so a misspelling is read as `preserve` and a hidden value the author meant to drop travels\n // in the submission.\n const onHide = Reflect.get(artifact, 'onHide');\n if (onHide !== undefined && onHide !== 'preserve' && onHide !== 'exclude') {\n throw new TypeError(\n `Axiom: the artifact states onHide ${spell(onHide)}; this runtime implements \"preserve\" or \"exclude\"`,\n );\n }\n // A composition is copied into every report verbatim. A malformed one would seal a version\n // report no configuration ever had, and assembly has no refusal arm to report it from.\n const composition = Reflect.get(artifact, 'composition');\n if (composition !== undefined && !isCompositionReport(composition)) {\n throw new TypeError(\n 'Axiom: the artifact states a composition that is not an ordered list of named overlay editions',\n );\n }\n}\n\n/** The same receipt for a standalone compiled expression, which states no schema. */\nexport function assertExpressionReceipt(compiled: unknown): void {\n const expression = presentArtifact(compiled, 'compiled expression');\n const version = Reflect.get(expression, 'exprVersion');\n if (version !== 1) {\n throw new TypeError(\n version === undefined\n ? 'Axiom: the expression states no exprVersion; this runtime implements 1'\n : `Axiom: the expression states exprVersion ${spell(version)}; this runtime implements 1`,\n );\n }\n // The tree is the member every evaluation starts from. A rehydrated expression that misspells\n // it otherwise reports `ENGINE_ERROR` with no path and no member named, which sends a host\n // looking for a fault in the record it evaluated.\n if (!isMemberRecord(Reflect.get(expression, 'expr'))) {\n throw new TypeError('Axiom: the compiled expression states no expression tree');\n }\n const declarations = Reflect.get(expression, 'declarations');\n if (!isMemberRecord(declarations)) {\n throw new TypeError('Axiom: the compiled expression states no declaration table');\n }\n // The members `evaluateExpr` reads off the declaration table, each walked before a decision: a\n // `fields` list is indexed, a `context` declaration supplies roots, and `schemaVersion` becomes\n // the value `context.schema_version` reads. A wrong shape decides a wrong answer rather than a\n // diagnosable failure, so each is refused by the name a host needs to fix its storage.\n const fields = Reflect.get(declarations, 'fields');\n if (fields !== undefined && (!Array.isArray(fields) || !fields.every(isMemberRecord))) {\n throw new TypeError(\n `Axiom: the compiled expression states declarations.fields as ${spell(fields)}; this runtime reads a list of objects`,\n );\n }\n const context = Reflect.get(declarations, 'context');\n if (context !== undefined) {\n if (!isMemberRecord(context)) {\n throw new TypeError(\n `Axiom: the compiled expression states declarations.context as ${spell(context)}; this runtime reads an object`,\n );\n }\n const roots = Reflect.get(context, 'roots');\n if (roots !== undefined && (!Array.isArray(roots) || !roots.every(isMemberRecord))) {\n throw new TypeError(\n `Axiom: the compiled expression states declarations.context.roots as ${spell(roots)}; this runtime reads a list of objects`,\n );\n }\n }\n const schemaVersion = Reflect.get(declarations, 'schemaVersion');\n if (\n schemaVersion !== undefined &&\n (typeof schemaVersion !== 'number' || !Number.isSafeInteger(schemaVersion) || schemaVersion < 1)\n ) {\n throw new TypeError(\n `Axiom: the compiled expression states declarations.schemaVersion as ${spell(schemaVersion)}; this runtime reads a positive safe integer`,\n );\n }\n}\n"]}
@@ -0,0 +1,84 @@
1
+ import type { CompiledRule, Diagnostic, EvaluationReport, FieldRef, LookupProvenance, RuleKind, RuleResult } from '../../model/types.js';
2
+ import type { ReportFacts } from '../../model/types.js';
3
+ import type { EvaluationState, RuleEvaluation } from '../rule/state.js';
4
+ /**
5
+ * One rule's whole contribution to a report: its result, the access entries it considered, the
6
+ * diagnostics it raised and the lookups it resolved.
7
+ *
8
+ * A report is a fold of these, and nothing else. Keeping the record explicit is what lets a
9
+ * stateful session re-evaluate only the rules a change reaches and still state the same report
10
+ * as a caller that evaluated every rule: the cached contributions of the untouched rules are
11
+ * replayed beside the new ones, in the same canonical order.
12
+ */
13
+ export interface RuleContribution {
14
+ readonly ruleId: string;
15
+ readonly evaluation: RuleEvaluation;
16
+ readonly considered: readonly FieldRef[];
17
+ readonly diagnostics: readonly Diagnostic[];
18
+ readonly lookups: readonly LookupProvenance[];
19
+ }
20
+ /**
21
+ * Evaluates the selected rules and returns one contribution per rule that ran.
22
+ *
23
+ * Two `visible` rules may ask `is_relevant` about each other. There is no consistent answer to
24
+ * that pair, so the documented fail-open rule decides one of them; which one must not depend on
25
+ * where the author wrote the declarations (`RULES-2.1.12`). Entering the visible rules first, in
26
+ * `ruleId` code-point order, fixes the answer before any other rule can ask.
27
+ *
28
+ * A rule pulled in by `rule_ok` or `is_relevant` runs under its own identity, so the returned
29
+ * list covers every rule the call actually evaluated, not only the ones it was handed.
30
+ */
31
+ export declare function evaluateContributions(state: EvaluationState, rules: readonly CompiledRule[]): readonly RuleContribution[];
32
+ /**
33
+ * Assembles the canonical report from contributions, and nothing else.
34
+ *
35
+ * Every emitted list is in a canonical order, so a report states the same thing however its
36
+ * contributions were produced or ordered: two documents that differ only in declaration order
37
+ * decide identically and hash identically.
38
+ */
39
+ export declare function assembleBody(state: EvaluationState, contributions: readonly RuleContribution[], unattributedDiagnostics?: readonly Diagnostic[]): ReportFacts;
40
+ /**
41
+ * Assembles the canonical report and seals it once, `[ENGINE-7.1.2]`.
42
+ *
43
+ * A stateless evaluation returns a decision, so it states the digest. A session that derives a
44
+ * form on every keystroke assembles the body instead and seals only when a caller asks for the
45
+ * report, because canonicalising and hashing is the cost of proving a decision, not of
46
+ * describing one.
47
+ */
48
+ export declare function assembleReport(state: EvaluationState, contributions: readonly RuleContribution[], unattributedDiagnostics?: readonly Diagnostic[]): EvaluationReport;
49
+ /**
50
+ * Evaluates and assembles one report, once per evaluation.
51
+ *
52
+ * Every writer produces its value before any ordinary rule reads one, in the one order the
53
+ * derived graph states.
54
+ */
55
+ export declare function runBody(state: EvaluationState): ReportFacts;
56
+ /** Evaluates and assembles one report body, sealed once for a caller that wants the digest. */
57
+ export declare function runReport(state: EvaluationState): EvaluationReport;
58
+ /** One rule's audit trail: what it read, what it depended on and where it resolved a lookup. */
59
+ export interface RuleExplanation {
60
+ readonly ruleId: string;
61
+ readonly ruleHash: string;
62
+ readonly kind: RuleKind;
63
+ readonly scope: RuleResult['scope'];
64
+ readonly status: RuleResult['status'];
65
+ readonly rowKey?: string | number;
66
+ readonly reads: readonly FieldRef[];
67
+ readonly dependsOnRules: readonly string[];
68
+ readonly lookups: readonly LookupProvenance[];
69
+ readonly diagnostics: readonly Diagnostic[];
70
+ }
71
+ /** The audit trail of one stateless evaluation, `explain()`. */
72
+ export interface EvaluationExplanation {
73
+ readonly schemaId: string;
74
+ readonly schemaVersion: number;
75
+ readonly behaviorHash: string;
76
+ readonly reportHash: string;
77
+ readonly rules: readonly RuleExplanation[];
78
+ readonly lookups: readonly LookupProvenance[];
79
+ }
80
+ /**
81
+ * The audit trail of this evaluation's explain(): what each rule read and resolved.
82
+ */
83
+ export declare function explanationOf(state: EvaluationState): EvaluationExplanation;
84
+ //# sourceMappingURL=assemble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assemble.d.ts","sourceRoot":"","sources":["../../../src/eval/report/assemble.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,QAAQ,EAER,gBAAgB,EAChB,QAAQ,EACR,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAqB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAkFxE;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,SAAS,QAAQ,EAAE,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAC5C,QAAQ,CAAC,OAA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