@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,236 @@
1
+ import { z } from "zod";
2
+ export declare const indexerProfileRevisionRecordInputSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.profile-revision-record-input/v1">;
4
+ lineage: z.ZodObject<{
5
+ protocol: z.ZodLiteral<"context.indexer.profile-problem-lineage/v1">;
6
+ requirement_lineage_id: z.ZodString;
7
+ source_material_epoch: z.ZodString;
8
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
+ problem_class: z.ZodEffects<z.ZodString, string, string>;
10
+ lineage_id: z.ZodString;
11
+ }, "strict", z.ZodTypeAny, {
12
+ protocol: "context.indexer.profile-problem-lineage/v1";
13
+ requirement_lineage_id: string;
14
+ source_material_epoch: string;
15
+ unit_ref: string;
16
+ problem_class: string;
17
+ lineage_id: string;
18
+ }, {
19
+ protocol: "context.indexer.profile-problem-lineage/v1";
20
+ requirement_lineage_id: string;
21
+ source_material_epoch: string;
22
+ unit_ref: string;
23
+ problem_class: string;
24
+ lineage_id: string;
25
+ }>;
26
+ precompile_audit_report_digest: z.ZodString;
27
+ audit_report_digest: z.ZodString;
28
+ indexer_result_fingerprint: z.ZodString;
29
+ actions_taken: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
30
+ unresolved_reasons: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
31
+ expected_ledger_digest: z.ZodString;
32
+ input_digest: z.ZodString;
33
+ }, "strict", z.ZodTypeAny, {
34
+ protocol: "context.indexer.profile-revision-record-input/v1";
35
+ input_digest: string;
36
+ precompile_audit_report_digest: string;
37
+ audit_report_digest: string;
38
+ indexer_result_fingerprint: string;
39
+ actions_taken: string[];
40
+ unresolved_reasons: string[];
41
+ lineage: {
42
+ protocol: "context.indexer.profile-problem-lineage/v1";
43
+ requirement_lineage_id: string;
44
+ source_material_epoch: string;
45
+ unit_ref: string;
46
+ problem_class: string;
47
+ lineage_id: string;
48
+ };
49
+ expected_ledger_digest: string;
50
+ }, {
51
+ protocol: "context.indexer.profile-revision-record-input/v1";
52
+ input_digest: string;
53
+ precompile_audit_report_digest: string;
54
+ audit_report_digest: string;
55
+ indexer_result_fingerprint: string;
56
+ actions_taken: string[];
57
+ unresolved_reasons: string[];
58
+ lineage: {
59
+ protocol: "context.indexer.profile-problem-lineage/v1";
60
+ requirement_lineage_id: string;
61
+ source_material_epoch: string;
62
+ unit_ref: string;
63
+ problem_class: string;
64
+ lineage_id: string;
65
+ };
66
+ expected_ledger_digest: string;
67
+ }>;
68
+ export declare const indexerProfileFailureReportInputSchema: z.ZodObject<{
69
+ protocol: z.ZodLiteral<"context.indexer.profile-failure-report-input/v1">;
70
+ lineage_id: z.ZodString;
71
+ precompile_audit_report_digest: z.ZodString;
72
+ audit_report_digest: z.ZodString;
73
+ expected_ledger_digest: z.ZodString;
74
+ module_profiles: z.ZodArray<z.ZodObject<{
75
+ unit_ref: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
76
+ classification: z.ZodEffects<z.ZodString, string, string>;
77
+ primary_profile: z.ZodEffects<z.ZodString, string, string>;
78
+ additional_profiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
79
+ composers: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
80
+ profile_contract_digests: z.ZodArray<z.ZodString, "many">;
81
+ }, "strict", z.ZodTypeAny, {
82
+ composers: string[];
83
+ classification: string;
84
+ profile_contract_digests: string[];
85
+ unit_ref: string;
86
+ primary_profile: string;
87
+ additional_profiles: string[];
88
+ }, {
89
+ composers: string[];
90
+ classification: string;
91
+ profile_contract_digests: string[];
92
+ unit_ref: string;
93
+ primary_profile: string;
94
+ additional_profiles: string[];
95
+ }>, "many">;
96
+ expected_artifacts: z.ZodArray<z.ZodObject<{
97
+ classification: z.ZodEffects<z.ZodString, string, string>;
98
+ bundle_variant: z.ZodEffects<z.ZodString, string, string>;
99
+ expected_artifact_kinds: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
100
+ anonymous_example: z.ZodEffects<z.ZodString, string, string>;
101
+ anonymous_anti_example: z.ZodEffects<z.ZodString, string, string>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ classification: string;
104
+ bundle_variant: string;
105
+ expected_artifact_kinds: string[];
106
+ anonymous_example: string;
107
+ anonymous_anti_example: string;
108
+ }, {
109
+ classification: string;
110
+ bundle_variant: string;
111
+ expected_artifact_kinds: string[];
112
+ anonymous_example: string;
113
+ anonymous_anti_example: string;
114
+ }>, "many">;
115
+ metrics: z.ZodArray<z.ZodObject<{
116
+ metric_id: z.ZodEffects<z.ZodString, string, string>;
117
+ unit: z.ZodEnum<["percent", "count", "ratio", "boolean"]>;
118
+ recommended: z.ZodNullable<z.ZodNumber>;
119
+ hard_gate: z.ZodNullable<z.ZodNumber>;
120
+ observed: z.ZodNullable<z.ZodNumber>;
121
+ denominator: z.ZodNumber;
122
+ sample_refs: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">;
123
+ }, "strict", z.ZodTypeAny, {
124
+ denominator: number;
125
+ unit: "boolean" | "count" | "ratio" | "percent";
126
+ recommended: number | null;
127
+ metric_id: string;
128
+ hard_gate: number | null;
129
+ observed: number | null;
130
+ sample_refs: string[];
131
+ }, {
132
+ denominator: number;
133
+ unit: "boolean" | "count" | "ratio" | "percent";
134
+ recommended: number | null;
135
+ metric_id: string;
136
+ hard_gate: number | null;
137
+ observed: number | null;
138
+ sample_refs: string[];
139
+ }>, "many">;
140
+ likely_missing_inputs: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
141
+ capability_losses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
142
+ options: z.ZodArray<z.ZodEnum<["provide-material", "change-scope", "correct-classification", "force-approve-risk"]>, "many">;
143
+ input_digest: z.ZodString;
144
+ }, "strict", z.ZodTypeAny, {
145
+ protocol: "context.indexer.profile-failure-report-input/v1";
146
+ options: ("provide-material" | "change-scope" | "correct-classification" | "force-approve-risk")[];
147
+ metrics: {
148
+ denominator: number;
149
+ unit: "boolean" | "count" | "ratio" | "percent";
150
+ recommended: number | null;
151
+ metric_id: string;
152
+ hard_gate: number | null;
153
+ observed: number | null;
154
+ sample_refs: string[];
155
+ }[];
156
+ input_digest: string;
157
+ precompile_audit_report_digest: string;
158
+ lineage_id: string;
159
+ audit_report_digest: string;
160
+ module_profiles: {
161
+ composers: string[];
162
+ classification: string;
163
+ profile_contract_digests: string[];
164
+ unit_ref: string;
165
+ primary_profile: string;
166
+ additional_profiles: string[];
167
+ }[];
168
+ expected_artifacts: {
169
+ classification: string;
170
+ bundle_variant: string;
171
+ expected_artifact_kinds: string[];
172
+ anonymous_example: string;
173
+ anonymous_anti_example: string;
174
+ }[];
175
+ likely_missing_inputs: string[];
176
+ capability_losses: string[];
177
+ expected_ledger_digest: string;
178
+ }, {
179
+ protocol: "context.indexer.profile-failure-report-input/v1";
180
+ options: ("provide-material" | "change-scope" | "correct-classification" | "force-approve-risk")[];
181
+ metrics: {
182
+ denominator: number;
183
+ unit: "boolean" | "count" | "ratio" | "percent";
184
+ recommended: number | null;
185
+ metric_id: string;
186
+ hard_gate: number | null;
187
+ observed: number | null;
188
+ sample_refs: string[];
189
+ }[];
190
+ input_digest: string;
191
+ precompile_audit_report_digest: string;
192
+ lineage_id: string;
193
+ audit_report_digest: string;
194
+ module_profiles: {
195
+ composers: string[];
196
+ classification: string;
197
+ profile_contract_digests: string[];
198
+ unit_ref: string;
199
+ primary_profile: string;
200
+ additional_profiles: string[];
201
+ }[];
202
+ expected_artifacts: {
203
+ classification: string;
204
+ bundle_variant: string;
205
+ expected_artifact_kinds: string[];
206
+ anonymous_example: string;
207
+ anonymous_anti_example: string;
208
+ }[];
209
+ likely_missing_inputs: string[];
210
+ capability_losses: string[];
211
+ expected_ledger_digest: string;
212
+ }>;
213
+ export declare const indexerProfileFailureInspectionInputSchema: z.ZodObject<{
214
+ protocol: z.ZodLiteral<"context.indexer.profile-failure-inspection-input/v1">;
215
+ failure_report_digest: z.ZodString;
216
+ input_digest: z.ZodString;
217
+ }, "strict", z.ZodTypeAny, {
218
+ protocol: "context.indexer.profile-failure-inspection-input/v1";
219
+ input_digest: string;
220
+ failure_report_digest: string;
221
+ }, {
222
+ protocol: "context.indexer.profile-failure-inspection-input/v1";
223
+ input_digest: string;
224
+ failure_report_digest: string;
225
+ }>;
226
+ export type IndexerProfileRevisionRecordInput = z.infer<typeof indexerProfileRevisionRecordInputSchema>;
227
+ export type IndexerProfileFailureReportInput = z.infer<typeof indexerProfileFailureReportInputSchema>;
228
+ export type IndexerProfileFailureInspectionInput = z.infer<typeof indexerProfileFailureInspectionInputSchema>;
229
+ export declare function buildIndexerProfileRevisionRecordInput(input: Omit<IndexerProfileRevisionRecordInput, "protocol" | "input_digest">): IndexerProfileRevisionRecordInput;
230
+ export declare function validateIndexerProfileRevisionRecordInput(value: unknown): IndexerProfileRevisionRecordInput;
231
+ export declare function buildIndexerProfileFailureReportInput(input: Omit<IndexerProfileFailureReportInput, "protocol" | "input_digest">): IndexerProfileFailureReportInput;
232
+ export declare function validateIndexerProfileFailureReportInput(value: unknown): IndexerProfileFailureReportInput;
233
+ export declare function buildIndexerProfileFailureInspectionInput(input: {
234
+ failure_report_digest: string;
235
+ }): IndexerProfileFailureInspectionInput;
236
+ export declare function validateIndexerProfileFailureInspectionInput(value: unknown): IndexerProfileFailureInspectionInput;
@@ -0,0 +1,152 @@
1
+ import { z } from "zod";
2
+ import { type IndexerArtifactBundle, type IndexerArtifactPolicyEligibility } from "./indexerArtifactPolicy.js";
3
+ import type { IndexerOperatorContract, IndexerProfileContract } from "./indexerProfileContract.js";
4
+ import type { IndexerProviderManifest } from "./indexerProvider.js";
5
+ import type { IndexerJson } from "./indexerRegistry.js";
6
+ export declare const indexerAuthoringFixtureSchema: z.ZodObject<{
7
+ protocol: z.ZodLiteral<"context.indexer.authoring-fixture/v1">;
8
+ id: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
+ anonymized: z.ZodLiteral<true>;
10
+ profile: z.ZodEffects<z.ZodString, string, string>;
11
+ source_role: z.ZodEffects<z.ZodString, string, string>;
12
+ logical_unit_id: z.ZodEffects<z.ZodString, string, string>;
13
+ logical_unit_ref: z.ZodEffects<z.ZodString, string, string>;
14
+ canonical_facts: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
15
+ artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
16
+ artifacts: z.ZodArray<z.ZodUnion<[z.ZodObject<{
17
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
18
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
19
+ purpose: z.ZodEnum<["required", "discretionary"]>;
20
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
21
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
22
+ }, "strict", z.ZodTypeAny, {
23
+ evidence_refs: string[];
24
+ artifact_kind: string;
25
+ artifact_id: string;
26
+ purpose: "required" | "discretionary";
27
+ reader_question_refs: string[];
28
+ }, {
29
+ evidence_refs: string[];
30
+ artifact_kind: string;
31
+ artifact_id: string;
32
+ purpose: "required" | "discretionary";
33
+ reader_question_refs: string[];
34
+ }>, z.ZodObject<{
35
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
36
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
37
+ purpose: z.ZodLiteral<"semantic-split">;
38
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
39
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
40
+ split_of: z.ZodEffects<z.ZodString, string, string>;
41
+ boundary: z.ZodObject<{
42
+ axis: z.ZodEffects<z.ZodString, string, string>;
43
+ start_key: z.ZodString;
44
+ end_key: z.ZodString;
45
+ }, "strict", z.ZodTypeAny, {
46
+ axis: string;
47
+ start_key: string;
48
+ end_key: string;
49
+ }, {
50
+ axis: string;
51
+ start_key: string;
52
+ end_key: string;
53
+ }>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ evidence_refs: string[];
56
+ artifact_kind: string;
57
+ artifact_id: string;
58
+ purpose: "semantic-split";
59
+ reader_question_refs: string[];
60
+ split_of: string;
61
+ boundary: {
62
+ axis: string;
63
+ start_key: string;
64
+ end_key: string;
65
+ };
66
+ }, {
67
+ evidence_refs: string[];
68
+ artifact_kind: string;
69
+ artifact_id: string;
70
+ purpose: "semantic-split";
71
+ reader_question_refs: string[];
72
+ split_of: string;
73
+ boundary: {
74
+ axis: string;
75
+ start_key: string;
76
+ end_key: string;
77
+ };
78
+ }>]>, "many">;
79
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
80
+ }, "strict", z.ZodTypeAny, {
81
+ id: string;
82
+ protocol: "context.indexer.authoring-fixture/v1";
83
+ profile: string;
84
+ evidence_refs: string[];
85
+ artifact_policy_variant: string;
86
+ artifacts: ({
87
+ evidence_refs: string[];
88
+ artifact_kind: string;
89
+ artifact_id: string;
90
+ purpose: "required" | "discretionary";
91
+ reader_question_refs: string[];
92
+ } | {
93
+ evidence_refs: string[];
94
+ artifact_kind: string;
95
+ artifact_id: string;
96
+ purpose: "semantic-split";
97
+ reader_question_refs: string[];
98
+ split_of: string;
99
+ boundary: {
100
+ axis: string;
101
+ start_key: string;
102
+ end_key: string;
103
+ };
104
+ })[];
105
+ canonical_facts: Record<string, IndexerJson>;
106
+ logical_unit_ref: string;
107
+ source_role: string;
108
+ anonymized: true;
109
+ logical_unit_id: string;
110
+ }, {
111
+ id: string;
112
+ protocol: "context.indexer.authoring-fixture/v1";
113
+ profile: string;
114
+ evidence_refs: string[];
115
+ artifact_policy_variant: string;
116
+ artifacts: ({
117
+ evidence_refs: string[];
118
+ artifact_kind: string;
119
+ artifact_id: string;
120
+ purpose: "required" | "discretionary";
121
+ reader_question_refs: string[];
122
+ } | {
123
+ evidence_refs: string[];
124
+ artifact_kind: string;
125
+ artifact_id: string;
126
+ purpose: "semantic-split";
127
+ reader_question_refs: string[];
128
+ split_of: string;
129
+ boundary: {
130
+ axis: string;
131
+ start_key: string;
132
+ end_key: string;
133
+ };
134
+ })[];
135
+ canonical_facts: Record<string, IndexerJson>;
136
+ logical_unit_ref: string;
137
+ source_role: string;
138
+ anonymized: true;
139
+ logical_unit_id: string;
140
+ }>;
141
+ export type IndexerAuthoringFixture = z.infer<typeof indexerAuthoringFixtureSchema>;
142
+ export interface ValidatedIndexerAuthoringFixture {
143
+ fixture: IndexerAuthoringFixture;
144
+ eligibility: IndexerArtifactPolicyEligibility;
145
+ bundle: IndexerArtifactBundle;
146
+ }
147
+ export declare function validateIndexerAuthoringFixture(input: {
148
+ fixture: unknown;
149
+ manifest: IndexerProviderManifest;
150
+ profile_contract: IndexerProfileContract;
151
+ operator_contract: IndexerOperatorContract;
152
+ }): ValidatedIndexerAuthoringFixture;