@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,19 +1,17 @@
1
1
  import { z } from "zod";
2
2
  import type { IndexerJson } from "./indexerRegistry.js";
3
- export declare const indexerCanonicalRefSchema: z.ZodString;
4
- export declare const indexerProviderLayerRefSchema: z.ZodEffects<z.ZodString, string, string>;
5
- export declare const indexerComposerRefSchema: z.ZodEffects<z.ZodString, string, string>;
3
+ export { indexerCanonicalRefSchema, indexerComposerRefSchema, indexerProviderLayerRefSchema, } from "./indexerProtocolCommon.js";
6
4
  export declare const indexerEvidenceRefSchema: z.ZodObject<{
7
5
  ref: z.ZodString;
8
6
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
9
7
  source_digest: z.ZodString;
10
8
  }, "strict", z.ZodTypeAny, {
11
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
12
9
  ref: string;
10
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
13
11
  source_digest: string;
14
12
  }, {
15
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
16
13
  ref: string;
14
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
17
15
  source_digest: string;
18
16
  }>;
19
17
  export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<{
@@ -27,64 +25,64 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
27
25
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
28
26
  source_digest: z.ZodString;
29
27
  }, "strict", z.ZodTypeAny, {
30
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
31
28
  ref: string;
29
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
32
30
  source_digest: string;
33
31
  }, {
34
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
35
32
  ref: string;
33
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
36
34
  source_digest: string;
37
35
  }>, "many">, {
38
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
39
36
  ref: string;
37
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
40
38
  source_digest: string;
41
39
  }[], {
42
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
43
40
  ref: string;
41
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
44
42
  source_digest: string;
45
43
  }[]>;
46
44
  }, "strict", z.ZodTypeAny, {
47
45
  value: IndexerJson;
48
- target_ref: string;
49
- fact_id: string;
50
46
  evidence_refs: {
51
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
52
47
  ref: string;
48
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
53
49
  source_digest: string;
54
50
  }[];
55
- }, {
56
- value: IndexerJson;
57
51
  target_ref: string;
58
52
  fact_id: string;
53
+ }, {
54
+ value: IndexerJson;
59
55
  evidence_refs: {
60
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
61
56
  ref: string;
57
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
62
58
  source_digest: string;
63
59
  }[];
60
+ target_ref: string;
61
+ fact_id: string;
64
62
  }>, "many">;
65
63
  }, "strict", z.ZodTypeAny, {
66
64
  protocol: "context.indexer.fragment.fact-enrichment/v1";
67
65
  facts: {
68
66
  value: IndexerJson;
69
- target_ref: string;
70
- fact_id: string;
71
67
  evidence_refs: {
72
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
73
68
  ref: string;
69
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
74
70
  source_digest: string;
75
71
  }[];
72
+ target_ref: string;
73
+ fact_id: string;
76
74
  }[];
77
75
  }, {
78
76
  protocol: "context.indexer.fragment.fact-enrichment/v1";
79
77
  facts: {
80
78
  value: IndexerJson;
81
- target_ref: string;
82
- fact_id: string;
83
79
  evidence_refs: {
84
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
85
80
  ref: string;
81
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
86
82
  source_digest: string;
87
83
  }[];
84
+ target_ref: string;
85
+ fact_id: string;
88
86
  }[];
89
87
  }>, z.ZodObject<{
90
88
  protocol: z.ZodLiteral<"context.indexer.fragment.template-variables/v1">;
@@ -98,67 +96,67 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
98
96
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
99
97
  source_digest: z.ZodString;
100
98
  }, "strict", z.ZodTypeAny, {
101
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
102
99
  ref: string;
100
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
103
101
  source_digest: string;
104
102
  }, {
105
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
106
103
  ref: string;
104
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
107
105
  source_digest: string;
108
106
  }>, "many">, {
109
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
110
107
  ref: string;
108
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
111
109
  source_digest: string;
112
110
  }[], {
113
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
114
111
  ref: string;
112
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
115
113
  source_digest: string;
116
114
  }[]>;
117
115
  }, "strict", z.ZodTypeAny, {
118
116
  value: IndexerJson;
119
- target_ref: string;
120
117
  evidence_refs: {
121
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
122
118
  ref: string;
119
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
123
120
  source_digest: string;
124
121
  }[];
125
122
  template_id: string;
123
+ target_ref: string;
126
124
  variable_id: string;
127
125
  }, {
128
126
  value: IndexerJson;
129
- target_ref: string;
130
127
  evidence_refs: {
131
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
132
128
  ref: string;
129
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
133
130
  source_digest: string;
134
131
  }[];
135
132
  template_id: string;
133
+ target_ref: string;
136
134
  variable_id: string;
137
135
  }>, "many">;
138
136
  }, "strict", z.ZodTypeAny, {
139
137
  protocol: "context.indexer.fragment.template-variables/v1";
140
138
  variables: {
141
139
  value: IndexerJson;
142
- target_ref: string;
143
140
  evidence_refs: {
144
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
145
141
  ref: string;
142
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
146
143
  source_digest: string;
147
144
  }[];
148
145
  template_id: string;
146
+ target_ref: string;
149
147
  variable_id: string;
150
148
  }[];
151
149
  }, {
152
150
  protocol: "context.indexer.fragment.template-variables/v1";
153
151
  variables: {
154
152
  value: IndexerJson;
155
- target_ref: string;
156
153
  evidence_refs: {
157
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
158
154
  ref: string;
155
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
159
156
  source_digest: string;
160
157
  }[];
161
158
  template_id: string;
159
+ target_ref: string;
162
160
  variable_id: string;
163
161
  }[];
164
162
  }>, z.ZodObject<{
@@ -166,85 +164,432 @@ export declare const indexerLayerFragmentPayloadSchema: z.ZodUnion<[z.ZodObject<
166
164
  proposals: z.ZodArray<z.ZodObject<{
167
165
  composer_ref: z.ZodEffects<z.ZodString, string, string>;
168
166
  target_node_ref: z.ZodString;
169
- artifact_kind: z.ZodEffects<z.ZodString, string, string>;
170
- artifact_key: z.ZodEffects<z.ZodString, string, string>;
171
- artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
172
- variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
167
+ artifact: z.ZodDiscriminatedUnion<"representation", [z.ZodObject<{
168
+ representation: z.ZodLiteral<"template">;
169
+ template_id: z.ZodEffects<z.ZodString, string, string>;
170
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
171
+ value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
172
+ fact_refs: z.ZodArray<z.ZodString, "many">;
173
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
174
+ }, "strict", z.ZodTypeAny, {
175
+ value: IndexerJson;
176
+ evidence_refs: string[];
177
+ fact_refs: string[];
178
+ }, {
179
+ value: IndexerJson;
180
+ evidence_refs: string[];
181
+ fact_refs: string[];
182
+ }>>;
183
+ section_projections: z.ZodArray<z.ZodObject<{
184
+ section_key: z.ZodEffects<z.ZodString, string, string>;
185
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
186
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
187
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
188
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ section_key: string;
191
+ owner_indexer_id: string;
192
+ document_kind: string;
193
+ reader_goal: string;
194
+ artifact_kind: string;
195
+ }, {
196
+ section_key: string;
197
+ owner_indexer_id: string;
198
+ document_kind: string;
199
+ reader_goal: string;
200
+ artifact_kind: string;
201
+ }>, "many">;
202
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
203
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
204
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
205
+ }, "strict", z.ZodTypeAny, {
206
+ artifact_kind: string;
207
+ representation: "template";
208
+ template_id: string;
209
+ variables: Record<string, {
210
+ value: IndexerJson;
211
+ evidence_refs: string[];
212
+ fact_refs: string[];
213
+ }>;
214
+ section_projections: {
215
+ section_key: string;
216
+ owner_indexer_id: string;
217
+ document_kind: string;
218
+ reader_goal: string;
219
+ artifact_kind: string;
220
+ }[];
221
+ artifact_id: string;
222
+ artifact_policy_variant: string;
223
+ }, {
224
+ artifact_kind: string;
225
+ representation: "template";
226
+ template_id: string;
227
+ variables: Record<string, {
228
+ value: IndexerJson;
229
+ evidence_refs: string[];
230
+ fact_refs: string[];
231
+ }>;
232
+ section_projections: {
233
+ section_key: string;
234
+ owner_indexer_id: string;
235
+ document_kind: string;
236
+ reader_goal: string;
237
+ artifact_kind: string;
238
+ }[];
239
+ artifact_id: string;
240
+ artifact_policy_variant: string;
241
+ }>, z.ZodObject<{
242
+ representation: z.ZodLiteral<"sections">;
243
+ sections: z.ZodArray<z.ZodObject<{
244
+ section_key: z.ZodEffects<z.ZodString, string, string>;
245
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
246
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
247
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
248
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
249
+ } & {
250
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
251
+ block_id: z.ZodEffects<z.ZodString, string, string>;
252
+ layer: z.ZodLiteral<"deterministic-block">;
253
+ renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
254
+ fact_refs: z.ZodArray<z.ZodString, "many">;
255
+ }, "strict", z.ZodTypeAny, {
256
+ block_id: string;
257
+ layer: "deterministic-block";
258
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
259
+ fact_refs: string[];
260
+ }, {
261
+ block_id: string;
262
+ layer: "deterministic-block";
263
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
264
+ fact_refs: string[];
265
+ }>, z.ZodObject<{
266
+ block_id: z.ZodEffects<z.ZodString, string, string>;
267
+ layer: z.ZodLiteral<"semantic-prose">;
268
+ markdown: z.ZodString;
269
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
270
+ }, "strict", z.ZodTypeAny, {
271
+ evidence_refs: string[];
272
+ block_id: string;
273
+ layer: "semantic-prose";
274
+ markdown: string;
275
+ }, {
276
+ evidence_refs: string[];
277
+ block_id: string;
278
+ layer: "semantic-prose";
279
+ markdown: string;
280
+ }>]>, "many">;
281
+ }, "strict", z.ZodTypeAny, {
282
+ section_key: string;
283
+ owner_indexer_id: string;
284
+ document_kind: string;
285
+ reader_goal: string;
286
+ artifact_kind: string;
287
+ blocks: ({
288
+ block_id: string;
289
+ layer: "deterministic-block";
290
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
291
+ fact_refs: string[];
292
+ } | {
293
+ evidence_refs: string[];
294
+ block_id: string;
295
+ layer: "semantic-prose";
296
+ markdown: string;
297
+ })[];
298
+ }, {
299
+ section_key: string;
300
+ owner_indexer_id: string;
301
+ document_kind: string;
302
+ reader_goal: string;
303
+ artifact_kind: string;
304
+ blocks: ({
305
+ block_id: string;
306
+ layer: "deterministic-block";
307
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
308
+ fact_refs: string[];
309
+ } | {
310
+ evidence_refs: string[];
311
+ block_id: string;
312
+ layer: "semantic-prose";
313
+ markdown: string;
314
+ })[];
315
+ }>, "many">;
316
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
317
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
318
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
319
+ }, "strict", z.ZodTypeAny, {
320
+ artifact_kind: string;
321
+ representation: "sections";
322
+ artifact_id: string;
323
+ artifact_policy_variant: string;
324
+ sections: {
325
+ section_key: string;
326
+ owner_indexer_id: string;
327
+ document_kind: string;
328
+ reader_goal: string;
329
+ artifact_kind: string;
330
+ blocks: ({
331
+ block_id: string;
332
+ layer: "deterministic-block";
333
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
334
+ fact_refs: string[];
335
+ } | {
336
+ evidence_refs: string[];
337
+ block_id: string;
338
+ layer: "semantic-prose";
339
+ markdown: string;
340
+ })[];
341
+ }[];
342
+ }, {
343
+ artifact_kind: string;
344
+ representation: "sections";
345
+ artifact_id: string;
346
+ artifact_policy_variant: string;
347
+ sections: {
348
+ section_key: string;
349
+ owner_indexer_id: string;
350
+ document_kind: string;
351
+ reader_goal: string;
352
+ artifact_kind: string;
353
+ blocks: ({
354
+ block_id: string;
355
+ layer: "deterministic-block";
356
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
357
+ fact_refs: string[];
358
+ } | {
359
+ evidence_refs: string[];
360
+ block_id: string;
361
+ layer: "semantic-prose";
362
+ markdown: string;
363
+ })[];
364
+ }[];
365
+ }>]>;
173
366
  evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
174
367
  ref: z.ZodString;
175
368
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
176
369
  source_digest: z.ZodString;
177
370
  }, "strict", z.ZodTypeAny, {
178
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
179
371
  ref: string;
372
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
180
373
  source_digest: string;
181
374
  }, {
182
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
183
375
  ref: string;
376
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
184
377
  source_digest: string;
185
378
  }>, "many">, {
186
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
187
379
  ref: string;
380
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
188
381
  source_digest: string;
189
382
  }[], {
190
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
191
383
  ref: string;
384
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
192
385
  source_digest: string;
193
386
  }[]>;
