@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,496 @@
1
+ import { z } from "zod";
2
+ import { type IndexerPartitionStrategy } from "./indexerPartitionPlan.js";
3
+ import type { IndexerMainPartitionWorkset } from "./indexerMainWorkset.js";
4
+ import type { IndexerInventoryMember } from "./indexerInventoryDisposition.js";
5
+ export declare const indexerPartitionStrategyAttemptSchema: z.ZodObject<{
6
+ strategy_order: z.ZodNumber;
7
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
8
+ kind: z.ZodLiteral<"project-indexer">;
9
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
10
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
11
+ implementation_digest: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ kind: "project-indexer";
14
+ implementation_digest: string;
15
+ indexer_id: string;
16
+ strategy_id: string;
17
+ }, {
18
+ kind: "project-indexer";
19
+ implementation_digest: string;
20
+ indexer_id: string;
21
+ strategy_id: string;
22
+ }>, z.ZodObject<{
23
+ kind: z.ZodLiteral<"cli-builtin">;
24
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
25
+ implementation_digest: z.ZodString;
26
+ }, "strict", z.ZodTypeAny, {
27
+ kind: "cli-builtin";
28
+ implementation_digest: string;
29
+ strategy_id: string;
30
+ }, {
31
+ kind: "cli-builtin";
32
+ implementation_digest: string;
33
+ strategy_id: string;
34
+ }>]>;
35
+ strategy_digest: z.ZodString;
36
+ previous_attempt_digest: z.ZodNullable<z.ZodString>;
37
+ }, "strict", z.ZodTypeAny, {
38
+ strategy_ref: {
39
+ kind: "project-indexer";
40
+ implementation_digest: string;
41
+ indexer_id: string;
42
+ strategy_id: string;
43
+ } | {
44
+ kind: "cli-builtin";
45
+ implementation_digest: string;
46
+ strategy_id: string;
47
+ };
48
+ strategy_digest: string;
49
+ strategy_order: number;
50
+ previous_attempt_digest: string | null;
51
+ }, {
52
+ strategy_ref: {
53
+ kind: "project-indexer";
54
+ implementation_digest: string;
55
+ indexer_id: string;
56
+ strategy_id: string;
57
+ } | {
58
+ kind: "cli-builtin";
59
+ implementation_digest: string;
60
+ strategy_id: string;
61
+ };
62
+ strategy_digest: string;
63
+ strategy_order: number;
64
+ previous_attempt_digest: string | null;
65
+ }>;
66
+ export type IndexerPartitionStrategyAttempt = z.infer<typeof indexerPartitionStrategyAttemptSchema>;
67
+ declare const attemptRecordSchema: z.ZodObject<{
68
+ strategy_order: z.ZodNumber;
69
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
70
+ kind: z.ZodLiteral<"project-indexer">;
71
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
72
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
73
+ implementation_digest: z.ZodString;
74
+ }, "strict", z.ZodTypeAny, {
75
+ kind: "project-indexer";
76
+ implementation_digest: string;
77
+ indexer_id: string;
78
+ strategy_id: string;
79
+ }, {
80
+ kind: "project-indexer";
81
+ implementation_digest: string;
82
+ indexer_id: string;
83
+ strategy_id: string;
84
+ }>, z.ZodObject<{
85
+ kind: z.ZodLiteral<"cli-builtin">;
86
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
87
+ implementation_digest: z.ZodString;
88
+ }, "strict", z.ZodTypeAny, {
89
+ kind: "cli-builtin";
90
+ implementation_digest: string;
91
+ strategy_id: string;
92
+ }, {
93
+ kind: "cli-builtin";
94
+ implementation_digest: string;
95
+ strategy_id: string;
96
+ }>]>;
97
+ strategy_digest: z.ZodString;
98
+ previous_attempt_digest: z.ZodNullable<z.ZodString>;
99
+ partition_plan_hash: z.ZodString;
100
+ plan_status: z.ZodEnum<["complete", "failed"]>;
101
+ classification: z.ZodEnum<["semantic", "fixed-count", "ordinal", "alphabetical", "retryable-strategy-failure", "blocking-input-damage"]>;
102
+ reason_code: z.ZodEnum<["semantic-partition", "fixed-count-partition", "ordinal-partition", "alphabetical-partition", "partition-strategy-failed", "partition-input-damaged"]>;
103
+ relationship: z.ZodObject<{
104
+ group_count: z.ZodNumber;
105
+ owned_member_count: z.ZodNumber;
106
+ group_sizes: z.ZodArray<z.ZodNumber, "many">;
107
+ uniform_nonfinal_group_size: z.ZodBoolean;
108
+ lexical_windows: z.ZodBoolean;
109
+ ordinal_identity_sequence: z.ZodBoolean;
110
+ }, "strict", z.ZodTypeAny, {
111
+ group_count: number;
112
+ owned_member_count: number;
113
+ group_sizes: number[];
114
+ uniform_nonfinal_group_size: boolean;
115
+ lexical_windows: boolean;
116
+ ordinal_identity_sequence: boolean;
117
+ }, {
118
+ group_count: number;
119
+ owned_member_count: number;
120
+ group_sizes: number[];
121
+ uniform_nonfinal_group_size: boolean;
122
+ lexical_windows: boolean;
123
+ ordinal_identity_sequence: boolean;
124
+ }>;
125
+ attempt_digest: z.ZodString;
126
+ }, "strict", z.ZodTypeAny, {
127
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
128
+ strategy_ref: {
129
+ kind: "project-indexer";
130
+ implementation_digest: string;
131
+ indexer_id: string;
132
+ strategy_id: string;
133
+ } | {
134
+ kind: "cli-builtin";
135
+ implementation_digest: string;
136
+ strategy_id: string;
137
+ };
138
+ strategy_digest: string;
139
+ strategy_order: number;
140
+ previous_attempt_digest: string | null;
141
+ partition_plan_hash: string;
142
+ plan_status: "complete" | "failed";
143
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
144
+ relationship: {
145
+ group_count: number;
146
+ owned_member_count: number;
147
+ group_sizes: number[];
148
+ uniform_nonfinal_group_size: boolean;
149
+ lexical_windows: boolean;
150
+ ordinal_identity_sequence: boolean;
151
+ };
152
+ attempt_digest: string;
153
+ }, {
154
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
155
+ strategy_ref: {
156
+ kind: "project-indexer";
157
+ implementation_digest: string;
158
+ indexer_id: string;
159
+ strategy_id: string;
160
+ } | {
161
+ kind: "cli-builtin";
162
+ implementation_digest: string;
163
+ strategy_id: string;
164
+ };
165
+ strategy_digest: string;
166
+ strategy_order: number;
167
+ previous_attempt_digest: string | null;
168
+ partition_plan_hash: string;
169
+ plan_status: "complete" | "failed";
170
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
171
+ relationship: {
172
+ group_count: number;
173
+ owned_member_count: number;
174
+ group_sizes: number[];
175
+ uniform_nonfinal_group_size: boolean;
176
+ lexical_windows: boolean;
177
+ ordinal_identity_sequence: boolean;
178
+ };
179
+ attempt_digest: string;
180
+ }>;
181
+ export type IndexerPartitionAttemptRecord = z.infer<typeof attemptRecordSchema>;
182
+ export declare const indexerPartitionConvergenceRecordSchema: z.ZodObject<{
183
+ protocol: z.ZodLiteral<"context.indexer.partition-convergence/v1">;
184
+ partition_workset_digest: z.ZodString;
185
+ strategy_set_digest: z.ZodString;
186
+ attempts: z.ZodArray<z.ZodObject<{
187
+ strategy_order: z.ZodNumber;
188
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
189
+ kind: z.ZodLiteral<"project-indexer">;
190
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
191
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
192
+ implementation_digest: z.ZodString;
193
+ }, "strict", z.ZodTypeAny, {
194
+ kind: "project-indexer";
195
+ implementation_digest: string;
196
+ indexer_id: string;
197
+ strategy_id: string;
198
+ }, {
199
+ kind: "project-indexer";
200
+ implementation_digest: string;
201
+ indexer_id: string;
202
+ strategy_id: string;
203
+ }>, z.ZodObject<{
204
+ kind: z.ZodLiteral<"cli-builtin">;
205
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
206
+ implementation_digest: z.ZodString;
207
+ }, "strict", z.ZodTypeAny, {
208
+ kind: "cli-builtin";
209
+ implementation_digest: string;
210
+ strategy_id: string;
211
+ }, {
212
+ kind: "cli-builtin";
213
+ implementation_digest: string;
214
+ strategy_id: string;
215
+ }>]>;
216
+ strategy_digest: z.ZodString;
217
+ previous_attempt_digest: z.ZodNullable<z.ZodString>;
218
+ partition_plan_hash: z.ZodString;
219
+ plan_status: z.ZodEnum<["complete", "failed"]>;
220
+ classification: z.ZodEnum<["semantic", "fixed-count", "ordinal", "alphabetical", "retryable-strategy-failure", "blocking-input-damage"]>;
221
+ reason_code: z.ZodEnum<["semantic-partition", "fixed-count-partition", "ordinal-partition", "alphabetical-partition", "partition-strategy-failed", "partition-input-damaged"]>;
222
+ relationship: z.ZodObject<{
223
+ group_count: z.ZodNumber;
224
+ owned_member_count: z.ZodNumber;
225
+ group_sizes: z.ZodArray<z.ZodNumber, "many">;
226
+ uniform_nonfinal_group_size: z.ZodBoolean;
227
+ lexical_windows: z.ZodBoolean;
228
+ ordinal_identity_sequence: z.ZodBoolean;
229
+ }, "strict", z.ZodTypeAny, {
230
+ group_count: number;
231
+ owned_member_count: number;
232
+ group_sizes: number[];
233
+ uniform_nonfinal_group_size: boolean;
234
+ lexical_windows: boolean;
235
+ ordinal_identity_sequence: boolean;
236
+ }, {
237
+ group_count: number;
238
+ owned_member_count: number;
239
+ group_sizes: number[];
240
+ uniform_nonfinal_group_size: boolean;
241
+ lexical_windows: boolean;
242
+ ordinal_identity_sequence: boolean;
243
+ }>;
244
+ attempt_digest: z.ZodString;
245
+ }, "strict", z.ZodTypeAny, {
246
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
247
+ strategy_ref: {
248
+ kind: "project-indexer";
249
+ implementation_digest: string;
250
+ indexer_id: string;
251
+ strategy_id: string;
252
+ } | {
253
+ kind: "cli-builtin";
254
+ implementation_digest: string;
255
+ strategy_id: string;
256
+ };
257
+ strategy_digest: string;
258
+ strategy_order: number;
259
+ previous_attempt_digest: string | null;
260
+ partition_plan_hash: string;
261
+ plan_status: "complete" | "failed";
262
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
263
+ relationship: {
264
+ group_count: number;
265
+ owned_member_count: number;
266
+ group_sizes: number[];
267
+ uniform_nonfinal_group_size: boolean;
268
+ lexical_windows: boolean;
269
+ ordinal_identity_sequence: boolean;
270
+ };
271
+ attempt_digest: string;
272
+ }, {
273
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
274
+ strategy_ref: {
275
+ kind: "project-indexer";
276
+ implementation_digest: string;
277
+ indexer_id: string;
278
+ strategy_id: string;
279
+ } | {
280
+ kind: "cli-builtin";
281
+ implementation_digest: string;
282
+ strategy_id: string;
283
+ };
284
+ strategy_digest: string;
285
+ strategy_order: number;
286
+ previous_attempt_digest: string | null;
287
+ partition_plan_hash: string;
288
+ plan_status: "complete" | "failed";
289
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
290
+ relationship: {
291
+ group_count: number;
292
+ owned_member_count: number;
293
+ group_sizes: number[];
294
+ uniform_nonfinal_group_size: boolean;
295
+ lexical_windows: boolean;
296
+ ordinal_identity_sequence: boolean;
297
+ };
298
+ attempt_digest: string;
299
+ }>, "many">;
300
+ decision: z.ZodEnum<["accepted", "retry-required", "catalog-fallback-required", "blocked-invalid-input"]>;
301
+ accepted_plan_hash: z.ZodNullable<z.ZodString>;
302
+ next_strategy_attempt: z.ZodNullable<z.ZodObject<{
303
+ strategy_order: z.ZodNumber;
304
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
305
+ kind: z.ZodLiteral<"project-indexer">;
306
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
307
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
308
+ implementation_digest: z.ZodString;
309
+ }, "strict", z.ZodTypeAny, {
310
+ kind: "project-indexer";
311
+ implementation_digest: string;
312
+ indexer_id: string;
313
+ strategy_id: string;
314
+ }, {
315
+ kind: "project-indexer";
316
+ implementation_digest: string;
317
+ indexer_id: string;
318
+ strategy_id: string;
319
+ }>, z.ZodObject<{
320
+ kind: z.ZodLiteral<"cli-builtin">;
321
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
322
+ implementation_digest: z.ZodString;
323
+ }, "strict", z.ZodTypeAny, {
324
+ kind: "cli-builtin";
325
+ implementation_digest: string;
326
+ strategy_id: string;
327
+ }, {
328
+ kind: "cli-builtin";
329
+ implementation_digest: string;
330
+ strategy_id: string;
331
+ }>]>;
332
+ strategy_digest: z.ZodString;
333
+ previous_attempt_digest: z.ZodNullable<z.ZodString>;
334
+ }, "strict", z.ZodTypeAny, {
335
+ strategy_ref: {
336
+ kind: "project-indexer";
337
+ implementation_digest: string;
338
+ indexer_id: string;
339
+ strategy_id: string;
340
+ } | {
341
+ kind: "cli-builtin";
342
+ implementation_digest: string;
343
+ strategy_id: string;
344
+ };
345
+ strategy_digest: string;
346
+ strategy_order: number;
347
+ previous_attempt_digest: string | null;
348
+ }, {
349
+ strategy_ref: {
350
+ kind: "project-indexer";
351
+ implementation_digest: string;
352
+ indexer_id: string;
353
+ strategy_id: string;
354
+ } | {
355
+ kind: "cli-builtin";
356
+ implementation_digest: string;
357
+ strategy_id: string;
358
+ };
359
+ strategy_digest: string;
360
+ strategy_order: number;
361
+ previous_attempt_digest: string | null;
362
+ }>>;
363
+ outcome: z.ZodEnum<["completed", "partial", "failed"]>;
364
+ user_gate_required: z.ZodLiteral<false>;
365
+ profile_revision_ledger_consumed: z.ZodLiteral<false>;
366
+ convergence_digest: z.ZodString;
367
+ }, "strict", z.ZodTypeAny, {
368
+ decision: "accepted" | "retry-required" | "catalog-fallback-required" | "blocked-invalid-input";
369
+ protocol: "context.indexer.partition-convergence/v1";
370
+ strategy_set_digest: string;
371
+ partition_workset_digest: string;
372
+ attempts: {
373
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
374
+ strategy_ref: {
375
+ kind: "project-indexer";
376
+ implementation_digest: string;
377
+ indexer_id: string;
378
+ strategy_id: string;
379
+ } | {
380
+ kind: "cli-builtin";
381
+ implementation_digest: string;
382
+ strategy_id: string;
383
+ };
384
+ strategy_digest: string;
385
+ strategy_order: number;
386
+ previous_attempt_digest: string | null;
387
+ partition_plan_hash: string;
388
+ plan_status: "complete" | "failed";
389
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
390
+ relationship: {
391
+ group_count: number;
392
+ owned_member_count: number;
393
+ group_sizes: number[];
394
+ uniform_nonfinal_group_size: boolean;
395
+ lexical_windows: boolean;
396
+ ordinal_identity_sequence: boolean;
397
+ };
398
+ attempt_digest: string;
399
+ }[];
400
+ accepted_plan_hash: string | null;
401
+ next_strategy_attempt: {
402
+ strategy_ref: {
403
+ kind: "project-indexer";
404
+ implementation_digest: string;
405
+ indexer_id: string;
406
+ strategy_id: string;
407
+ } | {
408
+ kind: "cli-builtin";
409
+ implementation_digest: string;
410
+ strategy_id: string;
411
+ };
412
+ strategy_digest: string;
413
+ strategy_order: number;
414
+ previous_attempt_digest: string | null;
415
+ } | null;
416
+ outcome: "partial" | "failed" | "completed";
417
+ user_gate_required: false;
418
+ profile_revision_ledger_consumed: false;
419
+ convergence_digest: string;
420
+ }, {
421
+ decision: "accepted" | "retry-required" | "catalog-fallback-required" | "blocked-invalid-input";
422
+ protocol: "context.indexer.partition-convergence/v1";
423
+ strategy_set_digest: string;
424
+ partition_workset_digest: string;
425
+ attempts: {
426
+ reason_code: "semantic-partition" | "fixed-count-partition" | "ordinal-partition" | "alphabetical-partition" | "partition-strategy-failed" | "partition-input-damaged";
427
+ strategy_ref: {
428
+ kind: "project-indexer";
429
+ implementation_digest: string;
430
+ indexer_id: string;
431
+ strategy_id: string;
432
+ } | {
433
+ kind: "cli-builtin";
434
+ implementation_digest: string;
435
+ strategy_id: string;
436
+ };
437
+ strategy_digest: string;
438
+ strategy_order: number;
439
+ previous_attempt_digest: string | null;
440
+ partition_plan_hash: string;
441
+ plan_status: "complete" | "failed";
442
+ classification: "semantic" | "fixed-count" | "ordinal" | "alphabetical" | "retryable-strategy-failure" | "blocking-input-damage";
443
+ relationship: {
444
+ group_count: number;
445
+ owned_member_count: number;
446
+ group_sizes: number[];
447
+ uniform_nonfinal_group_size: boolean;
448
+ lexical_windows: boolean;
449
+ ordinal_identity_sequence: boolean;
450
+ };
451
+ attempt_digest: string;
452
+ }[];
453
+ accepted_plan_hash: string | null;
454
+ next_strategy_attempt: {
455
+ strategy_ref: {
456
+ kind: "project-indexer";
457
+ implementation_digest: string;
458
+ indexer_id: string;
459
+ strategy_id: string;
460
+ } | {
461
+ kind: "cli-builtin";
462
+ implementation_digest: string;
463
+ strategy_id: string;
464
+ };
465
+ strategy_digest: string;
466
+ strategy_order: number;
467
+ previous_attempt_digest: string | null;
468
+ } | null;
469
+ outcome: "partial" | "failed" | "completed";
470
+ user_gate_required: false;
471
+ profile_revision_ledger_consumed: false;
472
+ convergence_digest: string;
473
+ }>;
474
+ export type IndexerPartitionConvergenceRecord = z.infer<typeof indexerPartitionConvergenceRecordSchema>;
475
+ export declare function validateIndexerPartitionConvergenceRecord(value: unknown): IndexerPartitionConvergenceRecord;
476
+ export declare function convergeIndexerPartitionPlan(input: {
477
+ plan: unknown;
478
+ workset: IndexerMainPartitionWorkset;
479
+ canonical_inventory_members: readonly IndexerInventoryMember[];
480
+ authorized_source_refs: readonly string[];
481
+ authorized_strategies: readonly {
482
+ strategy_ref: IndexerPartitionStrategy;
483
+ strategy_digest: string;
484
+ }[];
485
+ required_question_target_refs?: readonly string[];
486
+ previous_record?: unknown;
487
+ }): IndexerPartitionConvergenceRecord;
488
+ export declare function validateIndexerPartitionStrategyAttempt(input: {
489
+ attempt: unknown;
490
+ workset: IndexerMainPartitionWorkset;
491
+ authorized_strategies: readonly {
492
+ strategy_ref: IndexerPartitionStrategy;
493
+ strategy_digest: string;
494
+ }[];
495
+ }): IndexerPartitionStrategyAttempt;
496
+ export {};