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