194
387
  }, "strict", z.ZodTypeAny, {
195
388
  evidence_refs: {
196
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
197
389
  ref: string;
390
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
198
391
  source_digest: string;
199
392
  }[];
200
393
  composer_ref: string;
201
394
  target_node_ref: string;
202
- artifact_kind: string;
203
- artifact_key: string;
204
- artifact_policy_variant: string;
205
- variables: Record<string, IndexerJson>;
395
+ artifact: {
396
+ artifact_kind: string;
397
+ representation: "template";
398
+ template_id: string;
399
+ variables: Record<string, {
400
+ value: IndexerJson;
401
+ evidence_refs: string[];
402
+ fact_refs: string[];
403
+ }>;
404
+ section_projections: {
405
+ section_key: string;
406
+ owner_indexer_id: string;
407
+ document_kind: string;
408
+ reader_goal: string;
409
+ artifact_kind: string;
410
+ }[];
411
+ artifact_id: string;
412
+ artifact_policy_variant: string;
413
+ } | {
414
+ artifact_kind: string;
415
+ representation: "sections";
416
+ artifact_id: string;
417
+ artifact_policy_variant: string;
418
+ sections: {
419
+ section_key: string;
420
+ owner_indexer_id: string;
421
+ document_kind: string;
422
+ reader_goal: string;
423
+ artifact_kind: string;
424
+ blocks: ({
425
+ block_id: string;
426
+ layer: "deterministic-block";
427
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
428
+ fact_refs: string[];
429
+ } | {
430
+ evidence_refs: string[];
431
+ block_id: string;
432
+ layer: "semantic-prose";
433
+ markdown: string;
434
+ })[];
435
+ }[];
436
+ };
206
437
  }, {
207
438
  evidence_refs: {
208
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
209
439
  ref: string;
440
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
210
441
  source_digest: string;
211
442
  }[];
212
443
  composer_ref: string;
213
444
  target_node_ref: string;
214
- artifact_kind: string;
215
- artifact_key: string;
216
- artifact_policy_variant: string;
217
- variables: Record<string, IndexerJson>;
445
+ artifact: {
446
+ artifact_kind: string;
447
+ representation: "template";
448
+ template_id: string;
449
+ variables: Record<string, {
450
+ value: IndexerJson;
451
+ evidence_refs: string[];
452
+ fact_refs: string[];
453
+ }>;
454
+ section_projections: {
455
+ section_key: string;
456
+ owner_indexer_id: string;
457
+ document_kind: string;
458
+ reader_goal: string;
459
+ artifact_kind: string;
460
+ }[];
461
+ artifact_id: string;
462
+ artifact_policy_variant: string;
463
+ } | {
464
+ artifact_kind: string;
465
+ representation: "sections";
466
+ artifact_id: string;
467
+ artifact_policy_variant: string;
468
+ sections: {
469
+ section_key: string;
470
+ owner_indexer_id: string;
471
+ document_kind: string;
472
+ reader_goal: string;
473
+ artifact_kind: string;
474
+ blocks: ({
475
+ block_id: string;
476
+ layer: "deterministic-block";
477
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
478
+ fact_refs: string[];
479
+ } | {
480
+ evidence_refs: string[];
481
+ block_id: string;
482
+ layer: "semantic-prose";
483
+ markdown: string;
484
+ })[];
485
+ }[];
486
+ };
218
487
  }>, "many">;
219
488
  }, "strict", z.ZodTypeAny, {
220
489
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
221
490
  proposals: {
222
491
  evidence_refs: {
223
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
224
492
  ref: string;
493
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
225
494
  source_digest: string;
226
495
  }[];
227
496
  composer_ref: string;
228
497
  target_node_ref: string;
229
- artifact_kind: string;
230
- artifact_key: string;
231
- artifact_policy_variant: string;
232
- variables: Record<string, IndexerJson>;
498
+ artifact: {
499
+ artifact_kind: string;
500
+ representation: "template";
501
+ template_id: string;
502
+ variables: Record<string, {
503
+ value: IndexerJson;
504
+ evidence_refs: string[];
505
+ fact_refs: string[];
506
+ }>;
507
+ section_projections: {
508
+ section_key: string;
509
+ owner_indexer_id: string;
510
+ document_kind: string;
511
+ reader_goal: string;
512
+ artifact_kind: string;
513
+ }[];
514
+ artifact_id: string;
515
+ artifact_policy_variant: string;
516
+ } | {
517
+ artifact_kind: string;
518
+ representation: "sections";
519
+ artifact_id: string;
520
+ artifact_policy_variant: string;
521
+ sections: {
522
+ section_key: string;
523
+ owner_indexer_id: string;
524
+ document_kind: string;
525
+ reader_goal: string;
526
+ artifact_kind: string;
527
+ blocks: ({
528
+ block_id: string;
529
+ layer: "deterministic-block";
530
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
531
+ fact_refs: string[];
532
+ } | {
533
+ evidence_refs: string[];
534
+ block_id: string;
535
+ layer: "semantic-prose";
536
+ markdown: string;
537
+ })[];
538
+ }[];
539
+ };
233
540
  }[];
234
541
  }, {
235
542
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
236
543
  proposals: {
237
544
  evidence_refs: {
238
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
239
545
  ref: string;
546
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
240
547
  source_digest: string;
241
548
  }[];
242
549
  composer_ref: string;
243
550
  target_node_ref: string;
244
- artifact_kind: string;
245
- artifact_key: string;
246
- artifact_policy_variant: string;
247
- variables: Record<string, IndexerJson>;
551
+ artifact: {
552
+ artifact_kind: string;
553
+ representation: "template";
554
+ template_id: string;
555
+ variables: Record<string, {
556
+ value: IndexerJson;
557
+ evidence_refs: string[];
558
+ fact_refs: string[];
559
+ }>;
560
+ section_projections: {
561
+ section_key: string;
562
+ owner_indexer_id: string;
563
+ document_kind: string;
564
+ reader_goal: string;
565
+ artifact_kind: string;
566
+ }[];
567
+ artifact_id: string;
568
+ artifact_policy_variant: string;
569
+ } | {
570
+ artifact_kind: string;
571
+ representation: "sections";
572
+ artifact_id: string;
573
+ artifact_policy_variant: string;
574
+ sections: {
575
+ section_key: string;
576
+ owner_indexer_id: string;
577
+ document_kind: string;
578
+ reader_goal: string;
579
+ artifact_kind: string;
580
+ blocks: ({
581
+ block_id: string;
582
+ layer: "deterministic-block";
583
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
584
+ fact_refs: string[];
585
+ } | {
586
+ evidence_refs: string[];
587
+ block_id: string;
588
+ layer: "semantic-prose";
589
+ markdown: string;
590
+ })[];
591
+ }[];
592
+ };
248
593
  }[];
249
594
  }>]>;
250
595
  export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
@@ -267,64 +612,64 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
267
612
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
268
613
  source_digest: z.ZodString;
269
614
  }, "strict", z.ZodTypeAny, {
270
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
271
615
  ref: string;
616
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
272
617
  source_digest: string;
273
618
  }, {
274
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
275
619
  ref: string;
620
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
276
621
  source_digest: string;
277
622
  }>, "many">, {
278
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
279
623
  ref: string;
624
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
280
625
  source_digest: string;
281
626
  }[], {
282
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
283
627
  ref: string;
628
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
284
629
  source_digest: string;
285
630
  }[]>;
286
631
  }, "strict", z.ZodTypeAny, {
287
632
  value: IndexerJson;
288
- target_ref: string;
289
- fact_id: string;
290
633
  evidence_refs: {
291
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
292
634
  ref: string;
635
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
293
636
  source_digest: string;
294
637
  }[];
295
- }, {
296
- value: IndexerJson;
297
638
  target_ref: string;
298
639
  fact_id: string;
640
+ }, {
641
+ value: IndexerJson;
299
642
  evidence_refs: {
300
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
301
643
  ref: string;
644
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
302
645
  source_digest: string;
303
646
  }[];
647
+ target_ref: string;
648
+ fact_id: string;
304
649
  }>, "many">;
305
650
  }, "strict", z.ZodTypeAny, {
306
651
  protocol: "context.indexer.fragment.fact-enrichment/v1";
307
652
  facts: {
308
653
  value: IndexerJson;
309
- target_ref: string;
310
- fact_id: string;
311
654
  evidence_refs: {
312
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
313
655
  ref: string;
656
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
314
657
  source_digest: string;
315
658
  }[];
659
+ target_ref: string;
660
+ fact_id: string;
316
661
  }[];
317
662
  }, {
318
663
  protocol: "context.indexer.fragment.fact-enrichment/v1";
319
664
  facts: {
320
665
  value: IndexerJson;
321
- target_ref: string;
322
- fact_id: string;
323
666
  evidence_refs: {
324
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
325
667
  ref: string;
668
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
326
669
  source_digest: string;
327
670
  }[];
671
+ target_ref: string;
672
+ fact_id: string;
328
673
  }[];
329
674
  }>, z.ZodObject<{
330
675
  protocol: z.ZodLiteral<"context.indexer.fragment.template-variables/v1">;
@@ -338,67 +683,67 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
338
683
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
339
684
  source_digest: z.ZodString;
340
685
  }, "strict", z.ZodTypeAny, {
341
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
342
686
  ref: string;
687
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
343
688
  source_digest: string;
344
689
  }, {
345
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
346
690
  ref: string;
691
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
347
692
  source_digest: string;
348
693
  }>, "many">, {
349
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
350
694
  ref: string;
695
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
351
696
  source_digest: string;
352
697
  }[], {
353
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
354
698
  ref: string;
699
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
355
700
  source_digest: string;
356
701
  }[]>;
357
702
  }, "strict", z.ZodTypeAny, {
358
703
  value: IndexerJson;
359
- target_ref: string;
360
704
  evidence_refs: {
361
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
362
705
  ref: string;
706
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
363
707
  source_digest: string;
364
708
  }[];
365
709
  template_id: string;
710
+ target_ref: string;
366
711
  variable_id: string;
367
712
  }, {
368
713
  value: IndexerJson;
369
- target_ref: string;
370
714
  evidence_refs: {
371
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
372
715
  ref: string;
716
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
373
717
  source_digest: string;
374
718
  }[];
375
719
  template_id: string;
720
+ target_ref: string;
376
721
  variable_id: string;
377
722
  }>, "many">;
378
723
  }, "strict", z.ZodTypeAny, {
379
724
  protocol: "context.indexer.fragment.template-variables/v1";
380
725
  variables: {
381
726
  value: IndexerJson;
382
- target_ref: string;
383
727
  evidence_refs: {
384
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
385
728
  ref: string;
729
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
386
730
  source_digest: string;
387
731
  }[];
388
732
  template_id: string;
733
+ target_ref: string;
389
734
  variable_id: string;
390
735
  }[];
391
736
  }, {
392
737
  protocol: "context.indexer.fragment.template-variables/v1";
393
738
  variables: {
394
739
  value: IndexerJson;
395
- target_ref: string;
396
740
  evidence_refs: {
397
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
398
741
  ref: string;
742
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
399
743
  source_digest: string;
400
744
  }[];
401
745
  template_id: string;
746
+ target_ref: string;
402
747
  variable_id: string;
403
748
  }[];
404
749
  }>, z.ZodObject<{
@@ -406,290 +751,789 @@ export declare const indexerLayerFragmentSchema: z.ZodEffects<z.ZodObject<{
406
751
  proposals: z.ZodArray<z.ZodObject<{
407
752
  composer_ref: z.ZodEffects<z.ZodString, string, string>;
408
753
  target_node_ref: z.ZodString;
409
- artifact_kind: z.ZodEffects<z.ZodString, string, string>;
410
- artifact_key: z.ZodEffects<z.ZodString, string, string>;
411
- artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
412
- variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
754
+ artifact: z.ZodDiscriminatedUnion<"representation", [z.ZodObject<{
755
+ representation: z.ZodLiteral<"template">;
756
+ template_id: z.ZodEffects<z.ZodString, string, string>;
757
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
758
+ value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
759
+ fact_refs: z.ZodArray<z.ZodString, "many">;
760
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
761
+ }, "strict", z.ZodTypeAny, {
762
+ value: IndexerJson;
763
+ evidence_refs: string[];
764
+ fact_refs: string[];
765
+ }, {
766
+ value: IndexerJson;
767
+ evidence_refs: string[];
768
+ fact_refs: string[];
769
+ }>>;
770
+ section_projections: z.ZodArray<z.ZodObject<{
771
+ section_key: z.ZodEffects<z.ZodString, string, string>;
772
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
773
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
774
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
775
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
776
+ }, "strict", z.ZodTypeAny, {
777
+ section_key: string;
778
+ owner_indexer_id: string;
779
+ document_kind: string;
780
+ reader_goal: string;
781
+ artifact_kind: string;
782
+ }, {
783
+ section_key: string;
784
+ owner_indexer_id: string;
785
+ document_kind: string;
786
+ reader_goal: string;
787
+ artifact_kind: string;
788
+ }>, "many">;
789
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
790
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
791
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
792
+ }, "strict", z.ZodTypeAny, {
793
+ artifact_kind: string;
794
+ representation: "template";
795
+ template_id: string;
796
+ variables: Record<string, {
797
+ value: 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: "template";
813
+ template_id: string;
814
+ variables: Record<string, {
815
+ value: IndexerJson;
816
+ evidence_refs: string[];
817
+ fact_refs: string[];
818
+ }>;
819
+ section_projections: {
820
+ section_key: string;
821
+ owner_indexer_id: string;
822
+ document_kind: string;
823
+ reader_goal: string;
824
+ artifact_kind: string;
825
+ }[];
826
+ artifact_id: string;
827
+ artifact_policy_variant: string;
828
+ }>, z.ZodObject<{
829
+ representation: z.ZodLiteral<"sections">;
830
+ sections: z.ZodArray<z.ZodObject<{
831
+ section_key: z.ZodEffects<z.ZodString, string, string>;
832
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
833
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
834
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
835
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
836
+ } & {
837
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
838
+ block_id: z.ZodEffects<z.ZodString, string, string>;
839
+ layer: z.ZodLiteral<"deterministic-block">;
840
+ renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
841
+ fact_refs: z.ZodArray<z.ZodString, "many">;
842
+ }, "strict", z.ZodTypeAny, {
843
+ block_id: string;
844
+ layer: "deterministic-block";
845
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
846
+ fact_refs: string[];
847
+ }, {
848
+ block_id: string;
849
+ layer: "deterministic-block";
850
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
851
+ fact_refs: string[];
852
+ }>, z.ZodObject<{
853
+ block_id: z.ZodEffects<z.ZodString, string, string>;
854
+ layer: z.ZodLiteral<"semantic-prose">;
855
+ markdown: z.ZodString;
856
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
857
+ }, "strict", z.ZodTypeAny, {
858
+ evidence_refs: string[];
859
+ block_id: string;
860
+ layer: "semantic-prose";
861
+ markdown: string;
862
+ }, {
863
+ evidence_refs: string[];
864
+ block_id: string;
865
+ layer: "semantic-prose";
866
+ markdown: string;
867
+ }>]>, "many">;
868
+ }, "strict", z.ZodTypeAny, {
869
+ section_key: string;
870
+ owner_indexer_id: string;
871
+ document_kind: string;
872
+ reader_goal: string;
873
+ artifact_kind: string;
874
+ blocks: ({
875
+ block_id: string;
876
+ layer: "deterministic-block";
877
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
878
+ fact_refs: string[];
879
+ } | {
880
+ evidence_refs: string[];
881
+ block_id: string;
882
+ layer: "semantic-prose";
883
+ markdown: string;
884
+ })[];
885
+ }, {
886
+ section_key: string;
887
+ owner_indexer_id: string;
888
+ document_kind: string;
889
+ reader_goal: string;
890
+ artifact_kind: string;
891
+ blocks: ({
892
+ block_id: string;
893
+ layer: "deterministic-block";
894
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
895
+ fact_refs: string[];
896
+ } | {
897
+ evidence_refs: string[];
898
+ block_id: string;
899
+ layer: "semantic-prose";
900
+ markdown: string;
901
+ })[];
902
+ }>, "many">;
903
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
904
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
905
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
906
+ }, "strict", z.ZodTypeAny, {
907
+ artifact_kind: string;
908
+ representation: "sections";
909
+ artifact_id: string;
910
+ artifact_policy_variant: string;
911
+ sections: {
912
+ section_key: string;
913
+ owner_indexer_id: string;
914
+ document_kind: string;
915
+ reader_goal: string;
916
+ artifact_kind: string;
917
+ blocks: ({
918
+ block_id: string;
919
+ layer: "deterministic-block";
920
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
921
+ fact_refs: string[];
922
+ } | {
923
+ evidence_refs: string[];
924
+ block_id: string;
925
+ layer: "semantic-prose";
926
+ markdown: string;
927
+ })[];
928
+ }[];
929
+ }, {
930
+ artifact_kind: string;
931
+ representation: "sections";
932
+ artifact_id: string;
933
+ artifact_policy_variant: string;
934
+ sections: {
935
+ section_key: string;
936
+ owner_indexer_id: string;
937
+ document_kind: string;
938
+ reader_goal: string;
939
+ artifact_kind: string;
940
+ blocks: ({
941
+ block_id: string;
942
+ layer: "deterministic-block";
943
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
944
+ fact_refs: string[];
945
+ } | {
946
+ evidence_refs: string[];
947
+ block_id: string;
948
+ layer: "semantic-prose";
949
+ markdown: string;
950
+ })[];
951
+ }[];
952
+ }>]>;
413
953
  evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
414
954
  ref: z.ZodString;
415
955
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
416
956
  source_digest: z.ZodString;
417
957
  }, "strict", z.ZodTypeAny, {
418
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
419
958
  ref: string;
959
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
420
960
  source_digest: string;
421
961
  }, {
422
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
423
962
  ref: string;
963
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
424
964
  source_digest: string;
425
965
  }>, "many">, {
426
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
427
966
  ref: string;
967
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
428
968
  source_digest: string;
429
969
  }[], {
430
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
431
970
  ref: string;
971
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
432
972
  source_digest: string;
433
973
  }[]>;
