@astrale-os/kernel-dsl 1.0.0-beta.27 → 1.0.0-beta.28
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/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/language/callable/admission.js +2 -1
- 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/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/value/canonical.d.ts +16 -1
- package/dist/value/canonical.js +90 -33
- package/dist/value/index.d.ts +2 -0
- package/dist/value/index.js +1 -0
- package/dist/value/rule.d.ts +12 -0
- package/dist/value/rule.js +50 -0
- package/package.json +5 -1
|
@@ -0,0 +1,1017 @@
|
|
|
1
|
+
import { deepFreeze } from '../../language/freeze.js';
|
|
2
|
+
/** Every way one Mutation is planned. */
|
|
3
|
+
const EVERY = ['ordinary', 'repair-kernel', 'repair-application', 'preserve', 'projection'];
|
|
4
|
+
/** The public path, in or out of a repair session: a trusted workflow closes its own plan. */
|
|
5
|
+
const PUBLIC = ['ordinary', 'repair-kernel', 'repair-application'];
|
|
6
|
+
/** What keeps the static rules of the declaration: repair relaxes an application's only. */
|
|
7
|
+
const DECLARED = ['ordinary', 'repair-kernel', 'preserve', 'projection'];
|
|
8
|
+
/** What carries the invariants of the Schema to the store: a repair plan carries none. */
|
|
9
|
+
const CARRIED = ['ordinary', 'preserve', 'projection'];
|
|
10
|
+
/** The transitions which change what a Schema declares automatic or immutable. */
|
|
11
|
+
const LIVE = ['ordinary', 'repair-kernel'];
|
|
12
|
+
/** What locates a target by more than its identity: a projection writes exact targets only. */
|
|
13
|
+
const LOCATED = ['ordinary', 'repair-kernel', 'repair-application', 'preserve'];
|
|
14
|
+
/** A repair session, on what an application declares. */
|
|
15
|
+
const REPAIR = ['repair-application'];
|
|
16
|
+
/** Refused as MUTATION_INPUT_INVALID, the cause in `issue`. */
|
|
17
|
+
const input = (issue) => ({ phase: 'plan', code: 'MUTATION_INPUT_INVALID', issue, planner: true });
|
|
18
|
+
/** Refused as MUTATION_PLANNING_FAILED, the cause in `issue`. */
|
|
19
|
+
const planning = (issue) => ({ phase: 'plan', code: 'MUTATION_PLANNING_FAILED', issue, planner: true });
|
|
20
|
+
/** Refused while planning under its own code. */
|
|
21
|
+
const own = (code) => ({ phase: 'plan', code, planner: true });
|
|
22
|
+
/** Refused by the store's pre-state check, which names no cause. */
|
|
23
|
+
const preState = { phase: 'preState', code: 'MUTATION_PRECONDITION_FAILED' };
|
|
24
|
+
/** Refused because the post-state breaks a rule, which the details name. */
|
|
25
|
+
const breach = (rule) => ({ phase: 'postState', code: 'MUTATION_POST_STATE_INVALID', rule });
|
|
26
|
+
/**
|
|
27
|
+
* Everything the Kernel does about one Mutation, in the order it decides: each way it is refused,
|
|
28
|
+
* what it applies to the data it admits, and what a Schema declares that it does not enforce. A
|
|
29
|
+
* planner refusal does not compile without naming its row here.
|
|
30
|
+
*/
|
|
31
|
+
export const WRITE = deepFreeze({
|
|
32
|
+
// ─── What a Mutation names ───
|
|
33
|
+
CLASS_UNRESOLVED: {
|
|
34
|
+
phase: 'write',
|
|
35
|
+
layer: 'structure',
|
|
36
|
+
subjects: ['class.ref', 'class.kind'],
|
|
37
|
+
does: 'refuse',
|
|
38
|
+
modes: EVERY,
|
|
39
|
+
refusal: input('MUTATION_CLASS_UNRESOLVED'),
|
|
40
|
+
statement: 'A Class a Mutation names resolves in the Registry as the kind the Mutation uses.',
|
|
41
|
+
laws: ['MUT-NODE-CLASS', 'RMP-REPAIR-VOCABULARY'],
|
|
42
|
+
},
|
|
43
|
+
CLASS_ABSTRACT: {
|
|
44
|
+
phase: 'write',
|
|
45
|
+
layer: 'structure',
|
|
46
|
+
subjects: ['class.abstract'],
|
|
47
|
+
does: 'refuse',
|
|
48
|
+
modes: EVERY,
|
|
49
|
+
refusal: input('MUTATION_CLASS_ABSTRACT'),
|
|
50
|
+
accepted: 'DV_CLASS_ABSTRACT',
|
|
51
|
+
statement: 'No Node or Edge is of an abstract Class exactly: only its concrete descendants are.',
|
|
52
|
+
laws: ['GF-EXACT-CLASS-CONCRETE', 'DV-CLASS-ABSTRACT'],
|
|
53
|
+
},
|
|
54
|
+
PATH_EDGE_INACTIVE: {
|
|
55
|
+
phase: 'write',
|
|
56
|
+
layer: 'structure',
|
|
57
|
+
subjects: ['request.path'],
|
|
58
|
+
does: 'refuse',
|
|
59
|
+
modes: LOCATED,
|
|
60
|
+
refusal: input('MUTATION_CLASS_UNRESOLVED'),
|
|
61
|
+
statement: 'A Path a Mutation locates a Node by traverses active concrete Edge Classes only.',
|
|
62
|
+
},
|
|
63
|
+
PATH_TESTS_PROPERTY: {
|
|
64
|
+
phase: 'write',
|
|
65
|
+
layer: 'structure',
|
|
66
|
+
subjects: ['request.path'],
|
|
67
|
+
does: 'refuse',
|
|
68
|
+
modes: LOCATED,
|
|
69
|
+
refusal: input('PATH_PROPERTY_TEST_UNREAD'),
|
|
70
|
+
statement: 'A Path a Mutation locates a Node by tests no Property: a locator decides no read.',
|
|
71
|
+
laws: ['RPATH-PROPERTY-TEST-READ'],
|
|
72
|
+
},
|
|
73
|
+
PATH_NO_ADMISSIBLE_CLASS: {
|
|
74
|
+
phase: 'write',
|
|
75
|
+
layer: 'structure',
|
|
76
|
+
subjects: ['request.path'],
|
|
77
|
+
does: 'refuse',
|
|
78
|
+
modes: DECLARED,
|
|
79
|
+
refusal: input('MUTATION_ENDPOINT_INVALID'),
|
|
80
|
+
statement: 'Each use of a Path a Mutation closes leaves it a concrete Class it can be.',
|
|
81
|
+
laws: ['RMP-REFUSAL-PRECEDENCE'],
|
|
82
|
+
},
|
|
83
|
+
PATH_CLASSES_CONFLICT: {
|
|
84
|
+
phase: 'write',
|
|
85
|
+
layer: 'identity',
|
|
86
|
+
subjects: ['request.path'],
|
|
87
|
+
does: 'refuse',
|
|
88
|
+
modes: EVERY,
|
|
89
|
+
refusal: input('MUTATION_CONFLICT'),
|
|
90
|
+
statement: 'One Path is not used as a Node of Classes no Node can be at once.',
|
|
91
|
+
laws: ['RMP-SIMULTANEOUS'],
|
|
92
|
+
},
|
|
93
|
+
PATH_TARGETS_CONFLICT: {
|
|
94
|
+
phase: 'write',
|
|
95
|
+
layer: 'defect',
|
|
96
|
+
subjects: ['kernel'],
|
|
97
|
+
does: 'refuse',
|
|
98
|
+
modes: EVERY,
|
|
99
|
+
refusal: input('MUTATION_CONFLICT'),
|
|
100
|
+
statement: 'One Path is not fixed to two distinct Nodes.',
|
|
101
|
+
laws: ['RMP-SIMULTANEOUS'],
|
|
102
|
+
},
|
|
103
|
+
EFFECTS_SHARE_TARGET: {
|
|
104
|
+
phase: 'write',
|
|
105
|
+
layer: 'identity',
|
|
106
|
+
subjects: ['request.mutation'],
|
|
107
|
+
does: 'refuse',
|
|
108
|
+
modes: EVERY,
|
|
109
|
+
refusal: input('MUTATION_CONFLICT'),
|
|
110
|
+
statement: 'Two effects of one Mutation never address one logical target.',
|
|
111
|
+
laws: ['RMP-SIMULTANEOUS'],
|
|
112
|
+
},
|
|
113
|
+
PRECONDITIONS_SHARE_SELECTOR: {
|
|
114
|
+
phase: 'write',
|
|
115
|
+
layer: 'identity',
|
|
116
|
+
subjects: ['request.condition'],
|
|
117
|
+
does: 'refuse',
|
|
118
|
+
modes: PUBLIC,
|
|
119
|
+
refusal: input('MUTATION_CONFLICT'),
|
|
120
|
+
statement: 'Two conditions of one Mutation which the Registry closes to one selector are refused.',
|
|
121
|
+
laws: ['RMP-SIMULTANEOUS'],
|
|
122
|
+
},
|
|
123
|
+
EDGE_DERIVED: {
|
|
124
|
+
phase: 'write',
|
|
125
|
+
layer: 'protection',
|
|
126
|
+
subjects: ['fact.instance_of'],
|
|
127
|
+
does: 'refuse',
|
|
128
|
+
modes: EVERY,
|
|
129
|
+
refusal: input('MUTATION_EDGE_DERIVED'),
|
|
130
|
+
statement: 'No effect creates, updates or deletes an instance_of Edge: the Node Class fixes it.',
|
|
131
|
+
laws: ['RMP-DERIVED-EDGES-REJECTED'],
|
|
132
|
+
},
|
|
133
|
+
EDGE_KEY_UNDECLARED: {
|
|
134
|
+
phase: 'write',
|
|
135
|
+
layer: 'identity',
|
|
136
|
+
subjects: ['class.unique'],
|
|
137
|
+
does: 'refuse',
|
|
138
|
+
modes: EVERY,
|
|
139
|
+
refusal: input('MUTATION_EDGE_KEY_UNDECLARED'),
|
|
140
|
+
statement: 'A selector that does not name both endpoints spells a key covering its exact Class. A repair names Edges by their endpoints: it spells no key, a declared one included.',
|
|
141
|
+
laws: ['RMP-EDGE-LOCATOR', 'MUT-EDGE-SELECTOR-FIELDS'],
|
|
142
|
+
},
|
|
143
|
+
EDGE_PAIR_EXTENDED: {
|
|
144
|
+
phase: 'write',
|
|
145
|
+
layer: 'identity',
|
|
146
|
+
subjects: ['fact.edge'],
|
|
147
|
+
does: 'refuse',
|
|
148
|
+
modes: EVERY,
|
|
149
|
+
refusal: input('MUTATION_EDGE_PAIR_EXTENDED'),
|
|
150
|
+
statement: 'A selector that names both endpoints names no other field: the pair names the Edge.',
|
|
151
|
+
laws: ['RMP-EDGE-LOCATOR', 'MUT-EDGE-SELECTOR-FIELDS'],
|
|
152
|
+
},
|
|
153
|
+
EDGE_SLUG_INVALID: {
|
|
154
|
+
phase: 'write',
|
|
155
|
+
layer: 'defect',
|
|
156
|
+
subjects: ['kernel'],
|
|
157
|
+
does: 'refuse',
|
|
158
|
+
modes: EVERY,
|
|
159
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
160
|
+
statement: 'A MutationAST holds no Edge slug outside the grammar its codec admits.',
|
|
161
|
+
},
|
|
162
|
+
// ─── What a Mutation writes ───
|
|
163
|
+
PROPERTY_UNKNOWN: {
|
|
164
|
+
phase: 'write',
|
|
165
|
+
layer: 'structure',
|
|
166
|
+
subjects: ['class.properties'],
|
|
167
|
+
does: 'refuse',
|
|
168
|
+
modes: EVERY,
|
|
169
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
170
|
+
statement: 'A Node or Edge holds only the Properties its exact Class declares or inherits. A repair session may still unset, and never set, an application Property a staged Class holds and its source does not declare.',
|
|
171
|
+
laws: ['RUNTIME-MUTATION-PROPERTY-NAMED', 'RMP-SCHEMA-PROPERTY-REMOVAL'],
|
|
172
|
+
},
|
|
173
|
+
PROPERTY_REQUIRED_OMITTED: {
|
|
174
|
+
phase: 'write',
|
|
175
|
+
layer: 'structure',
|
|
176
|
+
subjects: ['property.required'],
|
|
177
|
+
does: 'refuse',
|
|
178
|
+
modes: DECLARED,
|
|
179
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
180
|
+
statement: 'A created Node or Edge has a value for every required Property the transition does not set automatically; a workflow which moves stored facts sets none, so it supplies the automatic ones too.',
|
|
181
|
+
laws: ['RUNTIME-MUTATION-PROPERTY-NAMED'],
|
|
182
|
+
},
|
|
183
|
+
PROPERTY_REQUIRED_UNSET: {
|
|
184
|
+
phase: 'write',
|
|
185
|
+
layer: 'structure',
|
|
186
|
+
subjects: ['property.required'],
|
|
187
|
+
does: 'refuse',
|
|
188
|
+
modes: DECLARED,
|
|
189
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
190
|
+
statement: 'A required Property is never unset.',
|
|
191
|
+
laws: ['RUNTIME-MUTATION-PROPERTY-NAMED'],
|
|
192
|
+
},
|
|
193
|
+
PROPERTY_VALUE_INVALID: {
|
|
194
|
+
phase: 'write',
|
|
195
|
+
layer: 'value',
|
|
196
|
+
subjects: ['property.schema', 'property.state'],
|
|
197
|
+
does: 'refuse',
|
|
198
|
+
modes: DECLARED,
|
|
199
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
200
|
+
statement: 'A value written to a Property is one its value program accepts.',
|
|
201
|
+
accepted: 'DV_VALUE_SCHEMA',
|
|
202
|
+
laws: ['RUNTIME-MUTATION-PROPERTY-NAMED', 'GP-NO-REPAIR', 'VS-EVALUATION-OWN-STACK'],
|
|
203
|
+
},
|
|
204
|
+
CONDITION_VALUE_INVALID: {
|
|
205
|
+
phase: 'write',
|
|
206
|
+
layer: 'value',
|
|
207
|
+
subjects: ['request.condition'],
|
|
208
|
+
does: 'refuse',
|
|
209
|
+
modes: DECLARED,
|
|
210
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
211
|
+
statement: 'A value a condition compares a Property with is one its value program accepts. In a repair session a condition on a Kernel Property answers WRITE.PROPERTY_VALUE_INVALID, with this same public code.',
|
|
212
|
+
laws: ['RUNTIME-MUTATION-PROPERTY-NAMED'],
|
|
213
|
+
},
|
|
214
|
+
PROPERTY_BYTES_EXCEEDED: {
|
|
215
|
+
phase: 'write',
|
|
216
|
+
layer: 'limit',
|
|
217
|
+
subjects: ['property.schema'],
|
|
218
|
+
does: 'refuse',
|
|
219
|
+
modes: PUBLIC,
|
|
220
|
+
refusal: input('MUTATION_LIMIT_EXCEEDED'),
|
|
221
|
+
statement: 'A value written to a Property fits the configured bytes of one value.',
|
|
222
|
+
laws: ['RMP-PROPERTY-BYTES'],
|
|
223
|
+
},
|
|
224
|
+
SHAPE_LIMIT_EXCEEDED: {
|
|
225
|
+
phase: 'write',
|
|
226
|
+
layer: 'limit',
|
|
227
|
+
subjects: ['request.mutation'],
|
|
228
|
+
does: 'refuse',
|
|
229
|
+
modes: PUBLIC,
|
|
230
|
+
refusal: input('MUTATION_LIMIT_EXCEEDED'),
|
|
231
|
+
statement: 'One Mutation fits the configured numbers of conditions, Query guards and the identities and bytes they expect, effects, locators, Classes and Properties.',
|
|
232
|
+
laws: ['RMP-LIMITS-PUBLIC'],
|
|
233
|
+
},
|
|
234
|
+
AUTO_PROPERTY_AUTHORED: {
|
|
235
|
+
phase: 'write',
|
|
236
|
+
layer: 'lifecycle',
|
|
237
|
+
subjects: ['property.auto'],
|
|
238
|
+
does: 'refuse',
|
|
239
|
+
modes: ['ordinary', 'repair-kernel', 'projection'],
|
|
240
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
241
|
+
accepted: 'DV_PROPERTY_AUTO',
|
|
242
|
+
statement: 'A transition never writes an automatic Property.',
|
|
243
|
+
laws: ['RMP-AUTO-DECLARATION-OWNED', 'RMP-AUTO-CLOSURE-EXPLICIT'],
|
|
244
|
+
},
|
|
245
|
+
PROJECTION_AUTO_CONTRACT_MISMATCH: {
|
|
246
|
+
phase: 'write',
|
|
247
|
+
layer: 'lifecycle',
|
|
248
|
+
subjects: ['property.auto'],
|
|
249
|
+
does: 'refuse',
|
|
250
|
+
modes: ['projection'],
|
|
251
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
252
|
+
statement: 'A projection writes one exact target whose automatic contracts are exactly its Class’s.',
|
|
253
|
+
laws: ['RMP-AUTO-CLOSURE-EXPLICIT'],
|
|
254
|
+
},
|
|
255
|
+
IMMUTABLE_PROPERTY_WRITTEN: {
|
|
256
|
+
phase: 'write',
|
|
257
|
+
layer: 'lifecycle',
|
|
258
|
+
subjects: ['property.immutable'],
|
|
259
|
+
does: 'refuse',
|
|
260
|
+
modes: LIVE,
|
|
261
|
+
refusal: own('MUTATION_PROPERTY_IMMUTABLE'),
|
|
262
|
+
accepted: 'DV_PROPERTY_IMMUTABLE',
|
|
263
|
+
statement: 'A create Property is written only when its Node or Edge is created; a once Property is never unset.',
|
|
264
|
+
laws: ['RMP-IMMUTABLE-PROPERTIES'],
|
|
265
|
+
},
|
|
266
|
+
ONCE_CONDITION_CONFLICT: {
|
|
267
|
+
phase: 'write',
|
|
268
|
+
layer: 'lifecycle',
|
|
269
|
+
subjects: ['property.immutable'],
|
|
270
|
+
does: 'refuse',
|
|
271
|
+
modes: LIVE,
|
|
272
|
+
refusal: own('MUTATION_PROPERTY_IMMUTABLE'),
|
|
273
|
+
statement: 'A once Property is not set under a condition which requires it to hold a value.',
|
|
274
|
+
laws: ['RMP-IMMUTABLE-PROPERTIES'],
|
|
275
|
+
},
|
|
276
|
+
BLOB_RECEIPT_REQUIRED: {
|
|
277
|
+
phase: 'write',
|
|
278
|
+
layer: 'value',
|
|
279
|
+
subjects: ['property.schema'],
|
|
280
|
+
does: 'refuse',
|
|
281
|
+
modes: PUBLIC,
|
|
282
|
+
refusal: own('MUTATION_BLOB_RECEIPT_REQUIRED'),
|
|
283
|
+
statement: 'A blob Property is written through the text of an upload receipt, never through a Ref.',
|
|
284
|
+
laws: ['BLOB-RECEIPT-ONLY-WRITE'],
|
|
285
|
+
},
|
|
286
|
+
BLOB_RECEIPT_INVALID: {
|
|
287
|
+
phase: 'write',
|
|
288
|
+
layer: 'value',
|
|
289
|
+
subjects: ['property.schema'],
|
|
290
|
+
does: 'refuse',
|
|
291
|
+
modes: PUBLIC,
|
|
292
|
+
refusal: own('MUTATION_BLOB_RECEIPT_INVALID'),
|
|
293
|
+
statement: 'A receipt a blob Property is written through is authenticated for this Kernel and unexpired, whoever presents it.',
|
|
294
|
+
laws: ['BLOB-RECEIPT-ONLY-WRITE'],
|
|
295
|
+
},
|
|
296
|
+
EDGE_ENDS_SAME_REFERENCE: {
|
|
297
|
+
phase: 'write',
|
|
298
|
+
layer: 'structure',
|
|
299
|
+
subjects: ['constraint.noSelf'],
|
|
300
|
+
does: 'refuse',
|
|
301
|
+
modes: DECLARED,
|
|
302
|
+
refusal: input('MUTATION_ENDPOINT_INVALID'),
|
|
303
|
+
statement: 'An Edge of a noSelf Class is refused before any read when its two ends are one reference.',
|
|
304
|
+
laws: ['RMP-REFUSAL-PRECEDENCE'],
|
|
305
|
+
},
|
|
306
|
+
CREATED_NODE_NOT_ACCEPTED: {
|
|
307
|
+
phase: 'write',
|
|
308
|
+
layer: 'structure',
|
|
309
|
+
subjects: ['endpoint.accepts'],
|
|
310
|
+
does: 'refuse',
|
|
311
|
+
modes: DECLARED,
|
|
312
|
+
refusal: input('MUTATION_ENDPOINT_INVALID'),
|
|
313
|
+
statement: 'An Edge ending at a Node this Mutation creates is refused before any read when no assignment to the roles of its Class accepts the Class of that Node. In a repair session a Kernel Edge accepts no created Node of a Class only the target holds.',
|
|
314
|
+
laws: ['RMP-REFUSAL-PRECEDENCE'],
|
|
315
|
+
},
|
|
316
|
+
// ─── Facts only the Kernel writes ───
|
|
317
|
+
IDENTITY_FACT_PROTECTED: {
|
|
318
|
+
phase: 'write',
|
|
319
|
+
layer: 'protection',
|
|
320
|
+
subjects: ['fact.authentication'],
|
|
321
|
+
does: 'refuse',
|
|
322
|
+
modes: PUBLIC,
|
|
323
|
+
refusal: own('MUTATION_IDENTITY_FACT_PROTECTED'),
|
|
324
|
+
statement: 'No Mutation writes the iss or sub of an Identity.',
|
|
325
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
326
|
+
},
|
|
327
|
+
EXECUTION_PROTECTED: {
|
|
328
|
+
phase: 'write',
|
|
329
|
+
layer: 'protection',
|
|
330
|
+
subjects: ['fact.execution'],
|
|
331
|
+
does: 'refuse',
|
|
332
|
+
modes: PUBLIC,
|
|
333
|
+
refusal: own('MUTATION_EXECUTION_PROTECTED'),
|
|
334
|
+
statement: 'No Mutation creates or updates an Execution: it may delete one.',
|
|
335
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
336
|
+
},
|
|
337
|
+
EXECUTION_CREATED_BY_PROTECTED: {
|
|
338
|
+
phase: 'write',
|
|
339
|
+
layer: 'protection',
|
|
340
|
+
subjects: ['fact.execution'],
|
|
341
|
+
does: 'refuse',
|
|
342
|
+
modes: PUBLIC,
|
|
343
|
+
refusal: own('MUTATION_EXECUTION_PROTECTED'),
|
|
344
|
+
statement: 'No Mutation writes the created_by Edge of what may be an Execution, unless it deletes an endpoint with it.',
|
|
345
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
346
|
+
},
|
|
347
|
+
AUTHORITY_EDGE_PROTECTED: {
|
|
348
|
+
phase: 'write',
|
|
349
|
+
layer: 'protection',
|
|
350
|
+
subjects: ['fact.authority'],
|
|
351
|
+
does: 'refuse',
|
|
352
|
+
modes: PUBLIC,
|
|
353
|
+
refusal: input('MUTATION_AUTHORITY_PROTECTED'),
|
|
354
|
+
statement: 'No Mutation writes a scope or a meta-authority Edge: only an installation does.',
|
|
355
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
356
|
+
},
|
|
357
|
+
COMPOSITION_EDGE_BINDS_DOMAIN: {
|
|
358
|
+
phase: 'write',
|
|
359
|
+
layer: 'protection',
|
|
360
|
+
subjects: ['fact.authority'],
|
|
361
|
+
does: 'refuse',
|
|
362
|
+
modes: PUBLIC,
|
|
363
|
+
refusal: { phase: 'preState', code: 'MUTATION_LOCATOR_INVALID' },
|
|
364
|
+
statement: 'A public Mutation binds no Node whose Class satisfies K.Domain at either end of an extends_with Edge it creates or updates, or of a constrained_by or excluded_from Edge it creates, updates or deletes, except an Edge deleted with an endpoint the same Mutation deletes: a Path to one is refused here, and a created one is MUTATION_ENDPOINT_INVALID.',
|
|
365
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
366
|
+
},
|
|
367
|
+
PROJECTION_EDGE_PROTECTED: {
|
|
368
|
+
phase: 'write',
|
|
369
|
+
layer: 'protection',
|
|
370
|
+
subjects: ['fact.projection'],
|
|
371
|
+
does: 'refuse',
|
|
372
|
+
modes: PUBLIC,
|
|
373
|
+
refusal: input('MUTATION_AUTHORITY_PROTECTED'),
|
|
374
|
+
statement: 'No Mutation writes an Edge which projects a Schema into the graph: only an installation does.',
|
|
375
|
+
laws: ['RMP-PROTECTED-FACTS'],
|
|
376
|
+
},
|
|
377
|
+
// ─── A repair session ───
|
|
378
|
+
REPAIR_SESSION_UNSERVED: {
|
|
379
|
+
phase: 'write',
|
|
380
|
+
layer: 'lifecycle',
|
|
381
|
+
subjects: ['request.expectation'],
|
|
382
|
+
does: 'refuse',
|
|
383
|
+
modes: ['repair-kernel', 'repair-application'],
|
|
384
|
+
refusal: { phase: 'plan', code: 'MUTATION_MAINTENANCE_STALE' },
|
|
385
|
+
statement: 'A Runtime which cannot serve the repair session asks the caller to retry.',
|
|
386
|
+
laws: [
|
|
387
|
+
'RMP-REPAIR-NOT-FORGEABLE',
|
|
388
|
+
'REPAIR-CONTEXT-DERIVED',
|
|
389
|
+
'MNT-REFUSAL-PROJECTION',
|
|
390
|
+
'MNT-ROOT-STANDING',
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
REPAIR_TARGET_ONLY_AUTHORIZATION: {
|
|
394
|
+
phase: 'write',
|
|
395
|
+
layer: 'defect',
|
|
396
|
+
subjects: ['kernel'],
|
|
397
|
+
does: 'refuse',
|
|
398
|
+
modes: REPAIR,
|
|
399
|
+
refusal: own('MUTATION_REPAIR_VOCABULARY_CONFLICT'),
|
|
400
|
+
statement: 'A repair plan carries no authority walk through an Edge Class only the target declares: only the Kernel principal is served, whose authority walks nothing.',
|
|
401
|
+
laws: ['RMP-REPAIR-VOCABULARY', 'REPAIR-WALK-SERVED'],
|
|
402
|
+
},
|
|
403
|
+
REPAIR_TARGET_NOT_RESTORED: {
|
|
404
|
+
phase: 'write',
|
|
405
|
+
layer: 'structure',
|
|
406
|
+
subjects: ['class.ref'],
|
|
407
|
+
does: 'refuse',
|
|
408
|
+
modes: REPAIR,
|
|
409
|
+
refusal: own('MUTATION_REPAIR_VOCABULARY_CONFLICT'),
|
|
410
|
+
statement: 'A session whose target this Runtime cannot restore writes only what the source declares, and deletes: an application Property the source does not declare can be unset, never set.',
|
|
411
|
+
laws: ['RMP-REPAIR-VOCABULARY', 'REPAIR-STAGED-PROFILE'],
|
|
412
|
+
},
|
|
413
|
+
REPAIR_ORIENTATION_CHANGED: {
|
|
414
|
+
phase: 'write',
|
|
415
|
+
layer: 'structure',
|
|
416
|
+
subjects: ['class.orientation'],
|
|
417
|
+
does: 'refuse',
|
|
418
|
+
modes: REPAIR,
|
|
419
|
+
refusal: own('MUTATION_REPAIR_VOCABULARY_CONFLICT'),
|
|
420
|
+
statement: 'A repair session deletes an Edge of a Class whose two sides differ in orientation, and writes none.',
|
|
421
|
+
laws: ['RMP-REPAIR-VOCABULARY', 'REPAIR-VOCABULARY-UNION'],
|
|
422
|
+
},
|
|
423
|
+
REPAIR_GUARD_VERSION_UNSUPPORTED: {
|
|
424
|
+
phase: 'write',
|
|
425
|
+
layer: 'structure',
|
|
426
|
+
subjects: ['request.condition'],
|
|
427
|
+
does: 'refuse',
|
|
428
|
+
modes: ['repair-kernel', 'repair-application'],
|
|
429
|
+
refusal: planning('MUTATION_RESOLUTION_INVALID'),
|
|
430
|
+
statement: 'A repair Mutation writes its Query conditions in the V3 form.',
|
|
431
|
+
},
|
|
432
|
+
// ─── The Mutation's conditions and expectations ───
|
|
433
|
+
REQUEST_UNDECODABLE: {
|
|
434
|
+
phase: 'write',
|
|
435
|
+
layer: 'structure',
|
|
436
|
+
subjects: ['request.mutation'],
|
|
437
|
+
does: 'refuse',
|
|
438
|
+
modes: PUBLIC,
|
|
439
|
+
refusal: { phase: 'decode', code: 'MUTATION_INPUT_INVALID' },
|
|
440
|
+
statement: 'A Mutation decodes as one MutationAST: the language of the request refuses a selector, a condition, a guard or an expected Query outside its grammar or past MUTATION_AST_LIMITS, before any plan.',
|
|
441
|
+
laws: ['RM-ACTIONABLE-REJECTION', 'MUT-QUERY-EXPECTED-CANONICAL', 'MUT-EDGE-SELECTOR-FIELDS'],
|
|
442
|
+
},
|
|
443
|
+
IDEMPOTENCY_KEY_INVALID: {
|
|
444
|
+
phase: 'write',
|
|
445
|
+
layer: 'value',
|
|
446
|
+
subjects: ['request.receipt'],
|
|
447
|
+
does: 'refuse',
|
|
448
|
+
modes: PUBLIC,
|
|
449
|
+
refusal: { phase: 'input', code: 'MUTATION_INPUT_INVALID' },
|
|
450
|
+
statement: 'An idempotency key is a string of 1 to 256 UTF-16 code units in NFC form, or the request is refused before any plan, with the path of the key.',
|
|
451
|
+
laws: ['RM-DURABLE-RECEIPT'],
|
|
452
|
+
},
|
|
453
|
+
EXPECTATION_INVALID: {
|
|
454
|
+
phase: 'write',
|
|
455
|
+
layer: 'structure',
|
|
456
|
+
subjects: ['request.expectation'],
|
|
457
|
+
does: 'refuse',
|
|
458
|
+
modes: PUBLIC,
|
|
459
|
+
refusal: { phase: 'input', code: 'MUTATION_INPUT_INVALID' },
|
|
460
|
+
statement: 'A closure a Mutation expects is well formed.',
|
|
461
|
+
laws: ['RM-EXPECTED-CLOSURE'],
|
|
462
|
+
},
|
|
463
|
+
EXPECTATION_MISMATCH: {
|
|
464
|
+
phase: 'write',
|
|
465
|
+
layer: 'structure',
|
|
466
|
+
subjects: ['request.expectation'],
|
|
467
|
+
does: 'refuse',
|
|
468
|
+
modes: PUBLIC,
|
|
469
|
+
refusal: { phase: 'registry', code: 'MUTATION_EXPECTATION_MISMATCH' },
|
|
470
|
+
statement: 'A closure a Mutation expects matches the active Registry.',
|
|
471
|
+
laws: ['RM-EXPECTED-CLOSURE', 'RM-EXPECTATION-MISMATCH-REVISIONS'],
|
|
472
|
+
},
|
|
473
|
+
GUARD_INVALID: {
|
|
474
|
+
phase: 'write',
|
|
475
|
+
layer: 'structure',
|
|
476
|
+
subjects: ['request.condition'],
|
|
477
|
+
does: 'refuse',
|
|
478
|
+
modes: PUBLIC,
|
|
479
|
+
refusal: { phase: 'plan', code: 'MUTATION_INPUT_INVALID' },
|
|
480
|
+
statement: 'A Query condition plans as a Query under the authority of the Mutation.',
|
|
481
|
+
laws: ['RM-QUERY-GUARD-REFUSAL', 'RM-QUERY-PRECONDITIONS-QUALIFIED', 'RMP-V4-GUARDS'],
|
|
482
|
+
},
|
|
483
|
+
GUARD_CATALOG_INCOHERENT: {
|
|
484
|
+
phase: 'write',
|
|
485
|
+
layer: 'defect',
|
|
486
|
+
subjects: ['kernel'],
|
|
487
|
+
does: 'refuse',
|
|
488
|
+
modes: PUBLIC,
|
|
489
|
+
refusal: { phase: 'plan', code: 'MUTATION_PLANNING_FAILED', issue: 'QUERY_CATALOG_INCOHERENT' },
|
|
490
|
+
statement: 'A Query condition plans over the catalog its wire decodes against: only a defect of the Kernel tells them apart.',
|
|
491
|
+
laws: ['RM-QUERY-GUARD-REFUSAL'],
|
|
492
|
+
},
|
|
493
|
+
GUARD_SEQUENCE_KIND_MISMATCH: {
|
|
494
|
+
phase: 'write',
|
|
495
|
+
layer: 'defect',
|
|
496
|
+
subjects: ['kernel'],
|
|
497
|
+
does: 'refuse',
|
|
498
|
+
modes: ['ordinary'],
|
|
499
|
+
refusal: planning('MUTATION_RESOLUTION_INVALID'),
|
|
500
|
+
statement: 'A decoded sequence guard expects identities of the kind of its roots.',
|
|
501
|
+
laws: ['RM-QUERY-PRECONDITIONS-QUALIFIED'],
|
|
502
|
+
},
|
|
503
|
+
// ─── In the transaction, before any effect ───
|
|
504
|
+
IDEMPOTENCY_CONFLICT: {
|
|
505
|
+
phase: 'write',
|
|
506
|
+
layer: 'identity',
|
|
507
|
+
subjects: ['request.receipt'],
|
|
508
|
+
does: 'refuse',
|
|
509
|
+
modes: PUBLIC,
|
|
510
|
+
refusal: { phase: 'precondition', code: 'MUTATION_PRECONDITION_FAILED' },
|
|
511
|
+
statement: 'An idempotency key commits one request of one principal while its receipt is retained: another request of that principal under it is refused.',
|
|
512
|
+
laws: ['RM-DURABLE-RECEIPT', 'MUT-DURABLE-RECEIPT'],
|
|
513
|
+
},
|
|
514
|
+
LOCATOR_UNRESOLVED: {
|
|
515
|
+
phase: 'write',
|
|
516
|
+
layer: 'identity',
|
|
517
|
+
subjects: ['request.path', 'fact.node', 'endpoint.accepts'],
|
|
518
|
+
does: 'refuse',
|
|
519
|
+
modes: EVERY,
|
|
520
|
+
refusal: { phase: 'preState', code: 'MUTATION_LOCATOR_INVALID' },
|
|
521
|
+
statement: 'A Path a Mutation locates by finds exactly one stored Node of the Classes its uses admit: an absent Node, or a Node a role does not accept, is refused here.',
|
|
522
|
+
laws: ['RMP-LOCATORS-TRANSACTION-BOUND', 'RM-AMBIENT-ENDPOINT-WITNESS'],
|
|
523
|
+
},
|
|
524
|
+
EFFECTS_SHARE_STORED_FACT: {
|
|
525
|
+
phase: 'write',
|
|
526
|
+
layer: 'identity',
|
|
527
|
+
subjects: ['request.mutation'],
|
|
528
|
+
does: 'refuse',
|
|
529
|
+
modes: EVERY,
|
|
530
|
+
refusal: preState,
|
|
531
|
+
statement: 'Two effects never reach one stored fact, however they locate it.',
|
|
532
|
+
laws: ['MUT-COMMON-PRESTATE'],
|
|
533
|
+
},
|
|
534
|
+
NODE_EXISTS: {
|
|
535
|
+
phase: 'write',
|
|
536
|
+
layer: 'identity',
|
|
537
|
+
subjects: ['fact.node'],
|
|
538
|
+
does: 'refuse',
|
|
539
|
+
modes: EVERY,
|
|
540
|
+
refusal: preState,
|
|
541
|
+
statement: 'A created Node takes an id no stored or retiring Node holds.',
|
|
542
|
+
laws: ['MUT-COMMON-PRESTATE', 'MUT-STRICT'],
|
|
543
|
+
},
|
|
544
|
+
TARGET_NODE_MISMATCH: {
|
|
545
|
+
phase: 'write',
|
|
546
|
+
layer: 'defect',
|
|
547
|
+
subjects: ['kernel'],
|
|
548
|
+
does: 'refuse',
|
|
549
|
+
modes: EVERY,
|
|
550
|
+
refusal: preState,
|
|
551
|
+
statement: 'A located Node an effect updates or deletes is stored and of the exact Class the effect names: the Path which finds it admits no other.',
|
|
552
|
+
laws: ['MUT-COMMON-PRESTATE', 'MUT-STRICT'],
|
|
553
|
+
},
|
|
554
|
+
EDGE_EXISTS: {
|
|
555
|
+
phase: 'write',
|
|
556
|
+
layer: 'identity',
|
|
557
|
+
subjects: ['fact.edge'],
|
|
558
|
+
does: 'refuse',
|
|
559
|
+
modes: EVERY,
|
|
560
|
+
refusal: preState,
|
|
561
|
+
statement: 'A created Edge takes a Class and endpoints no stored Edge holds: an Edge is its Class and endpoints.',
|
|
562
|
+
laws: ['MUT-COMMON-PRESTATE', 'MUT-STRICT', 'ED-IDENTITY'],
|
|
563
|
+
},
|
|
564
|
+
EDGE_ABSENT: {
|
|
565
|
+
phase: 'write',
|
|
566
|
+
layer: 'identity',
|
|
567
|
+
subjects: ['fact.edge'],
|
|
568
|
+
does: 'refuse',
|
|
569
|
+
modes: EVERY,
|
|
570
|
+
refusal: preState,
|
|
571
|
+
statement: 'An updated or deleted Edge exists, and an Edge located by key counts as absent unless it alone holds that value and the caller may traverse it.',
|
|
572
|
+
laws: ['MUT-COMMON-PRESTATE', 'MUT-EDGE-LOCATOR', 'MUT-STRICT'],
|
|
573
|
+
},
|
|
574
|
+
SCHEMA_FACT_PROTECTED: {
|
|
575
|
+
phase: 'write',
|
|
576
|
+
layer: 'protection',
|
|
577
|
+
subjects: ['fact.schema'],
|
|
578
|
+
does: 'refuse',
|
|
579
|
+
modes: PUBLIC,
|
|
580
|
+
refusal: preState,
|
|
581
|
+
statement: 'A Mutation writes no Node a Schema owns, whatever closure it expects, and no Edge the projection of a revision it selects manages, so a Core Edge only the active revision authors is not protected under a closure selecting a retained revision. A repair also writes no Kernel principal.',
|
|
582
|
+
laws: ['RMP-SCHEMA-EXCLUSIONS', 'RMP-REPAIR-KERNEL-MAINTENANCE'],
|
|
583
|
+
},
|
|
584
|
+
DENIED: {
|
|
585
|
+
phase: 'write',
|
|
586
|
+
layer: 'authority',
|
|
587
|
+
subjects: ['class.policies'],
|
|
588
|
+
does: 'refuse',
|
|
589
|
+
modes: PUBLIC,
|
|
590
|
+
refusal: { phase: 'authorization', code: 'MUTATION_DENIED' },
|
|
591
|
+
statement: 'Each effect and each conditioned target of a Mutation is admitted for its caller.',
|
|
592
|
+
laws: [
|
|
593
|
+
'RM-AUTHORITY-CLOSED-BEFORE-EXECUTION',
|
|
594
|
+
'RMP-AUTH-EFFECT-LOCAL',
|
|
595
|
+
'RMP-AUTH-CONDITION-READ',
|
|
596
|
+
],
|
|
597
|
+
},
|
|
598
|
+
CONDITION_FAILED: {
|
|
599
|
+
phase: 'write',
|
|
600
|
+
layer: 'identity',
|
|
601
|
+
subjects: ['request.condition'],
|
|
602
|
+
does: 'refuse',
|
|
603
|
+
modes: PUBLIC,
|
|
604
|
+
refusal: { phase: 'precondition', code: 'MUTATION_PRECONDITION_FAILED' },
|
|
605
|
+
statement: 'Every condition of a Mutation holds on the stored graph: its direct conditions are read before its Query guards, and the earliest of those which fails names the refusal.',
|
|
606
|
+
laws: [
|
|
607
|
+
'MUT-PRECONDITION-NAMED',
|
|
608
|
+
'MUT-PRECONDITION-SEALED',
|
|
609
|
+
'MUT-GUARD-PRECONDITION-DECIDED',
|
|
610
|
+
'MUT-QUERY-PRECONDITION-EXACT',
|
|
611
|
+
'Q7-GUARD-ACCEPTANCE',
|
|
612
|
+
],
|
|
613
|
+
},
|
|
614
|
+
ONCE_ALREADY_SET: {
|
|
615
|
+
phase: 'write',
|
|
616
|
+
layer: 'lifecycle',
|
|
617
|
+
subjects: ['property.immutable'],
|
|
618
|
+
does: 'refuse',
|
|
619
|
+
modes: LIVE,
|
|
620
|
+
refusal: { phase: 'precondition', code: 'MUTATION_PRECONDITION_FAILED' },
|
|
621
|
+
statement: 'A once Property is written only while it is absent.',
|
|
622
|
+
laws: ['RMP-IMMUTABLE-PROPERTIES'],
|
|
623
|
+
},
|
|
624
|
+
// ─── The graph the transaction would leave ───
|
|
625
|
+
EDGE_AT_DELETED_NODE: {
|
|
626
|
+
phase: 'write',
|
|
627
|
+
layer: 'structure',
|
|
628
|
+
subjects: ['endpoint.onDelete', 'class.inheritance'],
|
|
629
|
+
does: 'refuse',
|
|
630
|
+
modes: EVERY,
|
|
631
|
+
refusal: breach('edge-at-deleted-node'),
|
|
632
|
+
accepted: 'DV_EDGE_LIFETIME',
|
|
633
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
634
|
+
statement: 'No Edge outlives a Node: an Edge at a restrict end is deleted by the same transition.',
|
|
635
|
+
laws: ['MUT-ATOMIC', 'MUT-POSTSTATE-BREACH'],
|
|
636
|
+
},
|
|
637
|
+
ENDPOINT_NOT_ACCEPTED: {
|
|
638
|
+
phase: 'write',
|
|
639
|
+
layer: 'structure',
|
|
640
|
+
subjects: ['endpoint.accepts'],
|
|
641
|
+
does: 'refuse',
|
|
642
|
+
modes: CARRIED,
|
|
643
|
+
refusal: breach('endpoint-not-accepted'),
|
|
644
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
645
|
+
statement: 'Each end of an Edge is a Node of a Class its role accepts: source and target in a directed Class, either assignment of the two Nodes in an undirected one.',
|
|
646
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-POSTSTATE-BREACH'],
|
|
647
|
+
},
|
|
648
|
+
SELF_LOOP_FORMED: {
|
|
649
|
+
phase: 'write',
|
|
650
|
+
layer: 'structure',
|
|
651
|
+
subjects: ['constraint.noSelf'],
|
|
652
|
+
does: 'refuse',
|
|
653
|
+
modes: CARRIED,
|
|
654
|
+
refusal: breach('no-self'),
|
|
655
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
656
|
+
statement: 'No Edge of a noSelf Class joins a Node to itself, whatever locates its two ends.',
|
|
657
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-POSTSTATE-BREACH'],
|
|
658
|
+
},
|
|
659
|
+
OUTGOING_COUNT_OUT_OF_BOUNDS: {
|
|
660
|
+
phase: 'write',
|
|
661
|
+
layer: 'structure',
|
|
662
|
+
subjects: ['endpoint.outgoing'],
|
|
663
|
+
does: 'refuse',
|
|
664
|
+
modes: CARRIED,
|
|
665
|
+
refusal: breach('degree-bound'),
|
|
666
|
+
accepted: 'DV_EDGE_FOREIGN_MINIMUM',
|
|
667
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
668
|
+
statement: 'Every Node the source accepts is the source of a number of Edges of the exact Class within its count.',
|
|
669
|
+
divergence: 'Over a store already in breach, PostgreSQL counts a Node only on the side a written Edge adds to, so it commits an Edge into a Node with too many Edges out. Reference counts every Node a Mutation touches and refuses that write. Both refuse a deletion which leaves the Node over.',
|
|
670
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'RMP-INVARIANTS-CLOSED', 'MUT-POSTSTATE-LOCAL'],
|
|
671
|
+
},
|
|
672
|
+
INCOMING_COUNT_OUT_OF_BOUNDS: {
|
|
673
|
+
phase: 'write',
|
|
674
|
+
layer: 'structure',
|
|
675
|
+
subjects: ['endpoint.incoming'],
|
|
676
|
+
does: 'refuse',
|
|
677
|
+
modes: CARRIED,
|
|
678
|
+
refusal: breach('degree-bound'),
|
|
679
|
+
accepted: 'DV_EDGE_FOREIGN_MINIMUM',
|
|
680
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
681
|
+
statement: 'Every Node the target accepts is the target of a number of Edges of the exact Class within its count.',
|
|
682
|
+
divergence: 'Over a store already in breach, PostgreSQL counts a Node only on the side a written Edge adds to, so it commits an Edge out of a Node with too many Edges in. Reference counts every Node a Mutation touches and refuses that write. Both refuse a deletion which leaves the Node over.',
|
|
683
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'RMP-INVARIANTS-CLOSED', 'MUT-POSTSTATE-LOCAL'],
|
|
684
|
+
},
|
|
685
|
+
INCIDENT_COUNT_OUT_OF_BOUNDS: {
|
|
686
|
+
phase: 'write',
|
|
687
|
+
layer: 'structure',
|
|
688
|
+
subjects: ['endpoint.incident'],
|
|
689
|
+
does: 'refuse',
|
|
690
|
+
modes: CARRIED,
|
|
691
|
+
refusal: breach('degree-bound'),
|
|
692
|
+
accepted: 'DV_EDGE_FOREIGN_MINIMUM',
|
|
693
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
694
|
+
statement: 'Every Node an undirected role accepts holds a number of Edges of the exact Class within its count.',
|
|
695
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-UNDIRECTED-UNORDERED', 'DV-EDGE-UNDIRECTED'],
|
|
696
|
+
},
|
|
697
|
+
CYCLE_FORMED: {
|
|
698
|
+
phase: 'write',
|
|
699
|
+
layer: 'structure',
|
|
700
|
+
subjects: ['constraint.acyclic'],
|
|
701
|
+
does: 'refuse',
|
|
702
|
+
modes: CARRIED,
|
|
703
|
+
refusal: breach('cycle'),
|
|
704
|
+
accepted: 'STRUCTURE_EDGE_ORIENTATION',
|
|
705
|
+
scope: { classes: 'exact', reads: 'extent' },
|
|
706
|
+
statement: 'No Edges of one exact acyclic Class form a directed cycle.',
|
|
707
|
+
divergence: 'Over a store already in breach, PostgreSQL follows only the Edges a Mutation writes, so it commits a write that adds to no cycle. Reference reads the whole Class and refuses that write, naming no rule.',
|
|
708
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-POSTSTATE-BREACH', 'MUT-POSTSTATE-LOCAL'],
|
|
709
|
+
},
|
|
710
|
+
EDGE_KEY_DUPLICATED: {
|
|
711
|
+
phase: 'write',
|
|
712
|
+
layer: 'structure',
|
|
713
|
+
subjects: ['class.unique'],
|
|
714
|
+
does: 'refuse',
|
|
715
|
+
modes: CARRIED,
|
|
716
|
+
refusal: breach('duplicate-key'),
|
|
717
|
+
accepted: 'DV_EDGE_UNIQUE',
|
|
718
|
+
scope: { classes: 'descendants', reads: 'extent' },
|
|
719
|
+
statement: 'No two Edges of a Class and of its concrete descendants share the values of a tuple while each of its fields is present.',
|
|
720
|
+
divergence: 'Over a store already in breach, PostgreSQL compares only the keys a Mutation writes, so it commits a write of another key. Reference reads the whole Class and refuses that write, naming no rule.',
|
|
721
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-POSTSTATE-BREACH', 'MUT-POSTSTATE-LOCAL'],
|
|
722
|
+
},
|
|
723
|
+
NODE_KEY_DUPLICATED: {
|
|
724
|
+
phase: 'write',
|
|
725
|
+
layer: 'structure',
|
|
726
|
+
subjects: ['class.unique'],
|
|
727
|
+
does: 'refuse',
|
|
728
|
+
modes: CARRIED,
|
|
729
|
+
refusal: breach('duplicate-key'),
|
|
730
|
+
accepted: 'DV_NODE_UNIQUE',
|
|
731
|
+
scope: { classes: 'descendants', reads: 'extent' },
|
|
732
|
+
statement: 'No two Nodes of a Class and of its concrete descendants share the values of a tuple while every Property of it has a value.',
|
|
733
|
+
divergence: 'Over a store already in breach, PostgreSQL compares only the keys a Mutation writes, so it commits a Node of another key or of no key. Reference reads the whole Class and refuses that write, naming no rule.',
|
|
734
|
+
laws: ['MUT-INVARIANTS-CARRIED', 'MUT-POSTSTATE-BREACH', 'MUT-POSTSTATE-LOCAL'],
|
|
735
|
+
},
|
|
736
|
+
// ─── What the Kernel applies to what it admits ───
|
|
737
|
+
DESCENDANTS_INHERIT: {
|
|
738
|
+
phase: 'write',
|
|
739
|
+
layer: 'structure',
|
|
740
|
+
subjects: ['class.extends'],
|
|
741
|
+
does: 'apply',
|
|
742
|
+
modes: EVERY,
|
|
743
|
+
statement: 'A Class holds the Properties of its ancestors, and a role that accepts a Class accepts its concrete descendants.',
|
|
744
|
+
laws: ['DV-CLASS-SATISFACTION', 'RMP-AUTO-CLOSURE-EXPLICIT'],
|
|
745
|
+
accepted: 'DV_CLASS_INHERITANCE',
|
|
746
|
+
},
|
|
747
|
+
AUTO_PROPERTY_STAMPED: {
|
|
748
|
+
phase: 'write',
|
|
749
|
+
layer: 'lifecycle',
|
|
750
|
+
subjects: ['property.auto'],
|
|
751
|
+
does: 'apply',
|
|
752
|
+
modes: ['ordinary', 'repair-kernel', 'projection'],
|
|
753
|
+
statement: 'The Kernel sets an automatic Property to the one instant of each transition of its events.',
|
|
754
|
+
accepted: 'DV_PROPERTY_AUTO',
|
|
755
|
+
laws: ['RMP-AUTO-CLOSURE-EXPLICIT'],
|
|
756
|
+
},
|
|
757
|
+
STORED_AUTO_VALUE_KEPT: {
|
|
758
|
+
phase: 'write',
|
|
759
|
+
layer: 'lifecycle',
|
|
760
|
+
subjects: ['property.auto'],
|
|
761
|
+
does: 'apply',
|
|
762
|
+
modes: ['repair-application', 'preserve'],
|
|
763
|
+
statement: 'On a Property an application declares, a repair session takes the stored value as it is admitted, unread by its value program, and a workflow which moves stored facts writes the stored value of any automatic Property, and neither stamps. A Property the Kernel declares keeps WRITE.AUTO_PROPERTY_AUTHORED and WRITE.AUTO_PROPERTY_STAMPED in a repair, on every Class.',
|
|
764
|
+
laws: ['RMP-AUTO-CLOSURE-EXPLICIT', 'RMP-REPAIR-VOCABULARY', 'VAL-REPAIR-OBSERVE'],
|
|
765
|
+
},
|
|
766
|
+
KEYED_REQUEST_REPLAYED: {
|
|
767
|
+
phase: 'write',
|
|
768
|
+
layer: 'identity',
|
|
769
|
+
subjects: ['request.receipt'],
|
|
770
|
+
does: 'apply',
|
|
771
|
+
modes: PUBLIC,
|
|
772
|
+
statement: 'A request repeated under a retained key answers what it committed and writes nothing. Past retention the key is free, and the request runs again.',
|
|
773
|
+
laws: [
|
|
774
|
+
'RM-DURABLE-RECEIPT',
|
|
775
|
+
'MUT-DURABLE-RECEIPT',
|
|
776
|
+
'MUT-SESSION-RECEIPT-SCOPE',
|
|
777
|
+
'RM-CREATED-IDS-EXACT',
|
|
778
|
+
],
|
|
779
|
+
},
|
|
780
|
+
UNDIRECTED_ENDS_UNORDERED: {
|
|
781
|
+
phase: 'write',
|
|
782
|
+
layer: 'identity',
|
|
783
|
+
subjects: ['class.orientation'],
|
|
784
|
+
does: 'apply',
|
|
785
|
+
modes: EVERY,
|
|
786
|
+
statement: 'An undirected Edge is one unordered pair: naming its endpoints in either order names one Edge.',
|
|
787
|
+
laws: ['MUT-UNDIRECTED-UNORDERED', 'ED-IDENTITY'],
|
|
788
|
+
},
|
|
789
|
+
DELETED_NODE_DETACHES_EDGES: {
|
|
790
|
+
phase: 'write',
|
|
791
|
+
layer: 'structure',
|
|
792
|
+
subjects: ['endpoint.onDelete', 'class.inheritance'],
|
|
793
|
+
does: 'apply',
|
|
794
|
+
modes: CARRIED,
|
|
795
|
+
statement: 'Deleting a Node deletes with it every Edge whose ends at deleted Nodes are all held by detach roles, unless the Plan deletes it explicitly, excludes it, or a Schema projection owns it.',
|
|
796
|
+
accepted: 'DV_EDGE_LIFETIME',
|
|
797
|
+
laws: ['MUT-DETACHED-EDGES'],
|
|
798
|
+
},
|
|
799
|
+
EFFECTS_COMMIT_TOGETHER: {
|
|
800
|
+
phase: 'write',
|
|
801
|
+
layer: 'engine',
|
|
802
|
+
subjects: ['request.mutation'],
|
|
803
|
+
does: 'apply',
|
|
804
|
+
modes: EVERY,
|
|
805
|
+
statement: 'A Mutation commits all of its effects or none, and the rules judge the state after all of them: the order it authors them in means nothing.',
|
|
806
|
+
laws: ['MUT-ATOMIC', 'MUT-CANONICAL-SETS', 'RMP-SIMULTANEOUS'],
|
|
807
|
+
},
|
|
808
|
+
INSTANCE_OF_FIXED_BY_CLASS: {
|
|
809
|
+
phase: 'write',
|
|
810
|
+
layer: 'protection',
|
|
811
|
+
subjects: ['fact.instance_of'],
|
|
812
|
+
does: 'apply',
|
|
813
|
+
modes: EVERY,
|
|
814
|
+
statement: 'Every Node holds the instance_of its exact Class fixes, which no effect writes and a condition may read.',
|
|
815
|
+
laws: ['RMP-DERIVED-EDGES-REJECTED', 'POSTGRES-MUTATION-INSTANCE-OF'],
|
|
816
|
+
},
|
|
817
|
+
EARLIEST_REFUSAL_ANSWERS: {
|
|
818
|
+
phase: 'write',
|
|
819
|
+
layer: 'engine',
|
|
820
|
+
subjects: ['store'],
|
|
821
|
+
does: 'apply',
|
|
822
|
+
modes: EVERY,
|
|
823
|
+
statement: 'A Mutation refused for several reasons answers the earliest of them: a locator before the authorization, the authorization before a stated condition, a condition before the state after all its effects.',
|
|
824
|
+
laws: ['MUT-REJECTION-EARLIEST'],
|
|
825
|
+
},
|
|
826
|
+
// ─── What a Schema declares and a write does not enforce ───
|
|
827
|
+
STATE_TRANSITIONS_UNENFORCED: {
|
|
828
|
+
phase: 'write',
|
|
829
|
+
layer: 'lifecycle',
|
|
830
|
+
subjects: ['property.state'],
|
|
831
|
+
does: 'abstain',
|
|
832
|
+
accepted: 'DV_PROPERTY_STATE',
|
|
833
|
+
statement: 'A write moves a State Property to any of its states: the Kernel does not hold its transitions.',
|
|
834
|
+
},
|
|
835
|
+
INITIAL_STATE_UNENFORCED: {
|
|
836
|
+
phase: 'write',
|
|
837
|
+
layer: 'lifecycle',
|
|
838
|
+
subjects: ['property.state'],
|
|
839
|
+
does: 'abstain',
|
|
840
|
+
accepted: 'DV_PROPERTY_STATE',
|
|
841
|
+
statement: 'A created Node holds any state in a State Property: the Kernel does not hold its initial state.',
|
|
842
|
+
},
|
|
843
|
+
VALUE_ANNOTATIONS_UNENFORCED: {
|
|
844
|
+
phase: 'write',
|
|
845
|
+
layer: 'value',
|
|
846
|
+
subjects: ['property.schema'],
|
|
847
|
+
does: 'abstain',
|
|
848
|
+
statement: 'The annotations of a value program, `format` among them, refuse no value.',
|
|
849
|
+
},
|
|
850
|
+
CLASS_DATA_UNENFORCED: {
|
|
851
|
+
phase: 'write',
|
|
852
|
+
layer: 'structure',
|
|
853
|
+
subjects: ['class.data'],
|
|
854
|
+
does: 'abstain',
|
|
855
|
+
statement: 'The payload media type a Node Class declares refuses no write: the Kernel holds no payload of it.',
|
|
856
|
+
},
|
|
857
|
+
GUARD_BEYOND_CALLER_VIEW_UNENFORCED: {
|
|
858
|
+
phase: 'write',
|
|
859
|
+
layer: 'identity',
|
|
860
|
+
subjects: ['request.condition'],
|
|
861
|
+
does: 'abstain',
|
|
862
|
+
statement: 'A guard decides over the facts its caller traverses: it holds a rule over all facts, such as uniqueness, only when the Mutation runs under the identity of the Domain.',
|
|
863
|
+
laws: ['Q7-GUARD-DOMAIN-IDENTITY', 'Q7-GUARD-TRAVERSABLE'],
|
|
864
|
+
},
|
|
865
|
+
COUNT_ACROSS_CLASSES_UNENFORCED: {
|
|
866
|
+
phase: 'write',
|
|
867
|
+
layer: 'structure',
|
|
868
|
+
subjects: ['endpoint.outgoing', 'endpoint.incoming', 'endpoint.incident'],
|
|
869
|
+
does: 'abstain',
|
|
870
|
+
scope: { classes: 'exact', reads: 'touched' },
|
|
871
|
+
statement: 'A count bounds the Edges of one exact Class: the Edges of a descendant Class count for that Class alone.',
|
|
872
|
+
laws: ['MUT-PRESTATE-VALID'],
|
|
873
|
+
},
|
|
874
|
+
CYCLE_ACROSS_CLASSES_UNENFORCED: {
|
|
875
|
+
phase: 'write',
|
|
876
|
+
layer: 'structure',
|
|
877
|
+
subjects: ['constraint.acyclic'],
|
|
878
|
+
does: 'abstain',
|
|
879
|
+
scope: { classes: 'exact', reads: 'extent' },
|
|
880
|
+
statement: 'Acyclicity holds per exact Class: Edges of two Classes may form a cycle together.',
|
|
881
|
+
laws: ['MUT-PRESTATE-VALID', 'SP-RETAINED-EXTENT-NARROWING'],
|
|
882
|
+
},
|
|
883
|
+
// ─── The store, whatever the data ───
|
|
884
|
+
BACKEND_CONTRACT_UNMET: {
|
|
885
|
+
phase: 'write',
|
|
886
|
+
layer: 'engine',
|
|
887
|
+
subjects: ['store'],
|
|
888
|
+
does: 'refuse',
|
|
889
|
+
modes: EVERY,
|
|
890
|
+
refusal: { phase: 'admission', code: 'MUTATION_BACKEND_CONTRACT' },
|
|
891
|
+
statement: 'A store refuses a closed plan it does not support, and a backend without receipts refuses a keyed request before any plan, each before any effect and with no phase in the outcome.',
|
|
892
|
+
laws: ['MUT-STRUCTURAL-GATE', 'RM-REFUSALS-MAPPED', 'POSTGRES-MUTATION-EXACT'],
|
|
893
|
+
},
|
|
894
|
+
SNAPSHOT_STALE: {
|
|
895
|
+
phase: 'write',
|
|
896
|
+
layer: 'engine',
|
|
897
|
+
subjects: ['store'],
|
|
898
|
+
does: 'refuse',
|
|
899
|
+
modes: EVERY,
|
|
900
|
+
refusal: { phase: 'execute', code: 'MUTATION_SNAPSHOT_STALE' },
|
|
901
|
+
statement: 'A plan runs only on the Registry it was closed over. On PostgreSQL the same answer refuses a write under the fence of a migration, or on a generation that does not serve writes.',
|
|
902
|
+
laws: ['RM-SINGLE-BASIS', 'RM-REFUSALS-MAPPED', 'POSTGRES-MIGRATION-FENCE'],
|
|
903
|
+
},
|
|
904
|
+
MAINTENANCE_STALE: {
|
|
905
|
+
phase: 'write',
|
|
906
|
+
layer: 'engine',
|
|
907
|
+
subjects: ['store'],
|
|
908
|
+
does: 'refuse',
|
|
909
|
+
modes: EVERY,
|
|
910
|
+
refusal: { phase: 'execute', code: 'MUTATION_MAINTENANCE_STALE' },
|
|
911
|
+
statement: 'A plan runs only under the Instance admission it was stamped with.',
|
|
912
|
+
laws: ['MUT-SESSION-BASIS', 'RM-REFUSALS-MAPPED'],
|
|
913
|
+
},
|
|
914
|
+
RESOURCE_EXHAUSTED: {
|
|
915
|
+
phase: 'write',
|
|
916
|
+
layer: 'engine',
|
|
917
|
+
subjects: ['store'],
|
|
918
|
+
does: 'refuse',
|
|
919
|
+
modes: EVERY,
|
|
920
|
+
refusal: { phase: 'execute', code: 'MUTATION_RESOURCE_EXHAUSTED' },
|
|
921
|
+
statement: 'A plan which exceeds a resource limit of the store is refused with no visible effect. On PostgreSQL the retiring Edges a deletion had already erased stay erased: no read could see them.',
|
|
922
|
+
divergence: 'The limits differ. Reference alone refuses a transition past 250,000 live facts visited. PostgreSQL alone refuses a statement too large at its preparation, a guard whose plan does not fit, a guard which exhausts a Query budget, and a composition past a ceiling its construction sets. The Host construction of a production Kernel sets none.',
|
|
923
|
+
laws: ['RM-REFUSALS-MAPPED', 'POSTGRES-RETIRING-ERASED-AT-DELETE'],
|
|
924
|
+
},
|
|
925
|
+
CAPACITY_REFUSED_BEFORE_SEND: {
|
|
926
|
+
phase: 'write',
|
|
927
|
+
layer: 'engine',
|
|
928
|
+
subjects: ['store'],
|
|
929
|
+
does: 'refuse',
|
|
930
|
+
modes: EVERY,
|
|
931
|
+
refusal: { phase: 'submission', code: 'MUTATION_CAPACITY_EXHAUSTED' },
|
|
932
|
+
statement: 'A plan the store has no capacity to take is refused before it is sent.',
|
|
933
|
+
laws: ['RM-SUBMISSION-REFUSAL', 'MUT-SUBMISSION-REFUSAL-RETURNED'],
|
|
934
|
+
},
|
|
935
|
+
CAPACITY_EXHAUSTED_IN_STORE: {
|
|
936
|
+
phase: 'write',
|
|
937
|
+
layer: 'engine',
|
|
938
|
+
subjects: ['store'],
|
|
939
|
+
does: 'refuse',
|
|
940
|
+
modes: EVERY,
|
|
941
|
+
refusal: { phase: 'execute', code: 'MUTATION_CAPACITY_EXHAUSTED' },
|
|
942
|
+
statement: 'A plan the store aborts for lack of capacity takes no effect.',
|
|
943
|
+
laws: ['RM-EXECUTION-CAPACITY-REFUSAL'],
|
|
944
|
+
},
|
|
945
|
+
BACKEND_UNAVAILABLE: {
|
|
946
|
+
phase: 'write',
|
|
947
|
+
layer: 'engine',
|
|
948
|
+
subjects: ['store'],
|
|
949
|
+
does: 'refuse',
|
|
950
|
+
modes: EVERY,
|
|
951
|
+
refusal: { phase: 'submission', code: 'MUTATION_BACKEND_UNAVAILABLE' },
|
|
952
|
+
statement: 'A plan no store can take is refused without effect.',
|
|
953
|
+
laws: ['RM-SUBMISSION-REFUSAL'],
|
|
954
|
+
},
|
|
955
|
+
CANCELLED: {
|
|
956
|
+
phase: 'write',
|
|
957
|
+
layer: 'engine',
|
|
958
|
+
subjects: ['store'],
|
|
959
|
+
does: 'refuse',
|
|
960
|
+
modes: EVERY,
|
|
961
|
+
refusal: { phase: 'execute', code: 'MUTATION_CANCELLED' },
|
|
962
|
+
statement: 'A cancelled request observed before execution takes no effect.',
|
|
963
|
+
laws: ['RM-CONTROL-CANNOT-REWRITE-OUTCOME'],
|
|
964
|
+
},
|
|
965
|
+
DEADLINE_EXCEEDED: {
|
|
966
|
+
phase: 'write',
|
|
967
|
+
layer: 'engine',
|
|
968
|
+
subjects: ['store'],
|
|
969
|
+
does: 'refuse',
|
|
970
|
+
modes: EVERY,
|
|
971
|
+
refusal: { phase: 'execute', code: 'MUTATION_DEADLINE_EXCEEDED' },
|
|
972
|
+
statement: 'A request past its deadline observed before execution takes no effect.',
|
|
973
|
+
divergence: 'PostgreSQL also answers this code, with no deadline passed and no effect, when the statement of a plan outgrows its bound of 8 MiB or of 65,535 parameters under the compositions it reads, a bound that depends on facts. Reference holds no such bound and decides the write.',
|
|
974
|
+
laws: ['RM-CONTROL-CANNOT-REWRITE-OUTCOME'],
|
|
975
|
+
},
|
|
976
|
+
OUTCOME_UNKNOWN: {
|
|
977
|
+
phase: 'write',
|
|
978
|
+
layer: 'engine',
|
|
979
|
+
subjects: ['store'],
|
|
980
|
+
does: 'refuse',
|
|
981
|
+
modes: EVERY,
|
|
982
|
+
refusal: { phase: 'outcome', code: 'MUTATION_OUTCOME_UNKNOWN' },
|
|
983
|
+
statement: 'A request whose evidence proves no outcome is reported as unknown, never as refused.',
|
|
984
|
+
divergence: 'A caller whose Identity names no live Node, or whose composition reaches a Node that is not an Identity, throws on each engine with no effect, and the Runtime reports it as unknown. A target fact which fails ranks above it on both. A failing direct condition ranks above it on PostgreSQL, which answers MUTATION_PRECONDITION_FAILED, and below it on Reference, which throws. A failing Query guard ranks below it on both.',
|
|
985
|
+
laws: ['RM-OUTCOME-EVIDENCED'],
|
|
986
|
+
},
|
|
987
|
+
// ─── The Kernel's own composition, which no request reaches ───
|
|
988
|
+
ID_ALLOCATION_INVALID: {
|
|
989
|
+
phase: 'write',
|
|
990
|
+
layer: 'defect',
|
|
991
|
+
subjects: ['kernel'],
|
|
992
|
+
does: 'refuse',
|
|
993
|
+
modes: EVERY,
|
|
994
|
+
refusal: planning('MUTATION_ID_ALLOCATION_INVALID'),
|
|
995
|
+
statement: 'The allocator gives one valid distinct id to each created Node.',
|
|
996
|
+
laws: ['RMP-IDS-EXPLICIT'],
|
|
997
|
+
},
|
|
998
|
+
AUTO_INSTANT_INVALID: {
|
|
999
|
+
phase: 'write',
|
|
1000
|
+
layer: 'defect',
|
|
1001
|
+
subjects: ['kernel'],
|
|
1002
|
+
does: 'refuse',
|
|
1003
|
+
modes: ['ordinary', 'repair-kernel', 'projection'],
|
|
1004
|
+
refusal: input('MUTATION_PROPERTY_INVALID'),
|
|
1005
|
+
statement: 'The instant of a transition is a value of its automatic Properties.',
|
|
1006
|
+
laws: ['RMP-AUTO-CLOSURE-EXPLICIT'],
|
|
1007
|
+
},
|
|
1008
|
+
PLAN_DEFECT: {
|
|
1009
|
+
phase: 'write',
|
|
1010
|
+
layer: 'defect',
|
|
1011
|
+
subjects: ['kernel'],
|
|
1012
|
+
does: 'refuse',
|
|
1013
|
+
modes: EVERY,
|
|
1014
|
+
refusal: planning('MUTATION_RESOLUTION_INVALID'),
|
|
1015
|
+
statement: 'Planning composes with its clock, compilers and catalog, and binds every reference it made.',
|
|
1016
|
+
},
|
|
1017
|
+
});
|