@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,1253 +0,0 @@
1
- import { z } from "zod";
2
- import { type IndexerCurrentEvidenceSource, type IndexerMaterialAnswerCandidateSet, type IndexerMaterialAnswerResult, type IndexerSourceSpanRef } from "./indexerMaterialAnswer.js";
3
- export declare const indexerMaterialAnswerRunRequestSchema: z.ZodObject<{
4
- protocol: z.ZodLiteral<"context.indexer.run-request/v1">;
5
- operation: z.ZodLiteral<"material-answer">;
6
- workset: z.ZodObject<{
7
- protocol: z.ZodLiteral<"context.indexer.material-question-workset/v1">;
8
- workset_digest: z.ZodString;
9
- question_set_digest: z.ZodString;
10
- question_target_inventory_digest: z.ZodString;
11
- question_target_set_digest: z.ZodString;
12
- predecessor_ledger_revision: z.ZodString;
13
- registry_digest: z.ZodString;
14
- requirement_set_digest: z.ZodString;
15
- source_input_digests: z.ZodArray<z.ZodString, "many">;
16
- items: z.ZodArray<z.ZodObject<{
17
- question_key: z.ZodString;
18
- question_contract_digest: z.ZodString;
19
- question_revision_digest: z.ZodString;
20
- question: z.ZodObject<{
21
- owner_cell_ref: z.ZodString;
22
- question_ref: z.ZodString;
23
- question_contract_digest: z.ZodString;
24
- question_subject_target_ref: z.ZodString;
25
- question_target_item_digest: z.ZodString;
26
- answer_landing_ref: z.ZodOptional<z.ZodString>;
27
- evidence_contract: z.ZodEffects<z.ZodObject<{
28
- accepted_kinds: z.ZodArray<z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>, "many">;
29
- minimum_items: z.ZodNumber;
30
- minimum_distinct_sources: z.ZodNumber;
31
- provenance_constraints: z.ZodOptional<z.ZodObject<{
32
- protocol: z.ZodLiteral<"context.indexer.selector/v1">;
33
- expression: z.ZodType<import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression, z.ZodTypeDef, import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression>;
34
- }, "strict", z.ZodTypeAny, {
35
- protocol: "context.indexer.selector/v1";
36
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
37
- }, {
38
- protocol: "context.indexer.selector/v1";
39
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
40
- }>>;
41
- }, "strict", z.ZodTypeAny, {
42
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
43
- minimum_items: number;
44
- minimum_distinct_sources: number;
45
- provenance_constraints?: {
46
- protocol: "context.indexer.selector/v1";
47
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
48
- } | undefined;
49
- }, {
50
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
51
- minimum_items: number;
52
- minimum_distinct_sources: number;
53
- provenance_constraints?: {
54
- protocol: "context.indexer.selector/v1";
55
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
56
- } | undefined;
57
- }>, {
58
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
59
- minimum_items: number;
60
- minimum_distinct_sources: number;
61
- provenance_constraints?: {
62
- protocol: "context.indexer.selector/v1";
63
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
64
- } | undefined;
65
- }, {
66
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
67
- minimum_items: number;
68
- minimum_distinct_sources: number;
69
- provenance_constraints?: {
70
- protocol: "context.indexer.selector/v1";
71
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
72
- } | undefined;
73
- }>;
74
- source_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
- }, "strict", z.ZodTypeAny, {
76
- evidence_contract: {
77
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
78
- minimum_items: number;
79
- minimum_distinct_sources: number;
80
- provenance_constraints?: {
81
- protocol: "context.indexer.selector/v1";
82
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
83
- } | undefined;
84
- };
85
- question_ref: string;
86
- owner_cell_ref: string;
87
- question_contract_digest: string;
88
- question_subject_target_ref: string;
89
- question_target_item_digest: string;
90
- source_refs?: string[] | undefined;
91
- answer_landing_ref?: string | undefined;
92
- }, {
93
- evidence_contract: {
94
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
95
- minimum_items: number;
96
- minimum_distinct_sources: number;
97
- provenance_constraints?: {
98
- protocol: "context.indexer.selector/v1";
99
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
100
- } | undefined;
101
- };
102
- question_ref: string;
103
- owner_cell_ref: string;
104
- question_contract_digest: string;
105
- question_subject_target_ref: string;
106
- question_target_item_digest: string;
107
- source_refs?: string[] | undefined;
108
- answer_landing_ref?: string | undefined;
109
- }>;
110
- eligible_answer_indexer_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
111
- authorized_source_refs: z.ZodArray<z.ZodString, "many">;
112
- }, "strict", z.ZodTypeAny, {
113
- question_contract_digest: string;
114
- question_key: string;
115
- question_revision_digest: string;
116
- question: {
117
- evidence_contract: {
118
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
119
- minimum_items: number;
120
- minimum_distinct_sources: number;
121
- provenance_constraints?: {
122
- protocol: "context.indexer.selector/v1";
123
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
124
- } | undefined;
125
- };
126
- question_ref: string;
127
- owner_cell_ref: string;
128
- question_contract_digest: string;
129
- question_subject_target_ref: string;
130
- question_target_item_digest: string;
131
- source_refs?: string[] | undefined;
132
- answer_landing_ref?: string | undefined;
133
- };
134
- eligible_answer_indexer_ids: string[];
135
- authorized_source_refs: string[];
136
- }, {
137
- question_contract_digest: string;
138
- question_key: string;
139
- question_revision_digest: string;
140
- question: {
141
- evidence_contract: {
142
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
143
- minimum_items: number;
144
- minimum_distinct_sources: number;
145
- provenance_constraints?: {
146
- protocol: "context.indexer.selector/v1";
147
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
148
- } | undefined;
149
- };
150
- question_ref: string;
151
- owner_cell_ref: string;
152
- question_contract_digest: string;
153
- question_subject_target_ref: string;
154
- question_target_item_digest: string;
155
- source_refs?: string[] | undefined;
156
- answer_landing_ref?: string | undefined;
157
- };
158
- eligible_answer_indexer_ids: string[];
159
- authorized_source_refs: string[];
160
- }>, "many">;
161
- }, "strict", z.ZodTypeAny, {
162
- protocol: "context.indexer.material-question-workset/v1";
163
- workset_digest: string;
164
- requirement_set_digest: string;
165
- question_target_inventory_digest: string;
166
- items: {
167
- question_contract_digest: string;
168
- question_key: string;
169
- question_revision_digest: string;
170
- question: {
171
- evidence_contract: {
172
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
173
- minimum_items: number;
174
- minimum_distinct_sources: number;
175
- provenance_constraints?: {
176
- protocol: "context.indexer.selector/v1";
177
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
178
- } | undefined;
179
- };
180
- question_ref: string;
181
- owner_cell_ref: string;
182
- question_contract_digest: string;
183
- question_subject_target_ref: string;
184
- question_target_item_digest: string;
185
- source_refs?: string[] | undefined;
186
- answer_landing_ref?: string | undefined;
187
- };
188
- eligible_answer_indexer_ids: string[];
189
- authorized_source_refs: string[];
190
- }[];
191
- question_set_digest: string;
192
- question_target_set_digest: string;
193
- predecessor_ledger_revision: string;
194
- registry_digest: string;
195
- source_input_digests: string[];
196
- }, {
197
- protocol: "context.indexer.material-question-workset/v1";
198
- workset_digest: string;
199
- requirement_set_digest: string;
200
- question_target_inventory_digest: string;
201
- items: {
202
- question_contract_digest: string;
203
- question_key: string;
204
- question_revision_digest: string;
205
- question: {
206
- evidence_contract: {
207
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
208
- minimum_items: number;
209
- minimum_distinct_sources: number;
210
- provenance_constraints?: {
211
- protocol: "context.indexer.selector/v1";
212
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
213
- } | undefined;
214
- };
215
- question_ref: string;
216
- owner_cell_ref: string;
217
- question_contract_digest: string;
218
- question_subject_target_ref: string;
219
- question_target_item_digest: string;
220
- source_refs?: string[] | undefined;
221
- answer_landing_ref?: string | undefined;
222
- };
223
- eligible_answer_indexer_ids: string[];
224
- authorized_source_refs: string[];
225
- }[];
226
- question_set_digest: string;
227
- question_target_set_digest: string;
228
- predecessor_ledger_revision: string;
229
- registry_digest: string;
230
- source_input_digests: string[];
231
- }>;
232
- answer_indexer_id: z.ZodEffects<z.ZodString, string, string>;
233
- eligible_question_keys: z.ZodArray<z.ZodString, "many">;
234
- composition_input: z.ZodObject<{
235
- protocol: z.ZodLiteral<"context.indexer.layer-composition-input/v1">;
236
- workset_digest: z.ZodString;
237
- final_authority_layer_ref: z.ZodEffects<z.ZodString, string, string>;
238
- accepted_fragments: z.ZodArray<z.ZodObject<{
239
- fragment_digest: z.ZodString;
240
- layer_ref: z.ZodEffects<z.ZodString, string, string>;
241
- layer_integrity: z.ZodString;
242
- composer_ref: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
243
- phase: z.ZodEnum<["pre-authority", "post-author"]>;
244
- kind: z.ZodEnum<["fact-enrichment", "template-variables", "derived-artifact-proposal"]>;
245
- target_refs: z.ZodArray<z.ZodString, "many">;
246
- payload: z.ZodUnion<[z.ZodObject<{
247
- protocol: z.ZodLiteral<"context.indexer.fragment.fact-enrichment/v1">;
248
- facts: z.ZodArray<z.ZodObject<{
249
- target_ref: z.ZodString;
250
- fact_id: z.ZodEffects<z.ZodString, string, string>;
251
- value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
252
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
253
- ref: z.ZodString;
254
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
255
- source_digest: z.ZodString;
256
- }, "strict", z.ZodTypeAny, {
257
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
258
- ref: string;
259
- source_digest: string;
260
- }, {
261
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
262
- ref: string;
263
- source_digest: string;
264
- }>, "many">, {
265
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
266
- ref: string;
267
- source_digest: string;
268
- }[], {
269
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
270
- ref: string;
271
- source_digest: string;
272
- }[]>;
273
- }, "strict", z.ZodTypeAny, {
274
- value: import("./indexerRegistry.js").IndexerJson;
275
- target_ref: string;
276
- fact_id: string;
277
- evidence_refs: {
278
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
279
- ref: string;
280
- source_digest: string;
281
- }[];
282
- }, {
283
- value: import("./indexerRegistry.js").IndexerJson;
284
- target_ref: string;
285
- fact_id: string;
286
- evidence_refs: {
287
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
288
- ref: string;
289
- source_digest: string;
290
- }[];
291
- }>, "many">;
292
- }, "strict", z.ZodTypeAny, {
293
- protocol: "context.indexer.fragment.fact-enrichment/v1";
294
- facts: {
295
- value: import("./indexerRegistry.js").IndexerJson;
296
- target_ref: string;
297
- fact_id: string;
298
- evidence_refs: {
299
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
300
- ref: string;
301
- source_digest: string;
302
- }[];
303
- }[];
304
- }, {
305
- protocol: "context.indexer.fragment.fact-enrichment/v1";
306
- facts: {
307
- value: import("./indexerRegistry.js").IndexerJson;
308
- target_ref: string;
309
- fact_id: string;
310
- evidence_refs: {
311
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
312
- ref: string;
313
- source_digest: string;
314
- }[];
315
- }[];
316
- }>, z.ZodObject<{
317
- protocol: z.ZodLiteral<"context.indexer.fragment.template-variables/v1">;
318
- variables: z.ZodArray<z.ZodObject<{
319
- target_ref: z.ZodString;
320
- template_id: z.ZodEffects<z.ZodString, string, string>;
321
- variable_id: z.ZodEffects<z.ZodString, string, string>;
322
- value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
323
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
324
- ref: z.ZodString;
325
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
326
- source_digest: z.ZodString;
327
- }, "strict", z.ZodTypeAny, {
328
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
329
- ref: string;
330
- source_digest: string;
331
- }, {
332
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
333
- ref: string;
334
- source_digest: string;
335
- }>, "many">, {
336
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
337
- ref: string;
338
- source_digest: string;
339
- }[], {
340
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
341
- ref: string;
342
- source_digest: string;
343
- }[]>;
344
- }, "strict", z.ZodTypeAny, {
345
- value: import("./indexerRegistry.js").IndexerJson;
346
- target_ref: string;
347
- evidence_refs: {
348
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
349
- ref: string;
350
- source_digest: string;
351
- }[];
352
- template_id: string;
353
- variable_id: string;
354
- }, {
355
- value: import("./indexerRegistry.js").IndexerJson;
356
- target_ref: string;
357
- evidence_refs: {
358
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
359
- ref: string;
360
- source_digest: string;
361
- }[];
362
- template_id: string;
363
- variable_id: string;
364
- }>, "many">;
365
- }, "strict", z.ZodTypeAny, {
366
- protocol: "context.indexer.fragment.template-variables/v1";
367
- variables: {
368
- value: import("./indexerRegistry.js").IndexerJson;
369
- target_ref: string;
370
- evidence_refs: {
371
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
372
- ref: string;
373
- source_digest: string;
374
- }[];
375
- template_id: string;
376
- variable_id: string;
377
- }[];
378
- }, {
379
- protocol: "context.indexer.fragment.template-variables/v1";
380
- variables: {
381
- value: import("./indexerRegistry.js").IndexerJson;
382
- target_ref: string;
383
- evidence_refs: {
384
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
385
- ref: string;
386
- source_digest: string;
387
- }[];
388
- template_id: string;
389
- variable_id: string;
390
- }[];
391
- }>, z.ZodObject<{
392
- protocol: z.ZodLiteral<"context.indexer.fragment.derived-artifact-proposal/v1">;
393
- proposals: z.ZodArray<z.ZodObject<{
394
- composer_ref: z.ZodEffects<z.ZodString, string, string>;
395
- target_node_ref: z.ZodString;
396
- artifact_kind: z.ZodEffects<z.ZodString, string, string>;
397
- artifact_key: z.ZodEffects<z.ZodString, string, string>;
398
- artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
399
- variables: z.ZodRecord<z.ZodString, z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>>;
400
- evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
401
- ref: z.ZodString;
402
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
403
- source_digest: z.ZodString;
404
- }, "strict", z.ZodTypeAny, {
405
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
406
- ref: string;
407
- source_digest: string;
408
- }, {
409
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
410
- ref: string;
411
- source_digest: string;
412
- }>, "many">, {
413
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
414
- ref: string;
415
- source_digest: string;
416
- }[], {
417
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
418
- ref: string;
419
- source_digest: string;
420
- }[]>;
421
- }, "strict", z.ZodTypeAny, {
422
- evidence_refs: {
423
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
424
- ref: string;
425
- source_digest: string;
426
- }[];
427
- composer_ref: string;
428
- target_node_ref: string;
429
- artifact_kind: string;
430
- artifact_key: string;
431
- artifact_policy_variant: string;
432
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
433
- }, {
434
- evidence_refs: {
435
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
436
- ref: string;
437
- source_digest: string;
438
- }[];
439
- composer_ref: string;
440
- target_node_ref: string;
441
- artifact_kind: string;
442
- artifact_key: string;
443
- artifact_policy_variant: string;
444
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
445
- }>, "many">;
446
- }, "strict", z.ZodTypeAny, {
447
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
448
- proposals: {
449
- evidence_refs: {
450
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
451
- ref: string;
452
- source_digest: string;
453
- }[];
454
- composer_ref: string;
455
- target_node_ref: string;
456
- artifact_kind: string;
457
- artifact_key: string;
458
- artifact_policy_variant: string;
459
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
460
- }[];
461
- }, {
462
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
463
- proposals: {
464
- evidence_refs: {
465
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
466
- ref: string;
467
- source_digest: string;
468
- }[];
469
- composer_ref: string;
470
- target_node_ref: string;
471
- artifact_kind: string;
472
- artifact_key: string;
473
- artifact_policy_variant: string;
474
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
475
- }[];
476
- }>]>;
477
- payload_digest: z.ZodString;
478
- materialization_receipt: z.ZodObject<{
479
- protocol: z.ZodLiteral<"context.indexer.layer-fragment-materialization-receipt/v1">;
480
- fragment_digest: z.ZodString;
481
- payload_digest: z.ZodString;
482
- layer_ref: z.ZodEffects<z.ZodString, string, string>;
483
- layer_integrity: z.ZodString;
484
- composer_ref: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
485
- validator_contract_digest: z.ZodString;
486
- }, "strict", z.ZodTypeAny, {
487
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
488
- layer_ref: string;
489
- layer_integrity: string;
490
- fragment_digest: string;
491
- payload_digest: string;
492
- validator_contract_digest: string;
493
- composer_ref?: string | undefined;
494
- }, {
495
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
496
- layer_ref: string;
497
- layer_integrity: string;
498
- fragment_digest: string;
499
- payload_digest: string;
500
- validator_contract_digest: string;
501
- composer_ref?: string | undefined;
502
- }>;
503
- }, "strict", z.ZodTypeAny, {
504
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
505
- layer_ref: string;
506
- layer_integrity: string;
507
- phase: "pre-authority" | "post-author";
508
- target_refs: string[];
509
- payload: {
510
- protocol: "context.indexer.fragment.fact-enrichment/v1";
511
- facts: {
512
- value: import("./indexerRegistry.js").IndexerJson;
513
- target_ref: string;
514
- fact_id: string;
515
- evidence_refs: {
516
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
517
- ref: string;
518
- source_digest: string;
519
- }[];
520
- }[];
521
- } | {
522
- protocol: "context.indexer.fragment.template-variables/v1";
523
- variables: {
524
- value: import("./indexerRegistry.js").IndexerJson;
525
- target_ref: string;
526
- evidence_refs: {
527
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
528
- ref: string;
529
- source_digest: string;
530
- }[];
531
- template_id: string;
532
- variable_id: string;
533
- }[];
534
- } | {
535
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
536
- proposals: {
537
- evidence_refs: {
538
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
539
- ref: string;
540
- source_digest: string;
541
- }[];
542
- composer_ref: string;
543
- target_node_ref: string;
544
- artifact_kind: string;
545
- artifact_key: string;
546
- artifact_policy_variant: string;
547
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
548
- }[];
549
- };
550
- fragment_digest: string;
551
- payload_digest: string;
552
- materialization_receipt: {
553
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
554
- layer_ref: string;
555
- layer_integrity: string;
556
- fragment_digest: string;
557
- payload_digest: string;
558
- validator_contract_digest: string;
559
- composer_ref?: string | undefined;
560
- };
561
- composer_ref?: string | undefined;
562
- }, {
563
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
564
- layer_ref: string;
565
- layer_integrity: string;
566
- phase: "pre-authority" | "post-author";
567
- target_refs: string[];
568
- payload: {
569
- protocol: "context.indexer.fragment.fact-enrichment/v1";
570
- facts: {
571
- value: import("./indexerRegistry.js").IndexerJson;
572
- target_ref: string;
573
- fact_id: string;
574
- evidence_refs: {
575
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
576
- ref: string;
577
- source_digest: string;
578
- }[];
579
- }[];
580
- } | {
581
- protocol: "context.indexer.fragment.template-variables/v1";
582
- variables: {
583
- value: import("./indexerRegistry.js").IndexerJson;
584
- target_ref: string;
585
- evidence_refs: {
586
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
587
- ref: string;
588
- source_digest: string;
589
- }[];
590
- template_id: string;
591
- variable_id: string;
592
- }[];
593
- } | {
594
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
595
- proposals: {
596
- evidence_refs: {
597
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
598
- ref: string;
599
- source_digest: string;
600
- }[];
601
- composer_ref: string;
602
- target_node_ref: string;
603
- artifact_kind: string;
604
- artifact_key: string;
605
- artifact_policy_variant: string;
606
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
607
- }[];
608
- };
609
- fragment_digest: string;
610
- payload_digest: string;
611
- materialization_receipt: {
612
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
613
- layer_ref: string;
614
- layer_integrity: string;
615
- fragment_digest: string;
616
- payload_digest: string;
617
- validator_contract_digest: string;
618
- composer_ref?: string | undefined;
619
- };
620
- composer_ref?: string | undefined;
621
- }>, "many">;
622
- rejected_fragment_diagnostics: z.ZodArray<z.ZodObject<{
623
- code: z.ZodEffects<z.ZodString, string, string>;
624
- message: z.ZodString;
625
- fragment_digest: z.ZodOptional<z.ZodString>;
626
- }, "strict", z.ZodTypeAny, {
627
- code: string;
628
- message: string;
629
- fragment_digest?: string | undefined;
630
- }, {
631
- code: string;
632
- message: string;
633
- fragment_digest?: string | undefined;
634
- }>, "many">;
635
- view_digest: z.ZodString;
636
- }, "strict", z.ZodTypeAny, {
637
- protocol: "context.indexer.layer-composition-input/v1";
638
- workset_digest: string;
639
- final_authority_layer_ref: string;
640
- accepted_fragments: {
641
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
642
- layer_ref: string;
643
- layer_integrity: string;
644
- phase: "pre-authority" | "post-author";
645
- target_refs: string[];
646
- payload: {
647
- protocol: "context.indexer.fragment.fact-enrichment/v1";
648
- facts: {
649
- value: import("./indexerRegistry.js").IndexerJson;
650
- target_ref: string;
651
- fact_id: string;
652
- evidence_refs: {
653
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
654
- ref: string;
655
- source_digest: string;
656
- }[];
657
- }[];
658
- } | {
659
- protocol: "context.indexer.fragment.template-variables/v1";
660
- variables: {
661
- value: import("./indexerRegistry.js").IndexerJson;
662
- target_ref: string;
663
- evidence_refs: {
664
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
665
- ref: string;
666
- source_digest: string;
667
- }[];
668
- template_id: string;
669
- variable_id: string;
670
- }[];
671
- } | {
672
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
673
- proposals: {
674
- evidence_refs: {
675
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
676
- ref: string;
677
- source_digest: string;
678
- }[];
679
- composer_ref: string;
680
- target_node_ref: string;
681
- artifact_kind: string;
682
- artifact_key: string;
683
- artifact_policy_variant: string;
684
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
685
- }[];
686
- };
687
- fragment_digest: string;
688
- payload_digest: string;
689
- materialization_receipt: {
690
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
691
- layer_ref: string;
692
- layer_integrity: string;
693
- fragment_digest: string;
694
- payload_digest: string;
695
- validator_contract_digest: string;
696
- composer_ref?: string | undefined;
697
- };
698
- composer_ref?: string | undefined;
699
- }[];
700
- rejected_fragment_diagnostics: {
701
- code: string;
702
- message: string;
703
- fragment_digest?: string | undefined;
704
- }[];
705
- view_digest: string;
706
- }, {
707
- protocol: "context.indexer.layer-composition-input/v1";
708
- workset_digest: string;
709
- final_authority_layer_ref: string;
710
- accepted_fragments: {
711
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
712
- layer_ref: string;
713
- layer_integrity: string;
714
- phase: "pre-authority" | "post-author";
715
- target_refs: string[];
716
- payload: {
717
- protocol: "context.indexer.fragment.fact-enrichment/v1";
718
- facts: {
719
- value: import("./indexerRegistry.js").IndexerJson;
720
- target_ref: string;
721
- fact_id: string;
722
- evidence_refs: {
723
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
724
- ref: string;
725
- source_digest: string;
726
- }[];
727
- }[];
728
- } | {
729
- protocol: "context.indexer.fragment.template-variables/v1";
730
- variables: {
731
- value: import("./indexerRegistry.js").IndexerJson;
732
- target_ref: string;
733
- evidence_refs: {
734
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
735
- ref: string;
736
- source_digest: string;
737
- }[];
738
- template_id: string;
739
- variable_id: string;
740
- }[];
741
- } | {
742
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
743
- proposals: {
744
- evidence_refs: {
745
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
746
- ref: string;
747
- source_digest: string;
748
- }[];
749
- composer_ref: string;
750
- target_node_ref: string;
751
- artifact_kind: string;
752
- artifact_key: string;
753
- artifact_policy_variant: string;
754
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
755
- }[];
756
- };
757
- fragment_digest: string;
758
- payload_digest: string;
759
- materialization_receipt: {
760
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
761
- layer_ref: string;
762
- layer_integrity: string;
763
- fragment_digest: string;
764
- payload_digest: string;
765
- validator_contract_digest: string;
766
- composer_ref?: string | undefined;
767
- };
768
- composer_ref?: string | undefined;
769
- }[];
770
- rejected_fragment_diagnostics: {
771
- code: string;
772
- message: string;
773
- fragment_digest?: string | undefined;
774
- }[];
775
- view_digest: string;
776
- }>;
777
- final_authority: z.ZodObject<{
778
- layer_ref: z.ZodEffects<z.ZodString, string, string>;
779
- integrity: z.ZodString;
780
- bundle_digest: z.ZodString;
781
- config_fingerprint: z.ZodString;
782
- customization_fingerprint: z.ZodNullable<z.ZodString>;
783
- }, "strict", z.ZodTypeAny, {
784
- integrity: string;
785
- layer_ref: string;
786
- bundle_digest: string;
787
- config_fingerprint: string;
788
- customization_fingerprint: string | null;
789
- }, {
790
- integrity: string;
791
- layer_ref: string;
792
- bundle_digest: string;
793
- config_fingerprint: string;
794
- customization_fingerprint: string | null;
795
- }>;
796
- answer_provider_composition_fingerprint: z.ZodString;
797
- execution_request_digest: z.ZodString;
798
- }, "strict", z.ZodTypeAny, {
799
- operation: "material-answer";
800
- protocol: "context.indexer.run-request/v1";
801
- workset: {
802
- protocol: "context.indexer.material-question-workset/v1";
803
- workset_digest: string;
804
- requirement_set_digest: string;
805
- question_target_inventory_digest: string;
806
- items: {
807
- question_contract_digest: string;
808
- question_key: string;
809
- question_revision_digest: string;
810
- question: {
811
- evidence_contract: {
812
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
813
- minimum_items: number;
814
- minimum_distinct_sources: number;
815
- provenance_constraints?: {
816
- protocol: "context.indexer.selector/v1";
817
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
818
- } | undefined;
819
- };
820
- question_ref: string;
821
- owner_cell_ref: string;
822
- question_contract_digest: string;
823
- question_subject_target_ref: string;
824
- question_target_item_digest: string;
825
- source_refs?: string[] | undefined;
826
- answer_landing_ref?: string | undefined;
827
- };
828
- eligible_answer_indexer_ids: string[];
829
- authorized_source_refs: string[];
830
- }[];
831
- question_set_digest: string;
832
- question_target_set_digest: string;
833
- predecessor_ledger_revision: string;
834
- registry_digest: string;
835
- source_input_digests: string[];
836
- };
837
- execution_request_digest: string;
838
- composition_input: {
839
- protocol: "context.indexer.layer-composition-input/v1";
840
- workset_digest: string;
841
- final_authority_layer_ref: string;
842
- accepted_fragments: {
843
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
844
- layer_ref: string;
845
- layer_integrity: string;
846
- phase: "pre-authority" | "post-author";
847
- target_refs: string[];
848
- payload: {
849
- protocol: "context.indexer.fragment.fact-enrichment/v1";
850
- facts: {
851
- value: import("./indexerRegistry.js").IndexerJson;
852
- target_ref: string;
853
- fact_id: string;
854
- evidence_refs: {
855
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
856
- ref: string;
857
- source_digest: string;
858
- }[];
859
- }[];
860
- } | {
861
- protocol: "context.indexer.fragment.template-variables/v1";
862
- variables: {
863
- value: import("./indexerRegistry.js").IndexerJson;
864
- target_ref: string;
865
- evidence_refs: {
866
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
867
- ref: string;
868
- source_digest: string;
869
- }[];
870
- template_id: string;
871
- variable_id: string;
872
- }[];
873
- } | {
874
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
875
- proposals: {
876
- evidence_refs: {
877
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
878
- ref: string;
879
- source_digest: string;
880
- }[];
881
- composer_ref: string;
882
- target_node_ref: string;
883
- artifact_kind: string;
884
- artifact_key: string;
885
- artifact_policy_variant: string;
886
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
887
- }[];
888
- };
889
- fragment_digest: string;
890
- payload_digest: string;
891
- materialization_receipt: {
892
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
893
- layer_ref: string;
894
- layer_integrity: string;
895
- fragment_digest: string;
896
- payload_digest: string;
897
- validator_contract_digest: string;
898
- composer_ref?: string | undefined;
899
- };
900
- composer_ref?: string | undefined;
901
- }[];
902
- rejected_fragment_diagnostics: {
903
- code: string;
904
- message: string;
905
- fragment_digest?: string | undefined;
906
- }[];
907
- view_digest: string;
908
- };
909
- final_authority: {
910
- integrity: string;
911
- layer_ref: string;
912
- bundle_digest: string;
913
- config_fingerprint: string;
914
- customization_fingerprint: string | null;
915
- };
916
- answer_indexer_id: string;
917
- answer_provider_composition_fingerprint: string;
918
- eligible_question_keys: string[];
919
- }, {
920
- operation: "material-answer";
921
- protocol: "context.indexer.run-request/v1";
922
- workset: {
923
- protocol: "context.indexer.material-question-workset/v1";
924
- workset_digest: string;
925
- requirement_set_digest: string;
926
- question_target_inventory_digest: string;
927
- items: {
928
- question_contract_digest: string;
929
- question_key: string;
930
- question_revision_digest: string;
931
- question: {
932
- evidence_contract: {
933
- accepted_kinds: ("contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot")[];
934
- minimum_items: number;
935
- minimum_distinct_sources: number;
936
- provenance_constraints?: {
937
- protocol: "context.indexer.selector/v1";
938
- expression: import("./indexerRestrictedSelector.js").IndexerRestrictedSelectorExpression;
939
- } | undefined;
940
- };
941
- question_ref: string;
942
- owner_cell_ref: string;
943
- question_contract_digest: string;
944
- question_subject_target_ref: string;
945
- question_target_item_digest: string;
946
- source_refs?: string[] | undefined;
947
- answer_landing_ref?: string | undefined;
948
- };
949
- eligible_answer_indexer_ids: string[];
950
- authorized_source_refs: string[];
951
- }[];
952
- question_set_digest: string;
953
- question_target_set_digest: string;
954
- predecessor_ledger_revision: string;
955
- registry_digest: string;
956
- source_input_digests: string[];
957
- };
958
- execution_request_digest: string;
959
- composition_input: {
960
- protocol: "context.indexer.layer-composition-input/v1";
961
- workset_digest: string;
962
- final_authority_layer_ref: string;
963
- accepted_fragments: {
964
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
965
- layer_ref: string;
966
- layer_integrity: string;
967
- phase: "pre-authority" | "post-author";
968
- target_refs: string[];
969
- payload: {
970
- protocol: "context.indexer.fragment.fact-enrichment/v1";
971
- facts: {
972
- value: import("./indexerRegistry.js").IndexerJson;
973
- target_ref: string;
974
- fact_id: string;
975
- evidence_refs: {
976
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
977
- ref: string;
978
- source_digest: string;
979
- }[];
980
- }[];
981
- } | {
982
- protocol: "context.indexer.fragment.template-variables/v1";
983
- variables: {
984
- value: import("./indexerRegistry.js").IndexerJson;
985
- target_ref: string;
986
- evidence_refs: {
987
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
988
- ref: string;
989
- source_digest: string;
990
- }[];
991
- template_id: string;
992
- variable_id: string;
993
- }[];
994
- } | {
995
- protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
996
- proposals: {
997
- evidence_refs: {
998
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
999
- ref: string;
1000
- source_digest: string;
1001
- }[];
1002
- composer_ref: string;
1003
- target_node_ref: string;
1004
- artifact_kind: string;
1005
- artifact_key: string;
1006
- artifact_policy_variant: string;
1007
- variables: Record<string, import("./indexerRegistry.js").IndexerJson>;
1008
- }[];
1009
- };
1010
- fragment_digest: string;
1011
- payload_digest: string;
1012
- materialization_receipt: {
1013
- protocol: "context.indexer.layer-fragment-materialization-receipt/v1";
1014
- layer_ref: string;
1015
- layer_integrity: string;
1016
- fragment_digest: string;
1017
- payload_digest: string;
1018
- validator_contract_digest: string;
1019
- composer_ref?: string | undefined;
1020
- };
1021
- composer_ref?: string | undefined;
1022
- }[];
1023
- rejected_fragment_diagnostics: {
1024
- code: string;
1025
- message: string;
1026
- fragment_digest?: string | undefined;
1027
- }[];
1028
- view_digest: string;
1029
- };
1030
- final_authority: {
1031
- integrity: string;
1032
- layer_ref: string;
1033
- bundle_digest: string;
1034
- config_fingerprint: string;
1035
- customization_fingerprint: string | null;
1036
- };
1037
- answer_indexer_id: string;
1038
- answer_provider_composition_fingerprint: string;
1039
- eligible_question_keys: string[];
1040
- }>;
1041
- export type IndexerMaterialAnswerRunRequest = z.infer<typeof indexerMaterialAnswerRunRequestSchema>;
1042
- export declare function indexerMaterialAnswerRunRequestDigest(value: Omit<IndexerMaterialAnswerRunRequest, "execution_request_digest">): string;
1043
- export declare function buildIndexerMaterialAnswerRunRequest(input: {
1044
- workset: IndexerMaterialAnswerRunRequest["workset"];
1045
- answer_indexer_id: string;
1046
- composition_input: IndexerMaterialAnswerRunRequest["composition_input"];
1047
- final_authority: IndexerMaterialAnswerRunRequest["final_authority"];
1048
- answer_provider_composition_fingerprint: string;
1049
- }): IndexerMaterialAnswerRunRequest;
1050
- export declare function validateIndexerMaterialAnswerRunRequest(value: unknown): IndexerMaterialAnswerRunRequest;
1051
- export declare const indexerMaterialAnswerRunResultSchema: z.ZodObject<{
1052
- protocol: z.ZodLiteral<"context.indexer.run-result/v1">;
1053
- operation: z.ZodLiteral<"material-answer">;
1054
- consumed_input_view_digest: z.ZodString;
1055
- result: z.ZodObject<{
1056
- protocol: z.ZodLiteral<"context.indexer.material-answer-result/v1">;
1057
- workset_digest: z.ZodString;
1058
- execution_request_digest: z.ZodString;
1059
- answer_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1060
- answer_provider_composition_fingerprint: z.ZodString;
1061
- bindings: z.ZodArray<z.ZodObject<{
1062
- workset_digest: z.ZodString;
1063
- question_key: z.ZodString;
1064
- question_revision_digest: z.ZodString;
1065
- evidence_claims: z.ZodArray<z.ZodObject<{
1066
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1067
- source_ref: z.ZodString;
1068
- source_spans: z.ZodArray<z.ZodEffects<z.ZodObject<{
1069
- unit: z.ZodEnum<["byte", "line"]>;
1070
- start: z.ZodNumber;
1071
- end_exclusive: z.ZodNumber;
1072
- }, "strict", z.ZodTypeAny, {
1073
- unit: "byte" | "line";
1074
- start: number;
1075
- end_exclusive: number;
1076
- }, {
1077
- unit: "byte" | "line";
1078
- start: number;
1079
- end_exclusive: number;
1080
- }>, {
1081
- unit: "byte" | "line";
1082
- start: number;
1083
- end_exclusive: number;
1084
- }, {
1085
- unit: "byte" | "line";
1086
- start: number;
1087
- end_exclusive: number;
1088
- }>, "many">;
1089
- evidence_digest: z.ZodString;
1090
- }, "strict", z.ZodTypeAny, {
1091
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1092
- source_ref: string;
1093
- evidence_digest: string;
1094
- source_spans: {
1095
- unit: "byte" | "line";
1096
- start: number;
1097
- end_exclusive: number;
1098
- }[];
1099
- }, {
1100
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1101
- source_ref: string;
1102
- evidence_digest: string;
1103
- source_spans: {
1104
- unit: "byte" | "line";
1105
- start: number;
1106
- end_exclusive: number;
1107
- }[];
1108
- }>, "many">;
1109
- }, "strict", z.ZodTypeAny, {
1110
- workset_digest: string;
1111
- question_key: string;
1112
- question_revision_digest: string;
1113
- evidence_claims: {
1114
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1115
- source_ref: string;
1116
- evidence_digest: string;
1117
- source_spans: {
1118
- unit: "byte" | "line";
1119
- start: number;
1120
- end_exclusive: number;
1121
- }[];
1122
- }[];
1123
- }, {
1124
- workset_digest: string;
1125
- question_key: string;
1126
- question_revision_digest: string;
1127
- evidence_claims: {
1128
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1129
- source_ref: string;
1130
- evidence_digest: string;
1131
- source_spans: {
1132
- unit: "byte" | "line";
1133
- start: number;
1134
- end_exclusive: number;
1135
- }[];
1136
- }[];
1137
- }>, "many">;
1138
- result_digest: z.ZodString;
1139
- }, "strict", z.ZodTypeAny, {
1140
- protocol: "context.indexer.material-answer-result/v1";
1141
- workset_digest: string;
1142
- execution_request_digest: string;
1143
- result_digest: string;
1144
- answer_indexer_id: string;
1145
- answer_provider_composition_fingerprint: string;
1146
- bindings: {
1147
- workset_digest: string;
1148
- question_key: string;
1149
- question_revision_digest: string;
1150
- evidence_claims: {
1151
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1152
- source_ref: string;
1153
- evidence_digest: string;
1154
- source_spans: {
1155
- unit: "byte" | "line";
1156
- start: number;
1157
- end_exclusive: number;
1158
- }[];
1159
- }[];
1160
- }[];
1161
- }, {
1162
- protocol: "context.indexer.material-answer-result/v1";
1163
- workset_digest: string;
1164
- execution_request_digest: string;
1165
- result_digest: string;
1166
- answer_indexer_id: string;
1167
- answer_provider_composition_fingerprint: string;
1168
- bindings: {
1169
- workset_digest: string;
1170
- question_key: string;
1171
- question_revision_digest: string;
1172
- evidence_claims: {
1173
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1174
- source_ref: string;
1175
- evidence_digest: string;
1176
- source_spans: {
1177
- unit: "byte" | "line";
1178
- start: number;
1179
- end_exclusive: number;
1180
- }[];
1181
- }[];
1182
- }[];
1183
- }>;
1184
- }, "strict", z.ZodTypeAny, {
1185
- operation: "material-answer";
1186
- protocol: "context.indexer.run-result/v1";
1187
- result: {
1188
- protocol: "context.indexer.material-answer-result/v1";
1189
- workset_digest: string;
1190
- execution_request_digest: string;
1191
- result_digest: string;
1192
- answer_indexer_id: string;
1193
- answer_provider_composition_fingerprint: string;
1194
- bindings: {
1195
- workset_digest: string;
1196
- question_key: string;
1197
- question_revision_digest: string;
1198
- evidence_claims: {
1199
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1200
- source_ref: string;
1201
- evidence_digest: string;
1202
- source_spans: {
1203
- unit: "byte" | "line";
1204
- start: number;
1205
- end_exclusive: number;
1206
- }[];
1207
- }[];
1208
- }[];
1209
- };
1210
- consumed_input_view_digest: string;
1211
- }, {
1212
- operation: "material-answer";
1213
- protocol: "context.indexer.run-result/v1";
1214
- result: {
1215
- protocol: "context.indexer.material-answer-result/v1";
1216
- workset_digest: string;
1217
- execution_request_digest: string;
1218
- result_digest: string;
1219
- answer_indexer_id: string;
1220
- answer_provider_composition_fingerprint: string;
1221
- bindings: {
1222
- workset_digest: string;
1223
- question_key: string;
1224
- question_revision_digest: string;
1225
- evidence_claims: {
1226
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1227
- source_ref: string;
1228
- evidence_digest: string;
1229
- source_spans: {
1230
- unit: "byte" | "line";
1231
- start: number;
1232
- end_exclusive: number;
1233
- }[];
1234
- }[];
1235
- }[];
1236
- };
1237
- consumed_input_view_digest: string;
1238
- }>;
1239
- export type IndexerMaterialAnswerRunResult = z.infer<typeof indexerMaterialAnswerRunResultSchema>;
1240
- export declare function validateIndexerMaterialAnswerRunResult(input: {
1241
- request: unknown;
1242
- result: unknown;
1243
- current_sources: readonly IndexerCurrentEvidenceSource[];
1244
- resolve_evidence_digest: (input: {
1245
- source: IndexerCurrentEvidenceSource;
1246
- source_spans: readonly IndexerSourceSpanRef[];
1247
- }) => string;
1248
- }): {
1249
- request: IndexerMaterialAnswerRunRequest;
1250
- result: IndexerMaterialAnswerRunResult;
1251
- operation_result: IndexerMaterialAnswerResult;
1252
- candidate_set: IndexerMaterialAnswerCandidateSet;
1253
- };