434
974
  }, "strict", z.ZodTypeAny, {
435
975
  evidence_refs: {
436
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
437
976
  ref: string;
977
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
438
978
  source_digest: string;
439
979
  }[];
440
980
  composer_ref: string;
441
981
  target_node_ref: string;
442
- artifact_kind: string;
443
- artifact_key: string;
444
- artifact_policy_variant: string;
445
- variables: Record<string, IndexerJson>;
982
+ artifact: {
983
+ artifact_kind: string;
984
+ representation: "template";
985
+ template_id: string;
986
+ variables: Record<string, {
987
+ value: IndexerJson;
988
+ evidence_refs: string[];
989
+ fact_refs: string[];
990
+ }>;
991
+ section_projections: {
992
+ section_key: string;
993
+ owner_indexer_id: string;
994
+ document_kind: string;
995
+ reader_goal: string;
996
+ artifact_kind: string;
997
+ }[];
998
+ artifact_id: string;
999
+ artifact_policy_variant: string;
1000
+ } | {
1001
+ artifact_kind: string;
1002
+ representation: "sections";
1003
+ artifact_id: string;
1004
+ artifact_policy_variant: string;
1005
+ sections: {
1006
+ section_key: string;
1007
+ owner_indexer_id: string;
1008
+ document_kind: string;
1009
+ reader_goal: string;
1010
+ artifact_kind: string;
1011
+ blocks: ({
1012
+ block_id: string;
1013
+ layer: "deterministic-block";
1014
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1015
+ fact_refs: string[];
1016
+ } | {
1017
+ evidence_refs: string[];
1018
+ block_id: string;
1019
+ layer: "semantic-prose";
1020
+ markdown: string;
1021
+ })[];
1022
+ }[];
1023
+ };
446
1024
  }, {
447
1025
  evidence_refs: {
448
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
449
1026
  ref: string;
1027
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
450
1028
  source_digest: string;
451
1029
  }[];
452
1030
  composer_ref: string;
453
1031
  target_node_ref: string;
454
- artifact_kind: string;
455
- artifact_key: string;
456
- artifact_policy_variant: string;
457
- variables: Record<string, IndexerJson>;
1032
+ artifact: {
1033
+ artifact_kind: string;
1034
+ representation: "template";
1035
+ template_id: string;
1036
+ variables: Record<string, {
1037
+ value: IndexerJson;
1038
+ evidence_refs: string[];
1039
+ fact_refs: string[];
1040
+ }>;
1041
+ section_projections: {
1042
+ section_key: string;
1043
+ owner_indexer_id: string;
1044
+ document_kind: string;
1045
+ reader_goal: string;
1046
+ artifact_kind: string;
1047
+ }[];
1048
+ artifact_id: string;
1049
+ artifact_policy_variant: string;
1050
+ } | {
1051
+ artifact_kind: string;
1052
+ representation: "sections";
1053
+ artifact_id: string;
1054
+ artifact_policy_variant: string;
1055
+ sections: {
1056
+ section_key: string;
1057
+ owner_indexer_id: string;
1058
+ document_kind: string;
1059
+ reader_goal: string;
1060
+ artifact_kind: string;
1061
+ blocks: ({
1062
+ block_id: string;
1063
+ layer: "deterministic-block";
1064
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1065
+ fact_refs: string[];
1066
+ } | {
1067
+ evidence_refs: string[];
1068
+ block_id: string;
1069
+ layer: "semantic-prose";
1070
+ markdown: string;
1071
+ })[];
1072
+ }[];
1073
+ };
458
1074
  }>, "many">;
459
1075
  }, "strict", z.ZodTypeAny, {
460
1076
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
461
1077
  proposals: {
462
1078
  evidence_refs: {
463
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
464
1079
  ref: string;
1080
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
465
1081
  source_digest: string;
466
1082
  }[];
467
1083
  composer_ref: string;
468
1084
  target_node_ref: string;
469
- artifact_kind: string;
470
- artifact_key: string;
471
- artifact_policy_variant: string;
472
- variables: Record<string, IndexerJson>;
1085
+ artifact: {
1086
+ artifact_kind: string;
1087
+ representation: "template";
1088
+ template_id: string;
1089
+ variables: Record<string, {
1090
+ value: IndexerJson;
1091
+ evidence_refs: string[];
1092
+ fact_refs: string[];
1093
+ }>;
1094
+ section_projections: {
1095
+ section_key: string;
1096
+ owner_indexer_id: string;
1097
+ document_kind: string;
1098
+ reader_goal: string;
1099
+ artifact_kind: string;
1100
+ }[];
1101
+ artifact_id: string;
1102
+ artifact_policy_variant: string;
1103
+ } | {
1104
+ artifact_kind: string;
1105
+ representation: "sections";
1106
+ artifact_id: string;
1107
+ artifact_policy_variant: string;
1108
+ sections: {
1109
+ section_key: string;
1110
+ owner_indexer_id: string;
1111
+ document_kind: string;
1112
+ reader_goal: string;
1113
+ artifact_kind: string;
1114
+ blocks: ({
1115
+ block_id: string;
1116
+ layer: "deterministic-block";
1117
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1118
+ fact_refs: string[];
1119
+ } | {
1120
+ evidence_refs: string[];
1121
+ block_id: string;
1122
+ layer: "semantic-prose";
1123
+ markdown: string;
1124
+ })[];
1125
+ }[];
1126
+ };
473
1127
  }[];
474
1128
  }, {
475
1129
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
476
1130
  proposals: {
477
1131
  evidence_refs: {
478
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
479
1132
  ref: string;
1133
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
480
1134
  source_digest: string;
481
1135
  }[];
482
1136
  composer_ref: string;
483
1137
  target_node_ref: string;
484
- artifact_kind: string;
485
- artifact_key: string;
486
- artifact_policy_variant: string;
487
- variables: Record<string, IndexerJson>;
1138
+ artifact: {
1139
+ artifact_kind: string;
1140
+ representation: "template";
1141
+ template_id: string;
1142
+ variables: Record<string, {
1143
+ value: IndexerJson;
1144
+ evidence_refs: string[];
1145
+ fact_refs: string[];
1146
+ }>;
1147
+ section_projections: {
1148
+ section_key: string;
1149
+ owner_indexer_id: string;
1150
+ document_kind: string;
1151
+ reader_goal: string;
1152
+ artifact_kind: string;
1153
+ }[];
1154
+ artifact_id: string;
1155
+ artifact_policy_variant: string;
1156
+ } | {
1157
+ artifact_kind: string;
1158
+ representation: "sections";
1159
+ artifact_id: string;
1160
+ artifact_policy_variant: string;
1161
+ sections: {
1162
+ section_key: string;
1163
+ owner_indexer_id: string;
1164
+ document_kind: string;
1165
+ reader_goal: string;
1166
+ artifact_kind: string;
1167
+ blocks: ({
1168
+ block_id: string;
1169
+ layer: "deterministic-block";
1170
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1171
+ fact_refs: string[];
1172
+ } | {
1173
+ evidence_refs: string[];
1174
+ block_id: string;
1175
+ layer: "semantic-prose";
1176
+ markdown: string;
1177
+ })[];
1178
+ }[];
1179
+ };
488
1180
  }[];
489
1181
  }>]>;
490
1182
  fragment_digest: z.ZodString;
