@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,726 @@
1
+ import { z } from "zod";
2
+ export declare const indexerProfileProblemLineageSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.profile-problem-lineage/v1">;
4
+ requirement_lineage_id: z.ZodString;
5
+ source_material_epoch: z.ZodString;
6
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
+ problem_class: z.ZodEffects<z.ZodString, string, string>;
8
+ lineage_id: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ protocol: "context.indexer.profile-problem-lineage/v1";
11
+ requirement_lineage_id: string;
12
+ source_material_epoch: string;
13
+ unit_ref: string;
14
+ problem_class: string;
15
+ lineage_id: string;
16
+ }, {
17
+ protocol: "context.indexer.profile-problem-lineage/v1";
18
+ requirement_lineage_id: string;
19
+ source_material_epoch: string;
20
+ unit_ref: string;
21
+ problem_class: string;
22
+ lineage_id: string;
23
+ }>;
24
+ export declare const indexerProfileAuditAttemptSchema: z.ZodObject<{
25
+ protocol: z.ZodLiteral<"context.indexer.profile-audit-attempt/v1">;
26
+ lineage_id: z.ZodString;
27
+ attempt: z.ZodNumber;
28
+ audit_report_digest: z.ZodString;
29
+ profile_report_digest: z.ZodString;
30
+ indexer_result_fingerprint: z.ZodString;
31
+ actions_taken: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
32
+ unresolved_reasons: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
33
+ attempt_digest: z.ZodString;
34
+ }, "strict", z.ZodTypeAny, {
35
+ protocol: "context.indexer.profile-audit-attempt/v1";
36
+ attempt_digest: string;
37
+ lineage_id: string;
38
+ attempt: number;
39
+ audit_report_digest: string;
40
+ profile_report_digest: string;
41
+ indexer_result_fingerprint: string;
42
+ actions_taken: string[];
43
+ unresolved_reasons: string[];
44
+ }, {
45
+ protocol: "context.indexer.profile-audit-attempt/v1";
46
+ attempt_digest: string;
47
+ lineage_id: string;
48
+ attempt: number;
49
+ audit_report_digest: string;
50
+ profile_report_digest: string;
51
+ indexer_result_fingerprint: string;
52
+ actions_taken: string[];
53
+ unresolved_reasons: string[];
54
+ }>;
55
+ export declare const indexerProfileAuditLedgerSchema: z.ZodObject<{
56
+ protocol: z.ZodLiteral<"context.indexer.profile-audit-ledger/v1">;
57
+ lineages: z.ZodArray<z.ZodObject<{
58
+ lineage: z.ZodObject<{
59
+ protocol: z.ZodLiteral<"context.indexer.profile-problem-lineage/v1">;
60
+ requirement_lineage_id: z.ZodString;
61
+ source_material_epoch: z.ZodString;
62
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
63
+ problem_class: z.ZodEffects<z.ZodString, string, string>;
64
+ lineage_id: z.ZodString;
65
+ }, "strict", z.ZodTypeAny, {
66
+ protocol: "context.indexer.profile-problem-lineage/v1";
67
+ requirement_lineage_id: string;
68
+ source_material_epoch: string;
69
+ unit_ref: string;
70
+ problem_class: string;
71
+ lineage_id: string;
72
+ }, {
73
+ protocol: "context.indexer.profile-problem-lineage/v1";
74
+ requirement_lineage_id: string;
75
+ source_material_epoch: string;
76
+ unit_ref: string;
77
+ problem_class: string;
78
+ lineage_id: string;
79
+ }>;
80
+ attempts: z.ZodArray<z.ZodObject<{
81
+ protocol: z.ZodLiteral<"context.indexer.profile-audit-attempt/v1">;
82
+ lineage_id: z.ZodString;
83
+ attempt: z.ZodNumber;
84
+ audit_report_digest: z.ZodString;
85
+ profile_report_digest: z.ZodString;
86
+ indexer_result_fingerprint: z.ZodString;
87
+ actions_taken: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
88
+ unresolved_reasons: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
89
+ attempt_digest: z.ZodString;
90
+ }, "strict", z.ZodTypeAny, {
91
+ protocol: "context.indexer.profile-audit-attempt/v1";
92
+ attempt_digest: string;
93
+ lineage_id: string;
94
+ attempt: number;
95
+ audit_report_digest: string;
96
+ profile_report_digest: string;
97
+ indexer_result_fingerprint: string;
98
+ actions_taken: string[];
99
+ unresolved_reasons: string[];
100
+ }, {
101
+ protocol: "context.indexer.profile-audit-attempt/v1";
102
+ attempt_digest: string;
103
+ lineage_id: string;
104
+ attempt: number;
105
+ audit_report_digest: string;
106
+ profile_report_digest: string;
107
+ indexer_result_fingerprint: string;
108
+ actions_taken: string[];
109
+ unresolved_reasons: string[];
110
+ }>, "many">;
111
+ }, "strict", z.ZodTypeAny, {
112
+ attempts: {
113
+ protocol: "context.indexer.profile-audit-attempt/v1";
114
+ attempt_digest: string;
115
+ lineage_id: string;
116
+ attempt: number;
117
+ audit_report_digest: string;
118
+ profile_report_digest: string;
119
+ indexer_result_fingerprint: string;
120
+ actions_taken: string[];
121
+ unresolved_reasons: string[];
122
+ }[];
123
+ lineage: {
124
+ protocol: "context.indexer.profile-problem-lineage/v1";
125
+ requirement_lineage_id: string;
126
+ source_material_epoch: string;
127
+ unit_ref: string;
128
+ problem_class: string;
129
+ lineage_id: string;
130
+ };
131
+ }, {
132
+ attempts: {
133
+ protocol: "context.indexer.profile-audit-attempt/v1";
134
+ attempt_digest: string;
135
+ lineage_id: string;
136
+ attempt: number;
137
+ audit_report_digest: string;
138
+ profile_report_digest: string;
139
+ indexer_result_fingerprint: string;
140
+ actions_taken: string[];
141
+ unresolved_reasons: string[];
142
+ }[];
143
+ lineage: {
144
+ protocol: "context.indexer.profile-problem-lineage/v1";
145
+ requirement_lineage_id: string;
146
+ source_material_epoch: string;
147
+ unit_ref: string;
148
+ problem_class: string;
149
+ lineage_id: string;
150
+ };
151
+ }>, "many">;
152
+ ledger_digest: z.ZodString;
153
+ }, "strict", z.ZodTypeAny, {
154
+ protocol: "context.indexer.profile-audit-ledger/v1";
155
+ lineages: {
156
+ attempts: {
157
+ protocol: "context.indexer.profile-audit-attempt/v1";
158
+ attempt_digest: string;
159
+ lineage_id: string;
160
+ attempt: number;
161
+ audit_report_digest: string;
162
+ profile_report_digest: string;
163
+ indexer_result_fingerprint: string;
164
+ actions_taken: string[];
165
+ unresolved_reasons: string[];
166
+ }[];
167
+ lineage: {
168
+ protocol: "context.indexer.profile-problem-lineage/v1";
169
+ requirement_lineage_id: string;
170
+ source_material_epoch: string;
171
+ unit_ref: string;
172
+ problem_class: string;
173
+ lineage_id: string;
174
+ };
175
+ }[];
176
+ ledger_digest: string;
177
+ }, {
178
+ protocol: "context.indexer.profile-audit-ledger/v1";
179
+ lineages: {
180
+ attempts: {
181
+ protocol: "context.indexer.profile-audit-attempt/v1";
182
+ attempt_digest: string;
183
+ lineage_id: string;
184
+ attempt: number;
185
+ audit_report_digest: string;
186
+ profile_report_digest: string;
187
+ indexer_result_fingerprint: string;
188
+ actions_taken: string[];
189
+ unresolved_reasons: string[];
190
+ }[];
191
+ lineage: {
192
+ protocol: "context.indexer.profile-problem-lineage/v1";
193
+ requirement_lineage_id: string;
194
+ source_material_epoch: string;
195
+ unit_ref: string;
196
+ problem_class: string;
197
+ lineage_id: string;
198
+ };
199
+ }[];
200
+ ledger_digest: string;
201
+ }>;
202
+ export declare const indexerFailureModuleProfileSchema: z.ZodObject<{
203
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
204
+ classification: z.ZodEffects<z.ZodString, string, string>;
205
+ primary_profile: z.ZodEffects<z.ZodString, string, string>;
206
+ additional_profiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
207
+ composers: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
208
+ profile_contract_digests: z.ZodArray<z.ZodString, "many">;
209
+ }, "strict", z.ZodTypeAny, {
210
+ composers: string[];
211
+ classification: string;
212
+ profile_contract_digests: string[];
213
+ unit_ref: string;
214
+ primary_profile: string;
215
+ additional_profiles: string[];
216
+ }, {
217
+ composers: string[];
218
+ classification: string;
219
+ profile_contract_digests: string[];
220
+ unit_ref: string;
221
+ primary_profile: string;
222
+ additional_profiles: string[];
223
+ }>;
224
+ export declare const indexerFailureExpectedArtifactSchema: z.ZodObject<{
225
+ classification: z.ZodEffects<z.ZodString, string, string>;
226
+ bundle_variant: z.ZodEffects<z.ZodString, string, string>;
227
+ expected_artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
228
+ anonymous_example: z.ZodEffects<z.ZodString, string, string>;
229
+ anonymous_anti_example: z.ZodEffects<z.ZodString, string, string>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ classification: string;
232
+ bundle_variant: string;
233
+ expected_artifact_kinds: string[];
234
+ anonymous_example: string;
235
+ anonymous_anti_example: string;
236
+ }, {
237
+ classification: string;
238
+ bundle_variant: string;
239
+ expected_artifact_kinds: string[];
240
+ anonymous_example: string;
241
+ anonymous_anti_example: string;
242
+ }>;
243
+ export declare const indexerFailureMetricSchema: z.ZodObject<{
244
+ metric_id: z.ZodEffects<z.ZodString, string, string>;
245
+ unit: z.ZodEnum<["percent", "count", "ratio", "boolean"]>;
246
+ recommended: z.ZodNullable<z.ZodNumber>;
247
+ hard_gate: z.ZodNullable<z.ZodNumber>;
248
+ observed: z.ZodNullable<z.ZodNumber>;
249
+ denominator: z.ZodNumber;
250
+ sample_refs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
251
+ }, "strict", z.ZodTypeAny, {
252
+ denominator: number;
253
+ unit: "boolean" | "count" | "ratio" | "percent";
254
+ recommended: number | null;
255
+ metric_id: string;
256
+ hard_gate: number | null;
257
+ observed: number | null;
258
+ sample_refs: string[];
259
+ }, {
260
+ denominator: number;
261
+ unit: "boolean" | "count" | "ratio" | "percent";
262
+ recommended: number | null;
263
+ metric_id: string;
264
+ hard_gate: number | null;
265
+ observed: number | null;
266
+ sample_refs: string[];
267
+ }>;
268
+ export declare const indexerProfileFailureReportSchema: z.ZodObject<{
269
+ protocol: z.ZodLiteral<"context.indexer.profile-failure-report/v1">;
270
+ lineage: z.ZodObject<{
271
+ protocol: z.ZodLiteral<"context.indexer.profile-problem-lineage/v1">;
272
+ requirement_lineage_id: z.ZodString;
273
+ source_material_epoch: z.ZodString;
274
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
275
+ problem_class: z.ZodEffects<z.ZodString, string, string>;
276
+ lineage_id: z.ZodString;
277
+ }, "strict", z.ZodTypeAny, {
278
+ protocol: "context.indexer.profile-problem-lineage/v1";
279
+ requirement_lineage_id: string;
280
+ source_material_epoch: string;
281
+ unit_ref: string;
282
+ problem_class: string;
283
+ lineage_id: string;
284
+ }, {
285
+ protocol: "context.indexer.profile-problem-lineage/v1";
286
+ requirement_lineage_id: string;
287
+ source_material_epoch: string;
288
+ unit_ref: string;
289
+ problem_class: string;
290
+ lineage_id: string;
291
+ }>;
292
+ binding: z.ZodObject<{
293
+ requirement_set_digest: z.ZodString;
294
+ registry_digest: z.ZodString;
295
+ inventory_digest: z.ZodString;
296
+ layout_digest: z.ZodString;
297
+ candidate_set_digest: z.ZodString;
298
+ effective_revision_digest: z.ZodString;
299
+ }, "strict", z.ZodTypeAny, {
300
+ inventory_digest: string;
301
+ requirement_set_digest: string;
302
+ registry_digest: string;
303
+ candidate_set_digest: string;
304
+ layout_digest: string;
305
+ effective_revision_digest: string;
306
+ }, {
307
+ inventory_digest: string;
308
+ requirement_set_digest: string;
309
+ registry_digest: string;
310
+ candidate_set_digest: string;
311
+ layout_digest: string;
312
+ effective_revision_digest: string;
313
+ }>;
314
+ precompile_audit_report_digest: z.ZodString;
315
+ latest_audit_report_digest: z.ZodString;
316
+ profile_report_digest: z.ZodString;
317
+ module_profiles: z.ZodArray<z.ZodObject<{
318
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
319
+ classification: z.ZodEffects<z.ZodString, string, string>;
320
+ primary_profile: z.ZodEffects<z.ZodString, string, string>;
321
+ additional_profiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
322
+ composers: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
323
+ profile_contract_digests: z.ZodArray<z.ZodString, "many">;
324
+ }, "strict", z.ZodTypeAny, {
325
+ composers: string[];
326
+ classification: string;
327
+ profile_contract_digests: string[];
328
+ unit_ref: string;
329
+ primary_profile: string;
330
+ additional_profiles: string[];
331
+ }, {
332
+ composers: string[];
333
+ classification: string;
334
+ profile_contract_digests: string[];
335
+ unit_ref: string;
336
+ primary_profile: string;
337
+ additional_profiles: string[];
338
+ }>, "many">;
339
+ expected_artifacts: z.ZodArray<z.ZodObject<{
340
+ classification: z.ZodEffects<z.ZodString, string, string>;
341
+ bundle_variant: z.ZodEffects<z.ZodString, string, string>;
342
+ expected_artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
343
+ anonymous_example: z.ZodEffects<z.ZodString, string, string>;
344
+ anonymous_anti_example: z.ZodEffects<z.ZodString, string, string>;
345
+ }, "strict", z.ZodTypeAny, {
346
+ classification: string;
347
+ bundle_variant: string;
348
+ expected_artifact_kinds: string[];
349
+ anonymous_example: string;
350
+ anonymous_anti_example: string;
351
+ }, {
352
+ classification: string;
353
+ bundle_variant: string;
354
+ expected_artifact_kinds: string[];
355
+ anonymous_example: string;
356
+ anonymous_anti_example: string;
357
+ }>, "many">;
358
+ metrics: z.ZodArray<z.ZodObject<{
359
+ metric_id: z.ZodEffects<z.ZodString, string, string>;
360
+ unit: z.ZodEnum<["percent", "count", "ratio", "boolean"]>;
361
+ recommended: z.ZodNullable<z.ZodNumber>;
362
+ hard_gate: z.ZodNullable<z.ZodNumber>;
363
+ observed: z.ZodNullable<z.ZodNumber>;
364
+ denominator: z.ZodNumber;
365
+ sample_refs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
366
+ }, "strict", z.ZodTypeAny, {
367
+ denominator: number;
368
+ unit: "boolean" | "count" | "ratio" | "percent";
369
+ recommended: number | null;
370
+ metric_id: string;
371
+ hard_gate: number | null;
372
+ observed: number | null;
373
+ sample_refs: string[];
374
+ }, {
375
+ denominator: number;
376
+ unit: "boolean" | "count" | "ratio" | "percent";
377
+ recommended: number | null;
378
+ metric_id: string;
379
+ hard_gate: number | null;
380
+ observed: number | null;
381
+ sample_refs: string[];
382
+ }>, "many">;
383
+ attempts: z.ZodArray<z.ZodObject<{
384
+ protocol: z.ZodLiteral<"context.indexer.profile-audit-attempt/v1">;
385
+ lineage_id: z.ZodString;
386
+ attempt: z.ZodNumber;
387
+ audit_report_digest: z.ZodString;
388
+ profile_report_digest: z.ZodString;
389
+ indexer_result_fingerprint: z.ZodString;
390
+ actions_taken: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
391
+ unresolved_reasons: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
392
+ attempt_digest: z.ZodString;
393
+ }, "strict", z.ZodTypeAny, {
394
+ protocol: "context.indexer.profile-audit-attempt/v1";
395
+ attempt_digest: string;
396
+ lineage_id: string;
397
+ attempt: number;
398
+ audit_report_digest: string;
399
+ profile_report_digest: string;
400
+ indexer_result_fingerprint: string;
401
+ actions_taken: string[];
402
+ unresolved_reasons: string[];
403
+ }, {
404
+ protocol: "context.indexer.profile-audit-attempt/v1";
405
+ attempt_digest: string;
406
+ lineage_id: string;
407
+ attempt: number;
408
+ audit_report_digest: string;
409
+ profile_report_digest: string;
410
+ indexer_result_fingerprint: string;
411
+ actions_taken: string[];
412
+ unresolved_reasons: string[];
413
+ }>, "many">;
414
+ likely_missing_inputs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
415
+ capability_losses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
416
+ options: z.ZodArray<z.ZodEnum<["provide-material", "change-scope", "correct-classification", "force-approve-risk"]>, "many">;
417
+ report_digest: z.ZodString;
418
+ }, "strict", z.ZodTypeAny, {
419
+ protocol: "context.indexer.profile-failure-report/v1";
420
+ options: ("provide-material" | "change-scope" | "correct-classification" | "force-approve-risk")[];
421
+ metrics: {
422
+ denominator: number;
423
+ unit: "boolean" | "count" | "ratio" | "percent";
424
+ recommended: number | null;
425
+ metric_id: string;
426
+ hard_gate: number | null;
427
+ observed: number | null;
428
+ sample_refs: string[];
429
+ }[];
430
+ report_digest: string;
431
+ binding: {
432
+ inventory_digest: string;
433
+ requirement_set_digest: string;
434
+ registry_digest: string;
435
+ candidate_set_digest: string;
436
+ layout_digest: string;
437
+ effective_revision_digest: string;
438
+ };
439
+ attempts: {
440
+ protocol: "context.indexer.profile-audit-attempt/v1";
441
+ attempt_digest: string;
442
+ lineage_id: string;
443
+ attempt: number;
444
+ audit_report_digest: string;
445
+ profile_report_digest: string;
446
+ indexer_result_fingerprint: string;
447
+ actions_taken: string[];
448
+ unresolved_reasons: string[];
449
+ }[];
450
+ precompile_audit_report_digest: string;
451
+ profile_report_digest: string;
452
+ lineage: {
453
+ protocol: "context.indexer.profile-problem-lineage/v1";
454
+ requirement_lineage_id: string;
455
+ source_material_epoch: string;
456
+ unit_ref: string;
457
+ problem_class: string;
458
+ lineage_id: string;
459
+ };
460
+ latest_audit_report_digest: string;
461
+ module_profiles: {
462
+ composers: string[];
463
+ classification: string;
464
+ profile_contract_digests: string[];
465
+ unit_ref: string;
466
+ primary_profile: string;
467
+ additional_profiles: string[];
468
+ }[];
469
+ expected_artifacts: {
470
+ classification: string;
471
+ bundle_variant: string;
472
+ expected_artifact_kinds: string[];
473
+ anonymous_example: string;
474
+ anonymous_anti_example: string;
475
+ }[];
476
+ likely_missing_inputs: string[];
477
+ capability_losses: string[];
478
+ }, {
479
+ protocol: "context.indexer.profile-failure-report/v1";
480
+ options: ("provide-material" | "change-scope" | "correct-classification" | "force-approve-risk")[];
481
+ metrics: {
482
+ denominator: number;
483
+ unit: "boolean" | "count" | "ratio" | "percent";
484
+ recommended: number | null;
485
+ metric_id: string;
486
+ hard_gate: number | null;
487
+ observed: number | null;
488
+ sample_refs: string[];
489
+ }[];
490
+ report_digest: string;
491
+ binding: {
492
+ inventory_digest: string;
493
+ requirement_set_digest: string;
494
+ registry_digest: string;
495
+ candidate_set_digest: string;
496
+ layout_digest: string;
497
+ effective_revision_digest: string;
498
+ };
499
+ attempts: {
500
+ protocol: "context.indexer.profile-audit-attempt/v1";
501
+ attempt_digest: string;
502
+ lineage_id: string;
503
+ attempt: number;
504
+ audit_report_digest: string;
505
+ profile_report_digest: string;
506
+ indexer_result_fingerprint: string;
507
+ actions_taken: string[];
508
+ unresolved_reasons: string[];
509
+ }[];
510
+ precompile_audit_report_digest: string;
511
+ profile_report_digest: string;
512
+ lineage: {
513
+ protocol: "context.indexer.profile-problem-lineage/v1";
514
+ requirement_lineage_id: string;
515
+ source_material_epoch: string;
516
+ unit_ref: string;
517
+ problem_class: string;
518
+ lineage_id: string;
519
+ };
520
+ latest_audit_report_digest: string;
521
+ module_profiles: {
522
+ composers: string[];
523
+ classification: string;
524
+ profile_contract_digests: string[];
525
+ unit_ref: string;
526
+ primary_profile: string;
527
+ additional_profiles: string[];
528
+ }[];
529
+ expected_artifacts: {
530
+ classification: string;
531
+ bundle_variant: string;
532
+ expected_artifact_kinds: string[];
533
+ anonymous_example: string;
534
+ anonymous_anti_example: string;
535
+ }[];
536
+ likely_missing_inputs: string[];
537
+ capability_losses: string[];
538
+ }>;
539
+ export declare const indexerProfileOverrideDecisionSchema: z.ZodObject<{
540
+ protocol: z.ZodLiteral<"context.indexer.profile-override-decision/v1">;
541
+ failure_report_digest: z.ZodString;
542
+ audit_report_digest: z.ZodString;
543
+ binding: z.ZodObject<{
544
+ requirement_set_digest: z.ZodString;
545
+ registry_digest: z.ZodString;
546
+ inventory_digest: z.ZodString;
547
+ layout_digest: z.ZodString;
548
+ candidate_set_digest: z.ZodString;
549
+ effective_revision_digest: z.ZodString;
550
+ }, "strict", z.ZodTypeAny, {
551
+ inventory_digest: string;
552
+ requirement_set_digest: string;
553
+ registry_digest: string;
554
+ candidate_set_digest: string;
555
+ layout_digest: string;
556
+ effective_revision_digest: string;
557
+ }, {
558
+ inventory_digest: string;
559
+ requirement_set_digest: string;
560
+ registry_digest: string;
561
+ candidate_set_digest: string;
562
+ layout_digest: string;
563
+ effective_revision_digest: string;
564
+ }>;
565
+ indexer_result_fingerprint: z.ZodString;
566
+ failed_metric_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
567
+ decision: z.ZodLiteral<"force-approve-profile-risk">;
568
+ confirmed_by: z.ZodEffects<z.ZodString, string, string>;
569
+ confirmed_at: z.ZodString;
570
+ decision_digest: z.ZodString;
571
+ }, "strict", z.ZodTypeAny, {
572
+ decision: "force-approve-profile-risk";
573
+ protocol: "context.indexer.profile-override-decision/v1";
574
+ binding: {
575
+ inventory_digest: string;
576
+ requirement_set_digest: string;
577
+ registry_digest: string;
578
+ candidate_set_digest: string;
579
+ layout_digest: string;
580
+ effective_revision_digest: string;
581
+ };
582
+ decision_digest: string;
583
+ failed_metric_ids: string[];
584
+ audit_report_digest: string;
585
+ indexer_result_fingerprint: string;
586
+ failure_report_digest: string;
587
+ confirmed_by: string;
588
+ confirmed_at: string;
589
+ }, {
590
+ decision: "force-approve-profile-risk";
591
+ protocol: "context.indexer.profile-override-decision/v1";
592
+ binding: {
593
+ inventory_digest: string;
594
+ requirement_set_digest: string;
595
+ registry_digest: string;
596
+ candidate_set_digest: string;
597
+ layout_digest: string;
598
+ effective_revision_digest: string;
599
+ };
600
+ decision_digest: string;
601
+ failed_metric_ids: string[];
602
+ audit_report_digest: string;
603
+ indexer_result_fingerprint: string;
604
+ failure_report_digest: string;
605
+ confirmed_by: string;
606
+ confirmed_at: string;
607
+ }>;
608
+ export declare const indexerProfileOverrideReceiptSchema: z.ZodObject<{
609
+ protocol: z.ZodLiteral<"context.indexer.profile-override-receipt/v1">;
610
+ failure_report_digest: z.ZodString;
611
+ precompile_audit_report_digest: z.ZodString;
612
+ audit_report_digest: z.ZodString;
613
+ binding: z.ZodObject<{
614
+ requirement_set_digest: z.ZodString;
615
+ registry_digest: z.ZodString;
616
+ inventory_digest: z.ZodString;
617
+ layout_digest: z.ZodString;
618
+ candidate_set_digest: z.ZodString;
619
+ effective_revision_digest: z.ZodString;
620
+ }, "strict", z.ZodTypeAny, {
621
+ inventory_digest: string;
622
+ requirement_set_digest: string;
623
+ registry_digest: string;
624
+ candidate_set_digest: string;
625
+ layout_digest: string;
626
+ effective_revision_digest: string;
627
+ }, {
628
+ inventory_digest: string;
629
+ requirement_set_digest: string;
630
+ registry_digest: string;
631
+ candidate_set_digest: string;
632
+ layout_digest: string;
633
+ effective_revision_digest: string;
634
+ }>;
635
+ indexer_result_fingerprint: z.ZodString;
636
+ failed_metric_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
637
+ confirmed_by: z.ZodEffects<z.ZodString, string, string>;
638
+ confirmed_at: z.ZodString;
639
+ decision_digest: z.ZodString;
640
+ receipt_digest: z.ZodString;
641
+ }, "strict", z.ZodTypeAny, {
642
+ protocol: "context.indexer.profile-override-receipt/v1";
643
+ receipt_digest: string;
644
+ binding: {
645
+ inventory_digest: string;
646
+ requirement_set_digest: string;
647
+ registry_digest: string;
648
+ candidate_set_digest: string;
649
+ layout_digest: string;
650
+ effective_revision_digest: string;
651
+ };
652
+ decision_digest: string;
653
+ failed_metric_ids: string[];
654
+ precompile_audit_report_digest: string;
655
+ audit_report_digest: string;
656
+ indexer_result_fingerprint: string;
657
+ failure_report_digest: string;
658
+ confirmed_by: string;
659
+ confirmed_at: string;
660
+ }, {
661
+ protocol: "context.indexer.profile-override-receipt/v1";
662
+ receipt_digest: string;
663
+ binding: {
664
+ inventory_digest: string;
665
+ requirement_set_digest: string;
666
+ registry_digest: string;
667
+ candidate_set_digest: string;
668
+ layout_digest: string;
669
+ effective_revision_digest: string;
670
+ };
671
+ decision_digest: string;
672
+ failed_metric_ids: string[];
673
+ precompile_audit_report_digest: string;
674
+ audit_report_digest: string;
675
+ indexer_result_fingerprint: string;
676
+ failure_report_digest: string;
677
+ confirmed_by: string;
678
+ confirmed_at: string;
679
+ }>;
680
+ export type IndexerProfileProblemLineage = z.infer<typeof indexerProfileProblemLineageSchema>;
681
+ export type IndexerProfileAuditAttempt = z.infer<typeof indexerProfileAuditAttemptSchema>;
682
+ export type IndexerProfileAuditLedger = z.infer<typeof indexerProfileAuditLedgerSchema>;
683
+ export type IndexerProfileFailureReport = z.infer<typeof indexerProfileFailureReportSchema>;
684
+ export type IndexerProfileOverrideDecision = z.infer<typeof indexerProfileOverrideDecisionSchema>;
685
+ export type IndexerProfileOverrideReceipt = z.infer<typeof indexerProfileOverrideReceiptSchema>;
686
+ export declare function buildIndexerProfileProblemLineage(input: {
687
+ requirement_lineage_id: string;
688
+ source_material_epoch: string;
689
+ unit_ref: string;
690
+ problem_class: string;
691
+ }): IndexerProfileProblemLineage;
692
+ export declare function validateIndexerProfileProblemLineage(value: unknown): IndexerProfileProblemLineage;
693
+ export declare function emptyIndexerProfileAuditLedger(): IndexerProfileAuditLedger;
694
+ export declare function validateIndexerProfileAuditLedger(value: unknown): IndexerProfileAuditLedger;
695
+ export declare function recordIndexerProfileAuditAttempt(input: {
696
+ ledger: unknown;
697
+ lineage: unknown;
698
+ audit_report: unknown;
699
+ indexer_result_fingerprint: string;
700
+ actions_taken: string[];
701
+ unresolved_reasons: string[];
702
+ }): {
703
+ ledger: IndexerProfileAuditLedger;
704
+ attempt: IndexerProfileAuditAttempt;
705
+ };
706
+ export declare function buildIndexerProfileFailureReport(input: {
707
+ ledger: unknown;
708
+ lineage_id: string;
709
+ precompile_audit_report: unknown;
710
+ audit_report: unknown;
711
+ module_profiles: z.input<typeof indexerFailureModuleProfileSchema>[];
712
+ expected_artifacts: z.input<typeof indexerFailureExpectedArtifactSchema>[];
713
+ metrics: z.input<typeof indexerFailureMetricSchema>[];
714
+ likely_missing_inputs: string[];
715
+ capability_losses: string[];
716
+ options: Array<"provide-material" | "change-scope" | "correct-classification" | "force-approve-risk">;
717
+ }): IndexerProfileFailureReport;
718
+ export declare function validateIndexerProfileFailureReport(value: unknown): IndexerProfileFailureReport;
719
+ export declare function buildIndexerProfileOverrideDecision(input: Omit<IndexerProfileOverrideDecision, "protocol" | "decision" | "decision_digest">): IndexerProfileOverrideDecision;
720
+ export declare function authorizeIndexerProfileOverride(input: {
721
+ failure_report: unknown;
722
+ precompile_audit_report: unknown;
723
+ audit_report: unknown;
724
+ decision: unknown;
725
+ }): IndexerProfileOverrideReceipt;
726
+ export declare function validateIndexerProfileOverrideReceipt(value: unknown): IndexerProfileOverrideReceipt;