@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,1262 @@
1
+ import { z } from "zod";
2
+ import { type IndexerPartitionStrategy } from "./indexerPartitionPlan.js";
3
+ import { type IndexerInventoryMember } from "./indexerInventoryDisposition.js";
4
+ import type { IndexerMainPartitionWorkset } from "./indexerMainWorkset.js";
5
+ export declare const indexerCatalogFallbackRecordSchema: z.ZodObject<{
6
+ protocol: z.ZodLiteral<"context.indexer.catalog-fallback/v1">;
7
+ partition_workset_digest: z.ZodString;
8
+ strategy_set_digest: z.ZodString;
9
+ convergence_digest: z.ZodString;
10
+ partition_plan: z.ZodUnion<[z.ZodObject<{
11
+ status: z.ZodLiteral<"complete">;
12
+ failure: z.ZodNull;
13
+ protocol: z.ZodLiteral<"context.indexer.partition-plan/v1">;
14
+ binding: z.ZodObject<{
15
+ partition_workset_digest: z.ZodString;
16
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
17
+ indexer_fingerprint: z.ZodString;
18
+ requirement_digest: z.ZodString;
19
+ subject_key_schema_digest: z.ZodString;
20
+ source_scope_digest: z.ZodString;
21
+ source_refs: z.ZodArray<z.ZodString, "many">;
22
+ module_ref: z.ZodNullable<z.ZodString>;
23
+ partition_subject_key: z.ZodObject<{
24
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
25
+ namespace: z.ZodEffects<z.ZodString, string, string>;
26
+ kind: z.ZodEffects<z.ZodString, string, string>;
27
+ local_key: z.ZodEffects<z.ZodString, string, string>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ kind: string;
30
+ protocol: "context.subject-key/v1";
31
+ namespace: string;
32
+ local_key: string;
33
+ }, {
34
+ kind: string;
35
+ protocol: "context.subject-key/v1";
36
+ namespace: string;
37
+ local_key: string;
38
+ }>;
39
+ parent_scope_ref: z.ZodString;
40
+ inventory_digest: z.ZodString;
41
+ question_target_inventory_digest: z.ZodString;
42
+ }, "strict", z.ZodTypeAny, {
43
+ source_refs: string[];
44
+ module_ref: string | null;
45
+ requirement_digest: string;
46
+ indexer_id: string;
47
+ inventory_digest: string;
48
+ subject_key_schema_digest: string;
49
+ partition_subject_key: {
50
+ kind: string;
51
+ protocol: "context.subject-key/v1";
52
+ namespace: string;
53
+ local_key: string;
54
+ };
55
+ source_scope_digest: string;
56
+ question_target_inventory_digest: string;
57
+ partition_workset_digest: string;
58
+ indexer_fingerprint: string;
59
+ parent_scope_ref: string;
60
+ }, {
61
+ source_refs: string[];
62
+ module_ref: string | null;
63
+ requirement_digest: string;
64
+ indexer_id: string;
65
+ inventory_digest: string;
66
+ subject_key_schema_digest: string;
67
+ partition_subject_key: {
68
+ kind: string;
69
+ protocol: "context.subject-key/v1";
70
+ namespace: string;
71
+ local_key: string;
72
+ };
73
+ source_scope_digest: string;
74
+ question_target_inventory_digest: string;
75
+ partition_workset_digest: string;
76
+ indexer_fingerprint: string;
77
+ parent_scope_ref: string;
78
+ }>;
79
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
80
+ kind: z.ZodLiteral<"project-indexer">;
81
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
82
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
83
+ implementation_digest: z.ZodString;
84
+ }, "strict", z.ZodTypeAny, {
85
+ kind: "project-indexer";
86
+ implementation_digest: string;
87
+ indexer_id: string;
88
+ strategy_id: string;
89
+ }, {
90
+ kind: "project-indexer";
91
+ implementation_digest: string;
92
+ indexer_id: string;
93
+ strategy_id: string;
94
+ }>, z.ZodObject<{
95
+ kind: z.ZodLiteral<"cli-builtin">;
96
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
97
+ implementation_digest: z.ZodString;
98
+ }, "strict", z.ZodTypeAny, {
99
+ kind: "cli-builtin";
100
+ implementation_digest: string;
101
+ strategy_id: string;
102
+ }, {
103
+ kind: "cli-builtin";
104
+ implementation_digest: string;
105
+ strategy_id: string;
106
+ }>]>;
107
+ strategy_digest: z.ZodString;
108
+ unit_type: z.ZodEffects<z.ZodString, string, string>;
109
+ partition_axis: z.ZodEffects<z.ZodString, string, string>;
110
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
111
+ groups: z.ZodArray<z.ZodObject<{
112
+ group_key: z.ZodString;
113
+ subject_key: z.ZodObject<{
114
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
115
+ namespace: z.ZodEffects<z.ZodString, string, string>;
116
+ kind: z.ZodEffects<z.ZodString, string, string>;
117
+ local_key: z.ZodEffects<z.ZodString, string, string>;
118
+ }, "strict", z.ZodTypeAny, {
119
+ kind: string;
120
+ protocol: "context.subject-key/v1";
121
+ namespace: string;
122
+ local_key: string;
123
+ }, {
124
+ kind: string;
125
+ protocol: "context.subject-key/v1";
126
+ namespace: string;
127
+ local_key: string;
128
+ }>;
129
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
130
+ logical_unit_ref: z.ZodString;
131
+ label: z.ZodString;
132
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
133
+ question_target_bindings: z.ZodArray<z.ZodObject<{
134
+ target_ref: z.ZodString;
135
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
136
+ }, "strict", z.ZodTypeAny, {
137
+ role: "enricher" | "primary-carrier";
138
+ target_ref: string;
139
+ }, {
140
+ role: "enricher" | "primary-carrier";
141
+ target_ref: string;
142
+ }>, "many">;
143
+ member_ids: z.ZodArray<z.ZodString, "many">;
144
+ }, "strict", z.ZodTypeAny, {
145
+ reader_question_refs: string[];
146
+ logical_unit_ref: string;
147
+ subject_key: {
148
+ kind: string;
149
+ protocol: "context.subject-key/v1";
150
+ namespace: string;
151
+ local_key: string;
152
+ };
153
+ group_key: string;
154
+ member_ids: string[];
155
+ subject_intent: "primary" | "enrich-or-independent";
156
+ label: string;
157
+ question_target_bindings: {
158
+ role: "enricher" | "primary-carrier";
159
+ target_ref: string;
160
+ }[];
161
+ }, {
162
+ reader_question_refs: string[];
163
+ logical_unit_ref: string;
164
+ subject_key: {
165
+ kind: string;
166
+ protocol: "context.subject-key/v1";
167
+ namespace: string;
168
+ local_key: string;
169
+ };
170
+ group_key: string;
171
+ member_ids: string[];
172
+ subject_intent: "primary" | "enrich-or-independent";
173
+ label: string;
174
+ question_target_bindings: {
175
+ role: "enricher" | "primary-carrier";
176
+ target_ref: string;
177
+ }[];
178
+ }>, "many">;
179
+ member_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
180
+ member_id: z.ZodString;
181
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
182
+ inventory_disposition: z.ZodLiteral<"owned">;
183
+ group_key: z.ZodString;
184
+ }, "strict", z.ZodTypeAny, {
185
+ group_key: string;
186
+ member_id: string;
187
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
188
+ inventory_disposition: "owned";
189
+ }, {
190
+ group_key: string;
191
+ member_id: string;
192
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
193
+ inventory_disposition: "owned";
194
+ }>, z.ZodObject<{
195
+ member_id: z.ZodString;
196
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
197
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
198
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
199
+ }, "strict", z.ZodTypeAny, {
200
+ member_id: string;
201
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
202
+ inventory_disposition: "excluded-with-reason";
203
+ reason_code: string;
204
+ }, {
205
+ member_id: string;
206
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
207
+ inventory_disposition: "excluded-with-reason";
208
+ reason_code: string;
209
+ }>, z.ZodObject<{
210
+ member_id: z.ZodString;
211
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
212
+ inventory_disposition: z.ZodLiteral<"unsupported">;
213
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
214
+ }, "strict", z.ZodTypeAny, {
215
+ member_id: string;
216
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
217
+ inventory_disposition: "unsupported";
218
+ missing_capabilities: string[];
219
+ }, {
220
+ member_id: string;
221
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
222
+ inventory_disposition: "unsupported";
223
+ missing_capabilities: string[];
224
+ }>]>, "many">;
225
+ canonical_hash: z.ZodString;
226
+ }, "strict", z.ZodTypeAny, {
227
+ protocol: "context.indexer.partition-plan/v1";
228
+ status: "complete";
229
+ reader_question_refs: string[];
230
+ failure: null;
231
+ binding: {
232
+ source_refs: string[];
233
+ module_ref: string | null;
234
+ requirement_digest: string;
235
+ indexer_id: string;
236
+ inventory_digest: string;
237
+ subject_key_schema_digest: string;
238
+ partition_subject_key: {
239
+ kind: string;
240
+ protocol: "context.subject-key/v1";
241
+ namespace: string;
242
+ local_key: string;
243
+ };
244
+ source_scope_digest: string;
245
+ question_target_inventory_digest: string;
246
+ partition_workset_digest: string;
247
+ indexer_fingerprint: string;
248
+ parent_scope_ref: string;
249
+ };
250
+ strategy_ref: {
251
+ kind: "project-indexer";
252
+ implementation_digest: string;
253
+ indexer_id: string;
254
+ strategy_id: string;
255
+ } | {
256
+ kind: "cli-builtin";
257
+ implementation_digest: string;
258
+ strategy_id: string;
259
+ };
260
+ strategy_digest: string;
261
+ unit_type: string;
262
+ partition_axis: string;
263
+ groups: {
264
+ reader_question_refs: string[];
265
+ logical_unit_ref: string;
266
+ subject_key: {
267
+ kind: string;
268
+ protocol: "context.subject-key/v1";
269
+ namespace: string;
270
+ local_key: string;
271
+ };
272
+ group_key: string;
273
+ member_ids: string[];
274
+ subject_intent: "primary" | "enrich-or-independent";
275
+ label: string;
276
+ question_target_bindings: {
277
+ role: "enricher" | "primary-carrier";
278
+ target_ref: string;
279
+ }[];
280
+ }[];
281
+ member_dispositions: ({
282
+ group_key: string;
283
+ member_id: string;
284
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
285
+ inventory_disposition: "owned";
286
+ } | {
287
+ member_id: string;
288
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
289
+ inventory_disposition: "excluded-with-reason";
290
+ reason_code: string;
291
+ } | {
292
+ member_id: string;
293
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
294
+ inventory_disposition: "unsupported";
295
+ missing_capabilities: string[];
296
+ })[];
297
+ canonical_hash: string;
298
+ }, {
299
+ protocol: "context.indexer.partition-plan/v1";
300
+ status: "complete";
301
+ reader_question_refs: string[];
302
+ failure: null;
303
+ binding: {
304
+ source_refs: string[];
305
+ module_ref: string | null;
306
+ requirement_digest: string;
307
+ indexer_id: string;
308
+ inventory_digest: string;
309
+ subject_key_schema_digest: string;
310
+ partition_subject_key: {
311
+ kind: string;
312
+ protocol: "context.subject-key/v1";
313
+ namespace: string;
314
+ local_key: string;
315
+ };
316
+ source_scope_digest: string;
317
+ question_target_inventory_digest: string;
318
+ partition_workset_digest: string;
319
+ indexer_fingerprint: string;
320
+ parent_scope_ref: string;
321
+ };
322
+ strategy_ref: {
323
+ kind: "project-indexer";
324
+ implementation_digest: string;
325
+ indexer_id: string;
326
+ strategy_id: string;
327
+ } | {
328
+ kind: "cli-builtin";
329
+ implementation_digest: string;
330
+ strategy_id: string;
331
+ };
332
+ strategy_digest: string;
333
+ unit_type: string;
334
+ partition_axis: string;
335
+ groups: {
336
+ reader_question_refs: string[];
337
+ logical_unit_ref: string;
338
+ subject_key: {
339
+ kind: string;
340
+ protocol: "context.subject-key/v1";
341
+ namespace: string;
342
+ local_key: string;
343
+ };
344
+ group_key: string;
345
+ member_ids: string[];
346
+ subject_intent: "primary" | "enrich-or-independent";
347
+ label: string;
348
+ question_target_bindings: {
349
+ role: "enricher" | "primary-carrier";
350
+ target_ref: string;
351
+ }[];
352
+ }[];
353
+ member_dispositions: ({
354
+ group_key: string;
355
+ member_id: string;
356
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
357
+ inventory_disposition: "owned";
358
+ } | {
359
+ member_id: string;
360
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
361
+ inventory_disposition: "excluded-with-reason";
362
+ reason_code: string;
363
+ } | {
364
+ member_id: string;
365
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
366
+ inventory_disposition: "unsupported";
367
+ missing_capabilities: string[];
368
+ })[];
369
+ canonical_hash: string;
370
+ }>, z.ZodObject<{
371
+ status: z.ZodLiteral<"failed">;
372
+ failure: z.ZodObject<{
373
+ code: z.ZodEnum<["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"]>;
374
+ message: z.ZodString;
375
+ unassigned_member_ids: z.ZodArray<z.ZodString, "many">;
376
+ missing_capabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
377
+ missing_source_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
378
+ }, "strict", z.ZodTypeAny, {
379
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
380
+ message: string;
381
+ unassigned_member_ids: string[];
382
+ missing_capabilities?: string[] | undefined;
383
+ missing_source_refs?: string[] | undefined;
384
+ }, {
385
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
386
+ message: string;
387
+ unassigned_member_ids: string[];
388
+ missing_capabilities?: string[] | undefined;
389
+ missing_source_refs?: string[] | undefined;
390
+ }>;
391
+ protocol: z.ZodLiteral<"context.indexer.partition-plan/v1">;
392
+ binding: z.ZodObject<{
393
+ partition_workset_digest: z.ZodString;
394
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
395
+ indexer_fingerprint: z.ZodString;
396
+ requirement_digest: z.ZodString;
397
+ subject_key_schema_digest: z.ZodString;
398
+ source_scope_digest: z.ZodString;
399
+ source_refs: z.ZodArray<z.ZodString, "many">;
400
+ module_ref: z.ZodNullable<z.ZodString>;
401
+ partition_subject_key: z.ZodObject<{
402
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
403
+ namespace: z.ZodEffects<z.ZodString, string, string>;
404
+ kind: z.ZodEffects<z.ZodString, string, string>;
405
+ local_key: z.ZodEffects<z.ZodString, string, string>;
406
+ }, "strict", z.ZodTypeAny, {
407
+ kind: string;
408
+ protocol: "context.subject-key/v1";
409
+ namespace: string;
410
+ local_key: string;
411
+ }, {
412
+ kind: string;
413
+ protocol: "context.subject-key/v1";
414
+ namespace: string;
415
+ local_key: string;
416
+ }>;
417
+ parent_scope_ref: z.ZodString;
418
+ inventory_digest: z.ZodString;
419
+ question_target_inventory_digest: z.ZodString;
420
+ }, "strict", z.ZodTypeAny, {
421
+ source_refs: string[];
422
+ module_ref: string | null;
423
+ requirement_digest: string;
424
+ indexer_id: string;
425
+ inventory_digest: string;
426
+ subject_key_schema_digest: string;
427
+ partition_subject_key: {
428
+ kind: string;
429
+ protocol: "context.subject-key/v1";
430
+ namespace: string;
431
+ local_key: string;
432
+ };
433
+ source_scope_digest: string;
434
+ question_target_inventory_digest: string;
435
+ partition_workset_digest: string;
436
+ indexer_fingerprint: string;
437
+ parent_scope_ref: string;
438
+ }, {
439
+ source_refs: string[];
440
+ module_ref: string | null;
441
+ requirement_digest: string;
442
+ indexer_id: string;
443
+ inventory_digest: string;
444
+ subject_key_schema_digest: string;
445
+ partition_subject_key: {
446
+ kind: string;
447
+ protocol: "context.subject-key/v1";
448
+ namespace: string;
449
+ local_key: string;
450
+ };
451
+ source_scope_digest: string;
452
+ question_target_inventory_digest: string;
453
+ partition_workset_digest: string;
454
+ indexer_fingerprint: string;
455
+ parent_scope_ref: string;
456
+ }>;
457
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
458
+ kind: z.ZodLiteral<"project-indexer">;
459
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
460
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
461
+ implementation_digest: z.ZodString;
462
+ }, "strict", z.ZodTypeAny, {
463
+ kind: "project-indexer";
464
+ implementation_digest: string;
465
+ indexer_id: string;
466
+ strategy_id: string;
467
+ }, {
468
+ kind: "project-indexer";
469
+ implementation_digest: string;
470
+ indexer_id: string;
471
+ strategy_id: string;
472
+ }>, z.ZodObject<{
473
+ kind: z.ZodLiteral<"cli-builtin">;
474
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
475
+ implementation_digest: z.ZodString;
476
+ }, "strict", z.ZodTypeAny, {
477
+ kind: "cli-builtin";
478
+ implementation_digest: string;
479
+ strategy_id: string;
480
+ }, {
481
+ kind: "cli-builtin";
482
+ implementation_digest: string;
483
+ strategy_id: string;
484
+ }>]>;
485
+ strategy_digest: z.ZodString;
486
+ unit_type: z.ZodEffects<z.ZodString, string, string>;
487
+ partition_axis: z.ZodEffects<z.ZodString, string, string>;
488
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
489
+ groups: z.ZodArray<z.ZodObject<{
490
+ group_key: z.ZodString;
491
+ subject_key: z.ZodObject<{
492
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
493
+ namespace: z.ZodEffects<z.ZodString, string, string>;
494
+ kind: z.ZodEffects<z.ZodString, string, string>;
495
+ local_key: z.ZodEffects<z.ZodString, string, string>;
496
+ }, "strict", z.ZodTypeAny, {
497
+ kind: string;
498
+ protocol: "context.subject-key/v1";
499
+ namespace: string;
500
+ local_key: string;
501
+ }, {
502
+ kind: string;
503
+ protocol: "context.subject-key/v1";
504
+ namespace: string;
505
+ local_key: string;
506
+ }>;
507
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
508
+ logical_unit_ref: z.ZodString;
509
+ label: z.ZodString;
510
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
511
+ question_target_bindings: z.ZodArray<z.ZodObject<{
512
+ target_ref: z.ZodString;
513
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
514
+ }, "strict", z.ZodTypeAny, {
515
+ role: "enricher" | "primary-carrier";
516
+ target_ref: string;
517
+ }, {
518
+ role: "enricher" | "primary-carrier";
519
+ target_ref: string;
520
+ }>, "many">;
521
+ member_ids: z.ZodArray<z.ZodString, "many">;
522
+ }, "strict", z.ZodTypeAny, {
523
+ reader_question_refs: string[];
524
+ logical_unit_ref: string;
525
+ subject_key: {
526
+ kind: string;
527
+ protocol: "context.subject-key/v1";
528
+ namespace: string;
529
+ local_key: string;
530
+ };
531
+ group_key: string;
532
+ member_ids: string[];
533
+ subject_intent: "primary" | "enrich-or-independent";
534
+ label: string;
535
+ question_target_bindings: {
536
+ role: "enricher" | "primary-carrier";
537
+ target_ref: string;
538
+ }[];
539
+ }, {
540
+ reader_question_refs: string[];
541
+ logical_unit_ref: string;
542
+ subject_key: {
543
+ kind: string;
544
+ protocol: "context.subject-key/v1";
545
+ namespace: string;
546
+ local_key: string;
547
+ };
548
+ group_key: string;
549
+ member_ids: string[];
550
+ subject_intent: "primary" | "enrich-or-independent";
551
+ label: string;
552
+ question_target_bindings: {
553
+ role: "enricher" | "primary-carrier";
554
+ target_ref: string;
555
+ }[];
556
+ }>, "many">;
557
+ member_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
558
+ member_id: z.ZodString;
559
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
560
+ inventory_disposition: z.ZodLiteral<"owned">;
561
+ group_key: z.ZodString;
562
+ }, "strict", z.ZodTypeAny, {
563
+ group_key: string;
564
+ member_id: string;
565
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
566
+ inventory_disposition: "owned";
567
+ }, {
568
+ group_key: string;
569
+ member_id: string;
570
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
571
+ inventory_disposition: "owned";
572
+ }>, z.ZodObject<{
573
+ member_id: z.ZodString;
574
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
575
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
576
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
577
+ }, "strict", z.ZodTypeAny, {
578
+ member_id: string;
579
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
580
+ inventory_disposition: "excluded-with-reason";
581
+ reason_code: string;
582
+ }, {
583
+ member_id: string;
584
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
585
+ inventory_disposition: "excluded-with-reason";
586
+ reason_code: string;
587
+ }>, z.ZodObject<{
588
+ member_id: z.ZodString;
589
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
590
+ inventory_disposition: z.ZodLiteral<"unsupported">;
591
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
592
+ }, "strict", z.ZodTypeAny, {
593
+ member_id: string;
594
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
595
+ inventory_disposition: "unsupported";
596
+ missing_capabilities: string[];
597
+ }, {
598
+ member_id: string;
599
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
600
+ inventory_disposition: "unsupported";
601
+ missing_capabilities: string[];
602
+ }>]>, "many">;
603
+ canonical_hash: z.ZodString;
604
+ }, "strict", z.ZodTypeAny, {
605
+ protocol: "context.indexer.partition-plan/v1";
606
+ status: "failed";
607
+ reader_question_refs: string[];
608
+ failure: {
609
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
610
+ message: string;
611
+ unassigned_member_ids: string[];
612
+ missing_capabilities?: string[] | undefined;
613
+ missing_source_refs?: string[] | undefined;
614
+ };
615
+ binding: {
616
+ source_refs: string[];
617
+ module_ref: string | null;
618
+ requirement_digest: string;
619
+ indexer_id: string;
620
+ inventory_digest: string;
621
+ subject_key_schema_digest: string;
622
+ partition_subject_key: {
623
+ kind: string;
624
+ protocol: "context.subject-key/v1";
625
+ namespace: string;
626
+ local_key: string;
627
+ };
628
+ source_scope_digest: string;
629
+ question_target_inventory_digest: string;
630
+ partition_workset_digest: string;
631
+ indexer_fingerprint: string;
632
+ parent_scope_ref: string;
633
+ };
634
+ strategy_ref: {
635
+ kind: "project-indexer";
636
+ implementation_digest: string;
637
+ indexer_id: string;
638
+ strategy_id: string;
639
+ } | {
640
+ kind: "cli-builtin";
641
+ implementation_digest: string;
642
+ strategy_id: string;
643
+ };
644
+ strategy_digest: string;
645
+ unit_type: string;
646
+ partition_axis: string;
647
+ groups: {
648
+ reader_question_refs: string[];
649
+ logical_unit_ref: string;
650
+ subject_key: {
651
+ kind: string;
652
+ protocol: "context.subject-key/v1";
653
+ namespace: string;
654
+ local_key: string;
655
+ };
656
+ group_key: string;
657
+ member_ids: string[];
658
+ subject_intent: "primary" | "enrich-or-independent";
659
+ label: string;
660
+ question_target_bindings: {
661
+ role: "enricher" | "primary-carrier";
662
+ target_ref: string;
663
+ }[];
664
+ }[];
665
+ member_dispositions: ({
666
+ group_key: string;
667
+ member_id: string;
668
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
669
+ inventory_disposition: "owned";
670
+ } | {
671
+ member_id: string;
672
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
673
+ inventory_disposition: "excluded-with-reason";
674
+ reason_code: string;
675
+ } | {
676
+ member_id: string;
677
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
678
+ inventory_disposition: "unsupported";
679
+ missing_capabilities: string[];
680
+ })[];
681
+ canonical_hash: string;
682
+ }, {
683
+ protocol: "context.indexer.partition-plan/v1";
684
+ status: "failed";
685
+ reader_question_refs: string[];
686
+ failure: {
687
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
688
+ message: string;
689
+ unassigned_member_ids: string[];
690
+ missing_capabilities?: string[] | undefined;
691
+ missing_source_refs?: string[] | undefined;
692
+ };
693
+ binding: {
694
+ source_refs: string[];
695
+ module_ref: string | null;
696
+ requirement_digest: string;
697
+ indexer_id: string;
698
+ inventory_digest: string;
699
+ subject_key_schema_digest: string;
700
+ partition_subject_key: {
701
+ kind: string;
702
+ protocol: "context.subject-key/v1";
703
+ namespace: string;
704
+ local_key: string;
705
+ };
706
+ source_scope_digest: string;
707
+ question_target_inventory_digest: string;
708
+ partition_workset_digest: string;
709
+ indexer_fingerprint: string;
710
+ parent_scope_ref: string;
711
+ };
712
+ strategy_ref: {
713
+ kind: "project-indexer";
714
+ implementation_digest: string;
715
+ indexer_id: string;
716
+ strategy_id: string;
717
+ } | {
718
+ kind: "cli-builtin";
719
+ implementation_digest: string;
720
+ strategy_id: string;
721
+ };
722
+ strategy_digest: string;
723
+ unit_type: string;
724
+ partition_axis: string;
725
+ groups: {
726
+ reader_question_refs: string[];
727
+ logical_unit_ref: string;
728
+ subject_key: {
729
+ kind: string;
730
+ protocol: "context.subject-key/v1";
731
+ namespace: string;
732
+ local_key: string;
733
+ };
734
+ group_key: string;
735
+ member_ids: string[];
736
+ subject_intent: "primary" | "enrich-or-independent";
737
+ label: string;
738
+ question_target_bindings: {
739
+ role: "enricher" | "primary-carrier";
740
+ target_ref: string;
741
+ }[];
742
+ }[];
743
+ member_dispositions: ({
744
+ group_key: string;
745
+ member_id: string;
746
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
747
+ inventory_disposition: "owned";
748
+ } | {
749
+ member_id: string;
750
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
751
+ inventory_disposition: "excluded-with-reason";
752
+ reason_code: string;
753
+ } | {
754
+ member_id: string;
755
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
756
+ inventory_disposition: "unsupported";
757
+ missing_capabilities: string[];
758
+ })[];
759
+ canonical_hash: string;
760
+ }>]>;
761
+ catalog_block: z.ZodObject<{
762
+ renderer: z.ZodLiteral<"context.indexer.deterministic-catalog/v1">;
763
+ logical_unit_ref: z.ZodString;
764
+ member_ids: z.ZodArray<z.ZodString, "many">;
765
+ member_ids_digest: z.ZodString;
766
+ }, "strict", z.ZodTypeAny, {
767
+ logical_unit_ref: string;
768
+ renderer: "context.indexer.deterministic-catalog/v1";
769
+ member_ids_digest: string;
770
+ member_ids: string[];
771
+ }, {
772
+ logical_unit_ref: string;
773
+ renderer: "context.indexer.deterministic-catalog/v1";
774
+ member_ids_digest: string;
775
+ member_ids: string[];
776
+ }>;
777
+ continuation_policy: z.ZodObject<{
778
+ advisory_line_threshold: z.ZodLiteral<1500>;
779
+ oversized_behavior: z.ZodLiteral<"advisory-only">;
780
+ split_mode: z.ZodLiteral<"physical-continuation">;
781
+ split_of: z.ZodString;
782
+ navigation_identity: z.ZodString;
783
+ review_identity: z.ZodString;
784
+ }, "strict", z.ZodTypeAny, {
785
+ split_of: string;
786
+ advisory_line_threshold: 1500;
787
+ oversized_behavior: "advisory-only";
788
+ split_mode: "physical-continuation";
789
+ navigation_identity: string;
790
+ review_identity: string;
791
+ }, {
792
+ split_of: string;
793
+ advisory_line_threshold: 1500;
794
+ oversized_behavior: "advisory-only";
795
+ split_mode: "physical-continuation";
796
+ navigation_identity: string;
797
+ review_identity: string;
798
+ }>;
799
+ user_gate_required: z.ZodLiteral<false>;
800
+ profile_revision_ledger_consumed: z.ZodLiteral<false>;
801
+ fallback_digest: z.ZodString;
802
+ }, "strict", z.ZodTypeAny, {
803
+ protocol: "context.indexer.catalog-fallback/v1";
804
+ strategy_set_digest: string;
805
+ partition_workset_digest: string;
806
+ user_gate_required: false;
807
+ profile_revision_ledger_consumed: false;
808
+ convergence_digest: string;
809
+ partition_plan: {
810
+ protocol: "context.indexer.partition-plan/v1";
811
+ status: "complete";
812
+ reader_question_refs: string[];
813
+ failure: null;
814
+ binding: {
815
+ source_refs: string[];
816
+ module_ref: string | null;
817
+ requirement_digest: string;
818
+ indexer_id: string;
819
+ inventory_digest: string;
820
+ subject_key_schema_digest: string;
821
+ partition_subject_key: {
822
+ kind: string;
823
+ protocol: "context.subject-key/v1";
824
+ namespace: string;
825
+ local_key: string;
826
+ };
827
+ source_scope_digest: string;
828
+ question_target_inventory_digest: string;
829
+ partition_workset_digest: string;
830
+ indexer_fingerprint: string;
831
+ parent_scope_ref: string;
832
+ };
833
+ strategy_ref: {
834
+ kind: "project-indexer";
835
+ implementation_digest: string;
836
+ indexer_id: string;
837
+ strategy_id: string;
838
+ } | {
839
+ kind: "cli-builtin";
840
+ implementation_digest: string;
841
+ strategy_id: string;
842
+ };
843
+ strategy_digest: string;
844
+ unit_type: string;
845
+ partition_axis: string;
846
+ groups: {
847
+ reader_question_refs: string[];
848
+ logical_unit_ref: string;
849
+ subject_key: {
850
+ kind: string;
851
+ protocol: "context.subject-key/v1";
852
+ namespace: string;
853
+ local_key: string;
854
+ };
855
+ group_key: string;
856
+ member_ids: string[];
857
+ subject_intent: "primary" | "enrich-or-independent";
858
+ label: string;
859
+ question_target_bindings: {
860
+ role: "enricher" | "primary-carrier";
861
+ target_ref: string;
862
+ }[];
863
+ }[];
864
+ member_dispositions: ({
865
+ group_key: string;
866
+ member_id: string;
867
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
868
+ inventory_disposition: "owned";
869
+ } | {
870
+ member_id: string;
871
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
872
+ inventory_disposition: "excluded-with-reason";
873
+ reason_code: string;
874
+ } | {
875
+ member_id: string;
876
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
877
+ inventory_disposition: "unsupported";
878
+ missing_capabilities: string[];
879
+ })[];
880
+ canonical_hash: string;
881
+ } | {
882
+ protocol: "context.indexer.partition-plan/v1";
883
+ status: "failed";
884
+ reader_question_refs: string[];
885
+ failure: {
886
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
887
+ message: string;
888
+ unassigned_member_ids: string[];
889
+ missing_capabilities?: string[] | undefined;
890
+ missing_source_refs?: string[] | undefined;
891
+ };
892
+ binding: {
893
+ source_refs: string[];
894
+ module_ref: string | null;
895
+ requirement_digest: string;
896
+ indexer_id: string;
897
+ inventory_digest: string;
898
+ subject_key_schema_digest: string;
899
+ partition_subject_key: {
900
+ kind: string;
901
+ protocol: "context.subject-key/v1";
902
+ namespace: string;
903
+ local_key: string;
904
+ };
905
+ source_scope_digest: string;
906
+ question_target_inventory_digest: string;
907
+ partition_workset_digest: string;
908
+ indexer_fingerprint: string;
909
+ parent_scope_ref: string;
910
+ };
911
+ strategy_ref: {
912
+ kind: "project-indexer";
913
+ implementation_digest: string;
914
+ indexer_id: string;
915
+ strategy_id: string;
916
+ } | {
917
+ kind: "cli-builtin";
918
+ implementation_digest: string;
919
+ strategy_id: string;
920
+ };
921
+ strategy_digest: string;
922
+ unit_type: string;
923
+ partition_axis: string;
924
+ groups: {
925
+ reader_question_refs: string[];
926
+ logical_unit_ref: string;
927
+ subject_key: {
928
+ kind: string;
929
+ protocol: "context.subject-key/v1";
930
+ namespace: string;
931
+ local_key: string;
932
+ };
933
+ group_key: string;
934
+ member_ids: string[];
935
+ subject_intent: "primary" | "enrich-or-independent";
936
+ label: string;
937
+ question_target_bindings: {
938
+ role: "enricher" | "primary-carrier";
939
+ target_ref: string;
940
+ }[];
941
+ }[];
942
+ member_dispositions: ({
943
+ group_key: string;
944
+ member_id: string;
945
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
946
+ inventory_disposition: "owned";
947
+ } | {
948
+ member_id: string;
949
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
950
+ inventory_disposition: "excluded-with-reason";
951
+ reason_code: string;
952
+ } | {
953
+ member_id: string;
954
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
955
+ inventory_disposition: "unsupported";
956
+ missing_capabilities: string[];
957
+ })[];
958
+ canonical_hash: string;
959
+ };
960
+ catalog_block: {
961
+ logical_unit_ref: string;
962
+ renderer: "context.indexer.deterministic-catalog/v1";
963
+ member_ids_digest: string;
964
+ member_ids: string[];
965
+ };
966
+ continuation_policy: {
967
+ split_of: string;
968
+ advisory_line_threshold: 1500;
969
+ oversized_behavior: "advisory-only";
970
+ split_mode: "physical-continuation";
971
+ navigation_identity: string;
972
+ review_identity: string;
973
+ };
974
+ fallback_digest: string;
975
+ }, {
976
+ protocol: "context.indexer.catalog-fallback/v1";
977
+ strategy_set_digest: string;
978
+ partition_workset_digest: string;
979
+ user_gate_required: false;
980
+ profile_revision_ledger_consumed: false;
981
+ convergence_digest: string;
982
+ partition_plan: {
983
+ protocol: "context.indexer.partition-plan/v1";
984
+ status: "complete";
985
+ reader_question_refs: string[];
986
+ failure: null;
987
+ binding: {
988
+ source_refs: string[];
989
+ module_ref: string | null;
990
+ requirement_digest: string;
991
+ indexer_id: string;
992
+ inventory_digest: string;
993
+ subject_key_schema_digest: string;
994
+ partition_subject_key: {
995
+ kind: string;
996
+ protocol: "context.subject-key/v1";
997
+ namespace: string;
998
+ local_key: string;
999
+ };
1000
+ source_scope_digest: string;
1001
+ question_target_inventory_digest: string;
1002
+ partition_workset_digest: string;
1003
+ indexer_fingerprint: string;
1004
+ parent_scope_ref: string;
1005
+ };
1006
+ strategy_ref: {
1007
+ kind: "project-indexer";
1008
+ implementation_digest: string;
1009
+ indexer_id: string;
1010
+ strategy_id: string;
1011
+ } | {
1012
+ kind: "cli-builtin";
1013
+ implementation_digest: string;
1014
+ strategy_id: string;
1015
+ };
1016
+ strategy_digest: string;
1017
+ unit_type: string;
1018
+ partition_axis: string;
1019
+ groups: {
1020
+ reader_question_refs: string[];
1021
+ logical_unit_ref: string;
1022
+ subject_key: {
1023
+ kind: string;
1024
+ protocol: "context.subject-key/v1";
1025
+ namespace: string;
1026
+ local_key: string;
1027
+ };
1028
+ group_key: string;
1029
+ member_ids: string[];
1030
+ subject_intent: "primary" | "enrich-or-independent";
1031
+ label: string;
1032
+ question_target_bindings: {
1033
+ role: "enricher" | "primary-carrier";
1034
+ target_ref: string;
1035
+ }[];
1036
+ }[];
1037
+ member_dispositions: ({
1038
+ group_key: string;
1039
+ member_id: string;
1040
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1041
+ inventory_disposition: "owned";
1042
+ } | {
1043
+ member_id: string;
1044
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1045
+ inventory_disposition: "excluded-with-reason";
1046
+ reason_code: string;
1047
+ } | {
1048
+ member_id: string;
1049
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1050
+ inventory_disposition: "unsupported";
1051
+ missing_capabilities: string[];
1052
+ })[];
1053
+ canonical_hash: string;
1054
+ } | {
1055
+ protocol: "context.indexer.partition-plan/v1";
1056
+ status: "failed";
1057
+ reader_question_refs: string[];
1058
+ failure: {
1059
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
1060
+ message: string;
1061
+ unassigned_member_ids: string[];
1062
+ missing_capabilities?: string[] | undefined;
1063
+ missing_source_refs?: string[] | undefined;
1064
+ };
1065
+ binding: {
1066
+ source_refs: string[];
1067
+ module_ref: string | null;
1068
+ requirement_digest: string;
1069
+ indexer_id: string;
1070
+ inventory_digest: string;
1071
+ subject_key_schema_digest: string;
1072
+ partition_subject_key: {
1073
+ kind: string;
1074
+ protocol: "context.subject-key/v1";
1075
+ namespace: string;
1076
+ local_key: string;
1077
+ };
1078
+ source_scope_digest: string;
1079
+ question_target_inventory_digest: string;
1080
+ partition_workset_digest: string;
1081
+ indexer_fingerprint: string;
1082
+ parent_scope_ref: string;
1083
+ };
1084
+ strategy_ref: {
1085
+ kind: "project-indexer";
1086
+ implementation_digest: string;
1087
+ indexer_id: string;
1088
+ strategy_id: string;
1089
+ } | {
1090
+ kind: "cli-builtin";
1091
+ implementation_digest: string;
1092
+ strategy_id: string;
1093
+ };
1094
+ strategy_digest: string;
1095
+ unit_type: string;
1096
+ partition_axis: string;
1097
+ groups: {
1098
+ reader_question_refs: string[];
1099
+ logical_unit_ref: string;
1100
+ subject_key: {
1101
+ kind: string;
1102
+ protocol: "context.subject-key/v1";
1103
+ namespace: string;
1104
+ local_key: string;
1105
+ };
1106
+ group_key: string;
1107
+ member_ids: string[];
1108
+ subject_intent: "primary" | "enrich-or-independent";
1109
+ label: string;
1110
+ question_target_bindings: {
1111
+ role: "enricher" | "primary-carrier";
1112
+ target_ref: string;
1113
+ }[];
1114
+ }[];
1115
+ member_dispositions: ({
1116
+ group_key: string;
1117
+ member_id: string;
1118
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1119
+ inventory_disposition: "owned";
1120
+ } | {
1121
+ member_id: string;
1122
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1123
+ inventory_disposition: "excluded-with-reason";
1124
+ reason_code: string;
1125
+ } | {
1126
+ member_id: string;
1127
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
1128
+ inventory_disposition: "unsupported";
1129
+ missing_capabilities: string[];
1130
+ })[];
1131
+ canonical_hash: string;
1132
+ };
1133
+ catalog_block: {
1134
+ logical_unit_ref: string;
1135
+ renderer: "context.indexer.deterministic-catalog/v1";
1136
+ member_ids_digest: string;
1137
+ member_ids: string[];
1138
+ };
1139
+ continuation_policy: {
1140
+ split_of: string;
1141
+ advisory_line_threshold: 1500;
1142
+ oversized_behavior: "advisory-only";
1143
+ split_mode: "physical-continuation";
1144
+ navigation_identity: string;
1145
+ review_identity: string;
1146
+ };
1147
+ fallback_digest: string;
1148
+ }>;
1149
+ export type IndexerCatalogFallbackRecord = z.infer<typeof indexerCatalogFallbackRecordSchema>;
1150
+ export declare function validateIndexerCatalogFallbackRecord(value: unknown): IndexerCatalogFallbackRecord;
1151
+ export declare function buildIndexerCatalogFallback(input: {
1152
+ workset: IndexerMainPartitionWorkset;
1153
+ convergence: unknown;
1154
+ canonical_inventory_members: readonly IndexerInventoryMember[];
1155
+ authorized_source_refs: readonly string[];
1156
+ authorized_strategies: readonly {
1157
+ strategy_ref: IndexerPartitionStrategy;
1158
+ strategy_digest: string;
1159
+ }[];
1160
+ required_question_target_refs?: readonly string[];
1161
+ }): IndexerCatalogFallbackRecord;
1162
+ declare const continuationInputSchema: z.ZodObject<{
1163
+ boundary_ref: z.ZodNullable<z.ZodString>;
1164
+ member_ids: z.ZodArray<z.ZodString, "many">;
1165
+ }, "strict", z.ZodTypeAny, {
1166
+ member_ids: string[];
1167
+ boundary_ref: string | null;
1168
+ }, {
1169
+ member_ids: string[];
1170
+ boundary_ref: string | null;
1171
+ }>;
1172
+ export declare const indexerCatalogContinuationPlanSchema: z.ZodObject<{
1173
+ protocol: z.ZodLiteral<"context.indexer.catalog-continuation-plan/v1">;
1174
+ fallback_digest: z.ZodString;
1175
+ logical_unit_ref: z.ZodString;
1176
+ parent_member_ids_digest: z.ZodString;
1177
+ estimated_line_count: z.ZodNumber;
1178
+ readability_advisory: z.ZodBoolean;
1179
+ blocking: z.ZodLiteral<false>;
1180
+ user_gate_required: z.ZodLiteral<false>;
1181
+ profile_revision_ledger_consumed: z.ZodLiteral<false>;
1182
+ fragments: z.ZodArray<z.ZodObject<{
1183
+ boundary_ref: z.ZodNullable<z.ZodString>;
1184
+ member_ids: z.ZodArray<z.ZodString, "many">;
1185
+ } & {
1186
+ fragment_ref: z.ZodString;
1187
+ member_ids_digest: z.ZodString;
1188
+ split_of: z.ZodString;
1189
+ reader_title: z.ZodNull;
1190
+ navigation_entry: z.ZodLiteral<false>;
1191
+ review_entry: z.ZodLiteral<false>;
1192
+ }, "strict", z.ZodTypeAny, {
1193
+ split_of: string;
1194
+ member_ids_digest: string;
1195
+ member_ids: string[];
1196
+ boundary_ref: string | null;
1197
+ fragment_ref: string;
1198
+ reader_title: null;
1199
+ navigation_entry: false;
1200
+ review_entry: false;
1201
+ }, {
1202
+ split_of: string;
1203
+ member_ids_digest: string;
1204
+ member_ids: string[];
1205
+ boundary_ref: string | null;
1206
+ fragment_ref: string;
1207
+ reader_title: null;
1208
+ navigation_entry: false;
1209
+ review_entry: false;
1210
+ }>, "many">;
1211
+ continuation_digest: z.ZodString;
1212
+ }, "strict", z.ZodTypeAny, {
1213
+ protocol: "context.indexer.catalog-continuation-plan/v1";
1214
+ logical_unit_ref: string;
1215
+ user_gate_required: false;
1216
+ profile_revision_ledger_consumed: false;
1217
+ blocking: false;
1218
+ readability_advisory: boolean;
1219
+ fragments: {
1220
+ split_of: string;
1221
+ member_ids_digest: string;
1222
+ member_ids: string[];
1223
+ boundary_ref: string | null;
1224
+ fragment_ref: string;
1225
+ reader_title: null;
1226
+ navigation_entry: false;
1227
+ review_entry: false;
1228
+ }[];
1229
+ fallback_digest: string;
1230
+ parent_member_ids_digest: string;
1231
+ estimated_line_count: number;
1232
+ continuation_digest: string;
1233
+ }, {
1234
+ protocol: "context.indexer.catalog-continuation-plan/v1";
1235
+ logical_unit_ref: string;
1236
+ user_gate_required: false;
1237
+ profile_revision_ledger_consumed: false;
1238
+ blocking: false;
1239
+ readability_advisory: boolean;
1240
+ fragments: {
1241
+ split_of: string;
1242
+ member_ids_digest: string;
1243
+ member_ids: string[];
1244
+ boundary_ref: string | null;
1245
+ fragment_ref: string;
1246
+ reader_title: null;
1247
+ navigation_entry: false;
1248
+ review_entry: false;
1249
+ }[];
1250
+ fallback_digest: string;
1251
+ parent_member_ids_digest: string;
1252
+ estimated_line_count: number;
1253
+ continuation_digest: string;
1254
+ }>;
1255
+ export type IndexerCatalogContinuationPlan = z.infer<typeof indexerCatalogContinuationPlanSchema>;
1256
+ export declare function validateIndexerCatalogContinuationPlan(value: unknown): IndexerCatalogContinuationPlan;
1257
+ export declare function buildIndexerCatalogContinuationPlan(input: {
1258
+ fallback: unknown;
1259
+ estimated_line_count: number;
1260
+ fragments: readonly z.input<typeof continuationInputSchema>[];
1261
+ }): IndexerCatalogContinuationPlan;
1262
+ export {};