491
1183
  }, "strict", z.ZodTypeAny, {
492
1184
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
493
1185
  protocol: "context.indexer.layer-fragment/v1";
494
- workset_digest: string;
495
- layer_ref: string;
496
- layer_integrity: string;
497
- phase: "pre-authority" | "post-author";
498
- target_refs: string[];
499
1186
  payload: {
500
1187
  protocol: "context.indexer.fragment.fact-enrichment/v1";
501
1188
  facts: {
502
1189
  value: IndexerJson;
503
- target_ref: string;
504
- fact_id: string;
505
1190
  evidence_refs: {
506
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
507
1191
  ref: string;
1192
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
508
1193
  source_digest: string;
509
1194
  }[];
1195
+ target_ref: string;
1196
+ fact_id: string;
510
1197
  }[];
511
1198
  } | {
512
1199
  protocol: "context.indexer.fragment.template-variables/v1";
513
1200
  variables: {
514
1201
  value: IndexerJson;
515
- target_ref: string;
516
1202
  evidence_refs: {
517
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
518
1203
  ref: string;
1204
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
519
1205
  source_digest: string;
520
1206
  }[];
521
1207
  template_id: string;
1208
+ target_ref: string;
522
1209
  variable_id: string;
523
1210
  }[];
524
1211
  } | {
525
1212
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
526
1213
  proposals: {
527
1214
  evidence_refs: {
528
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
529
1215
  ref: string;
1216
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
530
1217
  source_digest: string;
531
1218
  }[];
532
1219
  composer_ref: string;
533
1220
  target_node_ref: string;
534
- artifact_kind: string;
535
- artifact_key: string;
536
- artifact_policy_variant: string;
537
- variables: Record<string, IndexerJson>;
1221
+ artifact: {
1222
+ artifact_kind: string;
1223
+ representation: "template";
1224
+ template_id: string;
1225
+ variables: Record<string, {
1226
+ value: IndexerJson;
1227
+ evidence_refs: string[];
1228
+ fact_refs: string[];
1229
+ }>;
1230
+ section_projections: {
1231
+ section_key: string;
1232
+ owner_indexer_id: string;
1233
+ document_kind: string;
1234
+ reader_goal: string;
1235
+ artifact_kind: string;
1236
+ }[];
1237
+ artifact_id: string;
1238
+ artifact_policy_variant: string;
1239
+ } | {
1240
+ artifact_kind: string;
1241
+ representation: "sections";
1242
+ artifact_id: string;
1243
+ artifact_policy_variant: string;
1244
+ sections: {
1245
+ section_key: string;
1246
+ owner_indexer_id: string;
1247
+ document_kind: string;
1248
+ reader_goal: string;
1249
+ artifact_kind: string;
1250
+ blocks: ({
1251
+ block_id: string;
1252
+ layer: "deterministic-block";
1253
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1254
+ fact_refs: string[];
1255
+ } | {
1256
+ evidence_refs: string[];
1257
+ block_id: string;
1258
+ layer: "semantic-prose";
1259
+ markdown: string;
1260
+ })[];
1261
+ }[];
1262
+ };
538
1263
  }[];
539
1264
  };
540
- fragment_digest: string;
541
- composer_ref?: string | undefined;
542
- }, {
543
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
544
- protocol: "context.indexer.layer-fragment/v1";
545
1265
  workset_digest: string;
546
1266
  layer_ref: string;
547
1267
  layer_integrity: string;
548
1268
  phase: "pre-authority" | "post-author";
549
1269
  target_refs: string[];
1270
+ fragment_digest: string;
1271
+ composer_ref?: string | undefined;
1272
+ }, {
1273
+ kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1274
+ protocol: "context.indexer.layer-fragment/v1";
550
1275
  payload: {
551
1276
  protocol: "context.indexer.fragment.fact-enrichment/v1";
552
1277
  facts: {
553
1278
  value: IndexerJson;
554
- target_ref: string;
555
- fact_id: string;
556
1279
  evidence_refs: {
557
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
558
1280
  ref: string;
1281
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
559
1282
  source_digest: string;
560
1283
  }[];
1284
+ target_ref: string;
1285
+ fact_id: string;
561
1286
  }[];
562
1287
  } | {
563
1288
  protocol: "context.indexer.fragment.template-variables/v1";
564
1289
  variables: {
565
1290
  value: IndexerJson;
566
- target_ref: string;
567
1291
  evidence_refs: {
568
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
569
1292
  ref: string;
1293
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
570
1294
  source_digest: string;
571
1295
  }[];
572
1296
  template_id: string;
1297
+ target_ref: string;
573
1298
  variable_id: string;
574
1299
  }[];
575
1300
  } | {
576
1301
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
577
1302
  proposals: {
578
1303
  evidence_refs: {
579
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
580
1304
  ref: string;
1305
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
581
1306
  source_digest: string;
582
1307
  }[];
583
1308
  composer_ref: string;
584
1309
  target_node_ref: string;
585
- artifact_kind: string;
586
- artifact_key: string;
587
- artifact_policy_variant: string;
588
- variables: Record<string, IndexerJson>;
1310
+ artifact: {
1311
+ artifact_kind: string;
1312
+ representation: "template";
1313
+ template_id: string;
1314
+ variables: Record<string, {
1315
+ value: IndexerJson;
1316
+ evidence_refs: string[];
1317
+ fact_refs: string[];
1318
+ }>;
1319
+ section_projections: {
1320
+ section_key: string;
1321
+ owner_indexer_id: string;
1322
+ document_kind: string;
1323
+ reader_goal: string;
1324
+ artifact_kind: string;
1325
+ }[];
1326
+ artifact_id: string;
1327
+ artifact_policy_variant: string;
1328
+ } | {
1329
+ artifact_kind: string;
1330
+ representation: "sections";
1331
+ artifact_id: string;
1332
+ artifact_policy_variant: string;
1333
+ sections: {
1334
+ section_key: string;
1335
+ owner_indexer_id: string;
1336
+ document_kind: string;
1337
+ reader_goal: string;
1338
+ artifact_kind: string;
1339
+ blocks: ({
1340
+ block_id: string;
1341
+ layer: "deterministic-block";
1342
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1343
+ fact_refs: string[];
1344
+ } | {
1345
+ evidence_refs: string[];
1346
+ block_id: string;
1347
+ layer: "semantic-prose";
1348
+ markdown: string;
1349
+ })[];
1350
+ }[];
1351
+ };
589
1352
  }[];
590
1353
  };
591
- fragment_digest: string;
592
- composer_ref?: string | undefined;
593
- }>, {
594
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
595
- protocol: "context.indexer.layer-fragment/v1";
596
1354
  workset_digest: string;
597
1355
  layer_ref: string;
598
1356
  layer_integrity: string;
599
1357
  phase: "pre-authority" | "post-author";
600
1358
  target_refs: string[];
1359
+ fragment_digest: string;
1360
+ composer_ref?: string | undefined;
1361
+ }>, {
1362
+ kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1363
+ protocol: "context.indexer.layer-fragment/v1";
601
1364
  payload: {
602
1365
  protocol: "context.indexer.fragment.fact-enrichment/v1";
603
1366
  facts: {
604
1367
  value: IndexerJson;
605
- target_ref: string;
606
- fact_id: string;
607
1368
  evidence_refs: {
608
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
609
1369
  ref: string;
1370
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
610
1371
  source_digest: string;
611
1372
  }[];
1373
+ target_ref: string;
1374
+ fact_id: string;
612
1375
  }[];
613
1376
  } | {
614
1377
  protocol: "context.indexer.fragment.template-variables/v1";
615
1378
  variables: {
616
1379
  value: IndexerJson;
617
- target_ref: string;
618
1380
  evidence_refs: {
619
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
620
1381
  ref: string;
1382
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
621
1383
  source_digest: string;
622
1384
  }[];
623
1385
  template_id: string;
1386
+ target_ref: string;
624
1387
  variable_id: string;
625
1388
  }[];
626
1389
  } | {
627
1390
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
628
1391
  proposals: {
629
1392
  evidence_refs: {
630
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
631
1393
  ref: string;
1394
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
632
1395
  source_digest: string;
633
1396
  }[];
634
1397
  composer_ref: string;
635
1398
  target_node_ref: string;
636
- artifact_kind: string;
637
- artifact_key: string;
638
- artifact_policy_variant: string;
639
- variables: Record<string, IndexerJson>;
1399
+ artifact: {
1400
+ artifact_kind: string;
1401
+ representation: "template";
1402
+ template_id: string;
1403
+ variables: Record<string, {
1404
+ value: IndexerJson;
1405
+ evidence_refs: string[];
1406
+ fact_refs: string[];
1407
+ }>;
1408
+ section_projections: {
1409
+ section_key: string;
1410
+ owner_indexer_id: string;
1411
+ document_kind: string;
1412
+ reader_goal: string;
1413
+ artifact_kind: string;
1414
+ }[];
1415
+ artifact_id: string;
1416
+ artifact_policy_variant: string;
1417
+ } | {
1418
+ artifact_kind: string;
1419
+ representation: "sections";
1420
+ artifact_id: string;
1421
+ artifact_policy_variant: string;
1422
+ sections: {
1423
+ section_key: string;
1424
+ owner_indexer_id: string;
1425
+ document_kind: string;
1426
+ reader_goal: string;
1427
+ artifact_kind: string;
1428
+ blocks: ({
1429
+ block_id: string;
1430
+ layer: "deterministic-block";
1431
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1432
+ fact_refs: string[];
1433
+ } | {
1434
+ evidence_refs: string[];
1435
+ block_id: string;
1436
+ layer: "semantic-prose";
1437
+ markdown: string;
1438
+ })[];
1439
+ }[];
1440
+ };
640
1441
  }[];
641
1442
  };
642
- fragment_digest: string;
643
- composer_ref?: string | undefined;
644
- }, {
645
- kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
646
- protocol: "context.indexer.layer-fragment/v1";
647
1443
  workset_digest: string;
648
1444
  layer_ref: string;
649
1445
  layer_integrity: string;
650
1446
  phase: "pre-authority" | "post-author";
651
1447
  target_refs: string[];
1448
+ fragment_digest: string;
1449
+ composer_ref?: string | undefined;
1450
+ }, {
1451
+ kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1452
+ protocol: "context.indexer.layer-fragment/v1";
652
1453
  payload: {
653
1454
  protocol: "context.indexer.fragment.fact-enrichment/v1";
654
1455
  facts: {
655
1456
  value: IndexerJson;
656
- target_ref: string;
657
- fact_id: string;
658
1457
  evidence_refs: {
659
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
660
1458
  ref: string;
1459
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
661
1460
  source_digest: string;
662
1461
  }[];
1462
+ target_ref: string;
1463
+ fact_id: string;
663
1464
  }[];
664
1465
  } | {
665
1466
  protocol: "context.indexer.fragment.template-variables/v1";
666
1467
  variables: {
667
1468
  value: IndexerJson;
668
- target_ref: string;
669
1469
  evidence_refs: {
670
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
671
1470
  ref: string;
1471
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
672
1472
  source_digest: string;
673
1473
  }[];
674
1474
  template_id: string;
1475
+ target_ref: string;
675
1476
  variable_id: string;
676
1477
  }[];
677
1478
  } | {
678
1479
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
679
1480
  proposals: {
680
1481
  evidence_refs: {
681
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
682
1482
  ref: string;
1483
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
683
1484
  source_digest: string;
684
1485
  }[];
685
1486
  composer_ref: string;
686
1487
  target_node_ref: string;
687
- artifact_kind: string;
688
- artifact_key: string;
689
- artifact_policy_variant: string;
690
- variables: Record<string, IndexerJson>;
1488
+ artifact: {
1489
+ artifact_kind: string;
1490
+ representation: "template";
1491
+ template_id: string;
1492
+ variables: Record<string, {
1493
+ value: IndexerJson;
1494
+ evidence_refs: string[];
1495
+ fact_refs: string[];
1496
+ }>;
1497
+ section_projections: {
1498
+ section_key: string;
1499
+ owner_indexer_id: string;
1500
+ document_kind: string;
1501
+ reader_goal: string;
1502
+ artifact_kind: string;
1503
+ }[];
1504
+ artifact_id: string;
1505
+ artifact_policy_variant: string;
1506
+ } | {
1507
+ artifact_kind: string;
1508
+ representation: "sections";
1509
+ artifact_id: string;
1510
+ artifact_policy_variant: string;
1511
+ sections: {
1512
+ section_key: string;
1513
+ owner_indexer_id: string;
1514
+ document_kind: string;
1515
+ reader_goal: string;
1516
+ artifact_kind: string;
1517
+ blocks: ({
1518
+ block_id: string;
1519
+ layer: "deterministic-block";
1520
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1521
+ fact_refs: string[];
1522
+ } | {
1523
+ evidence_refs: string[];
1524
+ block_id: string;
1525
+ layer: "semantic-prose";
1526
+ markdown: string;
1527
+ })[];
1528
+ }[];
1529
+ };
691
1530
  }[];
692
1531
  };
1532
+ workset_digest: string;
1533
+ layer_ref: string;
1534
+ layer_integrity: string;
1535
+ phase: "pre-authority" | "post-author";
1536
+ target_refs: string[];
693
1537
  fragment_digest: string;
694
1538
  composer_ref?: string | undefined;
695
1539
  }>;
@@ -716,64 +1560,64 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
716
1560
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
717
1561
  source_digest: z.ZodString;
718
1562
  }, "strict", z.ZodTypeAny, {
719
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
720
1563
  ref: string;
1564
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
721
1565
  source_digest: string;
722
1566
  }, {
723
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
724
1567
  ref: string;
1568
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
725
1569
  source_digest: string;
726
1570
  }>, "many">, {
727
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
728
1571
  ref: string;
1572
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
729
1573
  source_digest: string;
730
1574
  }[], {
731
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
732
1575
  ref: string;
1576
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
733
1577
  source_digest: string;
734
1578
  }[]>;
735
1579
  }, "strict", z.ZodTypeAny, {
736
1580
  value: IndexerJson;
737
- target_ref: string;
738
- fact_id: string;
739
1581
  evidence_refs: {
740
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
741
1582
  ref: string;
1583
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
742
1584
  source_digest: string;
743
1585
  }[];
744
- }, {
745
- value: IndexerJson;
746
1586
  target_ref: string;
747
1587
  fact_id: string;
1588
+ }, {
1589
+ value: IndexerJson;
748
1590
  evidence_refs: {
749
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
750
1591
  ref: string;
1592
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
751
1593
  source_digest: string;
752
1594
  }[];
1595
+ target_ref: string;
1596
+ fact_id: string;
753
1597
  }>, "many">;
754
1598
  }, "strict", z.ZodTypeAny, {
755
1599
  protocol: "context.indexer.fragment.fact-enrichment/v1";
756
1600
  facts: {
757
1601
  value: IndexerJson;
758
- target_ref: string;
759
- fact_id: string;
760
1602
  evidence_refs: {
761
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
762
1603
  ref: string;
1604
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
763
1605
  source_digest: string;
764
1606
  }[];
1607
+ target_ref: string;
1608
+ fact_id: string;
765
1609
  }[];
766
1610
  }, {
767
1611
  protocol: "context.indexer.fragment.fact-enrichment/v1";
768
1612
  facts: {
769
1613
  value: IndexerJson;
770
- target_ref: string;
771
- fact_id: string;
772
1614
  evidence_refs: {
773
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
774
1615
  ref: string;
1616
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
775
1617
  source_digest: string;
776
1618
  }[];
1619
+ target_ref: string;
1620
+ fact_id: string;
777
1621
  }[];
778
1622
  }>, z.ZodObject<{
779
1623
  protocol: z.ZodLiteral<"context.indexer.fragment.template-variables/v1">;
@@ -787,67 +1631,67 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
787
1631
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
788
1632
  source_digest: z.ZodString;
789
1633
  }, "strict", z.ZodTypeAny, {
790
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
791
1634
  ref: string;
1635
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
792
1636
  source_digest: string;
793
1637
  }, {
794
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
795
1638
  ref: string;
1639
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
796
1640
  source_digest: string;
797
1641
  }>, "many">, {
798
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
799
1642
  ref: string;
1643
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
800
1644
  source_digest: string;
801
1645
  }[], {
802
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
803
1646
  ref: string;
1647
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
804
1648
  source_digest: string;
805
1649
  }[]>;
806
1650
  }, "strict", z.ZodTypeAny, {
807
1651
  value: IndexerJson;
808
- target_ref: string;
809
1652
  evidence_refs: {
810
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
811
1653
  ref: string;
1654
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
812
1655
  source_digest: string;
813
1656
  }[];
814
1657
  template_id: string;
1658
+ target_ref: string;
815
1659
  variable_id: string;
816
1660
  }, {
817
1661
  value: IndexerJson;
818
- target_ref: string;
819
1662
  evidence_refs: {
820
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
821
1663
  ref: string;
1664
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
822
1665
  source_digest: string;
823
1666
  }[];
824
1667
  template_id: string;
1668
+ target_ref: string;
825
1669
  variable_id: string;
826
1670
  }>, "many">;
