@c4a/context 0.6.19 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/codeIndexPlan.d.ts +34 -0
  4. package/docs/README.md +7 -0
  5. package/docs/README.zh-CN.md +5 -0
  6. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  7. package/docs/guides/indexer-provider-and-customization.md +140 -0
  8. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  9. package/docs/reference/code-extractors.md +2 -2
  10. package/docs/reference/indexer-provider-protocol.md +819 -0
  11. package/docs/reference/project-api.md +2 -2
  12. package/index.d.ts +47 -1
  13. package/index.js +28239 -3952
  14. package/indexerAgentStepProtocol.d.ts +9391 -0
  15. package/indexerArtifactDependencies.d.ts +689 -0
  16. package/indexerArtifactPolicy.d.ts +335 -0
  17. package/indexerArtifactResult.d.ts +2010 -0
  18. package/indexerAuditFacts.d.ts +66 -0
  19. package/indexerAuditOverrideReadiness.d.ts +27 -0
  20. package/indexerAuditProtocol.d.ts +238 -0
  21. package/indexerAuditRevision.d.ts +726 -0
  22. package/indexerAuditRevisionActions.d.ts +236 -0
  23. package/indexerAuthoringFixture.d.ts +152 -0
  24. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  25. package/indexerBenchmark.d.ts +1062 -0
  26. package/indexerCandidateCompile.d.ts +801 -0
  27. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  28. package/indexerCatalogFallback.d.ts +1262 -0
  29. package/indexerCollectionMapping.d.ts +75 -0
  30. package/indexerContentLayers.d.ts +137 -0
  31. package/indexerControlledInvocation.d.ts +512 -0
  32. package/indexerControlledProgram.d.ts +12535 -0
  33. package/indexerCoreExports.d.ts +21 -0
  34. package/indexerCustomizationDraft.d.ts +13800 -0
  35. package/indexerCustomizationLadder.d.ts +103 -0
  36. package/indexerDependencyView.d.ts +1610 -0
  37. package/indexerEvidenceAdapterResult.d.ts +504 -0
  38. package/indexerExampleDecision.d.ts +1606 -0
  39. package/indexerExampleIdentity.d.ts +132 -0
  40. package/indexerExampleIdentityAudit.d.ts +70 -0
  41. package/indexerExampleLinkageAudit.d.ts +80 -0
  42. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  43. package/indexerIncrementalImpact.d.ts +221 -0
  44. package/indexerInventoryDisposition.d.ts +443 -0
  45. package/indexerLayerComposition.d.ts +1652 -0
  46. package/indexerLayoutChange.d.ts +329 -0
  47. package/indexerLayoutProposalSet.d.ts +447 -0
  48. package/indexerLayoutResolver.d.ts +342 -0
  49. package/indexerLayoutTransition.d.ts +247 -0
  50. package/indexerLifecycle.d.ts +53 -0
  51. package/indexerMainLifecycle.d.ts +258 -0
  52. package/indexerMainRunLedger.d.ts +888 -0
  53. package/indexerMainRunProtocol.d.ts +6471 -0
  54. package/indexerMainWorkset.d.ts +2141 -0
  55. package/indexerMaterialAnswer.d.ts +738 -0
  56. package/indexerMaterialAnswerActualization.d.ts +91 -0
  57. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  58. package/indexerMaterialAnswerFlow.d.ts +63 -0
  59. package/indexerMaterialAnswerLayout.d.ts +76 -0
  60. package/indexerMaterialAnswerReview.d.ts +217 -0
  61. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  62. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  63. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  64. package/indexerMaterialGapLedger.d.ts +3111 -0
  65. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  66. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  67. package/indexerNavigationArtifactGraph.d.ts +5 -0
  68. package/indexerNavigationArtifactPlan.d.ts +39 -0
  69. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  70. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  71. package/indexerOverlayTrust.d.ts +1425 -0
  72. package/indexerParserCoordinate.d.ts +222 -0
  73. package/indexerParserFactView.d.ts +503 -0
  74. package/indexerPartitionConvergence.d.ts +496 -0
  75. package/indexerPartitionPlan.d.ts +919 -0
  76. package/indexerPartitionStrategyResolution.d.ts +594 -0
  77. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  78. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  79. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  80. package/indexerPostAuthorComposition.d.ts +2000 -0
  81. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  82. package/indexerPrimaryProjection.d.ts +262 -0
  83. package/indexerProfileContract.d.ts +3034 -0
  84. package/indexerProfileMetricAudit.d.ts +218 -0
  85. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  86. package/indexerProgramRunProtocol.d.ts +7642 -0
  87. package/indexerProjectProposal.d.ts +2807 -0
  88. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  89. package/indexerProjectedArtifactPlan.d.ts +217 -0
  90. package/indexerProtocolCommon.d.ts +29 -0
  91. package/indexerProvider.d.ts +2573 -0
  92. package/indexerProviderComposition.d.ts +1357 -0
  93. package/indexerProviderContractReferences.d.ts +13 -0
  94. package/indexerProviderProfileResolution.d.ts +20 -0
  95. package/indexerProviderResolution.d.ts +752 -0
  96. package/indexerProviderResolutionAction.d.ts +678 -0
  97. package/indexerProviderRouting.d.ts +3909 -0
  98. package/indexerProviderSelectionProposal.d.ts +3311 -0
  99. package/indexerQuestionAuthority.d.ts +419 -0
  100. package/indexerReaderTargetInventory.d.ts +161 -0
  101. package/indexerReferenceOnlyAudit.d.ts +90 -0
  102. package/indexerRegistry.d.ts +3019 -0
  103. package/indexerRequirementComparison.d.ts +44 -0
  104. package/indexerRequirementConfirmation.d.ts +1193 -0
  105. package/indexerRequirementLifecycle.d.ts +3314 -0
  106. package/indexerRestrictedSelector.d.ts +63 -0
  107. package/indexerResultReconciliation.d.ts +6844 -0
  108. package/indexerResultReconciliationRun.d.ts +15 -0
  109. package/indexerRunEnvelope.d.ts +384 -0
  110. package/indexerRunProtocolCommon.d.ts +21 -0
  111. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  112. package/indexerStructuredDeclaration.d.ts +513 -0
  113. package/indexerSubjectCatalog.d.ts +230 -0
  114. package/indexerSubjectIdentity.d.ts +19 -0
  115. package/indexerSubjectKeyAuthority.d.ts +785 -0
  116. package/indexerTemplateRendering.d.ts +485 -0
  117. package/indexerToolSnapshot.d.ts +431 -0
  118. package/indexerWorksetRead.d.ts +287 -0
  119. package/package.json +1 -1
  120. package/phases.d.ts +1 -1
