@c4a/context 0.6.19 → 0.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.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/codeIndexPlan.d.ts +34 -0
  4. package/docs/README.md +7 -0
  5. package/docs/README.zh-CN.md +5 -0
  6. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  7. package/docs/guides/indexer-provider-and-customization.md +140 -0
  8. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  9. package/docs/reference/code-extractors.md +2 -2
  10. package/docs/reference/indexer-provider-protocol.md +819 -0
  11. package/docs/reference/project-api.md +2 -2
  12. package/index.d.ts +47 -1
  13. package/index.js +28239 -3952
  14. package/indexerAgentStepProtocol.d.ts +9391 -0
  15. package/indexerArtifactDependencies.d.ts +689 -0
  16. package/indexerArtifactPolicy.d.ts +335 -0
  17. package/indexerArtifactResult.d.ts +2010 -0
  18. package/indexerAuditFacts.d.ts +66 -0
  19. package/indexerAuditOverrideReadiness.d.ts +27 -0
  20. package/indexerAuditProtocol.d.ts +238 -0
  21. package/indexerAuditRevision.d.ts +726 -0
  22. package/indexerAuditRevisionActions.d.ts +236 -0
  23. package/indexerAuthoringFixture.d.ts +152 -0
  24. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  25. package/indexerBenchmark.d.ts +1062 -0
  26. package/indexerCandidateCompile.d.ts +801 -0
  27. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  28. package/indexerCatalogFallback.d.ts +1262 -0
  29. package/indexerCollectionMapping.d.ts +75 -0
  30. package/indexerContentLayers.d.ts +137 -0
  31. package/indexerControlledInvocation.d.ts +512 -0
  32. package/indexerControlledProgram.d.ts +12535 -0
  33. package/indexerCoreExports.d.ts +21 -0
  34. package/indexerCustomizationDraft.d.ts +13800 -0
  35. package/indexerCustomizationLadder.d.ts +103 -0
  36. package/indexerDependencyView.d.ts +1610 -0
  37. package/indexerEvidenceAdapterResult.d.ts +504 -0
  38. package/indexerExampleDecision.d.ts +1606 -0
  39. package/indexerExampleIdentity.d.ts +132 -0
  40. package/indexerExampleIdentityAudit.d.ts +70 -0
  41. package/indexerExampleLinkageAudit.d.ts +80 -0
  42. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  43. package/indexerIncrementalImpact.d.ts +221 -0
  44. package/indexerInventoryDisposition.d.ts +443 -0
  45. package/indexerLayerComposition.d.ts +1652 -0
  46. package/indexerLayoutChange.d.ts +329 -0
  47. package/indexerLayoutProposalSet.d.ts +447 -0
  48. package/indexerLayoutResolver.d.ts +342 -0
  49. package/indexerLayoutTransition.d.ts +247 -0
  50. package/indexerLifecycle.d.ts +53 -0
  51. package/indexerMainLifecycle.d.ts +258 -0
  52. package/indexerMainRunLedger.d.ts +888 -0
  53. package/indexerMainRunProtocol.d.ts +6471 -0
  54. package/indexerMainWorkset.d.ts +2141 -0
  55. package/indexerMaterialAnswer.d.ts +738 -0
  56. package/indexerMaterialAnswerActualization.d.ts +91 -0
  57. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  58. package/indexerMaterialAnswerFlow.d.ts +63 -0
  59. package/indexerMaterialAnswerLayout.d.ts +76 -0
  60. package/indexerMaterialAnswerReview.d.ts +217 -0
  61. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  62. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  63. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  64. package/indexerMaterialGapLedger.d.ts +3111 -0
  65. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  66. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  67. package/indexerNavigationArtifactGraph.d.ts +5 -0
  68. package/indexerNavigationArtifactPlan.d.ts +39 -0
  69. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  70. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  71. package/indexerOverlayTrust.d.ts +1425 -0
  72. package/indexerParserCoordinate.d.ts +222 -0
  73. package/indexerParserFactView.d.ts +503 -0
  74. package/indexerPartitionConvergence.d.ts +496 -0
  75. package/indexerPartitionPlan.d.ts +919 -0
  76. package/indexerPartitionStrategyResolution.d.ts +594 -0
  77. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  78. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  79. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  80. package/indexerPostAuthorComposition.d.ts +2000 -0
  81. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  82. package/indexerPrimaryProjection.d.ts +262 -0
  83. package/indexerProfileContract.d.ts +3034 -0
  84. package/indexerProfileMetricAudit.d.ts +218 -0
  85. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  86. package/indexerProgramRunProtocol.d.ts +7642 -0
  87. package/indexerProjectProposal.d.ts +2807 -0
  88. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  89. package/indexerProjectedArtifactPlan.d.ts +217 -0
  90. package/indexerProtocolCommon.d.ts +29 -0
  91. package/indexerProvider.d.ts +2573 -0
  92. package/indexerProviderComposition.d.ts +1357 -0
  93. package/indexerProviderContractReferences.d.ts +13 -0
  94. package/indexerProviderProfileResolution.d.ts +20 -0
  95. package/indexerProviderResolution.d.ts +752 -0
  96. package/indexerProviderResolutionAction.d.ts +678 -0
  97. package/indexerProviderRouting.d.ts +3909 -0
  98. package/indexerProviderSelectionProposal.d.ts +3311 -0
  99. package/indexerQuestionAuthority.d.ts +419 -0
  100. package/indexerReaderTargetInventory.d.ts +161 -0
  101. package/indexerReferenceOnlyAudit.d.ts +90 -0
  102. package/indexerRegistry.d.ts +3019 -0
  103. package/indexerRequirementComparison.d.ts +44 -0
  104. package/indexerRequirementConfirmation.d.ts +1193 -0
  105. package/indexerRequirementLifecycle.d.ts +3314 -0
  106. package/indexerRestrictedSelector.d.ts +63 -0
  107. package/indexerResultReconciliation.d.ts +6844 -0
  108. package/indexerResultReconciliationRun.d.ts +15 -0
  109. package/indexerRunEnvelope.d.ts +384 -0
  110. package/indexerRunProtocolCommon.d.ts +21 -0
  111. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  112. package/indexerStructuredDeclaration.d.ts +513 -0
  113. package/indexerSubjectCatalog.d.ts +230 -0
  114. package/indexerSubjectIdentity.d.ts +19 -0
  115. package/indexerSubjectKeyAuthority.d.ts +785 -0
  116. package/indexerTemplateRendering.d.ts +485 -0
  117. package/indexerToolSnapshot.d.ts +431 -0
  118. package/indexerWorksetRead.d.ts +287 -0
  119. package/package.json +1 -1
  120. package/phases.d.ts +1 -1
