@lucern/contracts 1.0.56 → 1.0.58
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/CHANGELOG.md +4 -1
- package/LICENSE +13 -0
- package/dist/component-boundary.contract.js +1 -0
- package/dist/generated/convexSchemas.d.ts +100 -0
- package/dist/generated/convexSchemas.js +2 -1
- package/dist/generated/schema-manifest.json +27 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tier-expectations.json +6 -3
- package/dist/index.js +39 -0
- package/dist/manifests/__tests__/sc3-operation-manifest-census-derivability.test.d.ts +1 -0
- package/dist/manifests/operation-manifest.d.ts +650 -0
- package/dist/manifests/operation-manifest.js +306 -0
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.js +31 -0
- package/dist/schemas/manifest.d.ts +40 -0
- package/dist/schemas/manifest.js +31 -0
- package/dist/schemas/tables/kernel/events.d.ts +22 -0
- package/dist/schemas/tables/kernel/events.js +31 -1
- package/dist/schemas.values.js +31 -0
- package/dist/tenant-bootstrap-seed.contract.d.ts +12 -0
- package/dist/tenant-bootstrap-seed.contract.js +7 -0
- package/package.json +8 -9
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const OPERATION_VERBS: readonly ["get", "list", "search", "traverse", "compile", "diff", "replay", "create", "refine", "append", "fork", "transition", "evaluate", "graduate", "declare", "bind", "grant"];
|
|
3
|
+
export type OperationVerb = (typeof OPERATION_VERBS)[number];
|
|
4
|
+
export declare const OPERATION_KINDS: readonly ["node", "edge", "container", "slice", "record", "policy", "unresolved"];
|
|
5
|
+
export type OperationKind = (typeof OPERATION_KINDS)[number];
|
|
6
|
+
export declare const OPERATION_AXES: readonly ["scope", "horizon", "lens", "policy", "strategy", "carrier"];
|
|
7
|
+
export type OperationAxis = (typeof OPERATION_AXES)[number];
|
|
8
|
+
export declare const PROJECTION_CLASSES: readonly ["canonical_public", "internal_backing", "extension", "compat", "client_local"];
|
|
9
|
+
export type ProjectionClass = (typeof PROJECTION_CLASSES)[number];
|
|
10
|
+
export declare const SURFACE_EXPOSURE: readonly ["public", "internal", "absent"];
|
|
11
|
+
export type SurfaceExposure = (typeof SURFACE_EXPOSURE)[number];
|
|
12
|
+
export declare const OPERATION_SOURCES: readonly ["registry", "kernelApi", "mcp_extension", "cli_bespoke"];
|
|
13
|
+
export type OperationSource = (typeof OPERATION_SOURCES)[number];
|
|
14
|
+
export declare const operationRowSchema: z.ZodObject<{
|
|
15
|
+
/** Canonical operation identity. Snake_case for graph operations; dotted
|
|
16
|
+
* `domain.method` for kernelApi host bindings; `domain subcommand` for CLI
|
|
17
|
+
* bespoke handlers. Unique across the manifest. */
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
/** SC.2 verb. */
|
|
20
|
+
verb: z.ZodEnum<["get", "list", "search", "traverse", "compile", "diff", "replay", "create", "refine", "append", "fork", "transition", "evaluate", "graduate", "declare", "bind", "grant"]>;
|
|
21
|
+
/** SC.2 target: the kind, and an optional type that narrows it. */
|
|
22
|
+
target: z.ZodObject<{
|
|
23
|
+
kind: z.ZodEnum<["node", "edge", "container", "slice", "record", "policy", "unresolved"]>;
|
|
24
|
+
type: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
27
|
+
type?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
30
|
+
type?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
/** SC.2 axes this operation accepts. */
|
|
33
|
+
axes: z.ZodReadonly<z.ZodArray<z.ZodEnum<["scope", "horizon", "lens", "policy", "strategy", "carrier"]>, "many">>;
|
|
34
|
+
/** Projection class (design doc): where in the surface taxonomy this row
|
|
35
|
+
* lives. `internal_backing` is a class, not a second language. */
|
|
36
|
+
projection: z.ZodObject<{
|
|
37
|
+
class: z.ZodEnum<["canonical_public", "internal_backing", "extension", "compat", "client_local"]>;
|
|
38
|
+
/** Per-surface exposure. `kernelApi` is present so the shadow surface is
|
|
39
|
+
* expressible; the four public surfaces mirror the registry map. */
|
|
40
|
+
surfaces: z.ZodObject<{
|
|
41
|
+
sdk: z.ZodEnum<["public", "internal", "absent"]>;
|
|
42
|
+
rest: z.ZodEnum<["public", "internal", "absent"]>;
|
|
43
|
+
mcp: z.ZodEnum<["public", "internal", "absent"]>;
|
|
44
|
+
cli: z.ZodEnum<["public", "internal", "absent"]>;
|
|
45
|
+
host: z.ZodEnum<["public", "internal", "absent"]>;
|
|
46
|
+
kernelApi: z.ZodEnum<["public", "internal", "absent"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
host: "internal" | "public" | "absent";
|
|
49
|
+
rest: "internal" | "public" | "absent";
|
|
50
|
+
mcp: "internal" | "public" | "absent";
|
|
51
|
+
sdk: "internal" | "public" | "absent";
|
|
52
|
+
cli: "internal" | "public" | "absent";
|
|
53
|
+
kernelApi: "internal" | "public" | "absent";
|
|
54
|
+
}, {
|
|
55
|
+
host: "internal" | "public" | "absent";
|
|
56
|
+
rest: "internal" | "public" | "absent";
|
|
57
|
+
mcp: "internal" | "public" | "absent";
|
|
58
|
+
sdk: "internal" | "public" | "absent";
|
|
59
|
+
cli: "internal" | "public" | "absent";
|
|
60
|
+
kernelApi: "internal" | "public" | "absent";
|
|
61
|
+
}>;
|
|
62
|
+
/** Compat rows carry an alias + exit-criteria doc pointer. */
|
|
63
|
+
compat: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
aliasOf: z.ZodString;
|
|
65
|
+
exitCriteria: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
aliasOf: string;
|
|
68
|
+
exitCriteria: string;
|
|
69
|
+
}, {
|
|
70
|
+
aliasOf: string;
|
|
71
|
+
exitCriteria: string;
|
|
72
|
+
}>>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
75
|
+
surfaces: {
|
|
76
|
+
host: "internal" | "public" | "absent";
|
|
77
|
+
rest: "internal" | "public" | "absent";
|
|
78
|
+
mcp: "internal" | "public" | "absent";
|
|
79
|
+
sdk: "internal" | "public" | "absent";
|
|
80
|
+
cli: "internal" | "public" | "absent";
|
|
81
|
+
kernelApi: "internal" | "public" | "absent";
|
|
82
|
+
};
|
|
83
|
+
compat?: {
|
|
84
|
+
aliasOf: string;
|
|
85
|
+
exitCriteria: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
89
|
+
surfaces: {
|
|
90
|
+
host: "internal" | "public" | "absent";
|
|
91
|
+
rest: "internal" | "public" | "absent";
|
|
92
|
+
mcp: "internal" | "public" | "absent";
|
|
93
|
+
sdk: "internal" | "public" | "absent";
|
|
94
|
+
cli: "internal" | "public" | "absent";
|
|
95
|
+
kernelApi: "internal" | "public" | "absent";
|
|
96
|
+
};
|
|
97
|
+
compat?: {
|
|
98
|
+
aliasOf: string;
|
|
99
|
+
exitCriteria: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
/** Where this row was expressed from (census population). */
|
|
103
|
+
source: z.ZodEnum<["registry", "kernelApi", "mcp_extension", "cli_bespoke"]>;
|
|
104
|
+
/** Concrete source binding: the code location this row projects. For registry
|
|
105
|
+
* rows, the registry entry name; for kernelApi rows, the `api.*` ref path and
|
|
106
|
+
* its `components.lucern.*` component path; for extension/bespoke rows, the
|
|
107
|
+
* wiring symbol / command path. */
|
|
108
|
+
binding: z.ZodObject<{
|
|
109
|
+
/** The primary source identifier (registry name, api ref path, tool name,
|
|
110
|
+
* or CLI command path). */
|
|
111
|
+
ref: z.ZodString;
|
|
112
|
+
/** kernelApi component path (`components.lucern.*`) when source=kernelApi. */
|
|
113
|
+
componentPath: z.ZodOptional<z.ZodString>;
|
|
114
|
+
/** For extension/bespoke rows that back a registry op, the registry op name
|
|
115
|
+
* they are a projection of (so census facts about registry ops are
|
|
116
|
+
* expressed on the row, not double-counted as phantom operations). */
|
|
117
|
+
backsRegistryOp: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
ref: string;
|
|
120
|
+
componentPath?: string | undefined;
|
|
121
|
+
backsRegistryOp?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
ref: string;
|
|
124
|
+
componentPath?: string | undefined;
|
|
125
|
+
backsRegistryOp?: string | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
/** Lifecycle status. `active` for served operations; `compat` for legacy
|
|
128
|
+
* aliases awaiting deletion criteria. */
|
|
129
|
+
status: z.ZodEnum<["active", "compat"]>;
|
|
130
|
+
/** M2-derivation pointers, named-but-null in M1 (see file header). */
|
|
131
|
+
derivation: z.ZodObject<{
|
|
132
|
+
/** Arg/returns schema derived in M2. Null in M1. */
|
|
133
|
+
schema: z.ZodNull;
|
|
134
|
+
/** Legality-matrix row derived in M2. Null in M1. */
|
|
135
|
+
legality: z.ZodNull;
|
|
136
|
+
/** Receipt shape derived in M2. Null in M1. */
|
|
137
|
+
receipt: z.ZodNull;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
schema: null;
|
|
140
|
+
receipt: null;
|
|
141
|
+
legality: null;
|
|
142
|
+
}, {
|
|
143
|
+
schema: null;
|
|
144
|
+
receipt: null;
|
|
145
|
+
legality: null;
|
|
146
|
+
}>;
|
|
147
|
+
/** Human-readable provenance from the census/registry. */
|
|
148
|
+
rationale: z.ZodString;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
name: string;
|
|
151
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
152
|
+
target: {
|
|
153
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
154
|
+
type?: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
status: "compat" | "active";
|
|
157
|
+
projection: {
|
|
158
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
159
|
+
surfaces: {
|
|
160
|
+
host: "internal" | "public" | "absent";
|
|
161
|
+
rest: "internal" | "public" | "absent";
|
|
162
|
+
mcp: "internal" | "public" | "absent";
|
|
163
|
+
sdk: "internal" | "public" | "absent";
|
|
164
|
+
cli: "internal" | "public" | "absent";
|
|
165
|
+
kernelApi: "internal" | "public" | "absent";
|
|
166
|
+
};
|
|
167
|
+
compat?: {
|
|
168
|
+
aliasOf: string;
|
|
169
|
+
exitCriteria: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
};
|
|
172
|
+
rationale: string;
|
|
173
|
+
derivation: {
|
|
174
|
+
schema: null;
|
|
175
|
+
receipt: null;
|
|
176
|
+
legality: null;
|
|
177
|
+
};
|
|
178
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
179
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
180
|
+
binding: {
|
|
181
|
+
ref: string;
|
|
182
|
+
componentPath?: string | undefined;
|
|
183
|
+
backsRegistryOp?: string | undefined;
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
name: string;
|
|
187
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
188
|
+
target: {
|
|
189
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
190
|
+
type?: string | undefined;
|
|
191
|
+
};
|
|
192
|
+
status: "compat" | "active";
|
|
193
|
+
projection: {
|
|
194
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
195
|
+
surfaces: {
|
|
196
|
+
host: "internal" | "public" | "absent";
|
|
197
|
+
rest: "internal" | "public" | "absent";
|
|
198
|
+
mcp: "internal" | "public" | "absent";
|
|
199
|
+
sdk: "internal" | "public" | "absent";
|
|
200
|
+
cli: "internal" | "public" | "absent";
|
|
201
|
+
kernelApi: "internal" | "public" | "absent";
|
|
202
|
+
};
|
|
203
|
+
compat?: {
|
|
204
|
+
aliasOf: string;
|
|
205
|
+
exitCriteria: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
};
|
|
208
|
+
rationale: string;
|
|
209
|
+
derivation: {
|
|
210
|
+
schema: null;
|
|
211
|
+
receipt: null;
|
|
212
|
+
legality: null;
|
|
213
|
+
};
|
|
214
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
215
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
216
|
+
binding: {
|
|
217
|
+
ref: string;
|
|
218
|
+
componentPath?: string | undefined;
|
|
219
|
+
backsRegistryOp?: string | undefined;
|
|
220
|
+
};
|
|
221
|
+
}>;
|
|
222
|
+
export type OperationRow = z.infer<typeof operationRowSchema>;
|
|
223
|
+
export declare const operationManifestSchema: z.ZodObject<{
|
|
224
|
+
schemaVersion: z.ZodLiteral<"operation_manifest.m1.v1">;
|
|
225
|
+
generatedAt: z.ZodString;
|
|
226
|
+
/** Census reconciliation block: the counts this manifest expresses, keyed by
|
|
227
|
+
* the SC.1 disposition dimensions, so the derivability test can assert them
|
|
228
|
+
* against the disposition doc and surface any point-in-time delta. */
|
|
229
|
+
census: z.ZodObject<{
|
|
230
|
+
total: z.ZodNumber;
|
|
231
|
+
bySource: z.ZodObject<{
|
|
232
|
+
registry: z.ZodNumber;
|
|
233
|
+
kernelApi: z.ZodNumber;
|
|
234
|
+
mcp_extension: z.ZodNumber;
|
|
235
|
+
cli_bespoke: z.ZodNumber;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
registry: number;
|
|
238
|
+
kernelApi: number;
|
|
239
|
+
mcp_extension: number;
|
|
240
|
+
cli_bespoke: number;
|
|
241
|
+
}, {
|
|
242
|
+
registry: number;
|
|
243
|
+
kernelApi: number;
|
|
244
|
+
mcp_extension: number;
|
|
245
|
+
cli_bespoke: number;
|
|
246
|
+
}>;
|
|
247
|
+
byProjectionClass: z.ZodObject<{
|
|
248
|
+
canonical_public: z.ZodNumber;
|
|
249
|
+
internal_backing: z.ZodNumber;
|
|
250
|
+
extension: z.ZodNumber;
|
|
251
|
+
compat: z.ZodNumber;
|
|
252
|
+
client_local: z.ZodNumber;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
compat: number;
|
|
255
|
+
canonical_public: number;
|
|
256
|
+
internal_backing: number;
|
|
257
|
+
extension: number;
|
|
258
|
+
client_local: number;
|
|
259
|
+
}, {
|
|
260
|
+
compat: number;
|
|
261
|
+
canonical_public: number;
|
|
262
|
+
internal_backing: number;
|
|
263
|
+
extension: number;
|
|
264
|
+
client_local: number;
|
|
265
|
+
}>;
|
|
266
|
+
registryBySurfaceClass: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
total: number;
|
|
269
|
+
bySource: {
|
|
270
|
+
registry: number;
|
|
271
|
+
kernelApi: number;
|
|
272
|
+
mcp_extension: number;
|
|
273
|
+
cli_bespoke: number;
|
|
274
|
+
};
|
|
275
|
+
byProjectionClass: {
|
|
276
|
+
compat: number;
|
|
277
|
+
canonical_public: number;
|
|
278
|
+
internal_backing: number;
|
|
279
|
+
extension: number;
|
|
280
|
+
client_local: number;
|
|
281
|
+
};
|
|
282
|
+
registryBySurfaceClass: Record<string, number>;
|
|
283
|
+
}, {
|
|
284
|
+
total: number;
|
|
285
|
+
bySource: {
|
|
286
|
+
registry: number;
|
|
287
|
+
kernelApi: number;
|
|
288
|
+
mcp_extension: number;
|
|
289
|
+
cli_bespoke: number;
|
|
290
|
+
};
|
|
291
|
+
byProjectionClass: {
|
|
292
|
+
compat: number;
|
|
293
|
+
canonical_public: number;
|
|
294
|
+
internal_backing: number;
|
|
295
|
+
extension: number;
|
|
296
|
+
client_local: number;
|
|
297
|
+
};
|
|
298
|
+
registryBySurfaceClass: Record<string, number>;
|
|
299
|
+
}>;
|
|
300
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
301
|
+
/** Canonical operation identity. Snake_case for graph operations; dotted
|
|
302
|
+
* `domain.method` for kernelApi host bindings; `domain subcommand` for CLI
|
|
303
|
+
* bespoke handlers. Unique across the manifest. */
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
/** SC.2 verb. */
|
|
306
|
+
verb: z.ZodEnum<["get", "list", "search", "traverse", "compile", "diff", "replay", "create", "refine", "append", "fork", "transition", "evaluate", "graduate", "declare", "bind", "grant"]>;
|
|
307
|
+
/** SC.2 target: the kind, and an optional type that narrows it. */
|
|
308
|
+
target: z.ZodObject<{
|
|
309
|
+
kind: z.ZodEnum<["node", "edge", "container", "slice", "record", "policy", "unresolved"]>;
|
|
310
|
+
type: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
313
|
+
type?: string | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
316
|
+
type?: string | undefined;
|
|
317
|
+
}>;
|
|
318
|
+
/** SC.2 axes this operation accepts. */
|
|
319
|
+
axes: z.ZodReadonly<z.ZodArray<z.ZodEnum<["scope", "horizon", "lens", "policy", "strategy", "carrier"]>, "many">>;
|
|
320
|
+
/** Projection class (design doc): where in the surface taxonomy this row
|
|
321
|
+
* lives. `internal_backing` is a class, not a second language. */
|
|
322
|
+
projection: z.ZodObject<{
|
|
323
|
+
class: z.ZodEnum<["canonical_public", "internal_backing", "extension", "compat", "client_local"]>;
|
|
324
|
+
/** Per-surface exposure. `kernelApi` is present so the shadow surface is
|
|
325
|
+
* expressible; the four public surfaces mirror the registry map. */
|
|
326
|
+
surfaces: z.ZodObject<{
|
|
327
|
+
sdk: z.ZodEnum<["public", "internal", "absent"]>;
|
|
328
|
+
rest: z.ZodEnum<["public", "internal", "absent"]>;
|
|
329
|
+
mcp: z.ZodEnum<["public", "internal", "absent"]>;
|
|
330
|
+
cli: z.ZodEnum<["public", "internal", "absent"]>;
|
|
331
|
+
host: z.ZodEnum<["public", "internal", "absent"]>;
|
|
332
|
+
kernelApi: z.ZodEnum<["public", "internal", "absent"]>;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
host: "internal" | "public" | "absent";
|
|
335
|
+
rest: "internal" | "public" | "absent";
|
|
336
|
+
mcp: "internal" | "public" | "absent";
|
|
337
|
+
sdk: "internal" | "public" | "absent";
|
|
338
|
+
cli: "internal" | "public" | "absent";
|
|
339
|
+
kernelApi: "internal" | "public" | "absent";
|
|
340
|
+
}, {
|
|
341
|
+
host: "internal" | "public" | "absent";
|
|
342
|
+
rest: "internal" | "public" | "absent";
|
|
343
|
+
mcp: "internal" | "public" | "absent";
|
|
344
|
+
sdk: "internal" | "public" | "absent";
|
|
345
|
+
cli: "internal" | "public" | "absent";
|
|
346
|
+
kernelApi: "internal" | "public" | "absent";
|
|
347
|
+
}>;
|
|
348
|
+
/** Compat rows carry an alias + exit-criteria doc pointer. */
|
|
349
|
+
compat: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
aliasOf: z.ZodString;
|
|
351
|
+
exitCriteria: z.ZodString;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
aliasOf: string;
|
|
354
|
+
exitCriteria: string;
|
|
355
|
+
}, {
|
|
356
|
+
aliasOf: string;
|
|
357
|
+
exitCriteria: string;
|
|
358
|
+
}>>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
361
|
+
surfaces: {
|
|
362
|
+
host: "internal" | "public" | "absent";
|
|
363
|
+
rest: "internal" | "public" | "absent";
|
|
364
|
+
mcp: "internal" | "public" | "absent";
|
|
365
|
+
sdk: "internal" | "public" | "absent";
|
|
366
|
+
cli: "internal" | "public" | "absent";
|
|
367
|
+
kernelApi: "internal" | "public" | "absent";
|
|
368
|
+
};
|
|
369
|
+
compat?: {
|
|
370
|
+
aliasOf: string;
|
|
371
|
+
exitCriteria: string;
|
|
372
|
+
} | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
375
|
+
surfaces: {
|
|
376
|
+
host: "internal" | "public" | "absent";
|
|
377
|
+
rest: "internal" | "public" | "absent";
|
|
378
|
+
mcp: "internal" | "public" | "absent";
|
|
379
|
+
sdk: "internal" | "public" | "absent";
|
|
380
|
+
cli: "internal" | "public" | "absent";
|
|
381
|
+
kernelApi: "internal" | "public" | "absent";
|
|
382
|
+
};
|
|
383
|
+
compat?: {
|
|
384
|
+
aliasOf: string;
|
|
385
|
+
exitCriteria: string;
|
|
386
|
+
} | undefined;
|
|
387
|
+
}>;
|
|
388
|
+
/** Where this row was expressed from (census population). */
|
|
389
|
+
source: z.ZodEnum<["registry", "kernelApi", "mcp_extension", "cli_bespoke"]>;
|
|
390
|
+
/** Concrete source binding: the code location this row projects. For registry
|
|
391
|
+
* rows, the registry entry name; for kernelApi rows, the `api.*` ref path and
|
|
392
|
+
* its `components.lucern.*` component path; for extension/bespoke rows, the
|
|
393
|
+
* wiring symbol / command path. */
|
|
394
|
+
binding: z.ZodObject<{
|
|
395
|
+
/** The primary source identifier (registry name, api ref path, tool name,
|
|
396
|
+
* or CLI command path). */
|
|
397
|
+
ref: z.ZodString;
|
|
398
|
+
/** kernelApi component path (`components.lucern.*`) when source=kernelApi. */
|
|
399
|
+
componentPath: z.ZodOptional<z.ZodString>;
|
|
400
|
+
/** For extension/bespoke rows that back a registry op, the registry op name
|
|
401
|
+
* they are a projection of (so census facts about registry ops are
|
|
402
|
+
* expressed on the row, not double-counted as phantom operations). */
|
|
403
|
+
backsRegistryOp: z.ZodOptional<z.ZodString>;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
ref: string;
|
|
406
|
+
componentPath?: string | undefined;
|
|
407
|
+
backsRegistryOp?: string | undefined;
|
|
408
|
+
}, {
|
|
409
|
+
ref: string;
|
|
410
|
+
componentPath?: string | undefined;
|
|
411
|
+
backsRegistryOp?: string | undefined;
|
|
412
|
+
}>;
|
|
413
|
+
/** Lifecycle status. `active` for served operations; `compat` for legacy
|
|
414
|
+
* aliases awaiting deletion criteria. */
|
|
415
|
+
status: z.ZodEnum<["active", "compat"]>;
|
|
416
|
+
/** M2-derivation pointers, named-but-null in M1 (see file header). */
|
|
417
|
+
derivation: z.ZodObject<{
|
|
418
|
+
/** Arg/returns schema derived in M2. Null in M1. */
|
|
419
|
+
schema: z.ZodNull;
|
|
420
|
+
/** Legality-matrix row derived in M2. Null in M1. */
|
|
421
|
+
legality: z.ZodNull;
|
|
422
|
+
/** Receipt shape derived in M2. Null in M1. */
|
|
423
|
+
receipt: z.ZodNull;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
schema: null;
|
|
426
|
+
receipt: null;
|
|
427
|
+
legality: null;
|
|
428
|
+
}, {
|
|
429
|
+
schema: null;
|
|
430
|
+
receipt: null;
|
|
431
|
+
legality: null;
|
|
432
|
+
}>;
|
|
433
|
+
/** Human-readable provenance from the census/registry. */
|
|
434
|
+
rationale: z.ZodString;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
name: string;
|
|
437
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
438
|
+
target: {
|
|
439
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
440
|
+
type?: string | undefined;
|
|
441
|
+
};
|
|
442
|
+
status: "compat" | "active";
|
|
443
|
+
projection: {
|
|
444
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
445
|
+
surfaces: {
|
|
446
|
+
host: "internal" | "public" | "absent";
|
|
447
|
+
rest: "internal" | "public" | "absent";
|
|
448
|
+
mcp: "internal" | "public" | "absent";
|
|
449
|
+
sdk: "internal" | "public" | "absent";
|
|
450
|
+
cli: "internal" | "public" | "absent";
|
|
451
|
+
kernelApi: "internal" | "public" | "absent";
|
|
452
|
+
};
|
|
453
|
+
compat?: {
|
|
454
|
+
aliasOf: string;
|
|
455
|
+
exitCriteria: string;
|
|
456
|
+
} | undefined;
|
|
457
|
+
};
|
|
458
|
+
rationale: string;
|
|
459
|
+
derivation: {
|
|
460
|
+
schema: null;
|
|
461
|
+
receipt: null;
|
|
462
|
+
legality: null;
|
|
463
|
+
};
|
|
464
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
465
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
466
|
+
binding: {
|
|
467
|
+
ref: string;
|
|
468
|
+
componentPath?: string | undefined;
|
|
469
|
+
backsRegistryOp?: string | undefined;
|
|
470
|
+
};
|
|
471
|
+
}, {
|
|
472
|
+
name: string;
|
|
473
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
474
|
+
target: {
|
|
475
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
476
|
+
type?: string | undefined;
|
|
477
|
+
};
|
|
478
|
+
status: "compat" | "active";
|
|
479
|
+
projection: {
|
|
480
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
481
|
+
surfaces: {
|
|
482
|
+
host: "internal" | "public" | "absent";
|
|
483
|
+
rest: "internal" | "public" | "absent";
|
|
484
|
+
mcp: "internal" | "public" | "absent";
|
|
485
|
+
sdk: "internal" | "public" | "absent";
|
|
486
|
+
cli: "internal" | "public" | "absent";
|
|
487
|
+
kernelApi: "internal" | "public" | "absent";
|
|
488
|
+
};
|
|
489
|
+
compat?: {
|
|
490
|
+
aliasOf: string;
|
|
491
|
+
exitCriteria: string;
|
|
492
|
+
} | undefined;
|
|
493
|
+
};
|
|
494
|
+
rationale: string;
|
|
495
|
+
derivation: {
|
|
496
|
+
schema: null;
|
|
497
|
+
receipt: null;
|
|
498
|
+
legality: null;
|
|
499
|
+
};
|
|
500
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
501
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
502
|
+
binding: {
|
|
503
|
+
ref: string;
|
|
504
|
+
componentPath?: string | undefined;
|
|
505
|
+
backsRegistryOp?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
}>, "many">;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
schemaVersion: "operation_manifest.m1.v1";
|
|
510
|
+
generatedAt: string;
|
|
511
|
+
operations: {
|
|
512
|
+
name: string;
|
|
513
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
514
|
+
target: {
|
|
515
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
516
|
+
type?: string | undefined;
|
|
517
|
+
};
|
|
518
|
+
status: "compat" | "active";
|
|
519
|
+
projection: {
|
|
520
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
521
|
+
surfaces: {
|
|
522
|
+
host: "internal" | "public" | "absent";
|
|
523
|
+
rest: "internal" | "public" | "absent";
|
|
524
|
+
mcp: "internal" | "public" | "absent";
|
|
525
|
+
sdk: "internal" | "public" | "absent";
|
|
526
|
+
cli: "internal" | "public" | "absent";
|
|
527
|
+
kernelApi: "internal" | "public" | "absent";
|
|
528
|
+
};
|
|
529
|
+
compat?: {
|
|
530
|
+
aliasOf: string;
|
|
531
|
+
exitCriteria: string;
|
|
532
|
+
} | undefined;
|
|
533
|
+
};
|
|
534
|
+
rationale: string;
|
|
535
|
+
derivation: {
|
|
536
|
+
schema: null;
|
|
537
|
+
receipt: null;
|
|
538
|
+
legality: null;
|
|
539
|
+
};
|
|
540
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
541
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
542
|
+
binding: {
|
|
543
|
+
ref: string;
|
|
544
|
+
componentPath?: string | undefined;
|
|
545
|
+
backsRegistryOp?: string | undefined;
|
|
546
|
+
};
|
|
547
|
+
}[];
|
|
548
|
+
census: {
|
|
549
|
+
total: number;
|
|
550
|
+
bySource: {
|
|
551
|
+
registry: number;
|
|
552
|
+
kernelApi: number;
|
|
553
|
+
mcp_extension: number;
|
|
554
|
+
cli_bespoke: number;
|
|
555
|
+
};
|
|
556
|
+
byProjectionClass: {
|
|
557
|
+
compat: number;
|
|
558
|
+
canonical_public: number;
|
|
559
|
+
internal_backing: number;
|
|
560
|
+
extension: number;
|
|
561
|
+
client_local: number;
|
|
562
|
+
};
|
|
563
|
+
registryBySurfaceClass: Record<string, number>;
|
|
564
|
+
};
|
|
565
|
+
}, {
|
|
566
|
+
schemaVersion: "operation_manifest.m1.v1";
|
|
567
|
+
generatedAt: string;
|
|
568
|
+
operations: {
|
|
569
|
+
name: string;
|
|
570
|
+
source: "registry" | "kernelApi" | "mcp_extension" | "cli_bespoke";
|
|
571
|
+
target: {
|
|
572
|
+
kind: "slice" | "record" | "container" | "edge" | "node" | "unresolved" | "policy";
|
|
573
|
+
type?: string | undefined;
|
|
574
|
+
};
|
|
575
|
+
status: "compat" | "active";
|
|
576
|
+
projection: {
|
|
577
|
+
class: "compat" | "canonical_public" | "internal_backing" | "extension" | "client_local";
|
|
578
|
+
surfaces: {
|
|
579
|
+
host: "internal" | "public" | "absent";
|
|
580
|
+
rest: "internal" | "public" | "absent";
|
|
581
|
+
mcp: "internal" | "public" | "absent";
|
|
582
|
+
sdk: "internal" | "public" | "absent";
|
|
583
|
+
cli: "internal" | "public" | "absent";
|
|
584
|
+
kernelApi: "internal" | "public" | "absent";
|
|
585
|
+
};
|
|
586
|
+
compat?: {
|
|
587
|
+
aliasOf: string;
|
|
588
|
+
exitCriteria: string;
|
|
589
|
+
} | undefined;
|
|
590
|
+
};
|
|
591
|
+
rationale: string;
|
|
592
|
+
derivation: {
|
|
593
|
+
schema: null;
|
|
594
|
+
receipt: null;
|
|
595
|
+
legality: null;
|
|
596
|
+
};
|
|
597
|
+
axes: readonly ("scope" | "policy" | "lens" | "strategy" | "horizon" | "carrier")[];
|
|
598
|
+
verb: "search" | "traverse" | "transition" | "append" | "refine" | "create" | "replay" | "get" | "compile" | "list" | "grant" | "fork" | "diff" | "bind" | "evaluate" | "graduate" | "declare";
|
|
599
|
+
binding: {
|
|
600
|
+
ref: string;
|
|
601
|
+
componentPath?: string | undefined;
|
|
602
|
+
backsRegistryOp?: string | undefined;
|
|
603
|
+
};
|
|
604
|
+
}[];
|
|
605
|
+
census: {
|
|
606
|
+
total: number;
|
|
607
|
+
bySource: {
|
|
608
|
+
registry: number;
|
|
609
|
+
kernelApi: number;
|
|
610
|
+
mcp_extension: number;
|
|
611
|
+
cli_bespoke: number;
|
|
612
|
+
};
|
|
613
|
+
byProjectionClass: {
|
|
614
|
+
compat: number;
|
|
615
|
+
canonical_public: number;
|
|
616
|
+
internal_backing: number;
|
|
617
|
+
extension: number;
|
|
618
|
+
client_local: number;
|
|
619
|
+
};
|
|
620
|
+
registryBySurfaceClass: Record<string, number>;
|
|
621
|
+
};
|
|
622
|
+
}>;
|
|
623
|
+
export type OperationManifest = z.infer<typeof operationManifestSchema>;
|
|
624
|
+
export declare const SC1_CENSUS_TARGETS: {
|
|
625
|
+
/** 190 function-registry contracts (surface-manifest.json). Exact. */
|
|
626
|
+
readonly registryContracts: 190;
|
|
627
|
+
/** Registry class split (161 canonical public + 25 internal + 4 compat). */
|
|
628
|
+
readonly registryCanonicalPublic: 161;
|
|
629
|
+
readonly registryPlatformInternal: 25;
|
|
630
|
+
readonly registryLegacyCompat: 4;
|
|
631
|
+
/** kernelApi allowlist refs. Census recorded 124 post-#1651; the live
|
|
632
|
+
* allowlist is the authority and the check tolerates a documented delta. */
|
|
633
|
+
readonly kernelApiRefsCensus: 124;
|
|
634
|
+
/** MCP extension wirings the server hand-registers beyond the generated
|
|
635
|
+
* build (census: 159 MCP tools − 144 generated = 15). Every extension tool
|
|
636
|
+
* is *also* a registry contract, so these are expressed as projection facts
|
|
637
|
+
* (mcp_extension source rows that `backsRegistryOp`), not new operations. */
|
|
638
|
+
readonly mcpExtensions: 15;
|
|
639
|
+
/** CLI bespoke handlers (census: 19). Gateway-hitting bespoke verbs +
|
|
640
|
+
* client-local tooling. Expressed as cli_bespoke rows; the gateway-hitting
|
|
641
|
+
* subset backs a registry op or is a promotion candidate. */
|
|
642
|
+
readonly cliBespoke: 19;
|
|
643
|
+
};
|
|
644
|
+
export declare const MCP_EXTENSION_WIRINGS: readonly ["generate_session_handoff", "begin_build_session", "register_session", "heartbeat_session", "end_session", "list_active_sessions", "send_agent_message", "broadcast_message", "get_agent_inbox", "claim_files", "create_epistemic_contract", "evaluate_contract", "get_contract_status", "evaluate_engineering_contract", "evaluate_research_contract"];
|
|
645
|
+
export declare const CLI_BESPOKE_HANDLERS: readonly {
|
|
646
|
+
command: string;
|
|
647
|
+
gatewayHitting: boolean;
|
|
648
|
+
backsRegistryOp: string | null;
|
|
649
|
+
promotionCandidate: boolean;
|
|
650
|
+
}[];
|