@astrale-os/kernel-dsl 1.0.0-beta.3 → 1.0.0-beta.31

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 (413) hide show
  1. package/dist/v1/addressing/class-key.js +3 -3
  2. package/dist/v1/addressing/definition-ref.js +21 -37
  3. package/dist/v1/addressing/domain-dependency.d.ts +0 -6
  4. package/dist/v1/addressing/domain-dependency.js +1 -6
  5. package/dist/v1/addressing/key.d.ts +4 -1
  6. package/dist/v1/addressing/key.js +23 -3
  7. package/dist/v1/addressing/ordering.d.ts +2 -0
  8. package/dist/v1/addressing/ordering.js +2 -0
  9. package/dist/v1/addressing/patterns.d.ts +1 -1
  10. package/dist/v1/addressing/patterns.js +2 -6
  11. package/dist/v1/builder/callable/authoring.d.ts +11 -5
  12. package/dist/v1/builder/callable/authoring.js +2 -0
  13. package/dist/v1/builder/class/authoring.d.ts +94 -224
  14. package/dist/v1/builder/class/authoring.js +30 -35
  15. package/dist/v1/builder/class/handle.d.ts +27 -0
  16. package/dist/v1/builder/class/handle.js +1 -0
  17. package/dist/v1/builder/class/input.d.ts +159 -0
  18. package/dist/v1/builder/class/projection.d.ts +129 -0
  19. package/dist/v1/builder/class/projection.js +1 -0
  20. package/dist/v1/builder/class/property.d.ts +3 -9
  21. package/dist/v1/builder/class/property.js +1 -0
  22. package/dist/v1/builder/core/authoring.d.ts +1 -1
  23. package/dist/v1/builder/index.d.ts +10 -2
  24. package/dist/v1/builder/index.js +2 -0
  25. package/dist/v1/builder/lowering/callable.js +1 -0
  26. package/dist/v1/builder/lowering/class.d.ts +9 -1
  27. package/dist/v1/builder/lowering/class.js +62 -17
  28. package/dist/v1/builder/lowering/policy.js +6 -24
  29. package/dist/v1/builder/lowering/property-keys.d.ts +27 -0
  30. package/dist/v1/builder/lowering/property-keys.js +108 -0
  31. package/dist/v1/builder/lowering/schema/compile.js +13 -6
  32. package/dist/v1/builder/lowering/schema/context.d.ts +9 -1
  33. package/dist/v1/builder/lowering/schema/context.js +36 -7
  34. package/dist/v1/builder/lowering/schema/lifetime.d.ts +11 -0
  35. package/dist/v1/builder/lowering/schema/lifetime.js +55 -0
  36. package/dist/v1/builder/lowering/value/compile.js +29 -22
  37. package/dist/v1/builder/lowering/value/file.d.ts +7 -0
  38. package/dist/v1/builder/lowering/value/file.js +14 -0
  39. package/dist/v1/builder/lowering/value/path.d.ts +1 -1
  40. package/dist/v1/builder/lowering/value/path.js +2 -4
  41. package/dist/v1/builder/lowering/value/zod.js +41 -7
  42. package/dist/v1/builder/policy/authoring.d.ts +80 -9
  43. package/dist/v1/builder/policy/authoring.js +99 -68
  44. package/dist/v1/builder/policy/legacy/edge.d.ts +28 -0
  45. package/dist/v1/builder/policy/legacy/edge.js +16 -0
  46. package/dist/v1/builder/schema/define.d.ts +0 -1
  47. package/dist/v1/builder/schema/diagnostic.d.ts +3 -2
  48. package/dist/v1/builder/schema/diagnostic.js +5 -10
  49. package/dist/v1/builder/schema/input.d.ts +4 -1
  50. package/dist/v1/builder/schema/projection/callable.d.ts +7 -5
  51. package/dist/v1/builder/schema/projection/class.d.ts +78 -16
  52. package/dist/v1/builder/schema/projection/core-input.d.ts +2 -1
  53. package/dist/v1/builder/schema/projection/domain.d.ts +13 -2
  54. package/dist/v1/builder/schema/projection/identity.d.ts +74 -9
  55. package/dist/v1/builder/schema/projection/model.d.ts +4 -2
  56. package/dist/v1/builder/schema/projection/property.d.ts +38 -4
  57. package/dist/v1/builder/schema/projection/resolved-class.d.ts +5 -4
  58. package/dist/v1/builder/schema/projection.d.ts +1 -1
  59. package/dist/v1/builder/schema/rule.d.ts +316 -0
  60. package/dist/v1/builder/schema/rule.js +192 -0
  61. package/dist/v1/builder/value/file.d.ts +34 -0
  62. package/dist/v1/builder/value/file.js +77 -0
  63. package/dist/v1/builder/value/full-match.d.ts +0 -1
  64. package/dist/v1/builder/value/full-match.js +0 -1
  65. package/dist/v1/builder/value/path-metadata.d.ts +1 -1
  66. package/dist/v1/builder/value/path.d.ts +1 -1
  67. package/dist/v1/bundle/codec.js +55 -74
  68. package/dist/v1/bundle/diagnostic.d.ts +3 -1
  69. package/dist/v1/bundle/diagnostic.js +9 -7
  70. package/dist/v1/bundle/index.d.ts +2 -0
  71. package/dist/v1/bundle/index.js +1 -0
  72. package/dist/v1/bundle/model.js +1 -1
  73. package/dist/v1/bundle/rule.d.ts +14 -0
  74. package/dist/v1/bundle/rule.js +41 -0
  75. package/dist/v1/bundle/structure.js +6 -8
  76. package/dist/v1/compiled/admission/accept.js +9 -15
  77. package/dist/v1/compiled/admission/closure.js +17 -34
  78. package/dist/v1/compiled/admission/diagnostic.d.ts +23 -1
  79. package/dist/v1/compiled/admission/diagnostic.js +40 -3
  80. package/dist/v1/compiled/admission/revision.d.ts +9 -1
  81. package/dist/v1/compiled/admission/revision.js +7 -3
  82. package/dist/v1/compiled/admission/semantics/class.d.ts +4 -1
  83. package/dist/v1/compiled/admission/semantics/class.js +48 -19
  84. package/dist/v1/compiled/admission/semantics/core.d.ts +1 -24
  85. package/dist/v1/compiled/admission/semantics/core.js +56 -24
  86. package/dist/v1/compiled/admission/semantics/edge.d.ts +2 -4
  87. package/dist/v1/compiled/admission/semantics/edge.js +6 -65
  88. package/dist/v1/compiled/admission/semantics/policy/admit.js +4 -19
  89. package/dist/v1/compiled/admission/semantics/policy/callable.js +2 -5
  90. package/dist/v1/compiled/admission/semantics/policy/contracts.d.ts +5 -20
  91. package/dist/v1/compiled/admission/semantics/policy/contracts.js +8 -21
  92. package/dist/v1/compiled/admission/semantics/policy/parity.js +44 -53
  93. package/dist/v1/compiled/admission/semantics/policy/pattern.d.ts +4 -1
  94. package/dist/v1/compiled/admission/semantics/policy/pattern.js +7 -21
  95. package/dist/v1/compiled/admission/semantics/policy/typing.d.ts +2 -24
  96. package/dist/v1/compiled/admission/semantics/policy/typing.js +19 -201
  97. package/dist/v1/compiled/admission/wire/callable.d.ts +5 -2
  98. package/dist/v1/compiled/admission/wire/callable.js +24 -20
  99. package/dist/v1/compiled/admission/wire/class.js +79 -30
  100. package/dist/v1/compiled/admission/wire/entry.d.ts +1 -1
  101. package/dist/v1/compiled/admission/wire/entry.js +36 -13
  102. package/dist/v1/compiled/admission/wire/policy.d.ts +4 -3
  103. package/dist/v1/compiled/admission/wire/policy.js +27 -20
  104. package/dist/v1/compiled/admission/wire/program.d.ts +13 -3
  105. package/dist/v1/compiled/admission/wire/program.js +39 -44
  106. package/dist/v1/compiled/admission/wire/property.d.ts +4 -1
  107. package/dist/v1/compiled/admission/wire/property.js +8 -5
  108. package/dist/v1/compiled/admission/wire/value.d.ts +0 -2
  109. package/dist/v1/compiled/admission/wire/value.js +0 -7
  110. package/dist/v1/compiled/codec/json.js +4 -3
  111. package/dist/v1/compiled/compiler/compile.js +15 -33
  112. package/dist/v1/compiled/diagnostic.d.ts +1 -1
  113. package/dist/v1/compiled/diagnostic.js +2 -3
  114. package/dist/v1/compiled/index.d.ts +2 -0
  115. package/dist/v1/compiled/index.js +1 -0
  116. package/dist/v1/compiled/loader/load.d.ts +3 -2
  117. package/dist/v1/compiled/loader/load.js +13 -52
  118. package/dist/v1/compiled/model/schema.d.ts +3 -0
  119. package/dist/v1/compiled/rule.d.ts +49 -0
  120. package/dist/v1/compiled/rule.js +169 -0
  121. package/dist/v1/domain/create.js +9 -10
  122. package/dist/v1/domain/model/domain.d.ts +2 -7
  123. package/dist/v1/domain/model/input.d.ts +19 -10
  124. package/dist/v1/domain/namespace/member-collection.js +8 -7
  125. package/dist/v1/domain/projection/classes.js +11 -8
  126. package/dist/v1/domain/validation/create.d.ts +7 -16
  127. package/dist/v1/domain/validation/create.js +35 -81
  128. package/dist/v1/index.d.ts +5 -3
  129. package/dist/v1/index.js +1 -1
  130. package/dist/v1/language/.spec/schemas/draft-2020-12.schema.json +462 -0
  131. package/dist/v1/language/.spec/schemas/value-schema.schema.json +23 -0
  132. package/dist/v1/language/callable/admission.d.ts +15 -0
  133. package/dist/v1/language/callable/admission.js +44 -0
  134. package/dist/v1/language/callable/model/callable.d.ts +10 -0
  135. package/dist/v1/language/callable/resolved.d.ts +26 -5
  136. package/dist/v1/language/chain.d.ts +7 -0
  137. package/dist/v1/language/chain.js +24 -0
  138. package/dist/v1/language/class/inheritance.d.ts +36 -5
  139. package/dist/v1/language/class/inheritance.js +85 -1
  140. package/dist/v1/language/class/lifetime.d.ts +50 -11
  141. package/dist/v1/language/class/lifetime.js +89 -20
  142. package/dist/v1/language/class/model/class.d.ts +45 -9
  143. package/dist/v1/language/class/model/edge.d.ts +31 -2
  144. package/dist/v1/language/class/model/property.d.ts +16 -7
  145. package/dist/v1/language/class/property-values.js +2 -4
  146. package/dist/v1/language/class/resolved.d.ts +9 -4
  147. package/dist/v1/language/class/unique.d.ts +143 -0
  148. package/dist/v1/language/class/unique.js +264 -0
  149. package/dist/v1/language/core/facts.d.ts +85 -0
  150. package/dist/v1/language/core/facts.js +116 -0
  151. package/dist/v1/language/cycle.d.ts +10 -0
  152. package/dist/v1/language/cycle.js +30 -0
  153. package/dist/v1/language/definition/metadata.d.ts +38 -0
  154. package/dist/v1/language/definition/metadata.js +51 -0
  155. package/dist/v1/language/freeze.d.ts +5 -0
  156. package/dist/v1/{schema/canonical → language}/freeze.js +4 -0
  157. package/dist/v1/language/index.d.ts +7 -2
  158. package/dist/v1/language/index.js +5 -1
  159. package/dist/v1/language/limits.d.ts +83 -0
  160. package/dist/v1/language/limits.js +77 -0
  161. package/dist/v1/language/policy/analysis/branches.d.ts +8 -0
  162. package/dist/v1/language/policy/analysis/branches.js +8 -8
  163. package/dist/v1/language/policy/analysis/budgets.d.ts +45 -12
  164. package/dist/v1/language/policy/analysis/budgets.js +140 -20
  165. package/dist/v1/language/policy/analysis/checks.js +8 -6
  166. package/dist/v1/language/policy/analysis/composition.d.ts +4 -0
  167. package/dist/v1/language/policy/analysis/composition.js +11 -0
  168. package/dist/v1/language/policy/analysis/typing.d.ts +51 -0
  169. package/dist/v1/language/policy/analysis/typing.js +456 -0
  170. package/dist/v1/language/policy/model/policy.d.ts +71 -9
  171. package/dist/v1/language/policy/model/policy.js +42 -4
  172. package/dist/v1/language/policy/normalization/normalize.d.ts +6 -6
  173. package/dist/v1/language/policy/normalization/normalize.js +46 -68
  174. package/dist/v1/language/suspended.d.ts +7 -0
  175. package/dist/v1/language/suspended.js +23 -0
  176. package/dist/v1/language/validation/diagnostic.d.ts +15 -1
  177. package/dist/v1/language/validation/diagnostic.js +21 -0
  178. package/dist/v1/language/validation/rule.d.ts +45 -0
  179. package/dist/v1/language/validation/rule.js +109 -0
  180. package/dist/v1/language/value/compile/fields.js +16 -16
  181. package/dist/v1/language/value/compile/load.d.ts +5 -0
  182. package/dist/v1/language/value/compile/load.js +13 -0
  183. package/dist/v1/language/value/evaluate/assertions.d.ts +5 -1
  184. package/dist/v1/language/value/evaluate/assertions.js +19 -8
  185. package/dist/v1/language/value/evaluate/evaluator.js +117 -120
  186. package/dist/v1/language/value/evaluate/preparation.d.ts +16 -0
  187. package/dist/v1/language/value/evaluate/preparation.js +100 -47
  188. package/dist/v1/language/value/evaluate/program.d.ts +2 -1
  189. package/dist/v1/language/value/evaluate/program.js +6 -6
  190. package/dist/v1/language/value/evaluate/validate.d.ts +3 -3
  191. package/dist/v1/language/value/evaluate/validate.js +15 -11
  192. package/dist/v1/language/value/evaluate/validity.optimization.d.ts +14 -0
  193. package/dist/v1/language/value/evaluate/validity.optimization.js +338 -0
  194. package/dist/v1/language/value/files.d.ts +44 -0
  195. package/dist/v1/language/value/files.js +151 -0
  196. package/dist/v1/language/value/inclusion/arrays.d.ts +3 -0
  197. package/dist/v1/language/value/inclusion/arrays.js +85 -0
  198. package/dist/v1/language/value/inclusion/assertions.d.ts +18 -0
  199. package/dist/v1/language/value/inclusion/assertions.js +28 -0
  200. package/dist/v1/language/value/inclusion/combinators.d.ts +3 -0
  201. package/dist/v1/language/value/inclusion/combinators.js +67 -0
  202. package/dist/v1/language/value/inclusion/equivalence.d.ts +4 -0
  203. package/dist/v1/language/value/inclusion/equivalence.js +76 -0
  204. package/dist/v1/language/value/inclusion/evidence.d.ts +34 -0
  205. package/dist/v1/language/value/inclusion/evidence.js +140 -0
  206. package/dist/v1/language/value/inclusion/includes.d.ts +29 -3
  207. package/dist/v1/language/value/inclusion/includes.js +58 -723
  208. package/dist/v1/language/value/inclusion/keywords.d.ts +5 -0
  209. package/dist/v1/language/value/inclusion/keywords.js +31 -0
  210. package/dist/v1/language/value/inclusion/kinds.d.ts +17 -0
  211. package/dist/v1/language/value/inclusion/kinds.js +57 -0
  212. package/dist/v1/language/value/inclusion/location.d.ts +24 -0
  213. package/dist/v1/language/value/inclusion/location.js +66 -0
  214. package/dist/v1/language/value/inclusion/numbers.d.ts +3 -0
  215. package/dist/v1/language/value/inclusion/numbers.js +41 -0
  216. package/dist/v1/language/value/inclusion/objects.d.ts +3 -0
  217. package/dist/v1/language/value/inclusion/objects.js +190 -0
  218. package/dist/v1/language/value/inclusion/strings.d.ts +3 -0
  219. package/dist/v1/language/value/inclusion/strings.js +29 -0
  220. package/dist/v1/language/value/inclusion/types.d.ts +3 -0
  221. package/dist/v1/language/value/inclusion/types.js +34 -0
  222. package/dist/v1/language/value/model/blob.d.ts +6 -0
  223. package/dist/v1/language/value/model/blob.js +8 -0
  224. package/dist/v1/language/value/model/file.d.ts +41 -0
  225. package/dist/v1/language/value/model/file.js +122 -0
  226. package/dist/v1/language/value/ordering.d.ts +14 -0
  227. package/dist/v1/language/value/ordering.js +144 -77
  228. package/dist/v1/language/value/profile/canonicalize.d.ts +6 -1
  229. package/dist/v1/language/value/profile/canonicalize.js +67 -87
  230. package/dist/v1/language/value/profile/json.validate.d.ts +12 -0
  231. package/dist/v1/language/value/profile/json.validate.js +18 -5
  232. package/dist/v1/language/value/profile/meta-schema.compiled.d.ts +1 -0
  233. package/dist/v1/language/value/profile/meta-schema.compiled.js +21 -5
  234. package/dist/v1/language/value/profile/rules.js +27 -44
  235. package/dist/v1/language/value/profile/validate.js +1 -10
  236. package/dist/v1/language/value/profile/vocabulary.d.ts +36 -2
  237. package/dist/v1/language/value/profile/vocabulary.js +58 -5
  238. package/dist/v1/language/value/reference/closure.js +6 -6
  239. package/dist/v1/language/value/reference/recursion.js +9 -48
  240. package/dist/v1/language/value/reference/references.d.ts +3 -1
  241. package/dist/v1/language/value/reference/references.js +7 -7
  242. package/dist/v1/language/value/reference/registry.index.d.ts +2 -0
  243. package/dist/v1/language/value/reference/registry.index.js +33 -16
  244. package/dist/v1/language/value/regexp/ast.js +6 -7
  245. package/dist/v1/language/value/regexp/compile.d.ts +5 -11
  246. package/dist/v1/language/value/regexp/compile.js +14 -12
  247. package/dist/v1/language/value/regexp/syntax.js +3 -2
  248. package/dist/v1/language/value/regexp/unicode.d.ts +1 -1
  249. package/dist/v1/language/value/regexp/unicode.js +1 -1
  250. package/dist/v1/language/value/syntax/keywords.d.ts +3 -3
  251. package/dist/v1/language/value/syntax/keywords.js +4 -20
  252. package/dist/v1/language/value/syntax/node-path/validate.js +2 -3
  253. package/dist/v1/language/value/syntax/pointer.d.ts +2 -0
  254. package/dist/v1/language/value/syntax/pointer.js +5 -2
  255. package/dist/v1/language/value/syntax/walk.d.ts +9 -0
  256. package/dist/v1/language/value/syntax/walk.js +37 -20
  257. package/dist/v1/schema/.spec/schemas/domain-schema.schema.json +2596 -0
  258. package/dist/v1/schema/admission/accept.d.ts +3 -1
  259. package/dist/v1/schema/admission/accept.js +6 -14
  260. package/dist/v1/schema/admission/callable.d.ts +21 -0
  261. package/dist/v1/schema/admission/callable.js +96 -0
  262. package/dist/v1/schema/analysis/class.d.ts +4 -0
  263. package/dist/v1/schema/analysis/class.js +57 -17
  264. package/dist/v1/schema/canonical/revision.d.ts +4 -1
  265. package/dist/v1/schema/canonical/revision.js +8 -5
  266. package/dist/v1/schema/compatibility/api.d.ts +4 -1
  267. package/dist/v1/schema/compatibility/api.js +2 -0
  268. package/dist/v1/schema/compatibility/comparators/callables.js +1 -1
  269. package/dist/v1/schema/compatibility/comparators/classes.d.ts +9 -4
  270. package/dist/v1/schema/compatibility/comparators/classes.js +50 -29
  271. package/dist/v1/schema/compatibility/comparators/index.d.ts +1 -1
  272. package/dist/v1/schema/compatibility/comparators/members.js +1 -1
  273. package/dist/v1/schema/compatibility/comparators/values.js +2 -2
  274. package/dist/v1/schema/compatibility/context.d.ts +5 -2
  275. package/dist/v1/schema/compatibility/context.js +8 -6
  276. package/dist/v1/schema/compatibility/coordinate.js +3 -3
  277. package/dist/v1/schema/compatibility/diff.js +2 -4
  278. package/dist/v1/schema/compatibility/extension.d.ts +11 -0
  279. package/dist/v1/schema/compatibility/extension.js +22 -0
  280. package/dist/v1/schema/compatibility/fields.d.ts +20 -4
  281. package/dist/v1/schema/compatibility/fields.js +13 -3
  282. package/dist/v1/schema/compatibility/meaning/footprint.js +16 -51
  283. package/dist/v1/schema/compatibility/model.d.ts +17 -5
  284. package/dist/v1/schema/compatibility/references.d.ts +0 -3
  285. package/dist/v1/schema/compatibility/references.js +1 -9
  286. package/dist/v1/schema/compatibility/report.js +1 -1
  287. package/dist/v1/schema/compatibility/rule.d.ts +13 -0
  288. package/dist/v1/schema/compatibility/rule.js +23 -0
  289. package/dist/v1/schema/compatibility/scope.d.ts +2 -0
  290. package/dist/v1/schema/compatibility/scope.js +4 -1
  291. package/dist/v1/schema/compatibility/structure/index.js +6 -4
  292. package/dist/v1/schema/compatibility/structure/requirements.js +58 -61
  293. package/dist/v1/schema/compatibility/versioning/index.js +1 -1
  294. package/dist/v1/schema/compatibility/versioning/surface.d.ts +1 -1
  295. package/dist/v1/schema/compatibility/versioning/surface.js +30 -2
  296. package/dist/v1/schema/compatibility/walk.d.ts +17 -0
  297. package/dist/v1/schema/compatibility/walk.js +41 -0
  298. package/dist/v1/schema/diagnostic.d.ts +17 -3
  299. package/dist/v1/schema/diagnostic.js +14 -11
  300. package/dist/v1/schema/enforcement/changes.d.ts +590 -0
  301. package/dist/v1/schema/enforcement/changes.js +566 -0
  302. package/dist/v1/schema/enforcement/derived.d.ts +236 -0
  303. package/dist/v1/schema/enforcement/derived.js +243 -0
  304. package/dist/v1/schema/enforcement/dispose.d.ts +308 -0
  305. package/dist/v1/schema/enforcement/dispose.js +275 -0
  306. package/dist/v1/schema/enforcement/facts.d.ts +89 -0
  307. package/dist/v1/schema/enforcement/facts.js +70 -0
  308. package/dist/v1/schema/enforcement/fields.d.ts +65 -0
  309. package/dist/v1/schema/enforcement/fields.js +36 -0
  310. package/dist/v1/schema/enforcement/index.d.ts +39 -0
  311. package/dist/v1/schema/enforcement/index.js +10 -0
  312. package/dist/v1/schema/enforcement/install.d.ts +1634 -0
  313. package/dist/v1/schema/enforcement/install.js +1223 -0
  314. package/dist/v1/schema/enforcement/lifecycle.d.ts +87 -0
  315. package/dist/v1/schema/enforcement/lifecycle.js +91 -0
  316. package/dist/v1/schema/enforcement/model.d.ts +253 -0
  317. package/dist/v1/schema/enforcement/model.js +1 -0
  318. package/dist/v1/schema/enforcement/obligations.d.ts +248 -0
  319. package/dist/v1/schema/enforcement/obligations.js +240 -0
  320. package/dist/v1/schema/enforcement/write.d.ts +1314 -0
  321. package/dist/v1/schema/enforcement/write.js +1017 -0
  322. package/dist/v1/schema/index.d.ts +11 -1
  323. package/dist/v1/schema/index.js +5 -0
  324. package/dist/v1/schema/model/schema.d.ts +23 -1
  325. package/dist/v1/schema/model/schema.js +1 -1
  326. package/dist/v1/schema/normalization/domain.d.ts +2 -0
  327. package/dist/v1/schema/normalization/domain.js +50 -13
  328. package/dist/v1/schema/resolution/closure.js +2 -1
  329. package/dist/v1/schema/resolution/context.js +17 -18
  330. package/dist/v1/schema/resolution/domain.d.ts +5 -0
  331. package/dist/v1/schema/resolution/domain.js +6 -12
  332. package/dist/v1/schema/resolution/origins.js +6 -8
  333. package/dist/v1/schema/rule.d.ts +25 -0
  334. package/dist/v1/schema/rule.js +459 -0
  335. package/dist/v1/schema/validation/callable.d.ts +35 -2
  336. package/dist/v1/schema/validation/callable.js +65 -9
  337. package/dist/v1/schema/validation/class.d.ts +6 -2
  338. package/dist/v1/schema/validation/class.js +128 -105
  339. package/dist/v1/schema/validation/core.js +103 -173
  340. package/dist/v1/schema/validation/domain.js +25 -15
  341. package/dist/v1/schema/validation/domain.json-schema.d.ts +15 -0
  342. package/dist/v1/schema/validation/domain.json-schema.js +222 -0
  343. package/dist/v1/schema/validation/domain.route.d.ts +6 -1
  344. package/dist/v1/schema/validation/domain.route.js +18 -0
  345. package/dist/v1/schema/validation/domain.structure.d.ts +7797 -0
  346. package/dist/v1/schema/validation/domain.structure.js +516 -160
  347. package/dist/v1/schema/validation/icon.d.ts +4 -0
  348. package/dist/v1/schema/validation/icon.js +29 -0
  349. package/dist/v1/schema/validation/json.json-schema.d.ts +40 -0
  350. package/dist/v1/schema/validation/json.json-schema.js +46 -0
  351. package/dist/v1/schema/validation/policy/budgets.d.ts +37 -2
  352. package/dist/v1/schema/validation/policy/budgets.js +94 -121
  353. package/dist/v1/schema/validation/policy/context.d.ts +6 -5
  354. package/dist/v1/schema/validation/policy/context.js +7 -10
  355. package/dist/v1/schema/validation/policy/objects.d.ts +1 -1
  356. package/dist/v1/schema/validation/policy/objects.js +6 -14
  357. package/dist/v1/schema/validation/policy/references.js +20 -62
  358. package/dist/v1/schema/validation/policy/typing.d.ts +3 -18
  359. package/dist/v1/schema/validation/policy/typing.js +22 -356
  360. package/dist/v1/schema/validation/policy/uses.d.ts +40 -3
  361. package/dist/v1/schema/validation/policy/uses.js +63 -91
  362. package/dist/v1/schema/validation/policy/validate.js +5 -5
  363. package/dist/v1/schema/validation/value-api.d.ts +27 -1
  364. package/dist/v1/schema/validation/value-api.js +37 -2
  365. package/dist/v1/schema/validation/value.d.ts +3 -0
  366. package/dist/v1/schema/validation/value.js +9 -17
  367. package/dist/v1/schema/validation/value.json-schema.d.ts +54 -0
  368. package/dist/v1/schema/validation/value.json-schema.js +163 -0
  369. package/dist/v1/schema/validation/view.js +4 -8
  370. package/dist/value/accept.d.ts +9 -3
  371. package/dist/value/accept.js +25 -1
  372. package/dist/value/canonical.d.ts +22 -1
  373. package/dist/value/canonical.js +114 -21
  374. package/dist/value/decode.d.ts +7 -0
  375. package/dist/value/decode.js +159 -9
  376. package/dist/value/equal.d.ts +9 -1
  377. package/dist/value/equal.js +37 -3
  378. package/dist/value/immutable.optimization.d.ts +2 -0
  379. package/dist/value/immutable.optimization.js +4 -0
  380. package/dist/value/index.d.ts +5 -3
  381. package/dist/value/index.js +2 -1
  382. package/dist/value/json.d.ts +2 -2
  383. package/dist/value/json.js +2 -2
  384. package/dist/value/limits.d.ts +11 -0
  385. package/dist/value/rule.d.ts +12 -0
  386. package/dist/value/rule.js +50 -0
  387. package/dist/value/types.d.ts +6 -0
  388. package/dist/value/unicode.d.ts +2 -1
  389. package/dist/value/unicode.js +2 -0
  390. package/package.json +15 -4
  391. package/dist/v1/builder/lowering/core-properties.d.ts +0 -10
  392. package/dist/v1/builder/lowering/core-properties.js +0 -76
  393. package/dist/v1/compiled/admission/semantics/cardinality.d.ts +0 -5
  394. package/dist/v1/compiled/admission/semantics/cardinality.js +0 -113
  395. package/dist/v1/compiled/admission/semantics/policy/equality.d.ts +0 -8
  396. package/dist/v1/compiled/admission/semantics/policy/equality.js +0 -27
  397. package/dist/v1/compiled/admission/semantics/policy/measure.d.ts +0 -9
  398. package/dist/v1/compiled/admission/semantics/policy/measure.js +0 -81
  399. package/dist/v1/compiled/admission/semantics/policy/variants.d.ts +0 -10
  400. package/dist/v1/compiled/admission/semantics/policy/variants.js +0 -65
  401. package/dist/v1/compiled/admission/wire/pattern.d.ts +0 -12
  402. package/dist/v1/compiled/admission/wire/pattern.js +0 -111
  403. package/dist/v1/language/class/index.d.ts +0 -8
  404. package/dist/v1/language/class/index.js +0 -1
  405. package/dist/v1/language/core/index.d.ts +0 -2
  406. package/dist/v1/language/value/index.d.ts +0 -11
  407. package/dist/v1/language/value/index.js +0 -8
  408. package/dist/v1/schema/canonical/domain.d.ts +0 -3
  409. package/dist/v1/schema/canonical/domain.digest.d.ts +0 -3
  410. package/dist/v1/schema/canonical/domain.digest.js +0 -5
  411. package/dist/v1/schema/canonical/domain.js +0 -5
  412. package/dist/v1/schema/canonical/freeze.d.ts +0 -1
  413. /package/dist/v1/{language/core/index.js → builder/class/input.js} +0 -0
