@fenglimg/fabric-shared 1.5.2 → 1.7.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/dist/index.d.ts CHANGED
@@ -1,22 +1,100 @@
1
1
  import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
2
- export { AgentsActivationTier, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry } from './types/index.js';
2
+ export { AgentsActivationTier, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, RuleDescription, RuleDescriptionIndexItem } from './types/index.js';
3
3
  export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages } from './i18n/index.js';
4
4
  import { z } from 'zod';
5
5
 
6
6
  declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
7
- declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting"];
7
+ declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
8
8
  declare const AGENTS_META_IDENTITY_SOURCES: readonly ["declared", "derived"];
9
9
  declare const agentsLayerSchema: z.ZodEnum<["L0", "L1", "L2"]>;
10
- declare const agentsTopologyTypeSchema: z.ZodEnum<["mirror", "cross-cutting"]>;
10
+ declare const agentsTopologyTypeSchema: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
11
11
  declare const agentsIdentitySourceSchema: z.ZodEnum<["declared", "derived"]>;
12
12
  type AgentsMetaNodeInput = Omit<AgentsMetaNode, "layer" | "topology_type"> & Partial<Pick<AgentsMetaNode, "layer" | "topology_type">>;
13
+ declare const ruleDescriptionSchema: z.ZodObject<{
14
+ summary: z.ZodString;
15
+ intent_clues: z.ZodArray<z.ZodString, "many">;
16
+ tech_stack: z.ZodArray<z.ZodString, "many">;
17
+ impact: z.ZodArray<z.ZodString, "many">;
18
+ must_read_if: z.ZodString;
19
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ }, "strict", z.ZodTypeAny, {
21
+ summary: string;
22
+ intent_clues: string[];
23
+ tech_stack: string[];
24
+ impact: string[];
25
+ must_read_if: string;
26
+ entities?: string[] | undefined;
27
+ }, {
28
+ summary: string;
29
+ intent_clues: string[];
30
+ tech_stack: string[];
31
+ impact: string[];
32
+ must_read_if: string;
33
+ entities?: string[] | undefined;
34
+ }>;
35
+ declare const ruleDescriptionIndexItemSchema: z.ZodObject<{
36
+ stable_id: z.ZodString;
37
+ level: z.ZodEnum<["L0", "L1", "L2"]>;
38
+ required: z.ZodBoolean;
39
+ selectable: z.ZodBoolean;
40
+ description: z.ZodObject<{
41
+ summary: z.ZodString;
42
+ intent_clues: z.ZodArray<z.ZodString, "many">;
43
+ tech_stack: z.ZodArray<z.ZodString, "many">;
44
+ impact: z.ZodArray<z.ZodString, "many">;
45
+ must_read_if: z.ZodString;
46
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ }, "strict", z.ZodTypeAny, {
48
+ summary: string;
49
+ intent_clues: string[];
50
+ tech_stack: string[];
51
+ impact: string[];
52
+ must_read_if: string;
53
+ entities?: string[] | undefined;
54
+ }, {
55
+ summary: string;
56
+ intent_clues: string[];
57
+ tech_stack: string[];
58
+ impact: string[];
59
+ must_read_if: string;
60
+ entities?: string[] | undefined;
61
+ }>;
62
+ }, "strict", z.ZodTypeAny, {
63
+ description: {
64
+ summary: string;
65
+ intent_clues: string[];
66
+ tech_stack: string[];
67
+ impact: string[];
68
+ must_read_if: string;
69
+ entities?: string[] | undefined;
70
+ };
71
+ level: "L0" | "L1" | "L2";
72
+ stable_id: string;
73
+ required: boolean;
74
+ selectable: boolean;
75
+ }, {
76
+ description: {
77
+ summary: string;
78
+ intent_clues: string[];
79
+ tech_stack: string[];
80
+ impact: string[];
81
+ must_read_if: string;
82
+ entities?: string[] | undefined;
83
+ };
84
+ level: "L0" | "L1" | "L2";
85
+ stable_id: string;
86
+ required: boolean;
87
+ selectable: boolean;
88
+ }>;
13
89
  declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
14
90
  file: z.ZodString;
91
+ content_ref: z.ZodOptional<z.ZodString>;
15
92
  scope_glob: z.ZodString;
16
93
  deps: z.ZodArray<z.ZodString, "many">;
17
94
  priority: z.ZodEnum<["high", "medium", "low"]>;
95
+ level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
18
96
  layer: z.ZodEnum<["L0", "L1", "L2"]>;
19
- topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
97
+ topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
20
98
  hash: z.ZodString;
21
99
  stable_id: z.ZodOptional<z.ZodString>;
22
100
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
@@ -30,58 +108,116 @@ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
30
108
  tier: "always" | "path" | "description";
31
109
  description?: string | undefined;
32
110
  }>>;
111
+ description: z.ZodOptional<z.ZodObject<{
112
+ summary: z.ZodString;
113
+ intent_clues: z.ZodArray<z.ZodString, "many">;
114
+ tech_stack: z.ZodArray<z.ZodString, "many">;
115
+ impact: z.ZodArray<z.ZodString, "many">;
116
+ must_read_if: z.ZodString;
117
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ summary: string;
120
+ intent_clues: string[];
121
+ tech_stack: string[];
122
+ impact: string[];
123
+ must_read_if: string;
124
+ entities?: string[] | undefined;
125
+ }, {
126
+ summary: string;
127
+ intent_clues: string[];
128
+ tech_stack: string[];
129
+ impact: string[];
130
+ must_read_if: string;
131
+ entities?: string[] | undefined;
132
+ }>>;
133
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
134
  }, "strip", z.ZodTypeAny, {
34
135
  file: string;
35
136
  priority: "high" | "medium" | "low";
36
137
  hash: string;
37
138
  layer: "L0" | "L1" | "L2";
38
- topology_type: "mirror" | "cross-cutting";
139
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
39
140
  scope_glob: string;
40
141
  deps: string[];
142
+ description?: {
143
+ summary: string;
144
+ intent_clues: string[];
145
+ tech_stack: string[];
146
+ impact: string[];
147
+ must_read_if: string;
148
+ entities?: string[] | undefined;
149
+ } | undefined;
150
+ content_ref?: string | undefined;
151
+ level?: "L0" | "L1" | "L2" | undefined;
41
152
  stable_id?: string | undefined;
42
153
  identity_source?: "declared" | "derived" | undefined;
43
154
  activation?: {
44
155
  tier: "always" | "path" | "description";
45
156
  description?: string | undefined;
46
157
  } | undefined;
158
+ sections?: string[] | undefined;
47
159
  }, {
48
160
  file: string;
49
161
  priority: "high" | "medium" | "low";
50
162
  hash: string;
51
163
  layer: "L0" | "L1" | "L2";
52
- topology_type: "mirror" | "cross-cutting";
164
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
53
165
  scope_glob: string;
54
166
  deps: string[];
167
+ description?: {
168
+ summary: string;
169
+ intent_clues: string[];
170
+ tech_stack: string[];
171
+ impact: string[];
172
+ must_read_if: string;
173
+ entities?: string[] | undefined;
174
+ } | undefined;
175
+ content_ref?: string | undefined;
176
+ level?: "L0" | "L1" | "L2" | undefined;
55
177
  stable_id?: string | undefined;
56
178
  identity_source?: "declared" | "derived" | undefined;
57
179
  activation?: {
58
180
  tier: "always" | "path" | "description";
59
181
  description?: string | undefined;
60
182
  } | undefined;
183
+ sections?: string[] | undefined;
61
184
  }>, {
62
185
  file: string;
63
186
  priority: "high" | "medium" | "low";
64
187
  hash: string;
65
188
  layer: "L0" | "L1" | "L2";
66
- topology_type: "mirror" | "cross-cutting";
189
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
67
190
  scope_glob: string;
68
191
  deps: string[];
192
+ description?: {
193
+ summary: string;
194
+ intent_clues: string[];
195
+ tech_stack: string[];
196
+ impact: string[];
197
+ must_read_if: string;
198
+ entities?: string[] | undefined;
199
+ } | undefined;
200
+ content_ref?: string | undefined;
201
+ level?: "L0" | "L1" | "L2" | undefined;
69
202
  stable_id?: string | undefined;
70
203
  identity_source?: "declared" | "derived" | undefined;
71
204
  activation?: {
72
205
  tier: "always" | "path" | "description";
73
206
  description?: string | undefined;
74
207
  } | undefined;
208
+ sections?: string[] | undefined;
75
209
  }, unknown>;
76
210
  declare const agentsMetaSchema: z.ZodObject<{
77
211
  revision: z.ZodString;
78
212
  nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
79
213
  file: z.ZodString;
214
+ content_ref: z.ZodOptional<z.ZodString>;
80
215
  scope_glob: z.ZodString;
81
216
  deps: z.ZodArray<z.ZodString, "many">;
82
217
  priority: z.ZodEnum<["high", "medium", "low"]>;
218
+ level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
83
219
  layer: z.ZodEnum<["L0", "L1", "L2"]>;
84
- topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
220
+ topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
85
221
  hash: z.ZodString;
86
222
  stable_id: z.ZodOptional<z.ZodString>;
87
223
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
@@ -95,48 +231,104 @@ declare const agentsMetaSchema: z.ZodObject<{
95
231
  tier: "always" | "path" | "description";
96
232
  description?: string | undefined;
97
233
  }>>;
234
+ description: z.ZodOptional<z.ZodObject<{
235
+ summary: z.ZodString;
236
+ intent_clues: z.ZodArray<z.ZodString, "many">;
237
+ tech_stack: z.ZodArray<z.ZodString, "many">;
238
+ impact: z.ZodArray<z.ZodString, "many">;
239
+ must_read_if: z.ZodString;
240
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ summary: string;
243
+ intent_clues: string[];
244
+ tech_stack: string[];
245
+ impact: string[];
246
+ must_read_if: string;
247
+ entities?: string[] | undefined;
248
+ }, {
249
+ summary: string;
250
+ intent_clues: string[];
251
+ tech_stack: string[];
252
+ impact: string[];
253
+ must_read_if: string;
254
+ entities?: string[] | undefined;
255
+ }>>;
256
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
257
  }, "strip", z.ZodTypeAny, {
99
258
  file: string;
100
259
  priority: "high" | "medium" | "low";
101
260
  hash: string;
102
261
  layer: "L0" | "L1" | "L2";
103
- topology_type: "mirror" | "cross-cutting";
262
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
104
263
  scope_glob: string;
105
264
  deps: string[];
265
+ description?: {
266
+ summary: string;
267
+ intent_clues: string[];
268
+ tech_stack: string[];
269
+ impact: string[];
270
+ must_read_if: string;
271
+ entities?: string[] | undefined;
272
+ } | undefined;
273
+ content_ref?: string | undefined;
274
+ level?: "L0" | "L1" | "L2" | undefined;
106
275
  stable_id?: string | undefined;
107
276
  identity_source?: "declared" | "derived" | undefined;
108
277
  activation?: {
109
278
  tier: "always" | "path" | "description";
110
279
  description?: string | undefined;
111
280
  } | undefined;
281
+ sections?: string[] | undefined;
112
282
  }, {
113
283
  file: string;
114
284
  priority: "high" | "medium" | "low";
115
285
  hash: string;
116
286
  layer: "L0" | "L1" | "L2";
117
- topology_type: "mirror" | "cross-cutting";
287
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
118
288
  scope_glob: string;
119
289
  deps: string[];
290
+ description?: {
291
+ summary: string;
292
+ intent_clues: string[];
293
+ tech_stack: string[];
294
+ impact: string[];
295
+ must_read_if: string;
296
+ entities?: string[] | undefined;
297
+ } | undefined;
298
+ content_ref?: string | undefined;
299
+ level?: "L0" | "L1" | "L2" | undefined;
120
300
  stable_id?: string | undefined;
121
301
  identity_source?: "declared" | "derived" | undefined;
122
302
  activation?: {
123
303
  tier: "always" | "path" | "description";
124
304
  description?: string | undefined;
125
305
  } | undefined;
306
+ sections?: string[] | undefined;
126
307
  }>, {
127
308
  file: string;
128
309
  priority: "high" | "medium" | "low";
129
310
  hash: string;
130
311
  layer: "L0" | "L1" | "L2";
131
- topology_type: "mirror" | "cross-cutting";
312
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
132
313
  scope_glob: string;
133
314
  deps: string[];
315
+ description?: {
316
+ summary: string;
317
+ intent_clues: string[];
318
+ tech_stack: string[];
319
+ impact: string[];
320
+ must_read_if: string;
321
+ entities?: string[] | undefined;
322
+ } | undefined;
323
+ content_ref?: string | undefined;
324
+ level?: "L0" | "L1" | "L2" | undefined;
134
325
  stable_id?: string | undefined;
135
326
  identity_source?: "declared" | "derived" | undefined;
136
327
  activation?: {
137
328
  tier: "always" | "path" | "description";
138
329
  description?: string | undefined;
139
330
  } | undefined;
331
+ sections?: string[] | undefined;
140
332
  }, unknown>>;
