clinkx 1.1.0 → 1.1.2

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 (162) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/README.md +210 -177
  3. package/clinkx-workflows/dist/architecture-comparison/admission.d.ts +5 -0
  4. package/clinkx-workflows/dist/architecture-comparison/admission.js +50 -0
  5. package/clinkx-workflows/dist/architecture-comparison/admission.js.map +1 -0
  6. package/clinkx-workflows/dist/architecture-comparison/contract.d.ts +995 -0
  7. package/clinkx-workflows/dist/architecture-comparison/contract.js +149 -0
  8. package/clinkx-workflows/dist/architecture-comparison/contract.js.map +1 -0
  9. package/clinkx-workflows/dist/architecture-comparison/runtime.d.ts +29 -0
  10. package/clinkx-workflows/dist/architecture-comparison/runtime.js +387 -0
  11. package/clinkx-workflows/dist/architecture-comparison/runtime.js.map +1 -0
  12. package/clinkx-workflows/dist/contained-file.js +1 -1
  13. package/clinkx-workflows/dist/contained-file.js.map +1 -1
  14. package/clinkx-workflows/dist/council-execution-policy.d.ts +4 -2
  15. package/clinkx-workflows/dist/council-execution-policy.js +5 -1
  16. package/clinkx-workflows/dist/council-execution-policy.js.map +1 -1
  17. package/clinkx-workflows/dist/dashboard/activity-contract.d.ts +72 -72
  18. package/clinkx-workflows/dist/dashboard/contracts.d.ts +1564 -122
  19. package/clinkx-workflows/dist/dashboard/contracts.js +4 -0
  20. package/clinkx-workflows/dist/dashboard/contracts.js.map +1 -1
  21. package/clinkx-workflows/dist/dashboard/progress-report-contract.d.ts +12 -12
  22. package/clinkx-workflows/dist/dashboard/progress-report-status-overlay.d.ts +8 -8
  23. package/clinkx-workflows/dist/dashboard/scanner.d.ts +3 -0
  24. package/clinkx-workflows/dist/dashboard/scanner.js +27 -0
  25. package/clinkx-workflows/dist/dashboard/scanner.js.map +1 -1
  26. package/clinkx-workflows/dist/dashboard/session-log-contract.d.ts +48 -48
  27. package/clinkx-workflows/dist/dashboard/session-log-redaction.d.ts +2 -0
  28. package/clinkx-workflows/dist/dashboard/session-log-redaction.js +4 -0
  29. package/clinkx-workflows/dist/dashboard/session-log-redaction.js.map +1 -1
  30. package/clinkx-workflows/dist/dashboard/verified-repair-contract.d.ts +191 -0
  31. package/clinkx-workflows/dist/dashboard/verified-repair-contract.js +28 -0
  32. package/clinkx-workflows/dist/dashboard/verified-repair-contract.js.map +1 -0
  33. package/clinkx-workflows/dist/dashboard-ui/assets/index-BdpmbPps.js +115 -0
  34. package/clinkx-workflows/dist/dashboard-ui/assets/style-Im5i1iAs.css +1 -0
  35. package/clinkx-workflows/dist/dashboard-ui/index.html +2 -2
  36. package/clinkx-workflows/dist/engine.d.ts +6 -0
  37. package/clinkx-workflows/dist/engine.js +78 -7
  38. package/clinkx-workflows/dist/engine.js.map +1 -1
  39. package/clinkx-workflows/dist/index.d.ts +3 -0
  40. package/clinkx-workflows/dist/index.js +3 -2
  41. package/clinkx-workflows/dist/index.js.map +1 -1
  42. package/clinkx-workflows/dist/reducers/index.d.ts +9 -1
  43. package/clinkx-workflows/dist/reducers/index.js +22 -0
  44. package/clinkx-workflows/dist/reducers/index.js.map +1 -1
  45. package/clinkx-workflows/dist/state.js +17 -7
  46. package/clinkx-workflows/dist/state.js.map +1 -1
  47. package/clinkx-workflows/dist/validators/architecture-comparison.d.ts +2 -0
  48. package/clinkx-workflows/dist/validators/architecture-comparison.js +12 -0
  49. package/clinkx-workflows/dist/validators/architecture-comparison.js.map +1 -0
  50. package/clinkx-workflows/dist/validators/index.js +4 -0
  51. package/clinkx-workflows/dist/validators/index.js.map +1 -1
  52. package/clinkx-workflows/dist/validators/verified-repair.d.ts +2 -0
  53. package/clinkx-workflows/dist/validators/verified-repair.js +12 -0
  54. package/clinkx-workflows/dist/validators/verified-repair.js.map +1 -0
  55. package/clinkx-workflows/dist/verification-proof.d.ts +254 -0
  56. package/clinkx-workflows/dist/verification-proof.js +195 -0
  57. package/clinkx-workflows/dist/verification-proof.js.map +1 -0
  58. package/clinkx-workflows/dist/verified-repair/admission.d.ts +72 -0
  59. package/clinkx-workflows/dist/verified-repair/admission.js +63 -0
  60. package/clinkx-workflows/dist/verified-repair/admission.js.map +1 -0
  61. package/clinkx-workflows/dist/verified-repair/contract.d.ts +1910 -0
  62. package/clinkx-workflows/dist/verified-repair/contract.js +127 -0
  63. package/clinkx-workflows/dist/verified-repair/contract.js.map +1 -0
  64. package/clinkx-workflows/dist/verified-repair/host.d.ts +32 -0
  65. package/clinkx-workflows/dist/verified-repair/host.js +2 -0
  66. package/clinkx-workflows/dist/verified-repair/host.js.map +1 -0
  67. package/clinkx-workflows/dist/verified-repair/prompts.d.ts +12 -0
  68. package/clinkx-workflows/dist/verified-repair/prompts.js +58 -0
  69. package/clinkx-workflows/dist/verified-repair/prompts.js.map +1 -0
  70. package/clinkx-workflows/dist/verified-repair/result.d.ts +16 -0
  71. package/clinkx-workflows/dist/verified-repair/result.js +102 -0
  72. package/clinkx-workflows/dist/verified-repair/result.js.map +1 -0
  73. package/clinkx-workflows/dist/verified-repair/runtime.d.ts +28 -0
  74. package/clinkx-workflows/dist/verified-repair/runtime.js +186 -0
  75. package/clinkx-workflows/dist/verified-repair/runtime.js.map +1 -0
  76. package/clinkx-workflows/dist/workflow-tools.d.ts +3 -0
  77. package/clinkx-workflows/dist/workflow-tools.js +148 -14
  78. package/clinkx-workflows/dist/workflow-tools.js.map +1 -1
  79. package/clinkx-workflows/dist/workflow-verification-contract.d.ts +539 -0
  80. package/clinkx-workflows/dist/workflow-verification-contract.js +52 -0
  81. package/clinkx-workflows/dist/workflow-verification-contract.js.map +1 -0
  82. package/clinkx-workflows/dist/workflow-verification.d.ts +15 -0
  83. package/clinkx-workflows/dist/workflow-verification.js +218 -0
  84. package/clinkx-workflows/dist/workflow-verification.js.map +1 -0
  85. package/clinkx-workflows/templates/architecture-comparison/candidate.txt +29 -0
  86. package/clinkx-workflows/templates/architecture-comparison/judge.txt +31 -0
  87. package/clinkx-workflows/templates/verified-repair/investigate.txt +20 -0
  88. package/clinkx-workflows/templates/verified-repair/repair.txt +11 -0
  89. package/clinkx-workflows/templates/verified-repair/review.txt +18 -0
  90. package/clinkx-workflows/workflows/architecture-comparison.yaml +133 -0
  91. package/clinkx-workflows/workflows/verified-repair.yaml +104 -0
  92. package/dist/allowed-roots.js +4 -1
  93. package/dist/allowed-roots.js.map +1 -1
  94. package/dist/codex/app-server-client.d.ts +1 -0
  95. package/dist/codex/app-server-client.js +3 -2
  96. package/dist/codex/app-server-client.js.map +1 -1
  97. package/dist/context-builder/diagnostics.d.ts +1 -0
  98. package/dist/context-builder/diagnostics.js +1 -1
  99. package/dist/context-builder/diagnostics.js.map +1 -1
  100. package/dist/context-builder/discovery.d.ts +18 -1
  101. package/dist/context-builder/discovery.js +69 -1
  102. package/dist/context-builder/discovery.js.map +1 -1
  103. package/dist/context-builder/handler.js +8 -1
  104. package/dist/context-builder/handler.js.map +1 -1
  105. package/dist/context-builder/lifecycle-contract.d.ts +24 -24
  106. package/dist/context-builder/refine-handler.js +16 -1
  107. package/dist/context-builder/refine-handler.js.map +1 -1
  108. package/dist/context-builder/secrets.d.ts +11 -0
  109. package/dist/context-builder/secrets.js +81 -1
  110. package/dist/context-builder/secrets.js.map +1 -1
  111. package/dist/context-builder/versions.d.ts +5 -2
  112. package/dist/context-builder/versions.js +5 -2
  113. package/dist/context-builder/versions.js.map +1 -1
  114. package/dist/dashboard-cli.js +10 -3
  115. package/dist/dashboard-cli.js.map +1 -1
  116. package/dist/dashboard-gateway/main.js +8 -3
  117. package/dist/dashboard-gateway/main.js.map +1 -1
  118. package/dist/index.d.ts +2 -0
  119. package/dist/index.js +8 -2
  120. package/dist/index.js.map +1 -1
  121. package/dist/project-verification/contract.d.ts +537 -0
  122. package/dist/project-verification/contract.js +40 -0
  123. package/dist/project-verification/contract.js.map +1 -0
  124. package/dist/project-verification/files.d.ts +23 -0
  125. package/dist/project-verification/files.js +80 -0
  126. package/dist/project-verification/files.js.map +1 -0
  127. package/dist/project-verification/process.d.ts +7 -0
  128. package/dist/project-verification/process.js +115 -0
  129. package/dist/project-verification/process.js.map +1 -0
  130. package/dist/project-verification/runner.d.ts +35 -0
  131. package/dist/project-verification/runner.js +185 -0
  132. package/dist/project-verification/runner.js.map +1 -0
  133. package/dist/project-verification/service.d.ts +37 -0
  134. package/dist/project-verification/service.js +151 -0
  135. package/dist/project-verification/service.js.map +1 -0
  136. package/dist/provider-doctor.d.ts +22 -0
  137. package/dist/provider-doctor.js +22 -0
  138. package/dist/provider-doctor.js.map +1 -0
  139. package/dist/server.js +29 -1
  140. package/dist/server.js.map +1 -1
  141. package/dist/verification-tools.d.ts +90 -0
  142. package/dist/verification-tools.js +120 -0
  143. package/dist/verification-tools.js.map +1 -0
  144. package/dist/verified-repair/files.d.ts +22 -0
  145. package/dist/verified-repair/files.js +114 -0
  146. package/dist/verified-repair/files.js.map +1 -0
  147. package/dist/verified-repair/host.d.ts +14 -0
  148. package/dist/verified-repair/host.js +612 -0
  149. package/dist/verified-repair/host.js.map +1 -0
  150. package/docs/configuration.md +493 -0
  151. package/docs/engineering-recipes.md +415 -0
  152. package/docs/security.md +293 -0
  153. package/docs/verification/README.md +59 -0
  154. package/docs/verification/dashboard-real-disk.md +436 -0
  155. package/docs/verification/project-checks.example.json +14 -0
  156. package/docs/verification/project-checks.md +444 -0
  157. package/docs/verification/workflow-handoff.md +113 -0
  158. package/package.json +13 -6
  159. package/scripts/provider-doctor-core.mjs +364 -0
  160. package/scripts/provider-doctor-probe.mjs +34 -0
  161. package/clinkx-workflows/dist/dashboard-ui/assets/index-JPHQVtn9.js +0 -106
  162. package/clinkx-workflows/dist/dashboard-ui/assets/style-DOMHk-j6.css +0 -1