@@ -0,0 +1,3034 @@
1
+ import { z } from "zod";
2
+ import type { IndexerJson } from "./indexerRegistry.js";
3
+ export declare const indexerOperatorContractSchema: z.ZodEffects<z.ZodObject<{
4
+ protocol: z.ZodLiteral<"context.indexer.operator-contract/v1">;
5
+ version: z.ZodString;
6
+ selector_operators: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
7
+ grouping_operators: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
8
+ metric_operators: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
9
+ threshold_operators: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
10
+ selector_fact_paths: z.ZodArray<z.ZodString, "many">;
11
+ contract_digest: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ protocol: "context.indexer.operator-contract/v1";
14
+ contract_digest: string;
15
+ version: string;
16
+ selector_operators: string[];
17
+ grouping_operators: string[];
18
+ metric_operators: string[];
19
+ threshold_operators: string[];
20
+ selector_fact_paths: string[];
21
+ }, {
22
+ protocol: "context.indexer.operator-contract/v1";
23
+ contract_digest: string;
24
+ version: string;
25
+ selector_operators: string[];
26
+ grouping_operators: string[];
27
+ metric_operators: string[];
28
+ threshold_operators: string[];
29
+ selector_fact_paths: string[];
30
+ }>, {
31
+ protocol: "context.indexer.operator-contract/v1";
32
+ contract_digest: string;
33
+ version: string;
34
+ selector_operators: string[];
35
+ grouping_operators: string[];
36
+ metric_operators: string[];
37
+ threshold_operators: string[];
38
+ selector_fact_paths: string[];
39
+ }, {
40
+ protocol: "context.indexer.operator-contract/v1";
41
+ contract_digest: string;
42
+ version: string;
43
+ selector_operators: string[];
44
+ grouping_operators: string[];
45
+ metric_operators: string[];
46
+ threshold_operators: string[];
47
+ selector_fact_paths: string[];
48
+ }>;
49
+ export declare const indexerMetricContractSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
50
+ id: z.ZodEffects<z.ZodString, string, string>;
51
+ unit: z.ZodEnum<["count", "ratio"]>;
52
+ operator: z.ZodEffects<z.ZodString, string, string>;
53
+ threshold_policy: z.ZodLiteral<"explicit">;
54
+ direction: z.ZodLiteral<"minimum">;
55
+ recommended_min: z.ZodNumber;
56
+ hard_min: z.ZodNumber;
57
+ }, "strict", z.ZodTypeAny, {
58
+ id: string;
59
+ operator: string;
60
+ unit: "count" | "ratio";
61
+ threshold_policy: "explicit";
62
+ direction: "minimum";
63
+ recommended_min: number;
64
+ hard_min: number;
65
+ }, {
66
+ id: string;
67
+ operator: string;
68
+ unit: "count" | "ratio";
69
+ threshold_policy: "explicit";
70
+ direction: "minimum";
71
+ recommended_min: number;
72
+ hard_min: number;
73
+ }>, {
74
+ id: string;
75
+ operator: string;
76
+ unit: "count" | "ratio";
77
+ threshold_policy: "explicit";
78
+ direction: "minimum";
79
+ recommended_min: number;
80
+ hard_min: number;
81
+ }, {
82
+ id: string;
83
+ operator: string;
84
+ unit: "count" | "ratio";
85
+ threshold_policy: "explicit";
86
+ direction: "minimum";
87
+ recommended_min: number;
88
+ hard_min: number;
89
+ }>, z.ZodEffects<z.ZodObject<{
90
+ id: z.ZodEffects<z.ZodString, string, string>;
91
+ unit: z.ZodEnum<["count", "ratio"]>;
92
+ operator: z.ZodEffects<z.ZodString, string, string>;
93
+ threshold_policy: z.ZodLiteral<"explicit">;
94
+ direction: z.ZodLiteral<"maximum">;
95
+ recommended_max: z.ZodNumber;
96
+ hard_max: z.ZodNumber;
97
+ }, "strict", z.ZodTypeAny, {
98
+ id: string;
99
+ operator: string;
100
+ unit: "count" | "ratio";
101
+ threshold_policy: "explicit";
102
+ direction: "maximum";
103
+ recommended_max: number;
104
+ hard_max: number;
105
+ }, {
106
+ id: string;
107
+ operator: string;
108
+ unit: "count" | "ratio";
109
+ threshold_policy: "explicit";
110
+ direction: "maximum";
111
+ recommended_max: number;
112
+ hard_max: number;
113
+ }>, {
114
+ id: string;
115
+ operator: string;
116
+ unit: "count" | "ratio";
117
+ threshold_policy: "explicit";
118
+ direction: "maximum";
119
+ recommended_max: number;
120
+ hard_max: number;
121
+ }, {
122
+ id: string;
123
+ operator: string;
124
+ unit: "count" | "ratio";
125
+ threshold_policy: "explicit";
126
+ direction: "maximum";
127
+ recommended_max: number;
128
+ hard_max: number;
129
+ }>, z.ZodObject<{
130
+ id: z.ZodEffects<z.ZodString, string, string>;
131
+ unit: z.ZodEnum<["count", "ratio"]>;
132
+ operator: z.ZodEffects<z.ZodString, string, string>;
133
+ threshold_policy: z.ZodLiteral<"inflation-sensitive">;
134
+ direction: z.ZodLiteral<"maximum">;
135
+ }, "strict", z.ZodTypeAny, {
136
+ id: string;
137
+ operator: string;
138
+ unit: "count" | "ratio";
139
+ threshold_policy: "inflation-sensitive";
140
+ direction: "maximum";
141
+ }, {
142
+ id: string;
143
+ operator: string;
144
+ unit: "count" | "ratio";
145
+ threshold_policy: "inflation-sensitive";
146
+ direction: "maximum";
147
+ }>]>;
148
+ export declare const indexerSubjectKeyContractSchema: z.ZodEffects<z.ZodObject<{
149
+ version: z.ZodNumber;
150
+ namespace: z.ZodObject<{
151
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
154
+ }, {
155
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
156
+ }>;
157
+ kinds: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodEffects<z.ZodString, string, string>;
159
+ local_key: z.ZodObject<{
160
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
161
+ }, "strict", z.ZodTypeAny, {
162
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
163
+ }, {
164
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
165
+ }>;
166
+ }, "strict", z.ZodTypeAny, {
167
+ id: string;
168
+ local_key: {
169
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
170
+ };
171
+ }, {
172
+ id: string;
173
+ local_key: {
174
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
175
+ };
176
+ }>, "many">;
177
+ normalization: z.ZodOptional<z.ZodArray<z.ZodEnum<["trim", "unicode-nfc", "preserve-case", "lowercase"]>, "many">>;
178
+ }, "strict", z.ZodTypeAny, {
179
+ namespace: {
180
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
181
+ };
182
+ version: number;
183
+ kinds: {
184
+ id: string;
185
+ local_key: {
186
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
187
+ };
188
+ }[];
189
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
190
+ }, {
191
+ namespace: {
192
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
193
+ };
194
+ version: number;
195
+ kinds: {
196
+ id: string;
197
+ local_key: {
198
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
199
+ };
200
+ }[];
201
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
202
+ }>, {
203
+ namespace: {
204
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
205
+ };
206
+ version: number;
207
+ kinds: {
208
+ id: string;
209
+ local_key: {
210
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
211
+ };
212
+ }[];
213
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
214
+ }, {
215
+ namespace: {
216
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
217
+ };
218
+ version: number;
219
+ kinds: {
220
+ id: string;
221
+ local_key: {
222
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
223
+ };
224
+ }[];
225
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
226
+ }>;
227
+ export declare const indexerProfileSubjectKeySchema: z.ZodEffects<z.ZodObject<{
228
+ version: z.ZodNumber;
229
+ namespace: z.ZodObject<{
230
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
231
+ }, "strict", z.ZodTypeAny, {
232
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
233
+ }, {
234
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
235
+ }>;
236
+ kinds: z.ZodArray<z.ZodObject<{
237
+ id: z.ZodEffects<z.ZodString, string, string>;
238
+ local_key: z.ZodObject<{
239
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
240
+ }, "strict", z.ZodTypeAny, {
241
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
242
+ }, {
243
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
244
+ }>;
245
+ }, "strict", z.ZodTypeAny, {
246
+ id: string;
247
+ local_key: {
248
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
249
+ };
250
+ }, {
251
+ id: string;
252
+ local_key: {
253
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
254
+ };
255
+ }>, "many">;
256
+ normalization: z.ZodOptional<z.ZodArray<z.ZodEnum<["trim", "unicode-nfc", "preserve-case", "lowercase"]>, "many">>;
257
+ } & {
258
+ profile: z.ZodEffects<z.ZodString, string, string>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ namespace: {
261
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
262
+ };
263
+ version: number;
264
+ profile: string;
265
+ kinds: {
266
+ id: string;
267
+ local_key: {
268
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
269
+ };
270
+ }[];
271
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
272
+ }, {
273
+ namespace: {
274
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
275
+ };
276
+ version: number;
277
+ profile: string;
278
+ kinds: {
279
+ id: string;
280
+ local_key: {
281
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
282
+ };
283
+ }[];
284
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
285
+ }>, {
286
+ namespace: {
287
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
288
+ };
289
+ version: number;
290
+ profile: string;
291
+ kinds: {
292
+ id: string;
293
+ local_key: {
294
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
295
+ };
296
+ }[];
297
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
298
+ }, {
299
+ namespace: {
300
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
301
+ };
302
+ version: number;
303
+ profile: string;
304
+ kinds: {
305
+ id: string;
306
+ local_key: {
307
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
308
+ };
309
+ }[];
310
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
311
+ }>;
312
+ export declare const indexerInventoryDomainSchema: z.ZodObject<{
313
+ id: z.ZodEffects<z.ZodString, string, string>;
314
+ selector: z.ZodObject<{
315
+ operator: z.ZodEffects<z.ZodString, string, string>;
316
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ operator: string;
319
+ parameters?: Record<string, IndexerJson> | undefined;
320
+ }, {
321
+ operator: string;
322
+ parameters?: Record<string, IndexerJson> | undefined;
323
+ }>;
324
+ disposition_required: z.ZodLiteral<true>;
325
+ }, "strict", z.ZodTypeAny, {
326
+ id: string;
327
+ selector: {
328
+ operator: string;
329
+ parameters?: Record<string, IndexerJson> | undefined;
330
+ };
331
+ disposition_required: true;
332
+ }, {
333
+ id: string;
334
+ selector: {
335
+ operator: string;
336
+ parameters?: Record<string, IndexerJson> | undefined;
337
+ };
338
+ disposition_required: true;
339
+ }>;
340
+ export declare const indexerQuestionTargetDomainSchema: z.ZodObject<{
341
+ id: z.ZodEffects<z.ZodString, string, string>;
342
+ selector: z.ZodObject<{
343
+ operator: z.ZodEffects<z.ZodString, string, string>;
344
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
345
+ }, "strict", z.ZodTypeAny, {
346
+ operator: string;
347
+ parameters?: Record<string, IndexerJson> | undefined;
348
+ }, {
349
+ operator: string;
350
+ parameters?: Record<string, IndexerJson> | undefined;
351
+ }>;
352
+ grouping_operator: z.ZodEffects<z.ZodString, string, string>;
353
+ subject_key_kind: z.ZodEffects<z.ZodString, string, string>;
354
+ granularity: z.ZodEnum<["module", "identity"]>;
355
+ }, "strict", z.ZodTypeAny, {
356
+ id: string;
357
+ selector: {
358
+ operator: string;
359
+ parameters?: Record<string, IndexerJson> | undefined;
360
+ };
361
+ grouping_operator: string;
362
+ subject_key_kind: string;
363
+ granularity: "module" | "identity";
364
+ }, {
365
+ id: string;
366
+ selector: {
367
+ operator: string;
368
+ parameters?: Record<string, IndexerJson> | undefined;
369
+ };
370
+ grouping_operator: string;
371
+ subject_key_kind: string;
372
+ granularity: "module" | "identity";
373
+ }>;
374
+ export declare const indexerReaderQuestionContractSchema: z.ZodEffects<z.ZodObject<{
375
+ ref: z.ZodString;
376
+ semantic: z.ZodEffects<z.ZodString, string, string>;
377
+ version: z.ZodNumber;
378
+ coverage_domain: z.ZodEffects<z.ZodString, string, string>;
379
+ target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
380
+ target_selector: z.ZodObject<{
381
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
382
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
383
+ }, "strict", z.ZodTypeAny, {
384
+ protocol: "context.indexer.selector/v1";
385
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
386
+ }, {
387
+ protocol: "context.indexer.selector/v1";
388
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
389
+ }>;
390
+ evidence_contract: z.ZodObject<{
391
+ accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
392
+ minimum_items: z.ZodNumber;
393
+ minimum_distinct_sources: z.ZodNumber;
394
+ provenance_constraints: z.ZodOptional<z.ZodObject<{
395
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
396
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
397
+ }, "strict", z.ZodTypeAny, {
398
+ protocol: "context.indexer.selector/v1";
399
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
400
+ }, {
401
+ protocol: "context.indexer.selector/v1";
402
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
403
+ }>>;
404
+ }, "strict", z.ZodTypeAny, {
405
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
406
+ minimum_items: number;
407
+ minimum_distinct_sources: number;
408
+ provenance_constraints?: {
409
+ protocol: "context.indexer.selector/v1";
410
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
411
+ } | undefined;
412
+ }, {
413
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
414
+ minimum_items: number;
415
+ minimum_distinct_sources: number;
416
+ provenance_constraints?: {
417
+ protocol: "context.indexer.selector/v1";
418
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
419
+ } | undefined;
420
+ }>;
421
+ allowed_exclusion_reason_codes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
422
+ }, "strict", z.ZodTypeAny, {
423
+ ref: string;
424
+ version: number;
425
+ semantic: string;
426
+ coverage_domain: string;
427
+ target_domain_ref: string;
428
+ target_selector: {
429
+ protocol: "context.indexer.selector/v1";
430
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
431
+ };
432
+ evidence_contract: {
433
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
434
+ minimum_items: number;
435
+ minimum_distinct_sources: number;
436
+ provenance_constraints?: {
437
+ protocol: "context.indexer.selector/v1";
438
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
439
+ } | undefined;
440
+ };
441
+ allowed_exclusion_reason_codes?: string[] | undefined;
442
+ }, {
443
+ ref: string;
444
+ version: number;
445
+ semantic: string;
446
+ coverage_domain: string;
447
+ target_domain_ref: string;
448
+ target_selector: {
449
+ protocol: "context.indexer.selector/v1";
450
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
451
+ };
452
+ evidence_contract: {
453
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
454
+ minimum_items: number;
455
+ minimum_distinct_sources: number;
456
+ provenance_constraints?: {
457
+ protocol: "context.indexer.selector/v1";
458
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
459
+ } | undefined;
460
+ };
461
+ allowed_exclusion_reason_codes?: string[] | undefined;
462
+ }>, {
463
+ ref: string;
464
+ version: number;
465
+ semantic: string;
466
+ coverage_domain: string;
467
+ target_domain_ref: string;
468
+ target_selector: {
469
+ protocol: "context.indexer.selector/v1";
470
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
471
+ };
472
+ evidence_contract: {
473
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
474
+ minimum_items: number;
475
+ minimum_distinct_sources: number;
476
+ provenance_constraints?: {
477
+ protocol: "context.indexer.selector/v1";
478
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
479
+ } | undefined;
480
+ };
481
+ allowed_exclusion_reason_codes?: string[] | undefined;
482
+ }, {
483
+ ref: string;
484
+ version: number;
485
+ semantic: string;
486
+ coverage_domain: string;
487
+ target_domain_ref: string;
488
+ target_selector: {
489
+ protocol: "context.indexer.selector/v1";
490
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
491
+ };
492
+ evidence_contract: {
493
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
494
+ minimum_items: number;
495
+ minimum_distinct_sources: number;
496
+ provenance_constraints?: {
497
+ protocol: "context.indexer.selector/v1";
498
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
499
+ } | undefined;
500
+ };
501
+ allowed_exclusion_reason_codes?: string[] | undefined;
502
+ }>;
503
+ export declare const indexerArtifactPolicyVariantSchema: z.ZodObject<{
504
+ id: z.ZodEffects<z.ZodString, string, string>;
505
+ eligibility: z.ZodObject<{
506
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
507
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
508
+ }, "strict", z.ZodTypeAny, {
509
+ protocol: "context.indexer.selector/v1";
510
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
511
+ }, {
512
+ protocol: "context.indexer.selector/v1";
513
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
514
+ }>;
515
+ artifact_kinds: z.ZodEffects<z.ZodObject<{
516
+ required: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
517
+ discretionary: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
518
+ }, "strict", z.ZodTypeAny, {
519
+ required: string[];
520
+ discretionary: string[];
521
+ }, {
522
+ required: string[];
523
+ discretionary: string[];
524
+ }>, {
525
+ required: string[];
526
+ discretionary: string[];
527
+ }, {
528
+ required: string[];
529
+ discretionary: string[];
530
+ }>;
531
+ thresholds: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
532
+ recommended_max: z.ZodNumber;
533
+ }, "strict", z.ZodTypeAny, {
534
+ recommended_max: number;
535
+ }, {
536
+ recommended_max: number;
537
+ }>>;
538
+ }, "strict", z.ZodTypeAny, {
539
+ id: string;
540
+ thresholds: Record<string, {
541
+ recommended_max: number;
542
+ }>;
543
+ eligibility: {
544
+ protocol: "context.indexer.selector/v1";
545
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
546
+ };
547
+ artifact_kinds: {
548
+ required: string[];
549
+ discretionary: string[];
550
+ };
551
+ }, {
552
+ id: string;
553
+ thresholds: Record<string, {
554
+ recommended_max: number;
555
+ }>;
556
+ eligibility: {
557
+ protocol: "context.indexer.selector/v1";
558
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
559
+ };
560
+ artifact_kinds: {
561
+ required: string[];
562
+ discretionary: string[];
563
+ };
564
+ }>;
565
+ export declare const indexerLayoutMappingSchema: z.ZodEffects<z.ZodObject<{
566
+ source_roles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
567
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
568
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
569
+ artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
570
+ collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
571
+ }, "strict", z.ZodTypeAny, {
572
+ collection: import("./contracts.js").TopLevelNamespace;
573
+ artifact_kinds: string[];
574
+ source_roles: string[];
575
+ document_kind: string;
576
+ reader_goal: string;
577
+ }, {
578
+ collection: import("./contracts.js").TopLevelNamespace;
579
+ artifact_kinds: string[];
580
+ source_roles: string[];
581
+ document_kind: string;
582
+ reader_goal: string;
583
+ }>, {
584
+ collection: import("./contracts.js").TopLevelNamespace;
585
+ artifact_kinds: string[];
586
+ source_roles: string[];
587
+ document_kind: string;
588
+ reader_goal: string;
589
+ }, {
590
+ collection: import("./contracts.js").TopLevelNamespace;
591
+ artifact_kinds: string[];
592
+ source_roles: string[];
593
+ document_kind: string;
594
+ reader_goal: string;
595
+ }>;
596
+ export declare const indexerProfileContractEntrySchema: z.ZodEffects<z.ZodObject<{
597
+ id: z.ZodEffects<z.ZodString, string, string>;
598
+ parser_requirements: z.ZodArray<z.ZodObject<{
599
+ protocol: z.ZodLiteral<"context.indexer.parser-requirement/v1">;
600
+ capability: z.ZodEffects<z.ZodString, string, string>;
601
+ abi: z.ZodString;
602
+ abi_digest: z.ZodString;
603
+ community_coordinate: z.ZodObject<{
604
+ package: z.ZodString;
605
+ export: z.ZodString;
606
+ version: z.ZodString;
607
+ }, "strict", z.ZodTypeAny, {
608
+ export: string;
609
+ package: string;
610
+ version: string;
611
+ }, {
612
+ export: string;
613
+ package: string;
614
+ version: string;
615
+ }>;
616
+ } & {
617
+ requirement_digest: z.ZodString;
618
+ }, "strict", z.ZodTypeAny, {
619
+ protocol: "context.indexer.parser-requirement/v1";
620
+ capability: string;
621
+ abi: string;
622
+ abi_digest: string;
623
+ community_coordinate: {
624
+ export: string;
625
+ package: string;
626
+ version: string;
627
+ };
628
+ requirement_digest: string;
629
+ }, {
630
+ protocol: "context.indexer.parser-requirement/v1";
631
+ capability: string;
632
+ abi: string;
633
+ abi_digest: string;
634
+ community_coordinate: {
635
+ export: string;
636
+ package: string;
637
+ version: string;
638
+ };
639
+ requirement_digest: string;
640
+ }>, "many">;
641
+ inventory_domains: z.ZodArray<z.ZodObject<{
642
+ id: z.ZodEffects<z.ZodString, string, string>;
643
+ selector: z.ZodObject<{
644
+ operator: z.ZodEffects<z.ZodString, string, string>;
645
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
646
+ }, "strict", z.ZodTypeAny, {
647
+ operator: string;
648
+ parameters?: Record<string, IndexerJson> | undefined;
649
+ }, {
650
+ operator: string;
651
+ parameters?: Record<string, IndexerJson> | undefined;
652
+ }>;
653
+ disposition_required: z.ZodLiteral<true>;
654
+ }, "strict", z.ZodTypeAny, {
655
+ id: string;
656
+ selector: {
657
+ operator: string;
658
+ parameters?: Record<string, IndexerJson> | undefined;
659
+ };
660
+ disposition_required: true;
661
+ }, {
662
+ id: string;
663
+ selector: {
664
+ operator: string;
665
+ parameters?: Record<string, IndexerJson> | undefined;
666
+ };
667
+ disposition_required: true;
668
+ }>, "many">;
669
+ required_dispositions: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
670
+ metrics: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
671
+ id: z.ZodEffects<z.ZodString, string, string>;
672
+ unit: z.ZodEnum<["count", "ratio"]>;
673
+ operator: z.ZodEffects<z.ZodString, string, string>;
674
+ threshold_policy: z.ZodLiteral<"explicit">;
675
+ direction: z.ZodLiteral<"minimum">;
676
+ recommended_min: z.ZodNumber;
677
+ hard_min: z.ZodNumber;
678
+ }, "strict", z.ZodTypeAny, {
679
+ id: string;
680
+ operator: string;
681
+ unit: "count" | "ratio";
682
+ threshold_policy: "explicit";
683
+ direction: "minimum";
684
+ recommended_min: number;
685
+ hard_min: number;
686
+ }, {
687
+ id: string;
688
+ operator: string;
689
+ unit: "count" | "ratio";
690
+ threshold_policy: "explicit";
691
+ direction: "minimum";
692
+ recommended_min: number;
693
+ hard_min: number;
694
+ }>, {
695
+ id: string;
696
+ operator: string;
697
+ unit: "count" | "ratio";
698
+ threshold_policy: "explicit";
699
+ direction: "minimum";
700
+ recommended_min: number;
701
+ hard_min: number;
702
+ }, {
703
+ id: string;
704
+ operator: string;
705
+ unit: "count" | "ratio";
706
+ threshold_policy: "explicit";
707
+ direction: "minimum";
708
+ recommended_min: number;
709
+ hard_min: number;
710
+ }>, z.ZodEffects<z.ZodObject<{
711
+ id: z.ZodEffects<z.ZodString, string, string>;
712
+ unit: z.ZodEnum<["count", "ratio"]>;
713
+ operator: z.ZodEffects<z.ZodString, string, string>;
714
+ threshold_policy: z.ZodLiteral<"explicit">;
715
+ direction: z.ZodLiteral<"maximum">;
716
+ recommended_max: z.ZodNumber;
717
+ hard_max: z.ZodNumber;
718
+ }, "strict", z.ZodTypeAny, {
719
+ id: string;
720
+ operator: string;
721
+ unit: "count" | "ratio";
722
+ threshold_policy: "explicit";
723
+ direction: "maximum";
724
+ recommended_max: number;
725
+ hard_max: number;
726
+ }, {
727
+ id: string;
728
+ operator: string;
729
+ unit: "count" | "ratio";
730
+ threshold_policy: "explicit";
731
+ direction: "maximum";
732
+ recommended_max: number;
733
+ hard_max: number;
734
+ }>, {
735
+ id: string;
736
+ operator: string;
737
+ unit: "count" | "ratio";
738
+ threshold_policy: "explicit";
739
+ direction: "maximum";
740
+ recommended_max: number;
741
+ hard_max: number;
742
+ }, {
743
+ id: string;
744
+ operator: string;
745
+ unit: "count" | "ratio";
746
+ threshold_policy: "explicit";
747
+ direction: "maximum";
748
+ recommended_max: number;
749
+ hard_max: number;
750
+ }>, z.ZodObject<{
751
+ id: z.ZodEffects<z.ZodString, string, string>;
752
+ unit: z.ZodEnum<["count", "ratio"]>;
753
+ operator: z.ZodEffects<z.ZodString, string, string>;
754
+ threshold_policy: z.ZodLiteral<"inflation-sensitive">;
755
+ direction: z.ZodLiteral<"maximum">;
756
+ }, "strict", z.ZodTypeAny, {
757
+ id: string;
758
+ operator: string;
759
+ unit: "count" | "ratio";
760
+ threshold_policy: "inflation-sensitive";
761
+ direction: "maximum";
762
+ }, {
763
+ id: string;
764
+ operator: string;
765
+ unit: "count" | "ratio";
766
+ threshold_policy: "inflation-sensitive";
767
+ direction: "maximum";
768
+ }>]>, "many">;
769
+ artifact_policy_variants: z.ZodArray<z.ZodObject<{
770
+ id: z.ZodEffects<z.ZodString, string, string>;
771
+ eligibility: z.ZodObject<{
772
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
773
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
774
+ }, "strict", z.ZodTypeAny, {
775
+ protocol: "context.indexer.selector/v1";
776
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
777
+ }, {
778
+ protocol: "context.indexer.selector/v1";
779
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
780
+ }>;
781
+ artifact_kinds: z.ZodEffects<z.ZodObject<{
782
+ required: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
783
+ discretionary: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
784
+ }, "strict", z.ZodTypeAny, {
785
+ required: string[];
786
+ discretionary: string[];
787
+ }, {
788
+ required: string[];
789
+ discretionary: string[];
790
+ }>, {
791
+ required: string[];
792
+ discretionary: string[];
793
+ }, {
794
+ required: string[];
795
+ discretionary: string[];
796
+ }>;
797
+ thresholds: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
798
+ recommended_max: z.ZodNumber;
799
+ }, "strict", z.ZodTypeAny, {
800
+ recommended_max: number;
801
+ }, {
802
+ recommended_max: number;
803
+ }>>;
804
+ }, "strict", z.ZodTypeAny, {
805
+ id: string;
806
+ thresholds: Record<string, {
807
+ recommended_max: number;
808
+ }>;
809
+ eligibility: {
810
+ protocol: "context.indexer.selector/v1";
811
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
812
+ };
813
+ artifact_kinds: {
814
+ required: string[];
815
+ discretionary: string[];
816
+ };
817
+ }, {
818
+ id: string;
819
+ thresholds: Record<string, {
820
+ recommended_max: number;
821
+ }>;
822
+ eligibility: {
823
+ protocol: "context.indexer.selector/v1";
824
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
825
+ };
826
+ artifact_kinds: {
827
+ required: string[];
828
+ discretionary: string[];
829
+ };
830
+ }>, "many">;
831
+ question_target_domains: z.ZodArray<z.ZodObject<{
832
+ id: z.ZodEffects<z.ZodString, string, string>;
833
+ selector: z.ZodObject<{
834
+ operator: z.ZodEffects<z.ZodString, string, string>;
835
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
836
+ }, "strict", z.ZodTypeAny, {
837
+ operator: string;
838
+ parameters?: Record<string, IndexerJson> | undefined;
839
+ }, {
840
+ operator: string;
841
+ parameters?: Record<string, IndexerJson> | undefined;
842
+ }>;
843
+ grouping_operator: z.ZodEffects<z.ZodString, string, string>;
844
+ subject_key_kind: z.ZodEffects<z.ZodString, string, string>;
845
+ granularity: z.ZodEnum<["module", "identity"]>;
846
+ }, "strict", z.ZodTypeAny, {
847
+ id: string;
848
+ selector: {
849
+ operator: string;
850
+ parameters?: Record<string, IndexerJson> | undefined;
851
+ };
852
+ grouping_operator: string;
853
+ subject_key_kind: string;
854
+ granularity: "module" | "identity";
855
+ }, {
856
+ id: string;
857
+ selector: {
858
+ operator: string;
859
+ parameters?: Record<string, IndexerJson> | undefined;
860
+ };
861
+ grouping_operator: string;
862
+ subject_key_kind: string;
863
+ granularity: "module" | "identity";
864
+ }>, "many">;
865
+ reader_question_contracts: z.ZodArray<z.ZodEffects<z.ZodObject<{
866
+ ref: z.ZodString;
867
+ semantic: z.ZodEffects<z.ZodString, string, string>;
868
+ version: z.ZodNumber;
869
+ coverage_domain: z.ZodEffects<z.ZodString, string, string>;
870
+ target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
871
+ target_selector: z.ZodObject<{
872
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
873
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
874
+ }, "strict", z.ZodTypeAny, {
875
+ protocol: "context.indexer.selector/v1";
876
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
877
+ }, {
878
+ protocol: "context.indexer.selector/v1";
879
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
880
+ }>;
881
+ evidence_contract: z.ZodObject<{
882
+ accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
883
+ minimum_items: z.ZodNumber;
884
+ minimum_distinct_sources: z.ZodNumber;
885
+ provenance_constraints: z.ZodOptional<z.ZodObject<{
886
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
887
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
888
+ }, "strict", z.ZodTypeAny, {
889
+ protocol: "context.indexer.selector/v1";
890
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
891
+ }, {
892
+ protocol: "context.indexer.selector/v1";
893
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
894
+ }>>;
895
+ }, "strict", z.ZodTypeAny, {
896
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
897
+ minimum_items: number;
898
+ minimum_distinct_sources: number;
899
+ provenance_constraints?: {
900
+ protocol: "context.indexer.selector/v1";
901
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
902
+ } | undefined;
903
+ }, {
904
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
905
+ minimum_items: number;
906
+ minimum_distinct_sources: number;
907
+ provenance_constraints?: {
908
+ protocol: "context.indexer.selector/v1";
909
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
910
+ } | undefined;
911
+ }>;
912
+ allowed_exclusion_reason_codes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
913
+ }, "strict", z.ZodTypeAny, {
914
+ ref: string;
915
+ version: number;
916
+ semantic: string;
917
+ coverage_domain: string;
918
+ target_domain_ref: string;
919
+ target_selector: {
920
+ protocol: "context.indexer.selector/v1";
921
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
922
+ };
923
+ evidence_contract: {
924
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
925
+ minimum_items: number;
926
+ minimum_distinct_sources: number;
927
+ provenance_constraints?: {
928
+ protocol: "context.indexer.selector/v1";
929
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
930
+ } | undefined;
931
+ };
932
+ allowed_exclusion_reason_codes?: string[] | undefined;
933
+ }, {
934
+ ref: string;
935
+ version: number;
936
+ semantic: string;
937
+ coverage_domain: string;
938
+ target_domain_ref: string;
939
+ target_selector: {
940
+ protocol: "context.indexer.selector/v1";
941
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
942
+ };
943
+ evidence_contract: {
944
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
945
+ minimum_items: number;
946
+ minimum_distinct_sources: number;
947
+ provenance_constraints?: {
948
+ protocol: "context.indexer.selector/v1";
949
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
950
+ } | undefined;
951
+ };
952
+ allowed_exclusion_reason_codes?: string[] | undefined;
953
+ }>, {
954
+ ref: string;
955
+ version: number;
956
+ semantic: string;
957
+ coverage_domain: string;
958
+ target_domain_ref: string;
959
+ target_selector: {
960
+ protocol: "context.indexer.selector/v1";
961
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
962
+ };
963
+ evidence_contract: {
964
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
965
+ minimum_items: number;
966
+ minimum_distinct_sources: number;
967
+ provenance_constraints?: {
968
+ protocol: "context.indexer.selector/v1";
969
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
970
+ } | undefined;
971
+ };
972
+ allowed_exclusion_reason_codes?: string[] | undefined;
973
+ }, {
974
+ ref: string;
975
+ version: number;
976
+ semantic: string;
977
+ coverage_domain: string;
978
+ target_domain_ref: string;
979
+ target_selector: {
980
+ protocol: "context.indexer.selector/v1";
981
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
982
+ };
983
+ evidence_contract: {
984
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
985
+ minimum_items: number;
986
+ minimum_distinct_sources: number;
987
+ provenance_constraints?: {
988
+ protocol: "context.indexer.selector/v1";
989
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
990
+ } | undefined;
991
+ };
992
+ allowed_exclusion_reason_codes?: string[] | undefined;
993
+ }>, "many">;
994
+ layout_mappings: z.ZodArray<z.ZodEffects<z.ZodObject<{
995
+ source_roles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
996
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
997
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
998
+ artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
999
+ collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
1000
+ }, "strict", z.ZodTypeAny, {
1001
+ collection: import("./contracts.js").TopLevelNamespace;
1002
+ artifact_kinds: string[];
1003
+ source_roles: string[];
1004
+ document_kind: string;
1005
+ reader_goal: string;
1006
+ }, {
1007
+ collection: import("./contracts.js").TopLevelNamespace;
1008
+ artifact_kinds: string[];
1009
+ source_roles: string[];
1010
+ document_kind: string;
1011
+ reader_goal: string;
1012
+ }>, {
1013
+ collection: import("./contracts.js").TopLevelNamespace;
1014
+ artifact_kinds: string[];
1015
+ source_roles: string[];
1016
+ document_kind: string;
1017
+ reader_goal: string;
1018
+ }, {
1019
+ collection: import("./contracts.js").TopLevelNamespace;
1020
+ artifact_kinds: string[];
1021
+ source_roles: string[];
1022
+ document_kind: string;
1023
+ reader_goal: string;
1024
+ }>, "many">;
1025
+ variant_schema: z.ZodEffects<z.ZodObject<{
1026
+ axes: z.ZodArray<z.ZodEffects<z.ZodObject<{
1027
+ id: z.ZodString;
1028
+ type: z.ZodLiteral<"enum">;
1029
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1030
+ required: z.ZodBoolean;
1031
+ }, "strict", z.ZodTypeAny, {
1032
+ values: string[];
1033
+ id: string;
1034
+ type: "enum";
1035
+ required: boolean;
1036
+ }, {
1037
+ values: string[];
1038
+ id: string;
1039
+ type: "enum";
1040
+ required: boolean;
1041
+ }>, {
1042
+ values: string[];
1043
+ id: string;
1044
+ type: "enum";
1045
+ required: boolean;
1046
+ }, {
1047
+ values: string[];
1048
+ id: string;
1049
+ type: "enum";
1050
+ required: boolean;
1051
+ }>, "many">;
1052
+ }, "strict", z.ZodTypeAny, {
1053
+ axes: {
1054
+ values: string[];
1055
+ id: string;
1056
+ type: "enum";
1057
+ required: boolean;
1058
+ }[];
1059
+ }, {
1060
+ axes: {
1061
+ values: string[];
1062
+ id: string;
1063
+ type: "enum";
1064
+ required: boolean;
1065
+ }[];
1066
+ }>, {
1067
+ axes: {
1068
+ values: string[];
1069
+ id: string;
1070
+ type: "enum";
1071
+ required: boolean;
1072
+ }[];
1073
+ }, {
1074
+ axes: {
1075
+ values: string[];
1076
+ id: string;
1077
+ type: "enum";
1078
+ required: boolean;
1079
+ }[];
1080
+ }>;
1081
+ }, "strict", z.ZodTypeAny, {
1082
+ id: string;
1083
+ metrics: ({
1084
+ id: string;
1085
+ operator: string;
1086
+ unit: "count" | "ratio";
1087
+ threshold_policy: "explicit";
1088
+ direction: "minimum";
1089
+ recommended_min: number;
1090
+ hard_min: number;
1091
+ } | {
1092
+ id: string;
1093
+ operator: string;
1094
+ unit: "count" | "ratio";
1095
+ threshold_policy: "explicit";
1096
+ direction: "maximum";
1097
+ recommended_max: number;
1098
+ hard_max: number;
1099
+ } | {
1100
+ id: string;
1101
+ operator: string;
1102
+ unit: "count" | "ratio";
1103
+ threshold_policy: "inflation-sensitive";
1104
+ direction: "maximum";
1105
+ })[];
1106
+ parser_requirements: {
1107
+ protocol: "context.indexer.parser-requirement/v1";
1108
+ capability: string;
1109
+ abi: string;
1110
+ abi_digest: string;
1111
+ community_coordinate: {
1112
+ export: string;
1113
+ package: string;
1114
+ version: string;
1115
+ };
1116
+ requirement_digest: string;
1117
+ }[];
1118
+ inventory_domains: {
1119
+ id: string;
1120
+ selector: {
1121
+ operator: string;
1122
+ parameters?: Record<string, IndexerJson> | undefined;
1123
+ };
1124
+ disposition_required: true;
1125
+ }[];
1126
+ required_dispositions: string[];
1127
+ artifact_policy_variants: {
1128
+ id: string;
1129
+ thresholds: Record<string, {
1130
+ recommended_max: number;
1131
+ }>;
1132
+ eligibility: {
1133
+ protocol: "context.indexer.selector/v1";
1134
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1135
+ };
1136
+ artifact_kinds: {
1137
+ required: string[];
1138
+ discretionary: string[];
1139
+ };
1140
+ }[];
1141
+ question_target_domains: {
1142
+ id: string;
1143
+ selector: {
1144
+ operator: string;
1145
+ parameters?: Record<string, IndexerJson> | undefined;
1146
+ };
1147
+ grouping_operator: string;
1148
+ subject_key_kind: string;
1149
+ granularity: "module" | "identity";
1150
+ }[];
1151
+ reader_question_contracts: {
1152
+ ref: string;
1153
+ version: number;
1154
+ semantic: string;
1155
+ coverage_domain: string;
1156
+ target_domain_ref: string;
1157
+ target_selector: {
1158
+ protocol: "context.indexer.selector/v1";
1159
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1160
+ };
1161
+ evidence_contract: {
1162
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1163
+ minimum_items: number;
1164
+ minimum_distinct_sources: number;
1165
+ provenance_constraints?: {
1166
+ protocol: "context.indexer.selector/v1";
1167
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1168
+ } | undefined;
1169
+ };
1170
+ allowed_exclusion_reason_codes?: string[] | undefined;
1171
+ }[];
1172
+ layout_mappings: {
1173
+ collection: import("./contracts.js").TopLevelNamespace;
1174
+ artifact_kinds: string[];
1175
+ source_roles: string[];
1176
+ document_kind: string;
1177
+ reader_goal: string;
1178
+ }[];
1179
+ variant_schema: {
1180
+ axes: {
1181
+ values: string[];
1182
+ id: string;
1183
+ type: "enum";
1184
+ required: boolean;
1185
+ }[];
1186
+ };
1187
+ }, {
1188
+ id: string;
1189
+ metrics: ({
1190
+ id: string;
1191
+ operator: string;
1192
+ unit: "count" | "ratio";
1193
+ threshold_policy: "explicit";
1194
+ direction: "minimum";
1195
+ recommended_min: number;
1196
+ hard_min: number;
1197
+ } | {
1198
+ id: string;
1199
+ operator: string;
1200
+ unit: "count" | "ratio";
1201
+ threshold_policy: "explicit";
1202
+ direction: "maximum";
1203
+ recommended_max: number;
1204
+ hard_max: number;
1205
+ } | {
1206
+ id: string;
1207
+ operator: string;
1208
+ unit: "count" | "ratio";
1209
+ threshold_policy: "inflation-sensitive";
1210
+ direction: "maximum";
1211
+ })[];
1212
+ parser_requirements: {
1213
+ protocol: "context.indexer.parser-requirement/v1";
1214
+ capability: string;
1215
+ abi: string;
1216
+ abi_digest: string;
1217
+ community_coordinate: {
1218
+ export: string;
1219
+ package: string;
1220
+ version: string;
1221
+ };
1222
+ requirement_digest: string;
1223
+ }[];
1224
+ inventory_domains: {
1225
+ id: string;
1226
+ selector: {
1227
+ operator: string;
1228
+ parameters?: Record<string, IndexerJson> | undefined;
1229
+ };
1230
+ disposition_required: true;
1231
+ }[];
1232
+ required_dispositions: string[];
1233
+ artifact_policy_variants: {
1234
+ id: string;
1235
+ thresholds: Record<string, {
1236
+ recommended_max: number;
1237
+ }>;
1238
+ eligibility: {
1239
+ protocol: "context.indexer.selector/v1";
1240
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1241
+ };
1242
+ artifact_kinds: {
1243
+ required: string[];
1244
+ discretionary: string[];
1245
+ };
1246
+ }[];
1247
+ question_target_domains: {
1248
+ id: string;
1249
+ selector: {
1250
+ operator: string;
1251
+ parameters?: Record<string, IndexerJson> | undefined;
1252
+ };
1253
+ grouping_operator: string;
1254
+ subject_key_kind: string;
1255
+ granularity: "module" | "identity";
1256
+ }[];
1257
+ reader_question_contracts: {
1258
+ ref: string;
1259
+ version: number;
1260
+ semantic: string;
1261
+ coverage_domain: string;
1262
+ target_domain_ref: string;
1263
+ target_selector: {
1264
+ protocol: "context.indexer.selector/v1";
1265
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1266
+ };
1267
+ evidence_contract: {
1268
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1269
+ minimum_items: number;
1270
+ minimum_distinct_sources: number;
1271
+ provenance_constraints?: {
1272
+ protocol: "context.indexer.selector/v1";
1273
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1274
+ } | undefined;
1275
+ };
1276
+ allowed_exclusion_reason_codes?: string[] | undefined;
1277
+ }[];
1278
+ layout_mappings: {
1279
+ collection: import("./contracts.js").TopLevelNamespace;
1280
+ artifact_kinds: string[];
1281
+ source_roles: string[];
1282
+ document_kind: string;
1283
+ reader_goal: string;
1284
+ }[];
1285
+ variant_schema: {
1286
+ axes: {
1287
+ values: string[];
1288
+ id: string;
1289
+ type: "enum";
1290
+ required: boolean;
1291
+ }[];
1292
+ };
1293
+ }>, {
1294
+ id: string;
1295
+ metrics: ({
1296
+ id: string;
1297
+ operator: string;
1298
+ unit: "count" | "ratio";
1299
+ threshold_policy: "explicit";
1300
+ direction: "minimum";
1301
+ recommended_min: number;
1302
+ hard_min: number;
1303
+ } | {
1304
+ id: string;
1305
+ operator: string;
1306
+ unit: "count" | "ratio";
1307
+ threshold_policy: "explicit";
1308
+ direction: "maximum";
1309
+ recommended_max: number;
1310
+ hard_max: number;
1311
+ } | {
1312
+ id: string;
1313
+ operator: string;
1314
+ unit: "count" | "ratio";
1315
+ threshold_policy: "inflation-sensitive";
1316
+ direction: "maximum";
1317
+ })[];
1318
+ parser_requirements: {
1319
+ protocol: "context.indexer.parser-requirement/v1";
1320
+ capability: string;
1321
+ abi: string;
1322
+ abi_digest: string;
1323
+ community_coordinate: {
1324
+ export: string;
1325
+ package: string;
1326
+ version: string;
1327
+ };
1328
+ requirement_digest: string;
1329
+ }[];
1330
+ inventory_domains: {
1331
+ id: string;
1332
+ selector: {
1333
+ operator: string;
1334
+ parameters?: Record<string, IndexerJson> | undefined;
1335
+ };
1336
+ disposition_required: true;
1337
+ }[];
1338
+ required_dispositions: string[];
1339
+ artifact_policy_variants: {
1340
+ id: string;
1341
+ thresholds: Record<string, {
1342
+ recommended_max: number;
1343
+ }>;
1344
+ eligibility: {
1345
+ protocol: "context.indexer.selector/v1";
1346
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1347
+ };
1348
+ artifact_kinds: {
1349
+ required: string[];
1350
+ discretionary: string[];
1351
+ };
1352
+ }[];
1353
+ question_target_domains: {
1354
+ id: string;
1355
+ selector: {
1356
+ operator: string;
1357
+ parameters?: Record<string, IndexerJson> | undefined;
1358
+ };
1359
+ grouping_operator: string;
1360
+ subject_key_kind: string;
1361
+ granularity: "module" | "identity";
1362
+ }[];
1363
+ reader_question_contracts: {
1364
+ ref: string;
1365
+ version: number;
1366
+ semantic: string;
1367
+ coverage_domain: string;
1368
+ target_domain_ref: string;
1369
+ target_selector: {
1370
+ protocol: "context.indexer.selector/v1";
1371
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1372
+ };
1373
+ evidence_contract: {
1374
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1375
+ minimum_items: number;
1376
+ minimum_distinct_sources: number;
1377
+ provenance_constraints?: {
1378
+ protocol: "context.indexer.selector/v1";
1379
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1380
+ } | undefined;
1381
+ };
1382
+ allowed_exclusion_reason_codes?: string[] | undefined;
1383
+ }[];
1384
+ layout_mappings: {
1385
+ collection: import("./contracts.js").TopLevelNamespace;
1386
+ artifact_kinds: string[];
1387
+ source_roles: string[];
1388
+ document_kind: string;
1389
+ reader_goal: string;
1390
+ }[];
1391
+ variant_schema: {
1392
+ axes: {
1393
+ values: string[];
1394
+ id: string;
1395
+ type: "enum";
1396
+ required: boolean;
1397
+ }[];
1398
+ };
1399
+ }, {
1400
+ id: string;
1401
+ metrics: ({
1402
+ id: string;
1403
+ operator: string;
1404
+ unit: "count" | "ratio";
1405
+ threshold_policy: "explicit";
1406
+ direction: "minimum";
1407
+ recommended_min: number;
1408
+ hard_min: number;
1409
+ } | {
1410
+ id: string;
1411
+ operator: string;
1412
+ unit: "count" | "ratio";
1413
+ threshold_policy: "explicit";
1414
+ direction: "maximum";
1415
+ recommended_max: number;
1416
+ hard_max: number;
1417
+ } | {
1418
+ id: string;
1419
+ operator: string;
1420
+ unit: "count" | "ratio";
1421
+ threshold_policy: "inflation-sensitive";
1422
+ direction: "maximum";
1423
+ })[];
1424
+ parser_requirements: {
1425
+ protocol: "context.indexer.parser-requirement/v1";
1426
+ capability: string;
1427
+ abi: string;
1428
+ abi_digest: string;
1429
+ community_coordinate: {
1430
+ export: string;
1431
+ package: string;
1432
+ version: string;
1433
+ };
1434
+ requirement_digest: string;
1435
+ }[];
1436
+ inventory_domains: {
1437
+ id: string;
1438
+ selector: {
1439
+ operator: string;
1440
+ parameters?: Record<string, IndexerJson> | undefined;
1441
+ };
1442
+ disposition_required: true;
1443
+ }[];
1444
+ required_dispositions: string[];
1445
+ artifact_policy_variants: {
1446
+ id: string;
1447
+ thresholds: Record<string, {
1448
+ recommended_max: number;
1449
+ }>;
1450
+ eligibility: {
1451
+ protocol: "context.indexer.selector/v1";
1452
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1453
+ };
1454
+ artifact_kinds: {
1455
+ required: string[];
1456
+ discretionary: string[];
1457
+ };
1458
+ }[];
1459
+ question_target_domains: {
1460
+ id: string;
1461
+ selector: {
1462
+ operator: string;
1463
+ parameters?: Record<string, IndexerJson> | undefined;
1464
+ };
1465
+ grouping_operator: string;
1466
+ subject_key_kind: string;
1467
+ granularity: "module" | "identity";
1468
+ }[];
1469
+ reader_question_contracts: {
1470
+ ref: string;
1471
+ version: number;
1472
+ semantic: string;
1473
+ coverage_domain: string;
1474
+ target_domain_ref: string;
1475
+ target_selector: {
1476
+ protocol: "context.indexer.selector/v1";
1477
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1478
+ };
1479
+ evidence_contract: {
1480
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1481
+ minimum_items: number;
1482
+ minimum_distinct_sources: number;
1483
+ provenance_constraints?: {
1484
+ protocol: "context.indexer.selector/v1";
1485
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1486
+ } | undefined;
1487
+ };
1488
+ allowed_exclusion_reason_codes?: string[] | undefined;
1489
+ }[];
1490
+ layout_mappings: {
1491
+ collection: import("./contracts.js").TopLevelNamespace;
1492
+ artifact_kinds: string[];
1493
+ source_roles: string[];
1494
+ document_kind: string;
1495
+ reader_goal: string;
1496
+ }[];
1497
+ variant_schema: {
1498
+ axes: {
1499
+ values: string[];
1500
+ id: string;
1501
+ type: "enum";
1502
+ required: boolean;
1503
+ }[];
1504
+ };
1505
+ }>;
1506
+ export declare const indexerProfileContractSchema: z.ZodEffects<z.ZodObject<{
1507
+ protocol: z.ZodLiteral<"context.indexer.profile-contract/v1">;
1508
+ version: z.ZodString;
1509
+ operator_contract_version: z.ZodString;
1510
+ operator_contract_digest: z.ZodString;
1511
+ coverage_domains: z.ZodArray<z.ZodEnum<["technical-structure", "public-contract", "business-semantics", "operations"]>, "many">;
1512
+ profiles: z.ZodArray<z.ZodEffects<z.ZodObject<{
1513
+ id: z.ZodEffects<z.ZodString, string, string>;
1514
+ parser_requirements: z.ZodArray<z.ZodObject<{
1515
+ protocol: z.ZodLiteral<"context.indexer.parser-requirement/v1">;
1516
+ capability: z.ZodEffects<z.ZodString, string, string>;
1517
+ abi: z.ZodString;
1518
+ abi_digest: z.ZodString;
1519
+ community_coordinate: z.ZodObject<{
1520
+ package: z.ZodString;
1521
+ export: z.ZodString;
1522
+ version: z.ZodString;
1523
+ }, "strict", z.ZodTypeAny, {
1524
+ export: string;
1525
+ package: string;
1526
+ version: string;
1527
+ }, {
1528
+ export: string;
1529
+ package: string;
1530
+ version: string;
1531
+ }>;
1532
+ } & {
1533
+ requirement_digest: z.ZodString;
1534
+ }, "strict", z.ZodTypeAny, {
1535
+ protocol: "context.indexer.parser-requirement/v1";
1536
+ capability: string;
1537
+ abi: string;
1538
+ abi_digest: string;
1539
+ community_coordinate: {
1540
+ export: string;
1541
+ package: string;
1542
+ version: string;
1543
+ };
1544
+ requirement_digest: string;
1545
+ }, {
1546
+ protocol: "context.indexer.parser-requirement/v1";
1547
+ capability: string;
1548
+ abi: string;
1549
+ abi_digest: string;
1550
+ community_coordinate: {
1551
+ export: string;
1552
+ package: string;
1553
+ version: string;
1554
+ };
1555
+ requirement_digest: string;
1556
+ }>, "many">;
1557
+ inventory_domains: z.ZodArray<z.ZodObject<{
1558
+ id: z.ZodEffects<z.ZodString, string, string>;
1559
+ selector: z.ZodObject<{
1560
+ operator: z.ZodEffects<z.ZodString, string, string>;
1561
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
1562
+ }, "strict", z.ZodTypeAny, {
1563
+ operator: string;
1564
+ parameters?: Record<string, IndexerJson> | undefined;
1565
+ }, {
1566
+ operator: string;
1567
+ parameters?: Record<string, IndexerJson> | undefined;
1568
+ }>;
1569
+ disposition_required: z.ZodLiteral<true>;
1570
+ }, "strict", z.ZodTypeAny, {
1571
+ id: string;
1572
+ selector: {
1573
+ operator: string;
1574
+ parameters?: Record<string, IndexerJson> | undefined;
1575
+ };
1576
+ disposition_required: true;
1577
+ }, {
1578
+ id: string;
1579
+ selector: {
1580
+ operator: string;
1581
+ parameters?: Record<string, IndexerJson> | undefined;
1582
+ };
1583
+ disposition_required: true;
1584
+ }>, "many">;
1585
+ required_dispositions: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1586
+ metrics: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1587
+ id: z.ZodEffects<z.ZodString, string, string>;
1588
+ unit: z.ZodEnum<["count", "ratio"]>;
1589
+ operator: z.ZodEffects<z.ZodString, string, string>;
1590
+ threshold_policy: z.ZodLiteral<"explicit">;
1591
+ direction: z.ZodLiteral<"minimum">;
1592
+ recommended_min: z.ZodNumber;
1593
+ hard_min: z.ZodNumber;
1594
+ }, "strict", z.ZodTypeAny, {
1595
+ id: string;
1596
+ operator: string;
1597
+ unit: "count" | "ratio";
1598
+ threshold_policy: "explicit";
1599
+ direction: "minimum";
1600
+ recommended_min: number;
1601
+ hard_min: number;
1602
+ }, {
1603
+ id: string;
1604
+ operator: string;
1605
+ unit: "count" | "ratio";
1606
+ threshold_policy: "explicit";
1607
+ direction: "minimum";
1608
+ recommended_min: number;
1609
+ hard_min: number;
1610
+ }>, {
1611
+ id: string;
1612
+ operator: string;
1613
+ unit: "count" | "ratio";
1614
+ threshold_policy: "explicit";
1615
+ direction: "minimum";
1616
+ recommended_min: number;
1617
+ hard_min: number;
1618
+ }, {
1619
+ id: string;
1620
+ operator: string;
1621
+ unit: "count" | "ratio";
1622
+ threshold_policy: "explicit";
1623
+ direction: "minimum";
1624
+ recommended_min: number;
1625
+ hard_min: number;
1626
+ }>, z.ZodEffects<z.ZodObject<{
1627
+ id: z.ZodEffects<z.ZodString, string, string>;
1628
+ unit: z.ZodEnum<["count", "ratio"]>;
1629
+ operator: z.ZodEffects<z.ZodString, string, string>;
1630
+ threshold_policy: z.ZodLiteral<"explicit">;
1631
+ direction: z.ZodLiteral<"maximum">;
1632
+ recommended_max: z.ZodNumber;
1633
+ hard_max: z.ZodNumber;
1634
+ }, "strict", z.ZodTypeAny, {
1635
+ id: string;
1636
+ operator: string;
1637
+ unit: "count" | "ratio";
1638
+ threshold_policy: "explicit";
1639
+ direction: "maximum";
1640
+ recommended_max: number;
1641
+ hard_max: number;
1642
+ }, {
1643
+ id: string;
1644
+ operator: string;
1645
+ unit: "count" | "ratio";
1646
+ threshold_policy: "explicit";
1647
+ direction: "maximum";
1648
+ recommended_max: number;
1649
+ hard_max: number;
1650
+ }>, {
1651
+ id: string;
1652
+ operator: string;
1653
+ unit: "count" | "ratio";
1654
+ threshold_policy: "explicit";
1655
+ direction: "maximum";
1656
+ recommended_max: number;
1657
+ hard_max: number;
1658
+ }, {
1659
+ id: string;
1660
+ operator: string;
1661
+ unit: "count" | "ratio";
1662
+ threshold_policy: "explicit";
1663
+ direction: "maximum";
1664
+ recommended_max: number;
1665
+ hard_max: number;
1666
+ }>, z.ZodObject<{
1667
+ id: z.ZodEffects<z.ZodString, string, string>;
1668
+ unit: z.ZodEnum<["count", "ratio"]>;
1669
+ operator: z.ZodEffects<z.ZodString, string, string>;
1670
+ threshold_policy: z.ZodLiteral<"inflation-sensitive">;
1671
+ direction: z.ZodLiteral<"maximum">;
1672
+ }, "strict", z.ZodTypeAny, {
1673
+ id: string;
1674
+ operator: string;
1675
+ unit: "count" | "ratio";
1676
+ threshold_policy: "inflation-sensitive";
1677
+ direction: "maximum";
1678
+ }, {
1679
+ id: string;
1680
+ operator: string;
1681
+ unit: "count" | "ratio";
1682
+ threshold_policy: "inflation-sensitive";
1683
+ direction: "maximum";
1684
+ }>]>, "many">;
1685
+ artifact_policy_variants: z.ZodArray<z.ZodObject<{
1686
+ id: z.ZodEffects<z.ZodString, string, string>;
1687
+ eligibility: z.ZodObject<{
1688
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
1689
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
1690
+ }, "strict", z.ZodTypeAny, {
1691
+ protocol: "context.indexer.selector/v1";
1692
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1693
+ }, {
1694
+ protocol: "context.indexer.selector/v1";
1695
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1696
+ }>;
1697
+ artifact_kinds: z.ZodEffects<z.ZodObject<{
1698
+ required: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1699
+ discretionary: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1700
+ }, "strict", z.ZodTypeAny, {
1701
+ required: string[];
1702
+ discretionary: string[];
1703
+ }, {
1704
+ required: string[];
1705
+ discretionary: string[];
1706
+ }>, {
1707
+ required: string[];
1708
+ discretionary: string[];
1709
+ }, {
1710
+ required: string[];
1711
+ discretionary: string[];
1712
+ }>;
1713
+ thresholds: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
1714
+ recommended_max: z.ZodNumber;
1715
+ }, "strict", z.ZodTypeAny, {
1716
+ recommended_max: number;
1717
+ }, {
1718
+ recommended_max: number;
1719
+ }>>;
1720
+ }, "strict", z.ZodTypeAny, {
1721
+ id: string;
1722
+ thresholds: Record<string, {
1723
+ recommended_max: number;
1724
+ }>;
1725
+ eligibility: {
1726
+ protocol: "context.indexer.selector/v1";
1727
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1728
+ };
1729
+ artifact_kinds: {
1730
+ required: string[];
1731
+ discretionary: string[];
1732
+ };
1733
+ }, {
1734
+ id: string;
1735
+ thresholds: Record<string, {
1736
+ recommended_max: number;
1737
+ }>;
1738
+ eligibility: {
1739
+ protocol: "context.indexer.selector/v1";
1740
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1741
+ };
1742
+ artifact_kinds: {
1743
+ required: string[];
1744
+ discretionary: string[];
1745
+ };
1746
+ }>, "many">;
1747
+ question_target_domains: z.ZodArray<z.ZodObject<{
1748
+ id: z.ZodEffects<z.ZodString, string, string>;
1749
+ selector: z.ZodObject<{
1750
+ operator: z.ZodEffects<z.ZodString, string, string>;
1751
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
1752
+ }, "strict", z.ZodTypeAny, {
1753
+ operator: string;
1754
+ parameters?: Record<string, IndexerJson> | undefined;
1755
+ }, {
1756
+ operator: string;
1757
+ parameters?: Record<string, IndexerJson> | undefined;
1758
+ }>;
1759
+ grouping_operator: z.ZodEffects<z.ZodString, string, string>;
1760
+ subject_key_kind: z.ZodEffects<z.ZodString, string, string>;
1761
+ granularity: z.ZodEnum<["module", "identity"]>;
1762
+ }, "strict", z.ZodTypeAny, {
1763
+ id: string;
1764
+ selector: {
1765
+ operator: string;
1766
+ parameters?: Record<string, IndexerJson> | undefined;
1767
+ };
1768
+ grouping_operator: string;
1769
+ subject_key_kind: string;
1770
+ granularity: "module" | "identity";
1771
+ }, {
1772
+ id: string;
1773
+ selector: {
1774
+ operator: string;
1775
+ parameters?: Record<string, IndexerJson> | undefined;
1776
+ };
1777
+ grouping_operator: string;
1778
+ subject_key_kind: string;
1779
+ granularity: "module" | "identity";
1780
+ }>, "many">;
1781
+ reader_question_contracts: z.ZodArray<z.ZodEffects<z.ZodObject<{
1782
+ ref: z.ZodString;
1783
+ semantic: z.ZodEffects<z.ZodString, string, string>;
1784
+ version: z.ZodNumber;
1785
+ coverage_domain: z.ZodEffects<z.ZodString, string, string>;
1786
+ target_domain_ref: z.ZodEffects<z.ZodString, string, string>;
1787
+ target_selector: z.ZodObject<{
1788
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
1789
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
1790
+ }, "strict", z.ZodTypeAny, {
1791
+ protocol: "context.indexer.selector/v1";
1792
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1793
+ }, {
1794
+ protocol: "context.indexer.selector/v1";
1795
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1796
+ }>;
1797
+ evidence_contract: z.ZodObject<{
1798
+ accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
1799
+ minimum_items: z.ZodNumber;
1800
+ minimum_distinct_sources: z.ZodNumber;
1801
+ provenance_constraints: z.ZodOptional<z.ZodObject<{
1802
+ protocol: z.ZodLiteral<"context.indexer.selector/v1">;
1803
+ expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
1804
+ }, "strict", z.ZodTypeAny, {
1805
+ protocol: "context.indexer.selector/v1";
1806
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1807
+ }, {
1808
+ protocol: "context.indexer.selector/v1";
1809
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1810
+ }>>;
1811
+ }, "strict", z.ZodTypeAny, {
1812
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1813
+ minimum_items: number;
1814
+ minimum_distinct_sources: number;
1815
+ provenance_constraints?: {
1816
+ protocol: "context.indexer.selector/v1";
1817
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1818
+ } | undefined;
1819
+ }, {
1820
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1821
+ minimum_items: number;
1822
+ minimum_distinct_sources: number;
1823
+ provenance_constraints?: {
1824
+ protocol: "context.indexer.selector/v1";
1825
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1826
+ } | undefined;
1827
+ }>;
1828
+ allowed_exclusion_reason_codes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1829
+ }, "strict", z.ZodTypeAny, {
1830
+ ref: string;
1831
+ version: number;
1832
+ semantic: string;
1833
+ coverage_domain: string;
1834
+ target_domain_ref: string;
1835
+ target_selector: {
1836
+ protocol: "context.indexer.selector/v1";
1837
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1838
+ };
1839
+ evidence_contract: {
1840
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1841
+ minimum_items: number;
1842
+ minimum_distinct_sources: number;
1843
+ provenance_constraints?: {
1844
+ protocol: "context.indexer.selector/v1";
1845
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1846
+ } | undefined;
1847
+ };
1848
+ allowed_exclusion_reason_codes?: string[] | undefined;
1849
+ }, {
1850
+ ref: string;
1851
+ version: number;
1852
+ semantic: string;
1853
+ coverage_domain: string;
1854
+ target_domain_ref: string;
1855
+ target_selector: {
1856
+ protocol: "context.indexer.selector/v1";
1857
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1858
+ };
1859
+ evidence_contract: {
1860
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1861
+ minimum_items: number;
1862
+ minimum_distinct_sources: number;
1863
+ provenance_constraints?: {
1864
+ protocol: "context.indexer.selector/v1";
1865
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1866
+ } | undefined;
1867
+ };
1868
+ allowed_exclusion_reason_codes?: string[] | undefined;
1869
+ }>, {
1870
+ ref: string;
1871
+ version: number;
1872
+ semantic: string;
1873
+ coverage_domain: string;
1874
+ target_domain_ref: string;
1875
+ target_selector: {
1876
+ protocol: "context.indexer.selector/v1";
1877
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1878
+ };
1879
+ evidence_contract: {
1880
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1881
+ minimum_items: number;
1882
+ minimum_distinct_sources: number;
1883
+ provenance_constraints?: {
1884
+ protocol: "context.indexer.selector/v1";
1885
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1886
+ } | undefined;
1887
+ };
1888
+ allowed_exclusion_reason_codes?: string[] | undefined;
1889
+ }, {
1890
+ ref: string;
1891
+ version: number;
1892
+ semantic: string;
1893
+ coverage_domain: string;
1894
+ target_domain_ref: string;
1895
+ target_selector: {
1896
+ protocol: "context.indexer.selector/v1";
1897
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1898
+ };
1899
+ evidence_contract: {
1900
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1901
+ minimum_items: number;
1902
+ minimum_distinct_sources: number;
1903
+ provenance_constraints?: {
1904
+ protocol: "context.indexer.selector/v1";
1905
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
1906
+ } | undefined;
1907
+ };
1908
+ allowed_exclusion_reason_codes?: string[] | undefined;
1909
+ }>, "many">;
1910
+ layout_mappings: z.ZodArray<z.ZodEffects<z.ZodObject<{
1911
+ source_roles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1912
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
1913
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
1914
+ artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1915
+ collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
1916
+ }, "strict", z.ZodTypeAny, {
1917
+ collection: import("./contracts.js").TopLevelNamespace;
1918
+ artifact_kinds: string[];
1919
+ source_roles: string[];
1920
+ document_kind: string;
1921
+ reader_goal: string;
1922
+ }, {
1923
+ collection: import("./contracts.js").TopLevelNamespace;
1924
+ artifact_kinds: string[];
1925
+ source_roles: string[];
1926
+ document_kind: string;
1927
+ reader_goal: string;
1928
+ }>, {
1929
+ collection: import("./contracts.js").TopLevelNamespace;
1930
+ artifact_kinds: string[];
1931
+ source_roles: string[];
1932
+ document_kind: string;
1933
+ reader_goal: string;
1934
+ }, {
1935
+ collection: import("./contracts.js").TopLevelNamespace;
1936
+ artifact_kinds: string[];
1937
+ source_roles: string[];
1938
+ document_kind: string;
1939
+ reader_goal: string;
1940
+ }>, "many">;
1941
+ variant_schema: z.ZodEffects<z.ZodObject<{
1942
+ axes: z.ZodArray<z.ZodEffects<z.ZodObject<{
1943
+ id: z.ZodString;
1944
+ type: z.ZodLiteral<"enum">;
1945
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1946
+ required: z.ZodBoolean;
1947
+ }, "strict", z.ZodTypeAny, {
1948
+ values: string[];
1949
+ id: string;
1950
+ type: "enum";
1951
+ required: boolean;
1952
+ }, {
1953
+ values: string[];
1954
+ id: string;
1955
+ type: "enum";
1956
+ required: boolean;
1957
+ }>, {
1958
+ values: string[];
1959
+ id: string;
1960
+ type: "enum";
1961
+ required: boolean;
1962
+ }, {
1963
+ values: string[];
1964
+ id: string;
1965
+ type: "enum";
1966
+ required: boolean;
1967
+ }>, "many">;
1968
+ }, "strict", z.ZodTypeAny, {
1969
+ axes: {
1970
+ values: string[];
1971
+ id: string;
1972
+ type: "enum";
1973
+ required: boolean;
1974
+ }[];
1975
+ }, {
1976
+ axes: {
1977
+ values: string[];
1978
+ id: string;
1979
+ type: "enum";
1980
+ required: boolean;
1981
+ }[];
1982
+ }>, {
1983
+ axes: {
1984
+ values: string[];
1985
+ id: string;
1986
+ type: "enum";
1987
+ required: boolean;
1988
+ }[];
1989
+ }, {
1990
+ axes: {
1991
+ values: string[];
1992
+ id: string;
1993
+ type: "enum";
1994
+ required: boolean;
1995
+ }[];
1996
+ }>;
1997
+ }, "strict", z.ZodTypeAny, {
1998
+ id: string;
1999
+ metrics: ({
2000
+ id: string;
2001
+ operator: string;
2002
+ unit: "count" | "ratio";
2003
+ threshold_policy: "explicit";
2004
+ direction: "minimum";
2005
+ recommended_min: number;
2006
+ hard_min: number;
2007
+ } | {
2008
+ id: string;
2009
+ operator: string;
2010
+ unit: "count" | "ratio";
2011
+ threshold_policy: "explicit";
2012
+ direction: "maximum";
2013
+ recommended_max: number;
2014
+ hard_max: number;
2015
+ } | {
2016
+ id: string;
2017
+ operator: string;
2018
+ unit: "count" | "ratio";
2019
+ threshold_policy: "inflation-sensitive";
2020
+ direction: "maximum";
2021
+ })[];
2022
+ parser_requirements: {
2023
+ protocol: "context.indexer.parser-requirement/v1";
2024
+ capability: string;
2025
+ abi: string;
2026
+ abi_digest: string;
2027
+ community_coordinate: {
2028
+ export: string;
2029
+ package: string;
2030
+ version: string;
2031
+ };
2032
+ requirement_digest: string;
2033
+ }[];
2034
+ inventory_domains: {
2035
+ id: string;
2036
+ selector: {
2037
+ operator: string;
2038
+ parameters?: Record<string, IndexerJson> | undefined;
2039
+ };
2040
+ disposition_required: true;
2041
+ }[];
2042
+ required_dispositions: string[];
2043
+ artifact_policy_variants: {
2044
+ id: string;
2045
+ thresholds: Record<string, {
2046
+ recommended_max: number;
2047
+ }>;
2048
+ eligibility: {
2049
+ protocol: "context.indexer.selector/v1";
2050
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2051
+ };
2052
+ artifact_kinds: {
2053
+ required: string[];
2054
+ discretionary: string[];
2055
+ };
2056
+ }[];
2057
+ question_target_domains: {
2058
+ id: string;
2059
+ selector: {
2060
+ operator: string;
2061
+ parameters?: Record<string, IndexerJson> | undefined;
2062
+ };
2063
+ grouping_operator: string;
2064
+ subject_key_kind: string;
2065
+ granularity: "module" | "identity";
2066
+ }[];
2067
+ reader_question_contracts: {
2068
+ ref: string;
2069
+ version: number;
2070
+ semantic: string;
2071
+ coverage_domain: string;
2072
+ target_domain_ref: string;
2073
+ target_selector: {
2074
+ protocol: "context.indexer.selector/v1";
2075
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2076
+ };
2077
+ evidence_contract: {
2078
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2079
+ minimum_items: number;
2080
+ minimum_distinct_sources: number;
2081
+ provenance_constraints?: {
2082
+ protocol: "context.indexer.selector/v1";
2083
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2084
+ } | undefined;
2085
+ };
2086
+ allowed_exclusion_reason_codes?: string[] | undefined;
2087
+ }[];
2088
+ layout_mappings: {
2089
+ collection: import("./contracts.js").TopLevelNamespace;
2090
+ artifact_kinds: string[];
2091
+ source_roles: string[];
2092
+ document_kind: string;
2093
+ reader_goal: string;
2094
+ }[];
2095
+ variant_schema: {
2096
+ axes: {
2097
+ values: string[];
2098
+ id: string;
2099
+ type: "enum";
2100
+ required: boolean;
2101
+ }[];
2102
+ };
2103
+ }, {
2104
+ id: string;
2105
+ metrics: ({
2106
+ id: string;
2107
+ operator: string;
2108
+ unit: "count" | "ratio";
2109
+ threshold_policy: "explicit";
2110
+ direction: "minimum";
2111
+ recommended_min: number;
2112
+ hard_min: number;
2113
+ } | {
2114
+ id: string;
2115
+ operator: string;
2116
+ unit: "count" | "ratio";
2117
+ threshold_policy: "explicit";
2118
+ direction: "maximum";
2119
+ recommended_max: number;
2120
+ hard_max: number;
2121
+ } | {
2122
+ id: string;
2123
+ operator: string;
2124
+ unit: "count" | "ratio";
2125
+ threshold_policy: "inflation-sensitive";
2126
+ direction: "maximum";
2127
+ })[];
2128
+ parser_requirements: {
2129
+ protocol: "context.indexer.parser-requirement/v1";
2130
+ capability: string;
2131
+ abi: string;
2132
+ abi_digest: string;
2133
+ community_coordinate: {
2134
+ export: string;
2135
+ package: string;
2136
+ version: string;
2137
+ };
2138
+ requirement_digest: string;
2139
+ }[];
2140
+ inventory_domains: {
2141
+ id: string;
2142
+ selector: {
2143
+ operator: string;
2144
+ parameters?: Record<string, IndexerJson> | undefined;
2145
+ };
2146
+ disposition_required: true;
2147
+ }[];
2148
+ required_dispositions: string[];
2149
+ artifact_policy_variants: {
2150
+ id: string;
2151
+ thresholds: Record<string, {
2152
+ recommended_max: number;
2153
+ }>;
2154
+ eligibility: {
2155
+ protocol: "context.indexer.selector/v1";
2156
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2157
+ };
2158
+ artifact_kinds: {
2159
+ required: string[];
2160
+ discretionary: string[];
2161
+ };
2162
+ }[];
2163
+ question_target_domains: {
2164
+ id: string;
2165
+ selector: {
2166
+ operator: string;
2167
+ parameters?: Record<string, IndexerJson> | undefined;
2168
+ };
2169
+ grouping_operator: string;
2170
+ subject_key_kind: string;
2171
+ granularity: "module" | "identity";
2172
+ }[];
2173
+ reader_question_contracts: {
2174
+ ref: string;
2175
+ version: number;
2176
+ semantic: string;
2177
+ coverage_domain: string;
2178
+ target_domain_ref: string;
2179
+ target_selector: {
2180
+ protocol: "context.indexer.selector/v1";
2181
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2182
+ };
2183
+ evidence_contract: {
2184
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2185
+ minimum_items: number;
2186
+ minimum_distinct_sources: number;
2187
+ provenance_constraints?: {
2188
+ protocol: "context.indexer.selector/v1";
2189
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2190
+ } | undefined;
2191
+ };
2192
+ allowed_exclusion_reason_codes?: string[] | undefined;
2193
+ }[];
2194
+ layout_mappings: {
2195
+ collection: import("./contracts.js").TopLevelNamespace;
2196
+ artifact_kinds: string[];
2197
+ source_roles: string[];
2198
+ document_kind: string;
2199
+ reader_goal: string;
2200
+ }[];
2201
+ variant_schema: {
2202
+ axes: {
2203
+ values: string[];
2204
+ id: string;
2205
+ type: "enum";
2206
+ required: boolean;
2207
+ }[];
2208
+ };
2209
+ }>, {
2210
+ id: string;
2211
+ metrics: ({
2212
+ id: string;
2213
+ operator: string;
2214
+ unit: "count" | "ratio";
2215
+ threshold_policy: "explicit";
2216
+ direction: "minimum";
2217
+ recommended_min: number;
2218
+ hard_min: number;
2219
+ } | {
2220
+ id: string;
2221
+ operator: string;
2222
+ unit: "count" | "ratio";
2223
+ threshold_policy: "explicit";
2224
+ direction: "maximum";
2225
+ recommended_max: number;
2226
+ hard_max: number;
2227
+ } | {
2228
+ id: string;
2229
+ operator: string;
2230
+ unit: "count" | "ratio";
2231
+ threshold_policy: "inflation-sensitive";
2232
+ direction: "maximum";
2233
+ })[];
2234
+ parser_requirements: {
2235
+ protocol: "context.indexer.parser-requirement/v1";
2236
+ capability: string;
2237
+ abi: string;
2238
+ abi_digest: string;
2239
+ community_coordinate: {
2240
+ export: string;
2241
+ package: string;
2242
+ version: string;
2243
+ };
2244
+ requirement_digest: string;
2245
+ }[];
2246
+ inventory_domains: {
2247
+ id: string;
2248
+ selector: {
2249
+ operator: string;
2250
+ parameters?: Record<string, IndexerJson> | undefined;
2251
+ };
2252
+ disposition_required: true;
2253
+ }[];
2254
+ required_dispositions: string[];
2255
+ artifact_policy_variants: {
2256
+ id: string;
2257
+ thresholds: Record<string, {
2258
+ recommended_max: number;
2259
+ }>;
2260
+ eligibility: {
2261
+ protocol: "context.indexer.selector/v1";
2262
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2263
+ };
2264
+ artifact_kinds: {
2265
+ required: string[];
2266
+ discretionary: string[];
2267
+ };
2268
+ }[];
2269
+ question_target_domains: {
2270
+ id: string;
2271
+ selector: {
2272
+ operator: string;
2273
+ parameters?: Record<string, IndexerJson> | undefined;
2274
+ };
2275
+ grouping_operator: string;
2276
+ subject_key_kind: string;
2277
+ granularity: "module" | "identity";
2278
+ }[];
2279
+ reader_question_contracts: {
2280
+ ref: string;
2281
+ version: number;
2282
+ semantic: string;
2283
+ coverage_domain: string;
2284
+ target_domain_ref: string;
2285
+ target_selector: {
2286
+ protocol: "context.indexer.selector/v1";
2287
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2288
+ };
2289
+ evidence_contract: {
2290
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2291
+ minimum_items: number;
2292
+ minimum_distinct_sources: number;
2293
+ provenance_constraints?: {
2294
+ protocol: "context.indexer.selector/v1";
2295
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2296
+ } | undefined;
2297
+ };
2298
+ allowed_exclusion_reason_codes?: string[] | undefined;
2299
+ }[];
2300
+ layout_mappings: {
2301
+ collection: import("./contracts.js").TopLevelNamespace;
2302
+ artifact_kinds: string[];
2303
+ source_roles: string[];
2304
+ document_kind: string;
2305
+ reader_goal: string;
2306
+ }[];
2307
+ variant_schema: {
2308
+ axes: {
2309
+ values: string[];
2310
+ id: string;
2311
+ type: "enum";
2312
+ required: boolean;
2313
+ }[];
2314
+ };
2315
+ }, {
2316
+ id: string;
2317
+ metrics: ({
2318
+ id: string;
2319
+ operator: string;
2320
+ unit: "count" | "ratio";
2321
+ threshold_policy: "explicit";
2322
+ direction: "minimum";
2323
+ recommended_min: number;
2324
+ hard_min: number;
2325
+ } | {
2326
+ id: string;
2327
+ operator: string;
2328
+ unit: "count" | "ratio";
2329
+ threshold_policy: "explicit";
2330
+ direction: "maximum";
2331
+ recommended_max: number;
2332
+ hard_max: number;
2333
+ } | {
2334
+ id: string;
2335
+ operator: string;
2336
+ unit: "count" | "ratio";
2337
+ threshold_policy: "inflation-sensitive";
2338
+ direction: "maximum";
2339
+ })[];
2340
+ parser_requirements: {
2341
+ protocol: "context.indexer.parser-requirement/v1";
2342
+ capability: string;
2343
+ abi: string;
2344
+ abi_digest: string;
2345
+ community_coordinate: {
2346
+ export: string;
2347
+ package: string;
2348
+ version: string;
2349
+ };
2350
+ requirement_digest: string;
2351
+ }[];
2352
+ inventory_domains: {
2353
+ id: string;
2354
+ selector: {
2355
+ operator: string;
2356
+ parameters?: Record<string, IndexerJson> | undefined;
2357
+ };
2358
+ disposition_required: true;
2359
+ }[];
2360
+ required_dispositions: string[];
2361
+ artifact_policy_variants: {
2362
+ id: string;
2363
+ thresholds: Record<string, {
2364
+ recommended_max: number;
2365
+ }>;
2366
+ eligibility: {
2367
+ protocol: "context.indexer.selector/v1";
2368
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2369
+ };
2370
+ artifact_kinds: {
2371
+ required: string[];
2372
+ discretionary: string[];
2373
+ };
2374
+ }[];
2375
+ question_target_domains: {
2376
+ id: string;
2377
+ selector: {
2378
+ operator: string;
2379
+ parameters?: Record<string, IndexerJson> | undefined;
2380
+ };
2381
+ grouping_operator: string;
2382
+ subject_key_kind: string;
2383
+ granularity: "module" | "identity";
2384
+ }[];
2385
+ reader_question_contracts: {
2386
+ ref: string;
2387
+ version: number;
2388
+ semantic: string;
2389
+ coverage_domain: string;
2390
+ target_domain_ref: string;
2391
+ target_selector: {
2392
+ protocol: "context.indexer.selector/v1";
2393
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2394
+ };
2395
+ evidence_contract: {
2396
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2397
+ minimum_items: number;
2398
+ minimum_distinct_sources: number;
2399
+ provenance_constraints?: {
2400
+ protocol: "context.indexer.selector/v1";
2401
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2402
+ } | undefined;
2403
+ };
2404
+ allowed_exclusion_reason_codes?: string[] | undefined;
2405
+ }[];
2406
+ layout_mappings: {
2407
+ collection: import("./contracts.js").TopLevelNamespace;
2408
+ artifact_kinds: string[];
2409
+ source_roles: string[];
2410
+ document_kind: string;
2411
+ reader_goal: string;
2412
+ }[];
2413
+ variant_schema: {
2414
+ axes: {
2415
+ values: string[];
2416
+ id: string;
2417
+ type: "enum";
2418
+ required: boolean;
2419
+ }[];
2420
+ };
2421
+ }>, "many">;
2422
+ subject_key_schemas: z.ZodArray<z.ZodEffects<z.ZodObject<{
2423
+ version: z.ZodNumber;
2424
+ namespace: z.ZodObject<{
2425
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
2426
+ }, "strict", z.ZodTypeAny, {
2427
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2428
+ }, {
2429
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2430
+ }>;
2431
+ kinds: z.ZodArray<z.ZodObject<{
2432
+ id: z.ZodEffects<z.ZodString, string, string>;
2433
+ local_key: z.ZodObject<{
2434
+ operator: z.ZodEnum<["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"]>;
2435
+ }, "strict", z.ZodTypeAny, {
2436
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2437
+ }, {
2438
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2439
+ }>;
2440
+ }, "strict", z.ZodTypeAny, {
2441
+ id: string;
2442
+ local_key: {
2443
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2444
+ };
2445
+ }, {
2446
+ id: string;
2447
+ local_key: {
2448
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2449
+ };
2450
+ }>, "many">;
2451
+ normalization: z.ZodOptional<z.ZodArray<z.ZodEnum<["trim", "unicode-nfc", "preserve-case", "lowercase"]>, "many">>;
2452
+ } & {
2453
+ profile: z.ZodEffects<z.ZodString, string, string>;
2454
+ }, "strict", z.ZodTypeAny, {
2455
+ namespace: {
2456
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2457
+ };
2458
+ version: number;
2459
+ profile: string;
2460
+ kinds: {
2461
+ id: string;
2462
+ local_key: {
2463
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2464
+ };
2465
+ }[];
2466
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2467
+ }, {
2468
+ namespace: {
2469
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2470
+ };
2471
+ version: number;
2472
+ profile: string;
2473
+ kinds: {
2474
+ id: string;
2475
+ local_key: {
2476
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2477
+ };
2478
+ }[];
2479
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2480
+ }>, {
2481
+ namespace: {
2482
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2483
+ };
2484
+ version: number;
2485
+ profile: string;
2486
+ kinds: {
2487
+ id: string;
2488
+ local_key: {
2489
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2490
+ };
2491
+ }[];
2492
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2493
+ }, {
2494
+ namespace: {
2495
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2496
+ };
2497
+ version: number;
2498
+ profile: string;
2499
+ kinds: {
2500
+ id: string;
2501
+ local_key: {
2502
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2503
+ };
2504
+ }[];
2505
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2506
+ }>, "many">;
2507
+ contract_digest: z.ZodString;
2508
+ }, "strict", z.ZodTypeAny, {
2509
+ protocol: "context.indexer.profile-contract/v1";
2510
+ contract_digest: string;
2511
+ coverage_domains: ("public-contract" | "technical-structure" | "business-semantics" | "operations")[];
2512
+ version: string;
2513
+ operator_contract_version: string;
2514
+ operator_contract_digest: string;
2515
+ profiles: {
2516
+ id: string;
2517
+ metrics: ({
2518
+ id: string;
2519
+ operator: string;
2520
+ unit: "count" | "ratio";
2521
+ threshold_policy: "explicit";
2522
+ direction: "minimum";
2523
+ recommended_min: number;
2524
+ hard_min: number;
2525
+ } | {
2526
+ id: string;
2527
+ operator: string;
2528
+ unit: "count" | "ratio";
2529
+ threshold_policy: "explicit";
2530
+ direction: "maximum";
2531
+ recommended_max: number;
2532
+ hard_max: number;
2533
+ } | {
2534
+ id: string;
2535
+ operator: string;
2536
+ unit: "count" | "ratio";
2537
+ threshold_policy: "inflation-sensitive";
2538
+ direction: "maximum";
2539
+ })[];
2540
+ parser_requirements: {
2541
+ protocol: "context.indexer.parser-requirement/v1";
2542
+ capability: string;
2543
+ abi: string;
2544
+ abi_digest: string;
2545
+ community_coordinate: {
2546
+ export: string;
2547
+ package: string;
2548
+ version: string;
2549
+ };
2550
+ requirement_digest: string;
2551
+ }[];
2552
+ inventory_domains: {
2553
+ id: string;
2554
+ selector: {
2555
+ operator: string;
2556
+ parameters?: Record<string, IndexerJson> | undefined;
2557
+ };
2558
+ disposition_required: true;
2559
+ }[];
2560
+ required_dispositions: string[];
2561
+ artifact_policy_variants: {
2562
+ id: string;
2563
+ thresholds: Record<string, {
2564
+ recommended_max: number;
2565
+ }>;
2566
+ eligibility: {
2567
+ protocol: "context.indexer.selector/v1";
2568
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2569
+ };
2570
+ artifact_kinds: {
2571
+ required: string[];
2572
+ discretionary: string[];
2573
+ };
2574
+ }[];
2575
+ question_target_domains: {
2576
+ id: string;
2577
+ selector: {
2578
+ operator: string;
2579
+ parameters?: Record<string, IndexerJson> | undefined;
2580
+ };
2581
+ grouping_operator: string;
2582
+ subject_key_kind: string;
2583
+ granularity: "module" | "identity";
2584
+ }[];
2585
+ reader_question_contracts: {
2586
+ ref: string;
2587
+ version: number;
2588
+ semantic: string;
2589
+ coverage_domain: string;
2590
+ target_domain_ref: string;
2591
+ target_selector: {
2592
+ protocol: "context.indexer.selector/v1";
2593
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2594
+ };
2595
+ evidence_contract: {
2596
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2597
+ minimum_items: number;
2598
+ minimum_distinct_sources: number;
2599
+ provenance_constraints?: {
2600
+ protocol: "context.indexer.selector/v1";
2601
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2602
+ } | undefined;
2603
+ };
2604
+ allowed_exclusion_reason_codes?: string[] | undefined;
2605
+ }[];
2606
+ layout_mappings: {
2607
+ collection: import("./contracts.js").TopLevelNamespace;
2608
+ artifact_kinds: string[];
2609
+ source_roles: string[];
2610
+ document_kind: string;
2611
+ reader_goal: string;
2612
+ }[];
2613
+ variant_schema: {
2614
+ axes: {
2615
+ values: string[];
2616
+ id: string;
2617
+ type: "enum";
2618
+ required: boolean;
2619
+ }[];
2620
+ };
2621
+ }[];
2622
+ subject_key_schemas: {
2623
+ namespace: {
2624
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2625
+ };
2626
+ version: number;
2627
+ profile: string;
2628
+ kinds: {
2629
+ id: string;
2630
+ local_key: {
2631
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2632
+ };
2633
+ }[];
2634
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2635
+ }[];
2636
+ }, {
2637
+ protocol: "context.indexer.profile-contract/v1";
2638
+ contract_digest: string;
2639
+ coverage_domains: ("public-contract" | "technical-structure" | "business-semantics" | "operations")[];
2640
+ version: string;
2641
+ operator_contract_version: string;
2642
+ operator_contract_digest: string;
2643
+ profiles: {
2644
+ id: string;
2645
+ metrics: ({
2646
+ id: string;
2647
+ operator: string;
2648
+ unit: "count" | "ratio";
2649
+ threshold_policy: "explicit";
2650
+ direction: "minimum";
2651
+ recommended_min: number;
2652
+ hard_min: number;
2653
+ } | {
2654
+ id: string;
2655
+ operator: string;
2656
+ unit: "count" | "ratio";
2657
+ threshold_policy: "explicit";
2658
+ direction: "maximum";
2659
+ recommended_max: number;
2660
+ hard_max: number;
2661
+ } | {
2662
+ id: string;
2663
+ operator: string;
2664
+ unit: "count" | "ratio";
2665
+ threshold_policy: "inflation-sensitive";
2666
+ direction: "maximum";
2667
+ })[];
2668
+ parser_requirements: {
2669
+ protocol: "context.indexer.parser-requirement/v1";
2670
+ capability: string;
2671
+ abi: string;
2672
+ abi_digest: string;
2673
+ community_coordinate: {
2674
+ export: string;
2675
+ package: string;
2676
+ version: string;
2677
+ };
2678
+ requirement_digest: string;
2679
+ }[];
2680
+ inventory_domains: {
2681
+ id: string;
2682
+ selector: {
2683
+ operator: string;
2684
+ parameters?: Record<string, IndexerJson> | undefined;
2685
+ };
2686
+ disposition_required: true;
2687
+ }[];
2688
+ required_dispositions: string[];
2689
+ artifact_policy_variants: {
2690
+ id: string;
2691
+ thresholds: Record<string, {
2692
+ recommended_max: number;
2693
+ }>;
2694
+ eligibility: {
2695
+ protocol: "context.indexer.selector/v1";
2696
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2697
+ };
2698
+ artifact_kinds: {
2699
+ required: string[];
2700
+ discretionary: string[];
2701
+ };
2702
+ }[];
2703
+ question_target_domains: {
2704
+ id: string;
2705
+ selector: {
2706
+ operator: string;
2707
+ parameters?: Record<string, IndexerJson> | undefined;
2708
+ };
2709
+ grouping_operator: string;
2710
+ subject_key_kind: string;
2711
+ granularity: "module" | "identity";
2712
+ }[];
2713
+ reader_question_contracts: {
2714
+ ref: string;
2715
+ version: number;
2716
+ semantic: string;
2717
+ coverage_domain: string;
2718
+ target_domain_ref: string;
2719
+ target_selector: {
2720
+ protocol: "context.indexer.selector/v1";
2721
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2722
+ };
2723
+ evidence_contract: {
2724
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2725
+ minimum_items: number;
2726
+ minimum_distinct_sources: number;
2727
+ provenance_constraints?: {
2728
+ protocol: "context.indexer.selector/v1";
2729
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2730
+ } | undefined;
2731
+ };
2732
+ allowed_exclusion_reason_codes?: string[] | undefined;
2733
+ }[];
2734
+ layout_mappings: {
2735
+ collection: import("./contracts.js").TopLevelNamespace;
2736
+ artifact_kinds: string[];
2737
+ source_roles: string[];
2738
+ document_kind: string;
2739
+ reader_goal: string;
2740
+ }[];
2741
+ variant_schema: {
2742
+ axes: {
2743
+ values: string[];
2744
+ id: string;
2745
+ type: "enum";
2746
+ required: boolean;
2747
+ }[];
2748
+ };
2749
+ }[];
2750
+ subject_key_schemas: {
2751
+ namespace: {
2752
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2753
+ };
2754
+ version: number;
2755
+ profile: string;
2756
+ kinds: {
2757
+ id: string;
2758
+ local_key: {
2759
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2760
+ };
2761
+ }[];
2762
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2763
+ }[];
2764
+ }>, {
2765
+ protocol: "context.indexer.profile-contract/v1";
2766
+ contract_digest: string;
2767
+ coverage_domains: ("public-contract" | "technical-structure" | "business-semantics" | "operations")[];
2768
+ version: string;
2769
+ operator_contract_version: string;
2770
+ operator_contract_digest: string;
2771
+ profiles: {
2772
+ id: string;
2773
+ metrics: ({
2774
+ id: string;
2775
+ operator: string;
2776
+ unit: "count" | "ratio";
2777
+ threshold_policy: "explicit";
2778
+ direction: "minimum";
2779
+ recommended_min: number;
2780
+ hard_min: number;
2781
+ } | {
2782
+ id: string;
2783
+ operator: string;
2784
+ unit: "count" | "ratio";
2785
+ threshold_policy: "explicit";
2786
+ direction: "maximum";
2787
+ recommended_max: number;
2788
+ hard_max: number;
2789
+ } | {
2790
+ id: string;
2791
+ operator: string;
2792
+ unit: "count" | "ratio";
2793
+ threshold_policy: "inflation-sensitive";
2794
+ direction: "maximum";
2795
+ })[];
2796
+ parser_requirements: {
2797
+ protocol: "context.indexer.parser-requirement/v1";
2798
+ capability: string;
2799
+ abi: string;
2800
+ abi_digest: string;
2801
+ community_coordinate: {
2802
+ export: string;
2803
+ package: string;
2804
+ version: string;
2805
+ };
2806
+ requirement_digest: string;
2807
+ }[];
2808
+ inventory_domains: {
2809
+ id: string;
2810
+ selector: {
2811
+ operator: string;
2812
+ parameters?: Record<string, IndexerJson> | undefined;
2813
+ };
2814
+ disposition_required: true;
2815
+ }[];
2816
+ required_dispositions: string[];
2817
+ artifact_policy_variants: {
2818
+ id: string;
2819
+ thresholds: Record<string, {
2820
+ recommended_max: number;
2821
+ }>;
2822
+ eligibility: {
2823
+ protocol: "context.indexer.selector/v1";
2824
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2825
+ };
2826
+ artifact_kinds: {
2827
+ required: string[];
2828
+ discretionary: string[];
2829
+ };
2830
+ }[];
2831
+ question_target_domains: {
2832
+ id: string;
2833
+ selector: {
2834
+ operator: string;
2835
+ parameters?: Record<string, IndexerJson> | undefined;
2836
+ };
2837
+ grouping_operator: string;
2838
+ subject_key_kind: string;
2839
+ granularity: "module" | "identity";
2840
+ }[];
2841
+ reader_question_contracts: {
2842
+ ref: string;
2843
+ version: number;
2844
+ semantic: string;
2845
+ coverage_domain: string;
2846
+ target_domain_ref: string;
2847
+ target_selector: {
2848
+ protocol: "context.indexer.selector/v1";
2849
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2850
+ };
2851
+ evidence_contract: {
2852
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2853
+ minimum_items: number;
2854
+ minimum_distinct_sources: number;
2855
+ provenance_constraints?: {
2856
+ protocol: "context.indexer.selector/v1";
2857
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2858
+ } | undefined;
2859
+ };
2860
+ allowed_exclusion_reason_codes?: string[] | undefined;
2861
+ }[];
2862
+ layout_mappings: {
2863
+ collection: import("./contracts.js").TopLevelNamespace;
2864
+ artifact_kinds: string[];
2865
+ source_roles: string[];
2866
+ document_kind: string;
2867
+ reader_goal: string;
2868
+ }[];
2869
+ variant_schema: {
2870
+ axes: {
2871
+ values: string[];
2872
+ id: string;
2873
+ type: "enum";
2874
+ required: boolean;
2875
+ }[];
2876
+ };
2877
+ }[];
2878
+ subject_key_schemas: {
2879
+ namespace: {
2880
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2881
+ };
2882
+ version: number;
2883
+ profile: string;
2884
+ kinds: {
2885
+ id: string;
2886
+ local_key: {
2887
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
2888
+ };
2889
+ }[];
2890
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
2891
+ }[];
2892
+ }, {
2893
+ protocol: "context.indexer.profile-contract/v1";
2894
+ contract_digest: string;
2895
+ coverage_domains: ("public-contract" | "technical-structure" | "business-semantics" | "operations")[];
2896
+ version: string;
2897
+ operator_contract_version: string;
2898
+ operator_contract_digest: string;
2899
+ profiles: {
2900
+ id: string;
2901
+ metrics: ({
2902
+ id: string;
2903
+ operator: string;
2904
+ unit: "count" | "ratio";
2905
+ threshold_policy: "explicit";
2906
+ direction: "minimum";
2907
+ recommended_min: number;
2908
+ hard_min: number;
2909
+ } | {
2910
+ id: string;
2911
+ operator: string;
2912
+ unit: "count" | "ratio";
2913
+ threshold_policy: "explicit";
2914
+ direction: "maximum";
2915
+ recommended_max: number;
2916
+ hard_max: number;
2917
+ } | {
2918
+ id: string;
2919
+ operator: string;
2920
+ unit: "count" | "ratio";
2921
+ threshold_policy: "inflation-sensitive";
2922
+ direction: "maximum";
2923
+ })[];
2924
+ parser_requirements: {
2925
+ protocol: "context.indexer.parser-requirement/v1";
2926
+ capability: string;
2927
+ abi: string;
2928
+ abi_digest: string;
2929
+ community_coordinate: {
2930
+ export: string;
2931
+ package: string;
2932
+ version: string;
2933
+ };
2934
+ requirement_digest: string;
2935
+ }[];
2936
+ inventory_domains: {
2937
+ id: string;
2938
+ selector: {
2939
+ operator: string;
2940
+ parameters?: Record<string, IndexerJson> | undefined;
2941
+ };
2942
+ disposition_required: true;
2943
+ }[];
2944
+ required_dispositions: string[];
2945
+ artifact_policy_variants: {
2946
+ id: string;
2947
+ thresholds: Record<string, {
2948
+ recommended_max: number;
2949
+ }>;
2950
+ eligibility: {
2951
+ protocol: "context.indexer.selector/v1";
2952
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2953
+ };
2954
+ artifact_kinds: {
2955
+ required: string[];
2956
+ discretionary: string[];
2957
+ };
2958
+ }[];
2959
+ question_target_domains: {
2960
+ id: string;
2961
+ selector: {
2962
+ operator: string;
2963
+ parameters?: Record<string, IndexerJson> | undefined;
2964
+ };
2965
+ grouping_operator: string;
2966
+ subject_key_kind: string;
2967
+ granularity: "module" | "identity";
2968
+ }[];
2969
+ reader_question_contracts: {
2970
+ ref: string;
2971
+ version: number;
2972
+ semantic: string;
2973
+ coverage_domain: string;
2974
+ target_domain_ref: string;
2975
+ target_selector: {
2976
+ protocol: "context.indexer.selector/v1";
2977
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2978
+ };
2979
+ evidence_contract: {
2980
+ accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
2981
+ minimum_items: number;
2982
+ minimum_distinct_sources: number;
2983
+ provenance_constraints?: {
2984
+ protocol: "context.indexer.selector/v1";
2985
+ expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
2986
+ } | undefined;
2987
+ };
2988
+ allowed_exclusion_reason_codes?: string[] | undefined;
2989
+ }[];
2990
+ layout_mappings: {
2991
+ collection: import("./contracts.js").TopLevelNamespace;
2992
+ artifact_kinds: string[];
2993
+ source_roles: string[];
2994
+ document_kind: string;
2995
+ reader_goal: string;
2996
+ }[];
2997
+ variant_schema: {
2998
+ axes: {
2999
+ values: string[];
3000
+ id: string;
3001
+ type: "enum";
3002
+ required: boolean;
3003
+ }[];
3004
+ };
3005
+ }[];
3006
+ subject_key_schemas: {
3007
+ namespace: {
3008
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
3009
+ };
3010
+ version: number;
3011
+ profile: string;
3012
+ kinds: {
3013
+ id: string;
3014
+ local_key: {
3015
+ operator: "canonical-source-module-namespace" | "canonical-service-namespace" | "canonical-module-identity" | "canonical-export-family";
3016
+ };
3017
+ }[];
3018
+ normalization?: ("trim" | "unicode-nfc" | "preserve-case" | "lowercase")[] | undefined;
3019
+ }[];
3020
+ }>;
3021
+ export type IndexerOperatorContract = z.infer<typeof indexerOperatorContractSchema>;
3022
+ export type IndexerMetricContract = z.infer<typeof indexerMetricContractSchema>;
3023
+ export type IndexerArtifactPolicyVariant = z.infer<typeof indexerArtifactPolicyVariantSchema>;
3024
+ export type IndexerLayoutMapping = z.infer<typeof indexerLayoutMappingSchema>;
3025
+ export type IndexerReaderQuestionContract = z.infer<typeof indexerReaderQuestionContractSchema>;
3026
+ export type IndexerSubjectKeyContract = z.infer<typeof indexerSubjectKeyContractSchema>;
3027
+ export type IndexerProfileSubjectKey = z.infer<typeof indexerProfileSubjectKeySchema>;
3028
+ export type IndexerProfileContractEntry = z.infer<typeof indexerProfileContractEntrySchema>;
3029
+ export type IndexerProfileContract = z.infer<typeof indexerProfileContractSchema>;
3030
+ export declare function indexerOperatorContractDigest(contract: Omit<IndexerOperatorContract, "contract_digest">): string;
3031
+ export declare function indexerProfileContractDigest(contract: Omit<IndexerProfileContract, "contract_digest">): string;
3032
+ export declare function validateIndexerOperatorContract(value: unknown): IndexerOperatorContract;
3033
+ export declare function validateIndexerProfileContract(value: unknown, operatorContractValue: unknown): IndexerProfileContract;
3034
+ export declare function inflationSensitiveHardMaximum(recommendedMaximum: number, unit?: "count" | "ratio"): number;