@c4a/context 0.7.9 → 0.7.10-alpha.2

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.
Files changed (78) hide show
  1. package/articleStructure.d.ts +254 -0
  2. package/docs/guides/agent-dialogue.md +1 -1
  3. package/docs/guides/code-indexer-skill-authoring.md +76 -178
  4. package/docs/guides/indexer-provider-and-customization.md +93 -453
  5. package/docs/guides/indexer-skill-creation.md +107 -97
  6. package/docs/guides/knowledge-updates.md +35 -14
  7. package/docs/guides/markdown-indexer-skill-authoring.md +57 -134
  8. package/docs/reference/indexer-provider-protocol.md +52 -102
  9. package/docs/reference/package-templates.md +39 -65
  10. package/docs/reference/template-variables.md +2 -3
  11. package/index.d.ts +6 -10
  12. package/index.js +6441 -8771
  13. package/indexerAgentStepProtocol.d.ts +0 -910
  14. package/indexerApprovedKnowledge.d.ts +98 -359
  15. package/indexerArticlePlan.d.ts +3 -26
  16. package/indexerArtifact.d.ts +201 -70
  17. package/indexerArtifactPolicy.d.ts +0 -18
  18. package/indexerArtifactResult.d.ts +240 -888
  19. package/indexerAuthoringFixture.d.ts +0 -13
  20. package/indexerBenchmark.d.ts +2 -2
  21. package/indexerCandidateCompile.d.ts +123 -167
  22. package/indexerCatalogFallback.d.ts +32 -374
  23. package/indexerCollectionMapping.d.ts +2 -2
  24. package/indexerContentLayers.d.ts +187 -41
  25. package/indexerContractOverlay.d.ts +30 -44
  26. package/indexerControlledInvocation.d.ts +6 -6
  27. package/indexerControlledProgram.d.ts +959 -3020
  28. package/indexerDependencyView.d.ts +96 -96
  29. package/indexerEffectiveArtifact.d.ts +381 -242
  30. package/indexerExampleDecision.d.ts +134 -134
  31. package/indexerExampleIdentity.d.ts +6 -6
  32. package/indexerExampleIdentityAudit.d.ts +6 -6
  33. package/indexerInventoryDisposition.d.ts +0 -39
  34. package/indexerLayerComposition.d.ts +1378 -852
  35. package/indexerLayoutChange.d.ts +24 -33
  36. package/indexerLayoutProposalSet.d.ts +143 -137
  37. package/indexerLayoutResolver.d.ts +116 -101
  38. package/indexerLayoutTransition.d.ts +6 -6
  39. package/indexerMainLifecycle.d.ts +1 -11
  40. package/indexerMainRunLedger.d.ts +0 -14
  41. package/indexerMainRunProtocol.d.ts +806 -2530
  42. package/indexerMainWorkset.d.ts +0 -1212
  43. package/indexerNavigationArtifactPlan.d.ts +2 -2
  44. package/indexerOverlayQuestionApplyProposal.d.ts +0 -4
  45. package/indexerParserCoordinate.d.ts +2 -2
  46. package/indexerParserExecutionPlan.d.ts +42 -42
  47. package/indexerPartitionPlan.d.ts +24 -354
  48. package/indexerPhysicalArtifactManifest.d.ts +12 -27
  49. package/indexerPostAuthorComposition.d.ts +2 -253
  50. package/indexerPostAuthorRunLedger.d.ts +860 -562
  51. package/indexerPrimaryProjection.d.ts +2 -2
  52. package/indexerPrimaryResultView.d.ts +0 -318
  53. package/indexerProfileContract.d.ts +200 -549
  54. package/indexerProgramExecutionAuthorization.d.ts +4 -4
  55. package/indexerProgramRunProtocol.d.ts +806 -2527
  56. package/indexerProjectProposal.d.ts +8 -8
  57. package/indexerProjectedArtifactFanOutAudit.d.ts +8 -8
  58. package/indexerProjectedArtifactPlan.d.ts +0 -9
  59. package/indexerProvider.d.ts +46 -288
  60. package/indexerProviderComposition.d.ts +16 -42
  61. package/indexerQuestionAuthority.d.ts +2 -82
  62. package/indexerReaderTargetInventory.d.ts +6 -6
  63. package/indexerRequirementLifecycle.d.ts +6 -6
  64. package/indexerResultReconciliation.d.ts +35 -149
  65. package/indexerSemanticInput.d.ts +10642 -4685
  66. package/indexerStructuredDeclaration.d.ts +24 -24
  67. package/indexerTemplateRendering.d.ts +239 -113
  68. package/knowledgeMap.d.ts +5 -5
  69. package/package.json +1 -1
  70. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +13 -16
  71. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +9 -9
  72. package/indexerArtifactDependencies.d.ts +0 -693
  73. package/indexerCompositionFactDependencies.d.ts +0 -16
  74. package/indexerExampleFactDependencies.d.ts +0 -17
  75. package/indexerIncrementalImpact.d.ts +0 -221
  76. package/indexerKnowledgeDependency.d.ts +0 -46
  77. package/indexerSubjectCatalog.d.ts +0 -230
  78. package/indexerSubjectKeyAuthority.d.ts +0 -786
