@c4a/context 0.7.1 → 0.7.4

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