827
1671
  }, "strict", z.ZodTypeAny, {
828
1672
  protocol: "context.indexer.fragment.template-variables/v1";
829
1673
  variables: {
830
1674
  value: IndexerJson;
831
- target_ref: string;
832
1675
  evidence_refs: {
833
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
834
1676
  ref: string;
1677
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
835
1678
  source_digest: string;
836
1679
  }[];
837
1680
  template_id: string;
1681
+ target_ref: string;
838
1682
  variable_id: string;
839
1683
  }[];
840
1684
  }, {
841
1685
  protocol: "context.indexer.fragment.template-variables/v1";
842
1686
  variables: {
843
1687
  value: IndexerJson;
844
- target_ref: string;
845
1688
  evidence_refs: {
846
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
847
1689
  ref: string;
1690
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
848
1691
  source_digest: string;
849
1692
  }[];
850
1693
  template_id: string;
1694
+ target_ref: string;
851
1695
  variable_id: string;
852
1696
  }[];
853
1697
  }>, z.ZodObject<{
@@ -855,85 +1699,432 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
855
1699
  proposals: z.ZodArray<z.ZodObject<{
856
1700
  composer_ref: z.ZodEffects<z.ZodString, string, string>;
857
1701
  target_node_ref: z.ZodString;
858
- artifact_kind: z.ZodEffects<z.ZodString, string, string>;
859
- artifact_key: z.ZodEffects<z.ZodString, string, string>;
860
- artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
861
- variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
1702
+ artifact: z.ZodDiscriminatedUnion<"representation", [z.ZodObject<{
1703
+ representation: z.ZodLiteral<"template">;
1704
+ template_id: z.ZodEffects<z.ZodString, string, string>;
1705
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
1706
+ value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
1707
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1708
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1709
+ }, "strict", z.ZodTypeAny, {
1710
+ value: IndexerJson;
1711
+ evidence_refs: string[];
1712
+ fact_refs: string[];
1713
+ }, {
1714
+ value: IndexerJson;
1715
+ evidence_refs: string[];
1716
+ fact_refs: string[];
1717
+ }>>;
1718
+ section_projections: z.ZodArray<z.ZodObject<{
1719
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1720
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1721
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
1722
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
1723
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1724
+ }, "strict", z.ZodTypeAny, {
1725
+ section_key: string;
1726
+ owner_indexer_id: string;
1727
+ document_kind: string;
1728
+ reader_goal: string;
1729
+ artifact_kind: string;
1730
+ }, {
1731
+ section_key: string;
1732
+ owner_indexer_id: string;
1733
+ document_kind: string;
1734
+ reader_goal: string;
1735
+ artifact_kind: string;
1736
+ }>, "many">;
1737
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1738
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1739
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1740
+ }, "strict", z.ZodTypeAny, {
1741
+ artifact_kind: string;
1742
+ representation: "template";
1743
+ template_id: string;
1744
+ variables: Record<string, {
1745
+ value: IndexerJson;
1746
+ evidence_refs: string[];
1747
+ fact_refs: string[];
1748
+ }>;
1749
+ section_projections: {
1750
+ section_key: string;
1751
+ owner_indexer_id: string;
1752
+ document_kind: string;
1753
+ reader_goal: string;
1754
+ artifact_kind: string;
1755
+ }[];
1756
+ artifact_id: string;
1757
+ artifact_policy_variant: string;
1758
+ }, {
1759
+ artifact_kind: string;
1760
+ representation: "template";
1761
+ template_id: string;
1762
+ variables: Record<string, {
1763
+ value: IndexerJson;
1764
+ evidence_refs: string[];
1765
+ fact_refs: string[];
1766
+ }>;
1767
+ section_projections: {
1768
+ section_key: string;
1769
+ owner_indexer_id: string;
1770
+ document_kind: string;
1771
+ reader_goal: string;
1772
+ artifact_kind: string;
1773
+ }[];
1774
+ artifact_id: string;
1775
+ artifact_policy_variant: string;
1776
+ }>, z.ZodObject<{
1777
+ representation: z.ZodLiteral<"sections">;
1778
+ sections: z.ZodArray<z.ZodObject<{
1779
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1780
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1781
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
1782
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
1783
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1784
+ } & {
1785
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
1786
+ block_id: z.ZodEffects<z.ZodString, string, string>;
1787
+ layer: z.ZodLiteral<"deterministic-block">;
1788
+ renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
1789
+ fact_refs: z.ZodArray<z.ZodString, "many">;
1790
+ }, "strict", z.ZodTypeAny, {
1791
+ block_id: string;
1792
+ layer: "deterministic-block";
1793
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1794
+ fact_refs: string[];
1795
+ }, {
1796
+ block_id: string;
1797
+ layer: "deterministic-block";
1798
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1799
+ fact_refs: string[];
1800
+ }>, z.ZodObject<{
1801
+ block_id: z.ZodEffects<z.ZodString, string, string>;
1802
+ layer: z.ZodLiteral<"semantic-prose">;
1803
+ markdown: z.ZodString;
1804
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1805
+ }, "strict", z.ZodTypeAny, {
1806
+ evidence_refs: string[];
1807
+ block_id: string;
1808
+ layer: "semantic-prose";
1809
+ markdown: string;
1810
+ }, {
1811
+ evidence_refs: string[];
1812
+ block_id: string;
1813
+ layer: "semantic-prose";
1814
+ markdown: string;
1815
+ }>]>, "many">;
1816
+ }, "strict", z.ZodTypeAny, {
1817
+ section_key: string;
1818
+ owner_indexer_id: string;
1819
+ document_kind: string;
1820
+ reader_goal: string;
1821
+ artifact_kind: string;
1822
+ blocks: ({
1823
+ block_id: string;
1824
+ layer: "deterministic-block";
1825
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1826
+ fact_refs: string[];
1827
+ } | {
1828
+ evidence_refs: string[];
1829
+ block_id: string;
1830
+ layer: "semantic-prose";
1831
+ markdown: string;
1832
+ })[];
1833
+ }, {
1834
+ section_key: string;
1835
+ owner_indexer_id: string;
1836
+ document_kind: string;
1837
+ reader_goal: string;
1838
+ artifact_kind: string;
1839
+ blocks: ({
1840
+ block_id: string;
1841
+ layer: "deterministic-block";
1842
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1843
+ fact_refs: string[];
1844
+ } | {
1845
+ evidence_refs: string[];
1846
+ block_id: string;
1847
+ layer: "semantic-prose";
1848
+ markdown: string;
1849
+ })[];
1850
+ }>, "many">;
1851
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
1852
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1853
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1854
+ }, "strict", z.ZodTypeAny, {
1855
+ artifact_kind: string;
1856
+ representation: "sections";
1857
+ artifact_id: string;
1858
+ artifact_policy_variant: string;
1859
+ sections: {
1860
+ section_key: string;
1861
+ owner_indexer_id: string;
1862
+ document_kind: string;
1863
+ reader_goal: string;
1864
+ artifact_kind: string;
1865
+ blocks: ({
1866
+ block_id: string;
1867
+ layer: "deterministic-block";
1868
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1869
+ fact_refs: string[];
1870
+ } | {
1871
+ evidence_refs: string[];
1872
+ block_id: string;
1873
+ layer: "semantic-prose";
1874
+ markdown: string;
1875
+ })[];
1876
+ }[];
1877
+ }, {
1878
+ artifact_kind: string;
1879
+ representation: "sections";
1880
+ artifact_id: string;
1881
+ artifact_policy_variant: string;
1882
+ sections: {
1883
+ section_key: string;
1884
+ owner_indexer_id: string;
1885
+ document_kind: string;
1886
+ reader_goal: string;
1887
+ artifact_kind: string;
1888
+ blocks: ({
1889
+ block_id: string;
1890
+ layer: "deterministic-block";
1891
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1892
+ fact_refs: string[];
1893
+ } | {
1894
+ evidence_refs: string[];
1895
+ block_id: string;
1896
+ layer: "semantic-prose";
1897
+ markdown: string;
1898
+ })[];
1899
+ }[];
1900
+ }>]>;
862
1901
  evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
863
1902
  ref: z.ZodString;
864
1903
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
865
1904
  source_digest: z.ZodString;
866
1905
  }, "strict", z.ZodTypeAny, {
867
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
868
1906
  ref: string;
1907
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
869
1908
  source_digest: string;
870
1909
  }, {
871
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
872
1910
  ref: string;
1911
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
873
1912
  source_digest: string;
874
1913
  }>, "many">, {
875
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
876
1914
  ref: string;
1915
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
877
1916
  source_digest: string;
878
1917
  }[], {
879
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
880
1918
  ref: string;
1919
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
881
1920
  source_digest: string;
882
1921
  }[]>;
883
1922
  }, "strict", z.ZodTypeAny, {
884
1923
  evidence_refs: {
885
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
886
1924
  ref: string;
1925
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
887
1926
  source_digest: string;
888
1927
  }[];
889
1928
  composer_ref: string;
890
1929
  target_node_ref: string;
891
- artifact_kind: string;
892
- artifact_key: string;
893
- artifact_policy_variant: string;
894
- variables: Record<string, IndexerJson>;
1930
+ artifact: {
1931
+ artifact_kind: string;
1932
+ representation: "template";
1933
+ template_id: string;
1934
+ variables: Record<string, {
1935
+ value: IndexerJson;
1936
+ evidence_refs: string[];
1937
+ fact_refs: string[];
1938
+ }>;
1939
+ section_projections: {
1940
+ section_key: string;
1941
+ owner_indexer_id: string;
1942
+ document_kind: string;
1943
+ reader_goal: string;
1944
+ artifact_kind: string;
1945
+ }[];
1946
+ artifact_id: string;
1947
+ artifact_policy_variant: string;
1948
+ } | {
1949
+ artifact_kind: string;
1950
+ representation: "sections";
1951
+ artifact_id: string;
1952
+ artifact_policy_variant: string;
1953
+ sections: {
1954
+ section_key: string;
1955
+ owner_indexer_id: string;
1956
+ document_kind: string;
1957
+ reader_goal: string;
1958
+ artifact_kind: string;
1959
+ blocks: ({
1960
+ block_id: string;
1961
+ layer: "deterministic-block";
1962
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
1963
+ fact_refs: string[];
1964
+ } | {
1965
+ evidence_refs: string[];
1966
+ block_id: string;
1967
+ layer: "semantic-prose";
1968
+ markdown: string;
1969
+ })[];
1970
+ }[];
1971
+ };
895
1972
  }, {
896
1973
  evidence_refs: {
897
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
898
1974
  ref: string;
1975
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
899
1976
  source_digest: string;
900
1977
  }[];
901
1978
  composer_ref: string;
902
1979
  target_node_ref: string;
903
- artifact_kind: string;
904
- artifact_key: string;
905
- artifact_policy_variant: string;
906
- variables: Record<string, IndexerJson>;
1980
+ artifact: {
1981
+ artifact_kind: string;
1982
+ representation: "template";
1983
+ template_id: string;
1984
+ variables: Record<string, {
1985
+ value: IndexerJson;
1986
+ evidence_refs: string[];
1987
+ fact_refs: string[];
1988
+ }>;
1989
+ section_projections: {
1990
+ section_key: string;
1991
+ owner_indexer_id: string;
1992
+ document_kind: string;
1993
+ reader_goal: string;
1994
+ artifact_kind: string;
1995
+ }[];
1996
+ artifact_id: string;
1997
+ artifact_policy_variant: string;
1998
+ } | {
1999
+ artifact_kind: string;
2000
+ representation: "sections";
2001
+ artifact_id: string;
2002
+ artifact_policy_variant: string;
2003
+ sections: {
2004
+ section_key: string;
2005
+ owner_indexer_id: string;
2006
+ document_kind: string;
2007
+ reader_goal: string;
2008
+ artifact_kind: string;
2009
+ blocks: ({
2010
+ block_id: string;
2011
+ layer: "deterministic-block";
2012
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2013
+ fact_refs: string[];
2014
+ } | {
2015
+ evidence_refs: string[];
2016
+ block_id: string;
2017
+ layer: "semantic-prose";
2018
+ markdown: string;
2019
+ })[];
2020
+ }[];
2021
+ };
907
2022
  }>, "many">;
908
2023
  }, "strict", z.ZodTypeAny, {
909
2024
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
910
2025
  proposals: {
911
2026
  evidence_refs: {
912
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
913
2027
  ref: string;
2028
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
914
2029
  source_digest: string;
915
2030
  }[];
916
2031
  composer_ref: string;
917
2032
  target_node_ref: string;
918
- artifact_kind: string;
919
- artifact_key: string;
920
- artifact_policy_variant: string;
921
- variables: Record<string, IndexerJson>;
2033
+ artifact: {
2034
+ artifact_kind: string;
2035
+ representation: "template";
2036
+ template_id: string;
2037
+ variables: Record<string, {
2038
+ value: IndexerJson;
2039
+ evidence_refs: string[];
2040
+ fact_refs: string[];
2041
+ }>;
2042
+ section_projections: {
2043
+ section_key: string;
2044
+ owner_indexer_id: string;
2045
+ document_kind: string;
2046
+ reader_goal: string;
2047
+ artifact_kind: string;
2048
+ }[];
2049
+ artifact_id: string;
2050
+ artifact_policy_variant: string;
2051
+ } | {
2052
+ artifact_kind: string;
2053
+ representation: "sections";
2054
+ artifact_id: string;
2055
+ artifact_policy_variant: string;
2056
+ sections: {
2057
+ section_key: string;
2058
+ owner_indexer_id: string;
2059
+ document_kind: string;
2060
+ reader_goal: string;
2061
+ artifact_kind: string;
2062
+ blocks: ({
2063
+ block_id: string;
2064
+ layer: "deterministic-block";
2065
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2066
+ fact_refs: string[];
2067
+ } | {
2068
+ evidence_refs: string[];
2069
+ block_id: string;
2070
+ layer: "semantic-prose";
2071
+ markdown: string;
2072
+ })[];
2073
+ }[];
2074
+ };
922
2075
  }[];
923
2076
  }, {
924
2077
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
925
2078
  proposals: {
926
2079
  evidence_refs: {
927
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
928
2080
  ref: string;
2081
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
929
2082
  source_digest: string;
930
2083
  }[];
931
2084
  composer_ref: string;
932
2085
  target_node_ref: string;
933
- artifact_kind: string;
934
- artifact_key: string;
935
- artifact_policy_variant: string;
936
- variables: Record<string, IndexerJson>;
2086
+ artifact: {
2087
+ artifact_kind: string;
2088
+ representation: "template";
2089
+ template_id: string;
2090
+ variables: Record<string, {
2091
+ value: IndexerJson;
2092
+ evidence_refs: string[];
2093
+ fact_refs: string[];
2094
+ }>;
2095
+ section_projections: {
2096
+ section_key: string;
2097
+ owner_indexer_id: string;
2098
+ document_kind: string;
2099
+ reader_goal: string;
2100
+ artifact_kind: string;
2101
+ }[];
2102
+ artifact_id: string;
2103
+ artifact_policy_variant: string;
2104
+ } | {
2105
+ artifact_kind: string;
2106
+ representation: "sections";
2107
+ artifact_id: string;
2108
+ artifact_policy_variant: string;
2109
+ sections: {
2110
+ section_key: string;
2111
+ owner_indexer_id: string;
2112
+ document_kind: string;
2113
+ reader_goal: string;
2114
+ artifact_kind: string;
2115
+ blocks: ({
2116
+ block_id: string;
2117
+ layer: "deterministic-block";
2118
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2119
+ fact_refs: string[];
2120
+ } | {
2121
+ evidence_refs: string[];
2122
+ block_id: string;
2123
+ layer: "semantic-prose";
2124
+ markdown: string;
2125
+ })[];
2126
+ }[];
2127
+ };
937
2128
  }[];
938
2129
  }>]>;
