@c4a/context 0.7.1 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +65 -170
  2. package/README.zh-CN.md +52 -129
  3. package/docs/README.md +9 -10
  4. package/docs/README.zh-CN.md +6 -7
  5. package/docs/getting-started.md +73 -428
  6. package/docs/guides/agent-guide.md +94 -518
  7. package/docs/guides/code-indexer-skill-authoring.md +24 -13
  8. package/docs/guides/markdown-indexer-skill-authoring.md +14 -14
  9. package/docs/reference/code-extractors.md +29 -121
  10. package/docs/reference/indexer-provider-protocol.md +43 -110
  11. package/docs/reference/package-templates.md +2 -3
  12. package/docs/reference/project-api.md +52 -986
  13. package/index.d.ts +10 -8
  14. package/index.js +4739 -7103
  15. package/indexerAgentStepProtocol.d.ts +1366 -7649
  16. package/indexerArtifact.d.ts +225 -0
  17. package/indexerArtifactDependencies.d.ts +41 -39
  18. package/indexerArtifactResult.d.ts +219 -252
  19. package/indexerAuthorizedWorksetView.d.ts +368 -0
  20. package/indexerBaseQuestionAmendment.d.ts +484 -280
  21. package/indexerBenchmark.d.ts +16 -16
  22. package/indexerCandidateCompile.d.ts +66 -60
  23. package/indexerCapabilityGroupEvidence.d.ts +6 -6
  24. package/indexerCatalogFallback.d.ts +122 -128
  25. package/indexerCollectionMapping.d.ts +13 -13
  26. package/indexerContentLayers.d.ts +8 -8
  27. package/indexerContractOverlay.d.ts +10 -10
  28. package/indexerControlledInvocation.d.ts +12 -12
  29. package/indexerControlledProgram.d.ts +2467 -2797
  30. package/indexerCoreExports.d.ts +6 -6
  31. package/indexerCustomizationDraft.d.ts +3315 -2091
  32. package/indexerCustomizationLadder.d.ts +2 -2
  33. package/indexerDependencyView.d.ts +108 -108
  34. package/indexerEffectiveArtifact.d.ts +1134 -0
  35. package/indexerEvidenceAdapterAuthorityMerge.d.ts +48 -0
  36. package/indexerEvidenceAdapterResult.d.ts +52 -52
  37. package/indexerExampleDecision.d.ts +128 -128
  38. package/indexerExampleIdentity.d.ts +6 -6
  39. package/indexerGeneratedAuthoringAudit.d.ts +18 -18
  40. package/indexerIncrementalImpact.d.ts +16 -16
  41. package/indexerInspectorWorksetProjection.d.ts +6 -0
  42. package/indexerInventoryDisposition.d.ts +70 -70
  43. package/indexerLayerComposition.d.ts +2139 -373
  44. package/indexerLayoutChange.d.ts +10 -10
  45. package/indexerLayoutProposalSet.d.ts +71 -66
  46. package/indexerLayoutResolver.d.ts +53 -48
  47. package/indexerLayoutTransition.d.ts +0 -50
  48. package/indexerLifecycle.d.ts +0 -13
  49. package/indexerMainLifecycle.d.ts +10 -0
  50. package/indexerMainRunLedger.d.ts +138 -11
  51. package/indexerMainRunProtocol.d.ts +1406 -785
  52. package/indexerMainWorkset.d.ts +460 -206
  53. package/indexerMaterialGapLedger.d.ts +13 -2904
  54. package/indexerOverlayQuestionAmendment.d.ts +491 -287
  55. package/indexerOverlayQuestionApplyProposal.d.ts +1022 -614
  56. package/indexerParserCapabilityCatalog.d.ts +136 -0
  57. package/indexerParserCoordinate.d.ts +16 -16
  58. package/indexerParserDependencyIntent.d.ts +22 -0
  59. package/indexerParserExecutionPlan.d.ts +388 -0
  60. package/indexerParserFactView.d.ts +42 -22
  61. package/indexerPartitionConvergence.d.ts +0 -3
  62. package/indexerPartitionInventory.d.ts +2 -0
  63. package/indexerPartitionPlan.d.ts +101 -99
  64. package/indexerPhysicalArtifactManifest.d.ts +8 -8
  65. package/indexerPostAuthorComposition.d.ts +116 -1156
  66. package/indexerPostAuthorRunLedger.d.ts +1434 -280
  67. package/indexerPrimaryProjection.d.ts +10 -10
  68. package/indexerPrimaryResultView.d.ts +435 -0
  69. package/indexerProfileContract.d.ts +181 -181
  70. package/indexerProgramExecutionAuthorization.d.ts +12 -12
  71. package/indexerProgramRunProtocol.d.ts +2141 -2749
  72. package/indexerProjectProposal.d.ts +496 -292
  73. package/indexerProjectedArtifactFanOutAudit.d.ts +0 -3
  74. package/indexerProtocolCommon.d.ts +4 -1
  75. package/indexerProvider.d.ts +134 -218
  76. package/indexerProviderComposition.d.ts +53 -53
  77. package/indexerProviderResolution.d.ts +12 -12
  78. package/indexerProviderResolutionAction.d.ts +14 -14
  79. package/indexerProviderRouting.d.ts +923 -515
  80. package/indexerProviderSelectionProposal.d.ts +893 -485
  81. package/indexerQuestionAuthority.d.ts +46 -47
  82. package/indexerReaderTargetInventory.d.ts +8 -8
  83. package/indexerRegistry.d.ts +765 -357
  84. package/indexerRequirementConfirmation.d.ts +98 -98
  85. package/indexerRequirementLifecycle.d.ts +224 -224
  86. package/indexerResultReconciliation.d.ts +204 -5919
  87. package/indexerResultReconciliationRun.d.ts +0 -1
  88. package/indexerRunEnvelope.d.ts +20 -20
  89. package/indexerSemanticInput.d.ts +3678 -0
  90. package/indexerStructuredDeclaration.d.ts +57 -53
  91. package/indexerSubjectCatalog.d.ts +14 -14
  92. package/indexerSubjectIdentity.d.ts +2 -2
  93. package/indexerSubjectKeyAuthority.d.ts +31 -30
  94. package/indexerTemplateRendering.d.ts +64 -64
  95. package/indexerToolSnapshot.d.ts +8 -8
  96. package/package.json +1 -1
  97. package/phases.d.ts +3 -183
  98. package/codeIndexPlan.d.ts +0 -158
  99. package/indexerAuditFacts.d.ts +0 -66
  100. package/indexerAuditOverrideReadiness.d.ts +0 -27
  101. package/indexerAuditProtocol.d.ts +0 -238
  102. package/indexerAuditRevision.d.ts +0 -726
  103. package/indexerAuditRevisionActions.d.ts +0 -236
  104. package/indexerMaterialAnswer.d.ts +0 -738
  105. package/indexerMaterialAnswerActualization.d.ts +0 -91
  106. package/indexerMaterialAnswerExecutionPlan.d.ts +0 -2887
  107. package/indexerMaterialAnswerFlow.d.ts +0 -63
  108. package/indexerMaterialAnswerLayout.d.ts +0 -76
  109. package/indexerMaterialAnswerReview.d.ts +0 -217
  110. package/indexerMaterialAnswerReviewRoute.d.ts +0 -6145
  111. package/indexerMaterialAnswerRunLedger.d.ts +0 -918
  112. package/indexerMaterialAnswerRunProtocol.d.ts +0 -1253
  113. package/indexerMaterialQuestionExclusion.d.ts +0 -129
  114. package/indexerMaterialQuestionWorkset.d.ts +0 -508
  115. package/indexerPlannedMaterialAnswer.d.ts +0 -116
  116. package/indexerProfileMetricAudit.d.ts +0 -218
  117. package/indexerWorksetRead.d.ts +0 -287
@@ -1,726 +0,0 @@
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;