@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,1606 @@
1
+ import { z } from "zod";
2
+ export declare const indexerExampleRepresentationSchema: z.ZodObject<{
3
+ setup: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
4
+ state: z.ZodLiteral<"extracted">;
5
+ fact_refs: z.ZodArray<z.ZodString, "many">;
6
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
7
+ }, "strict", z.ZodTypeAny, {
8
+ evidence_refs: string[];
9
+ state: "extracted";
10
+ fact_refs: string[];
11
+ }, {
12
+ evidence_refs: string[];
13
+ state: "extracted";
14
+ fact_refs: string[];
15
+ }>, z.ZodObject<{
16
+ state: z.ZodLiteral<"not-applicable">;
17
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
18
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
19
+ }, "strict", z.ZodTypeAny, {
20
+ evidence_refs: string[];
21
+ state: "not-applicable";
22
+ reason_code: string;
23
+ }, {
24
+ evidence_refs: string[];
25
+ state: "not-applicable";
26
+ reason_code: string;
27
+ }>]>;
28
+ key_calls: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
29
+ state: z.ZodLiteral<"extracted">;
30
+ fact_refs: z.ZodArray<z.ZodString, "many">;
31
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
32
+ }, "strict", z.ZodTypeAny, {
33
+ evidence_refs: string[];
34
+ state: "extracted";
35
+ fact_refs: string[];
36
+ }, {
37
+ evidence_refs: string[];
38
+ state: "extracted";
39
+ fact_refs: string[];
40
+ }>, z.ZodObject<{
41
+ state: z.ZodLiteral<"not-applicable">;
42
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
43
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
44
+ }, "strict", z.ZodTypeAny, {
45
+ evidence_refs: string[];
46
+ state: "not-applicable";
47
+ reason_code: string;
48
+ }, {
49
+ evidence_refs: string[];
50
+ state: "not-applicable";
51
+ reason_code: string;
52
+ }>]>;
53
+ parameters: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
54
+ state: z.ZodLiteral<"extracted">;
55
+ fact_refs: z.ZodArray<z.ZodString, "many">;
56
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
57
+ }, "strict", z.ZodTypeAny, {
58
+ evidence_refs: string[];
59
+ state: "extracted";
60
+ fact_refs: string[];
61
+ }, {
62
+ evidence_refs: string[];
63
+ state: "extracted";
64
+ fact_refs: string[];
65
+ }>, z.ZodObject<{
66
+ state: z.ZodLiteral<"not-applicable">;
67
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
68
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
69
+ }, "strict", z.ZodTypeAny, {
70
+ evidence_refs: string[];
71
+ state: "not-applicable";
72
+ reason_code: string;
73
+ }, {
74
+ evidence_refs: string[];
75
+ state: "not-applicable";
76
+ reason_code: string;
77
+ }>]>;
78
+ expected_behavior: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
79
+ state: z.ZodLiteral<"extracted">;
80
+ fact_refs: z.ZodArray<z.ZodString, "many">;
81
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
82
+ }, "strict", z.ZodTypeAny, {
83
+ evidence_refs: string[];
84
+ state: "extracted";
85
+ fact_refs: string[];
86
+ }, {
87
+ evidence_refs: string[];
88
+ state: "extracted";
89
+ fact_refs: string[];
90
+ }>, z.ZodObject<{
91
+ state: z.ZodLiteral<"not-applicable">;
92
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
93
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
94
+ }, "strict", z.ZodTypeAny, {
95
+ evidence_refs: string[];
96
+ state: "not-applicable";
97
+ reason_code: string;
98
+ }, {
99
+ evidence_refs: string[];
100
+ state: "not-applicable";
101
+ reason_code: string;
102
+ }>]>;
103
+ }, "strict", z.ZodTypeAny, {
104
+ parameters: {
105
+ evidence_refs: string[];
106
+ state: "extracted";
107
+ fact_refs: string[];
108
+ } | {
109
+ evidence_refs: string[];
110
+ state: "not-applicable";
111
+ reason_code: string;
112
+ };
113
+ setup: {
114
+ evidence_refs: string[];
115
+ state: "extracted";
116
+ fact_refs: string[];
117
+ } | {
118
+ evidence_refs: string[];
119
+ state: "not-applicable";
120
+ reason_code: string;
121
+ };
122
+ key_calls: {
123
+ evidence_refs: string[];
124
+ state: "extracted";
125
+ fact_refs: string[];
126
+ } | {
127
+ evidence_refs: string[];
128
+ state: "not-applicable";
129
+ reason_code: string;
130
+ };
131
+ expected_behavior: {
132
+ evidence_refs: string[];
133
+ state: "extracted";
134
+ fact_refs: string[];
135
+ } | {
136
+ evidence_refs: string[];
137
+ state: "not-applicable";
138
+ reason_code: string;
139
+ };
140
+ }, {
141
+ parameters: {
142
+ evidence_refs: string[];
143
+ state: "extracted";
144
+ fact_refs: string[];
145
+ } | {
146
+ evidence_refs: string[];
147
+ state: "not-applicable";
148
+ reason_code: string;
149
+ };
150
+ setup: {
151
+ evidence_refs: string[];
152
+ state: "extracted";
153
+ fact_refs: string[];
154
+ } | {
155
+ evidence_refs: string[];
156
+ state: "not-applicable";
157
+ reason_code: string;
158
+ };
159
+ key_calls: {
160
+ evidence_refs: string[];
161
+ state: "extracted";
162
+ fact_refs: string[];
163
+ } | {
164
+ evidence_refs: string[];
165
+ state: "not-applicable";
166
+ reason_code: string;
167
+ };
168
+ expected_behavior: {
169
+ evidence_refs: string[];
170
+ state: "extracted";
171
+ fact_refs: string[];
172
+ } | {
173
+ evidence_refs: string[];
174
+ state: "not-applicable";
175
+ reason_code: string;
176
+ };
177
+ }>;
178
+ export declare const indexerExampleCandidateDecisionSchema: z.ZodDiscriminatedUnion<"decision", [z.ZodObject<{
179
+ decision: z.ZodLiteral<"link-public-target">;
180
+ public_target_ref: z.ZodString;
181
+ landing_ref: z.ZodString;
182
+ representation: z.ZodObject<{
183
+ setup: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
184
+ state: z.ZodLiteral<"extracted">;
185
+ fact_refs: z.ZodArray<z.ZodString, "many">;
186
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
187
+ }, "strict", z.ZodTypeAny, {
188
+ evidence_refs: string[];
189
+ state: "extracted";
190
+ fact_refs: string[];
191
+ }, {
192
+ evidence_refs: string[];
193
+ state: "extracted";
194
+ fact_refs: string[];
195
+ }>, z.ZodObject<{
196
+ state: z.ZodLiteral<"not-applicable">;
197
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
198
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
199
+ }, "strict", z.ZodTypeAny, {
200
+ evidence_refs: string[];
201
+ state: "not-applicable";
202
+ reason_code: string;
203
+ }, {
204
+ evidence_refs: string[];
205
+ state: "not-applicable";
206
+ reason_code: string;
207
+ }>]>;
208
+ key_calls: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
209
+ state: z.ZodLiteral<"extracted">;
210
+ fact_refs: z.ZodArray<z.ZodString, "many">;
211
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
212
+ }, "strict", z.ZodTypeAny, {
213
+ evidence_refs: string[];
214
+ state: "extracted";
215
+ fact_refs: string[];
216
+ }, {
217
+ evidence_refs: string[];
218
+ state: "extracted";
219
+ fact_refs: string[];
220
+ }>, z.ZodObject<{
221
+ state: z.ZodLiteral<"not-applicable">;
222
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
223
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
224
+ }, "strict", z.ZodTypeAny, {
225
+ evidence_refs: string[];
226
+ state: "not-applicable";
227
+ reason_code: string;
228
+ }, {
229
+ evidence_refs: string[];
230
+ state: "not-applicable";
231
+ reason_code: string;
232
+ }>]>;
233
+ parameters: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
234
+ state: z.ZodLiteral<"extracted">;
235
+ fact_refs: z.ZodArray<z.ZodString, "many">;
236
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
237
+ }, "strict", z.ZodTypeAny, {
238
+ evidence_refs: string[];
239
+ state: "extracted";
240
+ fact_refs: string[];
241
+ }, {
242
+ evidence_refs: string[];
243
+ state: "extracted";
244
+ fact_refs: string[];
245
+ }>, z.ZodObject<{
246
+ state: z.ZodLiteral<"not-applicable">;
247
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
248
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
249
+ }, "strict", z.ZodTypeAny, {
250
+ evidence_refs: string[];
251
+ state: "not-applicable";
252
+ reason_code: string;
253
+ }, {
254
+ evidence_refs: string[];
255
+ state: "not-applicable";
256
+ reason_code: string;
257
+ }>]>;
258
+ expected_behavior: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
259
+ state: z.ZodLiteral<"extracted">;
260
+ fact_refs: z.ZodArray<z.ZodString, "many">;
261
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
262
+ }, "strict", z.ZodTypeAny, {
263
+ evidence_refs: string[];
264
+ state: "extracted";
265
+ fact_refs: string[];
266
+ }, {
267
+ evidence_refs: string[];
268
+ state: "extracted";
269
+ fact_refs: string[];
270
+ }>, z.ZodObject<{
271
+ state: z.ZodLiteral<"not-applicable">;
272
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
273
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
274
+ }, "strict", z.ZodTypeAny, {
275
+ evidence_refs: string[];
276
+ state: "not-applicable";
277
+ reason_code: string;
278
+ }, {
279
+ evidence_refs: string[];
280
+ state: "not-applicable";
281
+ reason_code: string;
282
+ }>]>;
283
+ }, "strict", z.ZodTypeAny, {
284
+ parameters: {
285
+ evidence_refs: string[];
286
+ state: "extracted";
287
+ fact_refs: string[];
288
+ } | {
289
+ evidence_refs: string[];
290
+ state: "not-applicable";
291
+ reason_code: string;
292
+ };
293
+ setup: {
294
+ evidence_refs: string[];
295
+ state: "extracted";
296
+ fact_refs: string[];
297
+ } | {
298
+ evidence_refs: string[];
299
+ state: "not-applicable";
300
+ reason_code: string;
301
+ };
302
+ key_calls: {
303
+ evidence_refs: string[];
304
+ state: "extracted";
305
+ fact_refs: string[];
306
+ } | {
307
+ evidence_refs: string[];
308
+ state: "not-applicable";
309
+ reason_code: string;
310
+ };
311
+ expected_behavior: {
312
+ evidence_refs: string[];
313
+ state: "extracted";
314
+ fact_refs: string[];
315
+ } | {
316
+ evidence_refs: string[];
317
+ state: "not-applicable";
318
+ reason_code: string;
319
+ };
320
+ }, {
321
+ parameters: {
322
+ evidence_refs: string[];
323
+ state: "extracted";
324
+ fact_refs: string[];
325
+ } | {
326
+ evidence_refs: string[];
327
+ state: "not-applicable";
328
+ reason_code: string;
329
+ };
330
+ setup: {
331
+ evidence_refs: string[];
332
+ state: "extracted";
333
+ fact_refs: string[];
334
+ } | {
335
+ evidence_refs: string[];
336
+ state: "not-applicable";
337
+ reason_code: string;
338
+ };
339
+ key_calls: {
340
+ evidence_refs: string[];
341
+ state: "extracted";
342
+ fact_refs: string[];
343
+ } | {
344
+ evidence_refs: string[];
345
+ state: "not-applicable";
346
+ reason_code: string;
347
+ };
348
+ expected_behavior: {
349
+ evidence_refs: string[];
350
+ state: "extracted";
351
+ fact_refs: string[];
352
+ } | {
353
+ evidence_refs: string[];
354
+ state: "not-applicable";
355
+ reason_code: string;
356
+ };
357
+ }>;
358
+ example_ref: z.ZodString;
359
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
360
+ }, "strict", z.ZodTypeAny, {
361
+ decision: "link-public-target";
362
+ evidence_refs: string[];
363
+ representation: {
364
+ parameters: {
365
+ evidence_refs: string[];
366
+ state: "extracted";
367
+ fact_refs: string[];
368
+ } | {
369
+ evidence_refs: string[];
370
+ state: "not-applicable";
371
+ reason_code: string;
372
+ };
373
+ setup: {
374
+ evidence_refs: string[];
375
+ state: "extracted";
376
+ fact_refs: string[];
377
+ } | {
378
+ evidence_refs: string[];
379
+ state: "not-applicable";
380
+ reason_code: string;
381
+ };
382
+ key_calls: {
383
+ evidence_refs: string[];
384
+ state: "extracted";
385
+ fact_refs: string[];
386
+ } | {
387
+ evidence_refs: string[];
388
+ state: "not-applicable";
389
+ reason_code: string;
390
+ };
391
+ expected_behavior: {
392
+ evidence_refs: string[];
393
+ state: "extracted";
394
+ fact_refs: string[];
395
+ } | {
396
+ evidence_refs: string[];
397
+ state: "not-applicable";
398
+ reason_code: string;
399
+ };
400
+ };
401
+ example_ref: string;
402
+ public_target_ref: string;
403
+ landing_ref: string;
404
+ }, {
405
+ decision: "link-public-target";
406
+ evidence_refs: string[];
407
+ representation: {
408
+ parameters: {
409
+ evidence_refs: string[];
410
+ state: "extracted";
411
+ fact_refs: string[];
412
+ } | {
413
+ evidence_refs: string[];
414
+ state: "not-applicable";
415
+ reason_code: string;
416
+ };
417
+ setup: {
418
+ evidence_refs: string[];
419
+ state: "extracted";
420
+ fact_refs: string[];
421
+ } | {
422
+ evidence_refs: string[];
423
+ state: "not-applicable";
424
+ reason_code: string;
425
+ };
426
+ key_calls: {
427
+ evidence_refs: string[];
428
+ state: "extracted";
429
+ fact_refs: string[];
430
+ } | {
431
+ evidence_refs: string[];
432
+ state: "not-applicable";
433
+ reason_code: string;
434
+ };
435
+ expected_behavior: {
436
+ evidence_refs: string[];
437
+ state: "extracted";
438
+ fact_refs: string[];
439
+ } | {
440
+ evidence_refs: string[];
441
+ state: "not-applicable";
442
+ reason_code: string;
443
+ };
444
+ };
445
+ example_ref: string;
446
+ public_target_ref: string;
447
+ landing_ref: string;
448
+ }>, z.ZodObject<{
449
+ decision: z.ZodLiteral<"merge-scenario-variant">;
450
+ canonical_example_ref: z.ZodString;
451
+ example_ref: z.ZodString;
452
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
453
+ }, "strict", z.ZodTypeAny, {
454
+ decision: "merge-scenario-variant";
455
+ evidence_refs: string[];
456
+ example_ref: string;
457
+ canonical_example_ref: string;
458
+ }, {
459
+ decision: "merge-scenario-variant";
460
+ evidence_refs: string[];
461
+ example_ref: string;
462
+ canonical_example_ref: string;
463
+ }>, z.ZodObject<{
464
+ decision: z.ZodLiteral<"documentation-example">;
465
+ document_ref: z.ZodString;
466
+ landing_ref: z.ZodString;
467
+ representation: z.ZodObject<{
468
+ setup: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
469
+ state: z.ZodLiteral<"extracted">;
470
+ fact_refs: z.ZodArray<z.ZodString, "many">;
471
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
472
+ }, "strict", z.ZodTypeAny, {
473
+ evidence_refs: string[];
474
+ state: "extracted";
475
+ fact_refs: string[];
476
+ }, {
477
+ evidence_refs: string[];
478
+ state: "extracted";
479
+ fact_refs: string[];
480
+ }>, z.ZodObject<{
481
+ state: z.ZodLiteral<"not-applicable">;
482
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
483
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
484
+ }, "strict", z.ZodTypeAny, {
485
+ evidence_refs: string[];
486
+ state: "not-applicable";
487
+ reason_code: string;
488
+ }, {
489
+ evidence_refs: string[];
490
+ state: "not-applicable";
491
+ reason_code: string;
492
+ }>]>;
493
+ key_calls: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
494
+ state: z.ZodLiteral<"extracted">;
495
+ fact_refs: z.ZodArray<z.ZodString, "many">;
496
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
497
+ }, "strict", z.ZodTypeAny, {
498
+ evidence_refs: string[];
499
+ state: "extracted";
500
+ fact_refs: string[];
501
+ }, {
502
+ evidence_refs: string[];
503
+ state: "extracted";
504
+ fact_refs: string[];
505
+ }>, z.ZodObject<{
506
+ state: z.ZodLiteral<"not-applicable">;
507
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
508
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
509
+ }, "strict", z.ZodTypeAny, {
510
+ evidence_refs: string[];
511
+ state: "not-applicable";
512
+ reason_code: string;
513
+ }, {
514
+ evidence_refs: string[];
515
+ state: "not-applicable";
516
+ reason_code: string;
517
+ }>]>;
518
+ parameters: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
519
+ state: z.ZodLiteral<"extracted">;
520
+ fact_refs: z.ZodArray<z.ZodString, "many">;
521
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
522
+ }, "strict", z.ZodTypeAny, {
523
+ evidence_refs: string[];
524
+ state: "extracted";
525
+ fact_refs: string[];
526
+ }, {
527
+ evidence_refs: string[];
528
+ state: "extracted";
529
+ fact_refs: string[];
530
+ }>, z.ZodObject<{
531
+ state: z.ZodLiteral<"not-applicable">;
532
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
533
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
534
+ }, "strict", z.ZodTypeAny, {
535
+ evidence_refs: string[];
536
+ state: "not-applicable";
537
+ reason_code: string;
538
+ }, {
539
+ evidence_refs: string[];
540
+ state: "not-applicable";
541
+ reason_code: string;
542
+ }>]>;
543
+ expected_behavior: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
544
+ state: z.ZodLiteral<"extracted">;
545
+ fact_refs: z.ZodArray<z.ZodString, "many">;
546
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
547
+ }, "strict", z.ZodTypeAny, {
548
+ evidence_refs: string[];
549
+ state: "extracted";
550
+ fact_refs: string[];
551
+ }, {
552
+ evidence_refs: string[];
553
+ state: "extracted";
554
+ fact_refs: string[];
555
+ }>, z.ZodObject<{
556
+ state: z.ZodLiteral<"not-applicable">;
557
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
558
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
559
+ }, "strict", z.ZodTypeAny, {
560
+ evidence_refs: string[];
561
+ state: "not-applicable";
562
+ reason_code: string;
563
+ }, {
564
+ evidence_refs: string[];
565
+ state: "not-applicable";
566
+ reason_code: string;
567
+ }>]>;
568
+ }, "strict", z.ZodTypeAny, {
569
+ parameters: {
570
+ evidence_refs: string[];
571
+ state: "extracted";
572
+ fact_refs: string[];
573
+ } | {
574
+ evidence_refs: string[];
575
+ state: "not-applicable";
576
+ reason_code: string;
577
+ };
578
+ setup: {
579
+ evidence_refs: string[];
580
+ state: "extracted";
581
+ fact_refs: string[];
582
+ } | {
583
+ evidence_refs: string[];
584
+ state: "not-applicable";
585
+ reason_code: string;
586
+ };
587
+ key_calls: {
588
+ evidence_refs: string[];
589
+ state: "extracted";
590
+ fact_refs: string[];
591
+ } | {
592
+ evidence_refs: string[];
593
+ state: "not-applicable";
594
+ reason_code: string;
595
+ };
596
+ expected_behavior: {
597
+ evidence_refs: string[];
598
+ state: "extracted";
599
+ fact_refs: string[];
600
+ } | {
601
+ evidence_refs: string[];
602
+ state: "not-applicable";
603
+ reason_code: string;
604
+ };
605
+ }, {
606
+ parameters: {
607
+ evidence_refs: string[];
608
+ state: "extracted";
609
+ fact_refs: string[];
610
+ } | {
611
+ evidence_refs: string[];
612
+ state: "not-applicable";
613
+ reason_code: string;
614
+ };
615
+ setup: {
616
+ evidence_refs: string[];
617
+ state: "extracted";
618
+ fact_refs: string[];
619
+ } | {
620
+ evidence_refs: string[];
621
+ state: "not-applicable";
622
+ reason_code: string;
623
+ };
624
+ key_calls: {
625
+ evidence_refs: string[];
626
+ state: "extracted";
627
+ fact_refs: string[];
628
+ } | {
629
+ evidence_refs: string[];
630
+ state: "not-applicable";
631
+ reason_code: string;
632
+ };
633
+ expected_behavior: {
634
+ evidence_refs: string[];
635
+ state: "extracted";
636
+ fact_refs: string[];
637
+ } | {
638
+ evidence_refs: string[];
639
+ state: "not-applicable";
640
+ reason_code: string;
641
+ };
642
+ }>;
643
+ example_ref: z.ZodString;
644
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
645
+ }, "strict", z.ZodTypeAny, {
646
+ decision: "documentation-example";
647
+ evidence_refs: string[];
648
+ representation: {
649
+ parameters: {
650
+ evidence_refs: string[];
651
+ state: "extracted";
652
+ fact_refs: string[];
653
+ } | {
654
+ evidence_refs: string[];
655
+ state: "not-applicable";
656
+ reason_code: string;
657
+ };
658
+ setup: {
659
+ evidence_refs: string[];
660
+ state: "extracted";
661
+ fact_refs: string[];
662
+ } | {
663
+ evidence_refs: string[];
664
+ state: "not-applicable";
665
+ reason_code: string;
666
+ };
667
+ key_calls: {
668
+ evidence_refs: string[];
669
+ state: "extracted";
670
+ fact_refs: string[];
671
+ } | {
672
+ evidence_refs: string[];
673
+ state: "not-applicable";
674
+ reason_code: string;
675
+ };
676
+ expected_behavior: {
677
+ evidence_refs: string[];
678
+ state: "extracted";
679
+ fact_refs: string[];
680
+ } | {
681
+ evidence_refs: string[];
682
+ state: "not-applicable";
683
+ reason_code: string;
684
+ };
685
+ };
686
+ example_ref: string;
687
+ landing_ref: string;
688
+ document_ref: string;
689
+ }, {
690
+ decision: "documentation-example";
691
+ evidence_refs: string[];
692
+ representation: {
693
+ parameters: {
694
+ evidence_refs: string[];
695
+ state: "extracted";
696
+ fact_refs: string[];
697
+ } | {
698
+ evidence_refs: string[];
699
+ state: "not-applicable";
700
+ reason_code: string;
701
+ };
702
+ setup: {
703
+ evidence_refs: string[];
704
+ state: "extracted";
705
+ fact_refs: string[];
706
+ } | {
707
+ evidence_refs: string[];
708
+ state: "not-applicable";
709
+ reason_code: string;
710
+ };
711
+ key_calls: {
712
+ evidence_refs: string[];
713
+ state: "extracted";
714
+ fact_refs: string[];
715
+ } | {
716
+ evidence_refs: string[];
717
+ state: "not-applicable";
718
+ reason_code: string;
719
+ };
720
+ expected_behavior: {
721
+ evidence_refs: string[];
722
+ state: "extracted";
723
+ fact_refs: string[];
724
+ } | {
725
+ evidence_refs: string[];
726
+ state: "not-applicable";
727
+ reason_code: string;
728
+ };
729
+ };
730
+ example_ref: string;
731
+ landing_ref: string;
732
+ document_ref: string;
733
+ }>, z.ZodObject<{
734
+ decision: z.ZodLiteral<"excluded-with-reason">;
735
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
736
+ rationale: z.ZodEffects<z.ZodString, string, string>;
737
+ example_ref: z.ZodString;
738
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
739
+ }, "strict", z.ZodTypeAny, {
740
+ decision: "excluded-with-reason";
741
+ evidence_refs: string[];
742
+ reason_code: string;
743
+ example_ref: string;
744
+ rationale: string;
745
+ }, {
746
+ decision: "excluded-with-reason";
747
+ evidence_refs: string[];
748
+ reason_code: string;
749
+ example_ref: string;
750
+ rationale: string;
751
+ }>, z.ZodObject<{
752
+ decision: z.ZodLiteral<"request-material">;
753
+ material_request_ref: z.ZodString;
754
+ missing_facts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
755
+ source_hints: z.ZodArray<z.ZodString, "many">;
756
+ example_ref: z.ZodString;
757
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
758
+ }, "strict", z.ZodTypeAny, {
759
+ decision: "request-material";
760
+ evidence_refs: string[];
761
+ missing_facts: string[];
762
+ source_hints: string[];
763
+ example_ref: string;
764
+ material_request_ref: string;
765
+ }, {
766
+ decision: "request-material";
767
+ evidence_refs: string[];
768
+ missing_facts: string[];
769
+ source_hints: string[];
770
+ example_ref: string;
771
+ material_request_ref: string;
772
+ }>]>;
773
+ export declare const indexerExampleDecisionSetSchema: z.ZodObject<{
774
+ protocol: z.ZodLiteral<"context.indexer.example-decision-set/v1">;
775
+ inventory_digest: z.ZodString;
776
+ decisions: z.ZodArray<z.ZodDiscriminatedUnion<"decision", [z.ZodObject<{
777
+ decision: z.ZodLiteral<"link-public-target">;
778
+ public_target_ref: z.ZodString;
779
+ landing_ref: z.ZodString;
780
+ representation: z.ZodObject<{
781
+ setup: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
782
+ state: z.ZodLiteral<"extracted">;
783
+ fact_refs: z.ZodArray<z.ZodString, "many">;
784
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
785
+ }, "strict", z.ZodTypeAny, {
786
+ evidence_refs: string[];
787
+ state: "extracted";
788
+ fact_refs: string[];
789
+ }, {
790
+ evidence_refs: string[];
791
+ state: "extracted";
792
+ fact_refs: string[];
793
+ }>, z.ZodObject<{
794
+ state: z.ZodLiteral<"not-applicable">;
795
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
796
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
797
+ }, "strict", z.ZodTypeAny, {
798
+ evidence_refs: string[];
799
+ state: "not-applicable";
800
+ reason_code: string;
801
+ }, {
802
+ evidence_refs: string[];
803
+ state: "not-applicable";
804
+ reason_code: string;
805
+ }>]>;
806
+ key_calls: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
807
+ state: z.ZodLiteral<"extracted">;
808
+ fact_refs: z.ZodArray<z.ZodString, "many">;
809
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
810
+ }, "strict", z.ZodTypeAny, {
811
+ evidence_refs: string[];
812
+ state: "extracted";
813
+ fact_refs: string[];
814
+ }, {
815
+ evidence_refs: string[];
816
+ state: "extracted";
817
+ fact_refs: string[];
818
+ }>, z.ZodObject<{
819
+ state: z.ZodLiteral<"not-applicable">;
820
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
821
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
822
+ }, "strict", z.ZodTypeAny, {
823
+ evidence_refs: string[];
824
+ state: "not-applicable";
825
+ reason_code: string;
826
+ }, {
827
+ evidence_refs: string[];
828
+ state: "not-applicable";
829
+ reason_code: string;
830
+ }>]>;
831
+ parameters: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
832
+ state: z.ZodLiteral<"extracted">;
833
+ fact_refs: z.ZodArray<z.ZodString, "many">;
834
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
835
+ }, "strict", z.ZodTypeAny, {
836
+ evidence_refs: string[];
837
+ state: "extracted";
838
+ fact_refs: string[];
839
+ }, {
840
+ evidence_refs: string[];
841
+ state: "extracted";
842
+ fact_refs: string[];
843
+ }>, z.ZodObject<{
844
+ state: z.ZodLiteral<"not-applicable">;
845
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
846
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
847
+ }, "strict", z.ZodTypeAny, {
848
+ evidence_refs: string[];
849
+ state: "not-applicable";
850
+ reason_code: string;
851
+ }, {
852
+ evidence_refs: string[];
853
+ state: "not-applicable";
854
+ reason_code: string;
855
+ }>]>;
856
+ expected_behavior: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
857
+ state: z.ZodLiteral<"extracted">;
858
+ fact_refs: z.ZodArray<z.ZodString, "many">;
859
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
860
+ }, "strict", z.ZodTypeAny, {
861
+ evidence_refs: string[];
862
+ state: "extracted";
863
+ fact_refs: string[];
864
+ }, {
865
+ evidence_refs: string[];
866
+ state: "extracted";
867
+ fact_refs: string[];
868
+ }>, z.ZodObject<{
869
+ state: z.ZodLiteral<"not-applicable">;
870
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
871
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
872
+ }, "strict", z.ZodTypeAny, {
873
+ evidence_refs: string[];
874
+ state: "not-applicable";
875
+ reason_code: string;
876
+ }, {
877
+ evidence_refs: string[];
878
+ state: "not-applicable";
879
+ reason_code: string;
880
+ }>]>;
881
+ }, "strict", z.ZodTypeAny, {
882
+ parameters: {
883
+ evidence_refs: string[];
884
+ state: "extracted";
885
+ fact_refs: string[];
886
+ } | {
887
+ evidence_refs: string[];
888
+ state: "not-applicable";
889
+ reason_code: string;
890
+ };
891
+ setup: {
892
+ evidence_refs: string[];
893
+ state: "extracted";
894
+ fact_refs: string[];
895
+ } | {
896
+ evidence_refs: string[];
897
+ state: "not-applicable";
898
+ reason_code: string;
899
+ };
900
+ key_calls: {
901
+ evidence_refs: string[];
902
+ state: "extracted";
903
+ fact_refs: string[];
904
+ } | {
905
+ evidence_refs: string[];
906
+ state: "not-applicable";
907
+ reason_code: string;
908
+ };
909
+ expected_behavior: {
910
+ evidence_refs: string[];
911
+ state: "extracted";
912
+ fact_refs: string[];
913
+ } | {
914
+ evidence_refs: string[];
915
+ state: "not-applicable";
916
+ reason_code: string;
917
+ };
918
+ }, {
919
+ parameters: {
920
+ evidence_refs: string[];
921
+ state: "extracted";
922
+ fact_refs: string[];
923
+ } | {
924
+ evidence_refs: string[];
925
+ state: "not-applicable";
926
+ reason_code: string;
927
+ };
928
+ setup: {
929
+ evidence_refs: string[];
930
+ state: "extracted";
931
+ fact_refs: string[];
932
+ } | {
933
+ evidence_refs: string[];
934
+ state: "not-applicable";
935
+ reason_code: string;
936
+ };
937
+ key_calls: {
938
+ evidence_refs: string[];
939
+ state: "extracted";
940
+ fact_refs: string[];
941
+ } | {
942
+ evidence_refs: string[];
943
+ state: "not-applicable";
944
+ reason_code: string;
945
+ };
946
+ expected_behavior: {
947
+ evidence_refs: string[];
948
+ state: "extracted";
949
+ fact_refs: string[];
950
+ } | {
951
+ evidence_refs: string[];
952
+ state: "not-applicable";
953
+ reason_code: string;
954
+ };
955
+ }>;
956
+ example_ref: z.ZodString;
957
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
958
+ }, "strict", z.ZodTypeAny, {
959
+ decision: "link-public-target";
960
+ evidence_refs: string[];
961
+ representation: {
962
+ parameters: {
963
+ evidence_refs: string[];
964
+ state: "extracted";
965
+ fact_refs: string[];
966
+ } | {
967
+ evidence_refs: string[];
968
+ state: "not-applicable";
969
+ reason_code: string;
970
+ };
971
+ setup: {
972
+ evidence_refs: string[];
973
+ state: "extracted";
974
+ fact_refs: string[];
975
+ } | {
976
+ evidence_refs: string[];
977
+ state: "not-applicable";
978
+ reason_code: string;
979
+ };
980
+ key_calls: {
981
+ evidence_refs: string[];
982
+ state: "extracted";
983
+ fact_refs: string[];
984
+ } | {
985
+ evidence_refs: string[];
986
+ state: "not-applicable";
987
+ reason_code: string;
988
+ };
989
+ expected_behavior: {
990
+ evidence_refs: string[];
991
+ state: "extracted";
992
+ fact_refs: string[];
993
+ } | {
994
+ evidence_refs: string[];
995
+ state: "not-applicable";
996
+ reason_code: string;
997
+ };
998
+ };
999
+ example_ref: string;
1000
+ public_target_ref: string;
1001
+ landing_ref: string;
1002
+ }, {
1003
+ decision: "link-public-target";
1004
+ evidence_refs: string[];
1005
+ representation: {
1006
+ parameters: {
1007
+ evidence_refs: string[];
1008
+ state: "extracted";
1009
+ fact_refs: string[];
1010
+ } | {
1011
+ evidence_refs: string[];
1012
+ state: "not-applicable";
1013
+ reason_code: string;
1014
+ };
1015
+ setup: {
1016
+ evidence_refs: string[];
1017
+ state: "extracted";
1018
+ fact_refs: string[];
1019
+ } | {
1020
+ evidence_refs: string[];
1021
+ state: "not-applicable";
1022
+ reason_code: string;
1023
+ };
1024
+ key_calls: {
1025
+ evidence_refs: string[];
1026
+ state: "extracted";
1027
+ fact_refs: string[];
1028
+ } | {
1029
+ evidence_refs: string[];
1030
+ state: "not-applicable";
1031
+ reason_code: string;
1032
+ };
1033
+ expected_behavior: {
1034
+ evidence_refs: string[];
1035
+ state: "extracted";
1036
+ fact_refs: string[];
1037
+ } | {
1038
+ evidence_refs: string[];
1039
+ state: "not-applicable";
1040
+ reason_code: string;
1041
+ };
1042
+ };
1043
+ example_ref: string;
1044
+ public_target_ref: string;
1045
+ landing_ref: string;
1046
+ }>, z.ZodObject<{
1047
+ decision: z.ZodLiteral<"merge-scenario-variant">;
1048
+ canonical_example_ref: z.ZodString;
1049
+ example_ref: z.ZodString;
1050
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1051
+ }, "strict", z.ZodTypeAny, {
1052
+ decision: "merge-scenario-variant";
1053
+ evidence_refs: string[];
1054
+ example_ref: string;
1055
+ canonical_example_ref: string;
1056
+ }, {
1057
+ decision: "merge-scenario-variant";
1058
+ evidence_refs: string[];
1059
+ example_ref: string;
1060
+ canonical_example_ref: string;
1061
+ }>, z.ZodObject<{
1062
+ decision: z.ZodLiteral<"documentation-example">;
1063
+ document_ref: z.ZodString;
1064
+ landing_ref: z.ZodString;
1065
+ representation: z.ZodObject<{
1066
+ setup: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1067
+ state: z.ZodLiteral<"extracted">;
1068
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1069
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1070
+ }, "strict", z.ZodTypeAny, {
1071
+ evidence_refs: string[];
1072
+ state: "extracted";
1073
+ fact_refs: string[];
1074
+ }, {
1075
+ evidence_refs: string[];
1076
+ state: "extracted";
1077
+ fact_refs: string[];
1078
+ }>, z.ZodObject<{
1079
+ state: z.ZodLiteral<"not-applicable">;
1080
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
1081
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1082
+ }, "strict", z.ZodTypeAny, {
1083
+ evidence_refs: string[];
1084
+ state: "not-applicable";
1085
+ reason_code: string;
1086
+ }, {
1087
+ evidence_refs: string[];
1088
+ state: "not-applicable";
1089
+ reason_code: string;
1090
+ }>]>;
1091
+ key_calls: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1092
+ state: z.ZodLiteral<"extracted">;
1093
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1094
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1095
+ }, "strict", z.ZodTypeAny, {
1096
+ evidence_refs: string[];
1097
+ state: "extracted";
1098
+ fact_refs: string[];
1099
+ }, {
1100
+ evidence_refs: string[];
1101
+ state: "extracted";
1102
+ fact_refs: string[];
1103
+ }>, z.ZodObject<{
1104
+ state: z.ZodLiteral<"not-applicable">;
1105
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
1106
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1107
+ }, "strict", z.ZodTypeAny, {
1108
+ evidence_refs: string[];
1109
+ state: "not-applicable";
1110
+ reason_code: string;
1111
+ }, {
1112
+ evidence_refs: string[];
1113
+ state: "not-applicable";
1114
+ reason_code: string;
1115
+ }>]>;
1116
+ parameters: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1117
+ state: z.ZodLiteral<"extracted">;
1118
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1119
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1120
+ }, "strict", z.ZodTypeAny, {
1121
+ evidence_refs: string[];
1122
+ state: "extracted";
1123
+ fact_refs: string[];
1124
+ }, {
1125
+ evidence_refs: string[];
1126
+ state: "extracted";
1127
+ fact_refs: string[];
1128
+ }>, z.ZodObject<{
1129
+ state: z.ZodLiteral<"not-applicable">;
1130
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
1131
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1132
+ }, "strict", z.ZodTypeAny, {
1133
+ evidence_refs: string[];
1134
+ state: "not-applicable";
1135
+ reason_code: string;
1136
+ }, {
1137
+ evidence_refs: string[];
1138
+ state: "not-applicable";
1139
+ reason_code: string;
1140
+ }>]>;
1141
+ expected_behavior: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
1142
+ state: z.ZodLiteral<"extracted">;
1143
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1144
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1145
+ }, "strict", z.ZodTypeAny, {
1146
+ evidence_refs: string[];
1147
+ state: "extracted";
1148
+ fact_refs: string[];
1149
+ }, {
1150
+ evidence_refs: string[];
1151
+ state: "extracted";
1152
+ fact_refs: string[];
1153
+ }>, z.ZodObject<{
1154
+ state: z.ZodLiteral<"not-applicable">;
1155
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
1156
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ evidence_refs: string[];
1159
+ state: "not-applicable";
1160
+ reason_code: string;
1161
+ }, {
1162
+ evidence_refs: string[];
1163
+ state: "not-applicable";
1164
+ reason_code: string;
1165
+ }>]>;
1166
+ }, "strict", z.ZodTypeAny, {
1167
+ parameters: {
1168
+ evidence_refs: string[];
1169
+ state: "extracted";
1170
+ fact_refs: string[];
1171
+ } | {
1172
+ evidence_refs: string[];
1173
+ state: "not-applicable";
1174
+ reason_code: string;
1175
+ };
1176
+ setup: {
1177
+ evidence_refs: string[];
1178
+ state: "extracted";
1179
+ fact_refs: string[];
1180
+ } | {
1181
+ evidence_refs: string[];
1182
+ state: "not-applicable";
1183
+ reason_code: string;
1184
+ };
1185
+ key_calls: {
1186
+ evidence_refs: string[];
1187
+ state: "extracted";
1188
+ fact_refs: string[];
1189
+ } | {
1190
+ evidence_refs: string[];
1191
+ state: "not-applicable";
1192
+ reason_code: string;
1193
+ };
1194
+ expected_behavior: {
1195
+ evidence_refs: string[];
1196
+ state: "extracted";
1197
+ fact_refs: string[];
1198
+ } | {
1199
+ evidence_refs: string[];
1200
+ state: "not-applicable";
1201
+ reason_code: string;
1202
+ };
1203
+ }, {
1204
+ parameters: {
1205
+ evidence_refs: string[];
1206
+ state: "extracted";
1207
+ fact_refs: string[];
1208
+ } | {
1209
+ evidence_refs: string[];
1210
+ state: "not-applicable";
1211
+ reason_code: string;
1212
+ };
1213
+ setup: {
1214
+ evidence_refs: string[];
1215
+ state: "extracted";
1216
+ fact_refs: string[];
1217
+ } | {
1218
+ evidence_refs: string[];
1219
+ state: "not-applicable";
1220
+ reason_code: string;
1221
+ };
1222
+ key_calls: {
1223
+ evidence_refs: string[];
1224
+ state: "extracted";
1225
+ fact_refs: string[];
1226
+ } | {
1227
+ evidence_refs: string[];
1228
+ state: "not-applicable";
1229
+ reason_code: string;
1230
+ };
1231
+ expected_behavior: {
1232
+ evidence_refs: string[];
1233
+ state: "extracted";
1234
+ fact_refs: string[];
1235
+ } | {
1236
+ evidence_refs: string[];
1237
+ state: "not-applicable";
1238
+ reason_code: string;
1239
+ };
1240
+ }>;
1241
+ example_ref: z.ZodString;
1242
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1243
+ }, "strict", z.ZodTypeAny, {
1244
+ decision: "documentation-example";
1245
+ evidence_refs: string[];
1246
+ representation: {
1247
+ parameters: {
1248
+ evidence_refs: string[];
1249
+ state: "extracted";
1250
+ fact_refs: string[];
1251
+ } | {
1252
+ evidence_refs: string[];
1253
+ state: "not-applicable";
1254
+ reason_code: string;
1255
+ };
1256
+ setup: {
1257
+ evidence_refs: string[];
1258
+ state: "extracted";
1259
+ fact_refs: string[];
1260
+ } | {
1261
+ evidence_refs: string[];
1262
+ state: "not-applicable";
1263
+ reason_code: string;
1264
+ };
1265
+ key_calls: {
1266
+ evidence_refs: string[];
1267
+ state: "extracted";
1268
+ fact_refs: string[];
1269
+ } | {
1270
+ evidence_refs: string[];
1271
+ state: "not-applicable";
1272
+ reason_code: string;
1273
+ };
1274
+ expected_behavior: {
1275
+ evidence_refs: string[];
1276
+ state: "extracted";
1277
+ fact_refs: string[];
1278
+ } | {
1279
+ evidence_refs: string[];
1280
+ state: "not-applicable";
1281
+ reason_code: string;
1282
+ };
1283
+ };
1284
+ example_ref: string;
1285
+ landing_ref: string;
1286
+ document_ref: string;
1287
+ }, {
1288
+ decision: "documentation-example";
1289
+ evidence_refs: string[];
1290
+ representation: {
1291
+ parameters: {
1292
+ evidence_refs: string[];
1293
+ state: "extracted";
1294
+ fact_refs: string[];
1295
+ } | {
1296
+ evidence_refs: string[];
1297
+ state: "not-applicable";
1298
+ reason_code: string;
1299
+ };
1300
+ setup: {
1301
+ evidence_refs: string[];
1302
+ state: "extracted";
1303
+ fact_refs: string[];
1304
+ } | {
1305
+ evidence_refs: string[];
1306
+ state: "not-applicable";
1307
+ reason_code: string;
1308
+ };
1309
+ key_calls: {
1310
+ evidence_refs: string[];
1311
+ state: "extracted";
1312
+ fact_refs: string[];
1313
+ } | {
1314
+ evidence_refs: string[];
1315
+ state: "not-applicable";
1316
+ reason_code: string;
1317
+ };
1318
+ expected_behavior: {
1319
+ evidence_refs: string[];
1320
+ state: "extracted";
1321
+ fact_refs: string[];
1322
+ } | {
1323
+ evidence_refs: string[];
1324
+ state: "not-applicable";
1325
+ reason_code: string;
1326
+ };
1327
+ };
1328
+ example_ref: string;
1329
+ landing_ref: string;
1330
+ document_ref: string;
1331
+ }>, z.ZodObject<{
1332
+ decision: z.ZodLiteral<"excluded-with-reason">;
1333
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
1334
+ rationale: z.ZodEffects<z.ZodString, string, string>;
1335
+ example_ref: z.ZodString;
1336
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1337
+ }, "strict", z.ZodTypeAny, {
1338
+ decision: "excluded-with-reason";
1339
+ evidence_refs: string[];
1340
+ reason_code: string;
1341
+ example_ref: string;
1342
+ rationale: string;
1343
+ }, {
1344
+ decision: "excluded-with-reason";
1345
+ evidence_refs: string[];
1346
+ reason_code: string;
1347
+ example_ref: string;
1348
+ rationale: string;
1349
+ }>, z.ZodObject<{
1350
+ decision: z.ZodLiteral<"request-material">;
1351
+ material_request_ref: z.ZodString;
1352
+ missing_facts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1353
+ source_hints: z.ZodArray<z.ZodString, "many">;
1354
+ example_ref: z.ZodString;
1355
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1356
+ }, "strict", z.ZodTypeAny, {
1357
+ decision: "request-material";
1358
+ evidence_refs: string[];
1359
+ missing_facts: string[];
1360
+ source_hints: string[];
1361
+ example_ref: string;
1362
+ material_request_ref: string;
1363
+ }, {
1364
+ decision: "request-material";
1365
+ evidence_refs: string[];
1366
+ missing_facts: string[];
1367
+ source_hints: string[];
1368
+ example_ref: string;
1369
+ material_request_ref: string;
1370
+ }>]>, "many">;
1371
+ decision_set_digest: z.ZodString;
1372
+ }, "strict", z.ZodTypeAny, {
1373
+ protocol: "context.indexer.example-decision-set/v1";
1374
+ inventory_digest: string;
1375
+ decisions: ({
1376
+ decision: "link-public-target";
1377
+ evidence_refs: string[];
1378
+ representation: {
1379
+ parameters: {
1380
+ evidence_refs: string[];
1381
+ state: "extracted";
1382
+ fact_refs: string[];
1383
+ } | {
1384
+ evidence_refs: string[];
1385
+ state: "not-applicable";
1386
+ reason_code: string;
1387
+ };
1388
+ setup: {
1389
+ evidence_refs: string[];
1390
+ state: "extracted";
1391
+ fact_refs: string[];
1392
+ } | {
1393
+ evidence_refs: string[];
1394
+ state: "not-applicable";
1395
+ reason_code: string;
1396
+ };
1397
+ key_calls: {
1398
+ evidence_refs: string[];
1399
+ state: "extracted";
1400
+ fact_refs: string[];
1401
+ } | {
1402
+ evidence_refs: string[];
1403
+ state: "not-applicable";
1404
+ reason_code: string;
1405
+ };
1406
+ expected_behavior: {
1407
+ evidence_refs: string[];
1408
+ state: "extracted";
1409
+ fact_refs: string[];
1410
+ } | {
1411
+ evidence_refs: string[];
1412
+ state: "not-applicable";
1413
+ reason_code: string;
1414
+ };
1415
+ };
1416
+ example_ref: string;
1417
+ public_target_ref: string;
1418
+ landing_ref: string;
1419
+ } | {
1420
+ decision: "merge-scenario-variant";
1421
+ evidence_refs: string[];
1422
+ example_ref: string;
1423
+ canonical_example_ref: string;
1424
+ } | {
1425
+ decision: "documentation-example";
1426
+ evidence_refs: string[];
1427
+ representation: {
1428
+ parameters: {
1429
+ evidence_refs: string[];
1430
+ state: "extracted";
1431
+ fact_refs: string[];
1432
+ } | {
1433
+ evidence_refs: string[];
1434
+ state: "not-applicable";
1435
+ reason_code: string;
1436
+ };
1437
+ setup: {
1438
+ evidence_refs: string[];
1439
+ state: "extracted";
1440
+ fact_refs: string[];
1441
+ } | {
1442
+ evidence_refs: string[];
1443
+ state: "not-applicable";
1444
+ reason_code: string;
1445
+ };
1446
+ key_calls: {
1447
+ evidence_refs: string[];
1448
+ state: "extracted";
1449
+ fact_refs: string[];
1450
+ } | {
1451
+ evidence_refs: string[];
1452
+ state: "not-applicable";
1453
+ reason_code: string;
1454
+ };
1455
+ expected_behavior: {
1456
+ evidence_refs: string[];
1457
+ state: "extracted";
1458
+ fact_refs: string[];
1459
+ } | {
1460
+ evidence_refs: string[];
1461
+ state: "not-applicable";
1462
+ reason_code: string;
1463
+ };
1464
+ };
1465
+ example_ref: string;
1466
+ landing_ref: string;
1467
+ document_ref: string;
1468
+ } | {
1469
+ decision: "excluded-with-reason";
1470
+ evidence_refs: string[];
1471
+ reason_code: string;
1472
+ example_ref: string;
1473
+ rationale: string;
1474
+ } | {
1475
+ decision: "request-material";
1476
+ evidence_refs: string[];
1477
+ missing_facts: string[];
1478
+ source_hints: string[];
1479
+ example_ref: string;
1480
+ material_request_ref: string;
1481
+ })[];
1482
+ decision_set_digest: string;
1483
+ }, {
1484
+ protocol: "context.indexer.example-decision-set/v1";
1485
+ inventory_digest: string;
1486
+ decisions: ({
1487
+ decision: "link-public-target";
1488
+ evidence_refs: string[];
1489
+ representation: {
1490
+ parameters: {
1491
+ evidence_refs: string[];
1492
+ state: "extracted";
1493
+ fact_refs: string[];
1494
+ } | {
1495
+ evidence_refs: string[];
1496
+ state: "not-applicable";
1497
+ reason_code: string;
1498
+ };
1499
+ setup: {
1500
+ evidence_refs: string[];
1501
+ state: "extracted";
1502
+ fact_refs: string[];
1503
+ } | {
1504
+ evidence_refs: string[];
1505
+ state: "not-applicable";
1506
+ reason_code: string;
1507
+ };
1508
+ key_calls: {
1509
+ evidence_refs: string[];
1510
+ state: "extracted";
1511
+ fact_refs: string[];
1512
+ } | {
1513
+ evidence_refs: string[];
1514
+ state: "not-applicable";
1515
+ reason_code: string;
1516
+ };
1517
+ expected_behavior: {
1518
+ evidence_refs: string[];
1519
+ state: "extracted";
1520
+ fact_refs: string[];
1521
+ } | {
1522
+ evidence_refs: string[];
1523
+ state: "not-applicable";
1524
+ reason_code: string;
1525
+ };
1526
+ };
1527
+ example_ref: string;
1528
+ public_target_ref: string;
1529
+ landing_ref: string;
1530
+ } | {
1531
+ decision: "merge-scenario-variant";
1532
+ evidence_refs: string[];
1533
+ example_ref: string;
1534
+ canonical_example_ref: string;
1535
+ } | {
1536
+ decision: "documentation-example";
1537
+ evidence_refs: string[];
1538
+ representation: {
1539
+ parameters: {
1540
+ evidence_refs: string[];
1541
+ state: "extracted";
1542
+ fact_refs: string[];
1543
+ } | {
1544
+ evidence_refs: string[];
1545
+ state: "not-applicable";
1546
+ reason_code: string;
1547
+ };
1548
+ setup: {
1549
+ evidence_refs: string[];
1550
+ state: "extracted";
1551
+ fact_refs: string[];
1552
+ } | {
1553
+ evidence_refs: string[];
1554
+ state: "not-applicable";
1555
+ reason_code: string;
1556
+ };
1557
+ key_calls: {
1558
+ evidence_refs: string[];
1559
+ state: "extracted";
1560
+ fact_refs: string[];
1561
+ } | {
1562
+ evidence_refs: string[];
1563
+ state: "not-applicable";
1564
+ reason_code: string;
1565
+ };
1566
+ expected_behavior: {
1567
+ evidence_refs: string[];
1568
+ state: "extracted";
1569
+ fact_refs: string[];
1570
+ } | {
1571
+ evidence_refs: string[];
1572
+ state: "not-applicable";
1573
+ reason_code: string;
1574
+ };
1575
+ };
1576
+ example_ref: string;
1577
+ landing_ref: string;
1578
+ document_ref: string;
1579
+ } | {
1580
+ decision: "excluded-with-reason";
1581
+ evidence_refs: string[];
1582
+ reason_code: string;
1583
+ example_ref: string;
1584
+ rationale: string;
1585
+ } | {
1586
+ decision: "request-material";
1587
+ evidence_refs: string[];
1588
+ missing_facts: string[];
1589
+ source_hints: string[];
1590
+ example_ref: string;
1591
+ material_request_ref: string;
1592
+ })[];
1593
+ decision_set_digest: string;
1594
+ }>;
1595
+ export type IndexerExampleRepresentation = z.infer<typeof indexerExampleRepresentationSchema>;
1596
+ export type IndexerExampleCandidateDecision = z.infer<typeof indexerExampleCandidateDecisionSchema>;
1597
+ export type IndexerExampleDecisionSet = z.infer<typeof indexerExampleDecisionSetSchema>;
1598
+ export declare function indexerExampleDecisionSetDigest(value: Omit<IndexerExampleDecisionSet, "decision_set_digest">): string;
1599
+ export declare function buildIndexerExampleDecisionSet(input: {
1600
+ inventory: unknown;
1601
+ decisions: readonly IndexerExampleCandidateDecision[];
1602
+ }): IndexerExampleDecisionSet;
1603
+ export declare function validateIndexerExampleDecisionSet(input: {
1604
+ value: unknown;
1605
+ inventory: unknown;
1606
+ }): IndexerExampleDecisionSet;