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