@fenglimg/fabric-shared 2.0.0-rc.22 → 2.0.0-rc.25

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
@@ -3,9 +3,14 @@ export { AgentsActivationTier, AgentsMetaCountersEnvelope, AgentsMetaKnowledgeTy
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
  import { Layer, KnowledgeType, StableId } from './schemas/api-contracts.js';
6
- export { FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, getKnowledgeAnnotations, getKnowledgeInputSchema, getKnowledgeOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
6
+ export { CiteContractMetrics, CiteCoverageReport, CiteLayerTypeBreakdown, FabExtractKnowledgeInput, FabExtractKnowledgeInputSchema, FabExtractKnowledgeInputShape, FabExtractKnowledgeOutput, FabExtractKnowledgeOutputSchema, FabReviewInput, FabReviewInputSchema, FabReviewInputShape, FabReviewOutput, FabReviewOutputSchema, FabReviewOutputShape, KNOWLEDGE_TYPE_CODES, KnowledgeEntryFrontmatter, KnowledgeEntryFrontmatterSchema, KnowledgeTypeCode, KnowledgeTypeSchema, LayerSchema, Maturity, MaturitySchema, PROPOSED_REASON_DESCRIPTIONS, ProposedReason, ProposedReasonSchema, StableIdSchema, annotateIntentRequestSchema, citeContractMetricsSchema, citeCoverageReportSchema, citeLayerTypeBreakdownSchema, fabExtractKnowledgeAnnotations, fabReviewAnnotations, formatKnowledgeId, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, knowledgeSectionsAnnotations, knowledgeSectionsInputSchema, knowledgeSectionsOutputSchema, ledgerQuerySchema, ledgerSourceSchema, parseKnowledgeId, planContextAnnotations, planContextHintNarrowEntrySchema, planContextHintOutputSchema, planContextInputSchema, planContextOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
7
7
  export { BOOTSTRAP_CANONICAL, BOOTSTRAP_MARKER_BEGIN, BOOTSTRAP_MARKER_END, BOOTSTRAP_REGEX, LEGACY_KB_MARKER_BEGIN, LEGACY_KB_MARKER_END, LEGACY_KB_REGEX } from './templates/bootstrap-canonical.js';
8
8
 
9
+ declare const ONBOARD_SLOT_NAMES: readonly ["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"];
10
+ type OnboardSlot = (typeof ONBOARD_SLOT_NAMES)[number];
11
+ declare const onboardSlotSchema: z.ZodEnum<["tech-stack-decision", "architecture-pattern", "code-style-tone", "build-system-idiom", "domain-vocabulary"]>;
12
+ declare const ONBOARD_SLOT_TOTAL: 5;
13
+
9
14
  declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
10
15
  declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
11
16
  declare const AGENTS_META_IDENTITY_SOURCES: readonly ["declared", "derived"];
@@ -1086,8 +1091,8 @@ declare const knowledgeTestIndexSchema: z.ZodObject<{
1086
1091
  previous_test_hash?: string | undefined;
1087
1092
  }>, "many">;
1088
1093
  }, "strict", z.ZodTypeAny, {
1089
- schema_version: 1;
1090
1094
  generated_at: string;
1095
+ schema_version: 1;
1091
1096
  links: {
1092
1097
  rule_stable_id: string;
1093
1098
  rule_file: string;
@@ -1108,8 +1113,8 @@ declare const knowledgeTestIndexSchema: z.ZodObject<{
1108
1113
  revision?: string | undefined;
1109
1114
  previous_revision?: string | undefined;
1110
1115
  }, {
1111
- schema_version: 1;
1112
1116
  generated_at: string;
1117
+ schema_version: 1;
1113
1118
  links: {
1114
1119
  rule_stable_id: string;
1115
1120
  rule_file: string;
@@ -1316,14 +1321,14 @@ declare const clientPathsSchema: z.ZodObject<{
1316
1321
  cursor: z.ZodOptional<z.ZodString>;
1317
1322
  codexCLI: z.ZodOptional<z.ZodString>;
1318
1323
  }, "strict", z.ZodTypeAny, {
1324
+ cursor?: string | undefined;
1319
1325
  claudeCodeCLI?: string | undefined;
1320
1326
  claudeCodeDesktop?: string | undefined;
1321
- cursor?: string | undefined;
1322
1327
  codexCLI?: string | undefined;
1323
1328
  }, {
1329
+ cursor?: string | undefined;
1324
1330
  claudeCodeCLI?: string | undefined;
1325
1331
  claudeCodeDesktop?: string | undefined;
1326
- cursor?: string | undefined;
1327
1332
  codexCLI?: string | undefined;
1328
1333
  }>;
1329
1334
  declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
@@ -1345,14 +1350,14 @@ declare const fabricConfigSchema: z.ZodObject<{
1345
1350
  cursor: z.ZodOptional<z.ZodString>;
1346
1351
  codexCLI: z.ZodOptional<z.ZodString>;
1347
1352
  }, "strict", z.ZodTypeAny, {
1353
+ cursor?: string | undefined;
1348
1354
  claudeCodeCLI?: string | undefined;
1349
1355
  claudeCodeDesktop?: string | undefined;
1350
- cursor?: string | undefined;
1351
1356
  codexCLI?: string | undefined;
1352
1357
  }, {
1358
+ cursor?: string | undefined;
1353
1359
  claudeCodeCLI?: string | undefined;
1354
1360
  claudeCodeDesktop?: string | undefined;
1355
- cursor?: string | undefined;
1356
1361
  codexCLI?: string | undefined;
1357
1362
  }>>;
1358
1363
  scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1388,6 +1393,7 @@ declare const fabricConfigSchema: z.ZodObject<{
1388
1393
  review_topic_result_cap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1389
1394
  review_stale_pending_days: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1390
1395
  fabric_event_retention_days: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>>;
1396
+ onboard_slots_opted_out: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1391
1397
  }, "strip", z.ZodTypeAny, {
1392
1398
  fabric_language: "match-existing" | "zh-CN" | "en" | "zh-CN-hybrid";
1393
1399
  default_layer_filter: "personal" | "team" | "both";
@@ -1409,10 +1415,11 @@ declare const fabricConfigSchema: z.ZodObject<{
1409
1415
  archive_digest_max_sessions: number;
1410
1416
  review_topic_result_cap: number;
1411
1417
  review_stale_pending_days: number;
1418
+ onboard_slots_opted_out: string[];
1412
1419
  clientPaths?: {
1420
+ cursor?: string | undefined;
1413
1421
  claudeCodeCLI?: string | undefined;
1414
1422
  claudeCodeDesktop?: string | undefined;
1415
- cursor?: string | undefined;
1416
1423
  codexCLI?: string | undefined;
1417
1424
  } | undefined;
1418
1425
  scanIgnores?: string[] | undefined;
@@ -1424,9 +1431,9 @@ declare const fabricConfigSchema: z.ZodObject<{
1424
1431
  fabric_event_retention_days?: 7 | 30 | 90 | undefined;
1425
1432
  }, {
1426
1433
  clientPaths?: {
1434
+ cursor?: string | undefined;
1427
1435
  claudeCodeCLI?: string | undefined;
1428
1436
  claudeCodeDesktop?: string | undefined;
1429
- cursor?: string | undefined;
1430
1437
  codexCLI?: string | undefined;
1431
1438
  } | undefined;
1432
1439
  scanIgnores?: string[] | undefined;
@@ -1456,6 +1463,7 @@ declare const fabricConfigSchema: z.ZodObject<{
1456
1463
  review_topic_result_cap?: number | undefined;
1457
1464
  review_stale_pending_days?: number | undefined;
1458
1465
  fabric_event_retention_days?: 7 | 30 | 90 | undefined;
1466
+ onboard_slots_opted_out?: string[] | undefined;
1459
1467
  }>;
1460
1468
 
1461
1469
  type FabricConfigSchemaShape = z.infer<typeof fabricConfigSchema>;
@@ -5472,7 +5480,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
5472
5480
  event_type: z.ZodLiteral<"meta_reconciled">;
5473
5481
  reconciled_files: z.ZodArray<z.ZodString, "many">;
5474
5482
  duration_ms: z.ZodNumber;
5475
- trigger: z.ZodEnum<["doctor", "manual"]>;
5483
+ trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description"]>;
5476
5484
  source: z.ZodLiteral<"reconcileKnowledge">;
5477
5485
  force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
5478
5486
  kind: z.ZodLiteral<"fabric-event">;
@@ -5490,7 +5498,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
5490
5498
  event_type: "meta_reconciled";
5491
5499
  reconciled_files: string[];
5492
5500
  duration_ms: number;
5493
- trigger: "manual" | "doctor";
5501
+ trigger: "manual" | "doctor" | "auto-heal-description";
5494
5502
  correlation_id?: string | undefined;
5495
5503
  session_id?: string | undefined;
5496
5504
  force_write_reason?: "revision_drift" | undefined;
@@ -5503,7 +5511,7 @@ declare const metaReconciledEventSchema: z.ZodObject<{
5503
5511
  event_type: "meta_reconciled";
5504
5512
  reconciled_files: string[];
5505
5513
  duration_ms: number;
5506
- trigger: "manual" | "doctor";
5514
+ trigger: "manual" | "doctor" | "auto-heal-description";
5507
5515
  correlation_id?: string | undefined;
5508
5516
  session_id?: string | undefined;
5509
5517
  force_write_reason?: "revision_drift" | undefined;
@@ -6239,6 +6247,31 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
6239
6247
  kb_line_raw: z.ZodNullable<z.ZodString>;
6240
6248
  cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6241
6249
  cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
6250
+ cite_commitments: z.ZodDefault<z.ZodArray<z.ZodObject<{
6251
+ operators: z.ZodArray<z.ZodObject<{
6252
+ kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
6253
+ target: z.ZodString;
6254
+ }, "strip", z.ZodTypeAny, {
6255
+ kind: "require" | "edit" | "not_edit" | "forbid";
6256
+ target: string;
6257
+ }, {
6258
+ kind: "require" | "edit" | "not_edit" | "forbid";
6259
+ target: string;
6260
+ }>, "many">;
6261
+ skip_reason: z.ZodNullable<z.ZodString>;
6262
+ }, "strip", z.ZodTypeAny, {
6263
+ operators: {
6264
+ kind: "require" | "edit" | "not_edit" | "forbid";
6265
+ target: string;
6266
+ }[];
6267
+ skip_reason: string | null;
6268
+ }, {
6269
+ operators: {
6270
+ kind: "require" | "edit" | "not_edit" | "forbid";
6271
+ target: string;
6272
+ }[];
6273
+ skip_reason: string | null;
6274
+ }>, "many">>;
6242
6275
  client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
6243
6276
  turn_id: z.ZodString;
6244
6277
  envelope_index: z.ZodOptional<z.ZodNumber>;
@@ -6259,10 +6292,17 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
6259
6292
  kb_line_raw: string | null;
6260
6293
  cite_ids: string[];
6261
6294
  cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
6295
+ cite_commitments: {
6296
+ operators: {
6297
+ kind: "require" | "edit" | "not_edit" | "forbid";
6298
+ target: string;
6299
+ }[];
6300
+ skip_reason: string | null;
6301
+ }[];
6262
6302
  turn_id: string;
6263
6303
  correlation_id?: string | undefined;
6264
6304
  session_id?: string | undefined;
6265
- client?: "cursor" | "cc" | "codex" | undefined;
6305
+ client?: "cc" | "codex" | "cursor" | undefined;
6266
6306
  envelope_index?: number | undefined;
6267
6307
  }, {
6268
6308
  id: string;
@@ -6277,7 +6317,14 @@ declare const assistantTurnObservedEventSchema: z.ZodObject<{
6277
6317
  session_id?: string | undefined;
6278
6318
  cite_ids?: string[] | undefined;
6279
6319
  cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
6280
- client?: "cursor" | "cc" | "codex" | undefined;
6320
+ cite_commitments?: {
6321
+ operators: {
6322
+ kind: "require" | "edit" | "not_edit" | "forbid";
6323
+ target: string;
6324
+ }[];
6325
+ skip_reason: string | null;
6326
+ }[] | undefined;
6327
+ client?: "cc" | "codex" | "cursor" | undefined;
6281
6328
  envelope_index?: number | undefined;
6282
6329
  }>;
6283
6330
  declare const citePolicyActivatedEventSchema: z.ZodObject<{
@@ -6311,6 +6358,31 @@ declare const citePolicyActivatedEventSchema: z.ZodObject<{
6311
6358
  correlation_id?: string | undefined;
6312
6359
  session_id?: string | undefined;
6313
6360
  }>;
6361
+ declare const citeContractPolicyActivatedEventSchema: z.ZodObject<{
6362
+ event_type: z.ZodLiteral<"cite_contract_policy_activated">;
6363
+ kind: z.ZodLiteral<"fabric-event">;
6364
+ id: z.ZodString;
6365
+ ts: z.ZodNumber;
6366
+ schema_version: z.ZodLiteral<1>;
6367
+ correlation_id: z.ZodOptional<z.ZodString>;
6368
+ session_id: z.ZodOptional<z.ZodString>;
6369
+ }, "strip", z.ZodTypeAny, {
6370
+ id: string;
6371
+ ts: number;
6372
+ schema_version: 1;
6373
+ kind: "fabric-event";
6374
+ event_type: "cite_contract_policy_activated";
6375
+ correlation_id?: string | undefined;
6376
+ session_id?: string | undefined;
6377
+ }, {
6378
+ id: string;
6379
+ ts: number;
6380
+ schema_version: 1;
6381
+ kind: "fabric-event";
6382
+ event_type: "cite_contract_policy_activated";
6383
+ correlation_id?: string | undefined;
6384
+ session_id?: string | undefined;
6385
+ }>;
6314
6386
  declare const eventsRotatedEventSchema: z.ZodObject<{
6315
6387
  event_type: z.ZodLiteral<"events_rotated">;
6316
6388
  cutoff_ts: z.ZodString;
@@ -6385,6 +6457,114 @@ declare const knowledgeMetaAutoHealedEventSchema: z.ZodObject<{
6385
6457
  session_id?: string | undefined;
6386
6458
  caller?: "planContext" | "getKnowledgeSections" | "getKnowledge" | "extractKnowledge" | undefined;
6387
6459
  }>;
6460
+ declare const serveLockClearedEventSchema: z.ZodObject<{
6461
+ event_type: z.ZodLiteral<"serve_lock_cleared">;
6462
+ pid: z.ZodNumber;
6463
+ age_ms: z.ZodNumber;
6464
+ timestamp: z.ZodString;
6465
+ kind: z.ZodLiteral<"fabric-event">;
6466
+ id: z.ZodString;
6467
+ ts: z.ZodNumber;
6468
+ schema_version: z.ZodLiteral<1>;
6469
+ correlation_id: z.ZodOptional<z.ZodString>;
6470
+ session_id: z.ZodOptional<z.ZodString>;
6471
+ }, "strip", z.ZodTypeAny, {
6472
+ id: string;
6473
+ ts: number;
6474
+ schema_version: 1;
6475
+ kind: "fabric-event";
6476
+ event_type: "serve_lock_cleared";
6477
+ timestamp: string;
6478
+ pid: number;
6479
+ age_ms: number;
6480
+ correlation_id?: string | undefined;
6481
+ session_id?: string | undefined;
6482
+ }, {
6483
+ id: string;
6484
+ ts: number;
6485
+ schema_version: 1;
6486
+ kind: "fabric-event";
6487
+ event_type: "serve_lock_cleared";
6488
+ timestamp: string;
6489
+ pid: number;
6490
+ age_ms: number;
6491
+ correlation_id?: string | undefined;
6492
+ session_id?: string | undefined;
6493
+ }>;
6494
+ declare const knowledgeEnrichedEventSchema: z.ZodObject<{
6495
+ event_type: z.ZodLiteral<"knowledge_enriched">;
6496
+ path: z.ZodString;
6497
+ added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
6498
+ mode: z.ZodEnum<["auto", "interactive"]>;
6499
+ timestamp: z.ZodString;
6500
+ kind: z.ZodLiteral<"fabric-event">;
6501
+ id: z.ZodString;
6502
+ ts: z.ZodNumber;
6503
+ schema_version: z.ZodLiteral<1>;
6504
+ correlation_id: z.ZodOptional<z.ZodString>;
6505
+ session_id: z.ZodOptional<z.ZodString>;
6506
+ }, "strip", z.ZodTypeAny, {
6507
+ path: string;
6508
+ id: string;
6509
+ ts: number;
6510
+ schema_version: 1;
6511
+ kind: "fabric-event";
6512
+ event_type: "knowledge_enriched";
6513
+ timestamp: string;
6514
+ mode: "auto" | "interactive";
6515
+ added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
6516
+ correlation_id?: string | undefined;
6517
+ session_id?: string | undefined;
6518
+ }, {
6519
+ path: string;
6520
+ id: string;
6521
+ ts: number;
6522
+ schema_version: 1;
6523
+ kind: "fabric-event";
6524
+ event_type: "knowledge_enriched";
6525
+ timestamp: string;
6526
+ mode: "auto" | "interactive";
6527
+ added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
6528
+ correlation_id?: string | undefined;
6529
+ session_id?: string | undefined;
6530
+ }>;
6531
+ declare const sessionArchiveAttemptedEventSchema: z.ZodObject<{
6532
+ event_type: z.ZodLiteral<"session_archive_attempted">;
6533
+ outcome: z.ZodEnum<["proposed", "viability_failed", "user_dismissed", "skipped_no_signal"]>;
6534
+ covered_through_ts: z.ZodNumber;
6535
+ candidates_proposed: z.ZodDefault<z.ZodNumber>;
6536
+ knowledge_proposed_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6537
+ kind: z.ZodLiteral<"fabric-event">;
6538
+ id: z.ZodString;
6539
+ ts: z.ZodNumber;
6540
+ schema_version: z.ZodLiteral<1>;
6541
+ correlation_id: z.ZodOptional<z.ZodString>;
6542
+ session_id: z.ZodOptional<z.ZodString>;
6543
+ }, "strip", z.ZodTypeAny, {
6544
+ id: string;
6545
+ ts: number;
6546
+ schema_version: 1;
6547
+ kind: "fabric-event";
6548
+ event_type: "session_archive_attempted";
6549
+ outcome: "proposed" | "viability_failed" | "user_dismissed" | "skipped_no_signal";
6550
+ covered_through_ts: number;
6551
+ candidates_proposed: number;
6552
+ knowledge_proposed_ids: string[];
6553
+ correlation_id?: string | undefined;
6554
+ session_id?: string | undefined;
6555
+ }, {
6556
+ id: string;
6557
+ ts: number;
6558
+ schema_version: 1;
6559
+ kind: "fabric-event";
6560
+ event_type: "session_archive_attempted";
6561
+ outcome: "proposed" | "viability_failed" | "user_dismissed" | "skipped_no_signal";
6562
+ covered_through_ts: number;
6563
+ correlation_id?: string | undefined;
6564
+ session_id?: string | undefined;
6565
+ candidates_proposed?: number | undefined;
6566
+ knowledge_proposed_ids?: string[] | undefined;
6567
+ }>;
6388
6568
  declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
6389
6569
  event_type: z.ZodLiteral<"knowledge_context_planned">;
6390
6570
  target_paths: z.ZodArray<z.ZodString, "many">;
@@ -6858,7 +7038,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
6858
7038
  event_type: z.ZodLiteral<"meta_reconciled">;
6859
7039
  reconciled_files: z.ZodArray<z.ZodString, "many">;
6860
7040
  duration_ms: z.ZodNumber;
6861
- trigger: z.ZodEnum<["doctor", "manual"]>;
7041
+ trigger: z.ZodEnum<["doctor", "manual", "auto-heal-description"]>;
6862
7042
  source: z.ZodLiteral<"reconcileKnowledge">;
6863
7043
  force_write_reason: z.ZodOptional<z.ZodEnum<["revision_drift"]>>;
6864
7044
  kind: z.ZodLiteral<"fabric-event">;
@@ -6876,7 +7056,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
6876
7056
  event_type: "meta_reconciled";
6877
7057
  reconciled_files: string[];
6878
7058
  duration_ms: number;
6879
- trigger: "manual" | "doctor";
7059
+ trigger: "manual" | "doctor" | "auto-heal-description";
6880
7060
  correlation_id?: string | undefined;
6881
7061
  session_id?: string | undefined;
6882
7062
  force_write_reason?: "revision_drift" | undefined;
@@ -6889,7 +7069,7 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
6889
7069
  event_type: "meta_reconciled";
6890
7070
  reconciled_files: string[];
6891
7071
  duration_ms: number;
6892
- trigger: "manual" | "doctor";
7072
+ trigger: "manual" | "doctor" | "auto-heal-description";
6893
7073
  correlation_id?: string | undefined;
6894
7074
  session_id?: string | undefined;
6895
7075
  force_write_reason?: "revision_drift" | undefined;
@@ -7603,6 +7783,31 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7603
7783
  kb_line_raw: z.ZodNullable<z.ZodString>;
7604
7784
  cite_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7605
7785
  cite_tags: z.ZodDefault<z.ZodArray<z.ZodEnum<["planned", "recalled", "chained-from", "dismissed", "none"]>, "many">>;
7786
+ cite_commitments: z.ZodDefault<z.ZodArray<z.ZodObject<{
7787
+ operators: z.ZodArray<z.ZodObject<{
7788
+ kind: z.ZodEnum<["edit", "not_edit", "require", "forbid"]>;
7789
+ target: z.ZodString;
7790
+ }, "strip", z.ZodTypeAny, {
7791
+ kind: "require" | "edit" | "not_edit" | "forbid";
7792
+ target: string;
7793
+ }, {
7794
+ kind: "require" | "edit" | "not_edit" | "forbid";
7795
+ target: string;
7796
+ }>, "many">;
7797
+ skip_reason: z.ZodNullable<z.ZodString>;
7798
+ }, "strip", z.ZodTypeAny, {
7799
+ operators: {
7800
+ kind: "require" | "edit" | "not_edit" | "forbid";
7801
+ target: string;
7802
+ }[];
7803
+ skip_reason: string | null;
7804
+ }, {
7805
+ operators: {
7806
+ kind: "require" | "edit" | "not_edit" | "forbid";
7807
+ target: string;
7808
+ }[];
7809
+ skip_reason: string | null;
7810
+ }>, "many">>;
7606
7811
  client: z.ZodOptional<z.ZodEnum<["cc", "codex", "cursor"]>>;
7607
7812
  turn_id: z.ZodString;
7608
7813
  envelope_index: z.ZodOptional<z.ZodNumber>;
@@ -7623,10 +7828,17 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7623
7828
  kb_line_raw: string | null;
7624
7829
  cite_ids: string[];
7625
7830
  cite_tags: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[];
7831
+ cite_commitments: {
7832
+ operators: {
7833
+ kind: "require" | "edit" | "not_edit" | "forbid";
7834
+ target: string;
7835
+ }[];
7836
+ skip_reason: string | null;
7837
+ }[];
7626
7838
  turn_id: string;
7627
7839
  correlation_id?: string | undefined;
7628
7840
  session_id?: string | undefined;
7629
- client?: "cursor" | "cc" | "codex" | undefined;
7841
+ client?: "cc" | "codex" | "cursor" | undefined;
7630
7842
  envelope_index?: number | undefined;
7631
7843
  }, {
7632
7844
  id: string;
@@ -7641,7 +7853,14 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7641
7853
  session_id?: string | undefined;
7642
7854
  cite_ids?: string[] | undefined;
7643
7855
  cite_tags?: ("none" | "planned" | "recalled" | "chained-from" | "dismissed")[] | undefined;
7644
- client?: "cursor" | "cc" | "codex" | undefined;
7856
+ cite_commitments?: {
7857
+ operators: {
7858
+ kind: "require" | "edit" | "not_edit" | "forbid";
7859
+ target: string;
7860
+ }[];
7861
+ skip_reason: string | null;
7862
+ }[] | undefined;
7863
+ client?: "cc" | "codex" | "cursor" | undefined;
7645
7864
  envelope_index?: number | undefined;
7646
7865
  }>, z.ZodObject<{
7647
7866
  event_type: z.ZodLiteral<"cite_policy_activated">;
@@ -7673,6 +7892,30 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7673
7892
  policy_version: string;
7674
7893
  correlation_id?: string | undefined;
7675
7894
  session_id?: string | undefined;
7895
+ }>, z.ZodObject<{
7896
+ event_type: z.ZodLiteral<"cite_contract_policy_activated">;
7897
+ kind: z.ZodLiteral<"fabric-event">;
7898
+ id: z.ZodString;
7899
+ ts: z.ZodNumber;
7900
+ schema_version: z.ZodLiteral<1>;
7901
+ correlation_id: z.ZodOptional<z.ZodString>;
7902
+ session_id: z.ZodOptional<z.ZodString>;
7903
+ }, "strip", z.ZodTypeAny, {
7904
+ id: string;
7905
+ ts: number;
7906
+ schema_version: 1;
7907
+ kind: "fabric-event";
7908
+ event_type: "cite_contract_policy_activated";
7909
+ correlation_id?: string | undefined;
7910
+ session_id?: string | undefined;
7911
+ }, {
7912
+ id: string;
7913
+ ts: number;
7914
+ schema_version: 1;
7915
+ kind: "fabric-event";
7916
+ event_type: "cite_contract_policy_activated";
7917
+ correlation_id?: string | undefined;
7918
+ session_id?: string | undefined;
7676
7919
  }>, z.ZodObject<{
7677
7920
  event_type: z.ZodLiteral<"knowledge_meta_auto_healed">;
7678
7921
  previous_revision_hash: z.ZodString;
@@ -7745,6 +7988,111 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
7745
7988
  archive_path: string;
7746
7989
  correlation_id?: string | undefined;
7747
7990
  session_id?: string | undefined;
7991
+ }>, z.ZodObject<{
7992
+ event_type: z.ZodLiteral<"serve_lock_cleared">;
7993
+ pid: z.ZodNumber;
7994
+ age_ms: z.ZodNumber;
7995
+ timestamp: z.ZodString;
7996
+ kind: z.ZodLiteral<"fabric-event">;
7997
+ id: z.ZodString;
7998
+ ts: z.ZodNumber;
7999
+ schema_version: z.ZodLiteral<1>;
8000
+ correlation_id: z.ZodOptional<z.ZodString>;
8001
+ session_id: z.ZodOptional<z.ZodString>;
8002
+ }, "strip", z.ZodTypeAny, {
8003
+ id: string;
8004
+ ts: number;
8005
+ schema_version: 1;
8006
+ kind: "fabric-event";
8007
+ event_type: "serve_lock_cleared";
8008
+ timestamp: string;
8009
+ pid: number;
8010
+ age_ms: number;
8011
+ correlation_id?: string | undefined;
8012
+ session_id?: string | undefined;
8013
+ }, {
8014
+ id: string;
8015
+ ts: number;
8016
+ schema_version: 1;
8017
+ kind: "fabric-event";
8018
+ event_type: "serve_lock_cleared";
8019
+ timestamp: string;
8020
+ pid: number;
8021
+ age_ms: number;
8022
+ correlation_id?: string | undefined;
8023
+ session_id?: string | undefined;
8024
+ }>, z.ZodObject<{
8025
+ event_type: z.ZodLiteral<"knowledge_enriched">;
8026
+ path: z.ZodString;
8027
+ added_fields: z.ZodArray<z.ZodEnum<["intent_clues", "tech_stack", "impact", "must_read_if"]>, "many">;
8028
+ mode: z.ZodEnum<["auto", "interactive"]>;
8029
+ timestamp: z.ZodString;
8030
+ kind: z.ZodLiteral<"fabric-event">;
8031
+ id: z.ZodString;
8032
+ ts: z.ZodNumber;
8033
+ schema_version: z.ZodLiteral<1>;
8034
+ correlation_id: z.ZodOptional<z.ZodString>;
8035
+ session_id: z.ZodOptional<z.ZodString>;
8036
+ }, "strip", z.ZodTypeAny, {
8037
+ path: string;
8038
+ id: string;
8039
+ ts: number;
8040
+ schema_version: 1;
8041
+ kind: "fabric-event";
8042
+ event_type: "knowledge_enriched";
8043
+ timestamp: string;
8044
+ mode: "auto" | "interactive";
8045
+ added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
8046
+ correlation_id?: string | undefined;
8047
+ session_id?: string | undefined;
8048
+ }, {
8049
+ path: string;
8050
+ id: string;
8051
+ ts: number;
8052
+ schema_version: 1;
8053
+ kind: "fabric-event";
8054
+ event_type: "knowledge_enriched";
8055
+ timestamp: string;
8056
+ mode: "auto" | "interactive";
8057
+ added_fields: ("intent_clues" | "tech_stack" | "impact" | "must_read_if")[];
8058
+ correlation_id?: string | undefined;
8059
+ session_id?: string | undefined;
8060
+ }>, z.ZodObject<{
8061
+ event_type: z.ZodLiteral<"session_archive_attempted">;
8062
+ outcome: z.ZodEnum<["proposed", "viability_failed", "user_dismissed", "skipped_no_signal"]>;
8063
+ covered_through_ts: z.ZodNumber;
8064
+ candidates_proposed: z.ZodDefault<z.ZodNumber>;
8065
+ knowledge_proposed_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8066
+ kind: z.ZodLiteral<"fabric-event">;
8067
+ id: z.ZodString;
8068
+ ts: z.ZodNumber;
8069
+ schema_version: z.ZodLiteral<1>;
8070
+ correlation_id: z.ZodOptional<z.ZodString>;
8071
+ session_id: z.ZodOptional<z.ZodString>;
8072
+ }, "strip", z.ZodTypeAny, {
8073
+ id: string;
8074
+ ts: number;
8075
+ schema_version: 1;
8076
+ kind: "fabric-event";
8077
+ event_type: "session_archive_attempted";
8078
+ outcome: "proposed" | "viability_failed" | "user_dismissed" | "skipped_no_signal";
8079
+ covered_through_ts: number;
8080
+ candidates_proposed: number;
8081
+ knowledge_proposed_ids: string[];
8082
+ correlation_id?: string | undefined;
8083
+ session_id?: string | undefined;
8084
+ }, {
8085
+ id: string;
8086
+ ts: number;
8087
+ schema_version: 1;
8088
+ kind: "fabric-event";
8089
+ event_type: "session_archive_attempted";
8090
+ outcome: "proposed" | "viability_failed" | "user_dismissed" | "skipped_no_signal";
8091
+ covered_through_ts: number;
8092
+ correlation_id?: string | undefined;
8093
+ session_id?: string | undefined;
8094
+ candidates_proposed?: number | undefined;
8095
+ knowledge_proposed_ids?: string[] | undefined;
7748
8096
  }>]>;
7749
8097
  type KnowledgeContextPlannedEvent = z.infer<typeof knowledgeContextPlannedEventSchema>;
7750
8098
  type KnowledgeSelectionEvent = z.infer<typeof knowledgeSelectionEventSchema>;
@@ -7781,11 +8129,39 @@ type DoctorRunEvent = z.infer<typeof doctorRunEventSchema>;
7781
8129
  type RelevanceMigrationRunEvent = z.infer<typeof relevanceMigrationRunEventSchema>;
7782
8130
  type AssistantTurnObservedEvent = z.infer<typeof assistantTurnObservedEventSchema>;
7783
8131
  type CitePolicyActivatedEvent = z.infer<typeof citePolicyActivatedEventSchema>;
8132
+ type CiteContractPolicyActivatedEvent = z.infer<typeof citeContractPolicyActivatedEventSchema>;
7784
8133
  type KnowledgeMetaAutoHealedEvent = z.infer<typeof knowledgeMetaAutoHealedEventSchema>;
7785
8134
  type EventsRotatedEvent = z.infer<typeof eventsRotatedEventSchema>;
7786
- type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent;
8135
+ type ServeLockClearedEvent = z.infer<typeof serveLockClearedEventSchema>;
8136
+ type KnowledgeEnrichedEvent = z.infer<typeof knowledgeEnrichedEventSchema>;
8137
+ type SessionArchiveAttemptedEvent = z.infer<typeof sessionArchiveAttemptedEventSchema>;
8138
+ type EventLedgerEvent = KnowledgeContextPlannedEvent | KnowledgeSelectionEvent | KnowledgeSectionsFetchedEvent | EditIntentCheckedEvent | KnowledgeDriftDetectedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | BootstrapMarkerMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | CodexSkillPathMigratedEvent | InitScanCompletedEvent | KnowledgeProposedEvent | KnowledgePromoteStartedEvent | KnowledgePromotedEvent | KnowledgePromoteFailedEvent | KnowledgeLayerChangedEvent | KnowledgeSlugRenamedEvent | KnowledgeDemotedEvent | KnowledgeArchivedEvent | KnowledgeArchiveAttemptedEvent | KnowledgeDeferredEvent | KnowledgeRejectedEvent | KnowledgeConsumedEvent | KnowledgeScopeDegradedEvent | PendingAutoArchivedEvent | KnowledgePathDangledEvent | DoctorRunEvent | RelevanceMigrationRunEvent | AssistantTurnObservedEvent | CitePolicyActivatedEvent | CiteContractPolicyActivatedEvent | KnowledgeMetaAutoHealedEvent | EventsRotatedEvent | ServeLockClearedEvent | KnowledgeEnrichedEvent | SessionArchiveAttemptedEvent;
7787
8139
  type EventLedgerEventType = EventLedgerEvent["event_type"];
7788
8140
  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;
7789
8141
  type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
7790
8142
 
7791
- export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CitePolicyActivatedEvent, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, 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 InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, type PanelFieldGroup, type PanelFieldMeta, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, auditModeSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, withDerivedAgentsMetaNodeDefaults };
8143
+ type CiteTag = "planned" | "recalled" | "chained-from" | "dismissed" | "none";
8144
+ type CiteCommitmentOperatorKind = "edit" | "not_edit" | "require" | "forbid";
8145
+ interface CiteCommitmentOperator {
8146
+ kind: CiteCommitmentOperatorKind;
8147
+ target: string;
8148
+ }
8149
+ interface CiteCommitment {
8150
+ operators: CiteCommitmentOperator[];
8151
+ skip_reason: string | null;
8152
+ }
8153
+ interface ParseCiteLineResult {
8154
+ cite_ids: string[];
8155
+ cite_tags: CiteTag[];
8156
+ cite_commitments: CiteCommitment[];
8157
+ }
8158
+ /**
8159
+ * Parse one or more newline-separated `KB:` cite lines into structured
8160
+ * arrays matching the assistant_turn_observed event-ledger fields.
8161
+ *
8162
+ * Tolerates whitespace, CR/LF line endings, blank lines, and non-KB
8163
+ * interleaved prose. Index contract documented above.
8164
+ */
8165
+ declare function parseCiteLine(raw: string): ParseCiteLineResult;
8166
+
8167
+ export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, type AgentsMetaCounters, AgentsMetaCountersSchema, AgentsMetaNode, AgentsTopologyType, type AssistantTurnObservedEvent, type BootstrapMarkerMigratedEvent, type CandidateFileEntry, type CandidateFileFamily, type CiteCommitment, type CiteCommitmentOperator, type CiteCommitmentOperatorKind, type CiteContractPolicyActivatedEvent, type CitePolicyActivatedEvent, type CiteTag, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type CodexSkillPathMigratedEvent, type DoctorRunEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, type EventsRotatedEvent, type FabricConfigSchemaShape, 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 InitScanCompletedEvent, KNOWLEDGE_TEST_INDEX_SCHEMA_VERSION, type KnowledgeArchiveAttemptedEvent, type KnowledgeArchivedEvent, type KnowledgeConsumedEvent, type KnowledgeContextPlannedEvent, type KnowledgeDeferredEvent, type KnowledgeDemotedEvent, type KnowledgeDriftDetectedEvent, type KnowledgeEnrichedEvent, type KnowledgeLayerChangedEvent, type KnowledgeMetaAutoHealedEvent, type KnowledgePathDangledEvent, type KnowledgePromoteFailedEvent, type KnowledgePromoteStartedEvent, type KnowledgePromotedEvent, type KnowledgeProposedEvent, type KnowledgeRejectedEvent, type KnowledgeScopeDegradedEvent, type KnowledgeSectionsFetchedEvent, type KnowledgeSelectionEvent, type KnowledgeSlugRenamedEvent, type KnowledgeTestIndex, type KnowledgeTestLink, type KnowledgeTestOrphanAnnotation, KnowledgeType, Layer, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, ONBOARD_SLOT_NAMES, ONBOARD_SLOT_TOTAL, type OnboardSlot, type PanelFieldGroup, type PanelFieldMeta, type ParseCiteLineResult, type PendingAutoArchivedEvent, type ReapplyCompletedEvent, type RelevanceMigrationRunEvent, type ServeLockClearedEvent, type SessionArchiveAttemptedEvent, StableId, type ValidateResult, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, allocateKnowledgeId, assistantTurnObservedEventSchema, auditModeSchema, bootstrapMarkerMigratedEventSchema, candidateFileEntrySchema, citeContractPolicyActivatedEventSchema, citePolicyActivatedEventSchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, codexSkillPathMigratedEventSchema, defaultAgentsMetaCounters, defaultLayerFilterSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, doctorRunEventSchema, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, eventsRotatedEventSchema, fabricConfigSchema, fabricEventSchema, fabricLanguageSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, getPanelFieldByKey, getPanelFields, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, initScanCompletedEventSchema, isKnowledgeStableId, knowledgeArchiveAttemptedEventSchema, knowledgeArchivedEventSchema, knowledgeConsumedEventSchema, knowledgeContextPlannedEventSchema, knowledgeDeferredEventSchema, knowledgeDemotedEventSchema, knowledgeDriftDetectedEventSchema, knowledgeEnrichedEventSchema, knowledgeLayerChangedEventSchema, knowledgeMetaAutoHealedEventSchema, knowledgePathDangledEventSchema, knowledgePromoteFailedEventSchema, knowledgePromoteStartedEventSchema, knowledgePromotedEventSchema, knowledgeProposedEventSchema, knowledgeRejectedEventSchema, knowledgeScopeDegradedEventSchema, knowledgeSectionsFetchedEventSchema, knowledgeSelectionEventSchema, knowledgeSlugRenamedEventSchema, knowledgeTestIndexSchema, knowledgeTestLinkSchema, knowledgeTestOrphanAnnotationSchema, ledgerAppendedEventSchema, ledgerEntrySchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, onboardSlotSchema, parseCiteLine, pendingAutoArchivedEventSchema, reapplyCompletedEventSchema, relevanceMigrationRunEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, serveLockClearedEventSchema, sessionArchiveAttemptedEventSchema, withDerivedAgentsMetaNodeDefaults };