@@ -0,0 +1,1910 @@
1
+ import { z } from "zod";
2
+ export declare const VERIFIED_REPAIR_WORKFLOW = "verified-repair";
3
+ export declare const VERIFIED_REPAIR_RECORD_PATH = "verified-repair-record.v1.json";
4
+ export declare const MAX_REPAIR_CONTRACT_BYTES: number;
5
+ export declare const MAX_REPAIR_PROPOSAL_BYTES: number;
6
+ export declare const MAX_REPAIR_PACKET_BYTES: number;
7
+ export declare const MAX_REPAIR_RECORD_BYTES: number;
8
+ export declare const MAX_REPLACEMENT_FILE_BYTES: number;
9
+ export declare const MAX_REPLACEMENT_BATCH_BYTES: number;
10
+ export declare const REPAIR_REFS: {
11
+ readonly capture: "capture.packet";
12
+ readonly investigate: "investigate.proposal";
13
+ readonly reproduce: "reproduce.proof";
14
+ readonly repair: "repair.proposal";
15
+ readonly fixed: "fixed.proof";
16
+ readonly review: "review.review";
17
+ readonly independent: "independent.proof";
18
+ readonly record: "record.record";
19
+ };
20
+ export declare const DigestSchema: z.ZodString;
21
+ export declare const RelativePathSchema: z.ZodEffects<z.ZodString, string, string>;
22
+ export declare const RepairRouteSchema: z.ZodObject<{
23
+ cli_name: z.ZodString;
24
+ model: z.ZodOptional<z.ZodString>;
25
+ effort: z.ZodOptional<z.ZodString>;
26
+ }, "strict", z.ZodTypeAny, {
27
+ cli_name: string;
28
+ model?: string | undefined;
29
+ effort?: string | undefined;
30
+ }, {
31
+ cli_name: string;
32
+ model?: string | undefined;
33
+ effort?: string | undefined;
34
+ }>;
35
+ export declare const RepairRoutesSchema: z.ZodObject<{
36
+ investigator: z.ZodObject<{
37
+ cli_name: z.ZodString;
38
+ model: z.ZodOptional<z.ZodString>;
39
+ effort: z.ZodOptional<z.ZodString>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ cli_name: string;
42
+ model?: string | undefined;
43
+ effort?: string | undefined;
44
+ }, {
45
+ cli_name: string;
46
+ model?: string | undefined;
47
+ effort?: string | undefined;
48
+ }>;
49
+ repair_author: z.ZodObject<{
50
+ cli_name: z.ZodString;
51
+ model: z.ZodOptional<z.ZodString>;
52
+ effort: z.ZodOptional<z.ZodString>;
53
+ }, "strict", z.ZodTypeAny, {
54
+ cli_name: string;
55
+ model?: string | undefined;
56
+ effort?: string | undefined;
57
+ }, {
58
+ cli_name: string;
59
+ model?: string | undefined;
60
+ effort?: string | undefined;
61
+ }>;
62
+ verifier: z.ZodObject<{
63
+ cli_name: z.ZodString;
64
+ model: z.ZodOptional<z.ZodString>;
65
+ effort: z.ZodOptional<z.ZodString>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ cli_name: string;
68
+ model?: string | undefined;
69
+ effort?: string | undefined;
70
+ }, {
71
+ cli_name: string;
72
+ model?: string | undefined;
73
+ effort?: string | undefined;
74
+ }>;
75
+ }, "strict", z.ZodTypeAny, {
76
+ investigator: {
77
+ cli_name: string;
78
+ model?: string | undefined;
79
+ effort?: string | undefined;
80
+ };
81
+ repair_author: {
82
+ cli_name: string;
83
+ model?: string | undefined;
84
+ effort?: string | undefined;
85
+ };
86
+ verifier: {
87
+ cli_name: string;
88
+ model?: string | undefined;
89
+ effort?: string | undefined;
90
+ };
91
+ }, {
92
+ investigator: {
93
+ cli_name: string;
94
+ model?: string | undefined;
95
+ effort?: string | undefined;
96
+ };
97
+ repair_author: {
98
+ cli_name: string;
99
+ model?: string | undefined;
100
+ effort?: string | undefined;
101
+ };
102
+ verifier: {
103
+ cli_name: string;
104
+ model?: string | undefined;
105
+ effort?: string | undefined;
106
+ };
107
+ }>;
108
+ export type RepairRoutes = z.infer<typeof RepairRoutesSchema>;
109
+ export declare const RegressionObservationSchema: z.ZodObject<{
110
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
111
+ case_id: z.ZodString;
112
+ assertion_id: z.ZodString;
113
+ check_id: z.ZodString;
114
+ }, "strict", z.ZodTypeAny, {
115
+ schema_version: "clinkx-regression-outcome-v1";
116
+ case_id: string;
117
+ assertion_id: string;
118
+ check_id: string;
119
+ }, {
120
+ schema_version: "clinkx-regression-outcome-v1";
121
+ case_id: string;
122
+ assertion_id: string;
123
+ check_id: string;
124
+ }>;
125
+ export declare const RegressionOutcomeSchema: z.ZodObject<{
126
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
127
+ case_id: z.ZodString;
128
+ assertion_id: z.ZodString;
129
+ outcome: z.ZodEnum<["assertion_failed", "assertion_passed", "harness_error"]>;
130
+ }, "strict", z.ZodTypeAny, {
131
+ schema_version: "clinkx-regression-outcome-v1";
132
+ case_id: string;
133
+ assertion_id: string;
134
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
135
+ }, {
136
+ schema_version: "clinkx-regression-outcome-v1";
137
+ case_id: string;
138
+ assertion_id: string;
139
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
140
+ }>;
141
+ export type RegressionOutcome = z.infer<typeof RegressionOutcomeSchema>;
142
+ export declare const RepairInputSchema: z.ZodEffects<z.ZodObject<{
143
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-input-v1">;
144
+ project_path: z.ZodEffects<z.ZodString, string, string>;
145
+ evidence_parent: z.ZodEffects<z.ZodString, string, string>;
146
+ verification_copy_parent: z.ZodEffects<z.ZodString, string, string>;
147
+ defect: z.ZodObject<{
148
+ description: z.ZodString;
149
+ expected_behavior: z.ZodString;
150
+ }, "strict", z.ZodTypeAny, {
151
+ description: string;
152
+ expected_behavior: string;
153
+ }, {
154
+ description: string;
155
+ expected_behavior: string;
156
+ }>;
157
+ source_inputs: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
158
+ regression_paths: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
159
+ implementation_paths: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
160
+ regression_manifest: z.ZodEffects<z.ZodString, string, string>;
161
+ required_manifest: z.ZodEffects<z.ZodString, string, string>;
162
+ copy_preparation: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
163
+ status: z.ZodLiteral<"declared">;
164
+ manifest: z.ZodEffects<z.ZodString, string, string>;
165
+ }, "strict", z.ZodTypeAny, {
166
+ status: "declared";
167
+ manifest: string;
168
+ }, {
169
+ status: "declared";
170
+ manifest: string;
171
+ }>, z.ZodObject<{
172
+ status: z.ZodLiteral<"unavailable">;
173
+ reason: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ status: "unavailable";
176
+ reason: string;
177
+ }, {
178
+ status: "unavailable";
179
+ reason: string;
180
+ }>]>;
181
+ observation: z.ZodObject<{
182
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
183
+ case_id: z.ZodString;
184
+ assertion_id: z.ZodString;
185
+ check_id: z.ZodString;
186
+ }, "strict", z.ZodTypeAny, {
187
+ schema_version: "clinkx-regression-outcome-v1";
188
+ case_id: string;
189
+ assertion_id: string;
190
+ check_id: string;
191
+ }, {
192
+ schema_version: "clinkx-regression-outcome-v1";
193
+ case_id: string;
194
+ assertion_id: string;
195
+ check_id: string;
196
+ }>;
197
+ exclusive_write_ownership: z.ZodLiteral<true>;
198
+ }, "strict", z.ZodTypeAny, {
199
+ schema_version: "clinkx-verified-repair-input-v1";
200
+ observation: {
201
+ schema_version: "clinkx-regression-outcome-v1";
202
+ case_id: string;
203
+ assertion_id: string;
204
+ check_id: string;
205
+ };
206
+ project_path: string;
207
+ evidence_parent: string;
208
+ verification_copy_parent: string;
209
+ defect: {
210
+ description: string;
211
+ expected_behavior: string;
212
+ };
213
+ source_inputs: string[];
214
+ regression_paths: string[];
215
+ implementation_paths: string[];
216
+ regression_manifest: string;
217
+ required_manifest: string;
218
+ copy_preparation: {
219
+ status: "declared";
220
+ manifest: string;
221
+ } | {
222
+ status: "unavailable";
223
+ reason: string;
224
+ };
225
+ exclusive_write_ownership: true;
226
+ }, {
227
+ schema_version: "clinkx-verified-repair-input-v1";
228
+ observation: {
229
+ schema_version: "clinkx-regression-outcome-v1";
230
+ case_id: string;
231
+ assertion_id: string;
232
+ check_id: string;
233
+ };
234
+ project_path: string;
235
+ evidence_parent: string;
236
+ verification_copy_parent: string;
237
+ defect: {
238
+ description: string;
239
+ expected_behavior: string;
240
+ };
241
+ source_inputs: string[];
242
+ regression_paths: string[];
243
+ implementation_paths: string[];
244
+ regression_manifest: string;
245
+ required_manifest: string;
246
+ copy_preparation: {
247
+ status: "declared";
248
+ manifest: string;
249
+ } | {
250
+ status: "unavailable";
251
+ reason: string;
252
+ };
253
+ exclusive_write_ownership: true;
254
+ }>, {
255
+ schema_version: "clinkx-verified-repair-input-v1";
256
+ observation: {
257
+ schema_version: "clinkx-regression-outcome-v1";
258
+ case_id: string;
259
+ assertion_id: string;
260
+ check_id: string;
261
+ };
262
+ project_path: string;
263
+ evidence_parent: string;
264
+ verification_copy_parent: string;
265
+ defect: {
266
+ description: string;
267
+ expected_behavior: string;
268
+ };
269
+ source_inputs: string[];
270
+ regression_paths: string[];
271
+ implementation_paths: string[];
272
+ regression_manifest: string;
273
+ required_manifest: string;
274
+ copy_preparation: {
275
+ status: "declared";
276
+ manifest: string;
277
+ } | {
278
+ status: "unavailable";
279
+ reason: string;
280
+ };
281
+ exclusive_write_ownership: true;
282
+ }, {
283
+ schema_version: "clinkx-verified-repair-input-v1";
284
+ observation: {
285
+ schema_version: "clinkx-regression-outcome-v1";
286
+ case_id: string;
287
+ assertion_id: string;
288
+ check_id: string;
289
+ };
290
+ project_path: string;
291
+ evidence_parent: string;
292
+ verification_copy_parent: string;
293
+ defect: {
294
+ description: string;
295
+ expected_behavior: string;
296
+ };
297
+ source_inputs: string[];
298
+ regression_paths: string[];
299
+ implementation_paths: string[];
300
+ regression_manifest: string;
301
+ required_manifest: string;
302
+ copy_preparation: {
303
+ status: "declared";
304
+ manifest: string;
305
+ } | {
306
+ status: "unavailable";
307
+ reason: string;
308
+ };
309
+ exclusive_write_ownership: true;
310
+ }>;
311
+ export type RepairInput = z.infer<typeof RepairInputSchema>;
312
+ export declare const RepairSourceFactSchema: z.ZodObject<{
313
+ path: z.ZodEffects<z.ZodString, string, string>;
314
+ sha256: z.ZodString;
315
+ size_bytes: z.ZodNumber;
316
+ }, "strict", z.ZodTypeAny, {
317
+ path: string;
318
+ sha256: string;
319
+ size_bytes: number;
320
+ }, {
321
+ path: string;
322
+ sha256: string;
323
+ size_bytes: number;
324
+ }>;
325
+ export type RepairSourceFact = z.infer<typeof RepairSourceFactSchema>;
326
+ export declare const RepairCitationSchema: z.ZodEffects<z.ZodObject<{
327
+ path: z.ZodEffects<z.ZodString, string, string>;
328
+ sha256: z.ZodString;
329
+ start_line: z.ZodNumber;
330
+ end_line: z.ZodNumber;
331
+ }, "strict", z.ZodTypeAny, {
332
+ path: string;
333
+ sha256: string;
334
+ start_line: number;
335
+ end_line: number;
336
+ }, {
337
+ path: string;
338
+ sha256: string;
339
+ start_line: number;
340
+ end_line: number;
341
+ }>, {
342
+ path: string;
343
+ sha256: string;
344
+ start_line: number;
345
+ end_line: number;
346
+ }, {
347
+ path: string;
348
+ sha256: string;
349
+ start_line: number;
350
+ end_line: number;
351
+ }>;
352
+ export type RepairCitation = z.infer<typeof RepairCitationSchema>;
353
+ export declare const ReplacementSchema: z.ZodObject<{
354
+ path: z.ZodEffects<z.ZodString, string, string>;
355
+ original_sha256: z.ZodString;
356
+ replacement_text: z.ZodEffects<z.ZodString, string, string>;
357
+ }, "strict", z.ZodTypeAny, {
358
+ path: string;
359
+ original_sha256: string;
360
+ replacement_text: string;
361
+ }, {
362
+ path: string;
363
+ original_sha256: string;
364
+ replacement_text: string;
365
+ }>;
366
+ export declare const ReplacementBatchSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
367
+ path: z.ZodEffects<z.ZodString, string, string>;
368
+ original_sha256: z.ZodString;
369
+ replacement_text: z.ZodEffects<z.ZodString, string, string>;
370
+ }, "strict", z.ZodTypeAny, {
371
+ path: string;
372
+ original_sha256: string;
373
+ replacement_text: string;
374
+ }, {
375
+ path: string;
376
+ original_sha256: string;
377
+ replacement_text: string;
378
+ }>, "many">, {
379
+ path: string;
380
+ original_sha256: string;
381
+ replacement_text: string;
382
+ }[], {
383
+ path: string;
384
+ original_sha256: string;
385
+ replacement_text: string;
386
+ }[]>;
387
+ export type RepairReplacement = z.infer<typeof ReplacementSchema>;
388
+ export declare const RepairDiagnosisSchema: z.ZodObject<{
389
+ explanation: z.ZodString;
390
+ expected_behavior: z.ZodString;
391
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
392
+ path: z.ZodEffects<z.ZodString, string, string>;
393
+ sha256: z.ZodString;
394
+ start_line: z.ZodNumber;
395
+ end_line: z.ZodNumber;
396
+ }, "strict", z.ZodTypeAny, {
397
+ path: string;
398
+ sha256: string;
399
+ start_line: number;
400
+ end_line: number;
401
+ }, {
402
+ path: string;
403
+ sha256: string;
404
+ start_line: number;
405
+ end_line: number;
406
+ }>, {
407
+ path: string;
408
+ sha256: string;
409
+ start_line: number;
410
+ end_line: number;
411
+ }, {
412
+ path: string;
413
+ sha256: string;
414
+ start_line: number;
415
+ end_line: number;
416
+ }>, "many">;
417
+ }, "strict", z.ZodTypeAny, {
418
+ expected_behavior: string;
419
+ explanation: string;
420
+ citations: {
421
+ path: string;
422
+ sha256: string;
423
+ start_line: number;
424
+ end_line: number;
425
+ }[];
426
+ }, {
427
+ expected_behavior: string;
428
+ explanation: string;
429
+ citations: {
430
+ path: string;
431
+ sha256: string;
432
+ start_line: number;
433
+ end_line: number;
434
+ }[];
435
+ }>;
436
+ export declare const InvestigationSchema: z.ZodObject<{
437
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-investigation-v1">;
438
+ frozen_digest: z.ZodString;
439
+ diagnosis: z.ZodObject<{
440
+ explanation: z.ZodString;
441
+ expected_behavior: z.ZodString;
442
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
443
+ path: z.ZodEffects<z.ZodString, string, string>;
444
+ sha256: z.ZodString;
445
+ start_line: z.ZodNumber;
446
+ end_line: z.ZodNumber;
447
+ }, "strict", z.ZodTypeAny, {
448
+ path: string;
449
+ sha256: string;
450
+ start_line: number;
451
+ end_line: number;
452
+ }, {
453
+ path: string;
454
+ sha256: string;
455
+ start_line: number;
456
+ end_line: number;
457
+ }>, {
458
+ path: string;
459
+ sha256: string;
460
+ start_line: number;
461
+ end_line: number;
462
+ }, {
463
+ path: string;
464
+ sha256: string;
465
+ start_line: number;
466
+ end_line: number;
467
+ }>, "many">;
468
+ }, "strict", z.ZodTypeAny, {
469
+ expected_behavior: string;
470
+ explanation: string;
471
+ citations: {
472
+ path: string;
473
+ sha256: string;
474
+ start_line: number;
475
+ end_line: number;
476
+ }[];
477
+ }, {
478
+ expected_behavior: string;
479
+ explanation: string;
480
+ citations: {
481
+ path: string;
482
+ sha256: string;
483
+ start_line: number;
484
+ end_line: number;
485
+ }[];
486
+ }>;
487
+ regression_replacements: z.ZodEffects<z.ZodArray<z.ZodObject<{
488
+ path: z.ZodEffects<z.ZodString, string, string>;
489
+ original_sha256: z.ZodString;
490
+ replacement_text: z.ZodEffects<z.ZodString, string, string>;
491
+ }, "strict", z.ZodTypeAny, {
492
+ path: string;
493
+ original_sha256: string;
494
+ replacement_text: string;
495
+ }, {
496
+ path: string;
497
+ original_sha256: string;
498
+ replacement_text: string;
499
+ }>, "many">, {
500
+ path: string;
501
+ original_sha256: string;
502
+ replacement_text: string;
503
+ }[], {
504
+ path: string;
505
+ original_sha256: string;
506
+ replacement_text: string;
507
+ }[]>;
508
+ }, "strict", z.ZodTypeAny, {
509
+ schema_version: "clinkx-verified-repair-investigation-v1";
510
+ frozen_digest: string;
511
+ diagnosis: {
512
+ expected_behavior: string;
513
+ explanation: string;
514
+ citations: {
515
+ path: string;
516
+ sha256: string;
517
+ start_line: number;
518
+ end_line: number;
519
+ }[];
520
+ };
521
+ regression_replacements: {
522
+ path: string;
523
+ original_sha256: string;
524
+ replacement_text: string;
525
+ }[];
526
+ }, {
527
+ schema_version: "clinkx-verified-repair-investigation-v1";
528
+ frozen_digest: string;
529
+ diagnosis: {
530
+ expected_behavior: string;
531
+ explanation: string;
532
+ citations: {
533
+ path: string;
534
+ sha256: string;
535
+ start_line: number;
536
+ end_line: number;
537
+ }[];
538
+ };
539
+ regression_replacements: {
540
+ path: string;
541
+ original_sha256: string;
542
+ replacement_text: string;
543
+ }[];
544
+ }>;
545
+ export type RepairInvestigation = z.infer<typeof InvestigationSchema>;
546
+ export declare const FixProposalSchema: z.ZodObject<{
547
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-fix-v1">;
548
+ frozen_digest: z.ZodString;
549
+ explanation: z.ZodString;
550
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
551
+ path: z.ZodEffects<z.ZodString, string, string>;
552
+ sha256: z.ZodString;
553
+ start_line: z.ZodNumber;
554
+ end_line: z.ZodNumber;
555
+ }, "strict", z.ZodTypeAny, {
556
+ path: string;
557
+ sha256: string;
558
+ start_line: number;
559
+ end_line: number;
560
+ }, {
561
+ path: string;
562
+ sha256: string;
563
+ start_line: number;
564
+ end_line: number;
565
+ }>, {
566
+ path: string;
567
+ sha256: string;
568
+ start_line: number;
569
+ end_line: number;
570
+ }, {
571
+ path: string;
572
+ sha256: string;
573
+ start_line: number;
574
+ end_line: number;
575
+ }>, "many">;
576
+ implementation_replacements: z.ZodEffects<z.ZodArray<z.ZodObject<{
577
+ path: z.ZodEffects<z.ZodString, string, string>;
578
+ original_sha256: z.ZodString;
579
+ replacement_text: z.ZodEffects<z.ZodString, string, string>;
580
+ }, "strict", z.ZodTypeAny, {
581
+ path: string;
582
+ original_sha256: string;
583
+ replacement_text: string;
584
+ }, {
585
+ path: string;
586
+ original_sha256: string;
587
+ replacement_text: string;
588
+ }>, "many">, {
589
+ path: string;
590
+ original_sha256: string;
591
+ replacement_text: string;
592
+ }[], {
593
+ path: string;
594
+ original_sha256: string;
595
+ replacement_text: string;
596
+ }[]>;
597
+ }, "strict", z.ZodTypeAny, {
598
+ schema_version: "clinkx-verified-repair-fix-v1";
599
+ frozen_digest: string;
600
+ explanation: string;
601
+ citations: {
602
+ path: string;
603
+ sha256: string;
604
+ start_line: number;
605
+ end_line: number;
606
+ }[];
607
+ implementation_replacements: {
608
+ path: string;
609
+ original_sha256: string;
610
+ replacement_text: string;
611
+ }[];
612
+ }, {
613
+ schema_version: "clinkx-verified-repair-fix-v1";
614
+ frozen_digest: string;
615
+ explanation: string;
616
+ citations: {
617
+ path: string;
618
+ sha256: string;
619
+ start_line: number;
620
+ end_line: number;
621
+ }[];
622
+ implementation_replacements: {
623
+ path: string;
624
+ original_sha256: string;
625
+ replacement_text: string;
626
+ }[];
627
+ }>;
628
+ export type RepairFixProposal = z.infer<typeof FixProposalSchema>;
629
+ export declare const RepairPhaseSchema: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
630
+ export declare const RepairProofRefSchema: z.ZodObject<{
631
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
632
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
633
+ expectations_sha256: z.ZodString;
634
+ }, "strict", z.ZodTypeAny, {
635
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
636
+ evidence_directory: string;
637
+ expectations_sha256: string;
638
+ }, {
639
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
640
+ evidence_directory: string;
641
+ expectations_sha256: string;
642
+ }>;
643
+ export type RepairProofRef = z.infer<typeof RepairProofRefSchema>;
644
+ export declare const RepairPhaseProofSchema: z.ZodObject<{
645
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
646
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
647
+ expectations_sha256: z.ZodString;
648
+ } & {
649
+ project_path: z.ZodEffects<z.ZodString, string, string>;
650
+ source_digest: z.ZodString;
651
+ coverage_status: z.ZodEnum<["complete", "incomplete", "inapplicable", "failed"]>;
652
+ outcome: z.ZodOptional<z.ZodObject<{
653
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
654
+ case_id: z.ZodString;
655
+ assertion_id: z.ZodString;
656
+ outcome: z.ZodEnum<["assertion_failed", "assertion_passed", "harness_error"]>;
657
+ }, "strict", z.ZodTypeAny, {
658
+ schema_version: "clinkx-regression-outcome-v1";
659
+ case_id: string;
660
+ assertion_id: string;
661
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
662
+ }, {
663
+ schema_version: "clinkx-regression-outcome-v1";
664
+ case_id: string;
665
+ assertion_id: string;
666
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
667
+ }>>;
668
+ applicable: z.ZodBoolean;
669
+ }, "strict", z.ZodTypeAny, {
670
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
671
+ project_path: string;
672
+ evidence_directory: string;
673
+ expectations_sha256: string;
674
+ source_digest: string;
675
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
676
+ applicable: boolean;
677
+ outcome?: {
678
+ schema_version: "clinkx-regression-outcome-v1";
679
+ case_id: string;
680
+ assertion_id: string;
681
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
682
+ } | undefined;
683
+ }, {
684
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
685
+ project_path: string;
686
+ evidence_directory: string;
687
+ expectations_sha256: string;
688
+ source_digest: string;
689
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
690
+ applicable: boolean;
691
+ outcome?: {
692
+ schema_version: "clinkx-regression-outcome-v1";
693
+ case_id: string;
694
+ assertion_id: string;
695
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
696
+ } | undefined;
697
+ }>;
698
+ export type RepairPhaseProof = z.infer<typeof RepairPhaseProofSchema>;
699
+ export declare const RepairFindingSchema: z.ZodObject<{
700
+ severity: z.ZodEnum<["material", "nonblocking"]>;
701
+ message: z.ZodString;
702
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
703
+ path: z.ZodEffects<z.ZodString, string, string>;
704
+ sha256: z.ZodString;
705
+ start_line: z.ZodNumber;
706
+ end_line: z.ZodNumber;
707
+ }, "strict", z.ZodTypeAny, {
708
+ path: string;
709
+ sha256: string;
710
+ start_line: number;
711
+ end_line: number;
712
+ }, {
713
+ path: string;
714
+ sha256: string;
715
+ start_line: number;
716
+ end_line: number;
717
+ }>, {
718
+ path: string;
719
+ sha256: string;
720
+ start_line: number;
721
+ end_line: number;
722
+ }, {
723
+ path: string;
724
+ sha256: string;
725
+ start_line: number;
726
+ end_line: number;
727
+ }>, "many">;
728
+ }, "strict", z.ZodTypeAny, {
729
+ message: string;
730
+ severity: "material" | "nonblocking";
731
+ citations: {
732
+ path: string;
733
+ sha256: string;
734
+ start_line: number;
735
+ end_line: number;
736
+ }[];
737
+ }, {
738
+ message: string;
739
+ severity: "material" | "nonblocking";
740
+ citations: {
741
+ path: string;
742
+ sha256: string;
743
+ start_line: number;
744
+ end_line: number;
745
+ }[];
746
+ }>;
747
+ export declare const RepairReviewSchema: z.ZodEffects<z.ZodObject<{
748
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-review-v1">;
749
+ frozen_digest: z.ZodString;
750
+ fixed_source_digest: z.ZodString;
751
+ proof_refs: z.ZodArray<z.ZodObject<{
752
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
753
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
754
+ expectations_sha256: z.ZodString;
755
+ }, "strict", z.ZodTypeAny, {
756
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
757
+ evidence_directory: string;
758
+ expectations_sha256: string;
759
+ }, {
760
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
761
+ evidence_directory: string;
762
+ expectations_sha256: string;
763
+ }>, "many">;
764
+ verdict: z.ZodEnum<["approve", "request_changes"]>;
765
+ findings: z.ZodArray<z.ZodObject<{
766
+ severity: z.ZodEnum<["material", "nonblocking"]>;
767
+ message: z.ZodString;
768
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
769
+ path: z.ZodEffects<z.ZodString, string, string>;
770
+ sha256: z.ZodString;
771
+ start_line: z.ZodNumber;
772
+ end_line: z.ZodNumber;
773
+ }, "strict", z.ZodTypeAny, {
774
+ path: string;
775
+ sha256: string;
776
+ start_line: number;
777
+ end_line: number;
778
+ }, {
779
+ path: string;
780
+ sha256: string;
781
+ start_line: number;
782
+ end_line: number;
783
+ }>, {
784
+ path: string;
785
+ sha256: string;
786
+ start_line: number;
787
+ end_line: number;
788
+ }, {
789
+ path: string;
790
+ sha256: string;
791
+ start_line: number;
792
+ end_line: number;
793
+ }>, "many">;
794
+ }, "strict", z.ZodTypeAny, {
795
+ message: string;
796
+ severity: "material" | "nonblocking";
797
+ citations: {
798
+ path: string;
799
+ sha256: string;
800
+ start_line: number;
801
+ end_line: number;
802
+ }[];
803
+ }, {
804
+ message: string;
805
+ severity: "material" | "nonblocking";
806
+ citations: {
807
+ path: string;
808
+ sha256: string;
809
+ start_line: number;
810
+ end_line: number;
811
+ }[];
812
+ }>, "many">;
813
+ causality: z.ZodString;
814
+ scope: z.ZodString;
815
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
816
+ path: z.ZodEffects<z.ZodString, string, string>;
817
+ sha256: z.ZodString;
818
+ start_line: z.ZodNumber;
819
+ end_line: z.ZodNumber;
820
+ }, "strict", z.ZodTypeAny, {
821
+ path: string;
822
+ sha256: string;
823
+ start_line: number;
824
+ end_line: number;
825
+ }, {
826
+ path: string;
827
+ sha256: string;
828
+ start_line: number;
829
+ end_line: number;
830
+ }>, {
831
+ path: string;
832
+ sha256: string;
833
+ start_line: number;
834
+ end_line: number;
835
+ }, {
836
+ path: string;
837
+ sha256: string;
838
+ start_line: number;
839
+ end_line: number;
840
+ }>, "many">;
841
+ }, "strict", z.ZodTypeAny, {
842
+ schema_version: "clinkx-verified-repair-review-v1";
843
+ verdict: "approve" | "request_changes";
844
+ findings: {
845
+ message: string;
846
+ severity: "material" | "nonblocking";
847
+ citations: {
848
+ path: string;
849
+ sha256: string;
850
+ start_line: number;
851
+ end_line: number;
852
+ }[];
853
+ }[];
854
+ frozen_digest: string;
855
+ citations: {
856
+ path: string;
857
+ sha256: string;
858
+ start_line: number;
859
+ end_line: number;
860
+ }[];
861
+ fixed_source_digest: string;
862
+ proof_refs: {
863
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
864
+ evidence_directory: string;
865
+ expectations_sha256: string;
866
+ }[];
867
+ causality: string;
868
+ scope: string;
869
+ }, {
870
+ schema_version: "clinkx-verified-repair-review-v1";
871
+ verdict: "approve" | "request_changes";
872
+ findings: {
873
+ message: string;
874
+ severity: "material" | "nonblocking";
875
+ citations: {
876
+ path: string;
877
+ sha256: string;
878
+ start_line: number;
879
+ end_line: number;
880
+ }[];
881
+ }[];
882
+ frozen_digest: string;
883
+ citations: {
884
+ path: string;
885
+ sha256: string;
886
+ start_line: number;
887
+ end_line: number;
888
+ }[];
889
+ fixed_source_digest: string;
890
+ proof_refs: {
891
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
892
+ evidence_directory: string;
893
+ expectations_sha256: string;
894
+ }[];
895
+ causality: string;
896
+ scope: string;
897
+ }>, {
898
+ schema_version: "clinkx-verified-repair-review-v1";
899
+ verdict: "approve" | "request_changes";
900
+ findings: {
901
+ message: string;
902
+ severity: "material" | "nonblocking";
903
+ citations: {
904
+ path: string;
905
+ sha256: string;
906
+ start_line: number;
907
+ end_line: number;
908
+ }[];
909
+ }[];
910
+ frozen_digest: string;
911
+ citations: {
912
+ path: string;
913
+ sha256: string;
914
+ start_line: number;
915
+ end_line: number;
916
+ }[];
917
+ fixed_source_digest: string;
918
+ proof_refs: {
919
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
920
+ evidence_directory: string;
921
+ expectations_sha256: string;
922
+ }[];
923
+ causality: string;
924
+ scope: string;
925
+ }, {
926
+ schema_version: "clinkx-verified-repair-review-v1";
927
+ verdict: "approve" | "request_changes";
928
+ findings: {
929
+ message: string;
930
+ severity: "material" | "nonblocking";
931
+ citations: {
932
+ path: string;
933
+ sha256: string;
934
+ start_line: number;
935
+ end_line: number;
936
+ }[];
937
+ }[];
938
+ frozen_digest: string;
939
+ citations: {
940
+ path: string;
941
+ sha256: string;
942
+ start_line: number;
943
+ end_line: number;
944
+ }[];
945
+ fixed_source_digest: string;
946
+ proof_refs: {
947
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
948
+ evidence_directory: string;
949
+ expectations_sha256: string;
950
+ }[];
951
+ causality: string;
952
+ scope: string;
953
+ }>;
954
+ export type RepairReview = z.infer<typeof RepairReviewSchema>;
955
+ export declare const RepairPacketSchema: z.ZodEffects<z.ZodObject<{
956
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-packet-v1">;
957
+ frozen_digest: z.ZodString;
958
+ phase: z.ZodEnum<["capture", "reproduce", "fixed", "independent"]>;
959
+ source_facts: z.ZodArray<z.ZodObject<{
960
+ path: z.ZodEffects<z.ZodString, string, string>;
961
+ sha256: z.ZodString;
962
+ size_bytes: z.ZodNumber;
963
+ }, "strict", z.ZodTypeAny, {
964
+ path: string;
965
+ sha256: string;
966
+ size_bytes: number;
967
+ }, {
968
+ path: string;
969
+ sha256: string;
970
+ size_bytes: number;
971
+ }>, "many">;
972
+ proofs: z.ZodArray<z.ZodObject<{
973
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
974
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
975
+ expectations_sha256: z.ZodString;
976
+ } & {
977
+ project_path: z.ZodEffects<z.ZodString, string, string>;
978
+ source_digest: z.ZodString;
979
+ coverage_status: z.ZodEnum<["complete", "incomplete", "inapplicable", "failed"]>;
980
+ outcome: z.ZodOptional<z.ZodObject<{
981
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
982
+ case_id: z.ZodString;
983
+ assertion_id: z.ZodString;
984
+ outcome: z.ZodEnum<["assertion_failed", "assertion_passed", "harness_error"]>;
985
+ }, "strict", z.ZodTypeAny, {
986
+ schema_version: "clinkx-regression-outcome-v1";
987
+ case_id: string;
988
+ assertion_id: string;
989
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
990
+ }, {
991
+ schema_version: "clinkx-regression-outcome-v1";
992
+ case_id: string;
993
+ assertion_id: string;
994
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
995
+ }>>;
996
+ applicable: z.ZodBoolean;
997
+ }, "strict", z.ZodTypeAny, {
998
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
999
+ project_path: string;
1000
+ evidence_directory: string;
1001
+ expectations_sha256: string;
1002
+ source_digest: string;
1003
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1004
+ applicable: boolean;
1005
+ outcome?: {
1006
+ schema_version: "clinkx-regression-outcome-v1";
1007
+ case_id: string;
1008
+ assertion_id: string;
1009
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1010
+ } | undefined;
1011
+ }, {
1012
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1013
+ project_path: string;
1014
+ evidence_directory: string;
1015
+ expectations_sha256: string;
1016
+ source_digest: string;
1017
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1018
+ applicable: boolean;
1019
+ outcome?: {
1020
+ schema_version: "clinkx-regression-outcome-v1";
1021
+ case_id: string;
1022
+ assertion_id: string;
1023
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1024
+ } | undefined;
1025
+ }>, "many">;
1026
+ context: z.ZodString;
1027
+ }, "strict", z.ZodTypeAny, {
1028
+ schema_version: "clinkx-verified-repair-packet-v1";
1029
+ phase: "capture" | "reproduce" | "fixed" | "independent";
1030
+ context: string;
1031
+ frozen_digest: string;
1032
+ source_facts: {
1033
+ path: string;
1034
+ sha256: string;
1035
+ size_bytes: number;
1036
+ }[];
1037
+ proofs: {
1038
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1039
+ project_path: string;
1040
+ evidence_directory: string;
1041
+ expectations_sha256: string;
1042
+ source_digest: string;
1043
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1044
+ applicable: boolean;
1045
+ outcome?: {
1046
+ schema_version: "clinkx-regression-outcome-v1";
1047
+ case_id: string;
1048
+ assertion_id: string;
1049
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1050
+ } | undefined;
1051
+ }[];
1052
+ }, {
1053
+ schema_version: "clinkx-verified-repair-packet-v1";
1054
+ phase: "capture" | "reproduce" | "fixed" | "independent";
1055
+ context: string;
1056
+ frozen_digest: string;
1057
+ source_facts: {
1058
+ path: string;
1059
+ sha256: string;
1060
+ size_bytes: number;
1061
+ }[];
1062
+ proofs: {
1063
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1064
+ project_path: string;
1065
+ evidence_directory: string;
1066
+ expectations_sha256: string;
1067
+ source_digest: string;
1068
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1069
+ applicable: boolean;
1070
+ outcome?: {
1071
+ schema_version: "clinkx-regression-outcome-v1";
1072
+ case_id: string;
1073
+ assertion_id: string;
1074
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1075
+ } | undefined;
1076
+ }[];
1077
+ }>, {
1078
+ schema_version: "clinkx-verified-repair-packet-v1";
1079
+ phase: "capture" | "reproduce" | "fixed" | "independent";
1080
+ context: string;
1081
+ frozen_digest: string;
1082
+ source_facts: {
1083
+ path: string;
1084
+ sha256: string;
1085
+ size_bytes: number;
1086
+ }[];
1087
+ proofs: {
1088
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1089
+ project_path: string;
1090
+ evidence_directory: string;
1091
+ expectations_sha256: string;
1092
+ source_digest: string;
1093
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1094
+ applicable: boolean;
1095
+ outcome?: {
1096
+ schema_version: "clinkx-regression-outcome-v1";
1097
+ case_id: string;
1098
+ assertion_id: string;
1099
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1100
+ } | undefined;
1101
+ }[];
1102
+ }, {
1103
+ schema_version: "clinkx-verified-repair-packet-v1";
1104
+ phase: "capture" | "reproduce" | "fixed" | "independent";
1105
+ context: string;
1106
+ frozen_digest: string;
1107
+ source_facts: {
1108
+ path: string;
1109
+ sha256: string;
1110
+ size_bytes: number;
1111
+ }[];
1112
+ proofs: {
1113
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1114
+ project_path: string;
1115
+ evidence_directory: string;
1116
+ expectations_sha256: string;
1117
+ source_digest: string;
1118
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1119
+ applicable: boolean;
1120
+ outcome?: {
1121
+ schema_version: "clinkx-regression-outcome-v1";
1122
+ case_id: string;
1123
+ assertion_id: string;
1124
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1125
+ } | undefined;
1126
+ }[];
1127
+ }>;
1128
+ export type RepairPacket = z.infer<typeof RepairPacketSchema>;
1129
+ export declare const RepairAppliedPathSchema: z.ZodObject<{
1130
+ phase: z.ZodEnum<["regression", "implementation"]>;
1131
+ path: z.ZodEffects<z.ZodString, string, string>;
1132
+ original_sha256: z.ZodString;
1133
+ replacement_sha256: z.ZodString;
1134
+ status: z.ZodEnum<["applied", "original", "replacement", "unknown"]>;
1135
+ }, "strict", z.ZodTypeAny, {
1136
+ status: "unknown" | "applied" | "original" | "replacement";
1137
+ path: string;
1138
+ phase: "regression" | "implementation";
1139
+ original_sha256: string;
1140
+ replacement_sha256: string;
1141
+ }, {
1142
+ status: "unknown" | "applied" | "original" | "replacement";
1143
+ path: string;
1144
+ phase: "regression" | "implementation";
1145
+ original_sha256: string;
1146
+ replacement_sha256: string;
1147
+ }>;
1148
+ export declare const RepairRecordSchema: z.ZodEffects<z.ZodObject<{
1149
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-record-v1">;
1150
+ run_id: z.ZodString;
1151
+ execution_status: z.ZodEnum<["completed", "failed", "cancelled", "interrupted"]>;
1152
+ repair_status: z.ZodEnum<["verified", "blocked", "incomplete", "failed"]>;
1153
+ frozen_digest: z.ZodString;
1154
+ project_path: z.ZodEffects<z.ZodString, string, string>;
1155
+ routes: z.ZodObject<{
1156
+ investigator: z.ZodObject<{
1157
+ cli_name: z.ZodString;
1158
+ model: z.ZodOptional<z.ZodString>;
1159
+ effort: z.ZodOptional<z.ZodString>;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ cli_name: string;
1162
+ model?: string | undefined;
1163
+ effort?: string | undefined;
1164
+ }, {
1165
+ cli_name: string;
1166
+ model?: string | undefined;
1167
+ effort?: string | undefined;
1168
+ }>;
1169
+ repair_author: z.ZodObject<{
1170
+ cli_name: z.ZodString;
1171
+ model: z.ZodOptional<z.ZodString>;
1172
+ effort: z.ZodOptional<z.ZodString>;
1173
+ }, "strict", z.ZodTypeAny, {
1174
+ cli_name: string;
1175
+ model?: string | undefined;
1176
+ effort?: string | undefined;
1177
+ }, {
1178
+ cli_name: string;
1179
+ model?: string | undefined;
1180
+ effort?: string | undefined;
1181
+ }>;
1182
+ verifier: z.ZodObject<{
1183
+ cli_name: z.ZodString;
1184
+ model: z.ZodOptional<z.ZodString>;
1185
+ effort: z.ZodOptional<z.ZodString>;
1186
+ }, "strict", z.ZodTypeAny, {
1187
+ cli_name: string;
1188
+ model?: string | undefined;
1189
+ effort?: string | undefined;
1190
+ }, {
1191
+ cli_name: string;
1192
+ model?: string | undefined;
1193
+ effort?: string | undefined;
1194
+ }>;
1195
+ }, "strict", z.ZodTypeAny, {
1196
+ investigator: {
1197
+ cli_name: string;
1198
+ model?: string | undefined;
1199
+ effort?: string | undefined;
1200
+ };
1201
+ repair_author: {
1202
+ cli_name: string;
1203
+ model?: string | undefined;
1204
+ effort?: string | undefined;
1205
+ };
1206
+ verifier: {
1207
+ cli_name: string;
1208
+ model?: string | undefined;
1209
+ effort?: string | undefined;
1210
+ };
1211
+ }, {
1212
+ investigator: {
1213
+ cli_name: string;
1214
+ model?: string | undefined;
1215
+ effort?: string | undefined;
1216
+ };
1217
+ repair_author: {
1218
+ cli_name: string;
1219
+ model?: string | undefined;
1220
+ effort?: string | undefined;
1221
+ };
1222
+ verifier: {
1223
+ cli_name: string;
1224
+ model?: string | undefined;
1225
+ effort?: string | undefined;
1226
+ };
1227
+ }>;
1228
+ source_facts: z.ZodArray<z.ZodObject<{
1229
+ path: z.ZodEffects<z.ZodString, string, string>;
1230
+ sha256: z.ZodString;
1231
+ size_bytes: z.ZodNumber;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ path: string;
1234
+ sha256: string;
1235
+ size_bytes: number;
1236
+ }, {
1237
+ path: string;
1238
+ sha256: string;
1239
+ size_bytes: number;
1240
+ }>, "many">;
1241
+ current_source_facts: z.ZodArray<z.ZodObject<{
1242
+ path: z.ZodEffects<z.ZodString, string, string>;
1243
+ sha256: z.ZodString;
1244
+ size_bytes: z.ZodNumber;
1245
+ }, "strict", z.ZodTypeAny, {
1246
+ path: string;
1247
+ sha256: string;
1248
+ size_bytes: number;
1249
+ }, {
1250
+ path: string;
1251
+ sha256: string;
1252
+ size_bytes: number;
1253
+ }>, "many">;
1254
+ fixed_source_digest: z.ZodOptional<z.ZodString>;
1255
+ applied_paths: z.ZodArray<z.ZodObject<{
1256
+ phase: z.ZodEnum<["regression", "implementation"]>;
1257
+ path: z.ZodEffects<z.ZodString, string, string>;
1258
+ original_sha256: z.ZodString;
1259
+ replacement_sha256: z.ZodString;
1260
+ status: z.ZodEnum<["applied", "original", "replacement", "unknown"]>;
1261
+ }, "strict", z.ZodTypeAny, {
1262
+ status: "unknown" | "applied" | "original" | "replacement";
1263
+ path: string;
1264
+ phase: "regression" | "implementation";
1265
+ original_sha256: string;
1266
+ replacement_sha256: string;
1267
+ }, {
1268
+ status: "unknown" | "applied" | "original" | "replacement";
1269
+ path: string;
1270
+ phase: "regression" | "implementation";
1271
+ original_sha256: string;
1272
+ replacement_sha256: string;
1273
+ }>, "many">;
1274
+ proofs: z.ZodArray<z.ZodObject<{
1275
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
1276
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
1277
+ expectations_sha256: z.ZodString;
1278
+ } & {
1279
+ project_path: z.ZodEffects<z.ZodString, string, string>;
1280
+ source_digest: z.ZodString;
1281
+ coverage_status: z.ZodEnum<["complete", "incomplete", "inapplicable", "failed"]>;
1282
+ outcome: z.ZodOptional<z.ZodObject<{
1283
+ schema_version: z.ZodLiteral<"clinkx-regression-outcome-v1">;
1284
+ case_id: z.ZodString;
1285
+ assertion_id: z.ZodString;
1286
+ outcome: z.ZodEnum<["assertion_failed", "assertion_passed", "harness_error"]>;
1287
+ }, "strict", z.ZodTypeAny, {
1288
+ schema_version: "clinkx-regression-outcome-v1";
1289
+ case_id: string;
1290
+ assertion_id: string;
1291
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1292
+ }, {
1293
+ schema_version: "clinkx-regression-outcome-v1";
1294
+ case_id: string;
1295
+ assertion_id: string;
1296
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1297
+ }>>;
1298
+ applicable: z.ZodBoolean;
1299
+ }, "strict", z.ZodTypeAny, {
1300
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1301
+ project_path: string;
1302
+ evidence_directory: string;
1303
+ expectations_sha256: string;
1304
+ source_digest: string;
1305
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1306
+ applicable: boolean;
1307
+ outcome?: {
1308
+ schema_version: "clinkx-regression-outcome-v1";
1309
+ case_id: string;
1310
+ assertion_id: string;
1311
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1312
+ } | undefined;
1313
+ }, {
1314
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1315
+ project_path: string;
1316
+ evidence_directory: string;
1317
+ expectations_sha256: string;
1318
+ source_digest: string;
1319
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1320
+ applicable: boolean;
1321
+ outcome?: {
1322
+ schema_version: "clinkx-regression-outcome-v1";
1323
+ case_id: string;
1324
+ assertion_id: string;
1325
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1326
+ } | undefined;
1327
+ }>, "many">;
1328
+ review: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1329
+ schema_version: z.ZodLiteral<"clinkx-verified-repair-review-v1">;
1330
+ frozen_digest: z.ZodString;
1331
+ fixed_source_digest: z.ZodString;
1332
+ proof_refs: z.ZodArray<z.ZodObject<{
1333
+ phase: z.ZodEnum<["capture", "reproduce", "fixed_regression", "fixed_required", "copy_preparation", "copy_fixed", "copy_without_fix", "copy_restored", "final_required"]>;
1334
+ evidence_directory: z.ZodEffects<z.ZodString, string, string>;
1335
+ expectations_sha256: z.ZodString;
1336
+ }, "strict", z.ZodTypeAny, {
1337
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1338
+ evidence_directory: string;
1339
+ expectations_sha256: string;
1340
+ }, {
1341
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1342
+ evidence_directory: string;
1343
+ expectations_sha256: string;
1344
+ }>, "many">;
1345
+ verdict: z.ZodEnum<["approve", "request_changes"]>;
1346
+ findings: z.ZodArray<z.ZodObject<{
1347
+ severity: z.ZodEnum<["material", "nonblocking"]>;
1348
+ message: z.ZodString;
1349
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
1350
+ path: z.ZodEffects<z.ZodString, string, string>;
1351
+ sha256: z.ZodString;
1352
+ start_line: z.ZodNumber;
1353
+ end_line: z.ZodNumber;
1354
+ }, "strict", z.ZodTypeAny, {
1355
+ path: string;
1356
+ sha256: string;
1357
+ start_line: number;
1358
+ end_line: number;
1359
+ }, {
1360
+ path: string;
1361
+ sha256: string;
1362
+ start_line: number;
1363
+ end_line: number;
1364
+ }>, {
1365
+ path: string;
1366
+ sha256: string;
1367
+ start_line: number;
1368
+ end_line: number;
1369
+ }, {
1370
+ path: string;
1371
+ sha256: string;
1372
+ start_line: number;
1373
+ end_line: number;
1374
+ }>, "many">;
1375
+ }, "strict", z.ZodTypeAny, {
1376
+ message: string;
1377
+ severity: "material" | "nonblocking";
1378
+ citations: {
1379
+ path: string;
1380
+ sha256: string;
1381
+ start_line: number;
1382
+ end_line: number;
1383
+ }[];
1384
+ }, {
1385
+ message: string;
1386
+ severity: "material" | "nonblocking";
1387
+ citations: {
1388
+ path: string;
1389
+ sha256: string;
1390
+ start_line: number;
1391
+ end_line: number;
1392
+ }[];
1393
+ }>, "many">;
1394
+ causality: z.ZodString;
1395
+ scope: z.ZodString;
1396
+ citations: z.ZodArray<z.ZodEffects<z.ZodObject<{
1397
+ path: z.ZodEffects<z.ZodString, string, string>;
1398
+ sha256: z.ZodString;
1399
+ start_line: z.ZodNumber;
1400
+ end_line: z.ZodNumber;
1401
+ }, "strict", z.ZodTypeAny, {
1402
+ path: string;
1403
+ sha256: string;
1404
+ start_line: number;
1405
+ end_line: number;
1406
+ }, {
1407
+ path: string;
1408
+ sha256: string;
1409
+ start_line: number;
1410
+ end_line: number;
1411
+ }>, {
1412
+ path: string;
1413
+ sha256: string;
1414
+ start_line: number;
1415
+ end_line: number;
1416
+ }, {
1417
+ path: string;
1418
+ sha256: string;
1419
+ start_line: number;
1420
+ end_line: number;
1421
+ }>, "many">;
1422
+ }, "strict", z.ZodTypeAny, {
1423
+ schema_version: "clinkx-verified-repair-review-v1";
1424
+ verdict: "approve" | "request_changes";
1425
+ findings: {
1426
+ message: string;
1427
+ severity: "material" | "nonblocking";
1428
+ citations: {
1429
+ path: string;
1430
+ sha256: string;
1431
+ start_line: number;
1432
+ end_line: number;
1433
+ }[];
1434
+ }[];
1435
+ frozen_digest: string;
1436
+ citations: {
1437
+ path: string;
1438
+ sha256: string;
1439
+ start_line: number;
1440
+ end_line: number;
1441
+ }[];
1442
+ fixed_source_digest: string;
1443
+ proof_refs: {
1444
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1445
+ evidence_directory: string;
1446
+ expectations_sha256: string;
1447
+ }[];
1448
+ causality: string;
1449
+ scope: string;
1450
+ }, {
1451
+ schema_version: "clinkx-verified-repair-review-v1";
1452
+ verdict: "approve" | "request_changes";
1453
+ findings: {
1454
+ message: string;
1455
+ severity: "material" | "nonblocking";
1456
+ citations: {
1457
+ path: string;
1458
+ sha256: string;
1459
+ start_line: number;
1460
+ end_line: number;
1461
+ }[];
1462
+ }[];
1463
+ frozen_digest: string;
1464
+ citations: {
1465
+ path: string;
1466
+ sha256: string;
1467
+ start_line: number;
1468
+ end_line: number;
1469
+ }[];
1470
+ fixed_source_digest: string;
1471
+ proof_refs: {
1472
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1473
+ evidence_directory: string;
1474
+ expectations_sha256: string;
1475
+ }[];
1476
+ causality: string;
1477
+ scope: string;
1478
+ }>, {
1479
+ schema_version: "clinkx-verified-repair-review-v1";
1480
+ verdict: "approve" | "request_changes";
1481
+ findings: {
1482
+ message: string;
1483
+ severity: "material" | "nonblocking";
1484
+ citations: {
1485
+ path: string;
1486
+ sha256: string;
1487
+ start_line: number;
1488
+ end_line: number;
1489
+ }[];
1490
+ }[];
1491
+ frozen_digest: string;
1492
+ citations: {
1493
+ path: string;
1494
+ sha256: string;
1495
+ start_line: number;
1496
+ end_line: number;
1497
+ }[];
1498
+ fixed_source_digest: string;
1499
+ proof_refs: {
1500
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1501
+ evidence_directory: string;
1502
+ expectations_sha256: string;
1503
+ }[];
1504
+ causality: string;
1505
+ scope: string;
1506
+ }, {
1507
+ schema_version: "clinkx-verified-repair-review-v1";
1508
+ verdict: "approve" | "request_changes";
1509
+ findings: {
1510
+ message: string;
1511
+ severity: "material" | "nonblocking";
1512
+ citations: {
1513
+ path: string;
1514
+ sha256: string;
1515
+ start_line: number;
1516
+ end_line: number;
1517
+ }[];
1518
+ }[];
1519
+ frozen_digest: string;
1520
+ citations: {
1521
+ path: string;
1522
+ sha256: string;
1523
+ start_line: number;
1524
+ end_line: number;
1525
+ }[];
1526
+ fixed_source_digest: string;
1527
+ proof_refs: {
1528
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1529
+ evidence_directory: string;
1530
+ expectations_sha256: string;
1531
+ }[];
1532
+ causality: string;
1533
+ scope: string;
1534
+ }>>;
1535
+ gaps: z.ZodArray<z.ZodString, "many">;
1536
+ error_phase: z.ZodOptional<z.ZodString>;
1537
+ owner_acceptance: z.ZodLiteral<"not_recorded">;
1538
+ owner_next_steps: z.ZodArray<z.ZodString, "many">;
1539
+ limitations: z.ZodArray<z.ZodString, "many">;
1540
+ }, "strict", z.ZodTypeAny, {
1541
+ schema_version: "clinkx-verified-repair-record-v1";
1542
+ execution_status: "failed" | "cancelled" | "completed" | "interrupted";
1543
+ run_id: string;
1544
+ gaps: string[];
1545
+ frozen_digest: string;
1546
+ routes: {
1547
+ investigator: {
1548
+ cli_name: string;
1549
+ model?: string | undefined;
1550
+ effort?: string | undefined;
1551
+ };
1552
+ repair_author: {
1553
+ cli_name: string;
1554
+ model?: string | undefined;
1555
+ effort?: string | undefined;
1556
+ };
1557
+ verifier: {
1558
+ cli_name: string;
1559
+ model?: string | undefined;
1560
+ effort?: string | undefined;
1561
+ };
1562
+ };
1563
+ owner_acceptance: "not_recorded";
1564
+ owner_next_steps: string[];
1565
+ limitations: string[];
1566
+ project_path: string;
1567
+ source_facts: {
1568
+ path: string;
1569
+ sha256: string;
1570
+ size_bytes: number;
1571
+ }[];
1572
+ proofs: {
1573
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1574
+ project_path: string;
1575
+ evidence_directory: string;
1576
+ expectations_sha256: string;
1577
+ source_digest: string;
1578
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1579
+ applicable: boolean;
1580
+ outcome?: {
1581
+ schema_version: "clinkx-regression-outcome-v1";
1582
+ case_id: string;
1583
+ assertion_id: string;
1584
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1585
+ } | undefined;
1586
+ }[];
1587
+ repair_status: "failed" | "incomplete" | "verified" | "blocked";
1588
+ current_source_facts: {
1589
+ path: string;
1590
+ sha256: string;
1591
+ size_bytes: number;
1592
+ }[];
1593
+ applied_paths: {
1594
+ status: "unknown" | "applied" | "original" | "replacement";
1595
+ path: string;
1596
+ phase: "regression" | "implementation";
1597
+ original_sha256: string;
1598
+ replacement_sha256: string;
1599
+ }[];
1600
+ fixed_source_digest?: string | undefined;
1601
+ review?: {
1602
+ schema_version: "clinkx-verified-repair-review-v1";
1603
+ verdict: "approve" | "request_changes";
1604
+ findings: {
1605
+ message: string;
1606
+ severity: "material" | "nonblocking";
1607
+ citations: {
1608
+ path: string;
1609
+ sha256: string;
1610
+ start_line: number;
1611
+ end_line: number;
1612
+ }[];
1613
+ }[];
1614
+ frozen_digest: string;
1615
+ citations: {
1616
+ path: string;
1617
+ sha256: string;
1618
+ start_line: number;
1619
+ end_line: number;
1620
+ }[];
1621
+ fixed_source_digest: string;
1622
+ proof_refs: {
1623
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1624
+ evidence_directory: string;
1625
+ expectations_sha256: string;
1626
+ }[];
1627
+ causality: string;
1628
+ scope: string;
1629
+ } | undefined;
1630
+ error_phase?: string | undefined;
1631
+ }, {
1632
+ schema_version: "clinkx-verified-repair-record-v1";
1633
+ execution_status: "failed" | "cancelled" | "completed" | "interrupted";
1634
+ run_id: string;
1635
+ gaps: string[];
1636
+ frozen_digest: string;
1637
+ routes: {
1638
+ investigator: {
1639
+ cli_name: string;
1640
+ model?: string | undefined;
1641
+ effort?: string | undefined;
1642
+ };
1643
+ repair_author: {
1644
+ cli_name: string;
1645
+ model?: string | undefined;
1646
+ effort?: string | undefined;
1647
+ };
1648
+ verifier: {
1649
+ cli_name: string;
1650
+ model?: string | undefined;
1651
+ effort?: string | undefined;
1652
+ };
1653
+ };
1654
+ owner_acceptance: "not_recorded";
1655
+ owner_next_steps: string[];
1656
+ limitations: string[];
1657
+ project_path: string;
1658
+ source_facts: {
1659
+ path: string;
1660
+ sha256: string;
1661
+ size_bytes: number;
1662
+ }[];
1663
+ proofs: {
1664
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1665
+ project_path: string;
1666
+ evidence_directory: string;
1667
+ expectations_sha256: string;
1668
+ source_digest: string;
1669
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1670
+ applicable: boolean;
1671
+ outcome?: {
1672
+ schema_version: "clinkx-regression-outcome-v1";
1673
+ case_id: string;
1674
+ assertion_id: string;
1675
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1676
+ } | undefined;
1677
+ }[];
1678
+ repair_status: "failed" | "incomplete" | "verified" | "blocked";
1679
+ current_source_facts: {
1680
+ path: string;
1681
+ sha256: string;
1682
+ size_bytes: number;
1683
+ }[];
1684
+ applied_paths: {
1685
+ status: "unknown" | "applied" | "original" | "replacement";
1686
+ path: string;
1687
+ phase: "regression" | "implementation";
1688
+ original_sha256: string;
1689
+ replacement_sha256: string;
1690
+ }[];
1691
+ fixed_source_digest?: string | undefined;
1692
+ review?: {
1693
+ schema_version: "clinkx-verified-repair-review-v1";
1694
+ verdict: "approve" | "request_changes";
1695
+ findings: {
1696
+ message: string;
1697
+ severity: "material" | "nonblocking";
1698
+ citations: {
1699
+ path: string;
1700
+ sha256: string;
1701
+ start_line: number;
1702
+ end_line: number;
1703
+ }[];
1704
+ }[];
1705
+ frozen_digest: string;
1706
+ citations: {
1707
+ path: string;
1708
+ sha256: string;
1709
+ start_line: number;
1710
+ end_line: number;
1711
+ }[];
1712
+ fixed_source_digest: string;
1713
+ proof_refs: {
1714
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1715
+ evidence_directory: string;
1716
+ expectations_sha256: string;
1717
+ }[];
1718
+ causality: string;
1719
+ scope: string;
1720
+ } | undefined;
1721
+ error_phase?: string | undefined;
1722
+ }>, {
1723
+ schema_version: "clinkx-verified-repair-record-v1";
1724
+ execution_status: "failed" | "cancelled" | "completed" | "interrupted";
1725
+ run_id: string;
1726
+ gaps: string[];
1727
+ frozen_digest: string;
1728
+ routes: {
1729
+ investigator: {
1730
+ cli_name: string;
1731
+ model?: string | undefined;
1732
+ effort?: string | undefined;
1733
+ };
1734
+ repair_author: {
1735
+ cli_name: string;
1736
+ model?: string | undefined;
1737
+ effort?: string | undefined;
1738
+ };
1739
+ verifier: {
1740
+ cli_name: string;
1741
+ model?: string | undefined;
1742
+ effort?: string | undefined;
1743
+ };
1744
+ };
1745
+ owner_acceptance: "not_recorded";
1746
+ owner_next_steps: string[];
1747
+ limitations: string[];
1748
+ project_path: string;
1749
+ source_facts: {
1750
+ path: string;
1751
+ sha256: string;
1752
+ size_bytes: number;
1753
+ }[];
1754
+ proofs: {
1755
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1756
+ project_path: string;
1757
+ evidence_directory: string;
1758
+ expectations_sha256: string;
1759
+ source_digest: string;
1760
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1761
+ applicable: boolean;
1762
+ outcome?: {
1763
+ schema_version: "clinkx-regression-outcome-v1";
1764
+ case_id: string;
1765
+ assertion_id: string;
1766
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1767
+ } | undefined;
1768
+ }[];
1769
+ repair_status: "failed" | "incomplete" | "verified" | "blocked";
1770
+ current_source_facts: {
1771
+ path: string;
1772
+ sha256: string;
1773
+ size_bytes: number;
1774
+ }[];
1775
+ applied_paths: {
1776
+ status: "unknown" | "applied" | "original" | "replacement";
1777
+ path: string;
1778
+ phase: "regression" | "implementation";
1779
+ original_sha256: string;
1780
+ replacement_sha256: string;
1781
+ }[];
1782
+ fixed_source_digest?: string | undefined;
1783
+ review?: {
1784
+ schema_version: "clinkx-verified-repair-review-v1";
1785
+ verdict: "approve" | "request_changes";
1786
+ findings: {
1787
+ message: string;
1788
+ severity: "material" | "nonblocking";
1789
+ citations: {
1790
+ path: string;
1791
+ sha256: string;
1792
+ start_line: number;
1793
+ end_line: number;
1794
+ }[];
1795
+ }[];
1796
+ frozen_digest: string;
1797
+ citations: {
1798
+ path: string;
1799
+ sha256: string;
1800
+ start_line: number;
1801
+ end_line: number;
1802
+ }[];
1803
+ fixed_source_digest: string;
1804
+ proof_refs: {
1805
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1806
+ evidence_directory: string;
1807
+ expectations_sha256: string;
1808
+ }[];
1809
+ causality: string;
1810
+ scope: string;
1811
+ } | undefined;
1812
+ error_phase?: string | undefined;
1813
+ }, {
1814
+ schema_version: "clinkx-verified-repair-record-v1";
1815
+ execution_status: "failed" | "cancelled" | "completed" | "interrupted";
1816
+ run_id: string;
1817
+ gaps: string[];
1818
+ frozen_digest: string;
1819
+ routes: {
1820
+ investigator: {
1821
+ cli_name: string;
1822
+ model?: string | undefined;
1823
+ effort?: string | undefined;
1824
+ };
1825
+ repair_author: {
1826
+ cli_name: string;
1827
+ model?: string | undefined;
1828
+ effort?: string | undefined;
1829
+ };
1830
+ verifier: {
1831
+ cli_name: string;
1832
+ model?: string | undefined;
1833
+ effort?: string | undefined;
1834
+ };
1835
+ };
1836
+ owner_acceptance: "not_recorded";
1837
+ owner_next_steps: string[];
1838
+ limitations: string[];
1839
+ project_path: string;
1840
+ source_facts: {
1841
+ path: string;
1842
+ sha256: string;
1843
+ size_bytes: number;
1844
+ }[];
1845
+ proofs: {
1846
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1847
+ project_path: string;
1848
+ evidence_directory: string;
1849
+ expectations_sha256: string;
1850
+ source_digest: string;
1851
+ coverage_status: "failed" | "complete" | "incomplete" | "inapplicable";
1852
+ applicable: boolean;
1853
+ outcome?: {
1854
+ schema_version: "clinkx-regression-outcome-v1";
1855
+ case_id: string;
1856
+ assertion_id: string;
1857
+ outcome: "assertion_failed" | "assertion_passed" | "harness_error";
1858
+ } | undefined;
1859
+ }[];
1860
+ repair_status: "failed" | "incomplete" | "verified" | "blocked";
1861
+ current_source_facts: {
1862
+ path: string;
1863
+ sha256: string;
1864
+ size_bytes: number;
1865
+ }[];
1866
+ applied_paths: {
1867
+ status: "unknown" | "applied" | "original" | "replacement";
1868
+ path: string;
1869
+ phase: "regression" | "implementation";
1870
+ original_sha256: string;
1871
+ replacement_sha256: string;
1872
+ }[];
1873
+ fixed_source_digest?: string | undefined;
1874
+ review?: {
1875
+ schema_version: "clinkx-verified-repair-review-v1";
1876
+ verdict: "approve" | "request_changes";
1877
+ findings: {
1878
+ message: string;
1879
+ severity: "material" | "nonblocking";
1880
+ citations: {
1881
+ path: string;
1882
+ sha256: string;
1883
+ start_line: number;
1884
+ end_line: number;
1885
+ }[];
1886
+ }[];
1887
+ frozen_digest: string;
1888
+ citations: {
1889
+ path: string;
1890
+ sha256: string;
1891
+ start_line: number;
1892
+ end_line: number;
1893
+ }[];
1894
+ fixed_source_digest: string;
1895
+ proof_refs: {
1896
+ phase: "copy_preparation" | "capture" | "reproduce" | "fixed_regression" | "fixed_required" | "copy_fixed" | "copy_without_fix" | "copy_restored" | "final_required";
1897
+ evidence_directory: string;
1898
+ expectations_sha256: string;
1899
+ }[];
1900
+ causality: string;
1901
+ scope: string;
1902
+ } | undefined;
1903
+ error_phase?: string | undefined;
1904
+ }>;
1905
+ export type RepairRecord = z.infer<typeof RepairRecordSchema>;
1906
+ export declare function assertRepairBounded(value: unknown, maximum: number): void;
1907
+ export declare function repairSourceDigest(facts: readonly RepairSourceFact[]): string;
1908
+ export declare function assertRepairCitations(citations: readonly RepairCitation[], facts: readonly RepairSourceFact[], sourceText?: ReadonlyMap<string, string>): void;
1909
+ export declare function assertIndependentRepairReview(review: RepairReview, frozenDigest: string, fixedFacts: readonly RepairSourceFact[], proofRefs: readonly RepairProofRef[], sourceText?: ReadonlyMap<string, string>): void;
1910
+ export declare function parseRegressionOutcome(text: string, expected: z.infer<typeof RegressionObservationSchema>): RegressionOutcome;