@c4a/context 0.6.18 → 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 (130) hide show
  1. package/README.md +5 -5
  2. package/README.zh-CN.md +5 -5
  3. package/codeIndexPlan.d.ts +84 -0
  4. package/contracts.d.ts +2 -1
  5. package/docs/README.md +7 -0
  6. package/docs/README.zh-CN.md +5 -0
  7. package/docs/getting-started.md +12 -12
  8. package/docs/guides/agent-guide.md +18 -9
  9. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  10. package/docs/guides/indexer-provider-and-customization.md +140 -0
  11. package/docs/guides/lark-resources.md +7 -0
  12. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  13. package/docs/guides/package-outputs.md +3 -3
  14. package/docs/reference/code-extractors.md +7 -6
  15. package/docs/reference/indexer-provider-protocol.md +819 -0
  16. package/docs/reference/package-templates.md +18 -10
  17. package/docs/reference/project-api.md +49 -24
  18. package/index.d.ts +48 -2
  19. package/index.js +28239 -3948
  20. package/indexerAgentStepProtocol.d.ts +9391 -0
  21. package/indexerArtifactDependencies.d.ts +689 -0
  22. package/indexerArtifactPolicy.d.ts +335 -0
  23. package/indexerArtifactResult.d.ts +2010 -0
  24. package/indexerAuditFacts.d.ts +66 -0
  25. package/indexerAuditOverrideReadiness.d.ts +27 -0
  26. package/indexerAuditProtocol.d.ts +238 -0
  27. package/indexerAuditRevision.d.ts +726 -0
  28. package/indexerAuditRevisionActions.d.ts +236 -0
  29. package/indexerAuthoringFixture.d.ts +152 -0
  30. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  31. package/indexerBenchmark.d.ts +1062 -0
  32. package/indexerCandidateCompile.d.ts +801 -0
  33. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  34. package/indexerCatalogFallback.d.ts +1262 -0
  35. package/indexerCollectionMapping.d.ts +75 -0
  36. package/indexerContentLayers.d.ts +137 -0
  37. package/indexerControlledInvocation.d.ts +512 -0
  38. package/indexerControlledProgram.d.ts +12535 -0
  39. package/indexerCoreExports.d.ts +21 -0
  40. package/indexerCustomizationDraft.d.ts +13800 -0
  41. package/indexerCustomizationLadder.d.ts +103 -0
  42. package/indexerDependencyView.d.ts +1610 -0
  43. package/indexerEvidenceAdapterResult.d.ts +504 -0
  44. package/indexerExampleDecision.d.ts +1606 -0
  45. package/indexerExampleIdentity.d.ts +132 -0
  46. package/indexerExampleIdentityAudit.d.ts +70 -0
  47. package/indexerExampleLinkageAudit.d.ts +80 -0
  48. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  49. package/indexerIncrementalImpact.d.ts +221 -0
  50. package/indexerInventoryDisposition.d.ts +443 -0
  51. package/indexerLayerComposition.d.ts +1652 -0
  52. package/indexerLayoutChange.d.ts +329 -0
  53. package/indexerLayoutProposalSet.d.ts +447 -0
  54. package/indexerLayoutResolver.d.ts +342 -0
  55. package/indexerLayoutTransition.d.ts +247 -0
  56. package/indexerLifecycle.d.ts +53 -0
  57. package/indexerMainLifecycle.d.ts +258 -0
  58. package/indexerMainRunLedger.d.ts +888 -0
  59. package/indexerMainRunProtocol.d.ts +6471 -0
  60. package/indexerMainWorkset.d.ts +2141 -0
  61. package/indexerMaterialAnswer.d.ts +738 -0
  62. package/indexerMaterialAnswerActualization.d.ts +91 -0
  63. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  64. package/indexerMaterialAnswerFlow.d.ts +63 -0
  65. package/indexerMaterialAnswerLayout.d.ts +76 -0
  66. package/indexerMaterialAnswerReview.d.ts +217 -0
  67. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  68. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  69. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  70. package/indexerMaterialGapLedger.d.ts +3111 -0
  71. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  72. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  73. package/indexerNavigationArtifactGraph.d.ts +5 -0
  74. package/indexerNavigationArtifactPlan.d.ts +39 -0
  75. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  76. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  77. package/indexerOverlayTrust.d.ts +1425 -0
  78. package/indexerParserCoordinate.d.ts +222 -0
  79. package/indexerParserFactView.d.ts +503 -0
  80. package/indexerPartitionConvergence.d.ts +496 -0
  81. package/indexerPartitionPlan.d.ts +919 -0
  82. package/indexerPartitionStrategyResolution.d.ts +594 -0
  83. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  84. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  85. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  86. package/indexerPostAuthorComposition.d.ts +2000 -0
  87. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  88. package/indexerPrimaryProjection.d.ts +262 -0
  89. package/indexerProfileContract.d.ts +3034 -0
  90. package/indexerProfileMetricAudit.d.ts +218 -0
  91. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  92. package/indexerProgramRunProtocol.d.ts +7642 -0
  93. package/indexerProjectProposal.d.ts +2807 -0
  94. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  95. package/indexerProjectedArtifactPlan.d.ts +217 -0
  96. package/indexerProtocolCommon.d.ts +29 -0
  97. package/indexerProvider.d.ts +2573 -0
  98. package/indexerProviderComposition.d.ts +1357 -0
  99. package/indexerProviderContractReferences.d.ts +13 -0
  100. package/indexerProviderProfileResolution.d.ts +20 -0
  101. package/indexerProviderResolution.d.ts +752 -0
  102. package/indexerProviderResolutionAction.d.ts +678 -0
  103. package/indexerProviderRouting.d.ts +3909 -0
  104. package/indexerProviderSelectionProposal.d.ts +3311 -0
  105. package/indexerQuestionAuthority.d.ts +419 -0
  106. package/indexerReaderTargetInventory.d.ts +161 -0
  107. package/indexerReferenceOnlyAudit.d.ts +90 -0
  108. package/indexerRegistry.d.ts +3019 -0
  109. package/indexerRequirementComparison.d.ts +44 -0
  110. package/indexerRequirementConfirmation.d.ts +1193 -0
  111. package/indexerRequirementLifecycle.d.ts +3314 -0
  112. package/indexerRestrictedSelector.d.ts +63 -0
  113. package/indexerResultReconciliation.d.ts +6844 -0
  114. package/indexerResultReconciliationRun.d.ts +15 -0
  115. package/indexerRunEnvelope.d.ts +384 -0
  116. package/indexerRunProtocolCommon.d.ts +21 -0
  117. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  118. package/indexerStructuredDeclaration.d.ts +513 -0
  119. package/indexerSubjectCatalog.d.ts +230 -0
  120. package/indexerSubjectIdentity.d.ts +19 -0
  121. package/indexerSubjectKeyAuthority.d.ts +785 -0
  122. package/indexerTemplateRendering.d.ts +485 -0
  123. package/indexerToolSnapshot.d.ts +431 -0
  124. package/indexerWorksetRead.d.ts +287 -0
  125. package/package.json +1 -1
  126. package/phases.d.ts +11 -9
  127. package/templates/package-templates/kb/AGENTS.md +1 -1
  128. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
  129. package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
  130. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