141
333
  }, "strip", z.ZodTypeAny, {
142
334
  revision: string;
@@ -145,15 +337,26 @@ declare const agentsMetaSchema: z.ZodObject<{
145
337
  priority: "high" | "medium" | "low";
146
338
  hash: string;
147
339
  layer: "L0" | "L1" | "L2";
148
- topology_type: "mirror" | "cross-cutting";
340
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
149
341
  scope_glob: string;
150
342
  deps: string[];
343
+ description?: {
344
+ summary: string;
345
+ intent_clues: string[];
346
+ tech_stack: string[];
347
+ impact: string[];
348
+ must_read_if: string;
349
+ entities?: string[] | undefined;
350
+ } | undefined;
351
+ content_ref?: string | undefined;
352
+ level?: "L0" | "L1" | "L2" | undefined;
151
353
  stable_id?: string | undefined;
152
354
  identity_source?: "declared" | "derived" | undefined;
153
355
  activation?: {
154
356
  tier: "always" | "path" | "description";
155
357
  description?: string | undefined;
156
358
  } | undefined;
359
+ sections?: string[] | undefined;
157
360
  }>;
158
361
  }, {
159
362
  revision: string;
@@ -165,6 +368,155 @@ declare function deriveAgentsMetaIdentitySource(node: Pick<AgentsMetaNode, "file
165
368
  declare function deriveAgentsMetaLayer(file: string): AgentsLayer;
166
369
  declare function deriveAgentsMetaTopologyType(file: string): AgentsTopologyType;
167
370
 
371
+ declare const RULE_TEST_INDEX_SCHEMA_VERSION = 1;
372
+ declare const ruleTestLinkSchema: z.ZodObject<{
373
+ rule_stable_id: z.ZodString;
374
+ rule_file: z.ZodString;
375
+ rule_hash: z.ZodString;
376
+ previous_rule_hash: z.ZodOptional<z.ZodString>;
377
+ test_file: z.ZodString;
378
+ test_hash: z.ZodString;
379
+ previous_test_hash: z.ZodOptional<z.ZodString>;
380
+ annotation_line: z.ZodNumber;
381
+ }, "strict", z.ZodTypeAny, {
382
+ rule_stable_id: string;
383
+ rule_file: string;
384
+ rule_hash: string;
385
+ test_file: string;
386
+ test_hash: string;
387
+ annotation_line: number;
388
+ previous_rule_hash?: string | undefined;
389
+ previous_test_hash?: string | undefined;
390
+ }, {
391
+ rule_stable_id: string;
392
+ rule_file: string;
393
+ rule_hash: string;
394
+ test_file: string;
395
+ test_hash: string;
396
+ annotation_line: number;
397
+ previous_rule_hash?: string | undefined;
398
+ previous_test_hash?: string | undefined;
399
+ }>;
400
+ declare const ruleTestOrphanAnnotationSchema: z.ZodObject<{
401
+ rule_stable_id: z.ZodString;
402
+ test_file: z.ZodString;
403
+ test_hash: z.ZodString;
404
+ previous_test_hash: z.ZodOptional<z.ZodString>;
405
+ annotation_line: z.ZodNumber;
406
+ }, "strict", z.ZodTypeAny, {
407
+ rule_stable_id: string;
408
+ test_file: string;
409
+ test_hash: string;
410
+ annotation_line: number;
411
+ previous_test_hash?: string | undefined;
412
+ }, {
413
+ rule_stable_id: string;
414
+ test_file: string;
415
+ test_hash: string;
416
+ annotation_line: number;
417
+ previous_test_hash?: string | undefined;
418
+ }>;
419
+ declare const ruleTestIndexSchema: z.ZodObject<{
420
+ schema_version: z.ZodLiteral<1>;
421
+ generated_at: z.ZodString;
422
+ revision: z.ZodOptional<z.ZodString>;
423
+ previous_revision: z.ZodOptional<z.ZodString>;
424
+ links: z.ZodArray<z.ZodObject<{
425
+ rule_stable_id: z.ZodString;
426
+ rule_file: z.ZodString;
427
+ rule_hash: z.ZodString;
428
+ previous_rule_hash: z.ZodOptional<z.ZodString>;
429
+ test_file: z.ZodString;
430
+ test_hash: z.ZodString;
431
+ previous_test_hash: z.ZodOptional<z.ZodString>;
432
+ annotation_line: z.ZodNumber;
433
+ }, "strict", z.ZodTypeAny, {
434
+ rule_stable_id: string;
435
+ rule_file: string;
436
+ rule_hash: string;
437
+ test_file: string;
438
+ test_hash: string;
439
+ annotation_line: number;
440
+ previous_rule_hash?: string | undefined;
441
+ previous_test_hash?: string | undefined;
442
+ }, {
443
+ rule_stable_id: string;
444
+ rule_file: string;
445
+ rule_hash: string;
446
+ test_file: string;
447
+ test_hash: string;
448
+ annotation_line: number;
449
+ previous_rule_hash?: string | undefined;
450
+ previous_test_hash?: string | undefined;
451
+ }>, "many">;
452
+ orphan_annotations: z.ZodArray<z.ZodObject<{
453
+ rule_stable_id: z.ZodString;
454
+ test_file: z.ZodString;
455
+ test_hash: z.ZodString;
456
+ previous_test_hash: z.ZodOptional<z.ZodString>;
457
+ annotation_line: z.ZodNumber;
458
+ }, "strict", z.ZodTypeAny, {
459
+ rule_stable_id: string;
460
+ test_file: string;
461
+ test_hash: string;
462
+ annotation_line: number;
463
+ previous_test_hash?: string | undefined;
464
+ }, {
465
+ rule_stable_id: string;
466
+ test_file: string;
467
+ test_hash: string;
468
+ annotation_line: number;
469
+ previous_test_hash?: string | undefined;
470
+ }>, "many">;
471
+ }, "strict", z.ZodTypeAny, {
472
+ schema_version: 1;
473
+ generated_at: string;
474
+ links: {
475
+ rule_stable_id: string;
476
+ rule_file: string;
477
+ rule_hash: string;
478
+ test_file: string;
479
+ test_hash: string;
480
+ annotation_line: number;
481
+ previous_rule_hash?: string | undefined;
482
+ previous_test_hash?: string | undefined;
483
+ }[];
484
+ orphan_annotations: {
485
+ rule_stable_id: string;
486
+ test_file: string;
487
+ test_hash: string;
488
+ annotation_line: number;
489
+ previous_test_hash?: string | undefined;
490
+ }[];
491
+ revision?: string | undefined;
492
+ previous_revision?: string | undefined;
493
+ }, {
494
+ schema_version: 1;
495
+ generated_at: string;
496
+ links: {
497
+ rule_stable_id: string;
498
+ rule_file: string;
499
+ rule_hash: string;
500
+ test_file: string;
501
+ test_hash: string;
502
+ annotation_line: number;
503
+ previous_rule_hash?: string | undefined;
504
+ previous_test_hash?: string | undefined;
505
+ }[];
506
+ orphan_annotations: {
507
+ rule_stable_id: string;
508
+ test_file: string;
509
+ test_hash: string;
510
+ annotation_line: number;
511
+ previous_test_hash?: string | undefined;
512
+ }[];
513
+ revision?: string | undefined;
514
+ previous_revision?: string | undefined;
515
+ }>;
516
+ type RuleTestLink = z.infer<typeof ruleTestLinkSchema>;
517
+ type RuleTestOrphanAnnotation = z.infer<typeof ruleTestOrphanAnnotationSchema>;
518
+ type RuleTestIndex = z.infer<typeof ruleTestIndexSchema>;
519
+
168
520
  declare const ledgerSourceSchema: z.ZodEnum<["ai", "human"]>;
169
521
  declare const ledgerQuerySchema: z.ZodObject<{
170
522
  source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
@@ -645,7 +997,7 @@ declare const forensicAssertionSchema: z.ZodObject<{
645
997
  proposed_rule: z.ZodOptional<z.ZodString>;
646
998
  alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
999
  }, "strip", z.ZodTypeAny, {
648
- type: "framework" | "pattern" | "invariant" | "domain";
1000
+ type: "domain" | "framework" | "pattern" | "invariant";
649
1001
  statement: string;
650
1002
  confidence: "HIGH" | "MEDIUM" | "LOW";
651
1003
  evidence: {
@@ -662,7 +1014,7 @@ declare const forensicAssertionSchema: z.ZodObject<{
662
1014
  proposed_rule?: string | undefined;
663
1015
  alternatives?: string[] | undefined;
664
1016
  }, {
665
- type: "framework" | "pattern" | "invariant" | "domain";
1017
+ type: "domain" | "framework" | "pattern" | "invariant";
666
1018
  statement: string;
667
1019
  confidence: "HIGH" | "MEDIUM" | "LOW";
668
1020
  evidence: {
@@ -863,7 +1215,7 @@ declare const forensicReportSchema: z.ZodObject<{
863
1215
  proposed_rule: z.ZodOptional<z.ZodString>;
864
1216
  alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
865
1217
  }, "strip", z.ZodTypeAny, {
866
- type: "framework" | "pattern" | "invariant" | "domain";
1218
+ type: "domain" | "framework" | "pattern" | "invariant";
867
1219
  statement: string;
868
1220
  confidence: "HIGH" | "MEDIUM" | "LOW";
869
1221
  evidence: {
@@ -880,7 +1232,7 @@ declare const forensicReportSchema: z.ZodObject<{
880
1232
  proposed_rule?: string | undefined;
881
1233
  alternatives?: string[] | undefined;
882
1234
  }, {
883
- type: "framework" | "pattern" | "invariant" | "domain";
1235
+ type: "domain" | "framework" | "pattern" | "invariant";
884
1236
  statement: string;
885
1237
  confidence: "HIGH" | "MEDIUM" | "LOW";
886
1238
  evidence: {
@@ -935,6 +1287,7 @@ declare const forensicReportSchema: z.ZodObject<{
935
1287
  }>;
936
1288
  recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
1289
  }, "strip", z.ZodTypeAny, {
1290
+ generated_at: string;
938
1291
  framework: {
939
1292
  evidence: string[];
940
1293
  kind: string;
@@ -942,7 +1295,6 @@ declare const forensicReportSchema: z.ZodObject<{
942
1295
  subkind: string;
943
1296
  };
944
1297
  version: string;
945
- generated_at: string;
946
1298
  generated_by: string;
947
1299
  target: string;
948
1300
  project_name: string;
@@ -964,7 +1316,7 @@ declare const forensicReportSchema: z.ZodObject<{
964
1316
  pattern_hint: string;
965
1317
  }[];
966
1318
  assertions: {
967
- type: "framework" | "pattern" | "invariant" | "domain";
1319
+ type: "domain" | "framework" | "pattern" | "invariant";
968
1320
  statement: string;
969
1321
  confidence: "HIGH" | "MEDIUM" | "LOW";
970
1322
  evidence: {
@@ -997,6 +1349,7 @@ declare const forensicReportSchema: z.ZodObject<{
997
1349
  };
998
1350
  recommendations_for_skill?: string[] | undefined;
999
1351
  }, {
1352
+ generated_at: string;
1000
1353
  framework: {
1001
1354
  evidence: string[];
1002
1355
  kind: string;
@@ -1004,7 +1357,6 @@ declare const forensicReportSchema: z.ZodObject<{
1004
1357
  subkind: string;
1005
1358
  };
1006
1359
  version: string;
1007
- generated_at: string;
1008
1360
  generated_by: string;
1009
1361
  target: string;
1010
1362
  project_name: string;
@@ -1026,7 +1378,7 @@ declare const forensicReportSchema: z.ZodObject<{
1026
1378
  pattern_hint: string;
1027
1379
  }[];
1028
1380
  assertions: {
1029
- type: "framework" | "pattern" | "invariant" | "domain";
1381
+ type: "domain" | "framework" | "pattern" | "invariant";
1030
1382
  statement: string;
1031
1383
  confidence: "HIGH" | "MEDIUM" | "LOW";
1032
1384
  evidence: {
@@ -1430,11 +1782,13 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
1430
1782
  revision: z.ZodString;
1431
1783
  nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
1432
1784
  file: z.ZodString;
1785
+ content_ref: z.ZodOptional<z.ZodString>;
1433
1786
  scope_glob: z.ZodString;
1434
1787
  deps: z.ZodArray<z.ZodString, "many">;
1435
1788
  priority: z.ZodEnum<["high", "medium", "low"]>;
1789
+ level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
1436
1790
  layer: z.ZodEnum<["L0", "L1", "L2"]>;
1437
- topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
1791
+ topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
1438
1792
  hash: z.ZodString;
1439
1793
  stable_id: z.ZodOptional<z.ZodString>;
1440
1794
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
@@ -1448,48 +1802,104 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
1448
1802
  tier: "always" | "path" | "description";
1449
1803
  description?: string | undefined;
1450
1804
  }>>;
1805
+ description: z.ZodOptional<z.ZodObject<{
1806
+ summary: z.ZodString;
1807
+ intent_clues: z.ZodArray<z.ZodString, "many">;
1808
+ tech_stack: z.ZodArray<z.ZodString, "many">;
1809
+ impact: z.ZodArray<z.ZodString, "many">;
1810
+ must_read_if: z.ZodString;
1811
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1812
+ }, "strict", z.ZodTypeAny, {
1813
+ summary: string;
1814
+ intent_clues: string[];
1815
+ tech_stack: string[];
1816
+ impact: string[];
1817
+ must_read_if: string;
1818
+ entities?: string[] | undefined;
1819
+ }, {
1820
+ summary: string;
1821
+ intent_clues: string[];
1822
+ tech_stack: string[];
1823
+ impact: string[];
1824
+ must_read_if: string;
1825
+ entities?: string[] | undefined;
1826
+ }>>;
1827
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1451
1828
  }, "strip", z.ZodTypeAny, {
1452
1829
  file: string;
1453
1830
  priority: "high" | "medium" | "low";
1454
1831
  hash: string;
1455
1832
  layer: "L0" | "L1" | "L2";
1456
- topology_type: "mirror" | "cross-cutting";
1833
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
1457
1834
  scope_glob: string;
1458
1835
  deps: string[];
1836
+ description?: {
1837
+ summary: string;
1838
+ intent_clues: string[];
1839
+ tech_stack: string[];
1840
+ impact: string[];
1841
+ must_read_if: string;
1842
+ entities?: string[] | undefined;
1843
+ } | undefined;
1844
+ content_ref?: string | undefined;
1845
+ level?: "L0" | "L1" | "L2" | undefined;
1459
1846
  stable_id?: string | undefined;
1460
1847
  identity_source?: "declared" | "derived" | undefined;
1461
1848
  activation?: {
1462
1849
  tier: "always" | "path" | "description";
1463
1850
  description?: string | undefined;
1464
1851
  } | undefined;
1852
+ sections?: string[] | undefined;
1465
1853
  }, {
1466
1854
  file: string;
1467
1855
  priority: "high" | "medium" | "low";
1468
1856
  hash: string;
1469
1857
  layer: "L0" | "L1" | "L2";
1470
- topology_type: "mirror" | "cross-cutting";
1858
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
1471
1859
  scope_glob: string;
1472
1860
  deps: string[];
1861
+ description?: {
1862
+ summary: string;
1863
+ intent_clues: string[];
1864
+ tech_stack: string[];
1865
+ impact: string[];
1866
+ must_read_if: string;
1867
+ entities?: string[] | undefined;
1868
+ } | undefined;
1869
+ content_ref?: string | undefined;
1870
+ level?: "L0" | "L1" | "L2" | undefined;
1473
1871
  stable_id?: string | undefined;
1474
1872
  identity_source?: "declared" | "derived" | undefined;
1475
1873
  activation?: {
1476
1874
  tier: "always" | "path" | "description";
1477
1875
  description?: string | undefined;
1478
1876
  } | undefined;
1877
+ sections?: string[] | undefined;
1479
1878
  }>, {
1480
1879
  file: string;
1481
1880
  priority: "high" | "medium" | "low";
1482
1881
  hash: string;
1483
1882
  layer: "L0" | "L1" | "L2";
1484
- topology_type: "mirror" | "cross-cutting";
1883
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
1485
1884
  scope_glob: string;
1486
1885
  deps: string[];
1886
+ description?: {
1887
+ summary: string;
1888
+ intent_clues: string[];
1889
+ tech_stack: string[];
1890
+ impact: string[];
1891
+ must_read_if: string;
1892
+ entities?: string[] | undefined;
1893
+ } | undefined;
1894
+ content_ref?: string | undefined;
1895
+ level?: "L0" | "L1" | "L2" | undefined;
1487
1896
  stable_id?: string | undefined;
1488
1897
  identity_source?: "declared" | "derived" | undefined;
1489
1898
  activation?: {
1490
1899
  tier: "always" | "path" | "description";
1491
1900
  description?: string | undefined;
1492
1901
  } | undefined;
1902
+ sections?: string[] | undefined;
1493
1903
  }, unknown>>;
1494
1904
  }, "strip", z.ZodTypeAny, {
1495
1905
  revision: string;
@@ -1498,15 +1908,26 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
1498
1908
  priority: "high" | "medium" | "low";
1499
1909
  hash: string;
1500
1910
  layer: "L0" | "L1" | "L2";
1501
- topology_type: "mirror" | "cross-cutting";
1911
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
1502
1912
  scope_glob: string;
1503
1913
  deps: string[];
1914
+ description?: {
1915
+ summary: string;
1916
+ intent_clues: string[];
1917
+ tech_stack: string[];
1918
+ impact: string[];
1919
+ must_read_if: string;
1920
+ entities?: string[] | undefined;
1921
+ } | undefined;
1922
+ content_ref?: string | undefined;
1923
+ level?: "L0" | "L1" | "L2" | undefined;
1504
1924
  stable_id?: string | undefined;
1505
1925
  identity_source?: "declared" | "derived" | undefined;
1506
1926
  activation?: {
1507
1927
  tier: "always" | "path" | "description";
1508
1928
  description?: string | undefined;
1509
1929
  } | undefined;
1930
+ sections?: string[] | undefined;
1510
1931
  }>;
1511
1932
  }, {
1512
1933
  revision: string;
@@ -1521,15 +1942,26 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
1521
1942
  priority: "high" | "medium" | "low";
1522
1943
  hash: string;
1523
1944
  layer: "L0" | "L1" | "L2";
1524
- topology_type: "mirror" | "cross-cutting";
1945
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
1525
1946
  scope_glob: string;
1526
1947
  deps: string[];
1948
+ description?: {
1949
+ summary: string;
1950
+ intent_clues: string[];
1951
+ tech_stack: string[];
1952
+ impact: string[];
1953
+ must_read_if: string;
1954
+ entities?: string[] | undefined;
1955
+ } | undefined;
1956
+ content_ref?: string | undefined;
1957
+ level?: "L0" | "L1" | "L2" | undefined;
1527
1958
  stable_id?: string | undefined;
1528
1959
  identity_source?: "declared" | "derived" | undefined;
1529
1960
  activation?: {
1530
1961
  tier: "always" | "path" | "description";
1531
1962
  description?: string | undefined;
1532
1963
  } | undefined;
1964
+ sections?: string[] | undefined;
1533
1965
  }>;
1534
1966
  };
1535
1967
  }, {
@@ -1929,7 +2361,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1929
2361
  proposed_rule: z.ZodOptional<z.ZodString>;
1930
2362
  alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1931
2363
  }, "strip", z.ZodTypeAny, {
1932
- type: "framework" | "pattern" | "invariant" | "domain";
2364
+ type: "domain" | "framework" | "pattern" | "invariant";
1933
2365
  statement: string;
1934
2366
  confidence: "HIGH" | "MEDIUM" | "LOW";
1935
2367
  evidence: {
@@ -1946,7 +2378,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1946
2378
  proposed_rule?: string | undefined;
1947
2379
  alternatives?: string[] | undefined;
1948
2380
  }, {
1949
- type: "framework" | "pattern" | "invariant" | "domain";
2381
+ type: "domain" | "framework" | "pattern" | "invariant";
1950
2382
  statement: string;
1951
2383
  confidence: "HIGH" | "MEDIUM" | "LOW";
1952
2384
  evidence: {
@@ -2001,6 +2433,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2001
2433
  }>;
2002
2434
  recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2003
2435
  }, "strip", z.ZodTypeAny, {
2436
+ generated_at: string;
2004
2437
  framework: {
2005
2438
  evidence: string[];
2006
2439
  kind: string;
@@ -2008,7 +2441,6 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2008
2441
  subkind: string;
2009
2442
  };
2010
2443
  version: string;
2011
- generated_at: string;
2012
2444
  generated_by: string;
2013
2445
  target: string;
2014
2446
  project_name: string;
@@ -2030,7 +2462,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2030
2462
  pattern_hint: string;
2031
2463
  }[];
2032
2464
  assertions: {
2033
- type: "framework" | "pattern" | "invariant" | "domain";
2465
+ type: "domain" | "framework" | "pattern" | "invariant";
2034
2466
  statement: string;
2035
2467
  confidence: "HIGH" | "MEDIUM" | "LOW";
2036
2468
  evidence: {
@@ -2063,6 +2495,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2063
2495
  };
2064
2496
  recommendations_for_skill?: string[] | undefined;
2065
2497
  }, {
2498
+ generated_at: string;
2066
2499
  framework: {
2067
2500
  evidence: string[];
2068
2501
  kind: string;
@@ -2070,7 +2503,6 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2070
2503
  subkind: string;
2071
2504
  };
2072
2505
  version: string;
2073
- generated_at: string;
2074
2506
  generated_by: string;
2075
2507
  target: string;
2076
2508
  project_name: string;
@@ -2092,7 +2524,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2092
2524
  pattern_hint: string;
2093
2525
  }[];
2094
2526
  assertions: {
2095
- type: "framework" | "pattern" | "invariant" | "domain";
2527
+ type: "domain" | "framework" | "pattern" | "invariant";
2096
2528
  statement: string;
2097
2529
  confidence: "HIGH" | "MEDIUM" | "LOW";
2098
2530
  evidence: {
@@ -2128,6 +2560,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2128
2560
  }, "strip", z.ZodTypeAny, {
2129
2561
  type: "drift:detected";
2130
2562
  payload: {
2563
+ generated_at: string;
2131
2564
  framework: {
2132
2565
  evidence: string[];
2133
2566
  kind: string;
@@ -2135,7 +2568,6 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2135
2568
  subkind: string;
2136
2569
  };
2137
2570
  version: string;
2138
- generated_at: string;
2139
2571
  generated_by: string;
2140
2572
  target: string;
2141
2573
  project_name: string;
@@ -2157,7 +2589,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2157
2589
  pattern_hint: string;
2158
2590
  }[];
2159
2591
  assertions: {
2160
- type: "framework" | "pattern" | "invariant" | "domain";
2592
+ type: "domain" | "framework" | "pattern" | "invariant";
2161
2593
  statement: string;
2162
2594
  confidence: "HIGH" | "MEDIUM" | "LOW";
2163
2595
  evidence: {
@@ -2193,6 +2625,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2193
2625
  }, {
2194
2626
  type: "drift:detected";
2195
2627
  payload: {
2628
+ generated_at: string;
2196
2629
  framework: {
2197
2630
  evidence: string[];
2198
2631
  kind: string;
@@ -2200,7 +2633,6 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2200
2633
  subkind: string;
2201
2634
  };
2202
2635
  version: string;
2203
- generated_at: string;
2204
2636
  generated_by: string;
2205
2637
  target: string;
2206
2638
  project_name: string;
@@ -2222,7 +2654,7 @@ declare const driftDetectedEventSchema: z.ZodObject<{
2222
2654
  pattern_hint: string;
2223
2655
  }[];
2224
2656
  assertions: {
2225
- type: "framework" | "pattern" | "invariant" | "domain";
2657
+ type: "domain" | "framework" | "pattern" | "invariant";
2226
2658
  statement: string;
2227
2659
  confidence: "HIGH" | "MEDIUM" | "LOW";
2228
2660
  evidence: {
@@ -2262,11 +2694,13 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2262
2694
  revision: z.ZodString;
2263
2695
  nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2264
2696
  file: z.ZodString;
2697
+ content_ref: z.ZodOptional<z.ZodString>;
2265
2698
  scope_glob: z.ZodString;
2266
2699
  deps: z.ZodArray<z.ZodString, "many">;
2267
2700
  priority: z.ZodEnum<["high", "medium", "low"]>;
2701
+ level: z.ZodOptional<z.ZodEnum<["L0", "L1", "L2"]>>;
2268
2702
  layer: z.ZodEnum<["L0", "L1", "L2"]>;
2269
- topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
2703
+ topology_type: z.ZodEnum<["mirror", "cross-cutting", "domain", "local", "global"]>;
2270
2704
  hash: z.ZodString;
2271
2705
  stable_id: z.ZodOptional<z.ZodString>;
2272
2706
  identity_source: z.ZodOptional<z.ZodEnum<["declared", "derived"]>>;
@@ -2280,48 +2714,104 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2280
2714
  tier: "always" | "path" | "description";
2281
2715
  description?: string | undefined;
2282
2716
  }>>;
2717
+ description: z.ZodOptional<z.ZodObject<{
2718
+ summary: z.ZodString;
2719
+ intent_clues: z.ZodArray<z.ZodString, "many">;
2720
+ tech_stack: z.ZodArray<z.ZodString, "many">;
2721
+ impact: z.ZodArray<z.ZodString, "many">;
2722
+ must_read_if: z.ZodString;
2723
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2724
+ }, "strict", z.ZodTypeAny, {
2725
+ summary: string;
2726
+ intent_clues: string[];
2727
+ tech_stack: string[];
2728
+ impact: string[];
2729
+ must_read_if: string;
2730
+ entities?: string[] | undefined;
2731
+ }, {
2732
+ summary: string;
2733
+ intent_clues: string[];
2734
+ tech_stack: string[];
2735
+ impact: string[];
2736
+ must_read_if: string;
2737
+ entities?: string[] | undefined;
2738
+ }>>;
2739
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2283
2740
  }, "strip", z.ZodTypeAny, {
2284
2741
  file: string;
2285
2742
  priority: "high" | "medium" | "low";
2286
2743
  hash: string;
2287
2744
  layer: "L0" | "L1" | "L2";
2288
- topology_type: "mirror" | "cross-cutting";
2745
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
2289
2746
  scope_glob: string;
2290
2747
  deps: string[];
2748
+ description?: {
2749
+ summary: string;
2750
+ intent_clues: string[];
2751
+ tech_stack: string[];
2752
+ impact: string[];
2753
+ must_read_if: string;
2754
+ entities?: string[] | undefined;
2755
+ } | undefined;
2756
+ content_ref?: string | undefined;
2757
+ level?: "L0" | "L1" | "L2" | undefined;
2291
2758
  stable_id?: string | undefined;
2292
2759
  identity_source?: "declared" | "derived" | undefined;
2293
2760
  activation?: {
2294
2761
  tier: "always" | "path" | "description";
2295
2762
  description?: string | undefined;
2296
2763
  } | undefined;
2764
+ sections?: string[] | undefined;
2297
2765
  }, {
2298
2766
  file: string;
2299
2767
  priority: "high" | "medium" | "low";
2300
2768
  hash: string;
2301
2769
  layer: "L0" | "L1" | "L2";
2302
- topology_type: "mirror" | "cross-cutting";
2770
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
2303
2771
  scope_glob: string;
2304
2772
  deps: string[];
2773
+ description?: {
2774
+ summary: string;
2775
+ intent_clues: string[];
2776
+ tech_stack: string[];
2777
+ impact: string[];
2778
+ must_read_if: string;
2779
+ entities?: string[] | undefined;
2780
+ } | undefined;
2781
+ content_ref?: string | undefined;
2782
+ level?: "L0" | "L1" | "L2" | undefined;
2305
2783
  stable_id?: string | undefined;
2306
2784
  identity_source?: "declared" | "derived" | undefined;
2307
2785
  activation?: {
2308
2786
  tier: "always" | "path" | "description";
2309
2787
  description?: string | undefined;
2310
2788
  } | undefined;
2789
+ sections?: string[] | undefined;
2311
2790
  }>, {
2312
2791
  file: string;
2313
2792
  priority: "high" | "medium" | "low";
2314
2793
  hash: string;
2315
2794
  layer: "L0" | "L1" | "L2";
2316
- topology_type: "mirror" | "cross-cutting";
2795
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
2317
2796
  scope_glob: string;
2318
2797
  deps: string[];
2798
+ description?: {
2799
+ summary: string;
2800
+ intent_clues: string[];
2801
+ tech_stack: string[];
2802
+ impact: string[];
2803
+ must_read_if: string;
2804
+ entities?: string[] | undefined;
2805
+ } | undefined;
2806
+ content_ref?: string | undefined;
2807
+ level?: "L0" | "L1" | "L2" | undefined;
2319
2808
  stable_id?: string | undefined;
2320
2809
  identity_source?: "declared" | "derived" | undefined;
2321
2810
  activation?: {
2322
2811
  tier: "always" | "path" | "description";
2323
2812
  description?: string | undefined;
2324
2813
  } | undefined;
2814
+ sections?: string[] | undefined;
2325
2815
  }, unknown>>;
2326
2816
  }, "strip", z.ZodTypeAny, {
2327
2817
  revision: string;
@@ -2330,15 +2820,26 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2330
2820
  priority: "high" | "medium" | "low";
2331
2821
  hash: string;
2332
2822
  layer: "L0" | "L1" | "L2";
2333
- topology_type: "mirror" | "cross-cutting";
2823
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
2334
2824
  scope_glob: string;
2335
2825
  deps: string[];
2826
+ description?: {
2827
+ summary: string;
2828
+ intent_clues: string[];
2829
+ tech_stack: string[];
2830
+ impact: string[];
2831
+ must_read_if: string;
2832
+ entities?: string[] | undefined;
2833
+ } | undefined;
2834
+ content_ref?: string | undefined;
2835
+ level?: "L0" | "L1" | "L2" | undefined;
2336
2836
  stable_id?: string | undefined;
2337
2837
  identity_source?: "declared" | "derived" | undefined;
2338
2838
  activation?: {
2339
2839
  tier: "always" | "path" | "description";
2340
2840
  description?: string | undefined;
2341
2841
  } | undefined;
2842
+ sections?: string[] | undefined;
2342
2843
  }>;
2343
2844
  }, {
2344
2845
  revision: string;
@@ -2353,15 +2854,26 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2353
2854
  priority: "high" | "medium" | "low";
2354
2855
  hash: string;
2355
2856
  layer: "L0" | "L1" | "L2";
2356
- topology_type: "mirror" | "cross-cutting";
2857
+ topology_type: "mirror" | "cross-cutting" | "domain" | "local" | "global";
2357
2858
  scope_glob: string;
2358
2859
  deps: string[];
2860
+ description?: {
2861
+ summary: string;
2862
+ intent_clues: string[];
2863
+ tech_stack: string[];
2864
+ impact: string[];
2865
+ must_read_if: string;
2866
+ entities?: string[] | undefined;
2867
+ } | undefined;
2868
+ content_ref?: string | undefined;
2869
+ level?: "L0" | "L1" | "L2" | undefined;
2359
2870
  stable_id?: string | undefined;
2360
2871
  identity_source?: "declared" | "derived" | undefined;
2361
2872
  activation?: {
2362
2873
  tier: "always" | "path" | "description";
2363
2874
  description?: string | undefined;
2364
2875
  } | undefined;
2876
+ sections?: string[] | undefined;
2365
2877
  }>;
2366
2878
  };
2367
2879
  }, {
@@ -2757,7 +3269,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2757
3269
  proposed_rule: z.ZodOptional<z.ZodString>;
2758
3270
  alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2759
3271
  }, "strip", z.ZodTypeAny, {
2760
- type: "framework" | "pattern" | "invariant" | "domain";
3272
+ type: "domain" | "framework" | "pattern" | "invariant";
2761
3273
  statement: string;
2762
3274
  confidence: "HIGH" | "MEDIUM" | "LOW";
2763
3275
  evidence: {
@@ -2774,7 +3286,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2774
3286
  proposed_rule?: string | undefined;
2775
3287
  alternatives?: string[] | undefined;
2776
3288
  }, {
2777
- type: "framework" | "pattern" | "invariant" | "domain";
3289
+ type: "domain" | "framework" | "pattern" | "invariant";
2778
3290
  statement: string;
2779
3291
  confidence: "HIGH" | "MEDIUM" | "LOW";
2780
3292
  evidence: {
@@ -2829,6 +3341,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2829
3341
  }>;
2830
3342
  recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2831
3343
  }, "strip", z.ZodTypeAny, {
3344
+ generated_at: string;
2832
3345
  framework: {
2833
3346
  evidence: string[];
2834
3347
  kind: string;
@@ -2836,7 +3349,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2836
3349
  subkind: string;
2837
3350
  };
2838
3351
  version: string;
2839
- generated_at: string;
2840
3352
  generated_by: string;
2841
3353
  target: string;
2842
3354
  project_name: string;
@@ -2858,7 +3370,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2858
3370
  pattern_hint: string;
2859
3371
  }[];
2860
3372
  assertions: {
2861
- type: "framework" | "pattern" | "invariant" | "domain";
3373
+ type: "domain" | "framework" | "pattern" | "invariant";
2862
3374
  statement: string;
2863
3375
  confidence: "HIGH" | "MEDIUM" | "LOW";
2864
3376
  evidence: {
@@ -2891,6 +3403,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2891
3403
  };
2892
3404
  recommendations_for_skill?: string[] | undefined;
2893
3405
  }, {
3406
+ generated_at: string;
2894
3407
  framework: {
2895
3408
  evidence: string[];
2896
3409
  kind: string;
@@ -2898,7 +3411,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2898
3411
  subkind: string;
2899
3412
  };
2900
3413
  version: string;
2901
- generated_at: string;
2902
3414
  generated_by: string;
2903
3415
  target: string;
2904
3416
  project_name: string;
@@ -2920,7 +3432,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2920
3432
  pattern_hint: string;
2921
3433
  }[];
2922
3434
  assertions: {
2923
- type: "framework" | "pattern" | "invariant" | "domain";
3435
+ type: "domain" | "framework" | "pattern" | "invariant";
2924
3436
  statement: string;
2925
3437
  confidence: "HIGH" | "MEDIUM" | "LOW";
2926
3438
  evidence: {
@@ -2956,6 +3468,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2956
3468
  }, "strip", z.ZodTypeAny, {
2957
3469
  type: "drift:detected";
2958
3470
  payload: {
3471
+ generated_at: string;
2959
3472
  framework: {
2960
3473
  evidence: string[];
2961
3474
  kind: string;
@@ -2963,7 +3476,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2963
3476
  subkind: string;
2964
3477
  };
2965
3478
  version: string;
2966
- generated_at: string;
2967
3479
  generated_by: string;
2968
3480
  target: string;
2969
3481
  project_name: string;
@@ -2985,7 +3497,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2985
3497
  pattern_hint: string;
2986
3498
  }[];
2987
3499
  assertions: {
2988
- type: "framework" | "pattern" | "invariant" | "domain";
3500
+ type: "domain" | "framework" | "pattern" | "invariant";
2989
3501
  statement: string;
2990
3502
  confidence: "HIGH" | "MEDIUM" | "LOW";
2991
3503
  evidence: {
@@ -3021,6 +3533,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3021
3533
  }, {
3022
3534
  type: "drift:detected";
3023
3535
  payload: {
3536
+ generated_at: string;
3024
3537
  framework: {
3025
3538
  evidence: string[];
3026
3539
  kind: string;
@@ -3028,7 +3541,6 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3028
3541
  subkind: string;
3029
3542
  };
3030
3543
  version: string;
3031
- generated_at: string;
3032
3544
  generated_by: string;
3033
3545
  target: string;
3034
3546
  project_name: string;
@@ -3050,7 +3562,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3050
3562
  pattern_hint: string;
3051
3563
  }[];
3052
3564
  assertions: {
3053
- type: "framework" | "pattern" | "invariant" | "domain";
3565
+ type: "domain" | "framework" | "pattern" | "invariant";
3054
3566
  statement: string;
3055
3567
  confidence: "HIGH" | "MEDIUM" | "LOW";
3056
3568
  evidence: {
@@ -3085,4 +3597,778 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3085
3597
  };
3086
3598
  }>]>;
3087
3599
 
3088
- export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type CandidateFileEntry, type CandidateFileFamily, type DriftDetectedEvent, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type MetaUpdatedEvent, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, annotateIntentRequestSchema, auditModeSchema, candidateFileEntrySchema, clientPathsSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, driftDetectedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, historyStateQuerySchema, humanLedgerEntrySchema, humanLockApproveRequestSchema, humanLockEntrySchema, humanLockFileParamsSchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, ledgerQuerySchema, ledgerSourceSchema, lockApprovedEventSchema, lockDriftEventSchema, metaUpdatedEventSchema, withDerivedAgentsMetaNodeDefaults };
3600
+ declare const ruleContextPlannedEventSchema: z.ZodObject<{
3601
+ event_type: z.ZodLiteral<"rule_context_planned">;
3602
+ target_paths: z.ZodArray<z.ZodString, "many">;
3603
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
3604
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
3605
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
3606
+ selection_token: z.ZodOptional<z.ZodString>;
3607
+ client_hash: z.ZodOptional<z.ZodString>;
3608
+ intent: z.ZodOptional<z.ZodString>;
3609
+ known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3610
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3611
+ kind: z.ZodLiteral<"fabric-event">;
3612
+ id: z.ZodString;
3613
+ ts: z.ZodNumber;
3614
+ schema_version: z.ZodLiteral<1>;
3615
+ correlation_id: z.ZodOptional<z.ZodString>;
3616
+ session_id: z.ZodOptional<z.ZodString>;
3617
+ }, "strip", z.ZodTypeAny, {
3618
+ schema_version: 1;
3619
+ ts: number;
3620
+ id: string;
3621
+ kind: "fabric-event";
3622
+ event_type: "rule_context_planned";
3623
+ target_paths: string[];
3624
+ required_stable_ids: string[];
3625
+ ai_selectable_stable_ids: string[];
3626
+ final_stable_ids: string[];
3627
+ intent?: string | undefined;
3628
+ selection_token?: string | undefined;
3629
+ client_hash?: string | undefined;
3630
+ known_tech?: string[] | undefined;
3631
+ diagnostics?: unknown[] | undefined;
3632
+ correlation_id?: string | undefined;
3633
+ session_id?: string | undefined;
3634
+ }, {
3635
+ schema_version: 1;
3636
+ ts: number;
3637
+ id: string;
3638
+ kind: "fabric-event";
3639
+ event_type: "rule_context_planned";
3640
+ target_paths: string[];
3641
+ required_stable_ids: string[];
3642
+ ai_selectable_stable_ids: string[];
3643
+ final_stable_ids: string[];
3644
+ intent?: string | undefined;
3645
+ selection_token?: string | undefined;
3646
+ client_hash?: string | undefined;
3647
+ known_tech?: string[] | undefined;
3648
+ diagnostics?: unknown[] | undefined;
3649
+ correlation_id?: string | undefined;
3650
+ session_id?: string | undefined;
3651
+ }>;
3652
+ declare const ruleSelectionEventSchema: z.ZodObject<{
3653
+ event_type: z.ZodLiteral<"rule_selection">;
3654
+ selection_token: z.ZodString;
3655
+ target_paths: z.ZodArray<z.ZodString, "many">;
3656
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
3657
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
3658
+ ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
3659
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
3660
+ ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
3661
+ rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
3662
+ ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
3663
+ kind: z.ZodLiteral<"fabric-event">;
3664
+ id: z.ZodString;
3665
+ ts: z.ZodNumber;
3666
+ schema_version: z.ZodLiteral<1>;
3667
+ correlation_id: z.ZodOptional<z.ZodString>;
3668
+ session_id: z.ZodOptional<z.ZodString>;
3669
+ }, "strip", z.ZodTypeAny, {
3670
+ schema_version: 1;
3671
+ ts: number;
3672
+ id: string;
3673
+ kind: "fabric-event";
3674
+ event_type: "rule_selection";
3675
+ target_paths: string[];
3676
+ required_stable_ids: string[];
3677
+ ai_selectable_stable_ids: string[];
3678
+ final_stable_ids: string[];
3679
+ selection_token: string;
3680
+ ai_selected_stable_ids: string[];
3681
+ ai_selection_reasons: Record<string, string>;
3682
+ rejected_stable_ids: string[];
3683
+ ignored_stable_ids: string[];
3684
+ correlation_id?: string | undefined;
3685
+ session_id?: string | undefined;
3686
+ }, {
3687
+ schema_version: 1;
3688
+ ts: number;
3689
+ id: string;
3690
+ kind: "fabric-event";
3691
+ event_type: "rule_selection";
3692
+ target_paths: string[];
3693
+ required_stable_ids: string[];
3694
+ ai_selectable_stable_ids: string[];
3695
+ final_stable_ids: string[];
3696
+ selection_token: string;
3697
+ ai_selected_stable_ids: string[];
3698
+ ai_selection_reasons: Record<string, string>;
3699
+ rejected_stable_ids: string[];
3700
+ ignored_stable_ids: string[];
3701
+ correlation_id?: string | undefined;
3702
+ session_id?: string | undefined;
3703
+ }>;
3704
+ declare const ruleSectionsFetchedEventSchema: z.ZodObject<{
3705
+ event_type: z.ZodLiteral<"rule_sections_fetched">;
3706
+ selection_token: z.ZodString;
3707
+ target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3708
+ requested_sections: z.ZodArray<z.ZodString, "many">;
3709
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
3710
+ ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
3711
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3712
+ kind: z.ZodLiteral<"fabric-event">;
3713
+ id: z.ZodString;
3714
+ ts: z.ZodNumber;
3715
+ schema_version: z.ZodLiteral<1>;
3716
+ correlation_id: z.ZodOptional<z.ZodString>;
3717
+ session_id: z.ZodOptional<z.ZodString>;
3718
+ }, "strip", z.ZodTypeAny, {
3719
+ schema_version: 1;
3720
+ ts: number;
3721
+ id: string;
3722
+ kind: "fabric-event";
3723
+ event_type: "rule_sections_fetched";
3724
+ final_stable_ids: string[];
3725
+ selection_token: string;
3726
+ ai_selected_stable_ids: string[];
3727
+ requested_sections: string[];
3728
+ target_paths?: string[] | undefined;
3729
+ diagnostics?: unknown[] | undefined;
3730
+ correlation_id?: string | undefined;
3731
+ session_id?: string | undefined;
3732
+ }, {
3733
+ schema_version: 1;
3734
+ ts: number;
3735
+ id: string;
3736
+ kind: "fabric-event";
3737
+ event_type: "rule_sections_fetched";
3738
+ final_stable_ids: string[];
3739
+ selection_token: string;
3740
+ ai_selected_stable_ids: string[];
3741
+ requested_sections: string[];
3742
+ target_paths?: string[] | undefined;
3743
+ diagnostics?: unknown[] | undefined;
3744
+ correlation_id?: string | undefined;
3745
+ session_id?: string | undefined;
3746
+ }>;
3747
+ declare const editIntentCheckedEventSchema: z.ZodObject<{
3748
+ event_type: z.ZodLiteral<"edit_intent_checked">;
3749
+ path: z.ZodString;
3750
+ compliant: z.ZodBoolean;
3751
+ intent: z.ZodString;
3752
+ ledger_entry_id: z.ZodString;
3753
+ ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
3754
+ commit_sha: z.ZodOptional<z.ZodString>;
3755
+ parent_sha: z.ZodOptional<z.ZodString>;
3756
+ parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
3757
+ diff_stat: z.ZodOptional<z.ZodString>;
3758
+ annotation: z.ZodOptional<z.ZodString>;
3759
+ matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
3760
+ window_ms: z.ZodNumber;
3761
+ kind: z.ZodLiteral<"fabric-event">;
3762
+ id: z.ZodString;
3763
+ ts: z.ZodNumber;
3764
+ schema_version: z.ZodLiteral<1>;
3765
+ correlation_id: z.ZodOptional<z.ZodString>;
3766
+ session_id: z.ZodOptional<z.ZodString>;
3767
+ }, "strip", z.ZodTypeAny, {
3768
+ path: string;
3769
+ ledger_entry_id: string;
3770
+ schema_version: 1;
3771
+ ts: number;
3772
+ id: string;
3773
+ intent: string;
3774
+ kind: "fabric-event";
3775
+ event_type: "edit_intent_checked";
3776
+ compliant: boolean;
3777
+ matched_rule_context_ts: number | null;
3778
+ window_ms: number;
3779
+ annotation?: string | undefined;
3780
+ commit_sha?: string | undefined;
3781
+ parent_sha?: string | undefined;
3782
+ parent_ledger_entry_id?: string | undefined;
3783
+ diff_stat?: string | undefined;
3784
+ correlation_id?: string | undefined;
3785
+ session_id?: string | undefined;
3786
+ ledger_source?: "ai" | "human" | undefined;
3787
+ }, {
3788
+ path: string;
3789
+ ledger_entry_id: string;
3790
+ schema_version: 1;
3791
+ ts: number;
3792
+ id: string;
3793
+ intent: string;
3794
+ kind: "fabric-event";
3795
+ event_type: "edit_intent_checked";
3796
+ compliant: boolean;
3797
+ matched_rule_context_ts: number | null;
3798
+ window_ms: number;
3799
+ annotation?: string | undefined;
3800
+ commit_sha?: string | undefined;
3801
+ parent_sha?: string | undefined;
3802
+ parent_ledger_entry_id?: string | undefined;
3803
+ diff_stat?: string | undefined;
3804
+ correlation_id?: string | undefined;
3805
+ session_id?: string | undefined;
3806
+ ledger_source?: "ai" | "human" | undefined;
3807
+ }>;
3808
+ declare const ruleDriftDetectedEventSchema: z.ZodObject<{
3809
+ event_type: z.ZodLiteral<"rule_drift_detected">;
3810
+ revision: z.ZodOptional<z.ZodString>;
3811
+ drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
3812
+ missing_files: z.ZodArray<z.ZodString, "many">;
3813
+ stale_files: z.ZodArray<z.ZodString, "many">;
3814
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
3815
+ file: z.ZodString;
3816
+ stable_id: z.ZodString;
3817
+ expected_hash: z.ZodString;
3818
+ actual_hash: z.ZodNullable<z.ZodString>;
3819
+ }, "strip", z.ZodTypeAny, {
3820
+ file: string;
3821
+ stable_id: string;
3822
+ expected_hash: string;
3823
+ actual_hash: string | null;
3824
+ }, {
3825
+ file: string;
3826
+ stable_id: string;
3827
+ expected_hash: string;
3828
+ actual_hash: string | null;
3829
+ }>, "many">>;
3830
+ kind: z.ZodLiteral<"fabric-event">;
3831
+ id: z.ZodString;
3832
+ ts: z.ZodNumber;
3833
+ schema_version: z.ZodLiteral<1>;
3834
+ correlation_id: z.ZodOptional<z.ZodString>;
3835
+ session_id: z.ZodOptional<z.ZodString>;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ schema_version: 1;
3838
+ ts: number;
3839
+ id: string;
3840
+ kind: "fabric-event";
3841
+ event_type: "rule_drift_detected";
3842
+ drifted_stable_ids: string[];
3843
+ missing_files: string[];
3844
+ stale_files: string[];
3845
+ revision?: string | undefined;
3846
+ correlation_id?: string | undefined;
3847
+ session_id?: string | undefined;
3848
+ details?: {
3849
+ file: string;
3850
+ stable_id: string;
3851
+ expected_hash: string;
3852
+ actual_hash: string | null;
3853
+ }[] | undefined;
3854
+ }, {
3855
+ schema_version: 1;
3856
+ ts: number;
3857
+ id: string;
3858
+ kind: "fabric-event";
3859
+ event_type: "rule_drift_detected";
3860
+ drifted_stable_ids: string[];
3861
+ missing_files: string[];
3862
+ stale_files: string[];
3863
+ revision?: string | undefined;
3864
+ correlation_id?: string | undefined;
3865
+ session_id?: string | undefined;
3866
+ details?: {
3867
+ file: string;
3868
+ stable_id: string;
3869
+ expected_hash: string;
3870
+ actual_hash: string | null;
3871
+ }[] | undefined;
3872
+ }>;
3873
+ declare const ruleBaselineAcceptedEventSchema: z.ZodObject<{
3874
+ event_type: z.ZodLiteral<"rule_baseline_accepted">;
3875
+ revision: z.ZodString;
3876
+ previous_revision: z.ZodOptional<z.ZodString>;
3877
+ accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
3878
+ source: z.ZodOptional<z.ZodEnum<["doctor_fix", "sync_meta"]>>;
3879
+ kind: z.ZodLiteral<"fabric-event">;
3880
+ id: z.ZodString;
3881
+ ts: z.ZodNumber;
3882
+ schema_version: z.ZodLiteral<1>;
3883
+ correlation_id: z.ZodOptional<z.ZodString>;
3884
+ session_id: z.ZodOptional<z.ZodString>;
3885
+ }, "strip", z.ZodTypeAny, {
3886
+ revision: string;
3887
+ schema_version: 1;
3888
+ ts: number;
3889
+ id: string;
3890
+ kind: "fabric-event";
3891
+ event_type: "rule_baseline_accepted";
3892
+ accepted_stable_ids: string[];
3893
+ previous_revision?: string | undefined;
3894
+ source?: "doctor_fix" | "sync_meta" | undefined;
3895
+ correlation_id?: string | undefined;
3896
+ session_id?: string | undefined;
3897
+ }, {
3898
+ revision: string;
3899
+ schema_version: 1;
3900
+ ts: number;
3901
+ id: string;
3902
+ kind: "fabric-event";
3903
+ event_type: "rule_baseline_accepted";
3904
+ accepted_stable_ids: string[];
3905
+ previous_revision?: string | undefined;
3906
+ source?: "doctor_fix" | "sync_meta" | undefined;
3907
+ correlation_id?: string | undefined;
3908
+ session_id?: string | undefined;
3909
+ }>;
3910
+ declare const baselineSyncedEventSchema: z.ZodObject<{
3911
+ event_type: z.ZodLiteral<"baseline_synced">;
3912
+ revision: z.ZodString;
3913
+ previous_revision: z.ZodOptional<z.ZodString>;
3914
+ synced_files: z.ZodArray<z.ZodString, "many">;
3915
+ accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
3916
+ source: z.ZodEnum<["doctor_fix", "sync_meta"]>;
3917
+ kind: z.ZodLiteral<"fabric-event">;
3918
+ id: z.ZodString;
3919
+ ts: z.ZodNumber;
3920
+ schema_version: z.ZodLiteral<1>;
3921
+ correlation_id: z.ZodOptional<z.ZodString>;
3922
+ session_id: z.ZodOptional<z.ZodString>;
3923
+ }, "strip", z.ZodTypeAny, {
3924
+ revision: string;
3925
+ schema_version: 1;
3926
+ source: "doctor_fix" | "sync_meta";
3927
+ ts: number;
3928
+ id: string;
3929
+ kind: "fabric-event";
3930
+ event_type: "baseline_synced";
3931
+ accepted_stable_ids: string[];
3932
+ synced_files: string[];
3933
+ previous_revision?: string | undefined;
3934
+ correlation_id?: string | undefined;
3935
+ session_id?: string | undefined;
3936
+ }, {
3937
+ revision: string;
3938
+ schema_version: 1;
3939
+ source: "doctor_fix" | "sync_meta";
3940
+ ts: number;
3941
+ id: string;
3942
+ kind: "fabric-event";
3943
+ event_type: "baseline_synced";
3944
+ accepted_stable_ids: string[];
3945
+ synced_files: string[];
3946
+ previous_revision?: string | undefined;
3947
+ correlation_id?: string | undefined;
3948
+ session_id?: string | undefined;
3949
+ }>;
3950
+ declare const mcpEventLedgerEventSchema: z.ZodObject<{
3951
+ event_type: z.ZodLiteral<"mcp_event">;
3952
+ mcp_event_id: z.ZodString;
3953
+ stream_id: z.ZodString;
3954
+ message: z.ZodUnknown;
3955
+ kind: z.ZodLiteral<"fabric-event">;
3956
+ id: z.ZodString;
3957
+ ts: z.ZodNumber;
3958
+ schema_version: z.ZodLiteral<1>;
3959
+ correlation_id: z.ZodOptional<z.ZodString>;
3960
+ session_id: z.ZodOptional<z.ZodString>;
3961
+ }, "strip", z.ZodTypeAny, {
3962
+ schema_version: 1;
3963
+ ts: number;
3964
+ id: string;
3965
+ kind: "fabric-event";
3966
+ event_type: "mcp_event";
3967
+ mcp_event_id: string;
3968
+ stream_id: string;
3969
+ message?: unknown;
3970
+ correlation_id?: string | undefined;
3971
+ session_id?: string | undefined;
3972
+ }, {
3973
+ schema_version: 1;
3974
+ ts: number;
3975
+ id: string;
3976
+ kind: "fabric-event";
3977
+ event_type: "mcp_event";
3978
+ mcp_event_id: string;
3979
+ stream_id: string;
3980
+ message?: unknown;
3981
+ correlation_id?: string | undefined;
3982
+ session_id?: string | undefined;
3983
+ }>;
3984
+ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
3985
+ event_type: z.ZodLiteral<"rule_context_planned">;
3986
+ target_paths: z.ZodArray<z.ZodString, "many">;
3987
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
3988
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
3989
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
3990
+ selection_token: z.ZodOptional<z.ZodString>;
3991
+ client_hash: z.ZodOptional<z.ZodString>;
3992
+ intent: z.ZodOptional<z.ZodString>;
3993
+ known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3994
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
3995
+ kind: z.ZodLiteral<"fabric-event">;
3996
+ id: z.ZodString;
3997
+ ts: z.ZodNumber;
3998
+ schema_version: z.ZodLiteral<1>;
3999
+ correlation_id: z.ZodOptional<z.ZodString>;
4000
+ session_id: z.ZodOptional<z.ZodString>;
4001
+ }, "strip", z.ZodTypeAny, {
4002
+ schema_version: 1;
4003
+ ts: number;
4004
+ id: string;
4005
+ kind: "fabric-event";
4006
+ event_type: "rule_context_planned";
4007
+ target_paths: string[];
4008
+ required_stable_ids: string[];
4009
+ ai_selectable_stable_ids: string[];
4010
+ final_stable_ids: string[];
4011
+ intent?: string | undefined;
4012
+ selection_token?: string | undefined;
4013
+ client_hash?: string | undefined;
4014
+ known_tech?: string[] | undefined;
4015
+ diagnostics?: unknown[] | undefined;
4016
+ correlation_id?: string | undefined;
4017
+ session_id?: string | undefined;
4018
+ }, {
4019
+ schema_version: 1;
4020
+ ts: number;
4021
+ id: string;
4022
+ kind: "fabric-event";
4023
+ event_type: "rule_context_planned";
4024
+ target_paths: string[];
4025
+ required_stable_ids: string[];
4026
+ ai_selectable_stable_ids: string[];
4027
+ final_stable_ids: string[];
4028
+ intent?: string | undefined;
4029
+ selection_token?: string | undefined;
4030
+ client_hash?: string | undefined;
4031
+ known_tech?: string[] | undefined;
4032
+ diagnostics?: unknown[] | undefined;
4033
+ correlation_id?: string | undefined;
4034
+ session_id?: string | undefined;
4035
+ }>, z.ZodObject<{
4036
+ event_type: z.ZodLiteral<"rule_selection">;
4037
+ selection_token: z.ZodString;
4038
+ target_paths: z.ZodArray<z.ZodString, "many">;
4039
+ required_stable_ids: z.ZodArray<z.ZodString, "many">;
4040
+ ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
4041
+ ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
4042
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
4043
+ ai_selection_reasons: z.ZodRecord<z.ZodString, z.ZodString>;
4044
+ rejected_stable_ids: z.ZodArray<z.ZodString, "many">;
4045
+ ignored_stable_ids: z.ZodArray<z.ZodString, "many">;
4046
+ kind: z.ZodLiteral<"fabric-event">;
4047
+ id: z.ZodString;
4048
+ ts: z.ZodNumber;
4049
+ schema_version: z.ZodLiteral<1>;
4050
+ correlation_id: z.ZodOptional<z.ZodString>;
4051
+ session_id: z.ZodOptional<z.ZodString>;
4052
+ }, "strip", z.ZodTypeAny, {
4053
+ schema_version: 1;
4054
+ ts: number;
4055
+ id: string;
4056
+ kind: "fabric-event";
4057
+ event_type: "rule_selection";
4058
+ target_paths: string[];
4059
+ required_stable_ids: string[];
4060
+ ai_selectable_stable_ids: string[];
4061
+ final_stable_ids: string[];
4062
+ selection_token: string;
4063
+ ai_selected_stable_ids: string[];
4064
+ ai_selection_reasons: Record<string, string>;
4065
+ rejected_stable_ids: string[];
4066
+ ignored_stable_ids: string[];
4067
+ correlation_id?: string | undefined;
4068
+ session_id?: string | undefined;
4069
+ }, {
4070
+ schema_version: 1;
4071
+ ts: number;
4072
+ id: string;
4073
+ kind: "fabric-event";
4074
+ event_type: "rule_selection";
4075
+ target_paths: string[];
4076
+ required_stable_ids: string[];
4077
+ ai_selectable_stable_ids: string[];
4078
+ final_stable_ids: string[];
4079
+ selection_token: string;
4080
+ ai_selected_stable_ids: string[];
4081
+ ai_selection_reasons: Record<string, string>;
4082
+ rejected_stable_ids: string[];
4083
+ ignored_stable_ids: string[];
4084
+ correlation_id?: string | undefined;
4085
+ session_id?: string | undefined;
4086
+ }>, z.ZodObject<{
4087
+ event_type: z.ZodLiteral<"rule_sections_fetched">;
4088
+ selection_token: z.ZodString;
4089
+ target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4090
+ requested_sections: z.ZodArray<z.ZodString, "many">;
4091
+ final_stable_ids: z.ZodArray<z.ZodString, "many">;
4092
+ ai_selected_stable_ids: z.ZodArray<z.ZodString, "many">;
4093
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
4094
+ kind: z.ZodLiteral<"fabric-event">;
4095
+ id: z.ZodString;
4096
+ ts: z.ZodNumber;
4097
+ schema_version: z.ZodLiteral<1>;
4098
+ correlation_id: z.ZodOptional<z.ZodString>;
4099
+ session_id: z.ZodOptional<z.ZodString>;
4100
+ }, "strip", z.ZodTypeAny, {
4101
+ schema_version: 1;
4102
+ ts: number;
4103
+ id: string;
4104
+ kind: "fabric-event";
4105
+ event_type: "rule_sections_fetched";
4106
+ final_stable_ids: string[];
4107
+ selection_token: string;
4108
+ ai_selected_stable_ids: string[];
4109
+ requested_sections: string[];
4110
+ target_paths?: string[] | undefined;
4111
+ diagnostics?: unknown[] | undefined;
4112
+ correlation_id?: string | undefined;
4113
+ session_id?: string | undefined;
4114
+ }, {
4115
+ schema_version: 1;
4116
+ ts: number;
4117
+ id: string;
4118
+ kind: "fabric-event";
4119
+ event_type: "rule_sections_fetched";
4120
+ final_stable_ids: string[];
4121
+ selection_token: string;
4122
+ ai_selected_stable_ids: string[];
4123
+ requested_sections: string[];
4124
+ target_paths?: string[] | undefined;
4125
+ diagnostics?: unknown[] | undefined;
4126
+ correlation_id?: string | undefined;
4127
+ session_id?: string | undefined;
4128
+ }>, z.ZodObject<{
4129
+ event_type: z.ZodLiteral<"edit_intent_checked">;
4130
+ path: z.ZodString;
4131
+ compliant: z.ZodBoolean;
4132
+ intent: z.ZodString;
4133
+ ledger_entry_id: z.ZodString;
4134
+ ledger_source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
4135
+ commit_sha: z.ZodOptional<z.ZodString>;
4136
+ parent_sha: z.ZodOptional<z.ZodString>;
4137
+ parent_ledger_entry_id: z.ZodOptional<z.ZodString>;
4138
+ diff_stat: z.ZodOptional<z.ZodString>;
4139
+ annotation: z.ZodOptional<z.ZodString>;
4140
+ matched_rule_context_ts: z.ZodNullable<z.ZodNumber>;
4141
+ window_ms: z.ZodNumber;
4142
+ kind: z.ZodLiteral<"fabric-event">;
4143
+ id: z.ZodString;
4144
+ ts: z.ZodNumber;
4145
+ schema_version: z.ZodLiteral<1>;
4146
+ correlation_id: z.ZodOptional<z.ZodString>;
4147
+ session_id: z.ZodOptional<z.ZodString>;
4148
+ }, "strip", z.ZodTypeAny, {
4149
+ path: string;
4150
+ ledger_entry_id: string;
4151
+ schema_version: 1;
4152
+ ts: number;
4153
+ id: string;
4154
+ intent: string;
4155
+ kind: "fabric-event";
4156
+ event_type: "edit_intent_checked";
4157
+ compliant: boolean;
4158
+ matched_rule_context_ts: number | null;
4159
+ window_ms: number;
4160
+ annotation?: string | undefined;
4161
+ commit_sha?: string | undefined;
4162
+ parent_sha?: string | undefined;
4163
+ parent_ledger_entry_id?: string | undefined;
4164
+ diff_stat?: string | undefined;
4165
+ correlation_id?: string | undefined;
4166
+ session_id?: string | undefined;
4167
+ ledger_source?: "ai" | "human" | undefined;
4168
+ }, {
4169
+ path: string;
4170
+ ledger_entry_id: string;
4171
+ schema_version: 1;
4172
+ ts: number;
4173
+ id: string;
4174
+ intent: string;
4175
+ kind: "fabric-event";
4176
+ event_type: "edit_intent_checked";
4177
+ compliant: boolean;
4178
+ matched_rule_context_ts: number | null;
4179
+ window_ms: number;
4180
+ annotation?: string | undefined;
4181
+ commit_sha?: string | undefined;
4182
+ parent_sha?: string | undefined;
4183
+ parent_ledger_entry_id?: string | undefined;
4184
+ diff_stat?: string | undefined;
4185
+ correlation_id?: string | undefined;
4186
+ session_id?: string | undefined;
4187
+ ledger_source?: "ai" | "human" | undefined;
4188
+ }>, z.ZodObject<{
4189
+ event_type: z.ZodLiteral<"rule_drift_detected">;
4190
+ revision: z.ZodOptional<z.ZodString>;
4191
+ drifted_stable_ids: z.ZodArray<z.ZodString, "many">;
4192
+ missing_files: z.ZodArray<z.ZodString, "many">;
4193
+ stale_files: z.ZodArray<z.ZodString, "many">;
4194
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
4195
+ file: z.ZodString;
4196
+ stable_id: z.ZodString;
4197
+ expected_hash: z.ZodString;
4198
+ actual_hash: z.ZodNullable<z.ZodString>;
4199
+ }, "strip", z.ZodTypeAny, {
4200
+ file: string;
4201
+ stable_id: string;
4202
+ expected_hash: string;
4203
+ actual_hash: string | null;
4204
+ }, {
4205
+ file: string;
4206
+ stable_id: string;
4207
+ expected_hash: string;
4208
+ actual_hash: string | null;
4209
+ }>, "many">>;
4210
+ kind: z.ZodLiteral<"fabric-event">;
4211
+ id: z.ZodString;
4212
+ ts: z.ZodNumber;
4213
+ schema_version: z.ZodLiteral<1>;
4214
+ correlation_id: z.ZodOptional<z.ZodString>;
4215
+ session_id: z.ZodOptional<z.ZodString>;
4216
+ }, "strip", z.ZodTypeAny, {
4217
+ schema_version: 1;
4218
+ ts: number;
4219
+ id: string;
4220
+ kind: "fabric-event";
4221
+ event_type: "rule_drift_detected";
4222
+ drifted_stable_ids: string[];
4223
+ missing_files: string[];
4224
+ stale_files: string[];
4225
+ revision?: string | undefined;
4226
+ correlation_id?: string | undefined;
4227
+ session_id?: string | undefined;
4228
+ details?: {
4229
+ file: string;
4230
+ stable_id: string;
4231
+ expected_hash: string;
4232
+ actual_hash: string | null;
4233
+ }[] | undefined;
4234
+ }, {
4235
+ schema_version: 1;
4236
+ ts: number;
4237
+ id: string;
4238
+ kind: "fabric-event";
4239
+ event_type: "rule_drift_detected";
4240
+ drifted_stable_ids: string[];
4241
+ missing_files: string[];
4242
+ stale_files: string[];
4243
+ revision?: string | undefined;
4244
+ correlation_id?: string | undefined;
4245
+ session_id?: string | undefined;
4246
+ details?: {
4247
+ file: string;
4248
+ stable_id: string;
4249
+ expected_hash: string;
4250
+ actual_hash: string | null;
4251
+ }[] | undefined;
4252
+ }>, z.ZodObject<{
4253
+ event_type: z.ZodLiteral<"rule_baseline_accepted">;
4254
+ revision: z.ZodString;
4255
+ previous_revision: z.ZodOptional<z.ZodString>;
4256
+ accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
4257
+ source: z.ZodOptional<z.ZodEnum<["doctor_fix", "sync_meta"]>>;
4258
+ kind: z.ZodLiteral<"fabric-event">;
4259
+ id: z.ZodString;
4260
+ ts: z.ZodNumber;
4261
+ schema_version: z.ZodLiteral<1>;
4262
+ correlation_id: z.ZodOptional<z.ZodString>;
4263
+ session_id: z.ZodOptional<z.ZodString>;
4264
+ }, "strip", z.ZodTypeAny, {
4265
+ revision: string;
4266
+ schema_version: 1;
4267
+ ts: number;
4268
+ id: string;
4269
+ kind: "fabric-event";
4270
+ event_type: "rule_baseline_accepted";
4271
+ accepted_stable_ids: string[];
4272
+ previous_revision?: string | undefined;
4273
+ source?: "doctor_fix" | "sync_meta" | undefined;
4274
+ correlation_id?: string | undefined;
4275
+ session_id?: string | undefined;
4276
+ }, {
4277
+ revision: string;
4278
+ schema_version: 1;
4279
+ ts: number;
4280
+ id: string;
4281
+ kind: "fabric-event";
4282
+ event_type: "rule_baseline_accepted";
4283
+ accepted_stable_ids: string[];
4284
+ previous_revision?: string | undefined;
4285
+ source?: "doctor_fix" | "sync_meta" | undefined;
4286
+ correlation_id?: string | undefined;
4287
+ session_id?: string | undefined;
4288
+ }>, z.ZodObject<{
4289
+ event_type: z.ZodLiteral<"baseline_synced">;
4290
+ revision: z.ZodString;
4291
+ previous_revision: z.ZodOptional<z.ZodString>;
4292
+ synced_files: z.ZodArray<z.ZodString, "many">;
4293
+ accepted_stable_ids: z.ZodArray<z.ZodString, "many">;
4294
+ source: z.ZodEnum<["doctor_fix", "sync_meta"]>;
4295
+ kind: z.ZodLiteral<"fabric-event">;
4296
+ id: z.ZodString;
4297
+ ts: z.ZodNumber;
4298
+ schema_version: z.ZodLiteral<1>;
4299
+ correlation_id: z.ZodOptional<z.ZodString>;
4300
+ session_id: z.ZodOptional<z.ZodString>;
4301
+ }, "strip", z.ZodTypeAny, {
4302
+ revision: string;
4303
+ schema_version: 1;
4304
+ source: "doctor_fix" | "sync_meta";
4305
+ ts: number;
4306
+ id: string;
4307
+ kind: "fabric-event";
4308
+ event_type: "baseline_synced";
4309
+ accepted_stable_ids: string[];
4310
+ synced_files: string[];
4311
+ previous_revision?: string | undefined;
4312
+ correlation_id?: string | undefined;
4313
+ session_id?: string | undefined;
4314
+ }, {
4315
+ revision: string;
4316
+ schema_version: 1;
4317
+ source: "doctor_fix" | "sync_meta";
4318
+ ts: number;
4319
+ id: string;
4320
+ kind: "fabric-event";
4321
+ event_type: "baseline_synced";
4322
+ accepted_stable_ids: string[];
4323
+ synced_files: string[];
4324
+ previous_revision?: string | undefined;
4325
+ correlation_id?: string | undefined;
4326
+ session_id?: string | undefined;
4327
+ }>, z.ZodObject<{
4328
+ event_type: z.ZodLiteral<"mcp_event">;
4329
+ mcp_event_id: z.ZodString;
4330
+ stream_id: z.ZodString;
4331
+ message: z.ZodUnknown;
4332
+ kind: z.ZodLiteral<"fabric-event">;
4333
+ id: z.ZodString;
4334
+ ts: z.ZodNumber;
4335
+ schema_version: z.ZodLiteral<1>;
4336
+ correlation_id: z.ZodOptional<z.ZodString>;
4337
+ session_id: z.ZodOptional<z.ZodString>;
4338
+ }, "strip", z.ZodTypeAny, {
4339
+ schema_version: 1;
4340
+ ts: number;
4341
+ id: string;
4342
+ kind: "fabric-event";
4343
+ event_type: "mcp_event";
4344
+ mcp_event_id: string;
4345
+ stream_id: string;
4346
+ message?: unknown;
4347
+ correlation_id?: string | undefined;
4348
+ session_id?: string | undefined;
4349
+ }, {
4350
+ schema_version: 1;
4351
+ ts: number;
4352
+ id: string;
4353
+ kind: "fabric-event";
4354
+ event_type: "mcp_event";
4355
+ mcp_event_id: string;
4356
+ stream_id: string;
4357
+ message?: unknown;
4358
+ correlation_id?: string | undefined;
4359
+ session_id?: string | undefined;
4360
+ }>]>;
4361
+ type RuleContextPlannedEvent = z.infer<typeof ruleContextPlannedEventSchema>;
4362
+ type RuleSelectionEvent = z.infer<typeof ruleSelectionEventSchema>;
4363
+ type RuleSectionsFetchedEvent = z.infer<typeof ruleSectionsFetchedEventSchema>;
4364
+ type EditIntentCheckedEvent = z.infer<typeof editIntentCheckedEventSchema>;
4365
+ type RuleDriftDetectedEvent = z.infer<typeof ruleDriftDetectedEventSchema>;
4366
+ type RuleBaselineAcceptedEvent = z.infer<typeof ruleBaselineAcceptedEventSchema>;
4367
+ type BaselineSyncedEvent = z.infer<typeof baselineSyncedEventSchema>;
4368
+ type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
4369
+ type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent;
4370
+ type EventLedgerEventType = EventLedgerEvent["event_type"];
4371
+ type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
4372
+ type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
4373
+
4374
+ export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type BaselineSyncedEvent, type CandidateFileEntry, type CandidateFileFamily, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpEventLedgerEvent, type MetaUpdatedEvent, RULE_TEST_INDEX_SCHEMA_VERSION, type RuleBaselineAcceptedEvent, type RuleContextPlannedEvent, type RuleDriftDetectedEvent, type RuleSectionsFetchedEvent, type RuleSelectionEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, annotateIntentRequestSchema, auditModeSchema, baselineSyncedEventSchema, candidateFileEntrySchema, clientPathsSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, historyStateQuerySchema, humanLedgerEntrySchema, humanLockApproveRequestSchema, humanLockEntrySchema, humanLockFileParamsSchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, ledgerQuerySchema, ledgerSourceSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpEventLedgerEventSchema, metaUpdatedEventSchema, ruleBaselineAcceptedEventSchema, ruleContextPlannedEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, ruleDriftDetectedEventSchema, ruleSectionsFetchedEventSchema, ruleSelectionEventSchema, ruleTestIndexSchema, ruleTestLinkSchema, ruleTestOrphanAnnotationSchema, withDerivedAgentsMetaNodeDefaults };