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