@@ -0,0 +1,919 @@
1
+ import { z } from "zod";
2
+ import { type IndexerInventoryMember } from "./indexerInventoryDisposition.js";
3
+ import type { IndexerMainPartitionWorkset } from "./indexerMainWorkset.js";
4
+ export declare const indexerPartitionStrategySchema: z.ZodUnion<[z.ZodObject<{
5
+ kind: z.ZodLiteral<"project-indexer">;
6
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
7
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
8
+ implementation_digest: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ kind: "project-indexer";
11
+ implementation_digest: string;
12
+ indexer_id: string;
13
+ strategy_id: string;
14
+ }, {
15
+ kind: "project-indexer";
16
+ implementation_digest: string;
17
+ indexer_id: string;
18
+ strategy_id: string;
19
+ }>, z.ZodObject<{
20
+ kind: z.ZodLiteral<"cli-builtin">;
21
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
22
+ implementation_digest: z.ZodString;
23
+ }, "strict", z.ZodTypeAny, {
24
+ kind: "cli-builtin";
25
+ implementation_digest: string;
26
+ strategy_id: string;
27
+ }, {
28
+ kind: "cli-builtin";
29
+ implementation_digest: string;
30
+ strategy_id: string;
31
+ }>]>;
32
+ export type IndexerPartitionStrategy = z.infer<typeof indexerPartitionStrategySchema>;
33
+ export declare function indexerPartitionStrategySetDigest(strategies: readonly {
34
+ strategy_ref: IndexerPartitionStrategy;
35
+ strategy_digest: string;
36
+ }[]): string;
37
+ declare const partitionGroupSchema: z.ZodObject<{
38
+ group_key: z.ZodString;
39
+ subject_key: z.ZodObject<{
40
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
41
+ namespace: z.ZodEffects<z.ZodString, string, string>;
42
+ kind: z.ZodEffects<z.ZodString, string, string>;
43
+ local_key: z.ZodEffects<z.ZodString, string, string>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ kind: string;
46
+ protocol: "context.subject-key/v1";
47
+ namespace: string;
48
+ local_key: string;
49
+ }, {
50
+ kind: string;
51
+ protocol: "context.subject-key/v1";
52
+ namespace: string;
53
+ local_key: string;
54
+ }>;
55
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
56
+ logical_unit_ref: z.ZodString;
57
+ label: z.ZodString;
58
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
59
+ question_target_bindings: z.ZodArray<z.ZodObject<{
60
+ target_ref: z.ZodString;
61
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
62
+ }, "strict", z.ZodTypeAny, {
63
+ role: "enricher" | "primary-carrier";
64
+ target_ref: string;
65
+ }, {
66
+ role: "enricher" | "primary-carrier";
67
+ target_ref: string;
68
+ }>, "many">;
69
+ member_ids: z.ZodArray<z.ZodString, "many">;
70
+ }, "strict", z.ZodTypeAny, {
71
+ reader_question_refs: string[];
72
+ logical_unit_ref: string;
73
+ subject_key: {
74
+ kind: string;
75
+ protocol: "context.subject-key/v1";
76
+ namespace: string;
77
+ local_key: string;
78
+ };
79
+ group_key: string;
80
+ member_ids: string[];
81
+ subject_intent: "primary" | "enrich-or-independent";
82
+ label: string;
83
+ question_target_bindings: {
84
+ role: "enricher" | "primary-carrier";
85
+ target_ref: string;
86
+ }[];
87
+ }, {
88
+ reader_question_refs: string[];
89
+ logical_unit_ref: string;
90
+ subject_key: {
91
+ kind: string;
92
+ protocol: "context.subject-key/v1";
93
+ namespace: string;
94
+ local_key: string;
95
+ };
96
+ group_key: string;
97
+ member_ids: string[];
98
+ subject_intent: "primary" | "enrich-or-independent";
99
+ label: string;
100
+ question_target_bindings: {
101
+ role: "enricher" | "primary-carrier";
102
+ target_ref: string;
103
+ }[];
104
+ }>;
105
+ declare const memberDispositionSchema: z.ZodUnion<[z.ZodObject<{
106
+ member_id: z.ZodString;
107
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
108
+ inventory_disposition: z.ZodLiteral<"owned">;
109
+ group_key: z.ZodString;
110
+ }, "strict", z.ZodTypeAny, {
111
+ group_key: string;
112
+ member_id: string;
113
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
114
+ inventory_disposition: "owned";
115
+ }, {
116
+ group_key: string;
117
+ member_id: string;
118
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
119
+ inventory_disposition: "owned";
120
+ }>, z.ZodObject<{
121
+ member_id: z.ZodString;
122
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
123
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
124
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
125
+ }, "strict", z.ZodTypeAny, {
126
+ member_id: string;
127
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
128
+ inventory_disposition: "excluded-with-reason";
129
+ reason_code: string;
130
+ }, {
131
+ member_id: string;
132
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
133
+ inventory_disposition: "excluded-with-reason";
134
+ reason_code: string;
135
+ }>, z.ZodObject<{
136
+ member_id: z.ZodString;
137
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
138
+ inventory_disposition: z.ZodLiteral<"unsupported">;
139
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
140
+ }, "strict", z.ZodTypeAny, {
141
+ member_id: string;
142
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
143
+ inventory_disposition: "unsupported";
144
+ missing_capabilities: string[];
145
+ }, {
146
+ member_id: string;
147
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
148
+ inventory_disposition: "unsupported";
149
+ missing_capabilities: string[];
150
+ }>]>;
151
+ export declare const indexerPartitionPlanSchema: z.ZodUnion<[z.ZodObject<{
152
+ status: z.ZodLiteral<"complete">;
153
+ failure: z.ZodNull;
154
+ protocol: z.ZodLiteral<"context.indexer.partition-plan/v1">;
155
+ binding: z.ZodObject<{
156
+ partition_workset_digest: z.ZodString;
157
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
158
+ indexer_fingerprint: z.ZodString;
159
+ requirement_digest: z.ZodString;
160
+ subject_key_schema_digest: z.ZodString;
161
+ source_scope_digest: z.ZodString;
162
+ source_refs: z.ZodArray<z.ZodString, "many">;
163
+ module_ref: z.ZodNullable<z.ZodString>;
164
+ partition_subject_key: z.ZodObject<{
165
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
166
+ namespace: z.ZodEffects<z.ZodString, string, string>;
167
+ kind: z.ZodEffects<z.ZodString, string, string>;
168
+ local_key: z.ZodEffects<z.ZodString, string, string>;
169
+ }, "strict", z.ZodTypeAny, {
170
+ kind: string;
171
+ protocol: "context.subject-key/v1";
172
+ namespace: string;
173
+ local_key: string;
174
+ }, {
175
+ kind: string;
176
+ protocol: "context.subject-key/v1";
177
+ namespace: string;
178
+ local_key: string;
179
+ }>;
180
+ parent_scope_ref: z.ZodString;
181
+ inventory_digest: z.ZodString;
182
+ question_target_inventory_digest: z.ZodString;
183
+ }, "strict", z.ZodTypeAny, {
184
+ source_refs: string[];
185
+ module_ref: string | null;
186
+ requirement_digest: string;
187
+ indexer_id: string;
188
+ inventory_digest: string;
189
+ subject_key_schema_digest: string;
190
+ partition_subject_key: {
191
+ kind: string;
192
+ protocol: "context.subject-key/v1";
193
+ namespace: string;
194
+ local_key: string;
195
+ };
196
+ source_scope_digest: string;
197
+ question_target_inventory_digest: string;
198
+ partition_workset_digest: string;
199
+ indexer_fingerprint: string;
200
+ parent_scope_ref: string;
201
+ }, {
202
+ source_refs: string[];
203
+ module_ref: string | null;
204
+ requirement_digest: string;
205
+ indexer_id: string;
206
+ inventory_digest: string;
207
+ subject_key_schema_digest: string;
208
+ partition_subject_key: {
209
+ kind: string;
210
+ protocol: "context.subject-key/v1";
211
+ namespace: string;
212
+ local_key: string;
213
+ };
214
+ source_scope_digest: string;
215
+ question_target_inventory_digest: string;
216
+ partition_workset_digest: string;
217
+ indexer_fingerprint: string;
218
+ parent_scope_ref: string;
219
+ }>;
220
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
221
+ kind: z.ZodLiteral<"project-indexer">;
222
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
223
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
224
+ implementation_digest: z.ZodString;
225
+ }, "strict", z.ZodTypeAny, {
226
+ kind: "project-indexer";
227
+ implementation_digest: string;
228
+ indexer_id: string;
229
+ strategy_id: string;
230
+ }, {
231
+ kind: "project-indexer";
232
+ implementation_digest: string;
233
+ indexer_id: string;
234
+ strategy_id: string;
235
+ }>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"cli-builtin">;
237
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
238
+ implementation_digest: z.ZodString;
239
+ }, "strict", z.ZodTypeAny, {
240
+ kind: "cli-builtin";
241
+ implementation_digest: string;
242
+ strategy_id: string;
243
+ }, {
244
+ kind: "cli-builtin";
245
+ implementation_digest: string;
246
+ strategy_id: string;
247
+ }>]>;
248
+ strategy_digest: z.ZodString;
249
+ unit_type: z.ZodEffects<z.ZodString, string, string>;
250
+ partition_axis: z.ZodEffects<z.ZodString, string, string>;
251
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
252
+ groups: z.ZodArray<z.ZodObject<{
253
+ group_key: z.ZodString;
254
+ subject_key: z.ZodObject<{
255
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
256
+ namespace: z.ZodEffects<z.ZodString, string, string>;
257
+ kind: z.ZodEffects<z.ZodString, string, string>;
258
+ local_key: z.ZodEffects<z.ZodString, string, string>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ kind: string;
261
+ protocol: "context.subject-key/v1";
262
+ namespace: string;
263
+ local_key: string;
264
+ }, {
265
+ kind: string;
266
+ protocol: "context.subject-key/v1";
267
+ namespace: string;
268
+ local_key: string;
269
+ }>;
270
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
271
+ logical_unit_ref: z.ZodString;
272
+ label: z.ZodString;
273
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
274
+ question_target_bindings: z.ZodArray<z.ZodObject<{
275
+ target_ref: z.ZodString;
276
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
277
+ }, "strict", z.ZodTypeAny, {
278
+ role: "enricher" | "primary-carrier";
279
+ target_ref: string;
280
+ }, {
281
+ role: "enricher" | "primary-carrier";
282
+ target_ref: string;
283
+ }>, "many">;
284
+ member_ids: z.ZodArray<z.ZodString, "many">;
285
+ }, "strict", z.ZodTypeAny, {
286
+ reader_question_refs: string[];
287
+ logical_unit_ref: string;
288
+ subject_key: {
289
+ kind: string;
290
+ protocol: "context.subject-key/v1";
291
+ namespace: string;
292
+ local_key: string;
293
+ };
294
+ group_key: string;
295
+ member_ids: string[];
296
+ subject_intent: "primary" | "enrich-or-independent";
297
+ label: string;
298
+ question_target_bindings: {
299
+ role: "enricher" | "primary-carrier";
300
+ target_ref: string;
301
+ }[];
302
+ }, {
303
+ reader_question_refs: string[];
304
+ logical_unit_ref: string;
305
+ subject_key: {
306
+ kind: string;
307
+ protocol: "context.subject-key/v1";
308
+ namespace: string;
309
+ local_key: string;
310
+ };
311
+ group_key: string;
312
+ member_ids: string[];
313
+ subject_intent: "primary" | "enrich-or-independent";
314
+ label: string;
315
+ question_target_bindings: {
316
+ role: "enricher" | "primary-carrier";
317
+ target_ref: string;
318
+ }[];
319
+ }>, "many">;
320
+ member_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
321
+ member_id: z.ZodString;
322
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
323
+ inventory_disposition: z.ZodLiteral<"owned">;
324
+ group_key: z.ZodString;
325
+ }, "strict", z.ZodTypeAny, {
326
+ group_key: string;
327
+ member_id: string;
328
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
329
+ inventory_disposition: "owned";
330
+ }, {
331
+ group_key: string;
332
+ member_id: string;
333
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
334
+ inventory_disposition: "owned";
335
+ }>, z.ZodObject<{
336
+ member_id: z.ZodString;
337
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
338
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
339
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
340
+ }, "strict", z.ZodTypeAny, {
341
+ member_id: string;
342
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
343
+ inventory_disposition: "excluded-with-reason";
344
+ reason_code: string;
345
+ }, {
346
+ member_id: string;
347
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
348
+ inventory_disposition: "excluded-with-reason";
349
+ reason_code: string;
350
+ }>, z.ZodObject<{
351
+ member_id: z.ZodString;
352
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
353
+ inventory_disposition: z.ZodLiteral<"unsupported">;
354
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
355
+ }, "strict", z.ZodTypeAny, {
356
+ member_id: string;
357
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
358
+ inventory_disposition: "unsupported";
359
+ missing_capabilities: string[];
360
+ }, {
361
+ member_id: string;
362
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
363
+ inventory_disposition: "unsupported";
364
+ missing_capabilities: string[];
365
+ }>]>, "many">;
366
+ canonical_hash: z.ZodString;
367
+ }, "strict", z.ZodTypeAny, {
368
+ protocol: "context.indexer.partition-plan/v1";
369
+ status: "complete";
370
+ reader_question_refs: string[];
371
+ failure: null;
372
+ binding: {
373
+ source_refs: string[];
374
+ module_ref: string | null;
375
+ requirement_digest: string;
376
+ indexer_id: string;
377
+ inventory_digest: string;
378
+ subject_key_schema_digest: string;
379
+ partition_subject_key: {
380
+ kind: string;
381
+ protocol: "context.subject-key/v1";
382
+ namespace: string;
383
+ local_key: string;
384
+ };
385
+ source_scope_digest: string;
386
+ question_target_inventory_digest: string;
387
+ partition_workset_digest: string;
388
+ indexer_fingerprint: string;
389
+ parent_scope_ref: string;
390
+ };
391
+ strategy_ref: {
392
+ kind: "project-indexer";
393
+ implementation_digest: string;
394
+ indexer_id: string;
395
+ strategy_id: string;
396
+ } | {
397
+ kind: "cli-builtin";
398
+ implementation_digest: string;
399
+ strategy_id: string;
400
+ };
401
+ strategy_digest: string;
402
+ unit_type: string;
403
+ partition_axis: string;
404
+ groups: {
405
+ reader_question_refs: string[];
406
+ logical_unit_ref: string;
407
+ subject_key: {
408
+ kind: string;
409
+ protocol: "context.subject-key/v1";
410
+ namespace: string;
411
+ local_key: string;
412
+ };
413
+ group_key: string;
414
+ member_ids: string[];
415
+ subject_intent: "primary" | "enrich-or-independent";
416
+ label: string;
417
+ question_target_bindings: {
418
+ role: "enricher" | "primary-carrier";
419
+ target_ref: string;
420
+ }[];
421
+ }[];
422
+ member_dispositions: ({
423
+ group_key: string;
424
+ member_id: string;
425
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
426
+ inventory_disposition: "owned";
427
+ } | {
428
+ member_id: string;
429
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
430
+ inventory_disposition: "excluded-with-reason";
431
+ reason_code: string;
432
+ } | {
433
+ member_id: string;
434
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
435
+ inventory_disposition: "unsupported";
436
+ missing_capabilities: string[];
437
+ })[];
438
+ canonical_hash: string;
439
+ }, {
440
+ protocol: "context.indexer.partition-plan/v1";
441
+ status: "complete";
442
+ reader_question_refs: string[];
443
+ failure: null;
444
+ binding: {
445
+ source_refs: string[];
446
+ module_ref: string | null;
447
+ requirement_digest: string;
448
+ indexer_id: string;
449
+ inventory_digest: string;
450
+ subject_key_schema_digest: string;
451
+ partition_subject_key: {
452
+ kind: string;
453
+ protocol: "context.subject-key/v1";
454
+ namespace: string;
455
+ local_key: string;
456
+ };
457
+ source_scope_digest: string;
458
+ question_target_inventory_digest: string;
459
+ partition_workset_digest: string;
460
+ indexer_fingerprint: string;
461
+ parent_scope_ref: string;
462
+ };
463
+ strategy_ref: {
464
+ kind: "project-indexer";
465
+ implementation_digest: string;
466
+ indexer_id: string;
467
+ strategy_id: string;
468
+ } | {
469
+ kind: "cli-builtin";
470
+ implementation_digest: string;
471
+ strategy_id: string;
472
+ };
473
+ strategy_digest: string;
474
+ unit_type: string;
475
+ partition_axis: string;
476
+ groups: {
477
+ reader_question_refs: string[];
478
+ logical_unit_ref: string;
479
+ subject_key: {
480
+ kind: string;
481
+ protocol: "context.subject-key/v1";
482
+ namespace: string;
483
+ local_key: string;
484
+ };
485
+ group_key: string;
486
+ member_ids: string[];
487
+ subject_intent: "primary" | "enrich-or-independent";
488
+ label: string;
489
+ question_target_bindings: {
490
+ role: "enricher" | "primary-carrier";
491
+ target_ref: string;
492
+ }[];
493
+ }[];
494
+ member_dispositions: ({
495
+ group_key: string;
496
+ member_id: string;
497
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
498
+ inventory_disposition: "owned";
499
+ } | {
500
+ member_id: string;
501
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
502
+ inventory_disposition: "excluded-with-reason";
503
+ reason_code: string;
504
+ } | {
505
+ member_id: string;
506
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
507
+ inventory_disposition: "unsupported";
508
+ missing_capabilities: string[];
509
+ })[];
510
+ canonical_hash: string;
511
+ }>, z.ZodObject<{
512
+ status: z.ZodLiteral<"failed">;
513
+ failure: z.ZodObject<{
514
+ code: z.ZodEnum<["unsupported-domain", "no-stable-axis", "insufficient-identity-facts", "invalid-input", "strategy-failed"]>;
515
+ message: z.ZodString;
516
+ unassigned_member_ids: z.ZodArray<z.ZodString, "many">;
517
+ missing_capabilities: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
518
+ missing_source_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
519
+ }, "strict", z.ZodTypeAny, {
520
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
521
+ message: string;
522
+ unassigned_member_ids: string[];
523
+ missing_capabilities?: string[] | undefined;
524
+ missing_source_refs?: string[] | undefined;
525
+ }, {
526
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
527
+ message: string;
528
+ unassigned_member_ids: string[];
529
+ missing_capabilities?: string[] | undefined;
530
+ missing_source_refs?: string[] | undefined;
531
+ }>;
532
+ protocol: z.ZodLiteral<"context.indexer.partition-plan/v1">;
533
+ binding: z.ZodObject<{
534
+ partition_workset_digest: z.ZodString;
535
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
536
+ indexer_fingerprint: z.ZodString;
537
+ requirement_digest: z.ZodString;
538
+ subject_key_schema_digest: z.ZodString;
539
+ source_scope_digest: z.ZodString;
540
+ source_refs: z.ZodArray<z.ZodString, "many">;
541
+ module_ref: z.ZodNullable<z.ZodString>;
542
+ partition_subject_key: z.ZodObject<{
543
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
544
+ namespace: z.ZodEffects<z.ZodString, string, string>;
545
+ kind: z.ZodEffects<z.ZodString, string, string>;
546
+ local_key: z.ZodEffects<z.ZodString, string, string>;
547
+ }, "strict", z.ZodTypeAny, {
548
+ kind: string;
549
+ protocol: "context.subject-key/v1";
550
+ namespace: string;
551
+ local_key: string;
552
+ }, {
553
+ kind: string;
554
+ protocol: "context.subject-key/v1";
555
+ namespace: string;
556
+ local_key: string;
557
+ }>;
558
+ parent_scope_ref: z.ZodString;
559
+ inventory_digest: z.ZodString;
560
+ question_target_inventory_digest: z.ZodString;
561
+ }, "strict", z.ZodTypeAny, {
562
+ source_refs: string[];
563
+ module_ref: string | null;
564
+ requirement_digest: string;
565
+ indexer_id: string;
566
+ inventory_digest: string;
567
+ subject_key_schema_digest: string;
568
+ partition_subject_key: {
569
+ kind: string;
570
+ protocol: "context.subject-key/v1";
571
+ namespace: string;
572
+ local_key: string;
573
+ };
574
+ source_scope_digest: string;
575
+ question_target_inventory_digest: string;
576
+ partition_workset_digest: string;
577
+ indexer_fingerprint: string;
578
+ parent_scope_ref: string;
579
+ }, {
580
+ source_refs: string[];
581
+ module_ref: string | null;
582
+ requirement_digest: string;
583
+ indexer_id: string;
584
+ inventory_digest: string;
585
+ subject_key_schema_digest: string;
586
+ partition_subject_key: {
587
+ kind: string;
588
+ protocol: "context.subject-key/v1";
589
+ namespace: string;
590
+ local_key: string;
591
+ };
592
+ source_scope_digest: string;
593
+ question_target_inventory_digest: string;
594
+ partition_workset_digest: string;
595
+ indexer_fingerprint: string;
596
+ parent_scope_ref: string;
597
+ }>;
598
+ strategy_ref: z.ZodUnion<[z.ZodObject<{
599
+ kind: z.ZodLiteral<"project-indexer">;
600
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
601
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
602
+ implementation_digest: z.ZodString;
603
+ }, "strict", z.ZodTypeAny, {
604
+ kind: "project-indexer";
605
+ implementation_digest: string;
606
+ indexer_id: string;
607
+ strategy_id: string;
608
+ }, {
609
+ kind: "project-indexer";
610
+ implementation_digest: string;
611
+ indexer_id: string;
612
+ strategy_id: string;
613
+ }>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"cli-builtin">;
615
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
616
+ implementation_digest: z.ZodString;
617
+ }, "strict", z.ZodTypeAny, {
618
+ kind: "cli-builtin";
619
+ implementation_digest: string;
620
+ strategy_id: string;
621
+ }, {
622
+ kind: "cli-builtin";
623
+ implementation_digest: string;
624
+ strategy_id: string;
625
+ }>]>;
626
+ strategy_digest: z.ZodString;
627
+ unit_type: z.ZodEffects<z.ZodString, string, string>;
628
+ partition_axis: z.ZodEffects<z.ZodString, string, string>;
629
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
630
+ groups: z.ZodArray<z.ZodObject<{
631
+ group_key: z.ZodString;
632
+ subject_key: z.ZodObject<{
633
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
634
+ namespace: z.ZodEffects<z.ZodString, string, string>;
635
+ kind: z.ZodEffects<z.ZodString, string, string>;
636
+ local_key: z.ZodEffects<z.ZodString, string, string>;
637
+ }, "strict", z.ZodTypeAny, {
638
+ kind: string;
639
+ protocol: "context.subject-key/v1";
640
+ namespace: string;
641
+ local_key: string;
642
+ }, {
643
+ kind: string;
644
+ protocol: "context.subject-key/v1";
645
+ namespace: string;
646
+ local_key: string;
647
+ }>;
648
+ subject_intent: z.ZodEnum<["primary", "enrich-or-independent"]>;
649
+ logical_unit_ref: z.ZodString;
650
+ label: z.ZodString;
651
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
652
+ question_target_bindings: z.ZodArray<z.ZodObject<{
653
+ target_ref: z.ZodString;
654
+ role: z.ZodEnum<["primary-carrier", "enricher"]>;
655
+ }, "strict", z.ZodTypeAny, {
656
+ role: "enricher" | "primary-carrier";
657
+ target_ref: string;
658
+ }, {
659
+ role: "enricher" | "primary-carrier";
660
+ target_ref: string;
661
+ }>, "many">;
662
+ member_ids: z.ZodArray<z.ZodString, "many">;
663
+ }, "strict", z.ZodTypeAny, {
664
+ reader_question_refs: string[];
665
+ logical_unit_ref: string;
666
+ subject_key: {
667
+ kind: string;
668
+ protocol: "context.subject-key/v1";
669
+ namespace: string;
670
+ local_key: string;
671
+ };
672
+ group_key: string;
673
+ member_ids: string[];
674
+ subject_intent: "primary" | "enrich-or-independent";
675
+ label: string;
676
+ question_target_bindings: {
677
+ role: "enricher" | "primary-carrier";
678
+ target_ref: string;
679
+ }[];
680
+ }, {
681
+ reader_question_refs: string[];
682
+ logical_unit_ref: string;
683
+ subject_key: {
684
+ kind: string;
685
+ protocol: "context.subject-key/v1";
686
+ namespace: string;
687
+ local_key: string;
688
+ };
689
+ group_key: string;
690
+ member_ids: string[];
691
+ subject_intent: "primary" | "enrich-or-independent";
692
+ label: string;
693
+ question_target_bindings: {
694
+ role: "enricher" | "primary-carrier";
695
+ target_ref: string;
696
+ }[];
697
+ }>, "many">;
698
+ member_dispositions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
699
+ member_id: z.ZodString;
700
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
701
+ inventory_disposition: z.ZodLiteral<"owned">;
702
+ group_key: z.ZodString;
703
+ }, "strict", z.ZodTypeAny, {
704
+ group_key: string;
705
+ member_id: string;
706
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
707
+ inventory_disposition: "owned";
708
+ }, {
709
+ group_key: string;
710
+ member_id: string;
711
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
712
+ inventory_disposition: "owned";
713
+ }>, z.ZodObject<{
714
+ member_id: z.ZodString;
715
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
716
+ inventory_disposition: z.ZodLiteral<"excluded-with-reason">;
717
+ reason_code: z.ZodEffects<z.ZodString, string, string>;
718
+ }, "strict", z.ZodTypeAny, {
719
+ member_id: string;
720
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
721
+ inventory_disposition: "excluded-with-reason";
722
+ reason_code: string;
723
+ }, {
724
+ member_id: string;
725
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
726
+ inventory_disposition: "excluded-with-reason";
727
+ reason_code: string;
728
+ }>, z.ZodObject<{
729
+ member_id: z.ZodString;
730
+ member_kind: z.ZodEnum<["project", "entry", "route", "component", "service", "method", "example", "protocol-method", "handler", "event-branch", "timer-branch", "downstream-callsite", "store", "state-transition"]>;
731
+ inventory_disposition: z.ZodLiteral<"unsupported">;
732
+ missing_capabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
733
+ }, "strict", z.ZodTypeAny, {
734
+ member_id: string;
735
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
736
+ inventory_disposition: "unsupported";
737
+ missing_capabilities: string[];
738
+ }, {
739
+ member_id: string;
740
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
741
+ inventory_disposition: "unsupported";
742
+ missing_capabilities: string[];
743
+ }>]>, "many">;
744
+ canonical_hash: z.ZodString;
745
+ }, "strict", z.ZodTypeAny, {
746
+ protocol: "context.indexer.partition-plan/v1";
747
+ status: "failed";
748
+ reader_question_refs: string[];
749
+ failure: {
750
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
751
+ message: string;
752
+ unassigned_member_ids: string[];
753
+ missing_capabilities?: string[] | undefined;
754
+ missing_source_refs?: string[] | undefined;
755
+ };
756
+ binding: {
757
+ source_refs: string[];
758
+ module_ref: string | null;
759
+ requirement_digest: string;
760
+ indexer_id: string;
761
+ inventory_digest: string;
762
+ subject_key_schema_digest: string;
763
+ partition_subject_key: {
764
+ kind: string;
765
+ protocol: "context.subject-key/v1";
766
+ namespace: string;
767
+ local_key: string;
768
+ };
769
+ source_scope_digest: string;
770
+ question_target_inventory_digest: string;
771
+ partition_workset_digest: string;
772
+ indexer_fingerprint: string;
773
+ parent_scope_ref: string;
774
+ };
775
+ strategy_ref: {
776
+ kind: "project-indexer";
777
+ implementation_digest: string;
778
+ indexer_id: string;
779
+ strategy_id: string;
780
+ } | {
781
+ kind: "cli-builtin";
782
+ implementation_digest: string;
783
+ strategy_id: string;
784
+ };
785
+ strategy_digest: string;
786
+ unit_type: string;
787
+ partition_axis: string;
788
+ groups: {
789
+ reader_question_refs: string[];
790
+ logical_unit_ref: string;
791
+ subject_key: {
792
+ kind: string;
793
+ protocol: "context.subject-key/v1";
794
+ namespace: string;
795
+ local_key: string;
796
+ };
797
+ group_key: string;
798
+ member_ids: string[];
799
+ subject_intent: "primary" | "enrich-or-independent";
800
+ label: string;
801
+ question_target_bindings: {
802
+ role: "enricher" | "primary-carrier";
803
+ target_ref: string;
804
+ }[];
805
+ }[];
806
+ member_dispositions: ({
807
+ group_key: string;
808
+ member_id: string;
809
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
810
+ inventory_disposition: "owned";
811
+ } | {
812
+ member_id: string;
813
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
814
+ inventory_disposition: "excluded-with-reason";
815
+ reason_code: string;
816
+ } | {
817
+ member_id: string;
818
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
819
+ inventory_disposition: "unsupported";
820
+ missing_capabilities: string[];
821
+ })[];
822
+ canonical_hash: string;
823
+ }, {
824
+ protocol: "context.indexer.partition-plan/v1";
825
+ status: "failed";
826
+ reader_question_refs: string[];
827
+ failure: {
828
+ code: "unsupported-domain" | "no-stable-axis" | "insufficient-identity-facts" | "invalid-input" | "strategy-failed";
829
+ message: string;
830
+ unassigned_member_ids: string[];
831
+ missing_capabilities?: string[] | undefined;
832
+ missing_source_refs?: string[] | undefined;
833
+ };
834
+ binding: {
835
+ source_refs: string[];
836
+ module_ref: string | null;
837
+ requirement_digest: string;
838
+ indexer_id: string;
839
+ inventory_digest: string;
840
+ subject_key_schema_digest: string;
841
+ partition_subject_key: {
842
+ kind: string;
843
+ protocol: "context.subject-key/v1";
844
+ namespace: string;
845
+ local_key: string;
846
+ };
847
+ source_scope_digest: string;
848
+ question_target_inventory_digest: string;
849
+ partition_workset_digest: string;
850
+ indexer_fingerprint: string;
851
+ parent_scope_ref: string;
852
+ };
853
+ strategy_ref: {
854
+ kind: "project-indexer";
855
+ implementation_digest: string;
856
+ indexer_id: string;
857
+ strategy_id: string;
858
+ } | {
859
+ kind: "cli-builtin";
860
+ implementation_digest: string;
861
+ strategy_id: string;
862
+ };
863
+ strategy_digest: string;
864
+ unit_type: string;
865
+ partition_axis: string;
866
+ groups: {
867
+ reader_question_refs: string[];
868
+ logical_unit_ref: string;
869
+ subject_key: {
870
+ kind: string;
871
+ protocol: "context.subject-key/v1";
872
+ namespace: string;
873
+ local_key: string;
874
+ };
875
+ group_key: string;
876
+ member_ids: string[];
877
+ subject_intent: "primary" | "enrich-or-independent";
878
+ label: string;
879
+ question_target_bindings: {
880
+ role: "enricher" | "primary-carrier";
881
+ target_ref: string;
882
+ }[];
883
+ }[];
884
+ member_dispositions: ({
885
+ group_key: string;
886
+ member_id: string;
887
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
888
+ inventory_disposition: "owned";
889
+ } | {
890
+ member_id: string;
891
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
892
+ inventory_disposition: "excluded-with-reason";
893
+ reason_code: string;
894
+ } | {
895
+ member_id: string;
896
+ member_kind: "service" | "entry" | "route" | "handler" | "project" | "component" | "method" | "example" | "protocol-method" | "event-branch" | "timer-branch" | "downstream-callsite" | "store" | "state-transition";
897
+ inventory_disposition: "unsupported";
898
+ missing_capabilities: string[];
899
+ })[];
900
+ canonical_hash: string;
901
+ }>]>;
902
+ export type IndexerPartitionPlan = z.infer<typeof indexerPartitionPlanSchema>;
903
+ export type IndexerPartitionGroup = z.infer<typeof partitionGroupSchema>;
904
+ export type IndexerMemberDisposition = z.infer<typeof memberDispositionSchema>;
905
+ export declare function indexerPartitionPlanCanonicalHash(plan: Omit<IndexerPartitionPlan, "canonical_hash">): string;
906
+ export declare function indexerPartitionPlanBindingDigest(plan: IndexerPartitionPlan): string;
907
+ export declare function indexerPartitionGroupProjectionDigest(plan: IndexerPartitionPlan, groupKey: string): string;
908
+ export declare function validateIndexerPartitionPlan(input: {
909
+ plan: unknown;
910
+ workset: IndexerMainPartitionWorkset;
911
+ canonical_inventory_members: readonly IndexerInventoryMember[];
912
+ authorized_source_refs: readonly string[];
913
+ authorized_strategies: readonly {
914
+ strategy_ref: IndexerPartitionStrategy;
915
+ strategy_digest: string;
916
+ }[];
917
+ required_question_target_refs?: readonly string[];
918
+ }): IndexerPartitionPlan;
919
+ export {};