clinkx 0.2.0 → 0.2.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 (149) hide show
  1. package/clinkx-workflows/dist/artifacts.d.ts +65 -0
  2. package/clinkx-workflows/dist/artifacts.js +268 -0
  3. package/clinkx-workflows/dist/artifacts.js.map +1 -0
  4. package/clinkx-workflows/dist/backend.d.ts +33 -0
  5. package/clinkx-workflows/dist/backend.js +9 -0
  6. package/clinkx-workflows/dist/backend.js.map +1 -0
  7. package/clinkx-workflows/dist/child-env.d.ts +23 -0
  8. package/clinkx-workflows/dist/child-env.js +53 -0
  9. package/clinkx-workflows/dist/child-env.js.map +1 -0
  10. package/clinkx-workflows/dist/clink-client.d.ts +51 -0
  11. package/clinkx-workflows/dist/clink-client.js +216 -0
  12. package/clinkx-workflows/dist/clink-client.js.map +1 -0
  13. package/clinkx-workflows/dist/config.d.ts +126 -0
  14. package/clinkx-workflows/dist/config.js +226 -0
  15. package/clinkx-workflows/dist/config.js.map +1 -0
  16. package/clinkx-workflows/dist/definition-normalizer.d.ts +59 -0
  17. package/clinkx-workflows/dist/definition-normalizer.js +75 -0
  18. package/clinkx-workflows/dist/definition-normalizer.js.map +1 -0
  19. package/clinkx-workflows/dist/engine.d.ts +235 -0
  20. package/clinkx-workflows/dist/engine.js +1044 -0
  21. package/clinkx-workflows/dist/engine.js.map +1 -0
  22. package/clinkx-workflows/dist/errors.d.ts +74 -0
  23. package/clinkx-workflows/dist/errors.js +84 -0
  24. package/clinkx-workflows/dist/errors.js.map +1 -0
  25. package/clinkx-workflows/dist/fidelity.d.ts +112 -0
  26. package/clinkx-workflows/dist/fidelity.js +140 -0
  27. package/clinkx-workflows/dist/fidelity.js.map +1 -0
  28. package/clinkx-workflows/dist/fingerprint.d.ts +69 -0
  29. package/clinkx-workflows/dist/fingerprint.js +143 -0
  30. package/clinkx-workflows/dist/fingerprint.js.map +1 -0
  31. package/clinkx-workflows/dist/index.d.ts +16 -0
  32. package/clinkx-workflows/dist/index.js +42 -0
  33. package/clinkx-workflows/dist/index.js.map +1 -0
  34. package/clinkx-workflows/dist/loader.d.ts +64 -0
  35. package/clinkx-workflows/dist/loader.js +371 -0
  36. package/clinkx-workflows/dist/loader.js.map +1 -0
  37. package/clinkx-workflows/dist/logger.d.ts +16 -0
  38. package/clinkx-workflows/dist/logger.js +31 -0
  39. package/clinkx-workflows/dist/logger.js.map +1 -0
  40. package/clinkx-workflows/dist/path-validation.d.ts +23 -0
  41. package/clinkx-workflows/dist/path-validation.js +73 -0
  42. package/clinkx-workflows/dist/path-validation.js.map +1 -0
  43. package/clinkx-workflows/dist/prompt-budget.d.ts +31 -0
  44. package/clinkx-workflows/dist/prompt-budget.js +78 -0
  45. package/clinkx-workflows/dist/prompt-budget.js.map +1 -0
  46. package/clinkx-workflows/dist/queue.d.ts +16 -0
  47. package/clinkx-workflows/dist/queue.js +46 -0
  48. package/clinkx-workflows/dist/queue.js.map +1 -0
  49. package/clinkx-workflows/dist/ranking-reducer.d.ts +11 -0
  50. package/clinkx-workflows/dist/ranking-reducer.js +245 -0
  51. package/clinkx-workflows/dist/ranking-reducer.js.map +1 -0
  52. package/clinkx-workflows/dist/reducers/index.d.ts +8 -0
  53. package/clinkx-workflows/dist/reducers/index.js +12 -0
  54. package/clinkx-workflows/dist/reducers/index.js.map +1 -0
  55. package/clinkx-workflows/dist/run-id.d.ts +17 -0
  56. package/clinkx-workflows/dist/run-id.js +26 -0
  57. package/clinkx-workflows/dist/run-id.js.map +1 -0
  58. package/clinkx-workflows/dist/run-summary/cards/council-answer.d.ts +8 -0
  59. package/clinkx-workflows/dist/run-summary/cards/council-answer.js +75 -0
  60. package/clinkx-workflows/dist/run-summary/cards/council-answer.js.map +1 -0
  61. package/clinkx-workflows/dist/run-summary/cards/council-code-review.d.ts +13 -0
  62. package/clinkx-workflows/dist/run-summary/cards/council-code-review.js +90 -0
  63. package/clinkx-workflows/dist/run-summary/cards/council-code-review.js.map +1 -0
  64. package/clinkx-workflows/dist/run-summary/cards/council-debug.d.ts +9 -0
  65. package/clinkx-workflows/dist/run-summary/cards/council-debug.js +79 -0
  66. package/clinkx-workflows/dist/run-summary/cards/council-debug.js.map +1 -0
  67. package/clinkx-workflows/dist/run-summary/cards/council-default.d.ts +11 -0
  68. package/clinkx-workflows/dist/run-summary/cards/council-default.js +57 -0
  69. package/clinkx-workflows/dist/run-summary/cards/council-default.js.map +1 -0
  70. package/clinkx-workflows/dist/run-summary/cards/council-discover.d.ts +10 -0
  71. package/clinkx-workflows/dist/run-summary/cards/council-discover.js +79 -0
  72. package/clinkx-workflows/dist/run-summary/cards/council-discover.js.map +1 -0
  73. package/clinkx-workflows/dist/run-summary/cards/generic.d.ts +2 -0
  74. package/clinkx-workflows/dist/run-summary/cards/generic.js +4 -0
  75. package/clinkx-workflows/dist/run-summary/cards/generic.js.map +1 -0
  76. package/clinkx-workflows/dist/run-summary/cards/index.d.ts +6 -0
  77. package/clinkx-workflows/dist/run-summary/cards/index.js +17 -0
  78. package/clinkx-workflows/dist/run-summary/cards/index.js.map +1 -0
  79. package/clinkx-workflows/dist/run-summary/utils.d.ts +6 -0
  80. package/clinkx-workflows/dist/run-summary/utils.js +30 -0
  81. package/clinkx-workflows/dist/run-summary/utils.js.map +1 -0
  82. package/clinkx-workflows/dist/run-summary-derived.d.ts +19 -0
  83. package/clinkx-workflows/dist/run-summary-derived.js +100 -0
  84. package/clinkx-workflows/dist/run-summary-derived.js.map +1 -0
  85. package/clinkx-workflows/dist/run-summary.d.ts +70 -0
  86. package/clinkx-workflows/dist/run-summary.js +125 -0
  87. package/clinkx-workflows/dist/run-summary.js.map +1 -0
  88. package/clinkx-workflows/dist/schema.d.ts +609 -0
  89. package/clinkx-workflows/dist/schema.js +123 -0
  90. package/clinkx-workflows/dist/schema.js.map +1 -0
  91. package/clinkx-workflows/dist/server.d.ts +16 -0
  92. package/clinkx-workflows/dist/server.js +33 -0
  93. package/clinkx-workflows/dist/server.js.map +1 -0
  94. package/clinkx-workflows/dist/shutdown.d.ts +54 -0
  95. package/clinkx-workflows/dist/shutdown.js +120 -0
  96. package/clinkx-workflows/dist/shutdown.js.map +1 -0
  97. package/clinkx-workflows/dist/state-schema.d.ts +141 -0
  98. package/clinkx-workflows/dist/state-schema.js +21 -0
  99. package/clinkx-workflows/dist/state-schema.js.map +1 -0
  100. package/clinkx-workflows/dist/state.d.ts +37 -0
  101. package/clinkx-workflows/dist/state.js +838 -0
  102. package/clinkx-workflows/dist/state.js.map +1 -0
  103. package/clinkx-workflows/dist/template-loader.d.ts +30 -0
  104. package/clinkx-workflows/dist/template-loader.js +77 -0
  105. package/clinkx-workflows/dist/template-loader.js.map +1 -0
  106. package/clinkx-workflows/dist/template.d.ts +54 -0
  107. package/clinkx-workflows/dist/template.js +128 -0
  108. package/clinkx-workflows/dist/template.js.map +1 -0
  109. package/clinkx-workflows/dist/transport.d.ts +91 -0
  110. package/clinkx-workflows/dist/transport.js +249 -0
  111. package/clinkx-workflows/dist/transport.js.map +1 -0
  112. package/clinkx-workflows/dist/types.d.ts +137 -0
  113. package/clinkx-workflows/dist/types.js +11 -0
  114. package/clinkx-workflows/dist/types.js.map +1 -0
  115. package/clinkx-workflows/dist/validators/council.d.ts +1488 -0
  116. package/clinkx-workflows/dist/validators/council.js +509 -0
  117. package/clinkx-workflows/dist/validators/council.js.map +1 -0
  118. package/clinkx-workflows/dist/validators/index.d.ts +40 -0
  119. package/clinkx-workflows/dist/validators/index.js +43 -0
  120. package/clinkx-workflows/dist/validators/index.js.map +1 -0
  121. package/clinkx-workflows/dist/workflow-receipt.d.ts +4 -0
  122. package/clinkx-workflows/dist/workflow-receipt.js +177 -0
  123. package/clinkx-workflows/dist/workflow-receipt.js.map +1 -0
  124. package/clinkx-workflows/dist/workflow-tools.d.ts +77 -0
  125. package/clinkx-workflows/dist/workflow-tools.js +1131 -0
  126. package/clinkx-workflows/dist/workflow-tools.js.map +1 -0
  127. package/clinkx-workflows/dist/workflows/council-default.d.ts +123 -0
  128. package/clinkx-workflows/dist/workflows/council-default.js +141 -0
  129. package/clinkx-workflows/dist/workflows/council-default.js.map +1 -0
  130. package/clinkx-workflows/dist/workflows/index.d.ts +12 -0
  131. package/clinkx-workflows/dist/workflows/index.js +15 -0
  132. package/clinkx-workflows/dist/workflows/index.js.map +1 -0
  133. package/conf/adapters/codex.json +2 -2
  134. package/conf/adapters/hapi/codex.json +2 -2
  135. package/dist/config.d.ts +5 -0
  136. package/dist/config.js +17 -0
  137. package/dist/config.js.map +1 -1
  138. package/dist/parsers/extract.d.ts +2 -0
  139. package/dist/parsers/extract.js +29 -20
  140. package/dist/parsers/extract.js.map +1 -1
  141. package/dist/pipeline.d.ts +2 -4
  142. package/dist/pipeline.js +93 -8
  143. package/dist/pipeline.js.map +1 -1
  144. package/dist/result-contract.d.ts +6 -1
  145. package/dist/result-contract.js +10 -22
  146. package/dist/result-contract.js.map +1 -1
  147. package/dist/runner.js +43 -1
  148. package/dist/runner.js.map +1 -1
  149. package/package.json +12 -5