@@ -101,14 +101,11 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
101
101
  contract: z.ZodOptional<z.ZodEffects<z.ZodObject<{
102
102
  instruction: z.ZodEffects<z.ZodString, string, string>;
103
103
  primary_requirements: z.ZodObject<{
104
- fact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
105
104
  artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
106
105
  }, "strict", z.ZodTypeAny, {
107
106
  artifact_kinds: string[];
108
- fact_kinds: string[];
109
107
  }, {
110
108
  artifact_kinds: string[];
111
- fact_kinds: string[];
112
109
  }>;
113
110
  derived_artifact_policy: z.ZodObject<{
114
111
  fragment_protocol: z.ZodLiteral<"context.indexer.layer-fragment/v1">;
@@ -140,7 +137,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
140
137
  instruction: string;
141
138
  primary_requirements: {
142
139
  artifact_kinds: string[];
143
- fact_kinds: string[];
144
140
  };
145
141
  derived_artifact_policy: {
146
142
  artifact_policy_variant: string;
@@ -156,7 +152,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
156
152
  instruction: string;
157
153
  primary_requirements: {
158
154
  artifact_kinds: string[];
159
- fact_kinds: string[];
160
155
  };
161
156
  derived_artifact_policy: {
162
157
  artifact_policy_variant: string;
@@ -172,7 +167,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
172
167
  instruction: string;
173
168
  primary_requirements: {
174
169
  artifact_kinds: string[];
175
- fact_kinds: string[];
176
170
  };
177
171
  derived_artifact_policy: {
178
172
  artifact_policy_variant: string;
@@ -188,7 +182,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
188
182
  instruction: string;
189
183
  primary_requirements: {
190
184
  artifact_kinds: string[];
191
- fact_kinds: string[];
192
185
  };
193
186
  derived_artifact_policy: {
194
187
  artifact_policy_variant: string;
@@ -208,7 +201,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
208
201
  instruction: string;
209
202
  primary_requirements: {
210
203
  artifact_kinds: string[];
211
- fact_kinds: string[];
212
204
  };
213
205
  derived_artifact_policy: {
214
206
  artifact_policy_variant: string;
@@ -228,7 +220,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
228
220
  instruction: string;
229
221
  primary_requirements: {
230
222
  artifact_kinds: string[];
231
- fact_kinds: string[];
232
223
  };
233
224
  derived_artifact_policy: {
234
225
  artifact_policy_variant: string;
@@ -264,7 +255,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
264
255
  instruction: string;
265
256
  primary_requirements: {
266
257
  artifact_kinds: string[];
267
- fact_kinds: string[];
268
258
  };
269
259
  derived_artifact_policy: {
270
260
  artifact_policy_variant: string;
@@ -278,13 +268,13 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
278
268
  };
279
269
  } | undefined;
280
270
  }[];
281
- source_roles: string[];
282
271
  profiles: string[];
283
272
  layer_fragments: {
284
273
  kind: string;
285
274
  phase: "pre-authority" | "post-author";
286
275
  produces: string;
287
276
  }[];
277
+ source_roles: string[];
288
278
  tool_sources: {
289
279
  id: string;
290
280
  operations: string[];
@@ -321,7 +311,6 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
321
311
  instruction: string;
322
312
  primary_requirements: {
323
313
  artifact_kinds: string[];
324
- fact_kinds: string[];
325
314
  };
326
315
  derived_artifact_policy: {
327
316
  artifact_policy_variant: string;
@@ -335,13 +324,13 @@ export declare const indexerSkillCapabilitySchema: z.ZodObject<{
335
324
  };
336
325
  } | undefined;
337
326
  }[];
338
- source_roles: string[];
339
327
  profiles: string[];
340
328
  layer_fragments: {
341
329
  kind: string;
342
330
  phase: "pre-authority" | "post-author";
343
331
  produces: string;
344
332
  }[];
333
+ source_roles: string[];
345
334
  tool_sources: {
346
335
  id: string;
347
336
  operations: string[];
@@ -485,14 +474,11 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
485
474
  contract: z.ZodOptional<z.ZodEffects<z.ZodObject<{
486
475
  instruction: z.ZodEffects<z.ZodString, string, string>;
487
476
  primary_requirements: z.ZodObject<{
488
- fact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
489
477
  artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
490
478
  }, "strict", z.ZodTypeAny, {
491
479
  artifact_kinds: string[];
492
- fact_kinds: string[];
493
480
  }, {
494
481
  artifact_kinds: string[];
495
- fact_kinds: string[];
496
482
  }>;
497
483
  derived_artifact_policy: z.ZodObject<{
498
484
  fragment_protocol: z.ZodLiteral<"context.indexer.layer-fragment/v1">;
@@ -524,7 +510,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
524
510
  instruction: string;
525
511
  primary_requirements: {
526
512
  artifact_kinds: string[];
527
- fact_kinds: string[];
528
513
  };
529
514
  derived_artifact_policy: {
530
515
  artifact_policy_variant: string;
@@ -540,7 +525,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
540
525
  instruction: string;
541
526
  primary_requirements: {
542
527
  artifact_kinds: string[];
543
- fact_kinds: string[];
544
528
  };
545
529
  derived_artifact_policy: {
546
530
  artifact_policy_variant: string;
@@ -556,7 +540,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
556
540
  instruction: string;
557
541
  primary_requirements: {
558
542
  artifact_kinds: string[];
559
- fact_kinds: string[];
560
543
  };
561
544
  derived_artifact_policy: {
562
545
  artifact_policy_variant: string;
@@ -572,7 +555,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
572
555
  instruction: string;
573
556
  primary_requirements: {
574
557
  artifact_kinds: string[];
575
- fact_kinds: string[];
576
558
  };
577
559
  derived_artifact_policy: {
578
560
  artifact_policy_variant: string;
@@ -592,7 +574,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
592
574
  instruction: string;
593
575
  primary_requirements: {
594
576
  artifact_kinds: string[];
595
- fact_kinds: string[];
596
577
  };
597
578
  derived_artifact_policy: {
598
579
  artifact_policy_variant: string;
@@ -612,7 +593,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
612
593
  instruction: string;
613
594
  primary_requirements: {
614
595
  artifact_kinds: string[];
615
- fact_kinds: string[];
616
596
  };
617
597
  derived_artifact_policy: {
618
598
  artifact_policy_variant: string;
@@ -648,7 +628,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
648
628
  instruction: string;
649
629
  primary_requirements: {
650
630
  artifact_kinds: string[];
651
- fact_kinds: string[];
652
631
  };
653
632
  derived_artifact_policy: {
654
633
  artifact_policy_variant: string;
@@ -662,13 +641,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
662
641
  };
663
642
  } | undefined;
664
643
  }[];
665
- source_roles: string[];
666
644
  profiles: string[];
667
645
  layer_fragments: {
668
646
  kind: string;
669
647
  phase: "pre-authority" | "post-author";
670
648
  produces: string;
671
649
  }[];
650
+ source_roles: string[];
672
651
  tool_sources: {
673
652
  id: string;
674
653
  operations: string[];
@@ -705,7 +684,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
705
684
  instruction: string;
706
685
  primary_requirements: {
707
686
  artifact_kinds: string[];
708
- fact_kinds: string[];
709
687
  };
710
688
  derived_artifact_policy: {
711
689
  artifact_policy_variant: string;
@@ -719,13 +697,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
719
697
  };
720
698
  } | undefined;
721
699
  }[];
722
- source_roles: string[];
723
700
  profiles: string[];
724
701
  layer_fragments: {
725
702
  kind: string;
726
703
  phase: "pre-authority" | "post-author";
727
704
  produces: string;
728
705
  }[];
706
+ source_roles: string[];
729
707
  tool_sources: {
730
708
  id: string;
731
709
  operations: string[];
@@ -746,6 +724,8 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
746
724
  capability_digest: string;
747
725
  }>;
748
726
  }, "strict", z.ZodTypeAny, {
727
+ manifest_digest: string;
728
+ provider_integrity: string;
749
729
  capability: {
750
730
  operations: {
751
731
  id: "main-index";
@@ -764,7 +744,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
764
744
  instruction: string;
765
745
  primary_requirements: {
766
746
  artifact_kinds: string[];
767
- fact_kinds: string[];
768
747
  };
769
748
  derived_artifact_policy: {
770
749
  artifact_policy_variant: string;
@@ -778,13 +757,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
778
757
  };
779
758
  } | undefined;
780
759
  }[];
781
- source_roles: string[];
782
760
  profiles: string[];
783
761
  layer_fragments: {
784
762
  kind: string;
785
763
  phase: "pre-authority" | "post-author";
786
764
  produces: string;
787
765
  }[];
766
+ source_roles: string[];
788
767
  tool_sources: {
789
768
  id: string;
790
769
  operations: string[];
@@ -804,10 +783,10 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
804
783
  customization_capabilities: string[];
805
784
  capability_digest: string;
806
785
  };
807
- manifest_digest: string;
808
- provider_integrity: string;
809
786
  provider_layer_id: string;
810
787
  }, {
788
+ manifest_digest: string;
789
+ provider_integrity: string;
811
790
  capability: {
812
791
  operations: {
813
792
  id: "main-index";
@@ -826,7 +805,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
826
805
  instruction: string;
827
806
  primary_requirements: {
828
807
  artifact_kinds: string[];
829
- fact_kinds: string[];
830
808
  };
831
809
  derived_artifact_policy: {
832
810
  artifact_policy_variant: string;
@@ -840,13 +818,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
840
818
  };
841
819
  } | undefined;
842
820
  }[];
843
- source_roles: string[];
844
821
  profiles: string[];
845
822
  layer_fragments: {
846
823
  kind: string;
847
824
  phase: "pre-authority" | "post-author";
848
825
  produces: string;
849
826
  }[];
827
+ source_roles: string[];
850
828
  tool_sources: {
851
829
  id: string;
852
830
  operations: string[];
@@ -866,8 +844,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
866
844
  customization_capabilities: string[];
867
845
  capability_digest: string;
868
846
  };
869
- manifest_digest: string;
870
- provider_integrity: string;
871
847
  provider_layer_id: string;
872
848
  }>, "many">;
873
849
  operation_authorities: z.ZodArray<z.ZodObject<{
@@ -1124,6 +1100,8 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1124
1100
  }[];
1125
1101
  primary_layer_id: string;
1126
1102
  skill_capabilities: {
1103
+ manifest_digest: string;
1104
+ provider_integrity: string;
1127
1105
  capability: {
1128
1106
  operations: {
1129
1107
  id: "main-index";
@@ -1142,7 +1120,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1142
1120
  instruction: string;
1143
1121
  primary_requirements: {
1144
1122
  artifact_kinds: string[];
1145
- fact_kinds: string[];
1146
1123
  };
1147
1124
  derived_artifact_policy: {
1148
1125
  artifact_policy_variant: string;
@@ -1156,13 +1133,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1156
1133
  };
1157
1134
  } | undefined;
1158
1135
  }[];
1159
- source_roles: string[];
1160
1136
  profiles: string[];
1161
1137
  layer_fragments: {
1162
1138
  kind: string;
1163
1139
  phase: "pre-authority" | "post-author";
1164
1140
  produces: string;
1165
1141
  }[];
1142
+ source_roles: string[];
1166
1143
  tool_sources: {
1167
1144
  id: string;
1168
1145
  operations: string[];
@@ -1182,8 +1159,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1182
1159
  customization_capabilities: string[];
1183
1160
  capability_digest: string;
1184
1161
  };
1185
- manifest_digest: string;
1186
- provider_integrity: string;
1187
1162
  provider_layer_id: string;
1188
1163
  }[];
1189
1164
  operation_authorities: {
@@ -1258,6 +1233,8 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1258
1233
  }[];
1259
1234
  primary_layer_id: string;
1260
1235
  skill_capabilities: {
1236
+ manifest_digest: string;
1237
+ provider_integrity: string;
1261
1238
  capability: {
1262
1239
  operations: {
1263
1240
  id: "main-index";
@@ -1276,7 +1253,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1276
1253
  instruction: string;
1277
1254
  primary_requirements: {
1278
1255
  artifact_kinds: string[];
1279
- fact_kinds: string[];
1280
1256
  };
1281
1257
  derived_artifact_policy: {
1282
1258
  artifact_policy_variant: string;
@@ -1290,13 +1266,13 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1290
1266
  };
1291
1267
  } | undefined;
1292
1268
  }[];
1293
- source_roles: string[];
1294
1269
  profiles: string[];
1295
1270
  layer_fragments: {
1296
1271
  kind: string;
1297
1272
  phase: "pre-authority" | "post-author";
1298
1273
  produces: string;
1299
1274
  }[];
1275
+ source_roles: string[];
1300
1276
  tool_sources: {
1301
1277
  id: string;
1302
1278
  operations: string[];
@@ -1316,8 +1292,6 @@ export declare const indexerProviderCompositionPlanSchema: z.ZodObject<{
1316
1292
  customization_capabilities: string[];
1317
1293
  capability_digest: string;
1318
1294
  };
1319
- manifest_digest: string;
1320
- provider_integrity: string;
1321
1295
  provider_layer_id: string;
1322
1296
  }[];
1323
1297
  operation_authorities: {
@@ -230,52 +230,21 @@ declare const questionTargetInventoryItemSchema: z.ZodObject<{
230
230
  owner_cell_ref: z.ZodString;
231
231
  source_ref: z.ZodString;
232
232
  module_ref: z.ZodNullable<z.ZodString>;
233
- subject_key: z.ZodObject<{
234
- protocol: z.ZodLiteral<"context.subject-key/v1">;
235
- namespace: z.ZodEffects<z.ZodString, string, string>;
236
- kind: z.ZodEffects<z.ZodString, string, string>;
237
- local_key: z.ZodEffects<z.ZodString, string, string>;
238
- }, "strict", z.ZodTypeAny, {
239
- kind: string;
240
- namespace: string;
241
- protocol: "context.subject-key/v1";
242
- local_key: string;
243
- }, {
244
- kind: string;
245
- namespace: string;
246
- protocol: "context.subject-key/v1";
247
- local_key: string;
248
- }>;
249
- node_ref: z.ZodString;
250
233
  canonical_fact_slice_digest: z.ZodString;
251
234
  }, "strict", z.ZodTypeAny, {
252
235
  source_ref: string;
253
236
  requirement_ref: string;
254
- subject_key: {
255
- kind: string;
256
- namespace: string;
257
- protocol: "context.subject-key/v1";
258
- local_key: string;
259
- };
260
237
  target_ref: string;
261
238
  module_ref: string | null;
262
239
  target_domain_ref: string;
263
- node_ref: string;
264
240
  owner_cell_ref: string;
265
241
  canonical_fact_slice_digest: string;
266
242
  }, {
267
243
  source_ref: string;
268
244
  requirement_ref: string;
269
- subject_key: {
270
- kind: string;
271
- namespace: string;
272
- protocol: "context.subject-key/v1";
273
- local_key: string;
274
- };
275
245
  target_ref: string;
276
246
  module_ref: string | null;
277
247
  target_domain_ref: string;
278
- node_ref: string;
279
248
  owner_cell_ref: string;
280
249
  canonical_fact_slice_digest: string;
281
250
  }>;
@@ -292,52 +261,21 @@ export declare const indexerQuestionTargetInventorySchema: z.ZodObject<{
292
261
  owner_cell_ref: z.ZodString;
293
262
  source_ref: z.ZodString;
294
263
  module_ref: z.ZodNullable<z.ZodString>;
295
- subject_key: z.ZodObject<{
296
- protocol: z.ZodLiteral<"context.subject-key/v1">;
297
- namespace: z.ZodEffects<z.ZodString, string, string>;
298
- kind: z.ZodEffects<z.ZodString, string, string>;
299
- local_key: z.ZodEffects<z.ZodString, string, string>;
300
- }, "strict", z.ZodTypeAny, {
301
- kind: string;
302
- namespace: string;
303
- protocol: "context.subject-key/v1";
304
- local_key: string;
305
- }, {
306
- kind: string;
307
- namespace: string;
308
- protocol: "context.subject-key/v1";
309
- local_key: string;
310
- }>;
311
- node_ref: z.ZodString;
312
264
  canonical_fact_slice_digest: z.ZodString;
313
265
  }, "strict", z.ZodTypeAny, {
314
266
  source_ref: string;
315
267
  requirement_ref: string;
316
- subject_key: {
317
- kind: string;
318
- namespace: string;
319
- protocol: "context.subject-key/v1";
320
- local_key: string;
321
- };
322
268
  target_ref: string;
323
269
  module_ref: string | null;
324
270
  target_domain_ref: string;
325
- node_ref: string;
326
271
  owner_cell_ref: string;
327
272
  canonical_fact_slice_digest: string;
328
273
  }, {
329
274
  source_ref: string;
330
275
  requirement_ref: string;
331
- subject_key: {
332
- kind: string;
333
- namespace: string;
334
- protocol: "context.subject-key/v1";
335
- local_key: string;
336
- };
337
276
  target_ref: string;
338
277
  module_ref: string | null;
339
278
  target_domain_ref: string;
340
- node_ref: string;
341
279
  owner_cell_ref: string;
342
280
  canonical_fact_slice_digest: string;
343
281
  }>, "many">;
@@ -348,16 +286,9 @@ export declare const indexerQuestionTargetInventorySchema: z.ZodObject<{
348
286
  items: {
349
287
  source_ref: string;
350
288
  requirement_ref: string;
351
- subject_key: {
352
- kind: string;
353
- namespace: string;
354
- protocol: "context.subject-key/v1";
355
- local_key: string;
356
- };
357
289
  target_ref: string;
358
290
  module_ref: string | null;
359
291
  target_domain_ref: string;
360
- node_ref: string;
361
292
  owner_cell_ref: string;
362
293
  canonical_fact_slice_digest: string;
363
294
  }[];
@@ -370,16 +301,9 @@ export declare const indexerQuestionTargetInventorySchema: z.ZodObject<{
370
301
  items: {
371
302
  source_ref: string;
372
303
  requirement_ref: string;
373
- subject_key: {
374
- kind: string;
375
- namespace: string;
376
- protocol: "context.subject-key/v1";
377
- local_key: string;
378
- };
379
304
  target_ref: string;
380
305
  module_ref: string | null;
381
306
  target_domain_ref: string;
382
- node_ref: string;
383
307
  owner_cell_ref: string;
384
308
  canonical_fact_slice_digest: string;
385
309
  }[];
@@ -388,18 +312,14 @@ export declare const indexerQuestionTargetInventorySchema: z.ZodObject<{
388
312
  }>;
389
313
  export type IndexerQuestionTargetInventoryItem = z.infer<typeof questionTargetInventoryItemSchema>;
390
314
  export type IndexerQuestionTargetInventory = z.infer<typeof indexerQuestionTargetInventorySchema>;
391
- export declare function indexerQuestionSubjectTargetRef(input: {
392
- target_domain_ref: string;
393
- owner_cell_ref: string;
394
- subject_key: unknown;
395
- }): string;
315
+ export declare function indexerQuestionSubjectTargetRef(input: Pick<IndexerQuestionTargetInventoryItem, "target_domain_ref" | "owner_cell_ref" | "source_ref" | "module_ref" | "canonical_fact_slice_digest">): string;
396
316
  export declare function indexerQuestionTargetItemDigest(item: IndexerQuestionTargetInventoryItem): string;
397
317
  export declare function indexerQuestionTargetInventoryDigest(value: Omit<IndexerQuestionTargetInventory, "inventory_digest">): string;
398
318
  export declare function buildIndexerQuestionTargetInventory(input: {
399
319
  requirement_set_digest: string;
400
320
  profile_contract_digests: readonly string[];
401
321
  source_inventory_digests: readonly string[];
402
- items: readonly Omit<IndexerQuestionTargetInventoryItem, "target_ref" | "node_ref">[];
322
+ items: readonly Omit<IndexerQuestionTargetInventoryItem, "target_ref">[];
403
323
  }): IndexerQuestionTargetInventory;
404
324
  export declare function validateIndexerQuestionTargetInventory(value: unknown): IndexerQuestionTargetInventory;
405
325
  export declare function indexerMaterialQuestionKey(input: {
@@ -12,16 +12,16 @@ declare const readerTargetIdentityObservationSchema: z.ZodObject<{
12
12
  evidence_refs: z.ZodArray<z.ZodString, "many">;
13
13
  }, "strict", z.ZodTypeAny, {
14
14
  source_ref: string;
15
- evidence_refs: string[];
16
15
  content_digest: string;
16
+ evidence_refs: string[];
17
17
  module_ref: string | null;
18
18
  observation_ref: string;
19
19
  canonical_identity_ref: string;
20
20
  observation_kind: "declaration" | "lightweight-evidence" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
21
21
  }, {
22
22
  source_ref: string;
23
- evidence_refs: string[];
24
23
  content_digest: string;
24
+ evidence_refs: string[];
25
25
  module_ref: string | null;
26
26
  observation_ref: string;
27
27
  canonical_identity_ref: string;
@@ -40,16 +40,16 @@ export declare const indexerReaderTargetFactInventorySchema: z.ZodObject<{
40
40
  evidence_refs: z.ZodArray<z.ZodString, "many">;
41
41
  }, "strict", z.ZodTypeAny, {
42
42
  source_ref: string;
43
- evidence_refs: string[];
44
43
  content_digest: string;
44
+ evidence_refs: string[];
45
45
  module_ref: string | null;
46
46
  observation_ref: string;
47
47
  canonical_identity_ref: string;
48
48
  observation_kind: "declaration" | "lightweight-evidence" | "public-export" | "contract-declaration" | "runtime-registration" | "approved-subject" | "partition-subject" | "symbol-reference" | "import-alias" | "re-export-alias" | "internal-helper-reference";
49
49
  }, {
50
50
  source_ref: string;
51
- evidence_refs: string[];
52
51
  content_digest: string;
52
+ evidence_refs: string[];
53
53
  module_ref: string | null;
54
54
  observation_ref: string;
55
55
  canonical_identity_ref: string;
@@ -62,8 +62,8 @@ export declare const indexerReaderTargetFactInventorySchema: z.ZodObject<{
62
62
  source_scope_digest: string;
63
63
  observations: {
64
64
  source_ref: string;
65
- evidence_refs: string[];
66
65
  content_digest: string;
66
+ evidence_refs: string[];
67
67
  module_ref: string | null;
68
68
  observation_ref: string;
69
69
  canonical_identity_ref: string;
@@ -75,8 +75,8 @@ export declare const indexerReaderTargetFactInventorySchema: z.ZodObject<{
75
75
  source_scope_digest: string;
76
76
  observations: {
77
77
  source_ref: string;
78
- evidence_refs: string[];
79
78
  content_digest: string;
79
+ evidence_refs: string[];
80
80
  module_ref: string | null;
81
81
  observation_ref: string;
82
82
  canonical_identity_ref: string;
@@ -23,8 +23,8 @@ declare const requirementSummarySchema: z.ZodObject<{
23
23
  coverage_domain: string;
24
24
  obligation: "required" | "optional" | "out-of-scope";
25
25
  }[];
26
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
27
26
  scenario: string;
27
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
28
28
  target_source_refs: string[];
29
29
  evidence_source_refs: string[];
30
30
  }, {
@@ -33,8 +33,8 @@ declare const requirementSummarySchema: z.ZodObject<{
33
33
  coverage_domain: string;
34
34
  obligation: "required" | "optional" | "out-of-scope";
35
35
  }[];
36
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
37
36
  scenario: string;
37
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
38
38
  target_source_refs: string[];
39
39
  evidence_source_refs: string[];
40
40
  }>;
@@ -1122,8 +1122,8 @@ export declare const indexerRequirementInspectionSchema: z.ZodObject<{
1122
1122
  coverage_domain: string;
1123
1123
  obligation: "required" | "optional" | "out-of-scope";
1124
1124
  }[];
1125
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1126
1125
  scenario: string;
1126
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1127
1127
  target_source_refs: string[];
1128
1128
  evidence_source_refs: string[];
1129
1129
  }, {
@@ -1132,8 +1132,8 @@ export declare const indexerRequirementInspectionSchema: z.ZodObject<{
1132
1132
  coverage_domain: string;
1133
1133
  obligation: "required" | "optional" | "out-of-scope";
1134
1134
  }[];
1135
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1136
1135
  scenario: string;
1136
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1137
1137
  target_source_refs: string[];
1138
1138
  evidence_source_refs: string[];
1139
1139
  }>, "many">;
@@ -1206,8 +1206,8 @@ export declare const indexerRequirementInspectionSchema: z.ZodObject<{
1206
1206
  coverage_domain: string;
1207
1207
  obligation: "required" | "optional" | "out-of-scope";
1208
1208
  }[];
1209
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1210
1209
  scenario: string;
1210
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1211
1211
  target_source_refs: string[];
1212
1212
  evidence_source_refs: string[];
1213
1213
  }[];
@@ -1280,8 +1280,8 @@ export declare const indexerRequirementInspectionSchema: z.ZodObject<{
1280
1280
  coverage_domain: string;
1281
1281
  obligation: "required" | "optional" | "out-of-scope";
1282
1282
  }[];
1283
- evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1284
1283
  scenario: string;
1284
+ evidence_kinds: ("code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1285
1285
  target_source_refs: string[];
1286
1286
  evidence_source_refs: string[];
1287
1287
  }[];