@@ -0,0 +1,1193 @@
1
+ import { z } from "zod";
2
+ import { type RequirementContractionComparatorOptions } from "./indexerRequirementComparison.js";
3
+ import { type IndexRequirement } from "./indexerRegistry.js";
4
+ export declare const indexerRequirementChangeReportSchema: z.ZodObject<{
5
+ protocol: z.ZodLiteral<"context.indexer.requirement-change-report/v1">;
6
+ project_ref: z.ZodString;
7
+ old_requirement: z.ZodEffects<z.ZodObject<{
8
+ id: z.ZodEffects<z.ZodString, string, string>;
9
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
10
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
11
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ ref: z.ZodString;
13
+ authority: z.ZodObject<{
14
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
15
+ ref: z.ZodString;
16
+ digest: z.ZodString;
17
+ }, "strict", z.ZodTypeAny, {
18
+ kind: "cli-base-contract" | "verified-contract-overlay";
19
+ ref: string;
20
+ digest: string;
21
+ }, {
22
+ kind: "cli-base-contract" | "verified-contract-overlay";
23
+ ref: string;
24
+ digest: string;
25
+ }>;
26
+ contract_version: z.ZodNumber;
27
+ contract_digest: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ ref: string;
30
+ authority: {
31
+ kind: "cli-base-contract" | "verified-contract-overlay";
32
+ ref: string;
33
+ digest: string;
34
+ };
35
+ contract_version: number;
36
+ contract_digest: string;
37
+ }, {
38
+ ref: string;
39
+ authority: {
40
+ kind: "cli-base-contract" | "verified-contract-overlay";
41
+ ref: string;
42
+ digest: string;
43
+ };
44
+ contract_version: number;
45
+ contract_digest: string;
46
+ }>, "many">>;
47
+ target_scope: z.ZodEffects<z.ZodObject<{
48
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
49
+ source_ref: z.ZodString;
50
+ module_refs: z.ZodArray<z.ZodString, "many">;
51
+ }, "strict", z.ZodTypeAny, {
52
+ source_ref: string;
53
+ module_refs: string[];
54
+ }, {
55
+ source_ref: string;
56
+ module_refs: string[];
57
+ }>, {
58
+ source_ref: string;
59
+ module_refs: string[];
60
+ }, {
61
+ source_ref: string;
62
+ module_refs: string[];
63
+ }>, "many">;
64
+ }, "strict", z.ZodTypeAny, {
65
+ targets: {
66
+ source_ref: string;
67
+ module_refs: string[];
68
+ }[];
69
+ }, {
70
+ targets: {
71
+ source_ref: string;
72
+ module_refs: string[];
73
+ }[];
74
+ }>, {
75
+ targets: {
76
+ source_ref: string;
77
+ module_refs: string[];
78
+ }[];
79
+ }, {
80
+ targets: {
81
+ source_ref: string;
82
+ module_refs: string[];
83
+ }[];
84
+ }>;
85
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
86
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
87
+ source_ref: z.ZodString;
88
+ module_refs: z.ZodArray<z.ZodString, "many">;
89
+ }, "strict", z.ZodTypeAny, {
90
+ source_ref: string;
91
+ module_refs: string[];
92
+ }, {
93
+ source_ref: string;
94
+ module_refs: string[];
95
+ }>, {
96
+ source_ref: string;
97
+ module_refs: string[];
98
+ }, {
99
+ source_ref: string;
100
+ module_refs: string[];
101
+ }>, "many">;
102
+ }, "strict", z.ZodTypeAny, {
103
+ targets: {
104
+ source_ref: string;
105
+ module_refs: string[];
106
+ }[];
107
+ }, {
108
+ targets: {
109
+ source_ref: string;
110
+ module_refs: string[];
111
+ }[];
112
+ }>, {
113
+ targets: {
114
+ source_ref: string;
115
+ module_refs: string[];
116
+ }[];
117
+ }, {
118
+ targets: {
119
+ source_ref: string;
120
+ module_refs: string[];
121
+ }[];
122
+ }>;
123
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ id: z.ZodEffects<z.ZodString, string, string>;
125
+ scope: z.ZodEffects<z.ZodObject<{
126
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
127
+ source_ref: z.ZodString;
128
+ module_refs: z.ZodArray<z.ZodString, "many">;
129
+ }, "strict", z.ZodTypeAny, {
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
+ }, {
139
+ source_ref: string;
140
+ module_refs: string[];
141
+ }>, "many">;
142
+ }, "strict", z.ZodTypeAny, {
143
+ targets: {
144
+ source_ref: string;
145
+ module_refs: string[];
146
+ }[];
147
+ }, {
148
+ targets: {
149
+ source_ref: string;
150
+ module_refs: string[];
151
+ }[];
152
+ }>, {
153
+ targets: {
154
+ source_ref: string;
155
+ module_refs: string[];
156
+ }[];
157
+ }, {
158
+ targets: {
159
+ source_ref: string;
160
+ module_refs: string[];
161
+ }[];
162
+ }>;
163
+ reason: z.ZodString;
164
+ }, "strict", z.ZodTypeAny, {
165
+ id: string;
166
+ scope: {
167
+ targets: {
168
+ source_ref: string;
169
+ module_refs: string[];
170
+ }[];
171
+ };
172
+ reason: string;
173
+ }, {
174
+ id: string;
175
+ scope: {
176
+ targets: {
177
+ source_ref: string;
178
+ module_refs: string[];
179
+ }[];
180
+ };
181
+ reason: string;
182
+ }>, "many">>;
183
+ }, "strict", z.ZodTypeAny, {
184
+ id: string;
185
+ reader_goals: string[];
186
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
187
+ target_scope: {
188
+ targets: {
189
+ source_ref: string;
190
+ module_refs: string[];
191
+ }[];
192
+ };
193
+ evidence_source_scope: {
194
+ targets: {
195
+ source_ref: string;
196
+ module_refs: string[];
197
+ }[];
198
+ };
199
+ questions?: {
200
+ ref: string;
201
+ authority: {
202
+ kind: "cli-base-contract" | "verified-contract-overlay";
203
+ ref: string;
204
+ digest: string;
205
+ };
206
+ contract_version: number;
207
+ contract_digest: string;
208
+ }[] | undefined;
209
+ exclusions?: {
210
+ id: string;
211
+ scope: {
212
+ targets: {
213
+ source_ref: string;
214
+ module_refs: string[];
215
+ }[];
216
+ };
217
+ reason: string;
218
+ }[] | undefined;
219
+ }, {
220
+ id: string;
221
+ reader_goals: string[];
222
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
223
+ target_scope: {
224
+ targets: {
225
+ source_ref: string;
226
+ module_refs: string[];
227
+ }[];
228
+ };
229
+ evidence_source_scope: {
230
+ targets: {
231
+ source_ref: string;
232
+ module_refs: string[];
233
+ }[];
234
+ };
235
+ questions?: {
236
+ ref: string;
237
+ authority: {
238
+ kind: "cli-base-contract" | "verified-contract-overlay";
239
+ ref: string;
240
+ digest: string;
241
+ };
242
+ contract_version: number;
243
+ contract_digest: string;
244
+ }[] | undefined;
245
+ exclusions?: {
246
+ id: string;
247
+ scope: {
248
+ targets: {
249
+ source_ref: string;
250
+ module_refs: string[];
251
+ }[];
252
+ };
253
+ reason: string;
254
+ }[] | undefined;
255
+ }>, {
256
+ id: string;
257
+ reader_goals: string[];
258
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
259
+ target_scope: {
260
+ targets: {
261
+ source_ref: string;
262
+ module_refs: string[];
263
+ }[];
264
+ };
265
+ evidence_source_scope: {
266
+ targets: {
267
+ source_ref: string;
268
+ module_refs: string[];
269
+ }[];
270
+ };
271
+ questions?: {
272
+ ref: string;
273
+ authority: {
274
+ kind: "cli-base-contract" | "verified-contract-overlay";
275
+ ref: string;
276
+ digest: string;
277
+ };
278
+ contract_version: number;
279
+ contract_digest: string;
280
+ }[] | undefined;
281
+ exclusions?: {
282
+ id: string;
283
+ scope: {
284
+ targets: {
285
+ source_ref: string;
286
+ module_refs: string[];
287
+ }[];
288
+ };
289
+ reason: string;
290
+ }[] | undefined;
291
+ }, {
292
+ id: string;
293
+ reader_goals: string[];
294
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
295
+ target_scope: {
296
+ targets: {
297
+ source_ref: string;
298
+ module_refs: string[];
299
+ }[];
300
+ };
301
+ evidence_source_scope: {
302
+ targets: {
303
+ source_ref: string;
304
+ module_refs: string[];
305
+ }[];
306
+ };
307
+ questions?: {
308
+ ref: string;
309
+ authority: {
310
+ kind: "cli-base-contract" | "verified-contract-overlay";
311
+ ref: string;
312
+ digest: string;
313
+ };
314
+ contract_version: number;
315
+ contract_digest: string;
316
+ }[] | undefined;
317
+ exclusions?: {
318
+ id: string;
319
+ scope: {
320
+ targets: {
321
+ source_ref: string;
322
+ module_refs: string[];
323
+ }[];
324
+ };
325
+ reason: string;
326
+ }[] | undefined;
327
+ }>;
328
+ new_requirement: z.ZodEffects<z.ZodObject<{
329
+ id: z.ZodEffects<z.ZodString, string, string>;
330
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
331
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
332
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ ref: z.ZodString;
334
+ authority: z.ZodObject<{
335
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
336
+ ref: z.ZodString;
337
+ digest: z.ZodString;
338
+ }, "strict", z.ZodTypeAny, {
339
+ kind: "cli-base-contract" | "verified-contract-overlay";
340
+ ref: string;
341
+ digest: string;
342
+ }, {
343
+ kind: "cli-base-contract" | "verified-contract-overlay";
344
+ ref: string;
345
+ digest: string;
346
+ }>;
347
+ contract_version: z.ZodNumber;
348
+ contract_digest: z.ZodString;
349
+ }, "strict", z.ZodTypeAny, {
350
+ ref: string;
351
+ authority: {
352
+ kind: "cli-base-contract" | "verified-contract-overlay";
353
+ ref: string;
354
+ digest: string;
355
+ };
356
+ contract_version: number;
357
+ contract_digest: string;
358
+ }, {
359
+ ref: string;
360
+ authority: {
361
+ kind: "cli-base-contract" | "verified-contract-overlay";
362
+ ref: string;
363
+ digest: string;
364
+ };
365
+ contract_version: number;
366
+ contract_digest: string;
367
+ }>, "many">>;
368
+ target_scope: z.ZodEffects<z.ZodObject<{
369
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
370
+ source_ref: z.ZodString;
371
+ module_refs: z.ZodArray<z.ZodString, "many">;
372
+ }, "strict", z.ZodTypeAny, {
373
+ source_ref: string;
374
+ module_refs: string[];
375
+ }, {
376
+ source_ref: string;
377
+ module_refs: string[];
378
+ }>, {
379
+ source_ref: string;
380
+ module_refs: string[];
381
+ }, {
382
+ source_ref: string;
383
+ module_refs: string[];
384
+ }>, "many">;
385
+ }, "strict", z.ZodTypeAny, {
386
+ targets: {
387
+ source_ref: string;
388
+ module_refs: string[];
389
+ }[];
390
+ }, {
391
+ targets: {
392
+ source_ref: string;
393
+ module_refs: string[];
394
+ }[];
395
+ }>, {
396
+ targets: {
397
+ source_ref: string;
398
+ module_refs: string[];
399
+ }[];
400
+ }, {
401
+ targets: {
402
+ source_ref: string;
403
+ module_refs: string[];
404
+ }[];
405
+ }>;
406
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
407
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
408
+ source_ref: z.ZodString;
409
+ module_refs: z.ZodArray<z.ZodString, "many">;
410
+ }, "strict", z.ZodTypeAny, {
411
+ source_ref: string;
412
+ module_refs: string[];
413
+ }, {
414
+ source_ref: string;
415
+ module_refs: string[];
416
+ }>, {
417
+ source_ref: string;
418
+ module_refs: string[];
419
+ }, {
420
+ source_ref: string;
421
+ module_refs: string[];
422
+ }>, "many">;
423
+ }, "strict", z.ZodTypeAny, {
424
+ targets: {
425
+ source_ref: string;
426
+ module_refs: string[];
427
+ }[];
428
+ }, {
429
+ targets: {
430
+ source_ref: string;
431
+ module_refs: string[];
432
+ }[];
433
+ }>, {
434
+ targets: {
435
+ source_ref: string;
436
+ module_refs: string[];
437
+ }[];
438
+ }, {
439
+ targets: {
440
+ source_ref: string;
441
+ module_refs: string[];
442
+ }[];
443
+ }>;
444
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
445
+ id: z.ZodEffects<z.ZodString, string, string>;
446
+ scope: z.ZodEffects<z.ZodObject<{
447
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
448
+ source_ref: z.ZodString;
449
+ module_refs: z.ZodArray<z.ZodString, "many">;
450
+ }, "strict", z.ZodTypeAny, {
451
+ source_ref: string;
452
+ module_refs: string[];
453
+ }, {
454
+ source_ref: string;
455
+ module_refs: string[];
456
+ }>, {
457
+ source_ref: string;
458
+ module_refs: string[];
459
+ }, {
460
+ source_ref: string;
461
+ module_refs: string[];
462
+ }>, "many">;
463
+ }, "strict", z.ZodTypeAny, {
464
+ targets: {
465
+ source_ref: string;
466
+ module_refs: string[];
467
+ }[];
468
+ }, {
469
+ targets: {
470
+ source_ref: string;
471
+ module_refs: string[];
472
+ }[];
473
+ }>, {
474
+ targets: {
475
+ source_ref: string;
476
+ module_refs: string[];
477
+ }[];
478
+ }, {
479
+ targets: {
480
+ source_ref: string;
481
+ module_refs: string[];
482
+ }[];
483
+ }>;
484
+ reason: z.ZodString;
485
+ }, "strict", z.ZodTypeAny, {
486
+ id: string;
487
+ scope: {
488
+ targets: {
489
+ source_ref: string;
490
+ module_refs: string[];
491
+ }[];
492
+ };
493
+ reason: string;
494
+ }, {
495
+ id: string;
496
+ scope: {
497
+ targets: {
498
+ source_ref: string;
499
+ module_refs: string[];
500
+ }[];
501
+ };
502
+ reason: string;
503
+ }>, "many">>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ id: string;
506
+ reader_goals: string[];
507
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
508
+ target_scope: {
509
+ targets: {
510
+ source_ref: string;
511
+ module_refs: string[];
512
+ }[];
513
+ };
514
+ evidence_source_scope: {
515
+ targets: {
516
+ source_ref: string;
517
+ module_refs: string[];
518
+ }[];
519
+ };
520
+ questions?: {
521
+ ref: string;
522
+ authority: {
523
+ kind: "cli-base-contract" | "verified-contract-overlay";
524
+ ref: string;
525
+ digest: string;
526
+ };
527
+ contract_version: number;
528
+ contract_digest: string;
529
+ }[] | undefined;
530
+ exclusions?: {
531
+ id: string;
532
+ scope: {
533
+ targets: {
534
+ source_ref: string;
535
+ module_refs: string[];
536
+ }[];
537
+ };
538
+ reason: string;
539
+ }[] | undefined;
540
+ }, {
541
+ id: string;
542
+ reader_goals: string[];
543
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
544
+ target_scope: {
545
+ targets: {
546
+ source_ref: string;
547
+ module_refs: string[];
548
+ }[];
549
+ };
550
+ evidence_source_scope: {
551
+ targets: {
552
+ source_ref: string;
553
+ module_refs: string[];
554
+ }[];
555
+ };
556
+ questions?: {
557
+ ref: string;
558
+ authority: {
559
+ kind: "cli-base-contract" | "verified-contract-overlay";
560
+ ref: string;
561
+ digest: string;
562
+ };
563
+ contract_version: number;
564
+ contract_digest: string;
565
+ }[] | undefined;
566
+ exclusions?: {
567
+ id: string;
568
+ scope: {
569
+ targets: {
570
+ source_ref: string;
571
+ module_refs: string[];
572
+ }[];
573
+ };
574
+ reason: string;
575
+ }[] | undefined;
576
+ }>, {
577
+ id: string;
578
+ reader_goals: string[];
579
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
580
+ target_scope: {
581
+ targets: {
582
+ source_ref: string;
583
+ module_refs: string[];
584
+ }[];
585
+ };
586
+ evidence_source_scope: {
587
+ targets: {
588
+ source_ref: string;
589
+ module_refs: string[];
590
+ }[];
591
+ };
592
+ questions?: {
593
+ ref: string;
594
+ authority: {
595
+ kind: "cli-base-contract" | "verified-contract-overlay";
596
+ ref: string;
597
+ digest: string;
598
+ };
599
+ contract_version: number;
600
+ contract_digest: string;
601
+ }[] | undefined;
602
+ exclusions?: {
603
+ id: string;
604
+ scope: {
605
+ targets: {
606
+ source_ref: string;
607
+ module_refs: string[];
608
+ }[];
609
+ };
610
+ reason: string;
611
+ }[] | undefined;
612
+ }, {
613
+ id: string;
614
+ reader_goals: string[];
615
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
616
+ target_scope: {
617
+ targets: {
618
+ source_ref: string;
619
+ module_refs: string[];
620
+ }[];
621
+ };
622
+ evidence_source_scope: {
623
+ targets: {
624
+ source_ref: string;
625
+ module_refs: string[];
626
+ }[];
627
+ };
628
+ questions?: {
629
+ ref: string;
630
+ authority: {
631
+ kind: "cli-base-contract" | "verified-contract-overlay";
632
+ ref: string;
633
+ digest: string;
634
+ };
635
+ contract_version: number;
636
+ contract_digest: string;
637
+ }[] | undefined;
638
+ exclusions?: {
639
+ id: string;
640
+ scope: {
641
+ targets: {
642
+ source_ref: string;
643
+ module_refs: string[];
644
+ }[];
645
+ };
646
+ reason: string;
647
+ }[] | undefined;
648
+ }>;
649
+ old_requirement_digest: z.ZodString;
650
+ new_requirement_digest: z.ZodString;
651
+ comparator_inputs: z.ZodObject<{
652
+ readerGoalImplications: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
653
+ oldQuestionContracts: z.ZodArray<z.ZodObject<{
654
+ ref: z.ZodString;
655
+ contractDigest: z.ZodString;
656
+ semanticId: z.ZodString;
657
+ coverageDomain: z.ZodString;
658
+ targetDomainId: z.ZodString;
659
+ selectorContractDigest: z.ZodString;
660
+ targetRefs: z.ZodArray<z.ZodString, "many">;
661
+ evidence: z.ZodObject<{
662
+ acceptedKinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
663
+ minimumItems: z.ZodNumber;
664
+ minimumDistinctSources: z.ZodNumber;
665
+ provenanceRequired: z.ZodBoolean;
666
+ }, "strict", z.ZodTypeAny, {
667
+ minimumItems: number;
668
+ minimumDistinctSources: number;
669
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
670
+ provenanceRequired: boolean;
671
+ }, {
672
+ minimumItems: number;
673
+ minimumDistinctSources: number;
674
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
675
+ provenanceRequired: boolean;
676
+ }>;
677
+ }, "strict", z.ZodTypeAny, {
678
+ ref: string;
679
+ evidence: {
680
+ minimumItems: number;
681
+ minimumDistinctSources: number;
682
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
683
+ provenanceRequired: boolean;
684
+ };
685
+ coverageDomain: string;
686
+ semanticId: string;
687
+ targetDomainId: string;
688
+ selectorContractDigest: string;
689
+ contractDigest: string;
690
+ targetRefs: string[];
691
+ }, {
692
+ ref: string;
693
+ evidence: {
694
+ minimumItems: number;
695
+ minimumDistinctSources: number;
696
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
697
+ provenanceRequired: boolean;
698
+ };
699
+ coverageDomain: string;
700
+ semanticId: string;
701
+ targetDomainId: string;
702
+ selectorContractDigest: string;
703
+ contractDigest: string;
704
+ targetRefs: string[];
705
+ }>, "many">;
706
+ newQuestionContracts: z.ZodArray<z.ZodObject<{
707
+ ref: z.ZodString;
708
+ contractDigest: z.ZodString;
709
+ semanticId: z.ZodString;
710
+ coverageDomain: z.ZodString;
711
+ targetDomainId: z.ZodString;
712
+ selectorContractDigest: z.ZodString;
713
+ targetRefs: z.ZodArray<z.ZodString, "many">;
714
+ evidence: z.ZodObject<{
715
+ acceptedKinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
716
+ minimumItems: z.ZodNumber;
717
+ minimumDistinctSources: z.ZodNumber;
718
+ provenanceRequired: z.ZodBoolean;
719
+ }, "strict", z.ZodTypeAny, {
720
+ minimumItems: number;
721
+ minimumDistinctSources: number;
722
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
723
+ provenanceRequired: boolean;
724
+ }, {
725
+ minimumItems: number;
726
+ minimumDistinctSources: number;
727
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
728
+ provenanceRequired: boolean;
729
+ }>;
730
+ }, "strict", z.ZodTypeAny, {
731
+ ref: string;
732
+ evidence: {
733
+ minimumItems: number;
734
+ minimumDistinctSources: number;
735
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
736
+ provenanceRequired: boolean;
737
+ };
738
+ coverageDomain: string;
739
+ semanticId: string;
740
+ targetDomainId: string;
741
+ selectorContractDigest: string;
742
+ contractDigest: string;
743
+ targetRefs: string[];
744
+ }, {
745
+ ref: string;
746
+ evidence: {
747
+ minimumItems: number;
748
+ minimumDistinctSources: number;
749
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
750
+ provenanceRequired: boolean;
751
+ };
752
+ coverageDomain: string;
753
+ semanticId: string;
754
+ targetDomainId: string;
755
+ selectorContractDigest: string;
756
+ contractDigest: string;
757
+ targetRefs: string[];
758
+ }>, "many">;
759
+ selectorRelations: z.ZodRecord<z.ZodString, z.ZodEnum<["equivalent", "strengthening", "contraction", "incomparable"]>>;
760
+ }, "strict", z.ZodTypeAny, {
761
+ readerGoalImplications: Record<string, string[]>;
762
+ oldQuestionContracts: {
763
+ ref: string;
764
+ evidence: {
765
+ minimumItems: number;
766
+ minimumDistinctSources: number;
767
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
768
+ provenanceRequired: boolean;
769
+ };
770
+ coverageDomain: string;
771
+ semanticId: string;
772
+ targetDomainId: string;
773
+ selectorContractDigest: string;
774
+ contractDigest: string;
775
+ targetRefs: string[];
776
+ }[];
777
+ newQuestionContracts: {
778
+ ref: string;
779
+ evidence: {
780
+ minimumItems: number;
781
+ minimumDistinctSources: number;
782
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
783
+ provenanceRequired: boolean;
784
+ };
785
+ coverageDomain: string;
786
+ semanticId: string;
787
+ targetDomainId: string;
788
+ selectorContractDigest: string;
789
+ contractDigest: string;
790
+ targetRefs: string[];
791
+ }[];
792
+ selectorRelations: Record<string, "equivalent" | "strengthening" | "contraction" | "incomparable">;
793
+ }, {
794
+ readerGoalImplications: Record<string, string[]>;
795
+ oldQuestionContracts: {
796
+ ref: string;
797
+ evidence: {
798
+ minimumItems: number;
799
+ minimumDistinctSources: number;
800
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
801
+ provenanceRequired: boolean;
802
+ };
803
+ coverageDomain: string;
804
+ semanticId: string;
805
+ targetDomainId: string;
806
+ selectorContractDigest: string;
807
+ contractDigest: string;
808
+ targetRefs: string[];
809
+ }[];
810
+ newQuestionContracts: {
811
+ ref: string;
812
+ evidence: {
813
+ minimumItems: number;
814
+ minimumDistinctSources: number;
815
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
816
+ provenanceRequired: boolean;
817
+ };
818
+ coverageDomain: string;
819
+ semanticId: string;
820
+ targetDomainId: string;
821
+ selectorContractDigest: string;
822
+ contractDigest: string;
823
+ targetRefs: string[];
824
+ }[];
825
+ selectorRelations: Record<string, "equivalent" | "strengthening" | "contraction" | "incomparable">;
826
+ }>;
827
+ comparison: z.ZodObject<{
828
+ protocol: z.ZodLiteral<"context.indexer.requirement-contraction-comparison/v1">;
829
+ requirementRef: z.ZodString;
830
+ relation: z.ZodEnum<["equivalent", "strengthening", "contraction", "incomparable"]>;
831
+ requiresHumanConfirmation: z.ZodBoolean;
832
+ evidenceSourceChange: z.ZodEnum<["unchanged", "expanded", "reduced", "changed"]>;
833
+ changes: z.ZodArray<z.ZodObject<{
834
+ area: z.ZodEnum<["target-scope", "reader-goals", "coverage-domain", "exclusions", "question", "question-semantic", "question-selector", "question-domain", "question-evidence"]>;
835
+ path: z.ZodString;
836
+ relation: z.ZodEnum<["strengthening", "contraction", "incomparable"]>;
837
+ detail: z.ZodString;
838
+ }, "strict", z.ZodTypeAny, {
839
+ path: string;
840
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
841
+ relation: "strengthening" | "contraction" | "incomparable";
842
+ detail: string;
843
+ }, {
844
+ path: string;
845
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
846
+ relation: "strengthening" | "contraction" | "incomparable";
847
+ detail: string;
848
+ }>, "many">;
849
+ }, "strict", z.ZodTypeAny, {
850
+ protocol: "context.indexer.requirement-contraction-comparison/v1";
851
+ requirementRef: string;
852
+ evidenceSourceChange: "unchanged" | "expanded" | "reduced" | "changed";
853
+ relation: "equivalent" | "strengthening" | "contraction" | "incomparable";
854
+ requiresHumanConfirmation: boolean;
855
+ changes: {
856
+ path: string;
857
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
858
+ relation: "strengthening" | "contraction" | "incomparable";
859
+ detail: string;
860
+ }[];
861
+ }, {
862
+ protocol: "context.indexer.requirement-contraction-comparison/v1";
863
+ requirementRef: string;
864
+ evidenceSourceChange: "unchanged" | "expanded" | "reduced" | "changed";
865
+ relation: "equivalent" | "strengthening" | "contraction" | "incomparable";
866
+ requiresHumanConfirmation: boolean;
867
+ changes: {
868
+ path: string;
869
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
870
+ relation: "strengthening" | "contraction" | "incomparable";
871
+ detail: string;
872
+ }[];
873
+ }>;
874
+ comparison_digest: z.ZodString;
875
+ report_digest: z.ZodString;
876
+ }, "strict", z.ZodTypeAny, {
877
+ protocol: "context.indexer.requirement-change-report/v1";
878
+ project_ref: string;
879
+ report_digest: string;
880
+ old_requirement: {
881
+ id: string;
882
+ reader_goals: string[];
883
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
884
+ target_scope: {
885
+ targets: {
886
+ source_ref: string;
887
+ module_refs: string[];
888
+ }[];
889
+ };
890
+ evidence_source_scope: {
891
+ targets: {
892
+ source_ref: string;
893
+ module_refs: string[];
894
+ }[];
895
+ };
896
+ questions?: {
897
+ ref: string;
898
+ authority: {
899
+ kind: "cli-base-contract" | "verified-contract-overlay";
900
+ ref: string;
901
+ digest: string;
902
+ };
903
+ contract_version: number;
904
+ contract_digest: string;
905
+ }[] | undefined;
906
+ exclusions?: {
907
+ id: string;
908
+ scope: {
909
+ targets: {
910
+ source_ref: string;
911
+ module_refs: string[];
912
+ }[];
913
+ };
914
+ reason: string;
915
+ }[] | undefined;
916
+ };
917
+ new_requirement: {
918
+ id: string;
919
+ reader_goals: string[];
920
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
921
+ target_scope: {
922
+ targets: {
923
+ source_ref: string;
924
+ module_refs: string[];
925
+ }[];
926
+ };
927
+ evidence_source_scope: {
928
+ targets: {
929
+ source_ref: string;
930
+ module_refs: string[];
931
+ }[];
932
+ };
933
+ questions?: {
934
+ ref: string;
935
+ authority: {
936
+ kind: "cli-base-contract" | "verified-contract-overlay";
937
+ ref: string;
938
+ digest: string;
939
+ };
940
+ contract_version: number;
941
+ contract_digest: string;
942
+ }[] | undefined;
943
+ exclusions?: {
944
+ id: string;
945
+ scope: {
946
+ targets: {
947
+ source_ref: string;
948
+ module_refs: string[];
949
+ }[];
950
+ };
951
+ reason: string;
952
+ }[] | undefined;
953
+ };
954
+ old_requirement_digest: string;
955
+ new_requirement_digest: string;
956
+ comparator_inputs: {
957
+ readerGoalImplications: Record<string, string[]>;
958
+ oldQuestionContracts: {
959
+ ref: string;
960
+ evidence: {
961
+ minimumItems: number;
962
+ minimumDistinctSources: number;
963
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
964
+ provenanceRequired: boolean;
965
+ };
966
+ coverageDomain: string;
967
+ semanticId: string;
968
+ targetDomainId: string;
969
+ selectorContractDigest: string;
970
+ contractDigest: string;
971
+ targetRefs: string[];
972
+ }[];
973
+ newQuestionContracts: {
974
+ ref: string;
975
+ evidence: {
976
+ minimumItems: number;
977
+ minimumDistinctSources: number;
978
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
979
+ provenanceRequired: boolean;
980
+ };
981
+ coverageDomain: string;
982
+ semanticId: string;
983
+ targetDomainId: string;
984
+ selectorContractDigest: string;
985
+ contractDigest: string;
986
+ targetRefs: string[];
987
+ }[];
988
+ selectorRelations: Record<string, "equivalent" | "strengthening" | "contraction" | "incomparable">;
989
+ };
990
+ comparison: {
991
+ protocol: "context.indexer.requirement-contraction-comparison/v1";
992
+ requirementRef: string;
993
+ evidenceSourceChange: "unchanged" | "expanded" | "reduced" | "changed";
994
+ relation: "equivalent" | "strengthening" | "contraction" | "incomparable";
995
+ requiresHumanConfirmation: boolean;
996
+ changes: {
997
+ path: string;
998
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
999
+ relation: "strengthening" | "contraction" | "incomparable";
1000
+ detail: string;
1001
+ }[];
1002
+ };
1003
+ comparison_digest: string;
1004
+ }, {
1005
+ protocol: "context.indexer.requirement-change-report/v1";
1006
+ project_ref: string;
1007
+ report_digest: string;
1008
+ old_requirement: {
1009
+ id: string;
1010
+ reader_goals: string[];
1011
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1012
+ target_scope: {
1013
+ targets: {
1014
+ source_ref: string;
1015
+ module_refs: string[];
1016
+ }[];
1017
+ };
1018
+ evidence_source_scope: {
1019
+ targets: {
1020
+ source_ref: string;
1021
+ module_refs: string[];
1022
+ }[];
1023
+ };
1024
+ questions?: {
1025
+ ref: string;
1026
+ authority: {
1027
+ kind: "cli-base-contract" | "verified-contract-overlay";
1028
+ ref: string;
1029
+ digest: string;
1030
+ };
1031
+ contract_version: number;
1032
+ contract_digest: string;
1033
+ }[] | undefined;
1034
+ exclusions?: {
1035
+ id: string;
1036
+ scope: {
1037
+ targets: {
1038
+ source_ref: string;
1039
+ module_refs: string[];
1040
+ }[];
1041
+ };
1042
+ reason: string;
1043
+ }[] | undefined;
1044
+ };
1045
+ new_requirement: {
1046
+ id: string;
1047
+ reader_goals: string[];
1048
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1049
+ target_scope: {
1050
+ targets: {
1051
+ source_ref: string;
1052
+ module_refs: string[];
1053
+ }[];
1054
+ };
1055
+ evidence_source_scope: {
1056
+ targets: {
1057
+ source_ref: string;
1058
+ module_refs: string[];
1059
+ }[];
1060
+ };
1061
+ questions?: {
1062
+ ref: string;
1063
+ authority: {
1064
+ kind: "cli-base-contract" | "verified-contract-overlay";
1065
+ ref: string;
1066
+ digest: string;
1067
+ };
1068
+ contract_version: number;
1069
+ contract_digest: string;
1070
+ }[] | undefined;
1071
+ exclusions?: {
1072
+ id: string;
1073
+ scope: {
1074
+ targets: {
1075
+ source_ref: string;
1076
+ module_refs: string[];
1077
+ }[];
1078
+ };
1079
+ reason: string;
1080
+ }[] | undefined;
1081
+ };
1082
+ old_requirement_digest: string;
1083
+ new_requirement_digest: string;
1084
+ comparator_inputs: {
1085
+ readerGoalImplications: Record<string, string[]>;
1086
+ oldQuestionContracts: {
1087
+ ref: string;
1088
+ evidence: {
1089
+ minimumItems: number;
1090
+ minimumDistinctSources: number;
1091
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1092
+ provenanceRequired: boolean;
1093
+ };
1094
+ coverageDomain: string;
1095
+ semanticId: string;
1096
+ targetDomainId: string;
1097
+ selectorContractDigest: string;
1098
+ contractDigest: string;
1099
+ targetRefs: string[];
1100
+ }[];
1101
+ newQuestionContracts: {
1102
+ ref: string;
1103
+ evidence: {
1104
+ minimumItems: number;
1105
+ minimumDistinctSources: number;
1106
+ acceptedKinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
1107
+ provenanceRequired: boolean;
1108
+ };
1109
+ coverageDomain: string;
1110
+ semanticId: string;
1111
+ targetDomainId: string;
1112
+ selectorContractDigest: string;
1113
+ contractDigest: string;
1114
+ targetRefs: string[];
1115
+ }[];
1116
+ selectorRelations: Record<string, "equivalent" | "strengthening" | "contraction" | "incomparable">;
1117
+ };
1118
+ comparison: {
1119
+ protocol: "context.indexer.requirement-contraction-comparison/v1";
1120
+ requirementRef: string;
1121
+ evidenceSourceChange: "unchanged" | "expanded" | "reduced" | "changed";
1122
+ relation: "equivalent" | "strengthening" | "contraction" | "incomparable";
1123
+ requiresHumanConfirmation: boolean;
1124
+ changes: {
1125
+ path: string;
1126
+ area: "exclusions" | "question" | "target-scope" | "reader-goals" | "coverage-domain" | "question-semantic" | "question-selector" | "question-domain" | "question-evidence";
1127
+ relation: "strengthening" | "contraction" | "incomparable";
1128
+ detail: string;
1129
+ }[];
1130
+ };
1131
+ comparison_digest: string;
1132
+ }>;
1133
+ export declare const indexerRequirementChangeConfirmationSchema: z.ZodObject<{
1134
+ protocol: z.ZodLiteral<"context.indexer.requirement-change-confirmation/v1">;
1135
+ project_ref: z.ZodString;
1136
+ gate: z.ZodEnum<["confirm-index-requirements", "confirm-index-requirement-contraction"]>;
1137
+ old_requirement_digest: z.ZodString;
1138
+ new_requirement_digest: z.ZodString;
1139
+ comparison_digest: z.ZodString;
1140
+ report_digest: z.ZodString;
1141
+ authority: z.ZodEnum<["managed", "human"]>;
1142
+ non_delegable: z.ZodBoolean;
1143
+ confirmed_by: z.ZodString;
1144
+ confirmed_at: z.ZodString;
1145
+ confirmation_digest: z.ZodString;
1146
+ }, "strict", z.ZodTypeAny, {
1147
+ protocol: "context.indexer.requirement-change-confirmation/v1";
1148
+ authority: "managed" | "human";
1149
+ project_ref: string;
1150
+ report_digest: string;
1151
+ confirmed_by: string;
1152
+ confirmed_at: string;
1153
+ old_requirement_digest: string;
1154
+ new_requirement_digest: string;
1155
+ comparison_digest: string;
1156
+ gate: "confirm-index-requirements" | "confirm-index-requirement-contraction";
1157
+ non_delegable: boolean;
1158
+ confirmation_digest: string;
1159
+ }, {
1160
+ protocol: "context.indexer.requirement-change-confirmation/v1";
1161
+ authority: "managed" | "human";
1162
+ project_ref: string;
1163
+ report_digest: string;
1164
+ confirmed_by: string;
1165
+ confirmed_at: string;
1166
+ old_requirement_digest: string;
1167
+ new_requirement_digest: string;
1168
+ comparison_digest: string;
1169
+ gate: "confirm-index-requirements" | "confirm-index-requirement-contraction";
1170
+ non_delegable: boolean;
1171
+ confirmation_digest: string;
1172
+ }>;
1173
+ export type IndexerRequirementChangeReport = z.infer<typeof indexerRequirementChangeReportSchema>;
1174
+ export type IndexerRequirementChangeConfirmation = z.infer<typeof indexerRequirementChangeConfirmationSchema>;
1175
+ export declare function indexerRequirementChangeReportDigest(value: Omit<IndexerRequirementChangeReport, "report_digest">): string;
1176
+ export declare function indexerRequirementChangeConfirmationDigest(value: Omit<IndexerRequirementChangeConfirmation, "confirmation_digest">): string;
1177
+ export declare function buildIndexerRequirementChangeReport(input: {
1178
+ project_ref: string;
1179
+ old_requirement: IndexRequirement;
1180
+ new_requirement: IndexRequirement;
1181
+ comparator_options?: RequirementContractionComparatorOptions;
1182
+ }): IndexerRequirementChangeReport;
1183
+ export declare function validateIndexerRequirementChangeReport(value: unknown): IndexerRequirementChangeReport;
1184
+ export declare function confirmIndexerRequirementChange(input: {
1185
+ report: unknown;
1186
+ authority: "managed" | "human";
1187
+ confirmed_by: string;
1188
+ confirmed_at: string;
1189
+ }): IndexerRequirementChangeConfirmation;
1190
+ export declare function validateIndexerRequirementChangeConfirmation(input: {
1191
+ report: unknown;
1192
+ confirmation: unknown;
1193
+ }): IndexerRequirementChangeConfirmation;