@@ -0,0 +1,1488 @@
1
+ /**
2
+ * Council workflow validator schemas.
3
+ *
4
+ * Defines zod schemas for council member and reviewer outputs.
5
+ * These schemas are registered with the ValidatorRegistry and referenced
6
+ * by validator_schema_id in the council-default workflow definition.
7
+ */
8
+ /**
9
+ * Identity field convention:
10
+ * - Stage-1 schemas (member, analyst, debugger, specialist) use domain-specific
11
+ * producer IDs (member_id, analyst_id, etc.) matching real call IDs.
12
+ * - Cross-review schemas (reviewer, cross-reviewer) use `candidate_id` with
13
+ * anonymized alias letters (A, B, C) matching the buildAnonymizedContext() output.
14
+ * - Chairman schemas receive non-anonymized stage-1 artifacts with real call IDs.
15
+ */
16
+ import { z } from "zod";
17
+ import type { ValidatorRegistry } from "./index.js";
18
+ /**
19
+ * Accept LLM-produced floats for integer score fields; coerce via Math.round.
20
+ * Rounds first, then validates the rounded value is an integer within [min, max].
21
+ * This means 10.4 on a 0-10 scale → rounds to 10 → accepted,
22
+ * but 10.5 → rounds to 11 → rejected (post-transform range violation).
23
+ */
24
+ export declare const coerceIntScore: (min: number, max: number) => z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
25
+ declare const RubricScoreEntrySchema: z.ZodObject<{
26
+ criterion: z.ZodString;
27
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
28
+ reason: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ criterion: string;
31
+ score: number;
32
+ reason: string;
33
+ }, {
34
+ criterion: string;
35
+ score: number;
36
+ reason: string;
37
+ }>;
38
+ export { RubricScoreEntrySchema };
39
+ /**
40
+ * A council member produces a structured recommendation for a user request.
41
+ * Fields:
42
+ * - recommendation: the main recommended approach (string)
43
+ * - reasoning: why this approach (string)
44
+ * - trade_offs: pros/cons array
45
+ * - confidence: 0-100 integer
46
+ */
47
+ export declare const CouncilMemberOutputSchema: z.ZodObject<{
48
+ member_id: z.ZodString;
49
+ recommendation: z.ZodString;
50
+ reasoning: z.ZodString;
51
+ deliverable: z.ZodString;
52
+ evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
53
+ ref: z.ZodString;
54
+ note: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ ref: string;
57
+ note: string;
58
+ }, {
59
+ ref: string;
60
+ note: string;
61
+ }>, "many">>;
62
+ trade_offs: z.ZodArray<z.ZodObject<{
63
+ pro: z.ZodString;
64
+ con: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ pro: string;
67
+ con: string;
68
+ }, {
69
+ pro: string;
70
+ con: string;
71
+ }>, "many">;
72
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
+ criterion: z.ZodString;
74
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
75
+ reason: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ criterion: string;
78
+ score: number;
79
+ reason: string;
80
+ }, {
81
+ criterion: string;
82
+ score: number;
83
+ reason: string;
84
+ }>, "many">>;
85
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
86
+ open_risks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
87
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ member_id: string;
90
+ recommendation: string;
91
+ reasoning: string;
92
+ deliverable: string;
93
+ evidence: {
94
+ ref: string;
95
+ note: string;
96
+ }[];
97
+ trade_offs: {
98
+ pro: string;
99
+ con: string;
100
+ }[];
101
+ rubric_scores: {
102
+ criterion: string;
103
+ score: number;
104
+ reason: string;
105
+ }[];
106
+ overall_score_100: number;
107
+ open_risks: string[];
108
+ confidence: number;
109
+ }, {
110
+ member_id: string;
111
+ recommendation: string;
112
+ reasoning: string;
113
+ deliverable: string;
114
+ trade_offs: {
115
+ pro: string;
116
+ con: string;
117
+ }[];
118
+ overall_score_100: number;
119
+ confidence: number;
120
+ evidence?: {
121
+ ref: string;
122
+ note: string;
123
+ }[] | undefined;
124
+ rubric_scores?: {
125
+ criterion: string;
126
+ score: number;
127
+ reason: string;
128
+ }[] | undefined;
129
+ open_risks?: string[] | undefined;
130
+ }>;
131
+ export type CouncilMemberOutput = z.infer<typeof CouncilMemberOutputSchema>;
132
+ /**
133
+ * A council reviewer evaluates member recommendations and provides a synthesis.
134
+ * Fields:
135
+ * - assessment: overall review summary (string)
136
+ * - member_evaluations: per-member evaluation array
137
+ * - recommended_approach: which member's approach (or synthesis) to prefer
138
+ * - gaps: identified gaps or risks in the proposals
139
+ */
140
+ export declare const CouncilReviewerOutputSchema: z.ZodObject<{
141
+ independent_baseline: z.ZodString;
142
+ assessment: z.ZodString;
143
+ member_evaluations: z.ZodArray<z.ZodObject<{
144
+ candidate_id: z.ZodString;
145
+ strengths: z.ZodArray<z.ZodString, "many">;
146
+ weaknesses: z.ZodArray<z.ZodString, "many">;
147
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
148
+ criterion: z.ZodString;
149
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
150
+ reason: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ criterion: string;
153
+ score: number;
154
+ reason: string;
155
+ }, {
156
+ criterion: string;
157
+ score: number;
158
+ reason: string;
159
+ }>, "many">>;
160
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
161
+ mergeable_insights: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ candidate_id: string;
164
+ rubric_scores: {
165
+ criterion: string;
166
+ score: number;
167
+ reason: string;
168
+ }[];
169
+ overall_score_100: number;
170
+ strengths: string[];
171
+ weaknesses: string[];
172
+ mergeable_insights: string[];
173
+ }, {
174
+ candidate_id: string;
175
+ overall_score_100: number;
176
+ strengths: string[];
177
+ weaknesses: string[];
178
+ rubric_scores?: {
179
+ criterion: string;
180
+ score: number;
181
+ reason: string;
182
+ }[] | undefined;
183
+ mergeable_insights?: string[] | undefined;
184
+ }>, "many">;
185
+ recommended_approach: z.ZodString;
186
+ gaps: z.ZodArray<z.ZodString, "many">;
187
+ ranking: z.ZodEffects<z.ZodArray<z.ZodObject<{
188
+ candidate_id: z.ZodString;
189
+ rank: z.ZodNumber;
190
+ rationale: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ candidate_id: string;
193
+ rank: number;
194
+ rationale: string;
195
+ }, {
196
+ candidate_id: string;
197
+ rank: number;
198
+ rationale: string;
199
+ }>, "many">, {
200
+ candidate_id: string;
201
+ rank: number;
202
+ rationale: string;
203
+ }[], {
204
+ candidate_id: string;
205
+ rank: number;
206
+ rationale: string;
207
+ }[]>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ independent_baseline: string;
210
+ assessment: string;
211
+ member_evaluations: {
212
+ candidate_id: string;
213
+ rubric_scores: {
214
+ criterion: string;
215
+ score: number;
216
+ reason: string;
217
+ }[];
218
+ overall_score_100: number;
219
+ strengths: string[];
220
+ weaknesses: string[];
221
+ mergeable_insights: string[];
222
+ }[];
223
+ recommended_approach: string;
224
+ gaps: string[];
225
+ ranking: {
226
+ candidate_id: string;
227
+ rank: number;
228
+ rationale: string;
229
+ }[];
230
+ }, {
231
+ independent_baseline: string;
232
+ assessment: string;
233
+ member_evaluations: {
234
+ candidate_id: string;
235
+ overall_score_100: number;
236
+ strengths: string[];
237
+ weaknesses: string[];
238
+ rubric_scores?: {
239
+ criterion: string;
240
+ score: number;
241
+ reason: string;
242
+ }[] | undefined;
243
+ mergeable_insights?: string[] | undefined;
244
+ }[];
245
+ recommended_approach: string;
246
+ gaps: string[];
247
+ ranking: {
248
+ candidate_id: string;
249
+ rank: number;
250
+ rationale: string;
251
+ }[];
252
+ }>;
253
+ export type CouncilReviewerOutput = z.infer<typeof CouncilReviewerOutputSchema>;
254
+ /**
255
+ * The chairman returns the final structured council decision.
256
+ * Fields:
257
+ * - decision: final answer for the user request
258
+ * - rationale: why this decision was selected
259
+ * - selected_approach: which member/reviewer synthesis was chosen
260
+ * - considered_artifacts: counts of upstream artifacts considered
261
+ * - action_items: concrete next steps
262
+ */
263
+ export declare const CouncilChairmanOutputSchema: z.ZodObject<{
264
+ decision: z.ZodString;
265
+ final_answer: z.ZodDefault<z.ZodString>;
266
+ rationale: z.ZodString;
267
+ selected_approach: z.ZodString;
268
+ considered_artifacts: z.ZodObject<{
269
+ members: z.ZodNumber;
270
+ reviewers: z.ZodNumber;
271
+ }, "strip", z.ZodTypeAny, {
272
+ members: number;
273
+ reviewers: number;
274
+ }, {
275
+ members: number;
276
+ reviewers: number;
277
+ }>;
278
+ action_items: z.ZodArray<z.ZodString, "many">;
279
+ council_summary: z.ZodObject<{
280
+ agreements: z.ZodArray<z.ZodString, "many">;
281
+ disagreements: z.ZodArray<z.ZodString, "many">;
282
+ minority_views: z.ZodArray<z.ZodString, "many">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ agreements: string[];
285
+ disagreements: string[];
286
+ minority_views: string[];
287
+ }, {
288
+ agreements: string[];
289
+ disagreements: string[];
290
+ minority_views: string[];
291
+ }>;
292
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
293
+ final_score_100: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
294
+ final_score_10: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ rationale: string;
297
+ confidence: number;
298
+ decision: string;
299
+ final_answer: string;
300
+ selected_approach: string;
301
+ considered_artifacts: {
302
+ members: number;
303
+ reviewers: number;
304
+ };
305
+ action_items: string[];
306
+ council_summary: {
307
+ agreements: string[];
308
+ disagreements: string[];
309
+ minority_views: string[];
310
+ };
311
+ final_score_100: number;
312
+ final_score_10: number;
313
+ }, {
314
+ rationale: string;
315
+ confidence: number;
316
+ decision: string;
317
+ selected_approach: string;
318
+ considered_artifacts: {
319
+ members: number;
320
+ reviewers: number;
321
+ };
322
+ action_items: string[];
323
+ council_summary: {
324
+ agreements: string[];
325
+ disagreements: string[];
326
+ minority_views: string[];
327
+ };
328
+ final_answer?: string | undefined;
329
+ final_score_100?: number | undefined;
330
+ final_score_10?: number | undefined;
331
+ }>;
332
+ export type CouncilChairmanOutput = z.infer<typeof CouncilChairmanOutputSchema>;
333
+ /**
334
+ * A code review reviewer produces structured review output.
335
+ */
336
+ export declare const CouncilCodeReviewReviewerOutputSchema: z.ZodObject<{
337
+ summary: z.ZodString;
338
+ blocking_issues: z.ZodArray<z.ZodObject<{
339
+ file: z.ZodString;
340
+ line: z.ZodOptional<z.ZodNumber>;
341
+ severity: z.ZodEnum<["critical", "high", "medium"]>;
342
+ description: z.ZodString;
343
+ suggestion: z.ZodOptional<z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ description: string;
346
+ file: string;
347
+ severity: "critical" | "high" | "medium";
348
+ line?: number | undefined;
349
+ suggestion?: string | undefined;
350
+ }, {
351
+ description: string;
352
+ file: string;
353
+ severity: "critical" | "high" | "medium";
354
+ line?: number | undefined;
355
+ suggestion?: string | undefined;
356
+ }>, "many">;
357
+ non_blocking_suggestions: z.ZodArray<z.ZodObject<{
358
+ file: z.ZodString;
359
+ line: z.ZodOptional<z.ZodNumber>;
360
+ category: z.ZodString;
361
+ description: z.ZodString;
362
+ }, "strip", z.ZodTypeAny, {
363
+ description: string;
364
+ file: string;
365
+ category: string;
366
+ line?: number | undefined;
367
+ }, {
368
+ description: string;
369
+ file: string;
370
+ category: string;
371
+ line?: number | undefined;
372
+ }>, "many">;
373
+ rubric_scores: z.ZodObject<{
374
+ correctness: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
375
+ security: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
376
+ performance: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
377
+ readability: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
378
+ test_coverage: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
379
+ api_stability: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ correctness: number;
382
+ security: number;
383
+ performance: number;
384
+ readability: number;
385
+ test_coverage: number;
386
+ api_stability: number;
387
+ }, {
388
+ correctness: number;
389
+ security: number;
390
+ performance: number;
391
+ readability: number;
392
+ test_coverage: number;
393
+ api_stability: number;
394
+ }>;
395
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
396
+ tests_to_add_or_update: z.ZodArray<z.ZodString, "many">;
397
+ }, "strip", z.ZodTypeAny, {
398
+ rubric_scores: {
399
+ correctness: number;
400
+ security: number;
401
+ performance: number;
402
+ readability: number;
403
+ test_coverage: number;
404
+ api_stability: number;
405
+ };
406
+ overall_score_100: number;
407
+ summary: string;
408
+ blocking_issues: {
409
+ description: string;
410
+ file: string;
411
+ severity: "critical" | "high" | "medium";
412
+ line?: number | undefined;
413
+ suggestion?: string | undefined;
414
+ }[];
415
+ non_blocking_suggestions: {
416
+ description: string;
417
+ file: string;
418
+ category: string;
419
+ line?: number | undefined;
420
+ }[];
421
+ tests_to_add_or_update: string[];
422
+ }, {
423
+ rubric_scores: {
424
+ correctness: number;
425
+ security: number;
426
+ performance: number;
427
+ readability: number;
428
+ test_coverage: number;
429
+ api_stability: number;
430
+ };
431
+ overall_score_100: number;
432
+ summary: string;
433
+ blocking_issues: {
434
+ description: string;
435
+ file: string;
436
+ severity: "critical" | "high" | "medium";
437
+ line?: number | undefined;
438
+ suggestion?: string | undefined;
439
+ }[];
440
+ non_blocking_suggestions: {
441
+ description: string;
442
+ file: string;
443
+ category: string;
444
+ line?: number | undefined;
445
+ }[];
446
+ tests_to_add_or_update: string[];
447
+ }>;
448
+ export type CouncilCodeReviewReviewerOutput = z.infer<typeof CouncilCodeReviewReviewerOutputSchema>;
449
+ /**
450
+ * A code review cross-reviewer evaluates other reviewers' assessments.
451
+ */
452
+ export declare const CouncilCodeReviewCrossReviewerOutputSchema: z.ZodObject<{
453
+ independent_baseline: z.ZodString;
454
+ per_review_feedback: z.ZodArray<z.ZodObject<{
455
+ candidate_id: z.ZodString;
456
+ agreement_level: z.ZodEnum<["agree", "partial", "disagree"]>;
457
+ missed_issues: z.ZodArray<z.ZodString, "many">;
458
+ false_positives: z.ZodArray<z.ZodString, "many">;
459
+ comments: z.ZodString;
460
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ candidate_id: string;
463
+ overall_score_100: number;
464
+ agreement_level: "partial" | "agree" | "disagree";
465
+ missed_issues: string[];
466
+ false_positives: string[];
467
+ comments: string;
468
+ }, {
469
+ candidate_id: string;
470
+ overall_score_100: number;
471
+ agreement_level: "partial" | "agree" | "disagree";
472
+ missed_issues: string[];
473
+ false_positives: string[];
474
+ comments: string;
475
+ }>, "many">;
476
+ extra_blocking_issues: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
477
+ extra_tests: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
478
+ ranking: z.ZodEffects<z.ZodArray<z.ZodObject<{
479
+ candidate_id: z.ZodString;
480
+ rank: z.ZodNumber;
481
+ rationale: z.ZodString;
482
+ }, "strip", z.ZodTypeAny, {
483
+ candidate_id: string;
484
+ rank: number;
485
+ rationale: string;
486
+ }, {
487
+ candidate_id: string;
488
+ rank: number;
489
+ rationale: string;
490
+ }>, "many">, {
491
+ candidate_id: string;
492
+ rank: number;
493
+ rationale: string;
494
+ }[], {
495
+ candidate_id: string;
496
+ rank: number;
497
+ rationale: string;
498
+ }[]>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ independent_baseline: string;
501
+ ranking: {
502
+ candidate_id: string;
503
+ rank: number;
504
+ rationale: string;
505
+ }[];
506
+ per_review_feedback: {
507
+ candidate_id: string;
508
+ overall_score_100: number;
509
+ agreement_level: "partial" | "agree" | "disagree";
510
+ missed_issues: string[];
511
+ false_positives: string[];
512
+ comments: string;
513
+ }[];
514
+ extra_blocking_issues: string[];
515
+ extra_tests: string[];
516
+ }, {
517
+ independent_baseline: string;
518
+ ranking: {
519
+ candidate_id: string;
520
+ rank: number;
521
+ rationale: string;
522
+ }[];
523
+ per_review_feedback: {
524
+ candidate_id: string;
525
+ overall_score_100: number;
526
+ agreement_level: "partial" | "agree" | "disagree";
527
+ missed_issues: string[];
528
+ false_positives: string[];
529
+ comments: string;
530
+ }[];
531
+ extra_blocking_issues?: string[] | undefined;
532
+ extra_tests?: string[] | undefined;
533
+ }>;
534
+ export type CouncilCodeReviewCrossReviewerOutput = z.infer<typeof CouncilCodeReviewCrossReviewerOutputSchema>;
535
+ /**
536
+ * A discover analyst produces structured analysis output.
537
+ */
538
+ export declare const CouncilDiscoverAnalystOutputSchema: z.ZodObject<{
539
+ analyst_id: z.ZodString;
540
+ findings: z.ZodArray<z.ZodObject<{
541
+ topic: z.ZodString;
542
+ detail: z.ZodString;
543
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
544
+ sources: z.ZodArray<z.ZodString, "many">;
545
+ }, "strip", z.ZodTypeAny, {
546
+ confidence: number;
547
+ topic: string;
548
+ detail: string;
549
+ sources: string[];
550
+ }, {
551
+ confidence: number;
552
+ topic: string;
553
+ detail: string;
554
+ sources: string[];
555
+ }>, "many">;
556
+ synthesis: z.ZodString;
557
+ open_questions: z.ZodArray<z.ZodString, "many">;
558
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
559
+ criterion: z.ZodString;
560
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
561
+ reason: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ criterion: string;
564
+ score: number;
565
+ reason: string;
566
+ }, {
567
+ criterion: string;
568
+ score: number;
569
+ reason: string;
570
+ }>, "many">>;
571
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ rubric_scores: {
574
+ criterion: string;
575
+ score: number;
576
+ reason: string;
577
+ }[];
578
+ overall_score_100: number;
579
+ analyst_id: string;
580
+ findings: {
581
+ confidence: number;
582
+ topic: string;
583
+ detail: string;
584
+ sources: string[];
585
+ }[];
586
+ synthesis: string;
587
+ open_questions: string[];
588
+ }, {
589
+ overall_score_100: number;
590
+ analyst_id: string;
591
+ findings: {
592
+ confidence: number;
593
+ topic: string;
594
+ detail: string;
595
+ sources: string[];
596
+ }[];
597
+ synthesis: string;
598
+ open_questions: string[];
599
+ rubric_scores?: {
600
+ criterion: string;
601
+ score: number;
602
+ reason: string;
603
+ }[] | undefined;
604
+ }>;
605
+ export type CouncilDiscoverAnalystOutput = z.infer<typeof CouncilDiscoverAnalystOutputSchema>;
606
+ /**
607
+ * A discover cross-reviewer evaluates analyst findings.
608
+ */
609
+ export declare const CouncilDiscoverCrossReviewerOutputSchema: z.ZodObject<{
610
+ independent_baseline: z.ZodString;
611
+ per_response_scores: z.ZodArray<z.ZodObject<{
612
+ candidate_id: z.ZodString;
613
+ comments: z.ZodString;
614
+ gaps: z.ZodArray<z.ZodString, "many">;
615
+ strengths: z.ZodArray<z.ZodString, "many">;
616
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ candidate_id: string;
619
+ overall_score_100: number;
620
+ strengths: string[];
621
+ gaps: string[];
622
+ comments: string;
623
+ }, {
624
+ candidate_id: string;
625
+ overall_score_100: number;
626
+ strengths: string[];
627
+ gaps: string[];
628
+ comments: string;
629
+ }>, "many">;
630
+ ranking: z.ZodEffects<z.ZodArray<z.ZodObject<{
631
+ candidate_id: z.ZodString;
632
+ rank: z.ZodNumber;
633
+ rationale: z.ZodString;
634
+ }, "strip", z.ZodTypeAny, {
635
+ candidate_id: string;
636
+ rank: number;
637
+ rationale: string;
638
+ }, {
639
+ candidate_id: string;
640
+ rank: number;
641
+ rationale: string;
642
+ }>, "many">, {
643
+ candidate_id: string;
644
+ rank: number;
645
+ rationale: string;
646
+ }[], {
647
+ candidate_id: string;
648
+ rank: number;
649
+ rationale: string;
650
+ }[]>;
651
+ recommended_verdict: z.ZodEnum<["accept_as_is", "accept_with_modifications", "reject"]>;
652
+ consensus_changes: z.ZodArray<z.ZodString, "many">;
653
+ }, "strip", z.ZodTypeAny, {
654
+ independent_baseline: string;
655
+ ranking: {
656
+ candidate_id: string;
657
+ rank: number;
658
+ rationale: string;
659
+ }[];
660
+ per_response_scores: {
661
+ candidate_id: string;
662
+ overall_score_100: number;
663
+ strengths: string[];
664
+ gaps: string[];
665
+ comments: string;
666
+ }[];
667
+ recommended_verdict: "accept_as_is" | "accept_with_modifications" | "reject";
668
+ consensus_changes: string[];
669
+ }, {
670
+ independent_baseline: string;
671
+ ranking: {
672
+ candidate_id: string;
673
+ rank: number;
674
+ rationale: string;
675
+ }[];
676
+ per_response_scores: {
677
+ candidate_id: string;
678
+ overall_score_100: number;
679
+ strengths: string[];
680
+ gaps: string[];
681
+ comments: string;
682
+ }[];
683
+ recommended_verdict: "accept_as_is" | "accept_with_modifications" | "reject";
684
+ consensus_changes: string[];
685
+ }>;
686
+ export type CouncilDiscoverCrossReviewerOutput = z.infer<typeof CouncilDiscoverCrossReviewerOutputSchema>;
687
+ /**
688
+ * A debugger produces structured debugging analysis.
689
+ */
690
+ export declare const CouncilDebugDebuggerOutputSchema: z.ZodObject<{
691
+ debugger_id: z.ZodString;
692
+ problem_summary: z.ZodString;
693
+ hypotheses: z.ZodArray<z.ZodString, "many">;
694
+ diagnostic_steps: z.ZodArray<z.ZodString, "many">;
695
+ evidence: z.ZodArray<z.ZodObject<{
696
+ location: z.ZodString;
697
+ observation: z.ZodString;
698
+ }, "strip", z.ZodTypeAny, {
699
+ location: string;
700
+ observation: string;
701
+ }, {
702
+ location: string;
703
+ observation: string;
704
+ }>, "many">;
705
+ fix_proposal: z.ZodObject<{
706
+ description: z.ZodString;
707
+ files_to_change: z.ZodArray<z.ZodString, "many">;
708
+ risk_level: z.ZodEnum<["low", "medium", "high"]>;
709
+ }, "strip", z.ZodTypeAny, {
710
+ description: string;
711
+ files_to_change: string[];
712
+ risk_level: "high" | "medium" | "low";
713
+ }, {
714
+ description: string;
715
+ files_to_change: string[];
716
+ risk_level: "high" | "medium" | "low";
717
+ }>;
718
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
719
+ criterion: z.ZodString;
720
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
721
+ reason: z.ZodString;
722
+ }, "strip", z.ZodTypeAny, {
723
+ criterion: string;
724
+ score: number;
725
+ reason: string;
726
+ }, {
727
+ criterion: string;
728
+ score: number;
729
+ reason: string;
730
+ }>, "many">>;
731
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
732
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ evidence: {
735
+ location: string;
736
+ observation: string;
737
+ }[];
738
+ rubric_scores: {
739
+ criterion: string;
740
+ score: number;
741
+ reason: string;
742
+ }[];
743
+ overall_score_100: number;
744
+ confidence: number;
745
+ debugger_id: string;
746
+ problem_summary: string;
747
+ hypotheses: string[];
748
+ diagnostic_steps: string[];
749
+ fix_proposal: {
750
+ description: string;
751
+ files_to_change: string[];
752
+ risk_level: "high" | "medium" | "low";
753
+ };
754
+ }, {
755
+ evidence: {
756
+ location: string;
757
+ observation: string;
758
+ }[];
759
+ overall_score_100: number;
760
+ confidence: number;
761
+ debugger_id: string;
762
+ problem_summary: string;
763
+ hypotheses: string[];
764
+ diagnostic_steps: string[];
765
+ fix_proposal: {
766
+ description: string;
767
+ files_to_change: string[];
768
+ risk_level: "high" | "medium" | "low";
769
+ };
770
+ rubric_scores?: {
771
+ criterion: string;
772
+ score: number;
773
+ reason: string;
774
+ }[] | undefined;
775
+ }>;
776
+ export type CouncilDebugDebuggerOutput = z.infer<typeof CouncilDebugDebuggerOutputSchema>;
777
+ /**
778
+ * A debug cross-reviewer evaluates debugger analyses.
779
+ */
780
+ export declare const CouncilDebugCrossReviewerOutputSchema: z.ZodObject<{
781
+ independent_baseline: z.ZodString;
782
+ per_debugger_feedback: z.ZodArray<z.ZodObject<{
783
+ candidate_id: z.ZodString;
784
+ hypothesis_quality: z.ZodEnum<["valid", "partial", "invalid"]>;
785
+ missed_factors: z.ZodArray<z.ZodString, "many">;
786
+ fix_feasibility: z.ZodEnum<["feasible", "risky", "infeasible"]>;
787
+ comments: z.ZodString;
788
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
789
+ strengths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ candidate_id: string;
792
+ overall_score_100: number;
793
+ strengths: string[];
794
+ comments: string;
795
+ hypothesis_quality: "valid" | "partial" | "invalid";
796
+ missed_factors: string[];
797
+ fix_feasibility: "feasible" | "risky" | "infeasible";
798
+ }, {
799
+ candidate_id: string;
800
+ overall_score_100: number;
801
+ comments: string;
802
+ hypothesis_quality: "valid" | "partial" | "invalid";
803
+ missed_factors: string[];
804
+ fix_feasibility: "feasible" | "risky" | "infeasible";
805
+ strengths?: string[] | undefined;
806
+ }>, "many">;
807
+ ranking: z.ZodEffects<z.ZodArray<z.ZodObject<{
808
+ candidate_id: z.ZodString;
809
+ rank: z.ZodNumber;
810
+ rationale: z.ZodString;
811
+ }, "strip", z.ZodTypeAny, {
812
+ candidate_id: string;
813
+ rank: number;
814
+ rationale: string;
815
+ }, {
816
+ candidate_id: string;
817
+ rank: number;
818
+ rationale: string;
819
+ }>, "many">, {
820
+ candidate_id: string;
821
+ rank: number;
822
+ rationale: string;
823
+ }[], {
824
+ candidate_id: string;
825
+ rank: number;
826
+ rationale: string;
827
+ }[]>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ independent_baseline: string;
830
+ ranking: {
831
+ candidate_id: string;
832
+ rank: number;
833
+ rationale: string;
834
+ }[];
835
+ per_debugger_feedback: {
836
+ candidate_id: string;
837
+ overall_score_100: number;
838
+ strengths: string[];
839
+ comments: string;
840
+ hypothesis_quality: "valid" | "partial" | "invalid";
841
+ missed_factors: string[];
842
+ fix_feasibility: "feasible" | "risky" | "infeasible";
843
+ }[];
844
+ }, {
845
+ independent_baseline: string;
846
+ ranking: {
847
+ candidate_id: string;
848
+ rank: number;
849
+ rationale: string;
850
+ }[];
851
+ per_debugger_feedback: {
852
+ candidate_id: string;
853
+ overall_score_100: number;
854
+ comments: string;
855
+ hypothesis_quality: "valid" | "partial" | "invalid";
856
+ missed_factors: string[];
857
+ fix_feasibility: "feasible" | "risky" | "infeasible";
858
+ strengths?: string[] | undefined;
859
+ }[];
860
+ }>;
861
+ export type CouncilDebugCrossReviewerOutput = z.infer<typeof CouncilDebugCrossReviewerOutputSchema>;
862
+ /**
863
+ * Chairman for council-code-review: expects reviewers + cross_review artifacts.
864
+ */
865
+ export declare const CouncilCodeReviewChairmanOutputSchema: z.ZodObject<{
866
+ decision: z.ZodString;
867
+ rationale: z.ZodString;
868
+ selected_approach: z.ZodString;
869
+ considered_artifacts: z.ZodObject<{
870
+ reviewers: z.ZodNumber;
871
+ cross_review: z.ZodNumber;
872
+ }, "strip", z.ZodTypeAny, {
873
+ reviewers: number;
874
+ cross_review: number;
875
+ }, {
876
+ reviewers: number;
877
+ cross_review: number;
878
+ }>;
879
+ action_items: z.ZodArray<z.ZodString, "many">;
880
+ council_summary: z.ZodObject<{
881
+ agreements: z.ZodArray<z.ZodString, "many">;
882
+ disagreements: z.ZodArray<z.ZodString, "many">;
883
+ minority_views: z.ZodArray<z.ZodString, "many">;
884
+ }, "strip", z.ZodTypeAny, {
885
+ agreements: string[];
886
+ disagreements: string[];
887
+ minority_views: string[];
888
+ }, {
889
+ agreements: string[];
890
+ disagreements: string[];
891
+ minority_views: string[];
892
+ }>;
893
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
894
+ final_score_100: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
895
+ final_score_10: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
896
+ status: z.ZodEnum<["approved", "revise", "reject"]>;
897
+ final_blocking_issues: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
898
+ final_non_blocking_suggestions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
899
+ tests_to_add_or_update: z.ZodArray<z.ZodString, "many">;
900
+ }, "strip", z.ZodTypeAny, {
901
+ status: "reject" | "approved" | "revise";
902
+ rationale: string;
903
+ confidence: number;
904
+ decision: string;
905
+ selected_approach: string;
906
+ considered_artifacts: {
907
+ reviewers: number;
908
+ cross_review: number;
909
+ };
910
+ action_items: string[];
911
+ council_summary: {
912
+ agreements: string[];
913
+ disagreements: string[];
914
+ minority_views: string[];
915
+ };
916
+ final_score_100: number;
917
+ final_score_10: number;
918
+ tests_to_add_or_update: string[];
919
+ final_blocking_issues: string[];
920
+ final_non_blocking_suggestions: string[];
921
+ }, {
922
+ status: "reject" | "approved" | "revise";
923
+ rationale: string;
924
+ confidence: number;
925
+ decision: string;
926
+ selected_approach: string;
927
+ considered_artifacts: {
928
+ reviewers: number;
929
+ cross_review: number;
930
+ };
931
+ action_items: string[];
932
+ council_summary: {
933
+ agreements: string[];
934
+ disagreements: string[];
935
+ minority_views: string[];
936
+ };
937
+ tests_to_add_or_update: string[];
938
+ final_score_100?: number | undefined;
939
+ final_score_10?: number | undefined;
940
+ final_blocking_issues?: string[] | undefined;
941
+ final_non_blocking_suggestions?: string[] | undefined;
942
+ }>;
943
+ export type CouncilCodeReviewChairmanOutput = z.infer<typeof CouncilCodeReviewChairmanOutputSchema>;
944
+ /**
945
+ * Chairman for council-debug: expects debuggers + cross_review artifacts.
946
+ */
947
+ export declare const CouncilDebugChairmanOutputSchema: z.ZodObject<{
948
+ decision: z.ZodString;
949
+ rationale: z.ZodString;
950
+ selected_approach: z.ZodString;
951
+ considered_artifacts: z.ZodObject<{
952
+ debuggers: z.ZodNumber;
953
+ cross_review: z.ZodNumber;
954
+ }, "strip", z.ZodTypeAny, {
955
+ cross_review: number;
956
+ debuggers: number;
957
+ }, {
958
+ cross_review: number;
959
+ debuggers: number;
960
+ }>;
961
+ action_items: z.ZodArray<z.ZodString, "many">;
962
+ council_summary: z.ZodObject<{
963
+ agreements: z.ZodArray<z.ZodString, "many">;
964
+ disagreements: z.ZodArray<z.ZodString, "many">;
965
+ minority_views: z.ZodArray<z.ZodString, "many">;
966
+ }, "strip", z.ZodTypeAny, {
967
+ agreements: string[];
968
+ disagreements: string[];
969
+ minority_views: string[];
970
+ }, {
971
+ agreements: string[];
972
+ disagreements: string[];
973
+ minority_views: string[];
974
+ }>;
975
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
976
+ final_score_100: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
977
+ final_score_10: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
978
+ final_problem_summary: z.ZodDefault<z.ZodString>;
979
+ final_hypotheses: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
980
+ final_diagnostic_plan: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
981
+ final_proposed_fixes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ rationale: string;
984
+ confidence: number;
985
+ decision: string;
986
+ selected_approach: string;
987
+ considered_artifacts: {
988
+ cross_review: number;
989
+ debuggers: number;
990
+ };
991
+ action_items: string[];
992
+ council_summary: {
993
+ agreements: string[];
994
+ disagreements: string[];
995
+ minority_views: string[];
996
+ };
997
+ final_score_100: number;
998
+ final_score_10: number;
999
+ final_problem_summary: string;
1000
+ final_hypotheses: string[];
1001
+ final_diagnostic_plan: string[];
1002
+ final_proposed_fixes: string[];
1003
+ }, {
1004
+ rationale: string;
1005
+ confidence: number;
1006
+ decision: string;
1007
+ selected_approach: string;
1008
+ considered_artifacts: {
1009
+ cross_review: number;
1010
+ debuggers: number;
1011
+ };
1012
+ action_items: string[];
1013
+ council_summary: {
1014
+ agreements: string[];
1015
+ disagreements: string[];
1016
+ minority_views: string[];
1017
+ };
1018
+ final_score_100?: number | undefined;
1019
+ final_score_10?: number | undefined;
1020
+ final_problem_summary?: string | undefined;
1021
+ final_hypotheses?: string[] | undefined;
1022
+ final_diagnostic_plan?: string[] | undefined;
1023
+ final_proposed_fixes?: string[] | undefined;
1024
+ }>;
1025
+ export type CouncilDebugChairmanOutput = z.infer<typeof CouncilDebugChairmanOutputSchema>;
1026
+ /**
1027
+ * Chairman for council-discover: expects analysts + cross_review artifacts.
1028
+ */
1029
+ export declare const CouncilDiscoverChairmanOutputSchema: z.ZodObject<{
1030
+ decision: z.ZodString;
1031
+ rationale: z.ZodString;
1032
+ selected_approach: z.ZodString;
1033
+ considered_artifacts: z.ZodObject<{
1034
+ analysts: z.ZodNumber;
1035
+ cross_review: z.ZodNumber;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ cross_review: number;
1038
+ analysts: number;
1039
+ }, {
1040
+ cross_review: number;
1041
+ analysts: number;
1042
+ }>;
1043
+ action_items: z.ZodArray<z.ZodString, "many">;
1044
+ council_summary: z.ZodObject<{
1045
+ agreements: z.ZodArray<z.ZodString, "many">;
1046
+ disagreements: z.ZodArray<z.ZodString, "many">;
1047
+ minority_views: z.ZodArray<z.ZodString, "many">;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ agreements: string[];
1050
+ disagreements: string[];
1051
+ minority_views: string[];
1052
+ }, {
1053
+ agreements: string[];
1054
+ disagreements: string[];
1055
+ minority_views: string[];
1056
+ }>;
1057
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1058
+ final_score_100: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
1059
+ final_score_10: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
1060
+ final_verdict: z.ZodDefault<z.ZodEnum<["accept_as_is", "accept_with_modifications", "reject"]>>;
1061
+ final_rationale: z.ZodDefault<z.ZodString>;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ rationale: string;
1064
+ confidence: number;
1065
+ decision: string;
1066
+ selected_approach: string;
1067
+ considered_artifacts: {
1068
+ cross_review: number;
1069
+ analysts: number;
1070
+ };
1071
+ action_items: string[];
1072
+ council_summary: {
1073
+ agreements: string[];
1074
+ disagreements: string[];
1075
+ minority_views: string[];
1076
+ };
1077
+ final_score_100: number;
1078
+ final_score_10: number;
1079
+ final_verdict: "accept_as_is" | "accept_with_modifications" | "reject";
1080
+ final_rationale: string;
1081
+ }, {
1082
+ rationale: string;
1083
+ confidence: number;
1084
+ decision: string;
1085
+ selected_approach: string;
1086
+ considered_artifacts: {
1087
+ cross_review: number;
1088
+ analysts: number;
1089
+ };
1090
+ action_items: string[];
1091
+ council_summary: {
1092
+ agreements: string[];
1093
+ disagreements: string[];
1094
+ minority_views: string[];
1095
+ };
1096
+ final_score_100?: number | undefined;
1097
+ final_score_10?: number | undefined;
1098
+ final_verdict?: "accept_as_is" | "accept_with_modifications" | "reject" | undefined;
1099
+ final_rationale?: string | undefined;
1100
+ }>;
1101
+ export type CouncilDiscoverChairmanOutput = z.infer<typeof CouncilDiscoverChairmanOutputSchema>;
1102
+ /**
1103
+ * An answer specialist produces a structured answer.
1104
+ */
1105
+ export declare const CouncilAnswerSpecialistOutputSchema: z.ZodObject<{
1106
+ specialist_id: z.ZodString;
1107
+ answer: z.ZodString;
1108
+ reasoning: z.ZodString;
1109
+ caveats: z.ZodArray<z.ZodString, "many">;
1110
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
1111
+ criterion: z.ZodString;
1112
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1113
+ reason: z.ZodString;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ criterion: string;
1116
+ score: number;
1117
+ reason: string;
1118
+ }, {
1119
+ criterion: string;
1120
+ score: number;
1121
+ reason: string;
1122
+ }>, "many">>;
1123
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1124
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1125
+ sources: z.ZodArray<z.ZodString, "many">;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ reasoning: string;
1128
+ rubric_scores: {
1129
+ criterion: string;
1130
+ score: number;
1131
+ reason: string;
1132
+ }[];
1133
+ overall_score_100: number;
1134
+ confidence: number;
1135
+ sources: string[];
1136
+ specialist_id: string;
1137
+ answer: string;
1138
+ caveats: string[];
1139
+ }, {
1140
+ reasoning: string;
1141
+ overall_score_100: number;
1142
+ confidence: number;
1143
+ sources: string[];
1144
+ specialist_id: string;
1145
+ answer: string;
1146
+ caveats: string[];
1147
+ rubric_scores?: {
1148
+ criterion: string;
1149
+ score: number;
1150
+ reason: string;
1151
+ }[] | undefined;
1152
+ }>;
1153
+ export type CouncilAnswerSpecialistOutput = z.infer<typeof CouncilAnswerSpecialistOutputSchema>;
1154
+ /**
1155
+ * An answer cross-reviewer evaluates specialist answers.
1156
+ */
1157
+ export declare const CouncilAnswerCrossReviewerOutputSchema: z.ZodObject<{
1158
+ independent_baseline: z.ZodString;
1159
+ per_specialist_feedback: z.ZodArray<z.ZodObject<{
1160
+ candidate_id: z.ZodString;
1161
+ accuracy_score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1162
+ completeness_score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1163
+ issues: z.ZodArray<z.ZodString, "many">;
1164
+ rubric_scores: z.ZodDefault<z.ZodArray<z.ZodObject<{
1165
+ criterion: z.ZodString;
1166
+ score: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1167
+ reason: z.ZodString;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ criterion: string;
1170
+ score: number;
1171
+ reason: string;
1172
+ }, {
1173
+ criterion: string;
1174
+ score: number;
1175
+ reason: string;
1176
+ }>, "many">>;
1177
+ overall_score_100: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1178
+ strengths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1179
+ weaknesses: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ issues: string[];
1182
+ candidate_id: string;
1183
+ rubric_scores: {
1184
+ criterion: string;
1185
+ score: number;
1186
+ reason: string;
1187
+ }[];
1188
+ overall_score_100: number;
1189
+ strengths: string[];
1190
+ weaknesses: string[];
1191
+ accuracy_score: number;
1192
+ completeness_score: number;
1193
+ }, {
1194
+ issues: string[];
1195
+ candidate_id: string;
1196
+ overall_score_100: number;
1197
+ accuracy_score: number;
1198
+ completeness_score: number;
1199
+ rubric_scores?: {
1200
+ criterion: string;
1201
+ score: number;
1202
+ reason: string;
1203
+ }[] | undefined;
1204
+ strengths?: string[] | undefined;
1205
+ weaknesses?: string[] | undefined;
1206
+ }>, "many">;
1207
+ ranking: z.ZodEffects<z.ZodArray<z.ZodObject<{
1208
+ candidate_id: z.ZodString;
1209
+ rank: z.ZodNumber;
1210
+ rationale: z.ZodString;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ candidate_id: string;
1213
+ rank: number;
1214
+ rationale: string;
1215
+ }, {
1216
+ candidate_id: string;
1217
+ rank: number;
1218
+ rationale: string;
1219
+ }>, "many">, {
1220
+ candidate_id: string;
1221
+ rank: number;
1222
+ rationale: string;
1223
+ }[], {
1224
+ candidate_id: string;
1225
+ rank: number;
1226
+ rationale: string;
1227
+ }[]>;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ independent_baseline: string;
1230
+ ranking: {
1231
+ candidate_id: string;
1232
+ rank: number;
1233
+ rationale: string;
1234
+ }[];
1235
+ per_specialist_feedback: {
1236
+ issues: string[];
1237
+ candidate_id: string;
1238
+ rubric_scores: {
1239
+ criterion: string;
1240
+ score: number;
1241
+ reason: string;
1242
+ }[];
1243
+ overall_score_100: number;
1244
+ strengths: string[];
1245
+ weaknesses: string[];
1246
+ accuracy_score: number;
1247
+ completeness_score: number;
1248
+ }[];
1249
+ }, {
1250
+ independent_baseline: string;
1251
+ ranking: {
1252
+ candidate_id: string;
1253
+ rank: number;
1254
+ rationale: string;
1255
+ }[];
1256
+ per_specialist_feedback: {
1257
+ issues: string[];
1258
+ candidate_id: string;
1259
+ overall_score_100: number;
1260
+ accuracy_score: number;
1261
+ completeness_score: number;
1262
+ rubric_scores?: {
1263
+ criterion: string;
1264
+ score: number;
1265
+ reason: string;
1266
+ }[] | undefined;
1267
+ strengths?: string[] | undefined;
1268
+ weaknesses?: string[] | undefined;
1269
+ }[];
1270
+ }>;
1271
+ export type CouncilAnswerCrossReviewerOutput = z.infer<typeof CouncilAnswerCrossReviewerOutputSchema>;
1272
+ /**
1273
+ * An answer chairman synthesizes specialist answers and cross-reviews.
1274
+ */
1275
+ export declare const CouncilAnswerChairmanOutputSchema: z.ZodObject<{
1276
+ decision: z.ZodString;
1277
+ final_answer: z.ZodDefault<z.ZodString>;
1278
+ rationale: z.ZodString;
1279
+ selected_approach: z.ZodString;
1280
+ considered_artifacts: z.ZodObject<{
1281
+ specialists: z.ZodNumber;
1282
+ cross_review: z.ZodNumber;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ cross_review: number;
1285
+ specialists: number;
1286
+ }, {
1287
+ cross_review: number;
1288
+ specialists: number;
1289
+ }>;
1290
+ action_items: z.ZodArray<z.ZodString, "many">;
1291
+ council_summary: z.ZodObject<{
1292
+ agreements: z.ZodArray<z.ZodString, "many">;
1293
+ disagreements: z.ZodArray<z.ZodString, "many">;
1294
+ minority_views: z.ZodArray<z.ZodString, "many">;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ agreements: string[];
1297
+ disagreements: string[];
1298
+ minority_views: string[];
1299
+ }, {
1300
+ agreements: string[];
1301
+ disagreements: string[];
1302
+ minority_views: string[];
1303
+ }>;
1304
+ confidence: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>;
1305
+ final_score_100: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
1306
+ final_score_10: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, number>, z.ZodNumber>>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ rationale: string;
1309
+ confidence: number;
1310
+ decision: string;
1311
+ final_answer: string;
1312
+ selected_approach: string;
1313
+ considered_artifacts: {
1314
+ cross_review: number;
1315
+ specialists: number;
1316
+ };
1317
+ action_items: string[];
1318
+ council_summary: {
1319
+ agreements: string[];
1320
+ disagreements: string[];
1321
+ minority_views: string[];
1322
+ };
1323
+ final_score_100: number;
1324
+ final_score_10: number;
1325
+ }, {
1326
+ rationale: string;
1327
+ confidence: number;
1328
+ decision: string;
1329
+ selected_approach: string;
1330
+ considered_artifacts: {
1331
+ cross_review: number;
1332
+ specialists: number;
1333
+ };
1334
+ action_items: string[];
1335
+ council_summary: {
1336
+ agreements: string[];
1337
+ disagreements: string[];
1338
+ minority_views: string[];
1339
+ };
1340
+ final_answer?: string | undefined;
1341
+ final_score_100?: number | undefined;
1342
+ final_score_10?: number | undefined;
1343
+ }>;
1344
+ export type CouncilAnswerChairmanOutput = z.infer<typeof CouncilAnswerChairmanOutputSchema>;
1345
+ /**
1346
+ * Output schema for the deterministic ranking reducer.
1347
+ * Computed from cross-review ranking artifacts using Borda count.
1348
+ */
1349
+ export declare const CouncilRankingReducerOutputSchema: z.ZodObject<{
1350
+ consensus_ranking: z.ZodArray<z.ZodObject<{
1351
+ candidate_id: z.ZodString;
1352
+ borda_score: z.ZodNumber;
1353
+ rank: z.ZodNumber;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ candidate_id: string;
1356
+ rank: number;
1357
+ borda_score: number;
1358
+ }, {
1359
+ candidate_id: string;
1360
+ rank: number;
1361
+ borda_score: number;
1362
+ }>, "many">;
1363
+ score_summary: z.ZodDefault<z.ZodArray<z.ZodObject<{
1364
+ candidate_id: z.ZodString;
1365
+ mean_score: z.ZodNumber;
1366
+ score_count: z.ZodNumber;
1367
+ spread: z.ZodNumber;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ candidate_id: string;
1370
+ mean_score: number;
1371
+ score_count: number;
1372
+ spread: number;
1373
+ }, {
1374
+ candidate_id: string;
1375
+ mean_score: number;
1376
+ score_count: number;
1377
+ spread: number;
1378
+ }>, "many">>;
1379
+ minority_opinions: z.ZodArray<z.ZodObject<{
1380
+ reviewer_id: z.ZodString;
1381
+ candidate_id: z.ZodString;
1382
+ reviewer_rank: z.ZodNumber;
1383
+ consensus_rank: z.ZodNumber;
1384
+ divergence: z.ZodNumber;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ candidate_id: string;
1387
+ reviewer_id: string;
1388
+ reviewer_rank: number;
1389
+ consensus_rank: number;
1390
+ divergence: number;
1391
+ }, {
1392
+ candidate_id: string;
1393
+ reviewer_id: string;
1394
+ reviewer_rank: number;
1395
+ consensus_rank: number;
1396
+ divergence: number;
1397
+ }>, "many">;
1398
+ ranking_conflicts: z.ZodArray<z.ZodObject<{
1399
+ candidate_a: z.ZodString;
1400
+ candidate_b: z.ZodString;
1401
+ a_over_b_count: z.ZodNumber;
1402
+ b_over_a_count: z.ZodNumber;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ candidate_a: string;
1405
+ candidate_b: string;
1406
+ a_over_b_count: number;
1407
+ b_over_a_count: number;
1408
+ }, {
1409
+ candidate_a: string;
1410
+ candidate_b: string;
1411
+ a_over_b_count: number;
1412
+ b_over_a_count: number;
1413
+ }>, "many">;
1414
+ quorum: z.ZodObject<{
1415
+ total_reviewers: z.ZodNumber;
1416
+ reviewers_with_rankings: z.ZodNumber;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ total_reviewers: number;
1419
+ reviewers_with_rankings: number;
1420
+ }, {
1421
+ total_reviewers: number;
1422
+ reviewers_with_rankings: number;
1423
+ }>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ consensus_ranking: {
1426
+ candidate_id: string;
1427
+ rank: number;
1428
+ borda_score: number;
1429
+ }[];
1430
+ score_summary: {
1431
+ candidate_id: string;
1432
+ mean_score: number;
1433
+ score_count: number;
1434
+ spread: number;
1435
+ }[];
1436
+ minority_opinions: {
1437
+ candidate_id: string;
1438
+ reviewer_id: string;
1439
+ reviewer_rank: number;
1440
+ consensus_rank: number;
1441
+ divergence: number;
1442
+ }[];
1443
+ ranking_conflicts: {
1444
+ candidate_a: string;
1445
+ candidate_b: string;
1446
+ a_over_b_count: number;
1447
+ b_over_a_count: number;
1448
+ }[];
1449
+ quorum: {
1450
+ total_reviewers: number;
1451
+ reviewers_with_rankings: number;
1452
+ };
1453
+ }, {
1454
+ consensus_ranking: {
1455
+ candidate_id: string;
1456
+ rank: number;
1457
+ borda_score: number;
1458
+ }[];
1459
+ minority_opinions: {
1460
+ candidate_id: string;
1461
+ reviewer_id: string;
1462
+ reviewer_rank: number;
1463
+ consensus_rank: number;
1464
+ divergence: number;
1465
+ }[];
1466
+ ranking_conflicts: {
1467
+ candidate_a: string;
1468
+ candidate_b: string;
1469
+ a_over_b_count: number;
1470
+ b_over_a_count: number;
1471
+ }[];
1472
+ quorum: {
1473
+ total_reviewers: number;
1474
+ reviewers_with_rankings: number;
1475
+ };
1476
+ score_summary?: {
1477
+ candidate_id: string;
1478
+ mean_score: number;
1479
+ score_count: number;
1480
+ spread: number;
1481
+ }[] | undefined;
1482
+ }>;
1483
+ export type CouncilRankingReducerOutput = z.infer<typeof CouncilRankingReducerOutputSchema>;
1484
+ /**
1485
+ * Register council-specific validator schemas.
1486
+ * Called during ValidatorRegistry initialization.
1487
+ */
1488
+ export declare function registerCouncilValidators(registry: ValidatorRegistry): void;