939
2130
  payload_digest: z.ZodString;
@@ -964,51 +2155,89 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
964
2155
  }>;
965
2156
  }, "strict", z.ZodTypeAny, {
966
2157
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
967
- layer_ref: string;
968
- layer_integrity: string;
969
- phase: "pre-authority" | "post-author";
970
- target_refs: string[];
971
2158
  payload: {
972
2159
  protocol: "context.indexer.fragment.fact-enrichment/v1";
973
2160
  facts: {
974
2161
  value: IndexerJson;
975
- target_ref: string;
976
- fact_id: string;
977
2162
  evidence_refs: {
978
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
979
2163
  ref: string;
2164
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
980
2165
  source_digest: string;
981
2166
  }[];
2167
+ target_ref: string;
2168
+ fact_id: string;
982
2169
  }[];
983
2170
  } | {
984
2171
  protocol: "context.indexer.fragment.template-variables/v1";
985
2172
  variables: {
986
2173
  value: IndexerJson;
987
- target_ref: string;
988
2174
  evidence_refs: {
989
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
990
2175
  ref: string;
2176
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
991
2177
  source_digest: string;
992
2178
  }[];
993
2179
  template_id: string;
2180
+ target_ref: string;
994
2181
  variable_id: string;
995
2182
  }[];
996
2183
  } | {
997
2184
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
998
2185
  proposals: {
999
2186
  evidence_refs: {
1000
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1001
2187
  ref: string;
2188
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1002
2189
  source_digest: string;
1003
2190
  }[];
1004
2191
  composer_ref: string;
1005
2192
  target_node_ref: string;
1006
- artifact_kind: string;
1007
- artifact_key: string;
1008
- artifact_policy_variant: string;
1009
- variables: Record<string, IndexerJson>;
2193
+ artifact: {
2194
+ artifact_kind: string;
2195
+ representation: "template";
2196
+ template_id: string;
2197
+ variables: Record<string, {
2198
+ value: IndexerJson;
2199
+ evidence_refs: string[];
2200
+ fact_refs: string[];
2201
+ }>;
2202
+ section_projections: {
2203
+ section_key: string;
2204
+ owner_indexer_id: string;
2205
+ document_kind: string;
2206
+ reader_goal: string;
2207
+ artifact_kind: string;
2208
+ }[];
2209
+ artifact_id: string;
2210
+ artifact_policy_variant: string;
2211
+ } | {
2212
+ artifact_kind: string;
2213
+ representation: "sections";
2214
+ artifact_id: string;
2215
+ artifact_policy_variant: string;
2216
+ sections: {
2217
+ section_key: string;
2218
+ owner_indexer_id: string;
2219
+ document_kind: string;
2220
+ reader_goal: string;
2221
+ artifact_kind: string;
2222
+ blocks: ({
2223
+ block_id: string;
2224
+ layer: "deterministic-block";
2225
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2226
+ fact_refs: string[];
2227
+ } | {
2228
+ evidence_refs: string[];
2229
+ block_id: string;
2230
+ layer: "semantic-prose";
2231
+ markdown: string;
2232
+ })[];
2233
+ }[];
2234
+ };
1010
2235
  }[];
1011
2236
  };
2237
+ layer_ref: string;
2238
+ layer_integrity: string;
2239
+ phase: "pre-authority" | "post-author";
2240
+ target_refs: string[];
1012
2241
  fragment_digest: string;
1013
2242
  payload_digest: string;
1014
2243
  materialization_receipt: {
@@ -1023,51 +2252,89 @@ export declare const indexerMaterializedLayerFragmentSchema: z.ZodObject<{
1023
2252
  composer_ref?: string | undefined;
1024
2253
  }, {
1025
2254
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1026
- layer_ref: string;
1027
- layer_integrity: string;
1028
- phase: "pre-authority" | "post-author";
1029
- target_refs: string[];
1030
2255
  payload: {
1031
2256
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1032
2257
  facts: {
1033
2258
  value: IndexerJson;
1034
- target_ref: string;
1035
- fact_id: string;
1036
2259
  evidence_refs: {
1037
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1038
2260
  ref: string;
2261
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1039
2262
  source_digest: string;
1040
2263
  }[];
2264
+ target_ref: string;
2265
+ fact_id: string;
1041
2266
  }[];
1042
2267
  } | {
1043
2268
  protocol: "context.indexer.fragment.template-variables/v1";
1044
2269
  variables: {
1045
2270
  value: IndexerJson;
1046
- target_ref: string;
1047
2271
  evidence_refs: {
1048
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1049
2272
  ref: string;
2273
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1050
2274
  source_digest: string;
1051
2275
  }[];
1052
2276
  template_id: string;
2277
+ target_ref: string;
1053
2278
  variable_id: string;
1054
2279
  }[];
1055
2280
  } | {
1056
2281
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1057
2282
  proposals: {
1058
2283
  evidence_refs: {
1059
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1060
2284
  ref: string;
2285
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1061
2286
  source_digest: string;
1062
2287
  }[];
1063
2288
  composer_ref: string;
1064
2289
  target_node_ref: string;
1065
- artifact_kind: string;
1066
- artifact_key: string;
1067
- artifact_policy_variant: string;
1068
- variables: Record<string, IndexerJson>;
2290
+ artifact: {
2291
+ artifact_kind: string;
2292
+ representation: "template";
2293
+ template_id: string;
2294
+ variables: Record<string, {
2295
+ value: IndexerJson;
2296
+ evidence_refs: string[];
2297
+ fact_refs: string[];
2298
+ }>;
2299
+ section_projections: {
2300
+ section_key: string;
2301
+ owner_indexer_id: string;
2302
+ document_kind: string;
2303
+ reader_goal: string;
2304
+ artifact_kind: string;
2305
+ }[];
2306
+ artifact_id: string;
2307
+ artifact_policy_variant: string;
2308
+ } | {
2309
+ artifact_kind: string;
2310
+ representation: "sections";
2311
+ artifact_id: string;
2312
+ artifact_policy_variant: string;
2313
+ sections: {
2314
+ section_key: string;
2315
+ owner_indexer_id: string;
2316
+ document_kind: string;
2317
+ reader_goal: string;
2318
+ artifact_kind: string;
2319
+ blocks: ({
2320
+ block_id: string;
2321
+ layer: "deterministic-block";
2322
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2323
+ fact_refs: string[];
2324
+ } | {
2325
+ evidence_refs: string[];
2326
+ block_id: string;
2327
+ layer: "semantic-prose";
2328
+ markdown: string;
2329
+ })[];
2330
+ }[];
2331
+ };
1069
2332
  }[];
1070
2333
  };
2334
+ layer_ref: string;
2335
+ layer_integrity: string;
2336
+ phase: "pre-authority" | "post-author";
2337
+ target_refs: string[];
1071
2338
  fragment_digest: string;
1072
2339
  payload_digest: string;
1073
2340
  materialization_receipt: {
@@ -1122,64 +2389,64 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1122
2389
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1123
2390
  source_digest: z.ZodString;
1124
2391
  }, "strict", z.ZodTypeAny, {
1125
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1126
2392
  ref: string;
2393
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1127
2394
  source_digest: string;
1128
2395
  }, {
1129
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1130
2396
  ref: string;
2397
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1131
2398
  source_digest: string;
1132
2399
  }>, "many">, {
1133
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1134
2400
  ref: string;
2401
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1135
2402
  source_digest: string;
1136
2403
  }[], {
1137
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1138
2404
  ref: string;
2405
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1139
2406
  source_digest: string;
1140
2407
  }[]>;
1141
2408
  }, "strict", z.ZodTypeAny, {
1142
2409
  value: IndexerJson;
1143
- target_ref: string;
1144
- fact_id: string;
1145
2410
  evidence_refs: {
1146
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1147
2411
  ref: string;
2412
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1148
2413
  source_digest: string;
1149
2414
  }[];
1150
- }, {
1151
- value: IndexerJson;
1152
2415
  target_ref: string;
1153
2416
  fact_id: string;
2417
+ }, {
2418
+ value: IndexerJson;
1154
2419
  evidence_refs: {
1155
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1156
2420
  ref: string;
2421
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1157
2422
  source_digest: string;
1158
2423
  }[];
2424
+ target_ref: string;
2425
+ fact_id: string;
1159
2426
  }>, "many">;
1160
2427
  }, "strict", z.ZodTypeAny, {
1161
2428
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1162
2429
  facts: {
1163
2430
  value: IndexerJson;
1164
- target_ref: string;
1165
- fact_id: string;
1166
2431
  evidence_refs: {
1167
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1168
2432
  ref: string;
2433
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1169
2434
  source_digest: string;
1170
2435
  }[];
2436
+ target_ref: string;
2437
+ fact_id: string;
1171
2438
  }[];
1172
2439
  }, {
1173
2440
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1174
2441
  facts: {
1175
2442
  value: IndexerJson;
1176
- target_ref: string;
1177
- fact_id: string;
1178
2443
  evidence_refs: {
1179
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1180
2444
  ref: string;
2445
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1181
2446
  source_digest: string;
1182
2447
  }[];
2448
+ target_ref: string;
2449
+ fact_id: string;
1183
2450
  }[];
1184
2451
  }>, z.ZodObject<{
1185
2452
  protocol: z.ZodLiteral<"context.indexer.fragment.template-variables/v1">;
@@ -1193,67 +2460,67 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1193
2460
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1194
2461
  source_digest: z.ZodString;
1195
2462
  }, "strict", z.ZodTypeAny, {
1196
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1197
2463
  ref: string;
2464
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1198
2465
  source_digest: string;
1199
2466
  }, {
1200
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1201
2467
  ref: string;
2468
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1202
2469
  source_digest: string;
1203
2470
  }>, "many">, {
1204
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1205
2471
  ref: string;
2472
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1206
2473
  source_digest: string;
1207
2474
  }[], {
1208
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1209
2475
  ref: string;
2476
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1210
2477
  source_digest: string;
1211
2478
  }[]>;
1212
2479
  }, "strict", z.ZodTypeAny, {
1213
2480
  value: IndexerJson;
1214
- target_ref: string;
1215
2481
  evidence_refs: {
1216
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1217
2482
  ref: string;
2483
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1218
2484
  source_digest: string;
1219
2485
  }[];
1220
2486
  template_id: string;
2487
+ target_ref: string;
1221
2488
  variable_id: string;
1222
2489
  }, {
1223
2490
  value: IndexerJson;
1224
- target_ref: string;
1225
2491
  evidence_refs: {
1226
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1227
2492
  ref: string;
2493
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1228
2494
  source_digest: string;
1229
2495
  }[];
1230
2496
  template_id: string;
2497
+ target_ref: string;
1231
2498
  variable_id: string;
1232
2499
  }>, "many">;
