@c4a/context 0.7.0 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +65 -170
  2. package/README.zh-CN.md +52 -129
  3. package/docs/README.md +9 -10
  4. package/docs/README.zh-CN.md +6 -7
  5. package/docs/getting-started.md +73 -422
  6. package/docs/guides/agent-guide.md +94 -523
  7. package/docs/guides/code-indexer-skill-authoring.md +24 -13
  8. package/docs/guides/markdown-indexer-skill-authoring.md +14 -14
  9. package/docs/reference/code-extractors.md +29 -136
  10. package/docs/reference/indexer-provider-protocol.md +60 -138
  11. package/docs/reference/package-templates.md +2 -3
  12. package/docs/reference/project-api.md +52 -985
  13. package/index.d.ts +12 -10
  14. package/index.js +12749 -15335
  15. package/indexerAgentStepProtocol.d.ts +1366 -7649
  16. package/indexerArtifact.d.ts +225 -0
  17. package/indexerArtifactDependencies.d.ts +41 -39
  18. package/indexerArtifactResult.d.ts +221 -255
  19. package/indexerAuthorizedWorksetView.d.ts +368 -0
  20. package/indexerBaseQuestionAmendment.d.ts +484 -280
  21. package/indexerBenchmark.d.ts +16 -16
  22. package/indexerCandidateCompile.d.ts +206 -16
  23. package/indexerCapabilityGroupEvidence.d.ts +6 -6
  24. package/indexerCatalogFallback.d.ts +122 -128
  25. package/indexerCollectionMapping.d.ts +13 -13
  26. package/indexerContentLayers.d.ts +8 -8
  27. package/{indexerOverlayTrust.d.ts → indexerContractOverlay.d.ts} +23 -569
  28. package/indexerControlledInvocation.d.ts +12 -12
  29. package/indexerControlledProgram.d.ts +2467 -2797
  30. package/indexerCoreExports.d.ts +6 -6
  31. package/indexerCustomizationDraft.d.ts +3315 -2091
  32. package/indexerCustomizationLadder.d.ts +2 -2
  33. package/indexerDependencyView.d.ts +108 -108
  34. package/indexerEffectiveArtifact.d.ts +1134 -0
  35. package/indexerEvidenceAdapterAuthorityMerge.d.ts +48 -0
  36. package/indexerEvidenceAdapterResult.d.ts +52 -52
  37. package/indexerExampleDecision.d.ts +128 -128
  38. package/indexerExampleIdentity.d.ts +6 -6
  39. package/indexerGeneratedAuthoringAudit.d.ts +18 -18
  40. package/indexerIncrementalImpact.d.ts +16 -16
  41. package/indexerInspectorWorksetProjection.d.ts +6 -0
  42. package/indexerInventoryDisposition.d.ts +70 -70
  43. package/indexerLayerComposition.d.ts +2139 -373
  44. package/indexerLayoutChange.d.ts +10 -10
  45. package/indexerLayoutProposalSet.d.ts +71 -66
  46. package/indexerLayoutResolver.d.ts +53 -48
  47. package/indexerLayoutTransition.d.ts +0 -50
  48. package/indexerLifecycle.d.ts +0 -13
  49. package/indexerMainLifecycle.d.ts +10 -0
  50. package/indexerMainRunLedger.d.ts +138 -11
  51. package/indexerMainRunProtocol.d.ts +1406 -785
  52. package/indexerMainWorkset.d.ts +460 -206
  53. package/indexerMaterialGapLedger.d.ts +13 -2904
  54. package/indexerOverlayQuestionAmendment.d.ts +497 -293
  55. package/indexerOverlayQuestionApplyProposal.d.ts +1030 -622
  56. package/indexerParserCapabilityCatalog.d.ts +136 -0
  57. package/indexerParserCoordinate.d.ts +16 -16
  58. package/indexerParserDependencyIntent.d.ts +22 -0
  59. package/indexerParserExecutionPlan.d.ts +388 -0
  60. package/indexerParserFactView.d.ts +42 -22
  61. package/indexerPartitionConvergence.d.ts +0 -3
  62. package/indexerPartitionInventory.d.ts +2 -0
  63. package/indexerPartitionPlan.d.ts +101 -99
  64. package/indexerPhysicalArtifactManifest.d.ts +8 -8
  65. package/indexerPostAuthorComposition.d.ts +116 -1156
  66. package/indexerPostAuthorRunLedger.d.ts +1434 -280
  67. package/indexerPrimaryProjection.d.ts +10 -10
  68. package/indexerPrimaryResultView.d.ts +435 -0
  69. package/indexerProfileContract.d.ts +181 -181
  70. package/indexerProgramExecutionAuthorization.d.ts +12 -12
  71. package/indexerProgramRunProtocol.d.ts +2141 -2749
  72. package/indexerProjectProposal.d.ts +496 -292
  73. package/indexerProjectedArtifactFanOutAudit.d.ts +0 -3
  74. package/indexerProtocolCommon.d.ts +4 -1
  75. package/indexerProvider.d.ts +134 -281
  76. package/indexerProviderComposition.d.ts +53 -53
  77. package/indexerProviderResolution.d.ts +12 -12
  78. package/indexerProviderResolutionAction.d.ts +14 -14
  79. package/indexerProviderRouting.d.ts +923 -515
  80. package/indexerProviderSelectionProposal.d.ts +893 -485
  81. package/indexerQuestionAuthority.d.ts +46 -47
  82. package/indexerReaderTargetInventory.d.ts +8 -8
  83. package/indexerRegistry.d.ts +765 -357
  84. package/indexerRequirementConfirmation.d.ts +98 -98
  85. package/indexerRequirementLifecycle.d.ts +224 -224
  86. package/indexerResultReconciliation.d.ts +204 -5919
  87. package/indexerResultReconciliationRun.d.ts +0 -1
  88. package/indexerRunEnvelope.d.ts +20 -20
  89. package/indexerSemanticInput.d.ts +3678 -0
  90. package/indexerStructuredDeclaration.d.ts +57 -53
  91. package/indexerSubjectCatalog.d.ts +14 -14
  92. package/indexerSubjectIdentity.d.ts +2 -2
  93. package/indexerSubjectKeyAuthority.d.ts +31 -30
  94. package/indexerTemplateRendering.d.ts +64 -64
  95. package/indexerToolSnapshot.d.ts +8 -8
  96. package/package.json +1 -1
  97. package/phases.d.ts +3 -183
  98. package/codeIndexPlan.d.ts +0 -158
  99. package/indexerAuditFacts.d.ts +0 -66
  100. package/indexerAuditOverrideReadiness.d.ts +0 -27
  101. package/indexerAuditProtocol.d.ts +0 -238
  102. package/indexerAuditRevision.d.ts +0 -726
  103. package/indexerAuditRevisionActions.d.ts +0 -236
  104. package/indexerMaterialAnswer.d.ts +0 -738
  105. package/indexerMaterialAnswerActualization.d.ts +0 -91
  106. package/indexerMaterialAnswerExecutionPlan.d.ts +0 -2887
  107. package/indexerMaterialAnswerFlow.d.ts +0 -63
  108. package/indexerMaterialAnswerLayout.d.ts +0 -76
  109. package/indexerMaterialAnswerReview.d.ts +0 -217
  110. package/indexerMaterialAnswerReviewRoute.d.ts +0 -6145
  111. package/indexerMaterialAnswerRunLedger.d.ts +0 -918
  112. package/indexerMaterialAnswerRunProtocol.d.ts +0 -1253
  113. package/indexerMaterialQuestionExclusion.d.ts +0 -129
  114. package/indexerMaterialQuestionWorkset.d.ts +0 -508
  115. package/indexerPlannedMaterialAnswer.d.ts +0 -116
  116. package/indexerProfileMetricAudit.d.ts +0 -218
  117. package/indexerWorksetRead.d.ts +0 -287
