@c4a/context 0.6.19 → 0.7.0

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