1233
2500
  }, "strict", z.ZodTypeAny, {
1234
2501
  protocol: "context.indexer.fragment.template-variables/v1";
1235
2502
  variables: {
1236
2503
  value: IndexerJson;
1237
- target_ref: string;
1238
2504
  evidence_refs: {
1239
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1240
2505
  ref: string;
2506
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1241
2507
  source_digest: string;
1242
2508
  }[];
1243
2509
  template_id: string;
2510
+ target_ref: string;
1244
2511
  variable_id: string;
1245
2512
  }[];
1246
2513
  }, {
1247
2514
  protocol: "context.indexer.fragment.template-variables/v1";
1248
2515
  variables: {
1249
2516
  value: IndexerJson;
1250
- target_ref: string;
1251
2517
  evidence_refs: {
1252
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1253
2518
  ref: string;
2519
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1254
2520
  source_digest: string;
1255
2521
  }[];
1256
2522
  template_id: string;
2523
+ target_ref: string;
1257
2524
  variable_id: string;
1258
2525
  }[];
1259
2526
  }>, z.ZodObject<{
@@ -1261,85 +2528,432 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1261
2528
  proposals: z.ZodArray<z.ZodObject<{
1262
2529
  composer_ref: z.ZodEffects<z.ZodString, string, string>;
1263
2530
  target_node_ref: z.ZodString;
1264
- artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1265
- artifact_key: z.ZodEffects<z.ZodString, string, string>;
1266
- artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
1267
- variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
2531
+ artifact: z.ZodDiscriminatedUnion<"representation", [z.ZodObject<{
2532
+ representation: z.ZodLiteral<"template">;
2533
+ template_id: z.ZodEffects<z.ZodString, string, string>;
2534
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
2535
+ value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
2536
+ fact_refs: z.ZodArray<z.ZodString, "many">;
2537
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
2538
+ }, "strict", z.ZodTypeAny, {
2539
+ value: IndexerJson;
2540
+ evidence_refs: string[];
2541
+ fact_refs: string[];
2542
+ }, {
2543
+ value: IndexerJson;
2544
+ evidence_refs: string[];
2545
+ fact_refs: string[];
2546
+ }>>;
2547
+ section_projections: z.ZodArray<z.ZodObject<{
2548
+ section_key: z.ZodEffects<z.ZodString, string, string>;
2549
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
2550
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
2551
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
2552
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2553
+ }, "strict", z.ZodTypeAny, {
2554
+ section_key: string;
2555
+ owner_indexer_id: string;
2556
+ document_kind: string;
2557
+ reader_goal: string;
2558
+ artifact_kind: string;
2559
+ }, {
2560
+ section_key: string;
2561
+ owner_indexer_id: string;
2562
+ document_kind: string;
2563
+ reader_goal: string;
2564
+ artifact_kind: string;
2565
+ }>, "many">;
2566
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
2567
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2568
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
2569
+ }, "strict", z.ZodTypeAny, {
2570
+ artifact_kind: string;
2571
+ representation: "template";
2572
+ template_id: string;
2573
+ variables: Record<string, {
2574
+ value: IndexerJson;
2575
+ evidence_refs: string[];
2576
+ fact_refs: string[];
2577
+ }>;
2578
+ section_projections: {
2579
+ section_key: string;
2580
+ owner_indexer_id: string;
2581
+ document_kind: string;
2582
+ reader_goal: string;
2583
+ artifact_kind: string;
2584
+ }[];
2585
+ artifact_id: string;
2586
+ artifact_policy_variant: string;
2587
+ }, {
2588
+ artifact_kind: string;
2589
+ representation: "template";
2590
+ template_id: string;
2591
+ variables: Record<string, {
2592
+ value: IndexerJson;
2593
+ evidence_refs: string[];
2594
+ fact_refs: string[];
2595
+ }>;
2596
+ section_projections: {
2597
+ section_key: string;
2598
+ owner_indexer_id: string;
2599
+ document_kind: string;
2600
+ reader_goal: string;
2601
+ artifact_kind: string;
2602
+ }[];
2603
+ artifact_id: string;
2604
+ artifact_policy_variant: string;
2605
+ }>, z.ZodObject<{
2606
+ representation: z.ZodLiteral<"sections">;
2607
+ sections: z.ZodArray<z.ZodObject<{
2608
+ section_key: z.ZodEffects<z.ZodString, string, string>;
2609
+ owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
2610
+ document_kind: z.ZodEffects<z.ZodString, string, string>;
2611
+ reader_goal: z.ZodEffects<z.ZodString, string, string>;
2612
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2613
+ } & {
2614
+ blocks: z.ZodArray<z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
2615
+ block_id: z.ZodEffects<z.ZodString, string, string>;
2616
+ layer: z.ZodLiteral<"deterministic-block">;
2617
+ renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
2618
+ fact_refs: z.ZodArray<z.ZodString, "many">;
2619
+ }, "strict", z.ZodTypeAny, {
2620
+ block_id: string;
2621
+ layer: "deterministic-block";
2622
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2623
+ fact_refs: string[];
2624
+ }, {
2625
+ block_id: string;
2626
+ layer: "deterministic-block";
2627
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2628
+ fact_refs: string[];
2629
+ }>, z.ZodObject<{
2630
+ block_id: z.ZodEffects<z.ZodString, string, string>;
2631
+ layer: z.ZodLiteral<"semantic-prose">;
2632
+ markdown: z.ZodString;
2633
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
2634
+ }, "strict", z.ZodTypeAny, {
2635
+ evidence_refs: string[];
2636
+ block_id: string;
2637
+ layer: "semantic-prose";
2638
+ markdown: string;
2639
+ }, {
2640
+ evidence_refs: string[];
2641
+ block_id: string;
2642
+ layer: "semantic-prose";
2643
+ markdown: string;
2644
+ }>]>, "many">;
2645
+ }, "strict", z.ZodTypeAny, {
2646
+ section_key: string;
2647
+ owner_indexer_id: string;
2648
+ document_kind: string;
2649
+ reader_goal: string;
2650
+ artifact_kind: string;
2651
+ blocks: ({
2652
+ block_id: string;
2653
+ layer: "deterministic-block";
2654
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2655
+ fact_refs: string[];
2656
+ } | {
2657
+ evidence_refs: string[];
2658
+ block_id: string;
2659
+ layer: "semantic-prose";
2660
+ markdown: string;
2661
+ })[];
2662
+ }, {
2663
+ section_key: string;
2664
+ owner_indexer_id: string;
2665
+ document_kind: string;
2666
+ reader_goal: string;
2667
+ artifact_kind: string;
2668
+ blocks: ({
2669
+ block_id: string;
2670
+ layer: "deterministic-block";
2671
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2672
+ fact_refs: string[];
2673
+ } | {
2674
+ evidence_refs: string[];
2675
+ block_id: string;
2676
+ layer: "semantic-prose";
2677
+ markdown: string;
2678
+ })[];
2679
+ }>, "many">;
2680
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
2681
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
2682
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
2683
+ }, "strict", z.ZodTypeAny, {
2684
+ artifact_kind: string;
2685
+ representation: "sections";
2686
+ artifact_id: string;
2687
+ artifact_policy_variant: string;
2688
+ sections: {
2689
+ section_key: string;
2690
+ owner_indexer_id: string;
2691
+ document_kind: string;
2692
+ reader_goal: string;
2693
+ artifact_kind: string;
2694
+ blocks: ({
2695
+ block_id: string;
2696
+ layer: "deterministic-block";
2697
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2698
+ fact_refs: string[];
2699
+ } | {
2700
+ evidence_refs: string[];
2701
+ block_id: string;
2702
+ layer: "semantic-prose";
2703
+ markdown: string;
2704
+ })[];
2705
+ }[];
2706
+ }, {
2707
+ artifact_kind: string;
2708
+ representation: "sections";
2709
+ artifact_id: string;
2710
+ artifact_policy_variant: string;
2711
+ sections: {
2712
+ section_key: string;
2713
+ owner_indexer_id: string;
2714
+ document_kind: string;
2715
+ reader_goal: string;
2716
+ artifact_kind: string;
2717
+ blocks: ({
2718
+ block_id: string;
2719
+ layer: "deterministic-block";
2720
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2721
+ fact_refs: string[];
2722
+ } | {
2723
+ evidence_refs: string[];
2724
+ block_id: string;
2725
+ layer: "semantic-prose";
2726
+ markdown: string;
2727
+ })[];
2728
+ }[];
2729
+ }>]>;
1268
2730
  evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
1269
2731
  ref: z.ZodString;
1270
2732
  kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
1271
2733
  source_digest: z.ZodString;
1272
2734
  }, "strict", z.ZodTypeAny, {
1273
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1274
2735
  ref: string;
2736
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1275
2737
  source_digest: string;
1276
2738
  }, {
1277
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1278
2739
  ref: string;
2740
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1279
2741
  source_digest: string;
1280
2742
  }>, "many">, {
1281
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1282
2743
  ref: string;
2744
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1283
2745
  source_digest: string;
1284
2746
  }[], {
1285
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1286
2747
  ref: string;
2748
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1287
2749
  source_digest: string;
1288
2750
  }[]>;
1289
2751
  }, "strict", z.ZodTypeAny, {
1290
2752
  evidence_refs: {
1291
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1292
2753
  ref: string;
2754
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1293
2755
  source_digest: string;
1294
2756
  }[];
1295
2757
  composer_ref: string;
1296
2758
  target_node_ref: string;
1297
- artifact_kind: string;
1298
- artifact_key: string;
1299
- artifact_policy_variant: string;
1300
- variables: Record<string, IndexerJson>;
2759
+ artifact: {
2760
+ artifact_kind: string;
2761
+ representation: "template";
2762
+ template_id: string;
2763
+ variables: Record<string, {
2764
+ value: IndexerJson;
2765
+ evidence_refs: string[];
2766
+ fact_refs: string[];
2767
+ }>;
2768
+ section_projections: {
2769
+ section_key: string;
2770
+ owner_indexer_id: string;
2771
+ document_kind: string;
2772
+ reader_goal: string;
2773
+ artifact_kind: string;
2774
+ }[];
2775
+ artifact_id: string;
2776
+ artifact_policy_variant: string;
2777
+ } | {
2778
+ artifact_kind: string;
2779
+ representation: "sections";
2780
+ artifact_id: string;
2781
+ artifact_policy_variant: string;
2782
+ sections: {
2783
+ section_key: string;
2784
+ owner_indexer_id: string;
2785
+ document_kind: string;
2786
+ reader_goal: string;
2787
+ artifact_kind: string;
2788
+ blocks: ({
2789
+ block_id: string;
2790
+ layer: "deterministic-block";
2791
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2792
+ fact_refs: string[];
2793
+ } | {
2794
+ evidence_refs: string[];
2795
+ block_id: string;
2796
+ layer: "semantic-prose";
2797
+ markdown: string;
2798
+ })[];
2799
+ }[];
2800
+ };
1301
2801
  }, {
1302
2802
  evidence_refs: {
1303
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1304
2803
  ref: string;
2804
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1305
2805
  source_digest: string;
1306
2806
  }[];
1307
2807
  composer_ref: string;
1308
2808
  target_node_ref: string;
1309
- artifact_kind: string;
1310
- artifact_key: string;
1311
- artifact_policy_variant: string;
1312
- variables: Record<string, IndexerJson>;
2809
+ artifact: {
2810
+ artifact_kind: string;
2811
+ representation: "template";
2812
+ template_id: string;
2813
+ variables: Record<string, {
2814
+ value: IndexerJson;
2815
+ evidence_refs: string[];
2816
+ fact_refs: string[];
2817
+ }>;
2818
+ section_projections: {
2819
+ section_key: string;
2820
+ owner_indexer_id: string;
2821
+ document_kind: string;
2822
+ reader_goal: string;
2823
+ artifact_kind: string;
2824
+ }[];
2825
+ artifact_id: string;
2826
+ artifact_policy_variant: string;
2827
+ } | {
2828
+ artifact_kind: string;
2829
+ representation: "sections";
2830
+ artifact_id: string;
2831
+ artifact_policy_variant: string;
2832
+ sections: {
2833
+ section_key: string;
2834
+ owner_indexer_id: string;
2835
+ document_kind: string;
2836
+ reader_goal: string;
2837
+ artifact_kind: string;
2838
+ blocks: ({
2839
+ block_id: string;
2840
+ layer: "deterministic-block";
2841
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2842
+ fact_refs: string[];
2843
+ } | {
2844
+ evidence_refs: string[];
2845
+ block_id: string;
2846
+ layer: "semantic-prose";
2847
+ markdown: string;
2848
+ })[];
2849
+ }[];
2850
+ };
1313
2851
  }>, "many">;
1314
2852
  }, "strict", z.ZodTypeAny, {
1315
2853
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1316
2854
  proposals: {
1317
2855
  evidence_refs: {
1318
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1319
2856
  ref: string;
2857
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1320
2858
  source_digest: string;
1321
2859
  }[];
1322
2860
  composer_ref: string;
1323
2861
  target_node_ref: string;
1324
- artifact_kind: string;
1325
- artifact_key: string;
1326
- artifact_policy_variant: string;
1327
- variables: Record<string, IndexerJson>;
2862
+ artifact: {
2863
+ artifact_kind: string;
2864
+ representation: "template";
2865
+ template_id: string;
2866
+ variables: Record<string, {
2867
+ value: IndexerJson;
2868
+ evidence_refs: string[];
2869
+ fact_refs: string[];
2870
+ }>;
2871
+ section_projections: {
2872
+ section_key: string;
2873
+ owner_indexer_id: string;
2874
+ document_kind: string;
2875
+ reader_goal: string;
2876
+ artifact_kind: string;
2877
+ }[];
2878
+ artifact_id: string;
2879
+ artifact_policy_variant: string;
2880
+ } | {
2881
+ artifact_kind: string;
2882
+ representation: "sections";
2883
+ artifact_id: string;
2884
+ artifact_policy_variant: string;
2885
+ sections: {
2886
+ section_key: string;
2887
+ owner_indexer_id: string;
2888
+ document_kind: string;
2889
+ reader_goal: string;
2890
+ artifact_kind: string;
2891
+ blocks: ({
2892
+ block_id: string;
2893
+ layer: "deterministic-block";
2894
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2895
+ fact_refs: string[];
2896
+ } | {
2897
+ evidence_refs: string[];
2898
+ block_id: string;
2899
+ layer: "semantic-prose";
2900
+ markdown: string;
2901
+ })[];
2902
+ }[];
2903
+ };
1328
2904
  }[];
1329
2905
  }, {
1330
2906
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1331
2907
  proposals: {
1332
2908
  evidence_refs: {
1333
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1334
2909
  ref: string;
2910
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1335
2911
  source_digest: string;
1336
2912
  }[];
1337
2913
  composer_ref: string;
1338
2914
  target_node_ref: string;
1339
- artifact_kind: string;
1340
- artifact_key: string;
1341
- artifact_policy_variant: string;
1342
- variables: Record<string, IndexerJson>;
2915
+ artifact: {
2916
+ artifact_kind: string;
2917
+ representation: "template";
2918
+ template_id: string;
2919
+ variables: Record<string, {
2920
+ value: IndexerJson;
2921
+ evidence_refs: string[];
2922
+ fact_refs: string[];
2923
+ }>;
2924
+ section_projections: {
2925
+ section_key: string;
2926
+ owner_indexer_id: string;
2927
+ document_kind: string;
2928
+ reader_goal: string;
2929
+ artifact_kind: string;
2930
+ }[];
2931
+ artifact_id: string;
2932
+ artifact_policy_variant: string;
2933
+ } | {
2934
+ artifact_kind: string;
2935
+ representation: "sections";
2936
+ artifact_id: string;
2937
+ artifact_policy_variant: string;
2938
+ sections: {
2939
+ section_key: string;
2940
+ owner_indexer_id: string;
2941
+ document_kind: string;
2942
+ reader_goal: string;
2943
+ artifact_kind: string;
2944
+ blocks: ({
2945
+ block_id: string;
2946
+ layer: "deterministic-block";
2947
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
2948
+ fact_refs: string[];
2949
+ } | {
2950
+ evidence_refs: string[];
2951
+ block_id: string;
2952
+ layer: "semantic-prose";
2953
+ markdown: string;
2954
+ })[];
2955
+ }[];
2956
+ };
1343
2957
  }[];
1344
2958
  }>]>;