@@ -0,0 +1,590 @@
1
+ import type { DisposeId } from './dispose.js';
2
+ import type { InstallId } from './install.js';
3
+ import type { EnforcementSubject } from './model.js';
4
+ import type { ObligationKind } from './obligations.js';
5
+ /**
6
+ * One kind of change between two revisions of a Domain, classified twice: `bump` is the level
7
+ * `requiredBump` gives it, from the two documents; `owes` is what the Runtime asks the stored facts
8
+ * before it activates it. `disposes`: the rows that decide what becomes of facts it leaves behind.
9
+ * `refused`: the rows that refuse it whatever the facts. `divergence`: why a level below major
10
+ * does not hold what it promises a consumer, that nothing awaits it. `gap`: what it leaves stored
11
+ * that the contract of the target refuses, no question asking. `also`: the rows that state what it
12
+ * owes beyond `owes` when a count or a role around it says so.
13
+ */
14
+ export interface SchemaChange {
15
+ readonly subjects: readonly EnforcementSubject[];
16
+ readonly statement: string;
17
+ readonly bump: 'patch' | 'minor' | 'major';
18
+ readonly owes: readonly ObligationKind[];
19
+ readonly disposes?: readonly DisposeId[];
20
+ readonly refused?: readonly InstallId[];
21
+ readonly divergence?: string;
22
+ readonly gap?: string;
23
+ readonly also?: readonly string[];
24
+ }
25
+ /**
26
+ * What each kind of change costs, field by field. A level above what a change owes is conservative:
27
+ * `requiredBump` compares declarations, so a widening is major though no stored fact can refute it.
28
+ */
29
+ export declare const CHANGES: Readonly<{
30
+ readonly CLASS_ADDED: {
31
+ readonly subjects: readonly ["class.ref"];
32
+ readonly statement: 'A new Class owes nothing: no fact is stored under it, but those a repair session staged, which `facts` reads whole.';
33
+ readonly bump: 'minor';
34
+ readonly owes: readonly [];
35
+ };
36
+ readonly CLASS_ADDED_OPEN_BELOW: {
37
+ readonly subjects: readonly ["class.ref", "class.inheritance", "endpoint.onDelete"];
38
+ readonly statement: 'A new open Class under a Class of its Domain owes nothing. Another Domain may now hold a Node of that parent, so an Edge of its Domain whose lifetime is derived at it, in a Class with no required end, detaches at the next deletion instead of refusing it.';
39
+ readonly bump: 'minor';
40
+ readonly owes: readonly [];
41
+ readonly divergence: 'The level reads a new Class, and the lifetime of an Edge Class already stored reads which Classes are open: at minor, a deletion the previous revision refused now deletes the Edge.';
42
+ };
43
+ readonly CLASS_REMOVED: {
44
+ readonly subjects: readonly ["class.ref"];
45
+ readonly statement: 'A removed Class owes no question of its own: its disposal refuses it while a fact remains. A validation that reads the store for another question reads its extent too, unless the change retires Classes, so that the refusal names both.';
46
+ readonly bump: 'major';
47
+ readonly owes: readonly [];
48
+ readonly disposes: readonly ["REMOVED_CLASS_OCCUPIED"];
49
+ };
50
+ readonly ABSTRACT_CLASS_REMOVED: {
51
+ readonly subjects: readonly ["class.ref", "class.abstract"];
52
+ readonly statement: 'A removed abstract Class owes nothing: no fact is stored under it.';
53
+ readonly bump: 'major';
54
+ readonly owes: readonly [];
55
+ };
56
+ readonly CLASS_TURNED_ABSTRACT: {
57
+ readonly subjects: readonly ["class.abstract"];
58
+ readonly statement: 'A Class made abstract must store no fact.';
59
+ readonly bump: 'major';
60
+ readonly owes: readonly ["empty"];
61
+ };
62
+ readonly CLASS_TURNED_CONCRETE: {
63
+ readonly subjects: readonly ["class.abstract"];
64
+ readonly statement: 'A Class made concrete owes nothing: no fact is stored under it.';
65
+ readonly bump: 'major';
66
+ readonly owes: readonly [];
67
+ };
68
+ readonly EDGE_TURNED_CONCRETE_WITH_LOWER_BOUND: {
69
+ readonly subjects: readonly ["class.abstract", "endpoint.outgoing", "endpoint.incoming", "endpoint.incident"];
70
+ readonly statement: 'An Edge Class made concrete whose role requires an Edge must find that count on every Node of the Class that role accepts.';
71
+ readonly bump: 'major';
72
+ readonly owes: readonly ["degree"];
73
+ };
74
+ readonly CLASS_KIND_CHANGED: {
75
+ readonly subjects: readonly ["class.kind"];
76
+ readonly statement: 'A Class that turns from Node to Edge, or back, must store no fact.';
77
+ readonly bump: 'major';
78
+ readonly owes: readonly ["empty"];
79
+ readonly also: readonly ["EDGE_ADDED_WITH_LOWER_BOUND"];
80
+ };
81
+ readonly EDGE_TURNED_UNDIRECTED: {
82
+ readonly subjects: readonly ["class.orientation"];
83
+ readonly statement: 'An Edge Class made undirected with no count must hold no two Edges over one pair of Nodes. The activation stores each Edge in the canonical order of its Nodes.';
84
+ readonly bump: 'major';
85
+ readonly owes: readonly ["distinct"];
86
+ readonly disposes: readonly ["EDGE_REORIENTED"];
87
+ readonly also: readonly ["EDGE_TURNED_UNDIRECTED_BOUNDED"];
88
+ };
89
+ readonly EDGE_TURNED_UNDIRECTED_CORE_LEAVES: {
90
+ readonly subjects: readonly ["class.orientation", "install.core", "endpoint.onDelete"];
91
+ readonly statement: 'An Edge at a Core Node the same change removes, in a Class a previous role of which restricted, restricts it, whatever the target declares: the previous orientation names the end, and the roles of the target hold none under that name.';
92
+ readonly bump: 'major';
93
+ readonly owes: readonly ["distinct"];
94
+ readonly disposes: readonly ["CORE_NODE_LEAVES", "LEAVING_NODE_RESTRICTED"];
95
+ };
96
+ readonly EDGE_TURNED_UNDIRECTED_BOUNDED: {
97
+ readonly subjects: readonly ["class.orientation", "endpoint.incident"];
98
+ readonly statement: 'An Edge Class made undirected under a count must also hold that count: its Edges now count at both ends.';
99
+ readonly bump: 'major';
100
+ readonly owes: readonly ["degree", "distinct"];
101
+ readonly disposes: readonly ["EDGE_REORIENTED"];
102
+ };
103
+ readonly EDGE_TURNED_DIRECTED: {
104
+ readonly subjects: readonly ["class.orientation"];
105
+ readonly statement: 'An Edge Class made directed must store no fact: its Edges name no direction.';
106
+ readonly bump: 'major';
107
+ readonly owes: readonly ["empty"];
108
+ readonly also: readonly ["EDGE_TURNED_DIRECTED_BOUNDED"];
109
+ };
110
+ readonly EDGE_TURNED_DIRECTED_BOUNDED: {
111
+ readonly subjects: readonly ["class.orientation", "endpoint.outgoing", "endpoint.incoming"];
112
+ readonly statement: 'An Edge Class made directed under a count must store no fact, and every Node that count falls on must already hold it.';
113
+ readonly bump: 'major';
114
+ readonly owes: readonly ["degree", "empty"];
115
+ };
116
+ readonly EXTENDS_GAINED: {
117
+ readonly subjects: readonly ["class.extends"];
118
+ readonly statement: 'A Class gaining a parent owes nothing for the optional Properties it inherits.';
119
+ readonly bump: 'patch';
120
+ readonly owes: readonly [];
121
+ readonly also: readonly ["EXTENDS_GAINED_WITH_LOWER_BOUND"];
122
+ };
123
+ readonly EXTENDS_GAINED_BY_OPEN: {
124
+ readonly subjects: readonly ["class.extends", "class.inheritance", "endpoint.onDelete"];
125
+ readonly statement: 'An open Class gaining a parent of its Domain owes nothing. Another Domain may now hold a Node of that parent, so an Edge of its Domain whose lifetime is derived at it, in a Class with no required end, detaches at the next deletion instead of refusing it.';
126
+ readonly bump: 'patch';
127
+ readonly owes: readonly [];
128
+ readonly divergence: 'The level reads a Class gaining a parent, and the lifetime of an Edge Class already stored reads which Classes are open: at patch, a deletion the previous revision refused now deletes the Edge.';
129
+ };
130
+ readonly EXTENDS_GAINED_WITH_LOWER_BOUND: {
131
+ readonly subjects: readonly ["class.extends", "endpoint.outgoing", "endpoint.incoming"];
132
+ readonly statement: 'A Class gaining a parent that a role requires an Edge of must hold that count on every Node it stores.';
133
+ readonly bump: 'patch';
134
+ readonly owes: readonly ["degree"];
135
+ readonly divergence: 'The level reads a Class gaining a parent, and the Runtime reads the Nodes the bound of its role now falls on: the change is patch and refused over any such Node.';
136
+ };
137
+ readonly EXTENDS_GAINED_REQUIRED: {
138
+ readonly subjects: readonly ["class.extends", "property.required"];
139
+ readonly statement: 'A Class inheriting a required Property must hold it on every stored Node.';
140
+ readonly bump: 'major';
141
+ readonly owes: readonly ["present"];
142
+ readonly also: readonly ["EXTENDS_GAINED_WITH_LOWER_BOUND"];
143
+ };
144
+ readonly INHERITED_PROPERTY_ADDED_REQUIRED_AUTOMATIC: {
145
+ readonly subjects: readonly ["class.properties", "property.required", "property.auto"];
146
+ readonly statement: 'A new required automatic Property of a parent must be held by every stored Node of the Classes below it: no write ran to stamp it.';
147
+ readonly bump: 'minor';
148
+ readonly owes: readonly ["present"];
149
+ readonly divergence: 'The level reads that the Kernel stamps the value on the next write, and the Runtime reads that no write stamped the facts stored already: the change is minor and refused over any stored Node.';
150
+ };
151
+ readonly EXTENDS_GAINED_REQUIRED_AUTOMATIC: {
152
+ readonly subjects: readonly ["class.extends", "property.required", "property.auto"];
153
+ readonly statement: 'A Class inheriting a required automatic Property must hold it on every stored Node: no write ran to stamp it.';
154
+ readonly bump: 'patch';
155
+ readonly owes: readonly ["present"];
156
+ readonly divergence: 'The level reads that the Kernel stamps the value on the next write, and the Runtime reads that no write stamped the facts stored already: the change is patch and refused over any stored Node.';
157
+ readonly also: readonly ["EXTENDS_GAINED_WITH_LOWER_BOUND"];
158
+ };
159
+ readonly EXTENDS_GAINED_UNIQUE: {
160
+ readonly subjects: readonly ["class.extends", "class.unique"];
161
+ readonly statement: 'A Class moved under a parent whose unique rule spells a Property it already inherits must store no two Nodes under one key.';
162
+ readonly bump: 'patch';
163
+ readonly owes: readonly ["unique"];
164
+ readonly divergence: 'The level reads a Class gaining a parent, and the Runtime reads the stored values the inherited rule now falls on: the change is patch and refused over two such Nodes.';
165
+ readonly also: readonly ["EXTENDS_GAINED_WITH_LOWER_BOUND"];
166
+ };
167
+ readonly EXTENDS_LOST: {
168
+ readonly subjects: readonly ["class.extends"];
169
+ readonly statement: 'A Class losing a parent must store no value of what it inherited.';
170
+ readonly bump: 'major';
171
+ readonly owes: readonly ["absent"];
172
+ readonly also: readonly ["EXTENDS_LOST_UNDER_ROLE"];
173
+ };
174
+ readonly EXTENDS_LOST_STILL_INHERITED: {
175
+ readonly subjects: readonly ["class.extends"];
176
+ readonly statement: 'A Class dropping a parent it still inherits through another owes nothing.';
177
+ readonly bump: 'patch';
178
+ readonly owes: readonly [];
179
+ };
180
+ readonly EXTENDS_LOST_UNDER_ROLE: {
181
+ readonly subjects: readonly ["class.extends", "endpoint.accepts"];
182
+ readonly statement: 'A Class losing a parent a role of a Domain the change replaces accepts must store no Edge which that role alone accepted it at.';
183
+ readonly bump: 'major';
184
+ readonly owes: readonly ["endpoints"];
185
+ };
186
+ readonly EXTENDS_LOST_UNDER_ANOTHER_DOMAIN: {
187
+ readonly subjects: readonly ["class.extends", "endpoint.accepts"];
188
+ readonly statement: 'A Class losing a parent a role of another Domain accepts owes nothing unless the change also replaces that Domain: an Edge which that role alone accepted it at stays stored. So it stays stored when that role is in a dependency the Class extends. A dependent is replaced by the first change that re-anchors it, so the same narrowing of a dependency is refused then, and activates once its context stays the same.';
189
+ readonly bump: 'major';
190
+ readonly owes: readonly [];
191
+ readonly gap: 'The target does not accept the Edge left stored, and no later change asks: `endpoints` compares two revisions of an Edge Class of a Domain the plan replaces.';
192
+ };
193
+ readonly IDENTITY_GAINED: {
194
+ readonly subjects: readonly ["class.extends", "fact.authentication"];
195
+ readonly statement: 'A Class made an Identity owes nothing: its stored Nodes hold no authentication Property yet.';
196
+ readonly bump: 'patch';
197
+ readonly owes: readonly [];
198
+ };
199
+ readonly IDENTITY_LOST: {
200
+ readonly subjects: readonly ["class.extends", "fact.authentication"];
201
+ readonly statement: 'A Class which stops being an Identity is refused whatever the facts: authentication coordinates would lose their meaning.';
202
+ readonly bump: 'major';
203
+ readonly owes: readonly [];
204
+ readonly refused: readonly ["IDENTITY_CLASS_REMOVED"];
205
+ };
206
+ readonly CLASS_DATA_CHANGED: {
207
+ readonly subjects: readonly ["class.data"];
208
+ readonly statement: 'A changed data facet owes nothing: neither the Runtime nor a store reads it.';
209
+ readonly bump: 'major';
210
+ readonly owes: readonly [];
211
+ };
212
+ readonly CLASS_INHERITANCE_CHANGED: {
213
+ readonly subjects: readonly ["class.inheritance"];
214
+ readonly statement: 'A Class moved between internal and final owes nothing: no other Domain could extend it, and only acceptance reads the rule.';
215
+ readonly bump: 'patch';
216
+ readonly owes: readonly [];
217
+ };
218
+ readonly CLASS_INHERITANCE_OPENED: {
219
+ readonly subjects: readonly ["class.inheritance", "endpoint.onDelete"];
220
+ readonly statement: 'A Class opened to other Domains owes nothing. An Edge of its Domain whose lifetime is derived at it, in a Class with no required end, then detaches at the next deletion instead of refusing it.';
221
+ readonly bump: 'patch';
222
+ readonly owes: readonly [];
223
+ readonly divergence: 'The level reads a widening, and the rule also decides a lifetime: at patch, a deletion the previous revision refused now deletes the Edge.';
224
+ };
225
+ readonly CLASS_INHERITANCE_CLOSED: {
226
+ readonly subjects: readonly ["class.inheritance", "endpoint.onDelete"];
227
+ readonly statement: 'A Class closed to other Domains owes nothing. An Edge of its Domain whose lifetime is derived at it then refuses the next deletion instead of detaching, unless an open Class of its Domain still extends it.';
228
+ readonly bump: 'major';
229
+ readonly owes: readonly [];
230
+ };
231
+ readonly UNIQUE_GAINED: {
232
+ readonly subjects: readonly ["class.unique"];
233
+ readonly statement: 'A Node Class gaining a unique rule must store no two Nodes under one key.';
234
+ readonly bump: 'major';
235
+ readonly owes: readonly ["unique"];
236
+ };
237
+ readonly EDGE_UNIQUE_GAINED: {
238
+ readonly subjects: readonly ["class.unique"];
239
+ readonly statement: 'An Edge Class gaining a unique rule must store no two Edges under one key.';
240
+ readonly bump: 'major';
241
+ readonly owes: readonly ["unique"];
242
+ };
243
+ readonly UNIQUE_DROPPED: {
244
+ readonly subjects: readonly ["class.unique"];
245
+ readonly statement: 'A dropped unique rule owes nothing.';
246
+ readonly bump: 'major';
247
+ readonly owes: readonly [];
248
+ };
249
+ readonly PROPERTY_ADDED_OPTIONAL: {
250
+ readonly subjects: readonly ["class.properties"];
251
+ readonly statement: 'A new optional Property owes nothing.';
252
+ readonly bump: 'minor';
253
+ readonly owes: readonly [];
254
+ };
255
+ readonly PROPERTY_ADDED_REQUIRED: {
256
+ readonly subjects: readonly ["class.properties", "property.required"];
257
+ readonly statement: 'A new required Property must be held by every stored fact.';
258
+ readonly bump: 'major';
259
+ readonly owes: readonly ["present"];
260
+ };
261
+ readonly PROPERTY_ADDED_STATE: {
262
+ readonly subjects: readonly ["class.properties", "property.state"];
263
+ readonly statement: 'A new State must be held by every stored Node.';
264
+ readonly bump: 'major';
265
+ readonly owes: readonly ["present"];
266
+ };
267
+ readonly PROPERTY_ADDED_REQUIRED_AUTOMATIC: {
268
+ readonly subjects: readonly ["class.properties", "property.required", "property.auto"];
269
+ readonly statement: 'A new required automatic Property must be held by every stored fact: no write ran to stamp it.';
270
+ readonly bump: 'minor';
271
+ readonly owes: readonly ["present"];
272
+ readonly divergence: 'The level reads that the Kernel stamps the value on the next write, and the Runtime reads that no write stamped the facts stored already: the change is minor and refused over any stored fact.';
273
+ };
274
+ readonly EDGE_PROPERTY_ADDED_REQUIRED: {
275
+ readonly subjects: readonly ["class.properties", "property.required"];
276
+ readonly statement: 'A new required Property of an Edge must be held by every stored Edge.';
277
+ readonly bump: 'major';
278
+ readonly owes: readonly ["present"];
279
+ };
280
+ readonly INHERITED_PROPERTY_ADDED_REQUIRED: {
281
+ readonly subjects: readonly ["class.properties", "class.extends", "property.required"];
282
+ readonly statement: 'A required Property added to a parent must be held by every stored fact of its descendants.';
283
+ readonly bump: 'major';
284
+ readonly owes: readonly ["present"];
285
+ };
286
+ readonly PROPERTY_REMOVED: {
287
+ readonly subjects: readonly ["class.properties"];
288
+ readonly statement: 'A removed Property must have no value left stored.';
289
+ readonly bump: 'major';
290
+ readonly owes: readonly ["absent"];
291
+ };
292
+ readonly PROPERTY_WIDENED: {
293
+ readonly subjects: readonly ["property.schema"];
294
+ readonly statement: 'A schema the Kernel proves accepts every value it accepted owes nothing.';
295
+ readonly bump: 'major';
296
+ readonly owes: readonly [];
297
+ };
298
+ readonly PROPERTY_PATTERN_CHANGED: {
299
+ readonly subjects: readonly ["property.schema"];
300
+ readonly statement: 'A pattern or a full match under other text is read as a narrowing, whatever the two accept: the Kernel proves the inclusion of either by identical text alone. Every distinct stored value must meet it.';
301
+ readonly bump: 'major';
302
+ readonly owes: readonly ["values"];
303
+ };
304
+ readonly PROPERTY_NARROWED: {
305
+ readonly subjects: readonly ["property.schema"];
306
+ readonly statement: 'A schema the Kernel does not prove wider reads as narrowed and must accept every value stored under it. The proof has a budget, stated by VS-INCLUSION-BUDGET: a schema past it is not proved wider.';
307
+ readonly bump: 'major';
308
+ readonly owes: readonly ["values"];
309
+ };
310
+ readonly PROPERTY_ANNOTATED: {
311
+ readonly subjects: readonly ["property.schema"];
312
+ readonly statement: 'A schema which changes only annotations owes nothing and keeps the same level.';
313
+ readonly bump: 'patch';
314
+ readonly owes: readonly [];
315
+ };
316
+ readonly PROPERTY_BECOMES_BLOB: {
317
+ readonly subjects: readonly ["property.schema"];
318
+ readonly statement: 'A Property turned into a blob must hold no value which is not one.';
319
+ readonly bump: 'major';
320
+ readonly owes: readonly ["values"];
321
+ };
322
+ readonly PROPERTY_MADE_REQUIRED: {
323
+ readonly subjects: readonly ["property.required"];
324
+ readonly statement: 'A Property made required must be held by every stored fact.';
325
+ readonly bump: 'major';
326
+ readonly owes: readonly ["present"];
327
+ };
328
+ readonly PROPERTY_MADE_OPTIONAL: {
329
+ readonly subjects: readonly ["property.required"];
330
+ readonly statement: 'A Property made optional owes nothing.';
331
+ readonly bump: 'major';
332
+ readonly owes: readonly [];
333
+ };
334
+ readonly PROPERTY_AUTO_ADDED: {
335
+ readonly subjects: readonly ["property.auto"];
336
+ readonly statement: 'A Property made automatic owes nothing: a stored value stays as it is.';
337
+ readonly bump: 'major';
338
+ readonly owes: readonly [];
339
+ };
340
+ readonly PROPERTY_AUTO_REMOVED: {
341
+ readonly subjects: readonly ["property.auto"];
342
+ readonly statement: 'A Property no longer automatic owes nothing: a stored value stays as it is.';
343
+ readonly bump: 'major';
344
+ readonly owes: readonly [];
345
+ };
346
+ readonly PROPERTY_AUTO_CHANGED: {
347
+ readonly subjects: readonly ["property.auto"];
348
+ readonly statement: 'A Property stamped on other events owes nothing: a stored value stays as it is.';
349
+ readonly bump: 'major';
350
+ readonly owes: readonly [];
351
+ };
352
+ readonly PROPERTY_IMMUTABLE_CHANGED: {
353
+ readonly subjects: readonly ["property.immutable"];
354
+ readonly statement: 'A Property immutable in another way owes nothing.';
355
+ readonly bump: 'major';
356
+ readonly owes: readonly [];
357
+ };
358
+ readonly PROPERTY_IMMUTABLE_ADDED: {
359
+ readonly subjects: readonly ["property.immutable"];
360
+ readonly statement: 'A Property made immutable owes nothing: a stored value is its first value.';
361
+ readonly bump: 'major';
362
+ readonly owes: readonly [];
363
+ };
364
+ readonly PROPERTY_IMMUTABLE_REMOVED: {
365
+ readonly subjects: readonly ["property.immutable"];
366
+ readonly statement: 'A Property no longer immutable owes nothing.';
367
+ readonly bump: 'major';
368
+ readonly owes: readonly [];
369
+ };
370
+ readonly PROPERTY_BECOMES_STATE_FROM_OPTIONAL: {
371
+ readonly subjects: readonly ["property.state", "property.required"];
372
+ readonly statement: 'An optional Property turned into a State must hold a value on every stored Node, and only values among its states; one whose schema accepts only those states owes the value alone.';
373
+ readonly bump: 'major';
374
+ readonly owes: readonly ["present", "values"];
375
+ };
376
+ readonly PROPERTY_BECOMES_STATE: {
377
+ readonly subjects: readonly ["property.state"];
378
+ readonly statement: 'A Property turned into a State must hold only values among its states.';
379
+ readonly bump: 'major';
380
+ readonly owes: readonly ["values"];
381
+ };
382
+ readonly PROPERTY_BECOMES_STATE_WITHIN_ITS_VALUES: {
383
+ readonly subjects: readonly ["property.state", "property.schema"];
384
+ readonly statement: 'A required Property whose schema accepts only the states of the State it becomes owes nothing.';
385
+ readonly bump: 'major';
386
+ readonly owes: readonly [];
387
+ };
388
+ readonly PROPERTY_STOPS_BEING_STATE_NARROWED: {
389
+ readonly subjects: readonly ["property.state", "property.schema"];
390
+ readonly statement: 'A State turned into a Property whose schema refuses one of its states must hold no such state.';
391
+ readonly bump: 'major';
392
+ readonly owes: readonly ["values"];
393
+ };
394
+ readonly PROPERTY_STOPS_BEING_STATE: {
395
+ readonly subjects: readonly ["property.state"];
396
+ readonly statement: 'A State turned into a plain Property owes nothing when its schema accepts them.';
397
+ readonly bump: 'major';
398
+ readonly owes: readonly [];
399
+ };
400
+ readonly STATE_REMOVED: {
401
+ readonly subjects: readonly ["property.state"];
402
+ readonly statement: 'A removed state must be held by no stored Node.';
403
+ readonly bump: 'major';
404
+ readonly owes: readonly ["values"];
405
+ };
406
+ readonly STATE_ADDED: {
407
+ readonly subjects: readonly ["property.state"];
408
+ readonly statement: 'A new state owes nothing.';
409
+ readonly bump: 'major';
410
+ readonly owes: readonly [];
411
+ };
412
+ readonly STATE_TRANSITIONS_CHANGED: {
413
+ readonly subjects: readonly ["property.state"];
414
+ readonly statement: 'Changed transitions owe nothing: no store holds how a Node came to its state.';
415
+ readonly bump: 'major';
416
+ readonly owes: readonly [];
417
+ };
418
+ readonly ENDPOINT_ACCEPTS_NARROWED: {
419
+ readonly subjects: readonly ["endpoint.accepts"];
420
+ readonly statement: 'An endpoint which stops accepting a Class must hold no Edge on a Node of it.';
421
+ readonly bump: 'major';
422
+ readonly owes: readonly ["endpoints"];
423
+ };
424
+ readonly ENDPOINT_ACCEPTED_CLASS_REMOVED: {
425
+ readonly subjects: readonly ["endpoint.accepts", "class.ref"];
426
+ readonly statement: 'An endpoint which stops accepting a Class the target removes owes no question: the disposal of that Class decides.';
427
+ readonly bump: 'major';
428
+ readonly owes: readonly [];
429
+ readonly disposes: readonly ["REMOVED_CLASS_OCCUPIED"];
430
+ };
431
+ readonly ENDPOINT_ACCEPTS_WIDENED: {
432
+ readonly subjects: readonly ["endpoint.accepts"];
433
+ readonly statement: 'An endpoint with no lower bound accepting more Classes owes nothing.';
434
+ readonly bump: 'major';
435
+ readonly owes: readonly [];
436
+ readonly also: readonly ["ENDPOINT_ACCEPTS_WIDENED_WITH_LOWER_BOUND"];
437
+ };
438
+ readonly ENDPOINT_ACCEPTS_WIDENED_WITH_LOWER_BOUND: {
439
+ readonly subjects: readonly ["endpoint.accepts", "endpoint.outgoing", "endpoint.incoming"];
440
+ readonly statement: 'An endpoint with a lower bound accepting more Classes must hold that count on every Node of those it stores.';
441
+ readonly bump: 'major';
442
+ readonly owes: readonly ["degree"];
443
+ };
444
+ readonly ENDPOINT_LIFETIME_CHANGED: {
445
+ readonly subjects: readonly ["endpoint.onDelete"];
446
+ readonly statement: 'A changed lifetime owes nothing: it decides the next deletion.';
447
+ readonly bump: 'major';
448
+ readonly owes: readonly [];
449
+ };
450
+ readonly ENDPOINT_ROLE_RENAMED: {
451
+ readonly subjects: readonly ["endpoint.role"];
452
+ readonly statement: 'A renamed role owes nothing: a stored Edge holds its Nodes by position.';
453
+ readonly bump: 'major';
454
+ readonly owes: readonly [];
455
+ };
456
+ readonly COUNT_UPPER_TIGHTENED: {
457
+ readonly subjects: readonly ["endpoint.outgoing"];
458
+ readonly statement: 'A tighter outgoing count must hold of every stored Node.';
459
+ readonly bump: 'major';
460
+ readonly owes: readonly ["degree"];
461
+ };
462
+ readonly COUNT_LOWER_RAISED: {
463
+ readonly subjects: readonly ["endpoint.outgoing"];
464
+ readonly statement: 'A raised lower bound must hold of every stored Node the endpoint accepts.';
465
+ readonly bump: 'major';
466
+ readonly owes: readonly ["degree"];
467
+ };
468
+ readonly COUNT_LOOSENED: {
469
+ readonly subjects: readonly ["endpoint.outgoing"];
470
+ readonly statement: 'A looser count owes nothing.';
471
+ readonly bump: 'major';
472
+ readonly owes: readonly [];
473
+ };
474
+ readonly COUNT_INCOMING_TIGHTENED: {
475
+ readonly subjects: readonly ["endpoint.incoming"];
476
+ readonly statement: 'A tighter incoming count must hold of every stored Node.';
477
+ readonly bump: 'major';
478
+ readonly owes: readonly ["degree"];
479
+ };
480
+ readonly COUNT_INCIDENT_TIGHTENED: {
481
+ readonly subjects: readonly ["endpoint.incident"];
482
+ readonly statement: 'A tighter incident count must hold of every stored Node.';
483
+ readonly bump: 'major';
484
+ readonly owes: readonly ["degree"];
485
+ };
486
+ readonly EDGE_ADDED: {
487
+ readonly subjects: readonly ["class.ref", "class.kind"];
488
+ readonly statement: 'A new Edge Class with no lower bound owes nothing.';
489
+ readonly bump: 'minor';
490
+ readonly owes: readonly [];
491
+ readonly also: readonly ["EDGE_ADDED_WITH_LOWER_BOUND"];
492
+ };
493
+ readonly EDGE_ADDED_WITH_LOWER_BOUND: {
494
+ readonly subjects: readonly ["class.ref", "endpoint.outgoing"];
495
+ readonly statement: 'A new Edge Class with a lower bound must hold of every Node its endpoint accepts.';
496
+ readonly bump: 'minor';
497
+ readonly owes: readonly ["degree"];
498
+ readonly divergence: 'The level reads a new Class, which nothing depends on, and the Runtime reads the Nodes the new bound falls on: the change is minor and refused over any such Node.';
499
+ };
500
+ readonly NO_SELF_GAINED: {
501
+ readonly subjects: readonly ["constraint.noSelf"];
502
+ readonly statement: 'A Class gaining noSelf must hold no loop.';
503
+ readonly bump: 'major';
504
+ readonly owes: readonly ["noSelf"];
505
+ };
506
+ readonly NO_SELF_LOST: {
507
+ readonly subjects: readonly ["constraint.noSelf"];
508
+ readonly statement: 'A Class losing noSelf owes nothing.';
509
+ readonly bump: 'major';
510
+ readonly owes: readonly [];
511
+ };
512
+ readonly ACYCLIC_GAINED: {
513
+ readonly subjects: readonly ["constraint.acyclic"];
514
+ readonly statement: 'A Class gaining acyclic must hold no cycle.';
515
+ readonly bump: 'major';
516
+ readonly owes: readonly ["acyclic"];
517
+ };
518
+ readonly ACYCLIC_LOST: {
519
+ readonly subjects: readonly ["constraint.acyclic"];
520
+ readonly statement: 'A Class losing acyclic owes nothing.';
521
+ readonly bump: 'major';
522
+ readonly owes: readonly [];
523
+ };
524
+ readonly CORE_NODE_ADDED: {
525
+ readonly subjects: readonly ["install.core"];
526
+ readonly statement: 'A new Core Node, with the Edges at it, owes nothing: the Domain writes it as it activates. One holding a key under a unique tuple owes what CORE_KEY_ADDED states.';
527
+ readonly bump: 'minor';
528
+ readonly owes: readonly [];
529
+ };
530
+ readonly CORE_KEY_ADDED: {
531
+ readonly subjects: readonly ["install.core", "class.unique"];
532
+ readonly statement: 'A Core Node holding a key under a unique tuple must meet no stored fact under that key, though the store already meets the tuple.';
533
+ readonly bump: 'minor';
534
+ readonly owes: readonly ["unique"];
535
+ readonly divergence: 'The level reads a new member, and the Runtime reads the key it writes against the facts stored: the change is minor and refused over one such fact.';
536
+ };
537
+ readonly CORE_NODE_REMOVED: {
538
+ readonly subjects: readonly ["install.core"];
539
+ readonly statement: 'A removed Core Node owes no question: it leaves, unless an Edge restricts it.';
540
+ readonly bump: 'major';
541
+ readonly owes: readonly [];
542
+ readonly disposes: readonly ["CORE_NODE_LEAVES", "LEAVING_NODE_RESTRICTED"];
543
+ };
544
+ readonly CORE_VALUE_CHANGED: {
545
+ readonly subjects: readonly ["install.core"];
546
+ readonly statement: 'A changed Core value owes nothing: the activation merges it with what the live graph holds. One under a unique tuple owes what CORE_KEY_CHANGED states.';
547
+ readonly bump: 'major';
548
+ readonly owes: readonly [];
549
+ readonly disposes: readonly ["CORE_MERGED"];
550
+ };
551
+ readonly CORE_KEY_CHANGED: {
552
+ readonly subjects: readonly ["install.core", "class.unique"];
553
+ readonly statement: 'A Core Node taking another key under a unique tuple must meet no stored fact under that key, though the store already meets the tuple.';
554
+ readonly bump: 'major';
555
+ readonly owes: readonly ["unique"];
556
+ readonly disposes: readonly ["CORE_MERGED"];
557
+ };
558
+ readonly CORE_EDGE_ADDED: {
559
+ readonly subjects: readonly ["install.core"];
560
+ readonly statement: 'A new Core Edge between Core Nodes already declared owes nothing: the Domain writes it as it activates.';
561
+ readonly bump: 'major';
562
+ readonly owes: readonly [];
563
+ };
564
+ readonly CORE_EDGE_ADDED_WITHOUT_CORE_NODE: {
565
+ readonly subjects: readonly ["install.core"];
566
+ readonly statement: 'A new Core Edge with no Core Node at either end owes nothing: the Domain writes it as it activates. The level reads the Core Edges at a Core Node alone, so it answers patch.';
567
+ readonly bump: 'patch';
568
+ readonly owes: readonly [];
569
+ };
570
+ readonly CORE_EDGE_REMOVED: {
571
+ readonly subjects: readonly ["install.core"];
572
+ readonly statement: 'A removed Core Edge between Core Nodes it keeps owes nothing: its disposal deletes it.';
573
+ readonly bump: 'major';
574
+ readonly owes: readonly [];
575
+ };
576
+ readonly CORE_EDGE_REMOVED_WITHOUT_CORE_NODE: {
577
+ readonly subjects: readonly ["install.core"];
578
+ readonly statement: 'A removed Core Edge with no Core Node at either end owes nothing: its disposal deletes it. The level reads the Core Edges at a Core Node alone, so it answers patch.';
579
+ readonly bump: 'patch';
580
+ readonly owes: readonly [];
581
+ };
582
+ readonly CORE_CHANGES_CLASS: {
583
+ readonly subjects: readonly ["install.core", "fact.node"];
584
+ readonly statement: 'A Core Node under another Class is another Node: it gets another id, and the Node stored leaves.';
585
+ readonly bump: 'major';
586
+ readonly owes: readonly [];
587
+ readonly disposes: readonly ["CORE_NODE_LEAVES", "LEAVING_NODE_RESTRICTED"];
588
+ };
589
+ }>;
590
+ export type ChangeId = keyof typeof CHANGES;