@@ -217,15 +217,15 @@ export declare const indexerBenchmarkObservationSchema: z.ZodObject<{
217
217
  actual_count: z.ZodNumber;
218
218
  reason_codes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
219
219
  }, "strict", z.ZodTypeAny, {
220
- reason_codes: string[];
221
220
  expected_min: number | null;
222
221
  expected_max: number | null;
223
222
  actual_count: number;
224
- }, {
225
223
  reason_codes: string[];
224
+ }, {
226
225
  expected_min: number | null;
227
226
  expected_max: number | null;
228
227
  actual_count: number;
228
+ reason_codes: string[];
229
229
  }>;
230
230
  quality_negative_samples: z.ZodArray<z.ZodObject<{
231
231
  category: z.ZodEnum<["missing", "duplicate", "placeholder", "representative-only-coverage", "fabricated-call-chain"]>;
@@ -368,10 +368,10 @@ export declare const indexerBenchmarkObservationSchema: z.ZodObject<{
368
368
  actual_path: string | null;
369
369
  }[];
370
370
  page_deviation: {
371
- reason_codes: string[];
372
371
  expected_min: number | null;
373
372
  expected_max: number | null;
374
373
  actual_count: number;
374
+ reason_codes: string[];
375
375
  };
376
376
  quality_negative_samples: {
377
377
  disposition: "blocking" | "cleared" | "review-required";
@@ -439,10 +439,10 @@ export declare const indexerBenchmarkObservationSchema: z.ZodObject<{
439
439
  actual_path: string | null;
440
440
  }[];
441
441
  page_deviation: {
442
- reason_codes: string[];
443
442
  expected_min: number | null;
444
443
  expected_max: number | null;
445
444
  actual_count: number;
445
+ reason_codes: string[];
446
446
  };
447
447
  quality_negative_samples: {
448
448
  disposition: "blocking" | "cleared" | "review-required";
@@ -602,16 +602,16 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
602
602
  state: z.ZodEnum<["not-estimated", "below", "within", "above"]>;
603
603
  }, "strict", z.ZodTypeAny, {
604
604
  state: "not-estimated" | "below" | "within" | "above";
605
- reason_codes: string[];
606
605
  expected_min: number | null;
607
606
  expected_max: number | null;
608
607
  actual_count: number;
608
+ reason_codes: string[];
609
609
  }, {
610
610
  state: "not-estimated" | "below" | "within" | "above";
611
- reason_codes: string[];
612
611
  expected_min: number | null;
613
612
  expected_max: number | null;
614
613
  actual_count: number;
614
+ reason_codes: string[];
615
615
  }>;
616
616
  quality_negative_samples: z.ZodArray<z.ZodObject<{
617
617
  category: z.ZodEnum<["missing", "duplicate", "placeholder", "representative-only-coverage", "fabricated-call-chain"]>;
@@ -724,14 +724,14 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
724
724
  severity: z.ZodEnum<["advisory", "blocking"]>;
725
725
  }, "strict", z.ZodTypeAny, {
726
726
  severity: "blocking" | "advisory";
727
- difference_ref: string;
728
727
  category: string;
728
+ difference_ref: string;
729
729
  expected_digest: string | null;
730
730
  actual_digest: string | null;
731
731
  }, {
732
732
  severity: "blocking" | "advisory";
733
- difference_ref: string;
734
733
  category: string;
734
+ difference_ref: string;
735
735
  expected_digest: string | null;
736
736
  actual_digest: string | null;
737
737
  }>, "many">;
@@ -768,10 +768,10 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
768
768
  }[];
769
769
  page_deviation: {
770
770
  state: "not-estimated" | "below" | "within" | "above";
771
- reason_codes: string[];
772
771
  expected_min: number | null;
773
772
  expected_max: number | null;
774
773
  actual_count: number;
774
+ reason_codes: string[];
775
775
  };
776
776
  quality_negative_samples: {
777
777
  disposition: "blocking" | "cleared" | "review-required";
@@ -827,8 +827,8 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
827
827
  }[];
828
828
  oracle_differences: {
829
829
  severity: "blocking" | "advisory";
830
- difference_ref: string;
831
830
  category: string;
831
+ difference_ref: string;
832
832
  expected_digest: string | null;
833
833
  actual_digest: string | null;
834
834
  }[];
@@ -863,10 +863,10 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
863
863
  }[];
