@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,132 @@
1
+ import { z } from "zod";
2
+ declare const exampleObservationSchema: z.ZodObject<{
3
+ observation_ref: z.ZodString;
4
+ example_ref: z.ZodString;
5
+ public_target_ref: z.ZodString;
6
+ scenario_key: z.ZodEffects<z.ZodString, string, string>;
7
+ source_ref: z.ZodString;
8
+ module_ref: z.ZodNullable<z.ZodString>;
9
+ full_relative_path: z.ZodEffects<z.ZodString, string, string>;
10
+ content_digest: z.ZodString;
11
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
12
+ }, "strict", z.ZodTypeAny, {
13
+ source_ref: string;
14
+ evidence_refs: string[];
15
+ module_ref: string | null;
16
+ content_digest: string;
17
+ observation_ref: string;
18
+ example_ref: string;
19
+ public_target_ref: string;
20
+ scenario_key: string;
21
+ full_relative_path: string;
22
+ }, {
23
+ source_ref: string;
24
+ evidence_refs: string[];
25
+ module_ref: string | null;
26
+ content_digest: string;
27
+ observation_ref: string;
28
+ example_ref: string;
29
+ public_target_ref: string;
30
+ scenario_key: string;
31
+ full_relative_path: string;
32
+ }>;
33
+ export declare const indexerExampleInventorySchema: z.ZodObject<{
34
+ protocol: z.ZodLiteral<"context.indexer.example-inventory/v1">;
35
+ source_scope_digest: z.ZodString;
36
+ observations: z.ZodArray<z.ZodObject<{
37
+ observation_ref: z.ZodString;
38
+ example_ref: z.ZodString;
39
+ public_target_ref: z.ZodString;
40
+ scenario_key: z.ZodEffects<z.ZodString, string, string>;
41
+ source_ref: z.ZodString;
42
+ module_ref: z.ZodNullable<z.ZodString>;
43
+ full_relative_path: z.ZodEffects<z.ZodString, string, string>;
44
+ content_digest: z.ZodString;
45
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
46
+ }, "strict", z.ZodTypeAny, {
47
+ source_ref: string;
48
+ evidence_refs: string[];
49
+ module_ref: string | null;
50
+ content_digest: string;
51
+ observation_ref: string;
52
+ example_ref: string;
53
+ public_target_ref: string;
54
+ scenario_key: string;
55
+ full_relative_path: string;
56
+ }, {
57
+ source_ref: string;
58
+ evidence_refs: string[];
59
+ module_ref: string | null;
60
+ content_digest: string;
61
+ observation_ref: string;
62
+ example_ref: string;
63
+ public_target_ref: string;
64
+ scenario_key: string;
65
+ full_relative_path: string;
66
+ }>, "many">;
67
+ inventory_digest: z.ZodString;
68
+ }, "strict", z.ZodTypeAny, {
69
+ protocol: "context.indexer.example-inventory/v1";
70
+ inventory_digest: string;
71
+ source_scope_digest: string;
72
+ observations: {
73
+ source_ref: string;
74
+ evidence_refs: string[];
75
+ module_ref: string | null;
76
+ content_digest: string;
77
+ observation_ref: string;
78
+ example_ref: string;
79
+ public_target_ref: string;
80
+ scenario_key: string;
81
+ full_relative_path: string;
82
+ }[];
83
+ }, {
84
+ protocol: "context.indexer.example-inventory/v1";
85
+ inventory_digest: string;
86
+ source_scope_digest: string;
87
+ observations: {
88
+ source_ref: string;
89
+ evidence_refs: string[];
90
+ module_ref: string | null;
91
+ content_digest: string;
92
+ observation_ref: string;
93
+ example_ref: string;
94
+ public_target_ref: string;
95
+ scenario_key: string;
96
+ full_relative_path: string;
97
+ }[];
98
+ }>;
99
+ export type IndexerExampleObservation = z.infer<typeof exampleObservationSchema>;
100
+ export type IndexerExampleInventory = z.infer<typeof indexerExampleInventorySchema>;
101
+ export interface IndexerExampleObservationInput {
102
+ public_target_ref: string;
103
+ scenario_key: string;
104
+ source_ref: string;
105
+ module_ref: string | null;
106
+ full_relative_path: string;
107
+ content_digest: string;
108
+ evidence_refs: readonly string[];
109
+ }
110
+ export declare function normalizeIndexerExampleRelativePath(value: string): string;
111
+ export declare function indexerExampleRef(input: {
112
+ public_target_ref: string;
113
+ scenario_key: string;
114
+ full_relative_path: string;
115
+ }): string;
116
+ export declare function indexerExampleObservationRef(input: {
117
+ example_ref: string;
118
+ source_ref: string;
119
+ module_ref: string | null;
120
+ content_digest: string;
121
+ }): string;
122
+ export declare function indexerExampleInventoryDigest(value: Omit<IndexerExampleInventory, "inventory_digest">): string;
123
+ export declare function buildIndexerExampleInventory(input: {
124
+ source_scope_digest: string;
125
+ observations: readonly IndexerExampleObservationInput[];
126
+ }): IndexerExampleInventory;
127
+ export declare function validateIndexerExampleInventory(input: {
128
+ value: unknown;
129
+ expected_source_scope_digest?: string;
130
+ known_evidence_refs?: readonly string[];
131
+ }): IndexerExampleInventory;
132
+ export {};
@@ -0,0 +1,70 @@
1
+ import { z } from "zod";
2
+ export declare const indexerExampleIdentityAuditSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.example-identity-audit/v1">;
4
+ inventory_digest: z.ZodString;
5
+ observation_count: z.ZodNumber;
6
+ unique_example_count: z.ZodNumber;
7
+ collision_count: z.ZodNumber;
8
+ collisions: z.ZodArray<z.ZodObject<{
9
+ example_ref: z.ZodString;
10
+ public_target_ref: z.ZodString;
11
+ scenario_key: z.ZodEffects<z.ZodString, string, string>;
12
+ full_relative_path: z.ZodEffects<z.ZodString, string, string>;
13
+ observation_refs: z.ZodArray<z.ZodString, "many">;
14
+ }, "strict", z.ZodTypeAny, {
15
+ example_ref: string;
16
+ public_target_ref: string;
17
+ scenario_key: string;
18
+ full_relative_path: string;
19
+ observation_refs: string[];
20
+ }, {
21
+ example_ref: string;
22
+ public_target_ref: string;
23
+ scenario_key: string;
24
+ full_relative_path: string;
25
+ observation_refs: string[];
26
+ }>, "many">;
27
+ pass: z.ZodBoolean;
28
+ audit_digest: z.ZodString;
29
+ }, "strict", z.ZodTypeAny, {
30
+ protocol: "context.indexer.example-identity-audit/v1";
31
+ inventory_digest: string;
32
+ audit_digest: string;
33
+ collisions: {
34
+ example_ref: string;
35
+ public_target_ref: string;
36
+ scenario_key: string;
37
+ full_relative_path: string;
38
+ observation_refs: string[];
39
+ }[];
40
+ observation_count: number;
41
+ unique_example_count: number;
42
+ collision_count: number;
43
+ pass: boolean;
44
+ }, {
45
+ protocol: "context.indexer.example-identity-audit/v1";
46
+ inventory_digest: string;
47
+ audit_digest: string;
48
+ collisions: {
49
+ example_ref: string;
50
+ public_target_ref: string;
51
+ scenario_key: string;
52
+ full_relative_path: string;
53
+ observation_refs: string[];
54
+ }[];
55
+ observation_count: number;
56
+ unique_example_count: number;
57
+ collision_count: number;
58
+ pass: boolean;
59
+ }>;
60
+ export type IndexerExampleIdentityAudit = z.infer<typeof indexerExampleIdentityAuditSchema>;
61
+ export declare function indexerExampleIdentityAuditDigest(value: Omit<IndexerExampleIdentityAudit, "audit_digest">): string;
62
+ export declare function buildIndexerExampleIdentityAudit(inventoryInput: unknown): IndexerExampleIdentityAudit;
63
+ export declare function validateIndexerExampleIdentityAudit(input: {
64
+ value: unknown;
65
+ inventory: unknown;
66
+ }): IndexerExampleIdentityAudit;
67
+ export declare function assertIndexerExampleIdentityAuditPassed(input: {
68
+ value: unknown;
69
+ inventory: unknown;
70
+ }): IndexerExampleIdentityAudit;
@@ -0,0 +1,80 @@
1
+ import { z } from "zod";
2
+ export declare const INDEXER_EXAMPLE_METRIC_IDS: readonly ["example-candidate-decision-coverage", "example-representative-coverage", "example-public-target-linkage"];
3
+ export declare const indexerExampleLinkageAuditSchema: z.ZodObject<{
4
+ protocol: z.ZodLiteral<"context.indexer.example-linkage-audit/v1">;
5
+ inventory_digest: z.ZodString;
6
+ decision_set_digest: z.ZodString;
7
+ metrics: z.ZodArray<z.ZodObject<{
8
+ metric_id: z.ZodEnum<["example-candidate-decision-coverage", "example-representative-coverage", "example-public-target-linkage"]>;
9
+ unit: z.ZodLiteral<"ratio">;
10
+ numerator: z.ZodNumber;
11
+ denominator: z.ZodNumber;
12
+ actual: z.ZodNullable<z.ZodNumber>;
13
+ covered_example_refs: z.ZodArray<z.ZodString, "many">;
14
+ missing_example_refs: z.ZodArray<z.ZodString, "many">;
15
+ }, "strict", z.ZodTypeAny, {
16
+ denominator: number;
17
+ unit: "ratio";
18
+ metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
19
+ numerator: number;
20
+ actual: number | null;
21
+ covered_example_refs: string[];
22
+ missing_example_refs: string[];
23
+ }, {
24
+ denominator: number;
25
+ unit: "ratio";
26
+ metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
27
+ numerator: number;
28
+ actual: number | null;
29
+ covered_example_refs: string[];
30
+ missing_example_refs: string[];
31
+ }>, "many">;
32
+ decision_closure_pass: z.ZodBoolean;
33
+ audit_digest: z.ZodString;
34
+ }, "strict", z.ZodTypeAny, {
35
+ protocol: "context.indexer.example-linkage-audit/v1";
36
+ metrics: {
37
+ denominator: number;
38
+ unit: "ratio";
39
+ metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
40
+ numerator: number;
41
+ actual: number | null;
42
+ covered_example_refs: string[];
43
+ missing_example_refs: string[];
44
+ }[];
45
+ inventory_digest: string;
46
+ audit_digest: string;
47
+ decision_set_digest: string;
48
+ decision_closure_pass: boolean;
49
+ }, {
50
+ protocol: "context.indexer.example-linkage-audit/v1";
51
+ metrics: {
52
+ denominator: number;
53
+ unit: "ratio";
54
+ metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
55
+ numerator: number;
56
+ actual: number | null;
57
+ covered_example_refs: string[];
58
+ missing_example_refs: string[];
59
+ }[];
60
+ inventory_digest: string;
61
+ audit_digest: string;
62
+ decision_set_digest: string;
63
+ decision_closure_pass: boolean;
64
+ }>;
65
+ export type IndexerExampleLinkageAudit = z.infer<typeof indexerExampleLinkageAuditSchema>;
66
+ export declare function indexerExampleLinkageAuditDigest(value: Omit<IndexerExampleLinkageAudit, "audit_digest">): string;
67
+ export declare function buildIndexerExampleLinkageAudit(input: {
68
+ inventory: unknown;
69
+ decision_set: unknown;
70
+ }): IndexerExampleLinkageAudit;
71
+ export declare function validateIndexerExampleLinkageAudit(input: {
72
+ value: unknown;
73
+ inventory: unknown;
74
+ decision_set: unknown;
75
+ }): IndexerExampleLinkageAudit;
76
+ export declare function assertIndexerExampleCandidateDecisionClosure(input: {
77
+ value: unknown;
78
+ inventory: unknown;
79
+ decision_set: unknown;
80
+ }): IndexerExampleLinkageAudit;
@@ -0,0 +1,208 @@
1
+ import { z } from "zod";
2
+ import type { IndexerArtifactResult } from "./indexerArtifactResult.js";
3
+ declare const structuredClaimSchema: z.ZodObject<{
4
+ claim_ref: z.ZodString;
5
+ claim_kind: z.ZodEffects<z.ZodString, string, string>;
6
+ subject_ref: z.ZodString;
7
+ owner: z.ZodObject<{
8
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
9
+ section_key: z.ZodEffects<z.ZodString, string, string>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ artifact_id: string;
12
+ section_key: string;
13
+ }, {
14
+ artifact_id: string;
15
+ section_key: string;
16
+ }>;
17
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
18
+ }, "strict", z.ZodTypeAny, {
19
+ evidence_refs: string[];
20
+ claim_ref: string;
21
+ claim_kind: string;
22
+ subject_ref: string;
23
+ owner: {
24
+ artifact_id: string;
25
+ section_key: string;
26
+ };
27
+ }, {
28
+ evidence_refs: string[];
29
+ claim_ref: string;
30
+ claim_kind: string;
31
+ subject_ref: string;
32
+ owner: {
33
+ artifact_id: string;
34
+ section_key: string;
35
+ };
36
+ }>;
37
+ export declare const indexerStructuredClaimSetSchema: z.ZodObject<{
38
+ protocol: z.ZodLiteral<"context.indexer.structured-claim-set/v1">;
39
+ author_workset_digest: z.ZodString;
40
+ logical_unit_ref: z.ZodString;
41
+ claims: z.ZodArray<z.ZodObject<{
42
+ claim_ref: z.ZodString;
43
+ claim_kind: z.ZodEffects<z.ZodString, string, string>;
44
+ subject_ref: z.ZodString;
45
+ owner: z.ZodObject<{
46
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
47
+ section_key: z.ZodEffects<z.ZodString, string, string>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ artifact_id: string;
50
+ section_key: string;
51
+ }, {
52
+ artifact_id: string;
53
+ section_key: string;
54
+ }>;
55
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
56
+ }, "strict", z.ZodTypeAny, {
57
+ evidence_refs: string[];
58
+ claim_ref: string;
59
+ claim_kind: string;
60
+ subject_ref: string;
61
+ owner: {
62
+ artifact_id: string;
63
+ section_key: string;
64
+ };
65
+ }, {
66
+ evidence_refs: string[];
67
+ claim_ref: string;
68
+ claim_kind: string;
69
+ subject_ref: string;
70
+ owner: {
71
+ artifact_id: string;
72
+ section_key: string;
73
+ };
74
+ }>, "many">;
75
+ claims_digest: z.ZodString;
76
+ }, "strict", z.ZodTypeAny, {
77
+ protocol: "context.indexer.structured-claim-set/v1";
78
+ logical_unit_ref: string;
79
+ author_workset_digest: string;
80
+ claims: {
81
+ evidence_refs: string[];
82
+ claim_ref: string;
83
+ claim_kind: string;
84
+ subject_ref: string;
85
+ owner: {
86
+ artifact_id: string;
87
+ section_key: string;
88
+ };
89
+ }[];
90
+ claims_digest: string;
91
+ }, {
92
+ protocol: "context.indexer.structured-claim-set/v1";
93
+ logical_unit_ref: string;
94
+ author_workset_digest: string;
95
+ claims: {
96
+ evidence_refs: string[];
97
+ claim_ref: string;
98
+ claim_kind: string;
99
+ subject_ref: string;
100
+ owner: {
101
+ artifact_id: string;
102
+ section_key: string;
103
+ };
104
+ }[];
105
+ claims_digest: string;
106
+ }>;
107
+ export declare const indexerGeneratedAuthoringAuditSchema: z.ZodObject<{
108
+ protocol: z.ZodLiteral<"context.indexer.generated-authoring-audit/v1">;
109
+ artifact_result_digest: z.ZodString;
110
+ hard_findings: z.ZodArray<z.ZodObject<{
111
+ code: z.ZodEnum<["generated-placeholder", "empty-required-section"]>;
112
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
113
+ section_key: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
114
+ content_ref: z.ZodString;
115
+ }, "strict", z.ZodTypeAny, {
116
+ code: "generated-placeholder" | "empty-required-section";
117
+ artifact_id: string;
118
+ section_key: string | null;
119
+ content_ref: string;
120
+ }, {
121
+ code: "generated-placeholder" | "empty-required-section";
122
+ artifact_id: string;
123
+ section_key: string | null;
124
+ content_ref: string;
125
+ }>, "many">;
126
+ structured_claim_count: z.ZodNumber;
127
+ evidence_covered_structured_claim_count: z.ZodNumber;
128
+ semantic_prose_review_targets: z.ZodArray<z.ZodObject<{
129
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
130
+ section_key: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
131
+ content_ref: z.ZodString;
132
+ advisory_code: z.ZodLiteral<"semantic-prose-agent-review-required">;
133
+ }, "strict", z.ZodTypeAny, {
134
+ artifact_id: string;
135
+ section_key: string | null;
136
+ content_ref: string;
137
+ advisory_code: "semantic-prose-agent-review-required";
138
+ }, {
139
+ artifact_id: string;
140
+ section_key: string | null;
141
+ content_ref: string;
142
+ advisory_code: "semantic-prose-agent-review-required";
143
+ }>, "many">;
144
+ agent_review_required: z.ZodBoolean;
145
+ audit_digest: z.ZodString;
146
+ }, "strict", z.ZodTypeAny, {
147
+ protocol: "context.indexer.generated-authoring-audit/v1";
148
+ artifact_result_digest: string;
149
+ hard_findings: {
150
+ code: "generated-placeholder" | "empty-required-section";
151
+ artifact_id: string;
152
+ section_key: string | null;
153
+ content_ref: string;
154
+ }[];
155
+ structured_claim_count: number;
156
+ evidence_covered_structured_claim_count: number;
157
+ semantic_prose_review_targets: {
158
+ artifact_id: string;
159
+ section_key: string | null;
160
+ content_ref: string;
161
+ advisory_code: "semantic-prose-agent-review-required";
162
+ }[];
163
+ agent_review_required: boolean;
164
+ audit_digest: string;
165
+ }, {
166
+ protocol: "context.indexer.generated-authoring-audit/v1";
167
+ artifact_result_digest: string;
168
+ hard_findings: {
169
+ code: "generated-placeholder" | "empty-required-section";
170
+ artifact_id: string;
171
+ section_key: string | null;
172
+ content_ref: string;
173
+ }[];
174
+ structured_claim_count: number;
175
+ evidence_covered_structured_claim_count: number;
176
+ semantic_prose_review_targets: {
177
+ artifact_id: string;
178
+ section_key: string | null;
179
+ content_ref: string;
180
+ advisory_code: "semantic-prose-agent-review-required";
181
+ }[];
182
+ agent_review_required: boolean;
183
+ audit_digest: string;
184
+ }>;
185
+ export type IndexerStructuredClaimSet = z.infer<typeof indexerStructuredClaimSetSchema>;
186
+ export type IndexerGeneratedAuthoringAudit = z.infer<typeof indexerGeneratedAuthoringAuditSchema>;
187
+ export declare function buildIndexerStructuredClaimSet(input: {
188
+ author_workset_digest: string;
189
+ logical_unit_ref: string;
190
+ claims: readonly z.input<typeof structuredClaimSchema>[];
191
+ }): IndexerStructuredClaimSet;
192
+ export declare function validateIndexerStructuredClaimSet(input: {
193
+ value: unknown;
194
+ expected_author_workset_digest: string;
195
+ expected_logical_unit_ref: string;
196
+ authorized_subject_refs: readonly string[];
197
+ known_evidence_refs: readonly string[];
198
+ section_evidence_inventory: readonly {
199
+ artifact_id: string;
200
+ section_key: string;
201
+ evidence_refs: readonly string[];
202
+ }[];
203
+ }): IndexerStructuredClaimSet;
204
+ export declare function containsIndexerControlledAuthoringPlaceholder(markdown: string): boolean;
205
+ export declare function buildIndexerGeneratedAuthoringAudit(result: IndexerArtifactResult): IndexerGeneratedAuthoringAudit;
206
+ export declare function validateIndexerGeneratedAuthoringAudit(value: unknown): IndexerGeneratedAuthoringAudit;
207
+ export declare function assertIndexerGeneratedAuthoringAuditClear(audit: IndexerGeneratedAuthoringAudit): void;
208
+ export {};