1345
2959
  payload_digest: z.ZodString;
@@ -1370,51 +2984,89 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1370
2984
  }>;
1371
2985
  }, "strict", z.ZodTypeAny, {
1372
2986
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1373
- layer_ref: string;
1374
- layer_integrity: string;
1375
- phase: "pre-authority" | "post-author";
1376
- target_refs: string[];
1377
2987
  payload: {
1378
2988
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1379
2989
  facts: {
1380
2990
  value: IndexerJson;
1381
- target_ref: string;
1382
- fact_id: string;
1383
2991
  evidence_refs: {
1384
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1385
2992
  ref: string;
2993
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1386
2994
  source_digest: string;
1387
2995
  }[];
2996
+ target_ref: string;
2997
+ fact_id: string;
1388
2998
  }[];
1389
2999
  } | {
1390
3000
  protocol: "context.indexer.fragment.template-variables/v1";
1391
3001
  variables: {
1392
3002
  value: IndexerJson;
1393
- target_ref: string;
1394
3003
  evidence_refs: {
1395
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1396
3004
  ref: string;
3005
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1397
3006
  source_digest: string;
1398
3007
  }[];
1399
3008
  template_id: string;
3009
+ target_ref: string;
1400
3010
  variable_id: string;
1401
3011
  }[];
1402
3012
  } | {
1403
3013
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1404
3014
  proposals: {
1405
3015
  evidence_refs: {
1406
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1407
3016
  ref: string;
3017
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1408
3018
  source_digest: string;
1409
3019
  }[];
1410
3020
  composer_ref: string;
1411
3021
  target_node_ref: string;
1412
- artifact_kind: string;
1413
- artifact_key: string;
1414
- artifact_policy_variant: string;
1415
- variables: Record<string, IndexerJson>;
3022
+ artifact: {
3023
+ artifact_kind: string;
3024
+ representation: "template";
3025
+ template_id: string;
3026
+ variables: Record<string, {
3027
+ value: IndexerJson;
3028
+ evidence_refs: string[];
3029
+ fact_refs: string[];
3030
+ }>;
3031
+ section_projections: {
3032
+ section_key: string;
3033
+ owner_indexer_id: string;
3034
+ document_kind: string;
3035
+ reader_goal: string;
3036
+ artifact_kind: string;
3037
+ }[];
3038
+ artifact_id: string;
3039
+ artifact_policy_variant: string;
3040
+ } | {
3041
+ artifact_kind: string;
3042
+ representation: "sections";
3043
+ artifact_id: string;
3044
+ artifact_policy_variant: string;
3045
+ sections: {
3046
+ section_key: string;
3047
+ owner_indexer_id: string;
3048
+ document_kind: string;
3049
+ reader_goal: string;
3050
+ artifact_kind: string;
3051
+ blocks: ({
3052
+ block_id: string;
3053
+ layer: "deterministic-block";
3054
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
3055
+ fact_refs: string[];
3056
+ } | {
3057
+ evidence_refs: string[];
3058
+ block_id: string;
3059
+ layer: "semantic-prose";
3060
+ markdown: string;
3061
+ })[];
3062
+ }[];
3063
+ };
1416
3064
  }[];
1417
3065
  };
3066
+ layer_ref: string;
3067
+ layer_integrity: string;
3068
+ phase: "pre-authority" | "post-author";
3069
+ target_refs: string[];
1418
3070
  fragment_digest: string;
1419
3071
  payload_digest: string;
1420
3072
  materialization_receipt: {
@@ -1429,51 +3081,89 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1429
3081
  composer_ref?: string | undefined;
1430
3082
  }, {
1431
3083
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1432
- layer_ref: string;
1433
- layer_integrity: string;
1434
- phase: "pre-authority" | "post-author";
1435
- target_refs: string[];
1436
3084
  payload: {
1437
3085
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1438
3086
  facts: {
1439
3087
  value: IndexerJson;
1440
- target_ref: string;
1441
- fact_id: string;
1442
3088
  evidence_refs: {
1443
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1444
3089
  ref: string;
3090
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1445
3091
  source_digest: string;
1446
3092
  }[];
3093
+ target_ref: string;
3094
+ fact_id: string;
1447
3095
  }[];
1448
3096
  } | {
1449
3097
  protocol: "context.indexer.fragment.template-variables/v1";
1450
3098
  variables: {
1451
3099
  value: IndexerJson;
1452
- target_ref: string;
1453
3100
  evidence_refs: {
1454
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1455
3101
  ref: string;
3102
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1456
3103
  source_digest: string;
1457
3104
  }[];
1458
3105
  template_id: string;
3106
+ target_ref: string;
1459
3107
  variable_id: string;
1460
3108
  }[];
1461
3109
  } | {
1462
3110
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1463
3111
  proposals: {
1464
3112
  evidence_refs: {
1465
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1466
3113
  ref: string;
3114
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1467
3115
  source_digest: string;
1468
3116
  }[];
1469
3117
  composer_ref: string;
1470
3118
  target_node_ref: string;
1471
- artifact_kind: string;
1472
- artifact_key: string;
1473
- artifact_policy_variant: string;
1474
- variables: Record<string, IndexerJson>;
3119
+ artifact: {
3120
+ artifact_kind: string;
3121
+ representation: "template";
3122
+ template_id: string;
3123
+ variables: Record<string, {
3124
+ value: IndexerJson;
3125
+ evidence_refs: string[];
3126
+ fact_refs: string[];
3127
+ }>;
3128
+ section_projections: {
3129
+ section_key: string;
3130
+ owner_indexer_id: string;
3131
+ document_kind: string;
3132
+ reader_goal: string;
3133
+ artifact_kind: string;
3134
+ }[];
3135
+ artifact_id: string;
3136
+ artifact_policy_variant: string;
3137
+ } | {
3138
+ artifact_kind: string;
3139
+ representation: "sections";
3140
+ artifact_id: string;
3141
+ artifact_policy_variant: string;
3142
+ sections: {
3143
+ section_key: string;
3144
+ owner_indexer_id: string;
3145
+ document_kind: string;
3146
+ reader_goal: string;
3147
+ artifact_kind: string;
3148
+ blocks: ({
3149
+ block_id: string;
3150
+ layer: "deterministic-block";
3151
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
3152
+ fact_refs: string[];
3153
+ } | {
3154
+ evidence_refs: string[];
3155
+ block_id: string;
3156
+ layer: "semantic-prose";
3157
+ markdown: string;
3158
+ })[];
3159
+ }[];
3160
+ };
1475
3161
  }[];
1476
3162
  };
3163
+ layer_ref: string;
3164
+ layer_integrity: string;
3165
+ phase: "pre-authority" | "post-author";
3166
+ target_refs: string[];
1477
3167
  fragment_digest: string;
1478
3168
  payload_digest: string;
1479
3169
  materialization_receipt: {
@@ -1507,51 +3197,89 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1507
3197
  final_authority_layer_ref: string;
1508
3198
  accepted_fragments: {
1509
3199
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1510
- layer_ref: string;
1511
- layer_integrity: string;
1512
- phase: "pre-authority" | "post-author";
1513
- target_refs: string[];
1514
3200
  payload: {
1515
3201
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1516
3202
  facts: {
1517
3203
  value: IndexerJson;
1518
- target_ref: string;
1519
- fact_id: string;
1520
3204
  evidence_refs: {
1521
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1522
3205
  ref: string;
3206
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1523
3207
  source_digest: string;
1524
3208
  }[];
3209
+ target_ref: string;
3210
+ fact_id: string;
1525
3211
  }[];
1526
3212
  } | {
1527
3213
  protocol: "context.indexer.fragment.template-variables/v1";
1528
3214
  variables: {
1529
3215
  value: IndexerJson;
1530
- target_ref: string;
1531
3216
  evidence_refs: {
1532
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1533
3217
  ref: string;
3218
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1534
3219
  source_digest: string;
1535
3220
  }[];
1536
3221
  template_id: string;
3222
+ target_ref: string;
1537
3223
  variable_id: string;
1538
3224
  }[];
1539
3225
  } | {
1540
3226
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1541
3227
  proposals: {
1542
3228
  evidence_refs: {
1543
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1544
3229
  ref: string;
3230
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1545
3231
  source_digest: string;
1546
3232
  }[];
1547
3233
  composer_ref: string;
1548
3234
  target_node_ref: string;
1549
- artifact_kind: string;
1550
- artifact_key: string;
1551
- artifact_policy_variant: string;
1552
- variables: Record<string, IndexerJson>;
3235
+ artifact: {
3236
+ artifact_kind: string;
3237
+ representation: "template";
3238
+ template_id: string;
3239
+ variables: Record<string, {
3240
+ value: IndexerJson;
3241
+ evidence_refs: string[];
3242
+ fact_refs: string[];
3243
+ }>;
3244
+ section_projections: {
3245
+ section_key: string;
3246
+ owner_indexer_id: string;
3247
+ document_kind: string;
3248
+ reader_goal: string;
3249
+ artifact_kind: string;
3250
+ }[];
3251
+ artifact_id: string;
3252
+ artifact_policy_variant: string;
3253
+ } | {
3254
+ artifact_kind: string;
3255
+ representation: "sections";
3256
+ artifact_id: string;
3257
+ artifact_policy_variant: string;
3258
+ sections: {
3259
+ section_key: string;
3260
+ owner_indexer_id: string;
3261
+ document_kind: string;
3262
+ reader_goal: string;
3263
+ artifact_kind: string;
3264
+ blocks: ({
3265
+ block_id: string;
3266
+ layer: "deterministic-block";
3267
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
3268
+ fact_refs: string[];
3269
+ } | {
3270
+ evidence_refs: string[];
3271
+ block_id: string;
3272
+ layer: "semantic-prose";
3273
+ markdown: string;
3274
+ })[];
3275
+ }[];
3276
+ };
1553
3277
  }[];
1554
3278
  };
3279
+ layer_ref: string;
3280
+ layer_integrity: string;
3281
+ phase: "pre-authority" | "post-author";
3282
+ target_refs: string[];
1555
3283
  fragment_digest: string;
1556
3284
  payload_digest: string;
1557
3285
  materialization_receipt: {
@@ -1577,51 +3305,89 @@ export declare const indexerLayerCompositionInputSchema: z.ZodObject<{
1577
3305
  final_authority_layer_ref: string;
1578
3306
  accepted_fragments: {
1579
3307
  kind: "fact-enrichment" | "template-variables" | "derived-artifact-proposal";
1580
- layer_ref: string;
1581
- layer_integrity: string;
1582
- phase: "pre-authority" | "post-author";
1583
- target_refs: string[];
1584
3308
  payload: {
1585
3309
  protocol: "context.indexer.fragment.fact-enrichment/v1";
1586
3310
  facts: {
1587
3311
  value: IndexerJson;
1588
- target_ref: string;
1589
- fact_id: string;
1590
3312
  evidence_refs: {
1591
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1592
3313
  ref: string;
3314
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1593
3315
  source_digest: string;
1594
3316
  }[];
3317
+ target_ref: string;
3318
+ fact_id: string;
1595
3319
  }[];
1596
3320
  } | {
1597
3321
  protocol: "context.indexer.fragment.template-variables/v1";
1598
3322
  variables: {
1599
3323
  value: IndexerJson;
1600
- target_ref: string;
1601
3324
  evidence_refs: {
1602
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1603
3325
  ref: string;
3326
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1604
3327
  source_digest: string;
1605
3328
  }[];
1606
3329
  template_id: string;
3330
+ target_ref: string;
1607
3331
  variable_id: string;
1608
3332
  }[];
1609
3333
  } | {
1610
3334
  protocol: "context.indexer.fragment.derived-artifact-proposal/v1";
1611
3335
  proposals: {
1612
3336
  evidence_refs: {
1613
- kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1614
3337
  ref: string;
3338
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
1615
3339
  source_digest: string;
1616
3340
  }[];
1617
3341
  composer_ref: string;
1618
3342
  target_node_ref: string;
1619
- artifact_kind: string;
1620
- artifact_key: string;
1621
- artifact_policy_variant: string;
1622
- variables: Record<string, IndexerJson>;
3343
+ artifact: {
3344
+ artifact_kind: string;
3345
+ representation: "template";
3346
+ template_id: string;
3347
+ variables: Record<string, {
3348
+ value: IndexerJson;
3349
+ evidence_refs: string[];
3350
+ fact_refs: string[];
3351
+ }>;
3352
+ section_projections: {
3353
+ section_key: string;
3354
+ owner_indexer_id: string;
3355
+ document_kind: string;
3356
+ reader_goal: string;
3357
+ artifact_kind: string;
3358
+ }[];
3359
+ artifact_id: string;
3360
+ artifact_policy_variant: string;
3361
+ } | {
3362
+ artifact_kind: string;
3363
+ representation: "sections";
3364
+ artifact_id: string;
3365
+ artifact_policy_variant: string;
3366
+ sections: {
3367
+ section_key: string;
3368
+ owner_indexer_id: string;
3369
+ document_kind: string;
3370
+ reader_goal: string;
3371
+ artifact_kind: string;
3372
+ blocks: ({
3373
+ block_id: string;
3374
+ layer: "deterministic-block";
3375
+ renderer: "bullet-list" | "key-value-table" | "json-code-block";
3376
+ fact_refs: string[];
3377
+ } | {
3378
+ evidence_refs: string[];
3379
+ block_id: string;
3380
+ layer: "semantic-prose";
3381
+ markdown: string;
3382
+ })[];
3383
+ }[];
3384
+ };
1623
3385
  }[];
1624
3386
  };
3387
+ layer_ref: string;
3388
+ layer_integrity: string;
3389
+ phase: "pre-authority" | "post-author";
3390
+ target_refs: string[];
1625
3391
  fragment_digest: string;
1626
3392
  payload_digest: string;
1627
3393
  materialization_receipt: {