864
864
  page_deviation: {
865
865
  state: "not-estimated" | "below" | "within" | "above";
866
- reason_codes: string[];
867
866
  expected_min: number | null;
868
867
  expected_max: number | null;
869
868
  actual_count: number;
869
+ reason_codes: string[];
870
870
  };
871
871
  quality_negative_samples: {
872
872
  disposition: "blocking" | "cleared" | "review-required";
@@ -922,8 +922,8 @@ export declare const indexerBenchmarkReportSchema: z.ZodObject<{
922
922
  }[];
923
923
  oracle_differences: {
924
924
  severity: "blocking" | "advisory";
925
- difference_ref: string;
926
925
  category: string;
926
+ difference_ref: string;
927
927
  expected_digest: string | null;
928
928
  actual_digest: string | null;
929
929
  }[];
@@ -1004,14 +1004,14 @@ export declare const indexerBenchmarkOracleEvaluationSchema: z.ZodObject<{
1004
1004
  severity: z.ZodEnum<["advisory", "blocking"]>;
1005
1005
  }, "strict", z.ZodTypeAny, {
1006
1006
  severity: "blocking" | "advisory";
1007
- difference_ref: string;
1008
1007
  category: string;
1008
+ difference_ref: string;
1009
1009
  expected_digest: string | null;
1010
1010
  actual_digest: string | null;
1011
1011
  }, {
1012
1012
  severity: "blocking" | "advisory";
1013
- difference_ref: string;
1014
1013
  category: string;
1014
+ difference_ref: string;
1015
1015
  expected_digest: string | null;
1016
1016
  actual_digest: string | null;
1017
1017
  }>, "many">;
@@ -1019,8 +1019,8 @@ export declare const indexerBenchmarkOracleEvaluationSchema: z.ZodObject<{
1019
1019
  oracle_ref: string;
1020
1020
  differences: {
1021
1021
  severity: "blocking" | "advisory";
1022
- difference_ref: string;
1023
1022
  category: string;
1023
+ difference_ref: string;
1024
1024
  expected_digest: string | null;
1025
1025
  actual_digest: string | null;
1026
1026
  }[];
@@ -1028,8 +1028,8 @@ export declare const indexerBenchmarkOracleEvaluationSchema: z.ZodObject<{
1028
1028
  oracle_ref: string;
1029
1029
  differences: {
1030
1030
  severity: "blocking" | "advisory";
1031
- difference_ref: string;
1032
1031
  category: string;
1032
+ difference_ref: string;
1033
1033
  expected_digest: string | null;
1034
1034
  actual_digest: string | null;
1035
1035
  }[];
@@ -11,6 +11,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
11
11
  run_result_digest: z.ZodString;
12
12
  indexer_result_digest: z.ZodString;
13
13
  artifact_result_digest: z.ZodString;
14
+ post_author_composition_fingerprint: z.ZodNullable<z.ZodString>;
14
15
  layout_proposal_digest: z.ZodString;
15
16
  run_envelope_digest: z.ZodString;
16
17
  shared_artifact_fingerprint: z.ZodObject<{
@@ -64,6 +65,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
64
65
  execution_request_digest: string;
65
66
  run_envelope_digest: string;
66
67
  acceptance_digest: string;
68
+ post_author_composition_fingerprint: string | null;
67
69
  run_result_digest: string;
68
70
  indexer_result_digest: string;
69
71
  layout_proposal_digest: string;
@@ -88,14 +90,76 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
88
90
  execution_request_digest: string;
89
91
  run_envelope_digest: string;
90
92
  acceptance_digest: string;
93
+ post_author_composition_fingerprint: string | null;
91
94
  run_result_digest: string;
92
95
  indexer_result_digest: string;
93
96
  layout_proposal_digest: string;
94
97
  }>, "many">;
95
98
  files: z.ZodArray<z.ZodObject<{
96
99
  artifact_ref: z.ZodString;
100
+ node_ref: z.ZodString;
101
+ internal_view_ref: z.ZodString;
102
+ collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
103
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
97
104
  output_path: z.ZodEffects<z.ZodString, string, string>;
98
105
  indexer_id: z.ZodEffects<z.ZodString, string, string>;
106
+ source_ref: z.ZodString;
107
+ evidence_bindings: z.ZodArray<z.ZodObject<{
108
+ evidence_ref: z.ZodString;
109
+ kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
110
+ source_ref: z.ZodString;
111
+ module_ref: z.ZodNullable<z.ZodString>;
112
+ locator: z.ZodEffects<z.ZodObject<{
113
+ path: z.ZodEffects<z.ZodString, string, string>;
114
+ start_line: z.ZodNumber;
115
+ end_line: z.ZodNumber;
116
+ }, "strict", z.ZodTypeAny, {
117
+ path: string;
118
+ start_line: number;
119
+ end_line: number;
120
+ }, {
121
+ path: string;
122
+ start_line: number;
123
+ end_line: number;
124
+ }>, {
125
+ path: string;
126
+ start_line: number;
127
+ end_line: number;
128
+ }, {
129
+ path: string;
130
+ start_line: number;
131
+ end_line: number;
132
+ }>;
133
+ content_digest: z.ZodString;
134
+ coverage_tier: z.ZodEnum<["ast-catalog", "lightweight-evidence"]>;
135
+ binding_digest: z.ZodString;
136
+ }, "strict", z.ZodTypeAny, {
137
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
138
+ source_ref: string;
139
+ locator: {
140
+ path: string;
141
+ start_line: number;
142
+ end_line: number;
143
+ };
144
+ content_digest: string;
145
+ module_ref: string | null;
146
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
147
+ evidence_ref: string;
148
+ binding_digest: string;
149
+ }, {
150
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
151
+ source_ref: string;
152
+ locator: {
153
+ path: string;
154
+ start_line: number;
155
+ end_line: number;
156
+ };
157
+ content_digest: string;
158
+ module_ref: string | null;
159
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
160
+ evidence_ref: string;
161
+ binding_digest: string;
162
+ }>, "many">;
99
163
  acceptance_digest: z.ZodString;
100
164
  indexer_result_digest: z.ZodString;
101
165
  artifact_result_digest: z.ZodString;
@@ -103,17 +167,62 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
103
167
  result_binding_digest: z.ZodString;
104
168
  shared_artifact_fingerprint_digest: z.ZodString;
105
169
  section_refs: z.ZodArray<z.ZodString, "many">;
170
+ sections: z.ZodArray<z.ZodObject<{
171
+ section_ref: z.ZodString;
172
+ section_key: z.ZodEffects<z.ZodString, string, string>;
173
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
174
+ markdown: z.ZodString;
175
+ markdown_digest: z.ZodString;
176
+ }, "strict", z.ZodTypeAny, {
177
+ evidence_refs: string[];
178
+ markdown: string;
179
+ section_key: string;
180
+ section_ref: string;
181
+ markdown_digest: string;
182
+ }, {
183
+ evidence_refs: string[];
184
+ markdown: string;
185
+ section_key: string;
186
+ section_ref: string;
187
+ markdown_digest: string;
188
+ }>, "many">;
106
189
  markdown: z.ZodString;
107
190
  markdown_digest: z.ZodString;
108
191
  } & {
109
192
  file_digest: z.ZodString;
110
193
  }, "strict", z.ZodTypeAny, {
194
+ source_ref: string;
111
195
  output_path: string;
112
- indexer_id: string;
113
196
  markdown: string;
197
+ artifact_kind: string;
198
+ sections: {
199
+ evidence_refs: string[];
200
+ markdown: string;
201
+ section_key: string;
202
+ section_ref: string;
203
+ markdown_digest: string;
204
+ }[];
205
+ collection: import("./contracts.js").TopLevelNamespace;
206
+ indexer_id: string;
207
+ node_ref: string;
114
208
  artifact_result_digest: string;
209
+ evidence_bindings: {
210
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
211
+ source_ref: string;
212
+ locator: {
213
+ path: string;
214
+ start_line: number;
215
+ end_line: number;
216
+ };
217
+ content_digest: string;
218
+ module_ref: string | null;
219
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
220
+ evidence_ref: string;
221
+ binding_digest: string;
222
+ }[];
115
223
  artifact_ref: string;
116
224
  acceptance_digest: string;
225
+ internal_view_ref: string;
117
226
  shared_artifact_fingerprint_digest: string;
118
227
  section_refs: string[];
119
228
  markdown_digest: string;
@@ -122,12 +231,38 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
122
231
  result_binding_digest: string;
123
232
  file_digest: string;
124
233
  }, {
234
+ source_ref: string;
125
235
  output_path: string;
126
- indexer_id: string;
127
236
  markdown: string;
237
+ artifact_kind: string;
238
+ sections: {
239
+ evidence_refs: string[];
240
+ markdown: string;
241
+ section_key: string;
242
+ section_ref: string;
243
+ markdown_digest: string;
244
+ }[];
245
+ collection: import("./contracts.js").TopLevelNamespace;
246
+ indexer_id: string;
247
+ node_ref: string;
128
248
  artifact_result_digest: string;
249
+ evidence_bindings: {
250
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
251
+ source_ref: string;
252
+ locator: {
253
+ path: string;
254
+ start_line: number;
255
+ end_line: number;
256
+ };
257
+ content_digest: string;
258
+ module_ref: string | null;
259
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
260
+ evidence_ref: string;
261
+ binding_digest: string;
262
+ }[];
129
263
  artifact_ref: string;
130
264
  acceptance_digest: string;
265
+ internal_view_ref: string;
131
266
  shared_artifact_fingerprint_digest: string;
132
267
  section_refs: string[];
133
268
  markdown_digest: string;
@@ -217,8 +352,8 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
217
352
  reason: "unregistered-output-path";
218
353
  }>]>;
219
354
  }, "strict", z.ZodTypeAny, {
220
- empty: boolean;
221
355
  output_path: string;
356
+ empty: boolean;
222
357
  owner: {
223
358
  kind: "logical-unit";
224
359
  artifact_kind: string;
@@ -248,8 +383,8 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
248
383
  byte_count: number;
249
384
  reader_body_line_count: number;
250
385
  }, {
251
- empty: boolean;
252
386
  output_path: string;
387
+ empty: boolean;
253
388
  owner: {
254
389
  kind: "logical-unit";
255
390
  artifact_kind: string;
@@ -282,10 +417,9 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
282
417
  } & {
283
418
  manifest_digest: z.ZodString;
284
419
  }, "strict", z.ZodTypeAny, {
285
- protocol: "context.indexer.artifact-manifest/v1";
286
420
  files: {
287
- empty: boolean;
288
421
  output_path: string;
422
+ empty: boolean;
289
423
  owner: {
290
424
  kind: "logical-unit";
291
425
  artifact_kind: string;
@@ -315,13 +449,13 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
315
449
  byte_count: number;
316
450
  reader_body_line_count: number;
317
451
  }[];
452
+ protocol: "context.indexer.artifact-manifest/v1";
318
453
  manifest_digest: string;
319
454
  layout_proposal_set_digest: string;
320
455
  }, {
321
- protocol: "context.indexer.artifact-manifest/v1";
322
456
  files: {
323
- empty: boolean;
324
457
  output_path: string;
458
+ empty: boolean;
325
459
  owner: {
326
460
  kind: "logical-unit";
327
461
  artifact_kind: string;
@@ -351,6 +485,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
351
485
  byte_count: number;
352
486
  reader_body_line_count: number;
353
487
  }[];
488
+ protocol: "context.indexer.artifact-manifest/v1";
354
489
  manifest_digest: string;
355
490
  layout_proposal_set_digest: string;
356
491
  }>;
@@ -534,14 +669,39 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
534
669
  } & {
535
670
  compile_digest: z.ZodString;
536
671
  }, "strict", z.ZodTypeAny, {
537
- protocol: "context.indexer.candidate-compile/v1";
538
672
  files: {
673
+ source_ref: string;
539
674
  output_path: string;
540
- indexer_id: string;
541
675
  markdown: string;
676
+ artifact_kind: string;
677
+ sections: {
678
+ evidence_refs: string[];
679
+ markdown: string;
680
+ section_key: string;
681
+ section_ref: string;
682
+ markdown_digest: string;
683
+ }[];
684
+ collection: import("./contracts.js").TopLevelNamespace;
685
+ indexer_id: string;
686
+ node_ref: string;
542
687
  artifact_result_digest: string;
688
+ evidence_bindings: {
689
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
690
+ source_ref: string;
691
+ locator: {
692
+ path: string;
693
+ start_line: number;
694
+ end_line: number;
695
+ };
696
+ content_digest: string;
697
+ module_ref: string | null;
698
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
699
+ evidence_ref: string;
700
+ binding_digest: string;
701
+ }[];
543
702
  artifact_ref: string;
544
703
  acceptance_digest: string;
704
+ internal_view_ref: string;
545
705
  shared_artifact_fingerprint_digest: string;
546
706
  section_refs: string[];
547
707
  markdown_digest: string;
@@ -550,6 +710,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
550
710
  result_binding_digest: string;
551
711
  file_digest: string;
552
712
  }[];
713
+ protocol: "context.indexer.candidate-compile/v1";
553
714
  accepted_result_set_digest: string;
554
715
  layout_proposal_set_digest: string;
555
716
  layout_transition_digest: string;
@@ -574,15 +735,15 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
574
735
  execution_request_digest: string;
575
736
  run_envelope_digest: string;
576
737
  acceptance_digest: string;
738
+ post_author_composition_fingerprint: string | null;
577
739
  run_result_digest: string;
578
740
  indexer_result_digest: string;
579
741
  layout_proposal_digest: string;
580
742
  }[];
581
743
  artifact_manifest: {
582
- protocol: "context.indexer.artifact-manifest/v1";
583
744
  files: {
584
- empty: boolean;
585
745
  output_path: string;
746
+ empty: boolean;
586
747
  owner: {
587
748
  kind: "logical-unit";
588
749
  artifact_kind: string;
@@ -612,6 +773,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
612
773
  byte_count: number;
613
774
  reader_body_line_count: number;
614
775
  }[];
776
+ protocol: "context.indexer.artifact-manifest/v1";
615
777
  manifest_digest: string;
616
778
  layout_proposal_set_digest: string;
617
779
  };
@@ -657,14 +819,39 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
657
819
  };
658
820
  compile_digest: string;
659
821
  }, {
660
- protocol: "context.indexer.candidate-compile/v1";
661
822
  files: {
823
+ source_ref: string;
662
824
  output_path: string;
663
- indexer_id: string;
664
825
  markdown: string;
826
+ artifact_kind: string;
827
+ sections: {
828
+ evidence_refs: string[];
829
+ markdown: string;
830
+ section_key: string;
831
+ section_ref: string;
832
+ markdown_digest: string;
833
+ }[];
834
+ collection: import("./contracts.js").TopLevelNamespace;
835
+ indexer_id: string;
836
+ node_ref: string;
665
837
  artifact_result_digest: string;
838
+ evidence_bindings: {
839
+ kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
840
+ source_ref: string;
841
+ locator: {
842
+ path: string;
843
+ start_line: number;
844
+ end_line: number;
845
+ };
846
+ content_digest: string;
847
+ module_ref: string | null;
848
+ coverage_tier: "ast-catalog" | "lightweight-evidence";
849
+ evidence_ref: string;
850
+ binding_digest: string;
851
+ }[];
666
852
  artifact_ref: string;
667
853
  acceptance_digest: string;
854
+ internal_view_ref: string;
668
855
  shared_artifact_fingerprint_digest: string;
669
856
  section_refs: string[];
670
857
  markdown_digest: string;
@@ -673,6 +860,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
673
860
  result_binding_digest: string;
674
861
  file_digest: string;
675
862
  }[];
863
+ protocol: "context.indexer.candidate-compile/v1";
676
864
  accepted_result_set_digest: string;
677
865
  layout_proposal_set_digest: string;
678
866
  layout_transition_digest: string;
@@ -697,15 +885,15 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
697
885
  execution_request_digest: string;
698
886
  run_envelope_digest: string;
699
887
  acceptance_digest: string;
888
+ post_author_composition_fingerprint: string | null;
700
889
  run_result_digest: string;
701
890
  indexer_result_digest: string;
702
891
  layout_proposal_digest: string;
703
892
  }[];
704
893
  artifact_manifest: {
705
- protocol: "context.indexer.artifact-manifest/v1";
706
894
  files: {
707
- empty: boolean;
708
895
  output_path: string;
896
+ empty: boolean;
709
897
  owner: {
710
898
  kind: "logical-unit";
711
899
  artifact_kind: string;
@@ -735,6 +923,7 @@ export declare const indexerCandidateCompileSchema: z.ZodObject<{
735
923
  byte_count: number;
736
924
  reader_body_line_count: number;
737
925
  }[];
926
+ protocol: "context.indexer.artifact-manifest/v1";
738
927
  manifest_digest: string;
739
928
  layout_proposal_set_digest: string;
740
929
  };
@@ -785,6 +974,7 @@ export interface IndexerAcceptedAuthorResultInput {
785
974
  run_result: unknown;
786
975
  accepted_record: unknown;
787
976
  run_envelope: unknown;
977
+ post_author_envelope?: unknown | null;
788
978
  rendered_artifacts?: readonly unknown[];
789
979
  }
790
980
  export declare function buildIndexerCandidateCompile(input: {
@@ -26,12 +26,12 @@ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
26
26
  evidence_refs: z.ZodArray<z.ZodString, "many">;
27
27
  }, "strict", z.ZodTypeAny, {
28
28
  evidence_refs: string[];
29
- artifact_id: string;
30
29
  section_key: string;
30
+ artifact_id: string;
31
31
  }, {
32
32
  evidence_refs: string[];
33
- artifact_id: string;
34
33
  section_key: string;
34
+ artifact_id: string;
35
35
  }>, "many">;
36
36
  }, "strict", z.ZodTypeAny, {
37
37
  capability_group_ref: string;
@@ -42,8 +42,8 @@ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
42
42
  }[];
43
43
  section_evidence: {
44
44
  evidence_refs: string[];
45
- artifact_id: string;
46
45
  section_key: string;
46
+ artifact_id: string;
47
47
  }[];
48
48
  }, {
49
49
  capability_group_ref: string;
@@ -54,8 +54,8 @@ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
54
54
  }[];
55
55
  section_evidence: {
56
56
  evidence_refs: string[];
57
- artifact_id: string;
58
57
  section_key: string;
58
+ artifact_id: string;
59
59
  }[];
60
60
  }>, "many">;
61
61
  evidence_digest: z.ZodString;
@@ -75,8 +75,8 @@ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
75
75
  }[];
76
76
  section_evidence: {
77
77
  evidence_refs: string[];
78
- artifact_id: string;
79
78
  section_key: string;
79
+ artifact_id: string;
80
80
  }[];
81
81
  }[];
82
82
  evidence_digest: string;
@@ -96,8 +96,8 @@ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
96
96
  }[];
97
97
  section_evidence: {
98
98
  evidence_refs: string[];
99
- artifact_id: string;
100
99
  section_key: string;
100
+ artifact_id: string;
101
101
  }[];
102
102
  }[];
103
103
  evidence_digest: string;