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