@inventarch/runtime 1.2.0 → 3.0.0
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/README.md +18 -2
- package/SPEC.md +41 -7
- package/dist/authoring-execution/execution.d.ts.map +1 -1
- package/dist/authoring-execution/execution.js +4 -2
- package/dist/authoring-execution/execution.js.map +1 -1
- package/dist/authoring-execution/inventory.d.ts.map +1 -1
- package/dist/authoring-execution/inventory.js +2 -0
- package/dist/authoring-execution/inventory.js.map +1 -1
- package/dist/authoring-execution/types.d.ts +2 -0
- package/dist/authoring-execution/types.d.ts.map +1 -1
- package/dist/context.d.ts +10 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +14 -5
- package/dist/context.js.map +1 -1
- package/dist/coordinate.d.ts +9 -2
- package/dist/coordinate.d.ts.map +1 -1
- package/dist/coordinate.js +14 -0
- package/dist/coordinate.js.map +1 -1
- package/dist/door.d.ts +17 -0
- package/dist/door.d.ts.map +1 -1
- package/dist/door.js +104 -5
- package/dist/door.js.map +1 -1
- package/dist/editor/index.d.ts +3 -1
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/index.js +4 -1
- package/dist/editor/index.js.map +1 -1
- package/dist/editor/workspace.d.ts.map +1 -1
- package/dist/editor/workspace.js +11 -2
- package/dist/editor/workspace.js.map +1 -1
- package/dist/errors.d.ts +20 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +16 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/locator.d.ts +22 -2
- package/dist/locator.d.ts.map +1 -1
- package/dist/locator.js +290 -26
- package/dist/locator.js.map +1 -1
- package/dist/machine-protocol.d.ts +5 -0
- package/dist/machine-protocol.d.ts.map +1 -1
- package/dist/machine-protocol.js +142 -6
- package/dist/machine-protocol.js.map +1 -1
- package/dist/mandate-guard.d.ts +91 -0
- package/dist/mandate-guard.d.ts.map +1 -0
- package/dist/mandate-guard.js +160 -0
- package/dist/mandate-guard.js.map +1 -0
- package/dist/mandate-modes.d.ts +251 -4
- package/dist/mandate-modes.d.ts.map +1 -1
- package/dist/mandate-modes.js +426 -18
- package/dist/mandate-modes.js.map +1 -1
- package/dist/next.d.ts +154 -0
- package/dist/next.d.ts.map +1 -0
- package/dist/next.js +724 -0
- package/dist/next.js.map +1 -0
- package/dist/packet-host.d.ts +208 -0
- package/dist/packet-host.d.ts.map +1 -0
- package/dist/packet-host.js +244 -0
- package/dist/packet-host.js.map +1 -0
- package/dist/packet.d.ts +172 -0
- package/dist/packet.d.ts.map +1 -0
- package/dist/packet.js +211 -0
- package/dist/packet.js.map +1 -0
- package/dist/position.d.ts +284 -0
- package/dist/position.d.ts.map +1 -0
- package/dist/position.js +531 -0
- package/dist/position.js.map +1 -0
- package/dist/render.d.ts +6 -1
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +12 -0
- package/dist/render.js.map +1 -1
- package/dist/scope-key.d.ts +101 -0
- package/dist/scope-key.d.ts.map +1 -0
- package/dist/scope-key.js +175 -0
- package/dist/scope-key.js.map +1 -0
- package/dist/steward.d.ts +8 -1
- package/dist/steward.d.ts.map +1 -1
- package/dist/steward.js +10 -0
- package/dist/steward.js.map +1 -1
- package/package.json +28 -4
package/dist/mandate-modes.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { MOVES as KERNEL_MOVES } from '@inventarch/language';
|
|
2
|
+
import { reaches, selects } from '@inventarch/graph';
|
|
2
3
|
import { RUNTIME_CODES, RuntimeError } from './errors.js';
|
|
4
|
+
import { freeze } from './types.js';
|
|
3
5
|
/**
|
|
4
6
|
* Mandate authority as closed moves (position-and-projection design, items 2c and 13).
|
|
5
7
|
*
|
|
6
8
|
* A `@mandate` may declare an `authority` section: the participant it binds, the moves it allows (closed to the five
|
|
7
9
|
* kernel moves), the workspaces it scopes, and the words and path selections it excludes or covers. This module
|
|
8
|
-
* publishes the CLI mode -> move table and the pure refusal check that the authoring verbs will consume
|
|
9
|
-
*
|
|
10
|
-
*
|
|
10
|
+
* publishes the CLI mode -> move table and the pure refusal check that the authoring verbs will consume, and resolves
|
|
11
|
+
* the authored mandates that govern an actor at a workspace or path, the actor a command acts as when none is named and
|
|
12
|
+
* the refusal profile those mandates give a mode (plan amendment C1). The CLI's profile module and the generated
|
|
13
|
+
* mandate guard consume these checks for their gated commands and host events. A mandate adds closed restrictions
|
|
14
|
+
* only; it never grants host permissions, and a mandate without
|
|
11
15
|
* `authority.moves` restricts no move.
|
|
12
16
|
*/
|
|
13
17
|
/** The five kernel moves, in kernel order. */
|
|
@@ -25,11 +29,17 @@ export const MODES = Object.freeze(Object.keys(MODE_MOVES));
|
|
|
25
29
|
export function isMode(value) {
|
|
26
30
|
return typeof value === 'string' && Object.hasOwn(MODE_MOVES, value);
|
|
27
31
|
}
|
|
28
|
-
/** The refusal codes a mandate can return;
|
|
32
|
+
/** The refusal codes a mandate, a profile or the default actor can return; each is registered in RUNTIME_CODES. */
|
|
29
33
|
export const MANDATE_CODES = Object.freeze(RUNTIME_CODES.filter((code) => code.startsWith('IA-RUNTIME-MANDATE-')));
|
|
30
|
-
const invalid = (message) => {
|
|
31
|
-
throw new RuntimeError('IA-RUNTIME-REQUEST-INVALID', message);
|
|
34
|
+
const invalid = (message, where) => {
|
|
35
|
+
throw new RuntimeError('IA-RUNTIME-REQUEST-INVALID', message, undefined, where);
|
|
32
36
|
};
|
|
37
|
+
/** Where a compiled record is authored, for a refusal of its authority (RuntimeError `where`). */
|
|
38
|
+
const sourceOf = (record) => ({
|
|
39
|
+
path: record.source.path,
|
|
40
|
+
line: record.source.line,
|
|
41
|
+
identity: record.identity,
|
|
42
|
+
});
|
|
33
43
|
/** Every value authored under `authority.<key>`: a repeated list key contributes each of its lists' items. */
|
|
34
44
|
function authorityValues(record, key) {
|
|
35
45
|
const fields = record.sections
|
|
@@ -38,39 +48,68 @@ function authorityValues(record, key) {
|
|
|
38
48
|
.filter((child) => 'key' in child && child.key === key);
|
|
39
49
|
for (const field of fields)
|
|
40
50
|
if (field.when !== undefined || field.fields !== undefined || field.value.kind === 'block')
|
|
41
|
-
invalid(`${record.identity}: authority.${key} must be an unconditional inline value
|
|
51
|
+
invalid(`${record.identity}: authority.${key} must be an unconditional inline value`, sourceOf(record));
|
|
42
52
|
return fields.flatMap((field) => (field.value.kind === 'list' ? field.value.items : [field.value]));
|
|
43
53
|
}
|
|
44
54
|
function texts(record, key) {
|
|
45
55
|
return authorityValues(record, key).map((value) => value.kind === 'scalar' || value.kind === 'string' || value.kind === 'prose'
|
|
46
56
|
? value.text
|
|
47
|
-
: invalid(`${record.identity}: authority.${key} holds a value that is not text
|
|
57
|
+
: invalid(`${record.identity}: authority.${key} holds a value that is not text`, sourceOf(record)));
|
|
48
58
|
}
|
|
49
59
|
function names(record, key, discriminator) {
|
|
50
60
|
return authorityValues(record, key).map((value) => value.kind === 'ref' && value.discriminator === discriminator && value.fragment === undefined
|
|
51
61
|
? value.name
|
|
52
|
-
: invalid(`${record.identity}: authority.${key} holds a value that is not a @${discriminator} reference
|
|
62
|
+
: invalid(`${record.identity}: authority.${key} holds a value that is not a @${discriminator} reference`, sourceOf(record)));
|
|
53
63
|
}
|
|
54
64
|
function isMove(value) {
|
|
55
65
|
return MOVES.includes(value);
|
|
56
66
|
}
|
|
67
|
+
/** Whether `record` states `section.key` at all: a declared empty list is stated, an absent key is not. */
|
|
68
|
+
function states(record, section, key) {
|
|
69
|
+
return record.sections
|
|
70
|
+
.filter((candidate) => candidate.name === section)
|
|
71
|
+
.flatMap((candidate) => candidate.fields)
|
|
72
|
+
.some((child) => 'key' in child && child.key === key);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Whether `record` states `section.key` with a value: a declared empty list locates nothing, so a mandate whose
|
|
76
|
+
* `scope []` or `covers []` is its only location stays located by its participant, and an empty list never lifts a
|
|
77
|
+
* restriction (a mandate only adds restrictions).
|
|
78
|
+
*/
|
|
79
|
+
function statesValue(record, section, key) {
|
|
80
|
+
return record.sections
|
|
81
|
+
.filter((candidate) => candidate.name === section)
|
|
82
|
+
.flatMap((candidate) => candidate.fields)
|
|
83
|
+
.some((child) => 'key' in child &&
|
|
84
|
+
child.key === key &&
|
|
85
|
+
!('value' in child && child.value.kind === 'list' && child.value.items.length === 0));
|
|
86
|
+
}
|
|
87
|
+
/** The text values `record` states at `authority.covers`, a list's items one by one, as db's G06c claimant index reads them. */
|
|
88
|
+
function coversOf(record) {
|
|
89
|
+
return record.sections
|
|
90
|
+
.filter((section) => section.name === 'authority')
|
|
91
|
+
.flatMap((section) => section.fields)
|
|
92
|
+
.flatMap((child) => 'key' in child && child.key === 'covers'
|
|
93
|
+
? (child.value.kind === 'list' ? child.value.items : [child.value]).flatMap((value) => 'text' in value ? [value.text] : [])
|
|
94
|
+
: []);
|
|
95
|
+
}
|
|
57
96
|
/** Read the authority a compiled `@mandate` declares; a non-mandate or a malformed field is IA-RUNTIME-REQUEST-INVALID. */
|
|
58
97
|
export function mandateAuthorityOf(record) {
|
|
59
98
|
if (record.discriminator !== 'mandate')
|
|
60
|
-
invalid(`${record.identity} is not a @mandate
|
|
99
|
+
invalid(`${record.identity} is not a @mandate`, sourceOf(record));
|
|
61
100
|
const participants = names(record, 'participant', 'agent');
|
|
62
101
|
if (participants.length > 1)
|
|
63
|
-
invalid(`${record.identity}: authority.participant names more than one agent
|
|
102
|
+
invalid(`${record.identity}: authority.participant names more than one agent`, sourceOf(record));
|
|
64
103
|
const present = (key) => authorityValues(record, key).length > 0;
|
|
65
|
-
const moves = texts(record, 'moves').map((move) => isMove(move)
|
|
104
|
+
const moves = texts(record, 'moves').map((move) => isMove(move)
|
|
105
|
+
? move
|
|
106
|
+
: invalid(`${record.identity}: authority.moves names ${move}, not a kernel move`, sourceOf(record)));
|
|
66
107
|
// Presence is judged by the key: a declared but empty list names no move, which the design's one-or-more refuses
|
|
67
|
-
// rather than reading as a lockout of every mode or as an absent restriction.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
.flatMap((section) => section.fields)
|
|
71
|
-
.some((child) => 'key' in child && child.key === 'moves');
|
|
108
|
+
// rather than reading as a lockout of every mode or as an absent restriction. Admission refuses such a list since lane
|
|
109
|
+
// D (compliance C05), so a record a reader admitted never reaches this; it stays as defence in depth.
|
|
110
|
+
const hasMoves = states(record, 'authority', 'moves');
|
|
72
111
|
if (hasMoves && moves.length === 0)
|
|
73
|
-
invalid(`${record.identity}: authority.moves must name at least one kernel move
|
|
112
|
+
invalid(`${record.identity}: authority.moves must name at least one kernel move`, sourceOf(record));
|
|
74
113
|
return Object.freeze({
|
|
75
114
|
identity: record.identity,
|
|
76
115
|
...(participants.length === 1 ? { participant: participants[0] } : {}),
|
|
@@ -109,4 +148,373 @@ export function mandateRefusal(mandate, mode, words = []) {
|
|
|
109
148
|
});
|
|
110
149
|
return undefined;
|
|
111
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Lane D, D1: every `@mandate` of the workspace's own authored sources (band 100) that failed admission, frozen, by path
|
|
153
|
+
* then line, each with its own admission finding as db records it (db `unadmitted`): (a) one admission refused,
|
|
154
|
+
* `refused` naming it; (b) both occurrences of a mandate identity that ties at band 100; (c) one a file refused whole
|
|
155
|
+
* declares, by a language error or a duplicate requirement id, as db's own parse of the file reads its headers, or as
|
|
156
|
+
* its captured text shows a header the parse could not read, or a `@mandate` token on a line no parsed record spans and
|
|
157
|
+
* the language scanner does not read as a whole-line comment (db D15), so the attribution `ia author` writes is none
|
|
158
|
+
* outside the damaged files D15 names (a bare CR anywhere, the comment inside `"""` prose, a byte-order mark before it
|
|
159
|
+
* on line 1 with no pragma); and
|
|
160
|
+
* (d) review D2-R2: every record db cannot identify (db D15 lists it with no word, by the rules and limits D15 states),
|
|
161
|
+
* which may be a mandate, so it counts as one, marked `unidentified`, except at a line db also lists a mandate at, which
|
|
162
|
+
* is counted once, as that mandate (review D2 recheck F3). A record is a mandate when its word is `mandate` or its
|
|
163
|
+
* identity's facet is, or when db names no word. The band is the one db reads from the source's placement, as capture
|
|
164
|
+
* membership and governingMandates read it, so a mandate refused inside an installed base (band 90) never counts: it
|
|
165
|
+
* never governs.
|
|
166
|
+
*
|
|
167
|
+
* It reads db's root view, not a scope: a record admission refused belongs to no scope, and its scope, covers and
|
|
168
|
+
* participant cannot be trusted, so what it fails closed (D2) it fails closed workspace-wide.
|
|
169
|
+
*/
|
|
170
|
+
export function refusedMandates(reader) {
|
|
171
|
+
const authored = reader.unadmitted.filter((entry) => entry.band === 100), mandated = (entry) => entry.word === 'mandate' || entry.identity?.split('/')[2] === 'mandate', at = new Set(authored.filter(mandated).map((entry) => JSON.stringify([entry.path, entry.line])));
|
|
172
|
+
return freeze(authored
|
|
173
|
+
.filter((entry) => entry.word === undefined ? !at.has(JSON.stringify([entry.path, entry.line])) : mandated(entry))
|
|
174
|
+
.map((entry) => ({
|
|
175
|
+
...(entry.identity === undefined ? {} : { identity: entry.identity }),
|
|
176
|
+
path: entry.path,
|
|
177
|
+
line: entry.line,
|
|
178
|
+
code: entry.finding.code,
|
|
179
|
+
message: entry.finding.message,
|
|
180
|
+
...(entry.word === undefined ? { unidentified: true } : {}),
|
|
181
|
+
})));
|
|
182
|
+
}
|
|
183
|
+
/** The references D9 follows: the holder's word, the field, and the word the field's references name. */
|
|
184
|
+
const DEPENDENCIES = [
|
|
185
|
+
{ holder: 'mandate', section: 'authority', key: 'participant', word: 'agent' },
|
|
186
|
+
{ holder: 'mandate', section: 'authority', key: 'scope', word: 'workspace' },
|
|
187
|
+
{ holder: 'workspace', section: 'composition', key: 'steward', word: 'agent' },
|
|
188
|
+
];
|
|
189
|
+
/** The names, as authored, of the `@<word>` references `record` states at `section.key`, list items one by one. */
|
|
190
|
+
function referenced(record, section, key, word) {
|
|
191
|
+
return record.sections
|
|
192
|
+
.filter((candidate) => candidate.name === section)
|
|
193
|
+
.flatMap((candidate) => candidate.fields)
|
|
194
|
+
.flatMap((child) => 'key' in child && child.key === key
|
|
195
|
+
? (child.value.kind === 'list' ? child.value.items : [child.value]).flatMap((value) => value.kind === 'ref' && value.discriminator === word ? [value.name] : [])
|
|
196
|
+
: []);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Lane D, D9: every admitted authored (band 100) record whose resolution a refused authored record would change, frozen,
|
|
200
|
+
* by dependent identity, field, path and line: a `@mandate` whose `authority.participant` or `authority.scope`, or a
|
|
201
|
+
* `@workspace` whose `composition.steward`, names, as authored, an authored `@agent` or `@workspace` that failed
|
|
202
|
+
* admission (db `unadmitted`, band 100), matched by word and name, lowercased, so a tie, a schema refusal and a file
|
|
203
|
+
* refused whole all count. Admission drops the refused record, so that reference resolves to nothing, or to a record of
|
|
204
|
+
* another band, and the mandate silently binds no one, governs nowhere, or judges another default actor; the D8 probes
|
|
205
|
+
* showed each lifting a restriction. A reference no authored record answers at all, or one to a record refused in an
|
|
206
|
+
* installed base (band 90), is no dependency: it keeps today's reading. Neither is a refused `@agent` or `@workspace` no
|
|
207
|
+
* admitted mandate or workspace names. Like refusedMandates it reads db's root view, not a scope.
|
|
208
|
+
*/
|
|
209
|
+
export function refusedDependencies(reader) {
|
|
210
|
+
const refused = reader.unadmitted.filter((entry) => entry.band === 100 && (entry.word === 'agent' || entry.word === 'workspace'));
|
|
211
|
+
if (refused.length === 0)
|
|
212
|
+
return freeze([]);
|
|
213
|
+
const found = new Map();
|
|
214
|
+
for (const node of reader.records())
|
|
215
|
+
for (const { holder, section, key, word } of DEPENDENCIES) {
|
|
216
|
+
if (node.band !== 100 || node.discriminator !== holder)
|
|
217
|
+
continue;
|
|
218
|
+
for (const name of referenced(node, section, key, word))
|
|
219
|
+
for (const entry of refused) {
|
|
220
|
+
if (entry.word !== word || (entry.name ?? entry.identity?.split('/')[3]) !== name.toLowerCase())
|
|
221
|
+
continue;
|
|
222
|
+
const field = `${section}.${key}`;
|
|
223
|
+
found.set(JSON.stringify([node.identity, field, entry.path, entry.line]), {
|
|
224
|
+
dependent: node.identity,
|
|
225
|
+
field,
|
|
226
|
+
reference: `@${word} ${name}`,
|
|
227
|
+
...(entry.identity === undefined ? {} : { identity: entry.identity }),
|
|
228
|
+
path: entry.path,
|
|
229
|
+
line: entry.line,
|
|
230
|
+
code: entry.finding.code,
|
|
231
|
+
message: entry.finding.message,
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return freeze([...found.values()].sort((a, b) => order(a.dependent, b.dependent) || order(a.field, b.field) || order(a.path, b.path) || a.line - b.line));
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Review D-R2: whether `error` is the refusal `requireMandatesAdmitted` raises, an authored record a mandate resolution
|
|
239
|
+
* reads having failed admission, so a caller names the admission report and a hand edit, not a governance position
|
|
240
|
+
* (which, for a refused record that shares its identity with an admitted one of another band, would show that one).
|
|
241
|
+
*/
|
|
242
|
+
export function isAdmissionRefusal(error) {
|
|
243
|
+
return error instanceof RuntimeError && error.admission === 'refused';
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Lane D, D2 and D9: IA-RUNTIME-REQUEST-INVALID, marked `admission: 'refused'` (`isAdmissionRefusal`), when any
|
|
247
|
+
* authored `@mandate` failed admission, or any record a mandate resolution depends on did (`refusedDependencies`). The
|
|
248
|
+
* decision reads db's root view, whatever `within` binds; what the error discloses does not (review D-N4, db PT5): through
|
|
249
|
+
* a whole-workspace token (`isCompleteScope`) it names the first refused mandate db identifies, else the first record
|
|
250
|
+
* db cannot identify (`unidentified`, review D2-R2), else the first dependency, the refused
|
|
251
|
+
* record located on the error as `where`, with its admission code and message; through a narrowed token it names no
|
|
252
|
+
* path, record or finding and carries no `where`. Every public resolver that reads a handle (governingMandates,
|
|
253
|
+
* seatedWorkspace and defaultActor) calls it first, after reading its token, so the CLI's profile and the edit guard fail
|
|
254
|
+
* closed rather than read a workspace whose restrictions a broken record may have lifted. An unknown or stale token keeps
|
|
255
|
+
* its database code.
|
|
256
|
+
*/
|
|
257
|
+
export function requireMandatesAdmitted(reader, within) {
|
|
258
|
+
if (typeof within !== 'string' || within.length === 0)
|
|
259
|
+
invalid('Runtime reads require an explicit scope token');
|
|
260
|
+
reader.snapshot({ within });
|
|
261
|
+
const refused = refusedMandates(reader), dependencies = refusedDependencies(reader);
|
|
262
|
+
if (refused.length === 0 && dependencies.length === 0)
|
|
263
|
+
return;
|
|
264
|
+
const fail = (message, where) => {
|
|
265
|
+
throw new RuntimeError('IA-RUNTIME-REQUEST-INVALID', message, undefined, where, 'refused');
|
|
266
|
+
};
|
|
267
|
+
const closed = 'every mandate-gated decision fails closed across the workspace, since whom a mandate binds, where it governs or who acts by default cannot be trusted';
|
|
268
|
+
if (!reader.isCompleteScope(within))
|
|
269
|
+
fail(`an authored @mandate, or a record a mandate resolution reads, failed admission; ${closed}; read it through a whole-workspace scope`);
|
|
270
|
+
const records = (count) => `${count} record${count === 1 ? '' : 's'} a mandate resolution reads`;
|
|
271
|
+
const where = (entry) => ({
|
|
272
|
+
path: entry.path,
|
|
273
|
+
line: entry.line,
|
|
274
|
+
...(entry.identity === undefined ? {} : { identity: entry.identity }),
|
|
275
|
+
});
|
|
276
|
+
if (refused.length > 0) {
|
|
277
|
+
// Review D2-R2: a mandate db identifies is named first, a record it cannot identify only when there is none; the
|
|
278
|
+
// rest are counted by kind.
|
|
279
|
+
const identified = refused.filter((entry) => entry.unidentified !== true), first = identified[0] ?? refused[0], unknown = first.unidentified === true, count = (n, kind) => n === 0 ? [] : [`${n} ${kind} record${n === 1 ? '' : 's'}`], counted = [
|
|
280
|
+
...count(identified.length - (unknown ? 0 : 1), 'more @mandate'),
|
|
281
|
+
...count(refused.length - identified.length - (unknown ? 1 : 0), unknown ? 'more unidentified' : 'unidentified'),
|
|
282
|
+
], who = unknown
|
|
283
|
+
? `an unidentified record at ${first.path}:${first.line}, possibly a @mandate,`
|
|
284
|
+
: first.identity === undefined
|
|
285
|
+
? `the @mandate at ${first.path}:${first.line}`
|
|
286
|
+
: `${first.identity} (${first.path}:${first.line})`, more = counted.length === 0 ? '' : ` (${counted.join(' and ')} failed admission)`, also = dependencies.length === 0 ? '' : `, and ${records(dependencies.length)} failed admission`;
|
|
287
|
+
fail(`${who} failed admission: ${first.code} ${first.message}${more}${also}; ${closed}`, where(first));
|
|
288
|
+
}
|
|
289
|
+
const [first] = dependencies, rest = dependencies.length - 1, more = rest === 0 ? '' : ` (${rest} more record${rest === 1 ? '' : 's'} a mandate resolution reads failed admission)`;
|
|
290
|
+
fail(`${first.dependent} depends on ${first.reference} through ${first.field}, and ${first.identity ?? first.reference} (${first.path}:${first.line}) failed admission: ${first.code} ${first.message}${more}; ${closed}`, where(first));
|
|
291
|
+
}
|
|
292
|
+
const UNGOVERNED = 'no authored @mandate governs here, so no move or word is restricted (a mandate only adds restrictions)';
|
|
293
|
+
const order = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
294
|
+
/** Design §11's one next command for a mandate refusal, `ia scope` read as `ia position` (decision scope-verb-dispatch). */
|
|
295
|
+
const governance = (seat) => `ia position --seat ${seat} --shape governance`;
|
|
296
|
+
/**
|
|
297
|
+
* The records the scope token admits, runtime placement left out, and the reads of them that go through it; first,
|
|
298
|
+
* IA-RUNTIME-REQUEST-INVALID when an authored `@mandate` failed admission (`failClosed`, lane D).
|
|
299
|
+
*/
|
|
300
|
+
function admitted(reader, within) {
|
|
301
|
+
if (typeof within !== 'string' || within.length === 0)
|
|
302
|
+
invalid('Runtime reads require an explicit scope token');
|
|
303
|
+
// An unknown or stale token keeps its database code: the scope is read before the workspace is judged.
|
|
304
|
+
const read = { within }, snapshot = reader.snapshot(read);
|
|
305
|
+
requireMandatesAdmitted(reader, within);
|
|
306
|
+
const nodes = new Map(snapshot.records.filter((node) => node.placement.kind !== 'runtime').map((node) => [node.identity, node])), rootOf = new Map(snapshot.membership.map((row) => [row.identity, row.root])), roots = reader.roots(read), declared = new Set(roots.map((root) => root.root));
|
|
307
|
+
const ownOf = (workspace) => new Set(roots.filter((root) => root.workspace === workspace).map((root) => root.root));
|
|
308
|
+
const holds = (own, identity) => {
|
|
309
|
+
const band = nodes.get(identity).band, root = rootOf.get(identity);
|
|
310
|
+
return band === 10 || band === 90 || (own.size > 0 ? own.has(root) : !declared.has(root));
|
|
311
|
+
};
|
|
312
|
+
const repository = () => {
|
|
313
|
+
const at = reader.resolveSeat('', read).seat;
|
|
314
|
+
return at !== undefined && nodes.get(at)?.discriminator === 'workspace' ? at : undefined;
|
|
315
|
+
};
|
|
316
|
+
return {
|
|
317
|
+
read,
|
|
318
|
+
nodes,
|
|
319
|
+
/** The admitted `@<word>` records the typed field references `identity` states at `field` resolve to. */
|
|
320
|
+
targets: (identity, field, word) => reader
|
|
321
|
+
.directedView(identity, read)
|
|
322
|
+
.filter((row) => row.kind === 'field-ref' &&
|
|
323
|
+
row.direction === 'out' &&
|
|
324
|
+
row.field === field &&
|
|
325
|
+
nodes.get(row.counterpart)?.discriminator === word)
|
|
326
|
+
.map((row) => row.counterpart),
|
|
327
|
+
/** IA-RUNTIME-REQUEST-INVALID unless `identity` is an admitted `@<word>` of the scope. */
|
|
328
|
+
admit: (identity, word) => {
|
|
329
|
+
if (nodes.get(identity)?.discriminator !== word)
|
|
330
|
+
invalid(`'${identity}' is not an admitted @${word} in this scope`);
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* Whether a record is in `workspace`'s closure, as position reads one: the floor and adopted bands, and the members
|
|
334
|
+
* of the workspace's own declared roots, or, while it declares none (or no workspace holds the read), of the roots
|
|
335
|
+
* no workspace declares. A record of another workspace's root is never in it.
|
|
336
|
+
*/
|
|
337
|
+
closure: (workspace) => {
|
|
338
|
+
const own = ownOf(workspace);
|
|
339
|
+
return (identity) => holds(own, identity);
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* The workspace position seats a record in (its workspaceOf): the record itself when it is a `@workspace`; else, of
|
|
343
|
+
* the repository's own `@workspace` and the one whose declared root holds the record's membership root, the first
|
|
344
|
+
* whose closure holds it; the repository's own for no admitted record.
|
|
345
|
+
*/
|
|
346
|
+
workspaceOf: (identity) => {
|
|
347
|
+
if (identity === undefined || !nodes.has(identity))
|
|
348
|
+
return repository();
|
|
349
|
+
if (nodes.get(identity).discriminator === 'workspace')
|
|
350
|
+
return identity;
|
|
351
|
+
const root = rootOf.get(identity);
|
|
352
|
+
if (root === undefined)
|
|
353
|
+
return repository();
|
|
354
|
+
const holder = roots.find((candidate) => reaches(candidate.root, root))?.workspace;
|
|
355
|
+
return [repository(), holder].find((at) => at !== undefined && holds(ownOf(at), identity));
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* C1: the authored `@mandate` records that govern through the scope token `within`, by identity (each of band 100, so
|
|
361
|
+
* in C1's band-then-identity order). Only the closure of `workspace` is read, or without it that of the workspace
|
|
362
|
+
* position seats `path` in, or with neither the repository's own `@workspace`'s: another workspace's mandate never
|
|
363
|
+
* governs here. Only that closure is position's: for a path alone, the mandates that govern are those that claim it,
|
|
364
|
+
* not every mandate scoped to the seated workspace that position's location-seat governance also lists. With `workspace` or `path`, a mandate governs when its
|
|
365
|
+
* `authority.scope` names the workspace or its `authority.covers` selects the path (db D02b claimants), either one
|
|
366
|
+
* sufficing. One that states neither key with a value (a declared empty list locates nothing) is located by its participant alone and governs wherever that participant
|
|
367
|
+
* acts: with `actor`, when its participant is the actor; without one, whenever it names a participant. With neither
|
|
368
|
+
* `workspace` nor `path`, every one governs. `actor` drops no mandate that governs the workspace or path: each states
|
|
369
|
+
* whether it `binds` the actor, so profileRefusal judges the actor's own and those naming no participant, and refuses an
|
|
370
|
+
* actor that none of them binds rather than read the location as ungoverned. An `actor` or `workspace` that is not an
|
|
371
|
+
* admitted record of its word, or a governing mandate whose authority mandateAuthorityOf refuses, is
|
|
372
|
+
* IA-RUNTIME-REQUEST-INVALID; a mandate that does not govern is never read, however it is authored.
|
|
373
|
+
*/
|
|
374
|
+
export function governingMandates(reader, within, options = {}) {
|
|
375
|
+
const { read, nodes, targets, admit, closure, workspaceOf } = admitted(reader, within), { actor, path, workspace, fold } = options;
|
|
376
|
+
if (actor !== undefined)
|
|
377
|
+
admit(actor, 'agent');
|
|
378
|
+
if (workspace !== undefined)
|
|
379
|
+
admit(workspace, 'workspace');
|
|
380
|
+
if (fold !== undefined && typeof fold !== 'function')
|
|
381
|
+
invalid('fold must be a function');
|
|
382
|
+
// Without `workspace`, the closure is the one position reads for the path's location seat, or for no seat.
|
|
383
|
+
const resolution = path === undefined ? undefined : reader.resolveSeat(path, read), inside = closure(workspace ?? workspaceOf(resolution?.seat)), located = workspace !== undefined || path !== undefined;
|
|
384
|
+
const claiming = new Set(resolution?.claimants.map((claimant) => claimant.identity));
|
|
385
|
+
// With `fold`, a claim is read from the record as db's claimant index reads it (each text value of `authority.covers`)
|
|
386
|
+
// and matched on both sides folded.
|
|
387
|
+
const claims = (node) => fold === undefined
|
|
388
|
+
? claiming.has(node.identity)
|
|
389
|
+
: path !== undefined &&
|
|
390
|
+
coversOf(node).some((selection) => selects(fold(selection), fold(resolution?.path ?? path)));
|
|
391
|
+
const governs = (node) => {
|
|
392
|
+
if (!located)
|
|
393
|
+
return true;
|
|
394
|
+
if (statesValue(node, 'authority', 'scope') || statesValue(node, 'authority', 'covers'))
|
|
395
|
+
return ((workspace !== undefined && targets(node.identity, 'authority.scope', 'workspace').includes(workspace)) ||
|
|
396
|
+
claims(node));
|
|
397
|
+
return actor === undefined
|
|
398
|
+
? states(node, 'authority', 'participant')
|
|
399
|
+
: targets(node.identity, 'authority.participant', 'agent')[0] === actor;
|
|
400
|
+
};
|
|
401
|
+
return freeze([...nodes.values()]
|
|
402
|
+
.filter((node) => node.discriminator === 'mandate' && node.band === 100 && inside(node.identity) && governs(node))
|
|
403
|
+
.sort((a, b) => order(a.identity, b.identity))
|
|
404
|
+
.map((node) => {
|
|
405
|
+
const authority = mandateAuthorityOf(node), agent = targets(node.identity, 'authority.participant', 'agent')[0], scoped = targets(node.identity, 'authority.scope', 'workspace');
|
|
406
|
+
const scope = (authority.scope ?? []).map((name) => scoped.find((identity) => nodes.get(identity).name === name.toLowerCase()) ?? `@workspace ${name}`);
|
|
407
|
+
return {
|
|
408
|
+
identity: node.identity,
|
|
409
|
+
band: 100,
|
|
410
|
+
...(authority.participant === undefined ? {} : { participant: agent ?? `@agent ${authority.participant}` }),
|
|
411
|
+
...(actor === undefined ? {} : { binds: authority.participant === undefined || agent === actor }),
|
|
412
|
+
...(authority.moves === undefined ? {} : { moves: authority.moves }),
|
|
413
|
+
scope: [...new Set(scope)],
|
|
414
|
+
...(states(node, 'authority', 'covers') ? { covers: authority.covers ?? [] } : {}),
|
|
415
|
+
...(states(node, 'authority', 'excluded-words') ? { excludedWords: authority.excludedWords ?? [] } : {}),
|
|
416
|
+
};
|
|
417
|
+
}));
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* The workspace position seats a workspace-relative `path` in (C1's closure for a path): the workspace whose declared root
|
|
421
|
+
* holds the seat's records, else the repository's own `@workspace`; undefined when no admitted `@workspace` holds it.
|
|
422
|
+
* Reads through the scope token `within`, as `governingMandates` does.
|
|
423
|
+
*/
|
|
424
|
+
export function seatedWorkspace(reader, within, path) {
|
|
425
|
+
const { read, workspaceOf } = admitted(reader, within);
|
|
426
|
+
return workspaceOf(reader.resolveSeat(path, read).seat);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* OD1: the actor a mandate-gated command acts as at `workspace` when none is named. It is the `@agent` the workspace's
|
|
430
|
+
* `composition.steward` resolves to (ia init names its participant there), when that is an authored (band 100) record;
|
|
431
|
+
* failing that, the workspace's one participant, an authored `@agent` that an authored mandate of its closure scoped to
|
|
432
|
+
* it names. An installed steward names no actor, as if none were stated (review C2-R1). With several participants there
|
|
433
|
+
* is none, and the refusal names the choice; with none, there is no actor and no refusal, and the reason says whether
|
|
434
|
+
* the workspace states no steward, one that resolves to no admitted `@agent`, or one that is no authored `@agent`. A
|
|
435
|
+
* `workspace` that is not an admitted `@workspace` of the scope is IA-RUNTIME-REQUEST-INVALID.
|
|
436
|
+
*/
|
|
437
|
+
export function defaultActor(reader, within, workspace) {
|
|
438
|
+
const { nodes, targets, admit, closure } = admitted(reader, within);
|
|
439
|
+
admit(workspace, 'workspace');
|
|
440
|
+
const inside = closure(workspace);
|
|
441
|
+
const participants = [
|
|
442
|
+
...new Set([...nodes.values()].flatMap((node) => {
|
|
443
|
+
if (node.discriminator !== 'mandate' || node.band !== 100 || !inside(node.identity))
|
|
444
|
+
return [];
|
|
445
|
+
if (!targets(node.identity, 'authority.scope', 'workspace').includes(workspace))
|
|
446
|
+
return [];
|
|
447
|
+
const agent = targets(node.identity, 'authority.participant', 'agent')[0];
|
|
448
|
+
return agent !== undefined && nodes.get(agent).band === 100 ? [agent] : [];
|
|
449
|
+
})),
|
|
450
|
+
].sort(order);
|
|
451
|
+
const named = targets(workspace, 'composition.steward', 'agent')[0], steward = named !== undefined && nodes.get(named).band === 100 ? named : undefined, actors = [...new Set([...participants, ...(steward === undefined ? [] : [steward])])].sort(order);
|
|
452
|
+
if (steward !== undefined)
|
|
453
|
+
return freeze({ actor: steward, by: 'steward', participants, actors });
|
|
454
|
+
if (participants.length === 1)
|
|
455
|
+
return freeze({ actor: participants[0], by: 'participant', participants, actors });
|
|
456
|
+
const unnamed = named !== undefined
|
|
457
|
+
? `${workspace}'s composition.steward ${named} is no authored @agent`
|
|
458
|
+
: states(nodes.get(workspace), 'composition', 'steward')
|
|
459
|
+
? `${workspace}'s composition.steward resolves to no admitted @agent`
|
|
460
|
+
: `${workspace} states no composition.steward`;
|
|
461
|
+
if (participants.length === 0)
|
|
462
|
+
return freeze({
|
|
463
|
+
participants,
|
|
464
|
+
actors,
|
|
465
|
+
reason: `${unnamed}, and no authored @mandate scoped to it names an authored @agent as its participant`,
|
|
466
|
+
});
|
|
467
|
+
const reason = `${unnamed}, and its authored mandates name ${participants.length} participants (${participants.join(', ')}): name one of them as its composition.steward`;
|
|
468
|
+
return freeze({
|
|
469
|
+
participants,
|
|
470
|
+
actors,
|
|
471
|
+
reason,
|
|
472
|
+
refusal: { code: 'IA-RUNTIME-MANDATE-ACTOR', message: reason, next: governance(workspace) },
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* C1: the refusal profile the governing `mandates` give `mode` and its target `words`. A mandate whose `binds` is false
|
|
477
|
+
* governs for another participant and is left out; when every one is, no mandate here binds the actor, and the mode is
|
|
478
|
+
* IA-RUNTIME-MANDATE-ACTOR, naming whom each binds. The rest are never pooled across participants: when they name more
|
|
479
|
+
* than one, as they may without an actor, the mode is IA-RUNTIME-MANDATE-ACTOR too, naming each. A named participant
|
|
480
|
+
* without an established binding (`binds` absent) also refuses every mode, even when it is the only one. Then the move is
|
|
481
|
+
* judged: the mode is allowed when any mandate grants its move, by listing it or by declaring no moves, else
|
|
482
|
+
* IA-RUNTIME-MANDATE-MOVE. Then, only when words are given, a word any mandate excludes is IA-RUNTIME-MANDATE-WORD.
|
|
483
|
+
* Each refusal's `next` is the governance position of the first mandate it names (design §11), a read, which a command
|
|
484
|
+
* gated on this profile must leave ungated so that the refusal can be followed (an actor no mandate binds is refused
|
|
485
|
+
* every mode, read included). With no governing mandate nothing is restricted and the verdict holds a notice instead.
|
|
486
|
+
* An unknown mode, or a declared empty move list on any mandate, is IA-RUNTIME-REQUEST-INVALID.
|
|
487
|
+
*/
|
|
488
|
+
export function profileRefusal(mandates, mode, words = []) {
|
|
489
|
+
if (!isMode(mode))
|
|
490
|
+
invalid(`Mode must be one of ${MODES.join(', ')}`);
|
|
491
|
+
if (mandates.length === 0)
|
|
492
|
+
return freeze({ notice: UNGOVERNED });
|
|
493
|
+
const refuse = (code, message, seat) => freeze({ refusal: { code, message, next: governance(seat) } });
|
|
494
|
+
const all = mandates.map((mandate) => 'sections' in mandate ? mandateAuthorityOf(mandate) : mandate);
|
|
495
|
+
// Each mandate's own move judgement, words aside; every one is judged, so a malformed move list is never skipped.
|
|
496
|
+
const judged = all.map((authority) => mandateRefusal(authority, mode));
|
|
497
|
+
const whom = (authority) => authority.participant === undefined ? authority.identity : `${authority.identity} binds ${authority.participant}`;
|
|
498
|
+
// A mandate that binds another participant grants and excludes nothing for the actor (plan amendment C10).
|
|
499
|
+
const binding = all.flatMap((authority, index) => authority.binds === false ? [] : [{ authority, refusal: judged[index] }]);
|
|
500
|
+
if (binding.length === 0)
|
|
501
|
+
return refuse('IA-RUNTIME-MANDATE-ACTOR', `no mandate that governs here binds the acting @agent: ${all.map(whom).join('; ')}`, all[0].identity);
|
|
502
|
+
// Nor are two participants' mandates ever pooled: without an actor to say whom each binds, the choice is open (OD1).
|
|
503
|
+
const named = binding.flatMap(({ authority }) => (authority.participant === undefined ? [] : [authority]));
|
|
504
|
+
const participants = new Set(named.map((authority) => authority.participant));
|
|
505
|
+
if (participants.size > 1)
|
|
506
|
+
return refuse('IA-RUNTIME-MANDATE-ACTOR', `the mandates that govern here bind ${participants.size} participants and name no acting @agent: ${named.map(whom).join('; ')}`, named[0].identity);
|
|
507
|
+
const unbound = named.filter((authority) => authority.binds === undefined);
|
|
508
|
+
if (unbound.length > 0)
|
|
509
|
+
return refuse('IA-RUNTIME-MANDATE-ACTOR', `a governing mandate names a participant but no acting @agent was established: ${unbound.map(whom).join('; ')}`, unbound[0].identity);
|
|
510
|
+
if (binding.every(({ refusal }) => refusal !== undefined))
|
|
511
|
+
return refuse('IA-RUNTIME-MANDATE-MOVE', `${binding.map(({ authority }) => `${authority.identity} allows ${authority.moves.join(', ')}`).join('; ')}; ${mode} needs ${MODE_MOVES[mode]}`, binding[0].authority.identity);
|
|
512
|
+
const excluding = binding.flatMap(({ authority }) => {
|
|
513
|
+
const excluded = words.filter((word) => authority.excludedWords?.includes(word));
|
|
514
|
+
return excluded.length === 0 ? [] : [{ identity: authority.identity, excluded }];
|
|
515
|
+
});
|
|
516
|
+
if (excluding.length > 0)
|
|
517
|
+
return refuse('IA-RUNTIME-MANDATE-WORD', excluding.map(({ identity, excluded }) => `${identity} excludes ${excluded.join(', ')}`).join('; '), excluding[0].identity);
|
|
518
|
+
return freeze({});
|
|
519
|
+
}
|
|
112
520
|
//# sourceMappingURL=mandate-modes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mandate-modes.js","sourceRoot":"","sources":["../src/mandate-modes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D;;;;;;;;;GASG;AAEH,8CAA8C;AAC9C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC;AAGlC,qDAAqD;AACrD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,cAAc;IACxB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,SAAS,EAAE,YAAY;CAC0B,CAAC,CAAC;AAErD,gCAAgC;AAChC,MAAM,CAAC,MAAM,KAAK,GAAoB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAW,CAAC,CAAC;AACvF,MAAM,UAAU,MAAM,CAAC,KAAc;IACnC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACvE,CAAC;AAGD,oFAAoF;AACpF,MAAM,CAAC,MAAM,aAAa,GAA2B,MAAM,CAAC,MAAM,CAChE,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAuB,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC,CAC5F,CAAC;AAwBF,MAAM,OAAO,GAAG,CAAC,OAAe,EAAS,EAAE;IACzC,MAAM,IAAI,YAAY,CAAC,4BAA4B,EAAE,OAAO,CAAC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