@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,2010 @@
1
+ import { z } from "zod";
2
+ import type { IndexerMainAuthorWorkset } from "./indexerMainWorkset.js";
3
+ declare const evidenceBindingSchema: z.ZodObject<{
4
+ evidence_ref: z.ZodString;
5
+ kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
6
+ source_ref: z.ZodString;
7
+ module_ref: z.ZodNullable<z.ZodString>;
8
+ locator: z.ZodEffects<z.ZodObject<{
9
+ path: z.ZodEffects<z.ZodString, string, string>;
10
+ start_line: z.ZodNumber;
11
+ end_line: z.ZodNumber;
12
+ }, "strict", z.ZodTypeAny, {
13
+ path: string;
14
+ start_line: number;
15
+ end_line: number;
16
+ }, {
17
+ path: string;
18
+ start_line: number;
19
+ end_line: number;
20
+ }>, {
21
+ path: string;
22
+ start_line: number;
23
+ end_line: number;
24
+ }, {
25
+ path: string;
26
+ start_line: number;
27
+ end_line: number;
28
+ }>;
29
+ content_digest: z.ZodString;
30
+ coverage_tier: z.ZodEnum<["ast-catalog", "lightweight-evidence"]>;
31
+ binding_digest: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
34
+ source_ref: string;
35
+ locator: {
36
+ path: string;
37
+ start_line: number;
38
+ end_line: number;
39
+ };
40
+ module_ref: string | null;
41
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
42
+ content_digest: string;
43
+ evidence_ref: string;
44
+ binding_digest: string;
45
+ }, {
46
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
47
+ source_ref: string;
48
+ locator: {
49
+ path: string;
50
+ start_line: number;
51
+ end_line: number;
52
+ };
53
+ module_ref: string | null;
54
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
55
+ content_digest: string;
56
+ evidence_ref: string;
57
+ binding_digest: string;
58
+ }>;
59
+ export declare const indexerArtifactSectionProjectionSchema: z.ZodObject<{
60
+ section_key: z.ZodEffects<z.ZodString, string, string>;
61
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
62
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
63
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
64
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
65
+ }, "strict", z.ZodTypeAny, {
66
+ artifact_kind: string;
67
+ document_kind: string;
68
+ reader_goal: string;
69
+ section_key: string;
70
+ owner_indexer_id: string;
71
+ }, {
72
+ artifact_kind: string;
73
+ document_kind: string;
74
+ reader_goal: string;
75
+ section_key: string;
76
+ owner_indexer_id: string;
77
+ }>;
78
+ export declare const indexerArtifactResultSchema: z.ZodObject<{
79
+ protocol: z.ZodLiteral<"context.indexer.artifact-result/v1">;
80
+ author_workset_digest: z.ZodString;
81
+ partition_plan_binding_digest: z.ZodString;
82
+ group_projection_digest: z.ZodString;
83
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
84
+ provider_layer_ref: z.ZodEffects<z.ZodString, string, string>;
85
+ provider_integrity: z.ZodString;
86
+ provider_bundle_digest: z.ZodString;
87
+ config_fingerprint: z.ZodString;
88
+ customization_fingerprint: z.ZodNullable<z.ZodString>;
89
+ requirement_ref: z.ZodString;
90
+ source_ref: z.ZodString;
91
+ module_ref: z.ZodNullable<z.ZodString>;
92
+ source_role: z.ZodEffects<z.ZodString, string, string>;
93
+ logical_unit: z.ZodObject<{
94
+ group_key: z.ZodString;
95
+ subject_key: z.ZodObject<{
96
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
97
+ namespace: z.ZodEffects<z.ZodString, string, string>;
98
+ kind: z.ZodEffects<z.ZodString, string, string>;
99
+ local_key: z.ZodEffects<z.ZodString, string, string>;
100
+ }, "strict", z.ZodTypeAny, {
101
+ kind: string;
102
+ protocol: "context.subject-key/v1";
103
+ namespace: string;
104
+ local_key: string;
105
+ }, {
106
+ kind: string;
107
+ protocol: "context.subject-key/v1";
108
+ namespace: string;
109
+ local_key: string;
110
+ }>;
111
+ logical_unit_ref: z.ZodString;
112
+ target_resolution_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
113
+ query_ref: z.ZodString;
114
+ disposition: z.ZodLiteral<"reuse-existing">;
115
+ target_subject_key: z.ZodObject<{
116
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
117
+ namespace: z.ZodEffects<z.ZodString, string, string>;
118
+ kind: z.ZodEffects<z.ZodString, string, string>;
119
+ local_key: z.ZodEffects<z.ZodString, string, string>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ kind: string;
122
+ protocol: "context.subject-key/v1";
123
+ namespace: string;
124
+ local_key: string;
125
+ }, {
126
+ kind: string;
127
+ protocol: "context.subject-key/v1";
128
+ namespace: string;
129
+ local_key: string;
130
+ }>;
131
+ target_node_ref: z.ZodString;
132
+ }, "strict", z.ZodTypeAny, {
133
+ target_node_ref: string;
134
+ disposition: "reuse-existing";
135
+ query_ref: string;
136
+ target_subject_key: {
137
+ kind: string;
138
+ protocol: "context.subject-key/v1";
139
+ namespace: string;
140
+ local_key: string;
141
+ };
142
+ }, {
143
+ target_node_ref: string;
144
+ disposition: "reuse-existing";
145
+ query_ref: string;
146
+ target_subject_key: {
147
+ kind: string;
148
+ protocol: "context.subject-key/v1";
149
+ namespace: string;
150
+ local_key: string;
151
+ };
152
+ }>, z.ZodObject<{
153
+ query_ref: z.ZodString;
154
+ disposition: z.ZodLiteral<"create-independent">;
155
+ subject_key: z.ZodObject<{
156
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
157
+ namespace: z.ZodEffects<z.ZodString, string, string>;
158
+ kind: z.ZodEffects<z.ZodString, string, string>;
159
+ local_key: z.ZodEffects<z.ZodString, string, string>;
160
+ }, "strict", z.ZodTypeAny, {
161
+ kind: string;
162
+ protocol: "context.subject-key/v1";
163
+ namespace: string;
164
+ local_key: string;
165
+ }, {
166
+ kind: string;
167
+ protocol: "context.subject-key/v1";
168
+ namespace: string;
169
+ local_key: string;
170
+ }>;
171
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
172
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
173
+ }, "strict", z.ZodTypeAny, {
174
+ evidence_refs: string[];
175
+ disposition: "create-independent";
176
+ subject_key: {
177
+ kind: string;
178
+ protocol: "context.subject-key/v1";
179
+ namespace: string;
180
+ local_key: string;
181
+ };
182
+ query_ref: string;
183
+ reason_code: string;
184
+ }, {
185
+ evidence_refs: string[];
186
+ disposition: "create-independent";
187
+ subject_key: {
188
+ kind: string;
189
+ protocol: "context.subject-key/v1";
190
+ namespace: string;
191
+ local_key: string;
192
+ };
193
+ query_ref: string;
194
+ reason_code: string;
195
+ }>, z.ZodObject<{
196
+ query_ref: z.ZodString;
197
+ disposition: z.ZodLiteral<"request-material">;
198
+ missing_facts: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
199
+ source_hints: z.ZodArray<z.ZodString, "many">;
200
+ }, "strict", z.ZodTypeAny, {
201
+ disposition: "request-material";
202
+ query_ref: string;
203
+ missing_facts: string[];
204
+ source_hints: string[];
205
+ }, {
206
+ disposition: "request-material";
207
+ query_ref: string;
208
+ missing_facts: string[];
209
+ source_hints: string[];
210
+ }>, z.ZodObject<{
211
+ query_ref: z.ZodString;
212
+ disposition: z.ZodLiteral<"unsupported">;
213
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
214
+ }, "strict", z.ZodTypeAny, {
215
+ disposition: "unsupported";
216
+ query_ref: string;
217
+ missing_capabilities: string[];
218
+ }, {
219
+ disposition: "unsupported";
220
+ query_ref: string;
221
+ missing_capabilities: string[];
222
+ }>]>, "many">;
223
+ }, "strict", z.ZodTypeAny, {
224
+ logical_unit_ref: string;
225
+ subject_key: {
226
+ kind: string;
227
+ protocol: "context.subject-key/v1";
228
+ namespace: string;
229
+ local_key: string;
230
+ };
231
+ group_key: string;
232
+ target_resolution_dispositions: ({
233
+ target_node_ref: string;
234
+ disposition: "reuse-existing";
235
+ query_ref: string;
236
+ target_subject_key: {
237
+ kind: string;
238
+ protocol: "context.subject-key/v1";
239
+ namespace: string;
240
+ local_key: string;
241
+ };
242
+ } | {
243
+ evidence_refs: string[];
244
+ disposition: "create-independent";
245
+ subject_key: {
246
+ kind: string;
247
+ protocol: "context.subject-key/v1";
248
+ namespace: string;
249
+ local_key: string;
250
+ };
251
+ query_ref: string;
252
+ reason_code: string;
253
+ } | {
254
+ disposition: "request-material";
255
+ query_ref: string;
256
+ missing_facts: string[];
257
+ source_hints: string[];
258
+ } | {
259
+ disposition: "unsupported";
260
+ query_ref: string;
261
+ missing_capabilities: string[];
262
+ })[];
263
+ }, {
264
+ logical_unit_ref: string;
265
+ subject_key: {
266
+ kind: string;
267
+ protocol: "context.subject-key/v1";
268
+ namespace: string;
269
+ local_key: string;
270
+ };
271
+ group_key: string;
272
+ target_resolution_dispositions: ({
273
+ target_node_ref: string;
274
+ disposition: "reuse-existing";
275
+ query_ref: string;
276
+ target_subject_key: {
277
+ kind: string;
278
+ protocol: "context.subject-key/v1";
279
+ namespace: string;
280
+ local_key: string;
281
+ };
282
+ } | {
283
+ evidence_refs: string[];
284
+ disposition: "create-independent";
285
+ subject_key: {
286
+ kind: string;
287
+ protocol: "context.subject-key/v1";
288
+ namespace: string;
289
+ local_key: string;
290
+ };
291
+ query_ref: string;
292
+ reason_code: string;
293
+ } | {
294
+ disposition: "request-material";
295
+ query_ref: string;
296
+ missing_facts: string[];
297
+ source_hints: string[];
298
+ } | {
299
+ disposition: "unsupported";
300
+ query_ref: string;
301
+ missing_capabilities: string[];
302
+ })[];
303
+ }>;
304
+ capability_group_evidence: z.ZodObject<{
305
+ protocol: z.ZodLiteral<"context.indexer.capability-group-evidence/v1">;
306
+ author_workset_digest: z.ZodString;
307
+ group_projection_digest: z.ZodString;
308
+ logical_unit_ref: z.ZodString;
309
+ member_ids: z.ZodArray<z.ZodString, "many">;
310
+ member_ids_digest: z.ZodString;
311
+ capability_groups: z.ZodArray<z.ZodObject<{
312
+ capability_group_ref: z.ZodString;
313
+ capability_key: z.ZodEffects<z.ZodString, string, string>;
314
+ member_evidence: z.ZodArray<z.ZodObject<{
315
+ member_id: z.ZodString;
316
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
317
+ }, "strict", z.ZodTypeAny, {
318
+ evidence_refs: string[];
319
+ member_id: string;
320
+ }, {
321
+ evidence_refs: string[];
322
+ member_id: string;
323
+ }>, "many">;
324
+ section_evidence: z.ZodArray<z.ZodObject<{
325
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
326
+ section_key: z.ZodEffects<z.ZodString, string, string>;
327
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
328
+ }, "strict", z.ZodTypeAny, {
329
+ evidence_refs: string[];
330
+ artifact_id: string;
331
+ section_key: string;
332
+ }, {
333
+ evidence_refs: string[];
334
+ artifact_id: string;
335
+ section_key: string;
336
+ }>, "many">;
337
+ }, "strict", z.ZodTypeAny, {
338
+ capability_group_ref: string;
339
+ capability_key: string;
340
+ member_evidence: {
341
+ evidence_refs: string[];
342
+ member_id: string;
343
+ }[];
344
+ section_evidence: {
345
+ evidence_refs: string[];
346
+ artifact_id: string;
347
+ section_key: string;
348
+ }[];
349
+ }, {
350
+ capability_group_ref: string;
351
+ capability_key: string;
352
+ member_evidence: {
353
+ evidence_refs: string[];
354
+ member_id: string;
355
+ }[];
356
+ section_evidence: {
357
+ evidence_refs: string[];
358
+ artifact_id: string;
359
+ section_key: string;
360
+ }[];
361
+ }>, "many">;
362
+ evidence_digest: z.ZodString;
363
+ }, "strict", z.ZodTypeAny, {
364
+ protocol: "context.indexer.capability-group-evidence/v1";
365
+ logical_unit_ref: string;
366
+ member_ids_digest: string;
367
+ group_projection_digest: string;
368
+ author_workset_digest: string;
369
+ member_ids: string[];
370
+ capability_groups: {
371
+ capability_group_ref: string;
372
+ capability_key: string;
373
+ member_evidence: {
374
+ evidence_refs: string[];
375
+ member_id: string;
376
+ }[];
377
+ section_evidence: {
378
+ evidence_refs: string[];
379
+ artifact_id: string;
380
+ section_key: string;
381
+ }[];
382
+ }[];
383
+ evidence_digest: string;
384
+ }, {
385
+ protocol: "context.indexer.capability-group-evidence/v1";
386
+ logical_unit_ref: string;
387
+ member_ids_digest: string;
388
+ group_projection_digest: string;
389
+ author_workset_digest: string;
390
+ member_ids: string[];
391
+ capability_groups: {
392
+ capability_group_ref: string;
393
+ capability_key: string;
394
+ member_evidence: {
395
+ evidence_refs: string[];
396
+ member_id: string;
397
+ }[];
398
+ section_evidence: {
399
+ evidence_refs: string[];
400
+ artifact_id: string;
401
+ section_key: string;
402
+ }[];
403
+ }[];
404
+ evidence_digest: string;
405
+ }>;
406
+ inventory_dispositions: z.ZodObject<{
407
+ protocol: z.ZodLiteral<"context.indexer.inventory-disposition-set/v1">;
408
+ author_workset_digest: z.ZodString;
409
+ group_projection_digest: z.ZodString;
410
+ logical_unit_ref: z.ZodString;
411
+ member_ids_digest: z.ZodString;
412
+ member_inventory_digest: z.ZodString;
413
+ dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
414
+ member_id: z.ZodString;
415
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
416
+ inventory_disposition: z.ZodLiteral<"owned">;
417
+ projection_disposition: z.ZodLiteral<"detailed">;
418
+ section_evidence: z.ZodArray<z.ZodObject<{
419
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
420
+ section_key: z.ZodEffects<z.ZodString, string, string>;
421
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
422
+ }, "strict", z.ZodTypeAny, {
423
+ evidence_refs: string[];
424
+ artifact_id: string;
425
+ section_key: string;
426
+ }, {
427
+ evidence_refs: string[];
428
+ artifact_id: string;
429
+ section_key: string;
430
+ }>, "many">;
431
+ }, "strict", z.ZodTypeAny, {
432
+ member_id: string;
433
+ section_evidence: {
434
+ evidence_refs: string[];
435
+ artifact_id: string;
436
+ section_key: string;
437
+ }[];
438
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
439
+ inventory_disposition: "owned";
440
+ projection_disposition: "detailed";
441
+ }, {
442
+ member_id: string;
443
+ section_evidence: {
444
+ evidence_refs: string[];
445
+ artifact_id: string;
446
+ section_key: string;
447
+ }[];
448
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
449
+ inventory_disposition: "owned";
450
+ projection_disposition: "detailed";
451
+ }>, z.ZodObject<{
452
+ member_id: z.ZodString;
453
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
454
+ inventory_disposition: z.ZodLiteral<"owned">;
455
+ projection_disposition: z.ZodLiteral<"capability-group">;
456
+ capability_group_ref: z.ZodString;
457
+ }, "strict", z.ZodTypeAny, {
458
+ member_id: string;
459
+ capability_group_ref: string;
460
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
461
+ inventory_disposition: "owned";
462
+ projection_disposition: "capability-group";
463
+ }, {
464
+ member_id: string;
465
+ capability_group_ref: string;
466
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
467
+ inventory_disposition: "owned";
468
+ projection_disposition: "capability-group";
469
+ }>, z.ZodObject<{
470
+ member_id: z.ZodString;
471
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
472
+ inventory_disposition: z.ZodLiteral<"owned">;
473
+ projection_disposition: z.ZodLiteral<"catalog-only">;
474
+ fact_refs: z.ZodArray<z.ZodString, "many">;
475
+ }, "strict", z.ZodTypeAny, {
476
+ fact_refs: string[];
477
+ member_id: string;
478
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
479
+ inventory_disposition: "owned";
480
+ projection_disposition: "catalog-only";
481
+ }, {
482
+ fact_refs: string[];
483
+ member_id: string;
484
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
485
+ inventory_disposition: "owned";
486
+ projection_disposition: "catalog-only";
487
+ }>, z.ZodObject<{
488
+ member_id: z.ZodString;
489
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
490
+ inventory_disposition: z.ZodLiteral<"owned">;
491
+ projection_disposition: z.ZodLiteral<"boundary-only">;
492
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
493
+ }, "strict", z.ZodTypeAny, {
494
+ evidence_refs: string[];
495
+ member_id: string;
496
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
497
+ inventory_disposition: "owned";
498
+ projection_disposition: "boundary-only";
499
+ }, {
500
+ evidence_refs: string[];
501
+ member_id: string;
502
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
503
+ inventory_disposition: "owned";
504
+ projection_disposition: "boundary-only";
505
+ }>, z.ZodObject<{
506
+ member_id: z.ZodString;
507
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
508
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
509
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
510
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
511
+ }, "strict", z.ZodTypeAny, {
512
+ evidence_refs: string[];
513
+ member_id: string;
514
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
515
+ inventory_disposition: "excluded-with-reason";
516
+ reason_code: string;
517
+ }, {
518
+ evidence_refs: string[];
519
+ member_id: string;
520
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
521
+ inventory_disposition: "excluded-with-reason";
522
+ reason_code: string;
523
+ }>, z.ZodObject<{
524
+ member_id: z.ZodString;
525
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
526
+ inventory_disposition: z.ZodLiteral<"unsupported">;
527
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
528
+ }, "strict", z.ZodTypeAny, {
529
+ member_id: string;
530
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
531
+ inventory_disposition: "unsupported";
532
+ missing_capabilities: string[];
533
+ }, {
534
+ member_id: string;
535
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
536
+ inventory_disposition: "unsupported";
537
+ missing_capabilities: string[];
538
+ }>, z.ZodObject<{
539
+ member_id: z.ZodString;
540
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
541
+ inventory_disposition: z.ZodLiteral<"request-material">;
542
+ material_question_proposal_ref: z.ZodString;
543
+ }, "strict", z.ZodTypeAny, {
544
+ member_id: string;
545
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
546
+ inventory_disposition: "request-material";
547
+ material_question_proposal_ref: string;
548
+ }, {
549
+ member_id: string;
550
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
551
+ inventory_disposition: "request-material";
552
+ material_question_proposal_ref: string;
553
+ }>]>, "many">;
554
+ disposition_digest: z.ZodString;
555
+ }, "strict", z.ZodTypeAny, {
556
+ protocol: "context.indexer.inventory-disposition-set/v1";
557
+ logical_unit_ref: string;
558
+ member_ids_digest: string;
559
+ member_inventory_digest: string;
560
+ group_projection_digest: string;
561
+ author_workset_digest: string;
562
+ dispositions: ({
563
+ member_id: string;
564
+ section_evidence: {
565
+ evidence_refs: string[];
566
+ artifact_id: string;
567
+ section_key: string;
568
+ }[];
569
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
570
+ inventory_disposition: "owned";
571
+ projection_disposition: "detailed";
572
+ } | {
573
+ member_id: string;
574
+ capability_group_ref: string;
575
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
576
+ inventory_disposition: "owned";
577
+ projection_disposition: "capability-group";
578
+ } | {
579
+ fact_refs: string[];
580
+ member_id: string;
581
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
582
+ inventory_disposition: "owned";
583
+ projection_disposition: "catalog-only";
584
+ } | {
585
+ evidence_refs: string[];
586
+ member_id: string;
587
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
588
+ inventory_disposition: "owned";
589
+ projection_disposition: "boundary-only";
590
+ } | {
591
+ evidence_refs: string[];
592
+ member_id: string;
593
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
594
+ inventory_disposition: "excluded-with-reason";
595
+ reason_code: string;
596
+ } | {
597
+ member_id: string;
598
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
599
+ inventory_disposition: "unsupported";
600
+ missing_capabilities: string[];
601
+ } | {
602
+ member_id: string;
603
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
604
+ inventory_disposition: "request-material";
605
+ material_question_proposal_ref: string;
606
+ })[];
607
+ disposition_digest: string;
608
+ }, {
609
+ protocol: "context.indexer.inventory-disposition-set/v1";
610
+ logical_unit_ref: string;
611
+ member_ids_digest: string;
612
+ member_inventory_digest: string;
613
+ group_projection_digest: string;
614
+ author_workset_digest: string;
615
+ dispositions: ({
616
+ member_id: string;
617
+ section_evidence: {
618
+ evidence_refs: string[];
619
+ artifact_id: string;
620
+ section_key: string;
621
+ }[];
622
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
623
+ inventory_disposition: "owned";
624
+ projection_disposition: "detailed";
625
+ } | {
626
+ member_id: string;
627
+ capability_group_ref: string;
628
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
629
+ inventory_disposition: "owned";
630
+ projection_disposition: "capability-group";
631
+ } | {
632
+ fact_refs: string[];
633
+ member_id: string;
634
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
635
+ inventory_disposition: "owned";
636
+ projection_disposition: "catalog-only";
637
+ } | {
638
+ evidence_refs: string[];
639
+ member_id: string;
640
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
641
+ inventory_disposition: "owned";
642
+ projection_disposition: "boundary-only";
643
+ } | {
644
+ evidence_refs: string[];
645
+ member_id: string;
646
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
647
+ inventory_disposition: "excluded-with-reason";
648
+ reason_code: string;
649
+ } | {
650
+ member_id: string;
651
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
652
+ inventory_disposition: "unsupported";
653
+ missing_capabilities: string[];
654
+ } | {
655
+ member_id: string;
656
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
657
+ inventory_disposition: "request-material";
658
+ material_question_proposal_ref: string;
659
+ })[];
660
+ disposition_digest: string;
661
+ }>;
662
+ structured_declarations: z.ZodOptional<z.ZodObject<{
663
+ protocol: z.ZodLiteral<"context.indexer.structured-declaration-set/v1">;
664
+ source_identity_inventory_digest: z.ZodString;
665
+ declarations: z.ZodArray<z.ZodObject<{
666
+ carrier_kind: z.ZodEnum<["indexer-result", "catalog", "manifest", "section-evidence"]>;
667
+ carrier_ref: z.ZodString;
668
+ declaration_kind: z.ZodEnum<["directory", "entry", "method", "handler", "store", "locator"]>;
669
+ source_ref: z.ZodString;
670
+ module_ref: z.ZodNullable<z.ZodString>;
671
+ target: z.ZodDiscriminatedUnion<"target_type", [z.ZodObject<{
672
+ target_type: z.ZodLiteral<"directory">;
673
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
674
+ }, "strict", z.ZodTypeAny, {
675
+ normalized_path: string;
676
+ target_type: "directory";
677
+ }, {
678
+ normalized_path: string;
679
+ target_type: "directory";
680
+ }>, z.ZodObject<{
681
+ target_type: z.ZodLiteral<"file">;
682
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
683
+ content_digest: z.ZodString;
684
+ }, "strict", z.ZodTypeAny, {
685
+ normalized_path: string;
686
+ content_digest: string;
687
+ target_type: "file";
688
+ }, {
689
+ normalized_path: string;
690
+ content_digest: string;
691
+ target_type: "file";
692
+ }>, z.ZodObject<{
693
+ target_type: z.ZodLiteral<"item">;
694
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
695
+ source_fact_ref: z.ZodString;
696
+ qualified_item_path: z.ZodString;
697
+ signature_digest: z.ZodString;
698
+ }, "strict", z.ZodTypeAny, {
699
+ normalized_path: string;
700
+ qualified_item_path: string;
701
+ signature_digest: string;
702
+ target_type: "item";
703
+ source_fact_ref: string;
704
+ }, {
705
+ normalized_path: string;
706
+ qualified_item_path: string;
707
+ signature_digest: string;
708
+ target_type: "item";
709
+ source_fact_ref: string;
710
+ }>]>;
711
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
712
+ } & {
713
+ declaration_ref: z.ZodString;
714
+ }, "strict", z.ZodTypeAny, {
715
+ source_ref: string;
716
+ evidence_refs: string[];
717
+ module_ref: string | null;
718
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
719
+ carrier_ref: string;
720
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
721
+ target: {
722
+ normalized_path: string;
723
+ target_type: "directory";
724
+ } | {
725
+ normalized_path: string;
726
+ content_digest: string;
727
+ target_type: "file";
728
+ } | {
729
+ normalized_path: string;
730
+ qualified_item_path: string;
731
+ signature_digest: string;
732
+ target_type: "item";
733
+ source_fact_ref: string;
734
+ };
735
+ declaration_ref: string;
736
+ }, {
737
+ source_ref: string;
738
+ evidence_refs: string[];
739
+ module_ref: string | null;
740
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
741
+ carrier_ref: string;
742
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
743
+ target: {
744
+ normalized_path: string;
745
+ target_type: "directory";
746
+ } | {
747
+ normalized_path: string;
748
+ content_digest: string;
749
+ target_type: "file";
750
+ } | {
751
+ normalized_path: string;
752
+ qualified_item_path: string;
753
+ signature_digest: string;
754
+ target_type: "item";
755
+ source_fact_ref: string;
756
+ };
757
+ declaration_ref: string;
758
+ }>, "many">;
759
+ declaration_set_digest: z.ZodString;
760
+ }, "strict", z.ZodTypeAny, {
761
+ protocol: "context.indexer.structured-declaration-set/v1";
762
+ source_identity_inventory_digest: string;
763
+ declarations: {
764
+ source_ref: string;
765
+ evidence_refs: string[];
766
+ module_ref: string | null;
767
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
768
+ carrier_ref: string;
769
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
770
+ target: {
771
+ normalized_path: string;
772
+ target_type: "directory";
773
+ } | {
774
+ normalized_path: string;
775
+ content_digest: string;
776
+ target_type: "file";
777
+ } | {
778
+ normalized_path: string;
779
+ qualified_item_path: string;
780
+ signature_digest: string;
781
+ target_type: "item";
782
+ source_fact_ref: string;
783
+ };
784
+ declaration_ref: string;
785
+ }[];
786
+ declaration_set_digest: string;
787
+ }, {
788
+ protocol: "context.indexer.structured-declaration-set/v1";
789
+ source_identity_inventory_digest: string;
790
+ declarations: {
791
+ source_ref: string;
792
+ evidence_refs: string[];
793
+ module_ref: string | null;
794
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
795
+ carrier_ref: string;
796
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
797
+ target: {
798
+ normalized_path: string;
799
+ target_type: "directory";
800
+ } | {
801
+ normalized_path: string;
802
+ content_digest: string;
803
+ target_type: "file";
804
+ } | {
805
+ normalized_path: string;
806
+ qualified_item_path: string;
807
+ signature_digest: string;
808
+ target_type: "item";
809
+ source_fact_ref: string;
810
+ };
811
+ declaration_ref: string;
812
+ }[];
813
+ declaration_set_digest: string;
814
+ }>>;
815
+ structured_claims: z.ZodOptional<z.ZodObject<{
816
+ protocol: z.ZodLiteral<"context.indexer.structured-claim-set/v1">;
817
+ author_workset_digest: z.ZodString;
818
+ logical_unit_ref: z.ZodString;
819
+ claims: z.ZodArray<z.ZodObject<{
820
+ claim_ref: z.ZodString;
821
+ claim_kind: z.ZodEffects<z.ZodString, string, string>;
822
+ subject_ref: z.ZodString;
823
+ owner: z.ZodObject<{
824
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
825
+ section_key: z.ZodEffects<z.ZodString, string, string>;
826
+ }, "strict", z.ZodTypeAny, {
827
+ artifact_id: string;
828
+ section_key: string;
829
+ }, {
830
+ artifact_id: string;
831
+ section_key: string;
832
+ }>;
833
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
834
+ }, "strict", z.ZodTypeAny, {
835
+ evidence_refs: string[];
836
+ claim_ref: string;
837
+ claim_kind: string;
838
+ subject_ref: string;
839
+ owner: {
840
+ artifact_id: string;
841
+ section_key: string;
842
+ };
843
+ }, {
844
+ evidence_refs: string[];
845
+ claim_ref: string;
846
+ claim_kind: string;
847
+ subject_ref: string;
848
+ owner: {
849
+ artifact_id: string;
850
+ section_key: string;
851
+ };
852
+ }>, "many">;
853
+ claims_digest: z.ZodString;
854
+ }, "strict", z.ZodTypeAny, {
855
+ protocol: "context.indexer.structured-claim-set/v1";
856
+ logical_unit_ref: string;
857
+ author_workset_digest: string;
858
+ claims: {
859
+ evidence_refs: string[];
860
+ claim_ref: string;
861
+ claim_kind: string;
862
+ subject_ref: string;
863
+ owner: {
864
+ artifact_id: string;
865
+ section_key: string;
866
+ };
867
+ }[];
868
+ claims_digest: string;
869
+ }, {
870
+ protocol: "context.indexer.structured-claim-set/v1";
871
+ logical_unit_ref: string;
872
+ author_workset_digest: string;
873
+ claims: {
874
+ evidence_refs: string[];
875
+ claim_ref: string;
876
+ claim_kind: string;
877
+ subject_ref: string;
878
+ owner: {
879
+ artifact_id: string;
880
+ section_key: string;
881
+ };
882
+ }[];
883
+ claims_digest: string;
884
+ }>>;
885
+ facts: z.ZodArray<z.ZodObject<{
886
+ fact_ref: z.ZodString;
887
+ fact_kind: z.ZodEffects<z.ZodString, string, string>;
888
+ subject_key: z.ZodObject<{
889
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
890
+ namespace: z.ZodEffects<z.ZodString, string, string>;
891
+ kind: z.ZodEffects<z.ZodString, string, string>;
892
+ local_key: z.ZodEffects<z.ZodString, string, string>;
893
+ }, "strict", z.ZodTypeAny, {
894
+ kind: string;
895
+ protocol: "context.subject-key/v1";
896
+ namespace: string;
897
+ local_key: string;
898
+ }, {
899
+ kind: string;
900
+ protocol: "context.subject-key/v1";
901
+ namespace: string;
902
+ local_key: string;
903
+ }>;
904
+ value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
905
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
906
+ }, "strict", z.ZodTypeAny, {
907
+ value: import("./indexerRegistry.js").IndexerJson;
908
+ evidence_refs: string[];
909
+ fact_ref: string;
910
+ fact_kind: string;
911
+ subject_key: {
912
+ kind: string;
913
+ protocol: "context.subject-key/v1";
914
+ namespace: string;
915
+ local_key: string;
916
+ };
917
+ }, {
918
+ value: import("./indexerRegistry.js").IndexerJson;
919
+ evidence_refs: string[];
920
+ fact_ref: string;
921
+ fact_kind: string;
922
+ subject_key: {
923
+ kind: string;
924
+ protocol: "context.subject-key/v1";
925
+ namespace: string;
926
+ local_key: string;
927
+ };
928
+ }>, "many">;
929
+ evidence_bindings: z.ZodArray<z.ZodObject<{
930
+ evidence_ref: z.ZodString;
931
+ kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
932
+ source_ref: z.ZodString;
933
+ module_ref: z.ZodNullable<z.ZodString>;
934
+ locator: z.ZodEffects<z.ZodObject<{
935
+ path: z.ZodEffects<z.ZodString, string, string>;
936
+ start_line: z.ZodNumber;
937
+ end_line: z.ZodNumber;
938
+ }, "strict", z.ZodTypeAny, {
939
+ path: string;
940
+ start_line: number;
941
+ end_line: number;
942
+ }, {
943
+ path: string;
944
+ start_line: number;
945
+ end_line: number;
946
+ }>, {
947
+ path: string;
948
+ start_line: number;
949
+ end_line: number;
950
+ }, {
951
+ path: string;
952
+ start_line: number;
953
+ end_line: number;
954
+ }>;
955
+ content_digest: z.ZodString;
956
+ coverage_tier: z.ZodEnum<["ast-catalog", "lightweight-evidence"]>;
957
+ binding_digest: z.ZodString;
958
+ }, "strict", z.ZodTypeAny, {
959
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
960
+ source_ref: string;
961
+ locator: {
962
+ path: string;
963
+ start_line: number;
964
+ end_line: number;
965
+ };
966
+ module_ref: string | null;
967
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
968
+ content_digest: string;
969
+ evidence_ref: string;
970
+ binding_digest: string;
971
+ }, {
972
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
973
+ source_ref: string;
974
+ locator: {
975
+ path: string;
976
+ start_line: number;
977
+ end_line: number;
978
+ };
979
+ module_ref: string | null;
980
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
981
+ content_digest: string;
982
+ evidence_ref: string;
983
+ binding_digest: string;
984
+ }>, "many">;
985
+ artifacts: z.ZodArray<z.ZodDiscriminatedUnion<"representation", [z.ZodObject<{
986
+ representation: z.ZodLiteral<"template">;
987
+ template_id: z.ZodEffects<z.ZodString, string, string>;
988
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
989
+ value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
990
+ fact_refs: z.ZodArray<z.ZodString, "many">;
991
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
992
+ }, "strict", z.ZodTypeAny, {
993
+ value: import("./indexerRegistry.js").IndexerJson;
994
+ evidence_refs: string[];
995
+ fact_refs: string[];
996
+ }, {
997
+ value: import("./indexerRegistry.js").IndexerJson;
998
+ evidence_refs: string[];
999
+ fact_refs: string[];
1000
+ }>>;
1001
+ section_projections: z.ZodArray<z.ZodObject<{
1002
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1003
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1004
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
1005
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
1006
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ artifact_kind: string;
1009
+ document_kind: string;
1010
+ reader_goal: string;
1011
+ section_key: string;
1012
+ owner_indexer_id: string;
1013
+ }, {
1014
+ artifact_kind: string;
1015
+ document_kind: string;
1016
+ reader_goal: string;
1017
+ section_key: string;
1018
+ owner_indexer_id: string;
1019
+ }>, "many">;
1020
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1021
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1022
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1023
+ }, "strict", z.ZodTypeAny, {
1024
+ template_id: string;
1025
+ artifact_kind: string;
1026
+ artifact_policy_variant: string;
1027
+ variables: Record<string, {
1028
+ value: import("./indexerRegistry.js").IndexerJson;
1029
+ evidence_refs: string[];
1030
+ fact_refs: string[];
1031
+ }>;
1032
+ artifact_id: string;
1033
+ representation: "template";
1034
+ section_projections: {
1035
+ artifact_kind: string;
1036
+ document_kind: string;
1037
+ reader_goal: string;
1038
+ section_key: string;
1039
+ owner_indexer_id: string;
1040
+ }[];
1041
+ }, {
1042
+ template_id: string;
1043
+ artifact_kind: string;
1044
+ artifact_policy_variant: string;
1045
+ variables: Record<string, {
1046
+ value: import("./indexerRegistry.js").IndexerJson;
1047
+ evidence_refs: string[];
1048
+ fact_refs: string[];
1049
+ }>;
1050
+ artifact_id: string;
1051
+ representation: "template";
1052
+ section_projections: {
1053
+ artifact_kind: string;
1054
+ document_kind: string;
1055
+ reader_goal: string;
1056
+ section_key: string;
1057
+ owner_indexer_id: string;
1058
+ }[];
1059
+ }>, z.ZodObject<{
1060
+ representation: z.ZodLiteral<"sections">;
1061
+ sections: z.ZodArray<z.ZodObject<{
1062
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1063
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1064
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
1065
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
1066
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1067
+ } & {
1068
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
1069
+ block_id: z.ZodEffects<z.ZodString, string, string>;
1070
+ layer: z.ZodLiteral<"deterministic-block">;
1071
+ renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
1072
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1073
+ }, "strict", z.ZodTypeAny, {
1074
+ block_id: string;
1075
+ layer: "deterministic-block";
1076
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1077
+ fact_refs: string[];
1078
+ }, {
1079
+ block_id: string;
1080
+ layer: "deterministic-block";
1081
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1082
+ fact_refs: string[];
1083
+ }>, z.ZodObject<{
1084
+ block_id: z.ZodEffects<z.ZodString, string, string>;
1085
+ layer: z.ZodLiteral<"semantic-prose">;
1086
+ markdown: z.ZodString;
1087
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1088
+ }, "strict", z.ZodTypeAny, {
1089
+ evidence_refs: string[];
1090
+ block_id: string;
1091
+ layer: "semantic-prose";
1092
+ markdown: string;
1093
+ }, {
1094
+ evidence_refs: string[];
1095
+ block_id: string;
1096
+ layer: "semantic-prose";
1097
+ markdown: string;
1098
+ }>]>, "many">;
1099
+ }, "strict", z.ZodTypeAny, {
1100
+ artifact_kind: string;
1101
+ document_kind: string;
1102
+ reader_goal: string;
1103
+ section_key: string;
1104
+ owner_indexer_id: string;
1105
+ blocks: ({
1106
+ block_id: string;
1107
+ layer: "deterministic-block";
1108
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1109
+ fact_refs: string[];
1110
+ } | {
1111
+ evidence_refs: string[];
1112
+ block_id: string;
1113
+ layer: "semantic-prose";
1114
+ markdown: string;
1115
+ })[];
1116
+ }, {
1117
+ artifact_kind: string;
1118
+ document_kind: string;
1119
+ reader_goal: string;
1120
+ section_key: string;
1121
+ owner_indexer_id: string;
1122
+ blocks: ({
1123
+ block_id: string;
1124
+ layer: "deterministic-block";
1125
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1126
+ fact_refs: string[];
1127
+ } | {
1128
+ evidence_refs: string[];
1129
+ block_id: string;
1130
+ layer: "semantic-prose";
1131
+ markdown: string;
1132
+ })[];
1133
+ }>, "many">;
1134
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1135
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1136
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1137
+ }, "strict", z.ZodTypeAny, {
1138
+ artifact_kind: string;
1139
+ artifact_policy_variant: string;
1140
+ artifact_id: string;
1141
+ representation: "sections";
1142
+ sections: {
1143
+ artifact_kind: string;
1144
+ document_kind: string;
1145
+ reader_goal: string;
1146
+ section_key: string;
1147
+ owner_indexer_id: string;
1148
+ blocks: ({
1149
+ block_id: string;
1150
+ layer: "deterministic-block";
1151
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1152
+ fact_refs: string[];
1153
+ } | {
1154
+ evidence_refs: string[];
1155
+ block_id: string;
1156
+ layer: "semantic-prose";
1157
+ markdown: string;
1158
+ })[];
1159
+ }[];
1160
+ }, {
1161
+ artifact_kind: string;
1162
+ artifact_policy_variant: string;
1163
+ artifact_id: string;
1164
+ representation: "sections";
1165
+ sections: {
1166
+ artifact_kind: string;
1167
+ document_kind: string;
1168
+ reader_goal: string;
1169
+ section_key: string;
1170
+ owner_indexer_id: string;
1171
+ blocks: ({
1172
+ block_id: string;
1173
+ layer: "deterministic-block";
1174
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1175
+ fact_refs: string[];
1176
+ } | {
1177
+ evidence_refs: string[];
1178
+ block_id: string;
1179
+ layer: "semantic-prose";
1180
+ markdown: string;
1181
+ })[];
1182
+ }[];
1183
+ }>]>, "many">;
1184
+ artifact_bundle: z.ZodNullable<z.ZodObject<{
1185
+ protocol: z.ZodLiteral<"context.indexer.artifact-bundle/v1">;
1186
+ logical_unit_ref: z.ZodString;
1187
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1188
+ artifacts: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1189
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1190
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1191
+ purpose: z.ZodEnum<["required", "discretionary"]>;
1192
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
1193
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1194
+ }, "strict", z.ZodTypeAny, {
1195
+ evidence_refs: string[];
1196
+ artifact_kind: string;
1197
+ artifact_id: string;
1198
+ purpose: "required" | "discretionary";
1199
+ reader_question_refs: string[];
1200
+ }, {
1201
+ evidence_refs: string[];
1202
+ artifact_kind: string;
1203
+ artifact_id: string;
1204
+ purpose: "required" | "discretionary";
1205
+ reader_question_refs: string[];
1206
+ }>, z.ZodObject<{
1207
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1208
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1209
+ purpose: z.ZodLiteral<"semantic-split">;
1210
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
1211
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1212
+ split_of: z.ZodEffects<z.ZodString, string, string>;
1213
+ boundary: z.ZodObject<{
1214
+ axis: z.ZodEffects<z.ZodString, string, string>;
1215
+ start_key: z.ZodString;
1216
+ end_key: z.ZodString;
1217
+ }, "strict", z.ZodTypeAny, {
1218
+ axis: string;
1219
+ start_key: string;
1220
+ end_key: string;
1221
+ }, {
1222
+ axis: string;
1223
+ start_key: string;
1224
+ end_key: string;
1225
+ }>;
1226
+ }, "strict", z.ZodTypeAny, {
1227
+ evidence_refs: string[];
1228
+ artifact_kind: string;
1229
+ artifact_id: string;
1230
+ purpose: "semantic-split";
1231
+ reader_question_refs: string[];
1232
+ split_of: string;
1233
+ boundary: {
1234
+ axis: string;
1235
+ start_key: string;
1236
+ end_key: string;
1237
+ };
1238
+ }, {
1239
+ evidence_refs: string[];
1240
+ artifact_kind: string;
1241
+ artifact_id: string;
1242
+ purpose: "semantic-split";
1243
+ reader_question_refs: string[];
1244
+ split_of: string;
1245
+ boundary: {
1246
+ axis: string;
1247
+ start_key: string;
1248
+ end_key: string;
1249
+ };
1250
+ }>]>, "many">;
1251
+ discretionary_artifact_count: z.ZodNumber;
1252
+ semantic_split_part_count: z.ZodNumber;
1253
+ } & {
1254
+ bundle_digest: z.ZodString;
1255
+ }, "strict", z.ZodTypeAny, {
1256
+ protocol: "context.indexer.artifact-bundle/v1";
1257
+ artifact_policy_variant: string;
1258
+ artifacts: ({
1259
+ evidence_refs: string[];
1260
+ artifact_kind: string;
1261
+ artifact_id: string;
1262
+ purpose: "required" | "discretionary";
1263
+ reader_question_refs: string[];
1264
+ } | {
1265
+ evidence_refs: string[];
1266
+ artifact_kind: string;
1267
+ artifact_id: string;
1268
+ purpose: "semantic-split";
1269
+ reader_question_refs: string[];
1270
+ split_of: string;
1271
+ boundary: {
1272
+ axis: string;
1273
+ start_key: string;
1274
+ end_key: string;
1275
+ };
1276
+ })[];
1277
+ logical_unit_ref: string;
1278
+ discretionary_artifact_count: number;
1279
+ semantic_split_part_count: number;
1280
+ bundle_digest: string;
1281
+ }, {
1282
+ protocol: "context.indexer.artifact-bundle/v1";
1283
+ artifact_policy_variant: string;
1284
+ artifacts: ({
1285
+ evidence_refs: string[];
1286
+ artifact_kind: string;
1287
+ artifact_id: string;
1288
+ purpose: "required" | "discretionary";
1289
+ reader_question_refs: string[];
1290
+ } | {
1291
+ evidence_refs: string[];
1292
+ artifact_kind: string;
1293
+ artifact_id: string;
1294
+ purpose: "semantic-split";
1295
+ reader_question_refs: string[];
1296
+ split_of: string;
1297
+ boundary: {
1298
+ axis: string;
1299
+ start_key: string;
1300
+ end_key: string;
1301
+ };
1302
+ })[];
1303
+ logical_unit_ref: string;
1304
+ discretionary_artifact_count: number;
1305
+ semantic_split_part_count: number;
1306
+ bundle_digest: string;
1307
+ }>>;
1308
+ material_question_proposals: z.ZodArray<z.ZodObject<{
1309
+ proposal_ref: z.ZodString;
1310
+ requirement_ref: z.ZodString;
1311
+ question_ref: z.ZodString;
1312
+ question_target_key: z.ZodString;
1313
+ answer_landing_hint: z.ZodOptional<z.ZodObject<{
1314
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1315
+ section_key: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1316
+ }, "strict", z.ZodTypeAny, {
1317
+ artifact_id: string;
1318
+ section_key?: string | undefined;
1319
+ }, {
1320
+ artifact_id: string;
1321
+ section_key?: string | undefined;
1322
+ }>>;
1323
+ source_hints: z.ZodArray<z.ZodString, "many">;
1324
+ }, "strict", z.ZodTypeAny, {
1325
+ requirement_ref: string;
1326
+ source_hints: string[];
1327
+ proposal_ref: string;
1328
+ question_ref: string;
1329
+ question_target_key: string;
1330
+ answer_landing_hint?: {
1331
+ artifact_id: string;
1332
+ section_key?: string | undefined;
1333
+ } | undefined;
1334
+ }, {
1335
+ requirement_ref: string;
1336
+ source_hints: string[];
1337
+ proposal_ref: string;
1338
+ question_ref: string;
1339
+ question_target_key: string;
1340
+ answer_landing_hint?: {
1341
+ artifact_id: string;
1342
+ section_key?: string | undefined;
1343
+ } | undefined;
1344
+ }>, "many">;
1345
+ question_target_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1346
+ question_target_key: z.ZodString;
1347
+ state: z.ZodLiteral<"answered">;
1348
+ evidence_binding_digest: z.ZodString;
1349
+ }, "strict", z.ZodTypeAny, {
1350
+ state: "answered";
1351
+ question_target_key: string;
1352
+ evidence_binding_digest: string;
1353
+ }, {
1354
+ state: "answered";
1355
+ question_target_key: string;
1356
+ evidence_binding_digest: string;
1357
+ }>, z.ZodObject<{
1358
+ question_target_key: z.ZodString;
1359
+ state: z.ZodLiteral<"material-gap">;
1360
+ material_question_proposal_ref: z.ZodString;
1361
+ }, "strict", z.ZodTypeAny, {
1362
+ state: "material-gap";
1363
+ material_question_proposal_ref: string;
1364
+ question_target_key: string;
1365
+ }, {
1366
+ state: "material-gap";
1367
+ material_question_proposal_ref: string;
1368
+ question_target_key: string;
1369
+ }>]>, "many">;
1370
+ diagnostics: z.ZodArray<z.ZodObject<{
1371
+ code: z.ZodEffects<z.ZodString, string, string>;
1372
+ message: z.ZodString;
1373
+ target_ref: z.ZodOptional<z.ZodString>;
1374
+ }, "strict", z.ZodTypeAny, {
1375
+ code: string;
1376
+ message: string;
1377
+ target_ref?: string | undefined;
1378
+ }, {
1379
+ code: string;
1380
+ message: string;
1381
+ target_ref?: string | undefined;
1382
+ }>, "many">;
1383
+ input_digest: z.ZodString;
1384
+ output_digest: z.ZodString;
1385
+ }, "strict", z.ZodTypeAny, {
1386
+ source_ref: string;
1387
+ protocol: "context.indexer.artifact-result/v1";
1388
+ requirement_ref: string;
1389
+ facts: {
1390
+ value: import("./indexerRegistry.js").IndexerJson;
1391
+ evidence_refs: string[];
1392
+ fact_ref: string;
1393
+ fact_kind: string;
1394
+ subject_key: {
1395
+ kind: string;
1396
+ protocol: "context.subject-key/v1";
1397
+ namespace: string;
1398
+ local_key: string;
1399
+ };
1400
+ }[];
1401
+ module_ref: string | null;
1402
+ input_digest: string;
1403
+ output_digest: string;
1404
+ diagnostics: {
1405
+ code: string;
1406
+ message: string;
1407
+ target_ref?: string | undefined;
1408
+ }[];
1409
+ artifacts: ({
1410
+ template_id: string;
1411
+ artifact_kind: string;
1412
+ artifact_policy_variant: string;
1413
+ variables: Record<string, {
1414
+ value: import("./indexerRegistry.js").IndexerJson;
1415
+ evidence_refs: string[];
1416
+ fact_refs: string[];
1417
+ }>;
1418
+ artifact_id: string;
1419
+ representation: "template";
1420
+ section_projections: {
1421
+ artifact_kind: string;
1422
+ document_kind: string;
1423
+ reader_goal: string;
1424
+ section_key: string;
1425
+ owner_indexer_id: string;
1426
+ }[];
1427
+ } | {
1428
+ artifact_kind: string;
1429
+ artifact_policy_variant: string;
1430
+ artifact_id: string;
1431
+ representation: "sections";
1432
+ sections: {
1433
+ artifact_kind: string;
1434
+ document_kind: string;
1435
+ reader_goal: string;
1436
+ section_key: string;
1437
+ owner_indexer_id: string;
1438
+ blocks: ({
1439
+ block_id: string;
1440
+ layer: "deterministic-block";
1441
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1442
+ fact_refs: string[];
1443
+ } | {
1444
+ evidence_refs: string[];
1445
+ block_id: string;
1446
+ layer: "semantic-prose";
1447
+ markdown: string;
1448
+ })[];
1449
+ }[];
1450
+ })[];
1451
+ indexer_id: string;
1452
+ provider_integrity: string;
1453
+ partition_plan_binding_digest: string;
1454
+ group_projection_digest: string;
1455
+ author_workset_digest: string;
1456
+ provider_layer_ref: string;
1457
+ provider_bundle_digest: string;
1458
+ config_fingerprint: string;
1459
+ customization_fingerprint: string | null;
1460
+ source_role: string;
1461
+ logical_unit: {
1462
+ logical_unit_ref: string;
1463
+ subject_key: {
1464
+ kind: string;
1465
+ protocol: "context.subject-key/v1";
1466
+ namespace: string;
1467
+ local_key: string;
1468
+ };
1469
+ group_key: string;
1470
+ target_resolution_dispositions: ({
1471
+ target_node_ref: string;
1472
+ disposition: "reuse-existing";
1473
+ query_ref: string;
1474
+ target_subject_key: {
1475
+ kind: string;
1476
+ protocol: "context.subject-key/v1";
1477
+ namespace: string;
1478
+ local_key: string;
1479
+ };
1480
+ } | {
1481
+ evidence_refs: string[];
1482
+ disposition: "create-independent";
1483
+ subject_key: {
1484
+ kind: string;
1485
+ protocol: "context.subject-key/v1";
1486
+ namespace: string;
1487
+ local_key: string;
1488
+ };
1489
+ query_ref: string;
1490
+ reason_code: string;
1491
+ } | {
1492
+ disposition: "request-material";
1493
+ query_ref: string;
1494
+ missing_facts: string[];
1495
+ source_hints: string[];
1496
+ } | {
1497
+ disposition: "unsupported";
1498
+ query_ref: string;
1499
+ missing_capabilities: string[];
1500
+ })[];
1501
+ };
1502
+ capability_group_evidence: {
1503
+ protocol: "context.indexer.capability-group-evidence/v1";
1504
+ logical_unit_ref: string;
1505
+ member_ids_digest: string;
1506
+ group_projection_digest: string;
1507
+ author_workset_digest: string;
1508
+ member_ids: string[];
1509
+ capability_groups: {
1510
+ capability_group_ref: string;
1511
+ capability_key: string;
1512
+ member_evidence: {
1513
+ evidence_refs: string[];
1514
+ member_id: string;
1515
+ }[];
1516
+ section_evidence: {
1517
+ evidence_refs: string[];
1518
+ artifact_id: string;
1519
+ section_key: string;
1520
+ }[];
1521
+ }[];
1522
+ evidence_digest: string;
1523
+ };
1524
+ inventory_dispositions: {
1525
+ protocol: "context.indexer.inventory-disposition-set/v1";
1526
+ logical_unit_ref: string;
1527
+ member_ids_digest: string;
1528
+ member_inventory_digest: string;
1529
+ group_projection_digest: string;
1530
+ author_workset_digest: string;
1531
+ dispositions: ({
1532
+ member_id: string;
1533
+ section_evidence: {
1534
+ evidence_refs: string[];
1535
+ artifact_id: string;
1536
+ section_key: string;
1537
+ }[];
1538
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1539
+ inventory_disposition: "owned";
1540
+ projection_disposition: "detailed";
1541
+ } | {
1542
+ member_id: string;
1543
+ capability_group_ref: string;
1544
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1545
+ inventory_disposition: "owned";
1546
+ projection_disposition: "capability-group";
1547
+ } | {
1548
+ fact_refs: string[];
1549
+ member_id: string;
1550
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1551
+ inventory_disposition: "owned";
1552
+ projection_disposition: "catalog-only";
1553
+ } | {
1554
+ evidence_refs: string[];
1555
+ member_id: string;
1556
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1557
+ inventory_disposition: "owned";
1558
+ projection_disposition: "boundary-only";
1559
+ } | {
1560
+ evidence_refs: string[];
1561
+ member_id: string;
1562
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1563
+ inventory_disposition: "excluded-with-reason";
1564
+ reason_code: string;
1565
+ } | {
1566
+ member_id: string;
1567
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1568
+ inventory_disposition: "unsupported";
1569
+ missing_capabilities: string[];
1570
+ } | {
1571
+ member_id: string;
1572
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1573
+ inventory_disposition: "request-material";
1574
+ material_question_proposal_ref: string;
1575
+ })[];
1576
+ disposition_digest: string;
1577
+ };
1578
+ evidence_bindings: {
1579
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1580
+ source_ref: string;
1581
+ locator: {
1582
+ path: string;
1583
+ start_line: number;
1584
+ end_line: number;
1585
+ };
1586
+ module_ref: string | null;
1587
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
1588
+ content_digest: string;
1589
+ evidence_ref: string;
1590
+ binding_digest: string;
1591
+ }[];
1592
+ artifact_bundle: {
1593
+ protocol: "context.indexer.artifact-bundle/v1";
1594
+ artifact_policy_variant: string;
1595
+ artifacts: ({
1596
+ evidence_refs: string[];
1597
+ artifact_kind: string;
1598
+ artifact_id: string;
1599
+ purpose: "required" | "discretionary";
1600
+ reader_question_refs: string[];
1601
+ } | {
1602
+ evidence_refs: string[];
1603
+ artifact_kind: string;
1604
+ artifact_id: string;
1605
+ purpose: "semantic-split";
1606
+ reader_question_refs: string[];
1607
+ split_of: string;
1608
+ boundary: {
1609
+ axis: string;
1610
+ start_key: string;
1611
+ end_key: string;
1612
+ };
1613
+ })[];
1614
+ logical_unit_ref: string;
1615
+ discretionary_artifact_count: number;
1616
+ semantic_split_part_count: number;
1617
+ bundle_digest: string;
1618
+ } | null;
1619
+ material_question_proposals: {
1620
+ requirement_ref: string;
1621
+ source_hints: string[];
1622
+ proposal_ref: string;
1623
+ question_ref: string;
1624
+ question_target_key: string;
1625
+ answer_landing_hint?: {
1626
+ artifact_id: string;
1627
+ section_key?: string | undefined;
1628
+ } | undefined;
1629
+ }[];
1630
+ question_target_dispositions: ({
1631
+ state: "answered";
1632
+ question_target_key: string;
1633
+ evidence_binding_digest: string;
1634
+ } | {
1635
+ state: "material-gap";
1636
+ material_question_proposal_ref: string;
1637
+ question_target_key: string;
1638
+ })[];
1639
+ structured_declarations?: {
1640
+ protocol: "context.indexer.structured-declaration-set/v1";
1641
+ source_identity_inventory_digest: string;
1642
+ declarations: {
1643
+ source_ref: string;
1644
+ evidence_refs: string[];
1645
+ module_ref: string | null;
1646
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
1647
+ carrier_ref: string;
1648
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
1649
+ target: {
1650
+ normalized_path: string;
1651
+ target_type: "directory";
1652
+ } | {
1653
+ normalized_path: string;
1654
+ content_digest: string;
1655
+ target_type: "file";
1656
+ } | {
1657
+ normalized_path: string;
1658
+ qualified_item_path: string;
1659
+ signature_digest: string;
1660
+ target_type: "item";
1661
+ source_fact_ref: string;
1662
+ };
1663
+ declaration_ref: string;
1664
+ }[];
1665
+ declaration_set_digest: string;
1666
+ } | undefined;
1667
+ structured_claims?: {
1668
+ protocol: "context.indexer.structured-claim-set/v1";
1669
+ logical_unit_ref: string;
1670
+ author_workset_digest: string;
1671
+ claims: {
1672
+ evidence_refs: string[];
1673
+ claim_ref: string;
1674
+ claim_kind: string;
1675
+ subject_ref: string;
1676
+ owner: {
1677
+ artifact_id: string;
1678
+ section_key: string;
1679
+ };
1680
+ }[];
1681
+ claims_digest: string;
1682
+ } | undefined;
1683
+ }, {
1684
+ source_ref: string;
1685
+ protocol: "context.indexer.artifact-result/v1";
1686
+ requirement_ref: string;
1687
+ facts: {
1688
+ value: import("./indexerRegistry.js").IndexerJson;
1689
+ evidence_refs: string[];
1690
+ fact_ref: string;
1691
+ fact_kind: string;
1692
+ subject_key: {
1693
+ kind: string;
1694
+ protocol: "context.subject-key/v1";
1695
+ namespace: string;
1696
+ local_key: string;
1697
+ };
1698
+ }[];
1699
+ module_ref: string | null;
1700
+ input_digest: string;
1701
+ output_digest: string;
1702
+ diagnostics: {
1703
+ code: string;
1704
+ message: string;
1705
+ target_ref?: string | undefined;
1706
+ }[];
1707
+ artifacts: ({
1708
+ template_id: string;
1709
+ artifact_kind: string;
1710
+ artifact_policy_variant: string;
1711
+ variables: Record<string, {
1712
+ value: import("./indexerRegistry.js").IndexerJson;
1713
+ evidence_refs: string[];
1714
+ fact_refs: string[];
1715
+ }>;
1716
+ artifact_id: string;
1717
+ representation: "template";
1718
+ section_projections: {
1719
+ artifact_kind: string;
1720
+ document_kind: string;
1721
+ reader_goal: string;
1722
+ section_key: string;
1723
+ owner_indexer_id: string;
1724
+ }[];
1725
+ } | {
1726
+ artifact_kind: string;
1727
+ artifact_policy_variant: string;
1728
+ artifact_id: string;
1729
+ representation: "sections";
1730
+ sections: {
1731
+ artifact_kind: string;
1732
+ document_kind: string;
1733
+ reader_goal: string;
1734
+ section_key: string;
1735
+ owner_indexer_id: string;
1736
+ blocks: ({
1737
+ block_id: string;
1738
+ layer: "deterministic-block";
1739
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1740
+ fact_refs: string[];
1741
+ } | {
1742
+ evidence_refs: string[];
1743
+ block_id: string;
1744
+ layer: "semantic-prose";
1745
+ markdown: string;
1746
+ })[];
1747
+ }[];
1748
+ })[];
1749
+ indexer_id: string;
1750
+ provider_integrity: string;
1751
+ partition_plan_binding_digest: string;
1752
+ group_projection_digest: string;
1753
+ author_workset_digest: string;
1754
+ provider_layer_ref: string;
1755
+ provider_bundle_digest: string;
1756
+ config_fingerprint: string;
1757
+ customization_fingerprint: string | null;
1758
+ source_role: string;
1759
+ logical_unit: {
1760
+ logical_unit_ref: string;
1761
+ subject_key: {
1762
+ kind: string;
1763
+ protocol: "context.subject-key/v1";
1764
+ namespace: string;
1765
+ local_key: string;
1766
+ };
1767
+ group_key: string;
1768
+ target_resolution_dispositions: ({
1769
+ target_node_ref: string;
1770
+ disposition: "reuse-existing";
1771
+ query_ref: string;
1772
+ target_subject_key: {
1773
+ kind: string;
1774
+ protocol: "context.subject-key/v1";
1775
+ namespace: string;
1776
+ local_key: string;
1777
+ };
1778
+ } | {
1779
+ evidence_refs: string[];
1780
+ disposition: "create-independent";
1781
+ subject_key: {
1782
+ kind: string;
1783
+ protocol: "context.subject-key/v1";
1784
+ namespace: string;
1785
+ local_key: string;
1786
+ };
1787
+ query_ref: string;
1788
+ reason_code: string;
1789
+ } | {
1790
+ disposition: "request-material";
1791
+ query_ref: string;
1792
+ missing_facts: string[];
1793
+ source_hints: string[];
1794
+ } | {
1795
+ disposition: "unsupported";
1796
+ query_ref: string;
1797
+ missing_capabilities: string[];
1798
+ })[];
1799
+ };
1800
+ capability_group_evidence: {
1801
+ protocol: "context.indexer.capability-group-evidence/v1";
1802
+ logical_unit_ref: string;
1803
+ member_ids_digest: string;
1804
+ group_projection_digest: string;
1805
+ author_workset_digest: string;
1806
+ member_ids: string[];
1807
+ capability_groups: {
1808
+ capability_group_ref: string;
1809
+ capability_key: string;
1810
+ member_evidence: {
1811
+ evidence_refs: string[];
1812
+ member_id: string;
1813
+ }[];
1814
+ section_evidence: {
1815
+ evidence_refs: string[];
1816
+ artifact_id: string;
1817
+ section_key: string;
1818
+ }[];
1819
+ }[];
1820
+ evidence_digest: string;
1821
+ };
1822
+ inventory_dispositions: {
1823
+ protocol: "context.indexer.inventory-disposition-set/v1";
1824
+ logical_unit_ref: string;
1825
+ member_ids_digest: string;
1826
+ member_inventory_digest: string;
1827
+ group_projection_digest: string;
1828
+ author_workset_digest: string;
1829
+ dispositions: ({
1830
+ member_id: string;
1831
+ section_evidence: {
1832
+ evidence_refs: string[];
1833
+ artifact_id: string;
1834
+ section_key: string;
1835
+ }[];
1836
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1837
+ inventory_disposition: "owned";
1838
+ projection_disposition: "detailed";
1839
+ } | {
1840
+ member_id: string;
1841
+ capability_group_ref: string;
1842
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1843
+ inventory_disposition: "owned";
1844
+ projection_disposition: "capability-group";
1845
+ } | {
1846
+ fact_refs: string[];
1847
+ member_id: string;
1848
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1849
+ inventory_disposition: "owned";
1850
+ projection_disposition: "catalog-only";
1851
+ } | {
1852
+ evidence_refs: string[];
1853
+ member_id: string;
1854
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1855
+ inventory_disposition: "owned";
1856
+ projection_disposition: "boundary-only";
1857
+ } | {
1858
+ evidence_refs: string[];
1859
+ member_id: string;
1860
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1861
+ inventory_disposition: "excluded-with-reason";
1862
+ reason_code: string;
1863
+ } | {
1864
+ member_id: string;
1865
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1866
+ inventory_disposition: "unsupported";
1867
+ missing_capabilities: string[];
1868
+ } | {
1869
+ member_id: string;
1870
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1871
+ inventory_disposition: "request-material";
1872
+ material_question_proposal_ref: string;
1873
+ })[];
1874
+ disposition_digest: string;
1875
+ };
1876
+ evidence_bindings: {
1877
+ kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1878
+ source_ref: string;
1879
+ locator: {
1880
+ path: string;
1881
+ start_line: number;
1882
+ end_line: number;
1883
+ };
1884
+ module_ref: string | null;
1885
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
1886
+ content_digest: string;
1887
+ evidence_ref: string;
1888
+ binding_digest: string;
1889
+ }[];
1890
+ artifact_bundle: {
1891
+ protocol: "context.indexer.artifact-bundle/v1";
1892
+ artifact_policy_variant: string;
1893
+ artifacts: ({
1894
+ evidence_refs: string[];
1895
+ artifact_kind: string;
1896
+ artifact_id: string;
1897
+ purpose: "required" | "discretionary";
1898
+ reader_question_refs: string[];
1899
+ } | {
1900
+ evidence_refs: string[];
1901
+ artifact_kind: string;
1902
+ artifact_id: string;
1903
+ purpose: "semantic-split";
1904
+ reader_question_refs: string[];
1905
+ split_of: string;
1906
+ boundary: {
1907
+ axis: string;
1908
+ start_key: string;
1909
+ end_key: string;
1910
+ };
1911
+ })[];
1912
+ logical_unit_ref: string;
1913
+ discretionary_artifact_count: number;
1914
+ semantic_split_part_count: number;
1915
+ bundle_digest: string;
1916
+ } | null;
1917
+ material_question_proposals: {
1918
+ requirement_ref: string;
1919
+ source_hints: string[];
1920
+ proposal_ref: string;
1921
+ question_ref: string;
1922
+ question_target_key: string;
1923
+ answer_landing_hint?: {
1924
+ artifact_id: string;
1925
+ section_key?: string | undefined;
1926
+ } | undefined;
1927
+ }[];
1928
+ question_target_dispositions: ({
1929
+ state: "answered";
1930
+ question_target_key: string;
1931
+ evidence_binding_digest: string;
1932
+ } | {
1933
+ state: "material-gap";
1934
+ material_question_proposal_ref: string;
1935
+ question_target_key: string;
1936
+ })[];
1937
+ structured_declarations?: {
1938
+ protocol: "context.indexer.structured-declaration-set/v1";
1939
+ source_identity_inventory_digest: string;
1940
+ declarations: {
1941
+ source_ref: string;
1942
+ evidence_refs: string[];
1943
+ module_ref: string | null;
1944
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
1945
+ carrier_ref: string;
1946
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
1947
+ target: {
1948
+ normalized_path: string;
1949
+ target_type: "directory";
1950
+ } | {
1951
+ normalized_path: string;
1952
+ content_digest: string;
1953
+ target_type: "file";
1954
+ } | {
1955
+ normalized_path: string;
1956
+ qualified_item_path: string;
1957
+ signature_digest: string;
1958
+ target_type: "item";
1959
+ source_fact_ref: string;
1960
+ };
1961
+ declaration_ref: string;
1962
+ }[];
1963
+ declaration_set_digest: string;
1964
+ } | undefined;
1965
+ structured_claims?: {
1966
+ protocol: "context.indexer.structured-claim-set/v1";
1967
+ logical_unit_ref: string;
1968
+ author_workset_digest: string;
1969
+ claims: {
1970
+ evidence_refs: string[];
1971
+ claim_ref: string;
1972
+ claim_kind: string;
1973
+ subject_ref: string;
1974
+ owner: {
1975
+ artifact_id: string;
1976
+ section_key: string;
1977
+ };
1978
+ }[];
1979
+ claims_digest: string;
1980
+ } | undefined;
1981
+ }>;
1982
+ export type IndexerArtifactResult = z.infer<typeof indexerArtifactResultSchema>;
1983
+ export type IndexerArtifactSectionProjection = z.infer<typeof indexerArtifactSectionProjectionSchema>;
1984
+ export declare function indexerEvidenceBindingDigest(value: Omit<z.infer<typeof evidenceBindingSchema>, "binding_digest">): string;
1985
+ export declare function indexerArtifactResultDigest(value: Omit<IndexerArtifactResult, "output_digest">): string;
1986
+ export declare function validateIndexerArtifactResult(input: {
1987
+ result: unknown;
1988
+ workset: IndexerMainAuthorWorkset;
1989
+ expected_provider: {
1990
+ layer_ref: string;
1991
+ integrity: string;
1992
+ bundle_digest: string;
1993
+ config_fingerprint: string;
1994
+ customization_fingerprint: string | null;
1995
+ };
1996
+ expected_input_digest: string;
1997
+ expected_subject_key: unknown;
1998
+ allowed_question_targets: readonly {
1999
+ question_target_key: string;
2000
+ question_ref: string;
2001
+ }[];
2002
+ artifact_policy_eligibility: unknown;
2003
+ allowed_source_roles: readonly string[];
2004
+ source_identity_inventory?: unknown;
2005
+ authorized_declaration_carriers?: {
2006
+ catalog_refs?: readonly string[];
2007
+ manifest_refs?: readonly string[];
2008
+ };
2009
+ }): IndexerArtifactResult;
2010
+ export {};