@rigour-labs/core 6.6.5 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/README.md +16 -92
  2. package/dist/environment.test.js +0 -4
  3. package/dist/gates/agent-team.d.ts +0 -2
  4. package/dist/gates/agent-team.js +0 -8
  5. package/dist/gates/checkpoint.d.ts +0 -1
  6. package/dist/gates/checkpoint.js +0 -1
  7. package/dist/gates/context.d.ts +0 -4
  8. package/dist/gates/context.js +7 -17
  9. package/dist/gates/deep-analysis.d.ts +0 -1
  10. package/dist/gates/deep-runner.js +0 -1
  11. package/dist/gates/frontend-secret-exposure.d.ts +1 -1
  12. package/dist/gates/frontend-secret-exposure.js +9 -3
  13. package/dist/gates/frontend-secret-exposure.test.js +6 -3
  14. package/dist/gates/hallucinated-imports/index.d.ts +0 -2
  15. package/dist/gates/hallucinated-imports/index.js +2 -2
  16. package/dist/gates/hallucinated-imports/js-resolver.js +1 -0
  17. package/dist/gates/hallucinated-imports.test.js +10 -0
  18. package/dist/gates/runner.js +3 -4
  19. package/dist/gates/test-quality-matchers.d.ts +0 -4
  20. package/dist/gates/test-quality-matchers.js +0 -7
  21. package/dist/gates/test-quality.d.ts +0 -2
  22. package/dist/gates/test-quality.js +1 -10
  23. package/dist/hooks/checker.js +1 -1
  24. package/dist/hooks/index.d.ts +2 -3
  25. package/dist/hooks/index.js +1 -2
  26. package/dist/hooks/stop-review.d.ts +6 -9
  27. package/dist/hooks/stop-review.js +5 -10
  28. package/dist/hooks/types.d.ts +0 -14
  29. package/dist/hooks/types.js +1 -15
  30. package/dist/index.d.ts +11 -3
  31. package/dist/index.js +11 -3
  32. package/dist/inference/cloud-provider.d.ts +2 -0
  33. package/dist/inference/cloud-provider.js +16 -6
  34. package/dist/inference/cloud-provider.test.js +21 -0
  35. package/dist/pattern-index/embeddings.d.ts +0 -5
  36. package/dist/pattern-index/embeddings.js +11 -4
  37. package/dist/pattern-index/semantic-runtime.d.ts +10 -0
  38. package/dist/pattern-index/semantic-runtime.js +46 -0
  39. package/dist/pattern-index/semantic-runtime.test.d.ts +1 -0
  40. package/dist/pattern-index/semantic-runtime.test.js +31 -0
  41. package/dist/review/backtest-init.d.ts +8 -0
  42. package/dist/review/backtest-init.js +87 -0
  43. package/dist/review/backtest-init.test.d.ts +1 -0
  44. package/dist/review/backtest-init.test.js +74 -0
  45. package/dist/review/backtest-judges.d.ts +38 -0
  46. package/dist/review/backtest-judges.js +63 -0
  47. package/dist/review/backtest-judges.test.d.ts +1 -0
  48. package/dist/review/backtest-judges.test.js +32 -0
  49. package/dist/review/backtest.d.ts +320 -0
  50. package/dist/review/backtest.js +207 -0
  51. package/dist/review/backtest.test.d.ts +1 -0
  52. package/dist/review/backtest.test.js +129 -0
  53. package/dist/review/baseline.js +2 -1
  54. package/dist/review/dead-code.test.js +15 -0
  55. package/dist/review/fix-scope.d.ts +21 -0
  56. package/dist/review/fix-scope.js +94 -0
  57. package/dist/review/fix-scope.test.d.ts +1 -0
  58. package/dist/review/fix-scope.test.js +104 -0
  59. package/dist/review/lint-overlay.d.ts +21 -0
  60. package/dist/review/lint-overlay.js +89 -0
  61. package/dist/review/orphan-files.js +3 -2
  62. package/dist/review/partial-wiring.js +5 -3
  63. package/dist/review/query-patterns.js +3 -2
  64. package/dist/review/quiet.d.ts +6 -0
  65. package/dist/review/quiet.js +12 -2
  66. package/dist/review/quiet.test.js +11 -0
  67. package/dist/review/review.d.ts +6 -0
  68. package/dist/review/review.js +10 -2
  69. package/dist/review/reviewer/adapters.d.ts +51 -0
  70. package/dist/review/reviewer/adapters.js +181 -0
  71. package/dist/review/reviewer/adapters.test.d.ts +1 -0
  72. package/dist/review/reviewer/adapters.test.js +23 -0
  73. package/dist/review/reviewer/background.d.ts +41 -0
  74. package/dist/review/reviewer/background.js +153 -0
  75. package/dist/review/reviewer/background.test.d.ts +1 -0
  76. package/dist/review/reviewer/background.test.js +118 -0
  77. package/dist/review/reviewer/consensus.d.ts +36 -0
  78. package/dist/review/reviewer/consensus.js +144 -0
  79. package/dist/review/reviewer/context.d.ts +75 -0
  80. package/dist/review/reviewer/context.js +140 -0
  81. package/dist/review/reviewer/context.test.d.ts +1 -0
  82. package/dist/review/reviewer/context.test.js +18 -0
  83. package/dist/review/reviewer/exec.d.ts +17 -0
  84. package/dist/review/reviewer/exec.js +27 -0
  85. package/dist/review/reviewer/exec.test.d.ts +1 -0
  86. package/dist/review/reviewer/exec.test.js +23 -0
  87. package/dist/review/reviewer/inputs.d.ts +39 -0
  88. package/dist/review/reviewer/inputs.js +107 -0
  89. package/dist/review/reviewer/merge-impact.d.ts +2 -0
  90. package/dist/review/reviewer/merge-impact.js +64 -0
  91. package/dist/review/reviewer/panel.d.ts +67 -0
  92. package/dist/review/reviewer/panel.js +101 -0
  93. package/dist/review/reviewer/panel.test.d.ts +1 -0
  94. package/dist/review/reviewer/panel.test.js +110 -0
  95. package/dist/review/reviewer/prompt.d.ts +32 -0
  96. package/dist/review/reviewer/prompt.js +145 -0
  97. package/dist/review/reviewer/settings.d.ts +58 -0
  98. package/dist/review/reviewer/settings.js +152 -0
  99. package/dist/review/reviewer/settings.test.d.ts +1 -0
  100. package/dist/review/reviewer/settings.test.js +57 -0
  101. package/dist/review/reviewer/store.d.ts +49 -0
  102. package/dist/review/reviewer/store.js +99 -0
  103. package/dist/review/reviewer/usage.d.ts +2 -0
  104. package/dist/review/reviewer/usage.js +28 -0
  105. package/dist/review/reviewer/usage.test.d.ts +1 -0
  106. package/dist/review/reviewer/usage.test.js +14 -0
  107. package/dist/review/reviewer/verdict.d.ts +141 -0
  108. package/dist/review/reviewer/verdict.js +166 -0
  109. package/dist/review/reviewer.d.ts +84 -49
  110. package/dist/review/reviewer.js +364 -195
  111. package/dist/review/reviewer.test.js +316 -50
  112. package/dist/review/test-files.d.ts +5 -1
  113. package/dist/review/test-files.js +6 -2
  114. package/dist/review/toolchain.d.ts +5 -2
  115. package/dist/review/toolchain.js +89 -7
  116. package/dist/review/toolchain.test.js +45 -4
  117. package/dist/review/typed/program.d.ts +26 -0
  118. package/dist/review/typed/program.js +90 -0
  119. package/dist/review/typed/redundancy.d.ts +10 -0
  120. package/dist/review/typed/redundancy.js +378 -0
  121. package/dist/review/typed/redundancy.test.d.ts +1 -0
  122. package/dist/review/typed/redundancy.test.js +179 -0
  123. package/dist/review/typed/schema-nullability.d.ts +6 -0
  124. package/dist/review/typed/schema-nullability.js +218 -0
  125. package/dist/review/typed/schema-nullability.test.d.ts +1 -0
  126. package/dist/review/typed/schema-nullability.test.js +63 -0
  127. package/dist/review/unused-exports.js +10 -7
  128. package/dist/semantic/learn/types.d.ts +2 -2
  129. package/dist/services/adaptive-thresholds.d.ts +2 -52
  130. package/dist/services/adaptive-thresholds.js +2 -147
  131. package/dist/services/adaptive-thresholds.test.js +1 -81
  132. package/dist/settings.d.ts +14 -6
  133. package/dist/settings.js +0 -12
  134. package/dist/storage/team-diagnostics.js +1 -1
  135. package/dist/storage/team-schema.d.ts +1 -1
  136. package/dist/storage/team-schema.js +2 -0
  137. package/dist/storage/team-store.js +26 -3
  138. package/dist/storage/team-sync-scope.test.js +35 -2
  139. package/dist/telemetry/telemetry.d.ts +5 -0
  140. package/dist/telemetry/telemetry.js +11 -1
  141. package/dist/templates/paradigms.js +0 -8
  142. package/dist/templates/presets.d.ts +0 -1
  143. package/dist/templates/presets.js +0 -23
  144. package/dist/templates/universal-config.js +16 -46
  145. package/dist/types/index.d.ts +202 -574
  146. package/dist/types/index.js +64 -67
  147. package/dist/types/index.test.d.ts +1 -0
  148. package/dist/types/index.test.js +33 -0
  149. package/dist/utils/command-line.d.ts +8 -0
  150. package/dist/utils/command-line.js +8 -0
  151. package/dist/utils/command-line.test.d.ts +1 -0
  152. package/dist/utils/command-line.test.js +8 -0
  153. package/dist/utils/profile.js +1 -1
  154. package/package.json +6 -7
@@ -3,32 +3,19 @@ export declare const GatesSchema: z.ZodObject<{
3
3
  max_file_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4
4
  forbid_todos: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5
5
  forbid_fixme: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6
- forbid_paths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7
6
  required_files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
8
7
  ast: z.ZodDefault<z.ZodOptional<z.ZodObject<{
9
8
  complexity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10
9
  max_methods: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
11
10
  max_params: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
- max_nesting: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13
- max_inheritance_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
- max_class_dependencies: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15
- max_function_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
11
  }, "strip", z.ZodTypeAny, {
17
12
  complexity: number;
18
13
  max_methods: number;
19
14
  max_params: number;
20
- max_nesting: number;
21
- max_inheritance_depth: number;
22
- max_class_dependencies: number;
23
- max_function_lines: number;
24
15
  }, {
25
16
  complexity?: number | undefined;
26
17
  max_methods?: number | undefined;
27
18
  max_params?: number | undefined;
28
- max_nesting?: number | undefined;
29
- max_inheritance_depth?: number | undefined;
30
- max_class_dependencies?: number | undefined;
31
- max_function_lines?: number | undefined;
32
19
  }>>>;
33
20
  staleness: z.ZodDefault<z.ZodOptional<z.ZodObject<{
34
21
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -42,7 +29,6 @@ export declare const GatesSchema: z.ZodObject<{
42
29
  }>>>;
43
30
  dependencies: z.ZodDefault<z.ZodOptional<z.ZodObject<{
44
31
  forbid: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
- trusted_registry: z.ZodOptional<z.ZodString>;
46
32
  detect_unused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47
33
  detect_heavy_alternatives: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
48
34
  detect_duplicate_purpose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -53,10 +39,8 @@ export declare const GatesSchema: z.ZodObject<{
53
39
  detect_heavy_alternatives: boolean;
54
40
  detect_duplicate_purpose: boolean;
55
41
  unused_allowlist: string[];
56
- trusted_registry?: string | undefined;
57
42
  }, {
58
43
  forbid?: string[] | undefined;
59
- trusted_registry?: string | undefined;
60
44
  detect_unused?: boolean | undefined;
61
45
  detect_heavy_alternatives?: boolean | undefined;
62
46
  detect_duplicate_purpose?: boolean | undefined;
@@ -103,29 +87,14 @@ export declare const GatesSchema: z.ZodObject<{
103
87
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
104
88
  sensitivity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
105
89
  mining_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
106
- ignored_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
107
- cross_file_patterns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
108
- naming_consistency: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
109
- import_relationships: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
110
- max_cross_file_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
111
90
  }, "strip", z.ZodTypeAny, {
112
91
  enabled: boolean;
113
92
  sensitivity: number;
114
93
  mining_depth: number;
115
- ignored_patterns: string[];
116
- cross_file_patterns: boolean;
117
- naming_consistency: boolean;
118
- import_relationships: boolean;
119
- max_cross_file_depth: number;
120
94
  }, {
121
95
  enabled?: boolean | undefined;
122
96
  sensitivity?: number | undefined;
123
97
  mining_depth?: number | undefined;
124
- ignored_patterns?: string[] | undefined;
125
- cross_file_patterns?: boolean | undefined;
126
- naming_consistency?: boolean | undefined;
127
- import_relationships?: boolean | undefined;
128
- max_cross_file_depth?: number | undefined;
129
98
  }>>>;
130
99
  environment: z.ZodDefault<z.ZodOptional<z.ZodObject<{
131
100
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -146,36 +115,27 @@ export declare const GatesSchema: z.ZodObject<{
146
115
  retry_loop_breaker: z.ZodDefault<z.ZodOptional<z.ZodObject<{
147
116
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
148
117
  max_retries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
149
- auto_classify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
150
118
  doc_sources: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
151
119
  }, "strip", z.ZodTypeAny, {
152
120
  enabled: boolean;
153
121
  max_retries: number;
154
- auto_classify: boolean;
155
122
  doc_sources: Record<string, string>;
156
123
  }, {
157
124
  enabled?: boolean | undefined;
158
125
  max_retries?: number | undefined;
159
- auto_classify?: boolean | undefined;
160
126
  doc_sources?: Record<string, string> | undefined;
161
127
  }>>>;
162
128
  agent_team: z.ZodDefault<z.ZodOptional<z.ZodObject<{
163
129
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
164
130
  max_concurrent_agents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
165
- cross_agent_pattern_check: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
166
- handoff_verification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
167
131
  task_ownership: z.ZodDefault<z.ZodOptional<z.ZodEnum<["strict", "collaborative"]>>>;
168
132
  }, "strip", z.ZodTypeAny, {
169
133
  enabled: boolean;
170
134
  max_concurrent_agents: number;
171
- cross_agent_pattern_check: boolean;
172
- handoff_verification: boolean;
173
135
  task_ownership: "strict" | "collaborative";
174
136
  }, {
175
137
  enabled?: boolean | undefined;
176
138
  max_concurrent_agents?: number | undefined;
177
- cross_agent_pattern_check?: boolean | undefined;
178
- handoff_verification?: boolean | undefined;
179
139
  task_ownership?: "strict" | "collaborative" | undefined;
180
140
  }>>>;
181
141
  checkpoint: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -183,19 +143,16 @@ export declare const GatesSchema: z.ZodObject<{
183
143
  interval_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
184
144
  quality_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
185
145
  drift_detection: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
186
- auto_save_on_failure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
187
146
  }, "strip", z.ZodTypeAny, {
188
147
  enabled: boolean;
189
148
  interval_minutes: number;
190
149
  quality_threshold: number;
191
150
  drift_detection: boolean;
192
- auto_save_on_failure: boolean;
193
151
  }, {
194
152
  enabled?: boolean | undefined;
195
153
  interval_minutes?: number | undefined;
196
154
  quality_threshold?: number | undefined;
197
155
  drift_detection?: boolean | undefined;
198
- auto_save_on_failure?: boolean | undefined;
199
156
  }>>>;
200
157
  security: z.ZodDefault<z.ZodOptional<z.ZodObject<{
201
158
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -256,25 +213,6 @@ export declare const GatesSchema: z.ZodObject<{
256
213
  server_path_patterns?: string[] | undefined;
257
214
  allowlist_env_names?: string[] | undefined;
258
215
  }>>>;
259
- adaptive: z.ZodDefault<z.ZodOptional<z.ZodObject<{
260
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
261
- base_coverage_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
262
- base_quality_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
263
- auto_detect_tier: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
264
- forced_tier: z.ZodOptional<z.ZodEnum<["hobby", "startup", "enterprise"]>>;
265
- }, "strip", z.ZodTypeAny, {
266
- enabled: boolean;
267
- base_coverage_threshold: number;
268
- base_quality_threshold: number;
269
- auto_detect_tier: boolean;
270
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
271
- }, {
272
- enabled?: boolean | undefined;
273
- base_coverage_threshold?: number | undefined;
274
- base_quality_threshold?: number | undefined;
275
- auto_detect_tier?: boolean | undefined;
276
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
277
- }>>>;
278
216
  duplication_drift: z.ZodDefault<z.ZodOptional<z.ZodObject<{
279
217
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
280
218
  similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -290,18 +228,12 @@ export declare const GatesSchema: z.ZodObject<{
290
228
  }>>>;
291
229
  hallucinated_imports: z.ZodDefault<z.ZodOptional<z.ZodObject<{
292
230
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
293
- check_relative: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
294
- check_packages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
295
231
  ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
296
232
  }, "strip", z.ZodTypeAny, {
297
233
  enabled: boolean;
298
- check_relative: boolean;
299
- check_packages: boolean;
300
234
  ignore_patterns: string[];
301
235
  }, {
302
236
  enabled?: boolean | undefined;
303
- check_relative?: boolean | undefined;
304
- check_packages?: boolean | undefined;
305
237
  ignore_patterns?: string[] | undefined;
306
238
  }>>>;
307
239
  inconsistent_error_handling: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -419,26 +351,20 @@ export declare const GatesSchema: z.ZodObject<{
419
351
  check_empty_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
420
352
  check_tautological: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
421
353
  check_mock_heavy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
422
- check_snapshot_abuse: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
423
354
  check_assertion_free_async: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
424
355
  max_mocks_per_test: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
425
- ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
426
356
  }, "strip", z.ZodTypeAny, {
427
357
  enabled: boolean;
428
- ignore_patterns: string[];
429
358
  check_empty_tests: boolean;
430
359
  check_tautological: boolean;
431
360
  check_mock_heavy: boolean;
432
- check_snapshot_abuse: boolean;
433
361
  check_assertion_free_async: boolean;
434
362
  max_mocks_per_test: number;
435
363
  }, {
436
364
  enabled?: boolean | undefined;
437
- ignore_patterns?: string[] | undefined;
438
365
  check_empty_tests?: boolean | undefined;
439
366
  check_tautological?: boolean | undefined;
440
367
  check_mock_heavy?: boolean | undefined;
441
- check_snapshot_abuse?: boolean | undefined;
442
368
  check_assertion_free_async?: boolean | undefined;
443
369
  max_mocks_per_test?: number | undefined;
444
370
  }>>>;
@@ -476,28 +402,6 @@ export declare const GatesSchema: z.ZodObject<{
476
402
  protected_skills_paths?: string[] | undefined;
477
403
  exempt_paths?: string[] | undefined;
478
404
  }>>>;
479
- input_validation: z.ZodDefault<z.ZodOptional<z.ZodObject<{
480
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
481
- block_on_detection: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
482
- min_secret_length: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
483
- custom_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
484
- ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
485
- audit_log: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
486
- }, "strip", z.ZodTypeAny, {
487
- enabled: boolean;
488
- ignore_patterns: string[];
489
- block_on_detection: boolean;
490
- min_secret_length: number;
491
- custom_patterns: string[];
492
- audit_log: boolean;
493
- }, {
494
- enabled?: boolean | undefined;
495
- ignore_patterns?: string[] | undefined;
496
- block_on_detection?: boolean | undefined;
497
- min_secret_length?: number | undefined;
498
- custom_patterns?: string[] | undefined;
499
- audit_log?: boolean | undefined;
500
- }>>>;
501
405
  unindexed_reads: z.ZodDefault<z.ZodOptional<z.ZodObject<{
502
406
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
503
407
  migrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -545,6 +449,27 @@ export declare const GatesSchema: z.ZodObject<{
545
449
  }, {
546
450
  enabled?: boolean | undefined;
547
451
  }>>>;
452
+ /**
453
+ * What a change made redundant, from the project's own TypeScript (review/typed/redundancy.ts): a null filter beside a
454
+ * range on the same column, a nullable row type the query filters non-null, an optional member every host supplies, a
455
+ * property written and never read. Runs at push, in `rigour review` and in a backtest (the program takes seconds to build).
456
+ * `wire_contracts`: files whose types another service reads, so their members are never write-only here.
457
+ * `schema_migrations`: folders of SQL migrations (relative, absolute, or `~/`; another repository's is fine, read only)
458
+ * replayed to learn which columns are NOT NULL, for the nullable-not-null-column note. Missing folders are skipped.
459
+ */
460
+ redundancy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
461
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
462
+ wire_contracts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
463
+ schema_migrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ enabled: boolean;
466
+ wire_contracts: string[];
467
+ schema_migrations: string[];
468
+ }, {
469
+ enabled?: boolean | undefined;
470
+ wire_contracts?: string[] | undefined;
471
+ schema_migrations?: string[] | undefined;
472
+ }>>>;
548
473
  /** A parameter the change adds as optional that only tests omit (review/optional-params.ts). */
549
474
  optional_params: z.ZodDefault<z.ZodOptional<z.ZodObject<{
550
475
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -662,15 +587,6 @@ export declare const GatesSchema: z.ZodObject<{
662
587
  track_returns?: boolean | undefined;
663
588
  }>>>;
664
589
  deep: z.ZodDefault<z.ZodOptional<z.ZodObject<{
665
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
666
- pro: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
667
- max: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
668
- provider: z.ZodDefault<z.ZodOptional<z.ZodString>>;
669
- api_key: z.ZodOptional<z.ZodString>;
670
- api_base_url: z.ZodOptional<z.ZodString>;
671
- model_name: z.ZodOptional<z.ZodString>;
672
- model_path: z.ZodOptional<z.ZodString>;
673
- threads: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
674
590
  max_tokens: z.ZodOptional<z.ZodNumber>;
675
591
  temperature: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
676
592
  timeout_ms: z.ZodOptional<z.ZodNumber>;
@@ -721,11 +637,6 @@ export declare const GatesSchema: z.ZodObject<{
721
637
  code_smells?: boolean | undefined;
722
638
  }>>>;
723
639
  }, "strip", z.ZodTypeAny, {
724
- enabled: boolean;
725
- pro: boolean;
726
- max: boolean;
727
- provider: string;
728
- threads: number;
729
640
  temperature: number;
730
641
  intent_checks: boolean;
731
642
  checks: {
@@ -738,10 +649,6 @@ export declare const GatesSchema: z.ZodObject<{
738
649
  error_handling: boolean;
739
650
  code_smells: boolean;
740
651
  };
741
- api_key?: string | undefined;
742
- api_base_url?: string | undefined;
743
- model_name?: string | undefined;
744
- model_path?: string | undefined;
745
652
  max_tokens?: number | undefined;
746
653
  timeout_ms?: number | undefined;
747
654
  budget_ms?: number | undefined;
@@ -754,15 +661,6 @@ export declare const GatesSchema: z.ZodObject<{
754
661
  max_functions?: number | undefined;
755
662
  } | undefined;
756
663
  }, {
757
- enabled?: boolean | undefined;
758
- pro?: boolean | undefined;
759
- max?: boolean | undefined;
760
- provider?: string | undefined;
761
- api_key?: string | undefined;
762
- api_base_url?: string | undefined;
763
- model_name?: string | undefined;
764
- model_path?: string | undefined;
765
- threads?: number | undefined;
766
664
  max_tokens?: number | undefined;
767
665
  temperature?: number | undefined;
768
666
  timeout_ms?: number | undefined;
@@ -789,11 +687,6 @@ export declare const GatesSchema: z.ZodObject<{
789
687
  }>>>;
790
688
  }, "strip", z.ZodTypeAny, {
791
689
  deep: {
792
- enabled: boolean;
793
- pro: boolean;
794
- max: boolean;
795
- provider: string;
796
- threads: number;
797
690
  temperature: number;
798
691
  intent_checks: boolean;
799
692
  checks: {
@@ -806,10 +699,6 @@ export declare const GatesSchema: z.ZodObject<{
806
699
  error_handling: boolean;
807
700
  code_smells: boolean;
808
701
  };
809
- api_key?: string | undefined;
810
- api_base_url?: string | undefined;
811
- model_name?: string | undefined;
812
- model_path?: string | undefined;
813
702
  max_tokens?: number | undefined;
814
703
  timeout_ms?: number | undefined;
815
704
  budget_ms?: number | undefined;
@@ -825,16 +714,11 @@ export declare const GatesSchema: z.ZodObject<{
825
714
  max_file_lines: number;
826
715
  forbid_todos: boolean;
827
716
  forbid_fixme: boolean;
828
- forbid_paths: string[];
829
717
  required_files: string[];
830
718
  ast: {
831
719
  complexity: number;
832
720
  max_methods: number;
833
721
  max_params: number;
834
- max_nesting: number;
835
- max_inheritance_depth: number;
836
- max_class_dependencies: number;
837
- max_function_lines: number;
838
722
  };
839
723
  staleness: {
840
724
  enabled: boolean;
@@ -846,7 +730,6 @@ export declare const GatesSchema: z.ZodObject<{
846
730
  detect_heavy_alternatives: boolean;
847
731
  detect_duplicate_purpose: boolean;
848
732
  unused_allowlist: string[];
849
- trusted_registry?: string | undefined;
850
733
  };
851
734
  architecture: {
852
735
  boundaries: {
@@ -863,11 +746,6 @@ export declare const GatesSchema: z.ZodObject<{
863
746
  enabled: boolean;
864
747
  sensitivity: number;
865
748
  mining_depth: number;
866
- ignored_patterns: string[];
867
- cross_file_patterns: boolean;
868
- naming_consistency: boolean;
869
- import_relationships: boolean;
870
- max_cross_file_depth: number;
871
749
  };
872
750
  environment: {
873
751
  enabled: boolean;
@@ -878,14 +756,11 @@ export declare const GatesSchema: z.ZodObject<{
878
756
  retry_loop_breaker: {
879
757
  enabled: boolean;
880
758
  max_retries: number;
881
- auto_classify: boolean;
882
759
  doc_sources: Record<string, string>;
883
760
  };
884
761
  agent_team: {
885
762
  enabled: boolean;
886
763
  max_concurrent_agents: number;
887
- cross_agent_pattern_check: boolean;
888
- handoff_verification: boolean;
889
764
  task_ownership: "strict" | "collaborative";
890
765
  };
891
766
  checkpoint: {
@@ -893,7 +768,6 @@ export declare const GatesSchema: z.ZodObject<{
893
768
  interval_minutes: number;
894
769
  quality_threshold: number;
895
770
  drift_detection: boolean;
896
- auto_save_on_failure: boolean;
897
771
  };
898
772
  security: {
899
773
  enabled: boolean;
@@ -916,13 +790,6 @@ export declare const GatesSchema: z.ZodObject<{
916
790
  server_path_patterns: string[];
917
791
  allowlist_env_names: string[];
918
792
  };
919
- adaptive: {
920
- enabled: boolean;
921
- base_coverage_threshold: number;
922
- base_quality_threshold: number;
923
- auto_detect_tier: boolean;
924
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
925
- };
926
793
  duplication_drift: {
927
794
  enabled: boolean;
928
795
  similarity_threshold: number;
@@ -930,8 +797,6 @@ export declare const GatesSchema: z.ZodObject<{
930
797
  };
931
798
  hallucinated_imports: {
932
799
  enabled: boolean;
933
- check_relative: boolean;
934
- check_packages: boolean;
935
800
  ignore_patterns: string[];
936
801
  };
937
802
  inconsistent_error_handling: {
@@ -976,11 +841,9 @@ export declare const GatesSchema: z.ZodObject<{
976
841
  };
977
842
  test_quality: {
978
843
  enabled: boolean;
979
- ignore_patterns: string[];
980
844
  check_empty_tests: boolean;
981
845
  check_tautological: boolean;
982
846
  check_mock_heavy: boolean;
983
- check_snapshot_abuse: boolean;
984
847
  check_assertion_free_async: boolean;
985
848
  max_mocks_per_test: number;
986
849
  };
@@ -993,14 +856,6 @@ export declare const GatesSchema: z.ZodObject<{
993
856
  protected_skills_paths: string[];
994
857
  exempt_paths: string[];
995
858
  };
996
- input_validation: {
997
- enabled: boolean;
998
- ignore_patterns: string[];
999
- block_on_detection: boolean;
1000
- min_secret_length: number;
1001
- custom_patterns: string[];
1002
- audit_log: boolean;
1003
- };
1004
859
  unindexed_reads: {
1005
860
  enabled: boolean;
1006
861
  migrations: string[];
@@ -1019,6 +874,11 @@ export declare const GatesSchema: z.ZodObject<{
1019
874
  change_sweep: {
1020
875
  enabled: boolean;
1021
876
  };
877
+ redundancy: {
878
+ enabled: boolean;
879
+ wire_contracts: string[];
880
+ schema_migrations: string[];
881
+ };
1022
882
  optional_params: {
1023
883
  enabled: boolean;
1024
884
  };
@@ -1064,15 +924,6 @@ export declare const GatesSchema: z.ZodObject<{
1064
924
  };
1065
925
  }, {
1066
926
  deep?: {
1067
- enabled?: boolean | undefined;
1068
- pro?: boolean | undefined;
1069
- max?: boolean | undefined;
1070
- provider?: string | undefined;
1071
- api_key?: string | undefined;
1072
- api_base_url?: string | undefined;
1073
- model_name?: string | undefined;
1074
- model_path?: string | undefined;
1075
- threads?: number | undefined;
1076
927
  max_tokens?: number | undefined;
1077
928
  temperature?: number | undefined;
1078
929
  timeout_ms?: number | undefined;
@@ -1100,16 +951,11 @@ export declare const GatesSchema: z.ZodObject<{
1100
951
  max_file_lines?: number | undefined;
1101
952
  forbid_todos?: boolean | undefined;
1102
953
  forbid_fixme?: boolean | undefined;
1103
- forbid_paths?: string[] | undefined;
1104
954
  required_files?: string[] | undefined;
1105
955
  ast?: {
1106
956
  complexity?: number | undefined;
1107
957
  max_methods?: number | undefined;
1108
958
  max_params?: number | undefined;
1109
- max_nesting?: number | undefined;
1110
- max_inheritance_depth?: number | undefined;
1111
- max_class_dependencies?: number | undefined;
1112
- max_function_lines?: number | undefined;
1113
959
  } | undefined;
1114
960
  staleness?: {
1115
961
  enabled?: boolean | undefined;
@@ -1117,7 +963,6 @@ export declare const GatesSchema: z.ZodObject<{
1117
963
  } | undefined;
1118
964
  dependencies?: {
1119
965
  forbid?: string[] | undefined;
1120
- trusted_registry?: string | undefined;
1121
966
  detect_unused?: boolean | undefined;
1122
967
  detect_heavy_alternatives?: boolean | undefined;
1123
968
  detect_duplicate_purpose?: boolean | undefined;
@@ -1138,11 +983,6 @@ export declare const GatesSchema: z.ZodObject<{
1138
983
  enabled?: boolean | undefined;
1139
984
  sensitivity?: number | undefined;
1140
985
  mining_depth?: number | undefined;
1141
- ignored_patterns?: string[] | undefined;
1142
- cross_file_patterns?: boolean | undefined;
1143
- naming_consistency?: boolean | undefined;
1144
- import_relationships?: boolean | undefined;
1145
- max_cross_file_depth?: number | undefined;
1146
986
  } | undefined;
1147
987
  environment?: {
1148
988
  enabled?: boolean | undefined;
@@ -1153,14 +993,11 @@ export declare const GatesSchema: z.ZodObject<{
1153
993
  retry_loop_breaker?: {
1154
994
  enabled?: boolean | undefined;
1155
995
  max_retries?: number | undefined;
1156
- auto_classify?: boolean | undefined;
1157
996
  doc_sources?: Record<string, string> | undefined;
1158
997
  } | undefined;
1159
998
  agent_team?: {
1160
999
  enabled?: boolean | undefined;
1161
1000
  max_concurrent_agents?: number | undefined;
1162
- cross_agent_pattern_check?: boolean | undefined;
1163
- handoff_verification?: boolean | undefined;
1164
1001
  task_ownership?: "strict" | "collaborative" | undefined;
1165
1002
  } | undefined;
1166
1003
  checkpoint?: {
@@ -1168,7 +1005,6 @@ export declare const GatesSchema: z.ZodObject<{
1168
1005
  interval_minutes?: number | undefined;
1169
1006
  quality_threshold?: number | undefined;
1170
1007
  drift_detection?: boolean | undefined;
1171
- auto_save_on_failure?: boolean | undefined;
1172
1008
  } | undefined;
1173
1009
  security?: {
1174
1010
  enabled?: boolean | undefined;
@@ -1191,13 +1027,6 @@ export declare const GatesSchema: z.ZodObject<{
1191
1027
  server_path_patterns?: string[] | undefined;
1192
1028
  allowlist_env_names?: string[] | undefined;
1193
1029
  } | undefined;
1194
- adaptive?: {
1195
- enabled?: boolean | undefined;
1196
- base_coverage_threshold?: number | undefined;
1197
- base_quality_threshold?: number | undefined;
1198
- auto_detect_tier?: boolean | undefined;
1199
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
1200
- } | undefined;
1201
1030
  duplication_drift?: {
1202
1031
  enabled?: boolean | undefined;
1203
1032
  similarity_threshold?: number | undefined;
@@ -1205,8 +1034,6 @@ export declare const GatesSchema: z.ZodObject<{
1205
1034
  } | undefined;
1206
1035
  hallucinated_imports?: {
1207
1036
  enabled?: boolean | undefined;
1208
- check_relative?: boolean | undefined;
1209
- check_packages?: boolean | undefined;
1210
1037
  ignore_patterns?: string[] | undefined;
1211
1038
  } | undefined;
1212
1039
  inconsistent_error_handling?: {
@@ -1251,11 +1078,9 @@ export declare const GatesSchema: z.ZodObject<{
1251
1078
  } | undefined;
1252
1079
  test_quality?: {
1253
1080
  enabled?: boolean | undefined;
1254
- ignore_patterns?: string[] | undefined;
1255
1081
  check_empty_tests?: boolean | undefined;
1256
1082
  check_tautological?: boolean | undefined;
1257
1083
  check_mock_heavy?: boolean | undefined;
1258
- check_snapshot_abuse?: boolean | undefined;
1259
1084
  check_assertion_free_async?: boolean | undefined;
1260
1085
  max_mocks_per_test?: number | undefined;
1261
1086
  } | undefined;
@@ -1268,14 +1093,6 @@ export declare const GatesSchema: z.ZodObject<{
1268
1093
  protected_skills_paths?: string[] | undefined;
1269
1094
  exempt_paths?: string[] | undefined;
1270
1095
  } | undefined;
1271
- input_validation?: {
1272
- enabled?: boolean | undefined;
1273
- ignore_patterns?: string[] | undefined;
1274
- block_on_detection?: boolean | undefined;
1275
- min_secret_length?: number | undefined;
1276
- custom_patterns?: string[] | undefined;
1277
- audit_log?: boolean | undefined;
1278
- } | undefined;
1279
1096
  unindexed_reads?: {
1280
1097
  enabled?: boolean | undefined;
1281
1098
  migrations?: string[] | undefined;
@@ -1294,6 +1111,11 @@ export declare const GatesSchema: z.ZodObject<{
1294
1111
  change_sweep?: {
1295
1112
  enabled?: boolean | undefined;
1296
1113
  } | undefined;
1114
+ redundancy?: {
1115
+ enabled?: boolean | undefined;
1116
+ wire_contracts?: string[] | undefined;
1117
+ schema_migrations?: string[] | undefined;
1118
+ } | undefined;
1297
1119
  optional_params?: {
1298
1120
  enabled?: boolean | undefined;
1299
1121
  } | undefined;
@@ -1355,34 +1177,14 @@ export declare const CommandsSchema: z.ZodObject<{
1355
1177
  test?: string | undefined;
1356
1178
  }>;
1357
1179
  export declare const HooksSchema: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1358
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1359
- tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["claude", "cursor", "cline", "windsurf"]>, "many">>>;
1360
- fast_gates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1361
- timeout_ms: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1362
- block_on_failure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1363
1180
  /** Stop hook: hold "done" until the agent acknowledges each risky changed function (rigour_review_ack). */
1364
1181
  require_review_ack: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1365
- /** Enable DLP (Data Loss Prevention) pre-input hooks — default ON for security */
1366
- dlp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1367
1182
  }, "strip", z.ZodTypeAny, {
1368
- enabled: boolean;
1369
- tools: ("claude" | "cursor" | "cline" | "windsurf")[];
1370
- timeout_ms: number;
1371
- fast_gates: string[];
1372
- block_on_failure: boolean;
1373
1183
  require_review_ack: boolean;
1374
- dlp: boolean;
1375
1184
  }, {
1376
- enabled?: boolean | undefined;
1377
- tools?: ("claude" | "cursor" | "cline" | "windsurf")[] | undefined;
1378
- timeout_ms?: number | undefined;
1379
- fast_gates?: string[] | undefined;
1380
- block_on_failure?: boolean | undefined;
1381
1185
  require_review_ack?: boolean | undefined;
1382
- dlp?: boolean | undefined;
1383
1186
  }>>>;
1384
1187
  export declare const ConfigSchema: z.ZodObject<{
1385
- version: z.ZodDefault<z.ZodNumber>;
1386
1188
  preset: z.ZodOptional<z.ZodString>;
1387
1189
  paradigm: z.ZodOptional<z.ZodString>;
1388
1190
  commands: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -1405,32 +1207,19 @@ export declare const ConfigSchema: z.ZodObject<{
1405
1207
  max_file_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1406
1208
  forbid_todos: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1407
1209
  forbid_fixme: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1408
- forbid_paths: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1409
1210
  required_files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1410
1211
  ast: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1411
1212
  complexity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1412
1213
  max_methods: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1413
1214
  max_params: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1414
- max_nesting: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1415
- max_inheritance_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1416
- max_class_dependencies: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1417
- max_function_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1418
1215
  }, "strip", z.ZodTypeAny, {
1419
1216
  complexity: number;
1420
1217
  max_methods: number;
1421
1218
  max_params: number;
1422
- max_nesting: number;
1423
- max_inheritance_depth: number;
1424
- max_class_dependencies: number;
1425
- max_function_lines: number;
1426
1219
  }, {
1427
1220
  complexity?: number | undefined;
1428
1221
  max_methods?: number | undefined;
1429
1222
  max_params?: number | undefined;
1430
- max_nesting?: number | undefined;
1431
- max_inheritance_depth?: number | undefined;
1432
- max_class_dependencies?: number | undefined;
1433
- max_function_lines?: number | undefined;
1434
1223
  }>>>;
1435
1224
  staleness: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1436
1225
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1444,7 +1233,6 @@ export declare const ConfigSchema: z.ZodObject<{
1444
1233
  }>>>;
1445
1234
  dependencies: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1446
1235
  forbid: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1447
- trusted_registry: z.ZodOptional<z.ZodString>;
1448
1236
  detect_unused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1449
1237
  detect_heavy_alternatives: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1450
1238
  detect_duplicate_purpose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1455,10 +1243,8 @@ export declare const ConfigSchema: z.ZodObject<{
1455
1243
  detect_heavy_alternatives: boolean;
1456
1244
  detect_duplicate_purpose: boolean;
1457
1245
  unused_allowlist: string[];
1458
- trusted_registry?: string | undefined;
1459
1246
  }, {
1460
1247
  forbid?: string[] | undefined;
1461
- trusted_registry?: string | undefined;
1462
1248
  detect_unused?: boolean | undefined;
1463
1249
  detect_heavy_alternatives?: boolean | undefined;
1464
1250
  detect_duplicate_purpose?: boolean | undefined;
@@ -1505,29 +1291,14 @@ export declare const ConfigSchema: z.ZodObject<{
1505
1291
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1506
1292
  sensitivity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1507
1293
  mining_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1508
- ignored_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1509
- cross_file_patterns: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1510
- naming_consistency: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1511
- import_relationships: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1512
- max_cross_file_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1513
1294
  }, "strip", z.ZodTypeAny, {
1514
1295
  enabled: boolean;
1515
1296
  sensitivity: number;
1516
1297
  mining_depth: number;
1517
- ignored_patterns: string[];
1518
- cross_file_patterns: boolean;
1519
- naming_consistency: boolean;
1520
- import_relationships: boolean;
1521
- max_cross_file_depth: number;
1522
1298
  }, {
1523
1299
  enabled?: boolean | undefined;
1524
1300
  sensitivity?: number | undefined;
1525
1301
  mining_depth?: number | undefined;
1526
- ignored_patterns?: string[] | undefined;
1527
- cross_file_patterns?: boolean | undefined;
1528
- naming_consistency?: boolean | undefined;
1529
- import_relationships?: boolean | undefined;
1530
- max_cross_file_depth?: number | undefined;
1531
1302
  }>>>;
1532
1303
  environment: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1533
1304
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1548,36 +1319,27 @@ export declare const ConfigSchema: z.ZodObject<{
1548
1319
  retry_loop_breaker: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1549
1320
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1550
1321
  max_retries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1551
- auto_classify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1552
1322
  doc_sources: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
1553
1323
  }, "strip", z.ZodTypeAny, {
1554
1324
  enabled: boolean;
1555
1325
  max_retries: number;
1556
- auto_classify: boolean;
1557
1326
  doc_sources: Record<string, string>;
1558
1327
  }, {
1559
1328
  enabled?: boolean | undefined;
1560
1329
  max_retries?: number | undefined;
1561
- auto_classify?: boolean | undefined;
1562
1330
  doc_sources?: Record<string, string> | undefined;
1563
1331
  }>>>;
1564
1332
  agent_team: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1565
1333
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1566
1334
  max_concurrent_agents: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1567
- cross_agent_pattern_check: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1568
- handoff_verification: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1569
1335
  task_ownership: z.ZodDefault<z.ZodOptional<z.ZodEnum<["strict", "collaborative"]>>>;
1570
1336
  }, "strip", z.ZodTypeAny, {
1571
1337
  enabled: boolean;
1572
1338
  max_concurrent_agents: number;
1573
- cross_agent_pattern_check: boolean;
1574
- handoff_verification: boolean;
1575
1339
  task_ownership: "strict" | "collaborative";
1576
1340
  }, {
1577
1341
  enabled?: boolean | undefined;
1578
1342
  max_concurrent_agents?: number | undefined;
1579
- cross_agent_pattern_check?: boolean | undefined;
1580
- handoff_verification?: boolean | undefined;
1581
1343
  task_ownership?: "strict" | "collaborative" | undefined;
1582
1344
  }>>>;
1583
1345
  checkpoint: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -1585,19 +1347,16 @@ export declare const ConfigSchema: z.ZodObject<{
1585
1347
  interval_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1586
1348
  quality_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1587
1349
  drift_detection: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1588
- auto_save_on_failure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1589
1350
  }, "strip", z.ZodTypeAny, {
1590
1351
  enabled: boolean;
1591
1352
  interval_minutes: number;
1592
1353
  quality_threshold: number;
1593
1354
  drift_detection: boolean;
1594
- auto_save_on_failure: boolean;
1595
1355
  }, {
1596
1356
  enabled?: boolean | undefined;
1597
1357
  interval_minutes?: number | undefined;
1598
1358
  quality_threshold?: number | undefined;
1599
1359
  drift_detection?: boolean | undefined;
1600
- auto_save_on_failure?: boolean | undefined;
1601
1360
  }>>>;
1602
1361
  security: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1603
1362
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -1658,25 +1417,6 @@ export declare const ConfigSchema: z.ZodObject<{
1658
1417
  server_path_patterns?: string[] | undefined;
1659
1418
  allowlist_env_names?: string[] | undefined;
1660
1419
  }>>>;
1661
- adaptive: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1662
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1663
- base_coverage_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1664
- base_quality_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1665
- auto_detect_tier: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1666
- forced_tier: z.ZodOptional<z.ZodEnum<["hobby", "startup", "enterprise"]>>;
1667
- }, "strip", z.ZodTypeAny, {
1668
- enabled: boolean;
1669
- base_coverage_threshold: number;
1670
- base_quality_threshold: number;
1671
- auto_detect_tier: boolean;
1672
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
1673
- }, {
1674
- enabled?: boolean | undefined;
1675
- base_coverage_threshold?: number | undefined;
1676
- base_quality_threshold?: number | undefined;
1677
- auto_detect_tier?: boolean | undefined;
1678
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
1679
- }>>>;
1680
1420
  duplication_drift: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1681
1421
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1682
1422
  similarity_threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -1692,18 +1432,12 @@ export declare const ConfigSchema: z.ZodObject<{
1692
1432
  }>>>;
1693
1433
  hallucinated_imports: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1694
1434
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1695
- check_relative: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1696
- check_packages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1697
1435
  ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1698
1436
  }, "strip", z.ZodTypeAny, {
1699
1437
  enabled: boolean;
1700
- check_relative: boolean;
1701
- check_packages: boolean;
1702
1438
  ignore_patterns: string[];
1703
1439
  }, {
1704
1440
  enabled?: boolean | undefined;
1705
- check_relative?: boolean | undefined;
1706
- check_packages?: boolean | undefined;
1707
1441
  ignore_patterns?: string[] | undefined;
1708
1442
  }>>>;
1709
1443
  inconsistent_error_handling: z.ZodDefault<z.ZodOptional<z.ZodObject<{
@@ -1821,26 +1555,20 @@ export declare const ConfigSchema: z.ZodObject<{
1821
1555
  check_empty_tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1822
1556
  check_tautological: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1823
1557
  check_mock_heavy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1824
- check_snapshot_abuse: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1825
1558
  check_assertion_free_async: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1826
1559
  max_mocks_per_test: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1827
- ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1828
1560
  }, "strip", z.ZodTypeAny, {
1829
1561
  enabled: boolean;
1830
- ignore_patterns: string[];
1831
1562
  check_empty_tests: boolean;
1832
1563
  check_tautological: boolean;
1833
1564
  check_mock_heavy: boolean;
1834
- check_snapshot_abuse: boolean;
1835
1565
  check_assertion_free_async: boolean;
1836
1566
  max_mocks_per_test: number;
1837
1567
  }, {
1838
1568
  enabled?: boolean | undefined;
1839
- ignore_patterns?: string[] | undefined;
1840
1569
  check_empty_tests?: boolean | undefined;
1841
1570
  check_tautological?: boolean | undefined;
1842
1571
  check_mock_heavy?: boolean | undefined;
1843
- check_snapshot_abuse?: boolean | undefined;
1844
1572
  check_assertion_free_async?: boolean | undefined;
1845
1573
  max_mocks_per_test?: number | undefined;
1846
1574
  }>>>;
@@ -1878,28 +1606,6 @@ export declare const ConfigSchema: z.ZodObject<{
1878
1606
  protected_skills_paths?: string[] | undefined;
1879
1607
  exempt_paths?: string[] | undefined;
1880
1608
  }>>>;
1881
- input_validation: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1882
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1883
- block_on_detection: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1884
- min_secret_length: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1885
- custom_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1886
- ignore_patterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1887
- audit_log: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1888
- }, "strip", z.ZodTypeAny, {
1889
- enabled: boolean;
1890
- ignore_patterns: string[];
1891
- block_on_detection: boolean;
1892
- min_secret_length: number;
1893
- custom_patterns: string[];
1894
- audit_log: boolean;
1895
- }, {
1896
- enabled?: boolean | undefined;
1897
- ignore_patterns?: string[] | undefined;
1898
- block_on_detection?: boolean | undefined;
1899
- min_secret_length?: number | undefined;
1900
- custom_patterns?: string[] | undefined;
1901
- audit_log?: boolean | undefined;
1902
- }>>>;
1903
1609
  unindexed_reads: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1904
1610
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1905
1611
  migrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -1947,6 +1653,27 @@ export declare const ConfigSchema: z.ZodObject<{
1947
1653
  }, {
1948
1654
  enabled?: boolean | undefined;
1949
1655
  }>>>;
1656
+ /**
1657
+ * What a change made redundant, from the project's own TypeScript (review/typed/redundancy.ts): a null filter beside a
1658
+ * range on the same column, a nullable row type the query filters non-null, an optional member every host supplies, a
1659
+ * property written and never read. Runs at push, in `rigour review` and in a backtest (the program takes seconds to build).
1660
+ * `wire_contracts`: files whose types another service reads, so their members are never write-only here.
1661
+ * `schema_migrations`: folders of SQL migrations (relative, absolute, or `~/`; another repository's is fine, read only)
1662
+ * replayed to learn which columns are NOT NULL, for the nullable-not-null-column note. Missing folders are skipped.
1663
+ */
1664
+ redundancy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1665
+ enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1666
+ wire_contracts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1667
+ schema_migrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ enabled: boolean;
1670
+ wire_contracts: string[];
1671
+ schema_migrations: string[];
1672
+ }, {
1673
+ enabled?: boolean | undefined;
1674
+ wire_contracts?: string[] | undefined;
1675
+ schema_migrations?: string[] | undefined;
1676
+ }>>>;
1950
1677
  /** A parameter the change adds as optional that only tests omit (review/optional-params.ts). */
1951
1678
  optional_params: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1952
1679
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -2064,15 +1791,6 @@ export declare const ConfigSchema: z.ZodObject<{
2064
1791
  track_returns?: boolean | undefined;
2065
1792
  }>>>;
2066
1793
  deep: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2067
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2068
- pro: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2069
- max: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2070
- provider: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2071
- api_key: z.ZodOptional<z.ZodString>;
2072
- api_base_url: z.ZodOptional<z.ZodString>;
2073
- model_name: z.ZodOptional<z.ZodString>;
2074
- model_path: z.ZodOptional<z.ZodString>;
2075
- threads: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2076
1794
  max_tokens: z.ZodOptional<z.ZodNumber>;
2077
1795
  temperature: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2078
1796
  timeout_ms: z.ZodOptional<z.ZodNumber>;
@@ -2123,11 +1841,6 @@ export declare const ConfigSchema: z.ZodObject<{
2123
1841
  code_smells?: boolean | undefined;
2124
1842
  }>>>;
2125
1843
  }, "strip", z.ZodTypeAny, {
2126
- enabled: boolean;
2127
- pro: boolean;
2128
- max: boolean;
2129
- provider: string;
2130
- threads: number;
2131
1844
  temperature: number;
2132
1845
  intent_checks: boolean;
2133
1846
  checks: {
@@ -2140,10 +1853,6 @@ export declare const ConfigSchema: z.ZodObject<{
2140
1853
  error_handling: boolean;
2141
1854
  code_smells: boolean;
2142
1855
  };
2143
- api_key?: string | undefined;
2144
- api_base_url?: string | undefined;
2145
- model_name?: string | undefined;
2146
- model_path?: string | undefined;
2147
1856
  max_tokens?: number | undefined;
2148
1857
  timeout_ms?: number | undefined;
2149
1858
  budget_ms?: number | undefined;
@@ -2156,15 +1865,6 @@ export declare const ConfigSchema: z.ZodObject<{
2156
1865
  max_functions?: number | undefined;
2157
1866
  } | undefined;
2158
1867
  }, {
2159
- enabled?: boolean | undefined;
2160
- pro?: boolean | undefined;
2161
- max?: boolean | undefined;
2162
- provider?: string | undefined;
2163
- api_key?: string | undefined;
2164
- api_base_url?: string | undefined;
2165
- model_name?: string | undefined;
2166
- model_path?: string | undefined;
2167
- threads?: number | undefined;
2168
1868
  max_tokens?: number | undefined;
2169
1869
  temperature?: number | undefined;
2170
1870
  timeout_ms?: number | undefined;
@@ -2191,11 +1891,6 @@ export declare const ConfigSchema: z.ZodObject<{
2191
1891
  }>>>;
2192
1892
  }, "strip", z.ZodTypeAny, {
2193
1893
  deep: {
2194
- enabled: boolean;
2195
- pro: boolean;
2196
- max: boolean;
2197
- provider: string;
2198
- threads: number;
2199
1894
  temperature: number;
2200
1895
  intent_checks: boolean;
2201
1896
  checks: {
@@ -2208,10 +1903,6 @@ export declare const ConfigSchema: z.ZodObject<{
2208
1903
  error_handling: boolean;
2209
1904
  code_smells: boolean;
2210
1905
  };
2211
- api_key?: string | undefined;
2212
- api_base_url?: string | undefined;
2213
- model_name?: string | undefined;
2214
- model_path?: string | undefined;
2215
1906
  max_tokens?: number | undefined;
2216
1907
  timeout_ms?: number | undefined;
2217
1908
  budget_ms?: number | undefined;
@@ -2227,16 +1918,11 @@ export declare const ConfigSchema: z.ZodObject<{
2227
1918
  max_file_lines: number;
2228
1919
  forbid_todos: boolean;
2229
1920
  forbid_fixme: boolean;
2230
- forbid_paths: string[];
2231
1921
  required_files: string[];
2232
1922
  ast: {
2233
1923
  complexity: number;
2234
1924
  max_methods: number;
2235
1925
  max_params: number;
2236
- max_nesting: number;
2237
- max_inheritance_depth: number;
2238
- max_class_dependencies: number;
2239
- max_function_lines: number;
2240
1926
  };
2241
1927
  staleness: {
2242
1928
  enabled: boolean;
@@ -2248,7 +1934,6 @@ export declare const ConfigSchema: z.ZodObject<{
2248
1934
  detect_heavy_alternatives: boolean;
2249
1935
  detect_duplicate_purpose: boolean;
2250
1936
  unused_allowlist: string[];
2251
- trusted_registry?: string | undefined;
2252
1937
  };
2253
1938
  architecture: {
2254
1939
  boundaries: {
@@ -2265,11 +1950,6 @@ export declare const ConfigSchema: z.ZodObject<{
2265
1950
  enabled: boolean;
2266
1951
  sensitivity: number;
2267
1952
  mining_depth: number;
2268
- ignored_patterns: string[];
2269
- cross_file_patterns: boolean;
2270
- naming_consistency: boolean;
2271
- import_relationships: boolean;
2272
- max_cross_file_depth: number;
2273
1953
  };
2274
1954
  environment: {
2275
1955
  enabled: boolean;
@@ -2280,14 +1960,11 @@ export declare const ConfigSchema: z.ZodObject<{
2280
1960
  retry_loop_breaker: {
2281
1961
  enabled: boolean;
2282
1962
  max_retries: number;
2283
- auto_classify: boolean;
2284
1963
  doc_sources: Record<string, string>;
2285
1964
  };
2286
1965
  agent_team: {
2287
1966
  enabled: boolean;
2288
1967
  max_concurrent_agents: number;
2289
- cross_agent_pattern_check: boolean;
2290
- handoff_verification: boolean;
2291
1968
  task_ownership: "strict" | "collaborative";
2292
1969
  };
2293
1970
  checkpoint: {
@@ -2295,7 +1972,6 @@ export declare const ConfigSchema: z.ZodObject<{
2295
1972
  interval_minutes: number;
2296
1973
  quality_threshold: number;
2297
1974
  drift_detection: boolean;
2298
- auto_save_on_failure: boolean;
2299
1975
  };
2300
1976
  security: {
2301
1977
  enabled: boolean;
@@ -2318,13 +1994,6 @@ export declare const ConfigSchema: z.ZodObject<{
2318
1994
  server_path_patterns: string[];
2319
1995
  allowlist_env_names: string[];
2320
1996
  };
2321
- adaptive: {
2322
- enabled: boolean;
2323
- base_coverage_threshold: number;
2324
- base_quality_threshold: number;
2325
- auto_detect_tier: boolean;
2326
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
2327
- };
2328
1997
  duplication_drift: {
2329
1998
  enabled: boolean;
2330
1999
  similarity_threshold: number;
@@ -2332,8 +2001,6 @@ export declare const ConfigSchema: z.ZodObject<{
2332
2001
  };
2333
2002
  hallucinated_imports: {
2334
2003
  enabled: boolean;
2335
- check_relative: boolean;
2336
- check_packages: boolean;
2337
2004
  ignore_patterns: string[];
2338
2005
  };
2339
2006
  inconsistent_error_handling: {
@@ -2378,11 +2045,9 @@ export declare const ConfigSchema: z.ZodObject<{
2378
2045
  };
2379
2046
  test_quality: {
2380
2047
  enabled: boolean;
2381
- ignore_patterns: string[];
2382
2048
  check_empty_tests: boolean;
2383
2049
  check_tautological: boolean;
2384
2050
  check_mock_heavy: boolean;
2385
- check_snapshot_abuse: boolean;
2386
2051
  check_assertion_free_async: boolean;
2387
2052
  max_mocks_per_test: number;
2388
2053
  };
@@ -2395,14 +2060,6 @@ export declare const ConfigSchema: z.ZodObject<{
2395
2060
  protected_skills_paths: string[];
2396
2061
  exempt_paths: string[];
2397
2062
  };
2398
- input_validation: {
2399
- enabled: boolean;
2400
- ignore_patterns: string[];
2401
- block_on_detection: boolean;
2402
- min_secret_length: number;
2403
- custom_patterns: string[];
2404
- audit_log: boolean;
2405
- };
2406
2063
  unindexed_reads: {
2407
2064
  enabled: boolean;
2408
2065
  migrations: string[];
@@ -2421,6 +2078,11 @@ export declare const ConfigSchema: z.ZodObject<{
2421
2078
  change_sweep: {
2422
2079
  enabled: boolean;
2423
2080
  };
2081
+ redundancy: {
2082
+ enabled: boolean;
2083
+ wire_contracts: string[];
2084
+ schema_migrations: string[];
2085
+ };
2424
2086
  optional_params: {
2425
2087
  enabled: boolean;
2426
2088
  };
@@ -2466,15 +2128,6 @@ export declare const ConfigSchema: z.ZodObject<{
2466
2128
  };
2467
2129
  }, {
2468
2130
  deep?: {
2469
- enabled?: boolean | undefined;
2470
- pro?: boolean | undefined;
2471
- max?: boolean | undefined;
2472
- provider?: string | undefined;
2473
- api_key?: string | undefined;
2474
- api_base_url?: string | undefined;
2475
- model_name?: string | undefined;
2476
- model_path?: string | undefined;
2477
- threads?: number | undefined;
2478
2131
  max_tokens?: number | undefined;
2479
2132
  temperature?: number | undefined;
2480
2133
  timeout_ms?: number | undefined;
@@ -2502,16 +2155,11 @@ export declare const ConfigSchema: z.ZodObject<{
2502
2155
  max_file_lines?: number | undefined;
2503
2156
  forbid_todos?: boolean | undefined;
2504
2157
  forbid_fixme?: boolean | undefined;
2505
- forbid_paths?: string[] | undefined;
2506
2158
  required_files?: string[] | undefined;
2507
2159
  ast?: {
2508
2160
  complexity?: number | undefined;
2509
2161
  max_methods?: number | undefined;
2510
2162
  max_params?: number | undefined;
2511
- max_nesting?: number | undefined;
2512
- max_inheritance_depth?: number | undefined;
2513
- max_class_dependencies?: number | undefined;
2514
- max_function_lines?: number | undefined;
2515
2163
  } | undefined;
2516
2164
  staleness?: {
2517
2165
  enabled?: boolean | undefined;
@@ -2519,7 +2167,6 @@ export declare const ConfigSchema: z.ZodObject<{
2519
2167
  } | undefined;
2520
2168
  dependencies?: {
2521
2169
  forbid?: string[] | undefined;
2522
- trusted_registry?: string | undefined;
2523
2170
  detect_unused?: boolean | undefined;
2524
2171
  detect_heavy_alternatives?: boolean | undefined;
2525
2172
  detect_duplicate_purpose?: boolean | undefined;
@@ -2540,11 +2187,6 @@ export declare const ConfigSchema: z.ZodObject<{
2540
2187
  enabled?: boolean | undefined;
2541
2188
  sensitivity?: number | undefined;
2542
2189
  mining_depth?: number | undefined;
2543
- ignored_patterns?: string[] | undefined;
2544
- cross_file_patterns?: boolean | undefined;
2545
- naming_consistency?: boolean | undefined;
2546
- import_relationships?: boolean | undefined;
2547
- max_cross_file_depth?: number | undefined;
2548
2190
  } | undefined;
2549
2191
  environment?: {
2550
2192
  enabled?: boolean | undefined;
@@ -2555,14 +2197,11 @@ export declare const ConfigSchema: z.ZodObject<{
2555
2197
  retry_loop_breaker?: {
2556
2198
  enabled?: boolean | undefined;
2557
2199
  max_retries?: number | undefined;
2558
- auto_classify?: boolean | undefined;
2559
2200
  doc_sources?: Record<string, string> | undefined;
2560
2201
  } | undefined;
2561
2202
  agent_team?: {
2562
2203
  enabled?: boolean | undefined;
2563
2204
  max_concurrent_agents?: number | undefined;
2564
- cross_agent_pattern_check?: boolean | undefined;
2565
- handoff_verification?: boolean | undefined;
2566
2205
  task_ownership?: "strict" | "collaborative" | undefined;
2567
2206
  } | undefined;
2568
2207
  checkpoint?: {
@@ -2570,7 +2209,6 @@ export declare const ConfigSchema: z.ZodObject<{
2570
2209
  interval_minutes?: number | undefined;
2571
2210
  quality_threshold?: number | undefined;
2572
2211
  drift_detection?: boolean | undefined;
2573
- auto_save_on_failure?: boolean | undefined;
2574
2212
  } | undefined;
2575
2213
  security?: {
2576
2214
  enabled?: boolean | undefined;
@@ -2593,13 +2231,6 @@ export declare const ConfigSchema: z.ZodObject<{
2593
2231
  server_path_patterns?: string[] | undefined;
2594
2232
  allowlist_env_names?: string[] | undefined;
2595
2233
  } | undefined;
2596
- adaptive?: {
2597
- enabled?: boolean | undefined;
2598
- base_coverage_threshold?: number | undefined;
2599
- base_quality_threshold?: number | undefined;
2600
- auto_detect_tier?: boolean | undefined;
2601
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
2602
- } | undefined;
2603
2234
  duplication_drift?: {
2604
2235
  enabled?: boolean | undefined;
2605
2236
  similarity_threshold?: number | undefined;
@@ -2607,8 +2238,6 @@ export declare const ConfigSchema: z.ZodObject<{
2607
2238
  } | undefined;
2608
2239
  hallucinated_imports?: {
2609
2240
  enabled?: boolean | undefined;
2610
- check_relative?: boolean | undefined;
2611
- check_packages?: boolean | undefined;
2612
2241
  ignore_patterns?: string[] | undefined;
2613
2242
  } | undefined;
2614
2243
  inconsistent_error_handling?: {
@@ -2653,11 +2282,9 @@ export declare const ConfigSchema: z.ZodObject<{
2653
2282
  } | undefined;
2654
2283
  test_quality?: {
2655
2284
  enabled?: boolean | undefined;
2656
- ignore_patterns?: string[] | undefined;
2657
2285
  check_empty_tests?: boolean | undefined;
2658
2286
  check_tautological?: boolean | undefined;
2659
2287
  check_mock_heavy?: boolean | undefined;
2660
- check_snapshot_abuse?: boolean | undefined;
2661
2288
  check_assertion_free_async?: boolean | undefined;
2662
2289
  max_mocks_per_test?: number | undefined;
2663
2290
  } | undefined;
@@ -2670,14 +2297,6 @@ export declare const ConfigSchema: z.ZodObject<{
2670
2297
  protected_skills_paths?: string[] | undefined;
2671
2298
  exempt_paths?: string[] | undefined;
2672
2299
  } | undefined;
2673
- input_validation?: {
2674
- enabled?: boolean | undefined;
2675
- ignore_patterns?: string[] | undefined;
2676
- block_on_detection?: boolean | undefined;
2677
- min_secret_length?: number | undefined;
2678
- custom_patterns?: string[] | undefined;
2679
- audit_log?: boolean | undefined;
2680
- } | undefined;
2681
2300
  unindexed_reads?: {
2682
2301
  enabled?: boolean | undefined;
2683
2302
  migrations?: string[] | undefined;
@@ -2696,6 +2315,11 @@ export declare const ConfigSchema: z.ZodObject<{
2696
2315
  change_sweep?: {
2697
2316
  enabled?: boolean | undefined;
2698
2317
  } | undefined;
2318
+ redundancy?: {
2319
+ enabled?: boolean | undefined;
2320
+ wire_contracts?: string[] | undefined;
2321
+ schema_migrations?: string[] | undefined;
2322
+ } | undefined;
2699
2323
  optional_params?: {
2700
2324
  enabled?: boolean | undefined;
2701
2325
  } | undefined;
@@ -2741,31 +2365,12 @@ export declare const ConfigSchema: z.ZodObject<{
2741
2365
  } | undefined;
2742
2366
  }>>>;
2743
2367
  hooks: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2744
- enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2745
- tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["claude", "cursor", "cline", "windsurf"]>, "many">>>;
2746
- fast_gates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2747
- timeout_ms: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2748
- block_on_failure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2749
2368
  /** Stop hook: hold "done" until the agent acknowledges each risky changed function (rigour_review_ack). */
2750
2369
  require_review_ack: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2751
- /** Enable DLP (Data Loss Prevention) pre-input hooks — default ON for security */
2752
- dlp: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2753
2370
  }, "strip", z.ZodTypeAny, {
2754
- enabled: boolean;
2755
- tools: ("claude" | "cursor" | "cline" | "windsurf")[];
2756
- timeout_ms: number;
2757
- fast_gates: string[];
2758
- block_on_failure: boolean;
2759
2371
  require_review_ack: boolean;
2760
- dlp: boolean;
2761
2372
  }, {
2762
- enabled?: boolean | undefined;
2763
- tools?: ("claude" | "cursor" | "cline" | "windsurf")[] | undefined;
2764
- timeout_ms?: number | undefined;
2765
- fast_gates?: string[] | undefined;
2766
- block_on_failure?: boolean | undefined;
2767
2373
  require_review_ack?: boolean | undefined;
2768
- dlp?: boolean | undefined;
2769
2374
  }>>>;
2770
2375
  output: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2771
2376
  report_path: z.ZodDefault<z.ZodString>;
@@ -2782,31 +2387,111 @@ export declare const ConfigSchema: z.ZodObject<{
2782
2387
  show_preexisting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2783
2388
  /** The GitHub account whose token fetches the pull request's previous review (`gh auth token --user`). */
2784
2389
  github_account: z.ZodOptional<z.ZodString>;
2785
- /** The fresh reviewer (review/reviewer.ts): the person's own coding agent CLI, headless. `enabled` runs it at every push; `rigour review --reviewer` runs it on request. */
2390
+ /** The reviewer (review/reviewer.ts): the person's own coding-agent CLIs, headless and read-only. `enabled` runs it at push; `rigour review --reviewer` runs it on request. */
2786
2391
  reviewer: z.ZodDefault<z.ZodOptional<z.ZodObject<{
2787
2392
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2788
- command: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2393
+ /**
2394
+ * At push, once the deterministic gates pass: `background` (default) starts the model review of the pushed
2395
+ * commit without holding the push; `wait` holds the push for it; `off` reviews only on request. Either way
2396
+ * a model is asked only when the branch has an open, non-draft pull request (someone will read the push).
2397
+ */
2398
+ on_push: z.ZodDefault<z.ZodOptional<z.ZodEnum<["background", "wait", "off"]>>>;
2399
+ /** The adapters, in order: claude, cursor, codex. */
2400
+ reviewers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2401
+ /** single: the first installed reviewer. cross: prefer a vendor not on the commits' trailers. full: two vendors, verdicts merged. */
2402
+ mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["single", "cross", "full"]>>>;
2403
+ /** The model for the claude reviewer. */
2789
2404
  model: z.ZodOptional<z.ZodString>;
2405
+ /** A model per reviewer name, e.g. { cursor: "auto" }. */
2406
+ models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2790
2407
  timeout_ms: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2408
+ /**
2409
+ * With two vendors: match their findings, cross-examine only what one raised, and block only on what is
2410
+ * confirmed (review/reviewer/panel.ts). `on` implies mode full. `required`: no user or run may turn it off,
2411
+ * and a run without two vendors is unavailable instead of falling back to one.
2412
+ */
2413
+ panel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["off", "on", "required"]>>>;
2414
+ /** No user or run may review with fewer than the team's mode (a protected branch, CI). */
2415
+ mode_required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2416
+ /**
2417
+ * Whether people may dismiss a reviewer finding as not a bug (`rigour dismiss <id>`, Studio). Off by default:
2418
+ * a wrong finding is fixed by improving the reviewer, a right one by fixing the code. A team decision only.
2419
+ */
2420
+ dismissals: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2421
+ /** Findings cross-examined per review at most; the rest are shown as disputed. */
2422
+ panel_max_items: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2423
+ /**
2424
+ * Spending caps per repository and local day, unset by default. Runs are checked before any judge starts
2425
+ * (a cross-examination counts too); dollars are the ones the CLIs reported, so a cap stops new reviews once
2426
+ * reached. Past a cap a review is skipped, or unavailable when the team requires the reviewer.
2427
+ */
2428
+ max_runs_per_day: z.ZodOptional<z.ZodNumber>;
2429
+ max_usd_per_day: z.ZodOptional<z.ZodNumber>;
2430
+ /** Judges in a full or panel review, each from a different vendor; capped by the vendors installed. */
2431
+ judges: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<2>, z.ZodLiteral<3>]>>>;
2432
+ /**
2433
+ * When a full or panel review adds judges. `always`: every review. `risk`: only when the change has a
2434
+ * risky function (the router's score), a human review exists, or the run is the --full hard stop; any
2435
+ * other change gets one judge. Measured against `always` by the backtest before you rely on it.
2436
+ */
2437
+ escalate: z.ZodDefault<z.ZodOptional<z.ZodEnum<["always", "risk"]>>>;
2438
+ /** A model per reviewer name for cross-examination (a narrow verification task), e.g. { claude: "haiku" }. */
2439
+ cross_models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
2791
2440
  }, "strip", z.ZodTypeAny, {
2792
2441
  enabled: boolean;
2442
+ mode: "single" | "cross" | "full";
2793
2443
  timeout_ms: number;
2794
- command: string;
2444
+ on_push: "off" | "background" | "wait";
2445
+ reviewers: string[];
2446
+ models: Record<string, string>;
2447
+ panel: "off" | "on" | "required";
2448
+ mode_required: boolean;
2449
+ dismissals: boolean;
2450
+ panel_max_items: number;
2451
+ judges: 2 | 3;
2452
+ escalate: "always" | "risk";
2453
+ cross_models: Record<string, string>;
2795
2454
  model?: string | undefined;
2455
+ max_runs_per_day?: number | undefined;
2456
+ max_usd_per_day?: number | undefined;
2796
2457
  }, {
2797
2458
  enabled?: boolean | undefined;
2459
+ mode?: "single" | "cross" | "full" | undefined;
2798
2460
  timeout_ms?: number | undefined;
2799
- command?: string | undefined;
2461
+ on_push?: "off" | "background" | "wait" | undefined;
2462
+ reviewers?: string[] | undefined;
2800
2463
  model?: string | undefined;
2464
+ models?: Record<string, string> | undefined;
2465
+ panel?: "off" | "on" | "required" | undefined;
2466
+ mode_required?: boolean | undefined;
2467
+ dismissals?: boolean | undefined;
2468
+ panel_max_items?: number | undefined;
2469
+ max_runs_per_day?: number | undefined;
2470
+ max_usd_per_day?: number | undefined;
2471
+ judges?: 2 | 3 | undefined;
2472
+ escalate?: "always" | "risk" | undefined;
2473
+ cross_models?: Record<string, string> | undefined;
2801
2474
  }>>>;
2802
2475
  }, "strip", z.ZodTypeAny, {
2803
2476
  include_heuristics: boolean;
2804
2477
  show_preexisting: boolean;
2805
2478
  reviewer: {
2806
2479
  enabled: boolean;
2480
+ mode: "single" | "cross" | "full";
2807
2481
  timeout_ms: number;
2808
- command: string;
2482
+ on_push: "off" | "background" | "wait";
2483
+ reviewers: string[];
2484
+ models: Record<string, string>;
2485
+ panel: "off" | "on" | "required";
2486
+ mode_required: boolean;
2487
+ dismissals: boolean;
2488
+ panel_max_items: number;
2489
+ judges: 2 | 3;
2490
+ escalate: "always" | "risk";
2491
+ cross_models: Record<string, string>;
2809
2492
  model?: string | undefined;
2493
+ max_runs_per_day?: number | undefined;
2494
+ max_usd_per_day?: number | undefined;
2810
2495
  };
2811
2496
  github_account?: string | undefined;
2812
2497
  }, {
@@ -2815,16 +2500,26 @@ export declare const ConfigSchema: z.ZodObject<{
2815
2500
  github_account?: string | undefined;
2816
2501
  reviewer?: {
2817
2502
  enabled?: boolean | undefined;
2503
+ mode?: "single" | "cross" | "full" | undefined;
2818
2504
  timeout_ms?: number | undefined;
2819
- command?: string | undefined;
2505
+ on_push?: "off" | "background" | "wait" | undefined;
2506
+ reviewers?: string[] | undefined;
2820
2507
  model?: string | undefined;
2508
+ models?: Record<string, string> | undefined;
2509
+ panel?: "off" | "on" | "required" | undefined;
2510
+ mode_required?: boolean | undefined;
2511
+ dismissals?: boolean | undefined;
2512
+ panel_max_items?: number | undefined;
2513
+ max_runs_per_day?: number | undefined;
2514
+ max_usd_per_day?: number | undefined;
2515
+ judges?: 2 | 3 | undefined;
2516
+ escalate?: "always" | "risk" | undefined;
2517
+ cross_models?: Record<string, string> | undefined;
2821
2518
  } | undefined;
2822
2519
  }>>>;
2823
- planned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2824
2520
  ignore: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2825
2521
  }, "strip", z.ZodTypeAny, {
2826
2522
  ignore: string[];
2827
- version: number;
2828
2523
  commands: {
2829
2524
  format?: string | undefined;
2830
2525
  lint?: string | undefined;
@@ -2833,11 +2528,6 @@ export declare const ConfigSchema: z.ZodObject<{
2833
2528
  };
2834
2529
  gates: {
2835
2530
  deep: {
2836
- enabled: boolean;
2837
- pro: boolean;
2838
- max: boolean;
2839
- provider: string;
2840
- threads: number;
2841
2531
  temperature: number;
2842
2532
  intent_checks: boolean;
2843
2533
  checks: {
@@ -2850,10 +2540,6 @@ export declare const ConfigSchema: z.ZodObject<{
2850
2540
  error_handling: boolean;
2851
2541
  code_smells: boolean;
2852
2542
  };
2853
- api_key?: string | undefined;
2854
- api_base_url?: string | undefined;
2855
- model_name?: string | undefined;
2856
- model_path?: string | undefined;
2857
2543
  max_tokens?: number | undefined;
2858
2544
  timeout_ms?: number | undefined;
2859
2545
  budget_ms?: number | undefined;
@@ -2869,16 +2555,11 @@ export declare const ConfigSchema: z.ZodObject<{
2869
2555
  max_file_lines: number;
2870
2556
  forbid_todos: boolean;
2871
2557
  forbid_fixme: boolean;
2872
- forbid_paths: string[];
2873
2558
  required_files: string[];
2874
2559
  ast: {
2875
2560
  complexity: number;
2876
2561
  max_methods: number;
2877
2562
  max_params: number;
2878
- max_nesting: number;
2879
- max_inheritance_depth: number;
2880
- max_class_dependencies: number;
2881
- max_function_lines: number;
2882
2563
  };
2883
2564
  staleness: {
2884
2565
  enabled: boolean;
@@ -2890,7 +2571,6 @@ export declare const ConfigSchema: z.ZodObject<{
2890
2571
  detect_heavy_alternatives: boolean;
2891
2572
  detect_duplicate_purpose: boolean;
2892
2573
  unused_allowlist: string[];
2893
- trusted_registry?: string | undefined;
2894
2574
  };
2895
2575
  architecture: {
2896
2576
  boundaries: {
@@ -2907,11 +2587,6 @@ export declare const ConfigSchema: z.ZodObject<{
2907
2587
  enabled: boolean;
2908
2588
  sensitivity: number;
2909
2589
  mining_depth: number;
2910
- ignored_patterns: string[];
2911
- cross_file_patterns: boolean;
2912
- naming_consistency: boolean;
2913
- import_relationships: boolean;
2914
- max_cross_file_depth: number;
2915
2590
  };
2916
2591
  environment: {
2917
2592
  enabled: boolean;
@@ -2922,14 +2597,11 @@ export declare const ConfigSchema: z.ZodObject<{
2922
2597
  retry_loop_breaker: {
2923
2598
  enabled: boolean;
2924
2599
  max_retries: number;
2925
- auto_classify: boolean;
2926
2600
  doc_sources: Record<string, string>;
2927
2601
  };
2928
2602
  agent_team: {
2929
2603
  enabled: boolean;
2930
2604
  max_concurrent_agents: number;
2931
- cross_agent_pattern_check: boolean;
2932
- handoff_verification: boolean;
2933
2605
  task_ownership: "strict" | "collaborative";
2934
2606
  };
2935
2607
  checkpoint: {
@@ -2937,7 +2609,6 @@ export declare const ConfigSchema: z.ZodObject<{
2937
2609
  interval_minutes: number;
2938
2610
  quality_threshold: number;
2939
2611
  drift_detection: boolean;
2940
- auto_save_on_failure: boolean;
2941
2612
  };
2942
2613
  security: {
2943
2614
  enabled: boolean;
@@ -2960,13 +2631,6 @@ export declare const ConfigSchema: z.ZodObject<{
2960
2631
  server_path_patterns: string[];
2961
2632
  allowlist_env_names: string[];
2962
2633
  };
2963
- adaptive: {
2964
- enabled: boolean;
2965
- base_coverage_threshold: number;
2966
- base_quality_threshold: number;
2967
- auto_detect_tier: boolean;
2968
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
2969
- };
2970
2634
  duplication_drift: {
2971
2635
  enabled: boolean;
2972
2636
  similarity_threshold: number;
@@ -2974,8 +2638,6 @@ export declare const ConfigSchema: z.ZodObject<{
2974
2638
  };
2975
2639
  hallucinated_imports: {
2976
2640
  enabled: boolean;
2977
- check_relative: boolean;
2978
- check_packages: boolean;
2979
2641
  ignore_patterns: string[];
2980
2642
  };
2981
2643
  inconsistent_error_handling: {
@@ -3020,11 +2682,9 @@ export declare const ConfigSchema: z.ZodObject<{
3020
2682
  };
3021
2683
  test_quality: {
3022
2684
  enabled: boolean;
3023
- ignore_patterns: string[];
3024
2685
  check_empty_tests: boolean;
3025
2686
  check_tautological: boolean;
3026
2687
  check_mock_heavy: boolean;
3027
- check_snapshot_abuse: boolean;
3028
2688
  check_assertion_free_async: boolean;
3029
2689
  max_mocks_per_test: number;
3030
2690
  };
@@ -3037,14 +2697,6 @@ export declare const ConfigSchema: z.ZodObject<{
3037
2697
  protected_skills_paths: string[];
3038
2698
  exempt_paths: string[];
3039
2699
  };
3040
- input_validation: {
3041
- enabled: boolean;
3042
- ignore_patterns: string[];
3043
- block_on_detection: boolean;
3044
- min_secret_length: number;
3045
- custom_patterns: string[];
3046
- audit_log: boolean;
3047
- };
3048
2700
  unindexed_reads: {
3049
2701
  enabled: boolean;
3050
2702
  migrations: string[];
@@ -3063,6 +2715,11 @@ export declare const ConfigSchema: z.ZodObject<{
3063
2715
  change_sweep: {
3064
2716
  enabled: boolean;
3065
2717
  };
2718
+ redundancy: {
2719
+ enabled: boolean;
2720
+ wire_contracts: string[];
2721
+ schema_migrations: string[];
2722
+ };
3066
2723
  optional_params: {
3067
2724
  enabled: boolean;
3068
2725
  };
@@ -3108,13 +2765,7 @@ export declare const ConfigSchema: z.ZodObject<{
3108
2765
  };
3109
2766
  };
3110
2767
  hooks: {
3111
- enabled: boolean;
3112
- tools: ("claude" | "cursor" | "cline" | "windsurf")[];
3113
- timeout_ms: number;
3114
- fast_gates: string[];
3115
- block_on_failure: boolean;
3116
2768
  require_review_ack: boolean;
3117
- dlp: boolean;
3118
2769
  };
3119
2770
  output: {
3120
2771
  report_path: string;
@@ -3124,18 +2775,28 @@ export declare const ConfigSchema: z.ZodObject<{
3124
2775
  show_preexisting: boolean;
3125
2776
  reviewer: {
3126
2777
  enabled: boolean;
2778
+ mode: "single" | "cross" | "full";
3127
2779
  timeout_ms: number;
3128
- command: string;
2780
+ on_push: "off" | "background" | "wait";
2781
+ reviewers: string[];
2782
+ models: Record<string, string>;
2783
+ panel: "off" | "on" | "required";
2784
+ mode_required: boolean;
2785
+ dismissals: boolean;
2786
+ panel_max_items: number;
2787
+ judges: 2 | 3;
2788
+ escalate: "always" | "risk";
2789
+ cross_models: Record<string, string>;
3129
2790
  model?: string | undefined;
2791
+ max_runs_per_day?: number | undefined;
2792
+ max_usd_per_day?: number | undefined;
3130
2793
  };
3131
2794
  github_account?: string | undefined;
3132
2795
  };
3133
- planned: string[];
3134
2796
  preset?: string | undefined;
3135
2797
  paradigm?: string | undefined;
3136
2798
  }, {
3137
2799
  ignore?: string[] | undefined;
3138
- version?: number | undefined;
3139
2800
  preset?: string | undefined;
3140
2801
  paradigm?: string | undefined;
3141
2802
  commands?: {
@@ -3146,15 +2807,6 @@ export declare const ConfigSchema: z.ZodObject<{
3146
2807
  } | undefined;
3147
2808
  gates?: {
3148
2809
  deep?: {
3149
- enabled?: boolean | undefined;
3150
- pro?: boolean | undefined;
3151
- max?: boolean | undefined;
3152
- provider?: string | undefined;
3153
- api_key?: string | undefined;
3154
- api_base_url?: string | undefined;
3155
- model_name?: string | undefined;
3156
- model_path?: string | undefined;
3157
- threads?: number | undefined;
3158
2810
  max_tokens?: number | undefined;
3159
2811
  temperature?: number | undefined;
3160
2812
  timeout_ms?: number | undefined;
@@ -3182,16 +2834,11 @@ export declare const ConfigSchema: z.ZodObject<{
3182
2834
  max_file_lines?: number | undefined;
3183
2835
  forbid_todos?: boolean | undefined;
3184
2836
  forbid_fixme?: boolean | undefined;
3185
- forbid_paths?: string[] | undefined;
3186
2837
  required_files?: string[] | undefined;
3187
2838
  ast?: {
3188
2839
  complexity?: number | undefined;
3189
2840
  max_methods?: number | undefined;
3190
2841
  max_params?: number | undefined;
3191
- max_nesting?: number | undefined;
3192
- max_inheritance_depth?: number | undefined;
3193
- max_class_dependencies?: number | undefined;
3194
- max_function_lines?: number | undefined;
3195
2842
  } | undefined;
3196
2843
  staleness?: {
3197
2844
  enabled?: boolean | undefined;
@@ -3199,7 +2846,6 @@ export declare const ConfigSchema: z.ZodObject<{
3199
2846
  } | undefined;
3200
2847
  dependencies?: {
3201
2848
  forbid?: string[] | undefined;
3202
- trusted_registry?: string | undefined;
3203
2849
  detect_unused?: boolean | undefined;
3204
2850
  detect_heavy_alternatives?: boolean | undefined;
3205
2851
  detect_duplicate_purpose?: boolean | undefined;
@@ -3220,11 +2866,6 @@ export declare const ConfigSchema: z.ZodObject<{
3220
2866
  enabled?: boolean | undefined;
3221
2867
  sensitivity?: number | undefined;
3222
2868
  mining_depth?: number | undefined;
3223
- ignored_patterns?: string[] | undefined;
3224
- cross_file_patterns?: boolean | undefined;
3225
- naming_consistency?: boolean | undefined;
3226
- import_relationships?: boolean | undefined;
3227
- max_cross_file_depth?: number | undefined;
3228
2869
  } | undefined;
3229
2870
  environment?: {
3230
2871
  enabled?: boolean | undefined;
@@ -3235,14 +2876,11 @@ export declare const ConfigSchema: z.ZodObject<{
3235
2876
  retry_loop_breaker?: {
3236
2877
  enabled?: boolean | undefined;
3237
2878
  max_retries?: number | undefined;
3238
- auto_classify?: boolean | undefined;
3239
2879
  doc_sources?: Record<string, string> | undefined;
3240
2880
  } | undefined;
3241
2881
  agent_team?: {
3242
2882
  enabled?: boolean | undefined;
3243
2883
  max_concurrent_agents?: number | undefined;
3244
- cross_agent_pattern_check?: boolean | undefined;
3245
- handoff_verification?: boolean | undefined;
3246
2884
  task_ownership?: "strict" | "collaborative" | undefined;
3247
2885
  } | undefined;
3248
2886
  checkpoint?: {
@@ -3250,7 +2888,6 @@ export declare const ConfigSchema: z.ZodObject<{
3250
2888
  interval_minutes?: number | undefined;
3251
2889
  quality_threshold?: number | undefined;
3252
2890
  drift_detection?: boolean | undefined;
3253
- auto_save_on_failure?: boolean | undefined;
3254
2891
  } | undefined;
3255
2892
  security?: {
3256
2893
  enabled?: boolean | undefined;
@@ -3273,13 +2910,6 @@ export declare const ConfigSchema: z.ZodObject<{
3273
2910
  server_path_patterns?: string[] | undefined;
3274
2911
  allowlist_env_names?: string[] | undefined;
3275
2912
  } | undefined;
3276
- adaptive?: {
3277
- enabled?: boolean | undefined;
3278
- base_coverage_threshold?: number | undefined;
3279
- base_quality_threshold?: number | undefined;
3280
- auto_detect_tier?: boolean | undefined;
3281
- forced_tier?: "hobby" | "startup" | "enterprise" | undefined;
3282
- } | undefined;
3283
2913
  duplication_drift?: {
3284
2914
  enabled?: boolean | undefined;
3285
2915
  similarity_threshold?: number | undefined;
@@ -3287,8 +2917,6 @@ export declare const ConfigSchema: z.ZodObject<{
3287
2917
  } | undefined;
3288
2918
  hallucinated_imports?: {
3289
2919
  enabled?: boolean | undefined;
3290
- check_relative?: boolean | undefined;
3291
- check_packages?: boolean | undefined;
3292
2920
  ignore_patterns?: string[] | undefined;
3293
2921
  } | undefined;
3294
2922
  inconsistent_error_handling?: {
@@ -3333,11 +2961,9 @@ export declare const ConfigSchema: z.ZodObject<{
3333
2961
  } | undefined;
3334
2962
  test_quality?: {
3335
2963
  enabled?: boolean | undefined;
3336
- ignore_patterns?: string[] | undefined;
3337
2964
  check_empty_tests?: boolean | undefined;
3338
2965
  check_tautological?: boolean | undefined;
3339
2966
  check_mock_heavy?: boolean | undefined;
3340
- check_snapshot_abuse?: boolean | undefined;
3341
2967
  check_assertion_free_async?: boolean | undefined;
3342
2968
  max_mocks_per_test?: number | undefined;
3343
2969
  } | undefined;
@@ -3350,14 +2976,6 @@ export declare const ConfigSchema: z.ZodObject<{
3350
2976
  protected_skills_paths?: string[] | undefined;
3351
2977
  exempt_paths?: string[] | undefined;
3352
2978
  } | undefined;
3353
- input_validation?: {
3354
- enabled?: boolean | undefined;
3355
- ignore_patterns?: string[] | undefined;
3356
- block_on_detection?: boolean | undefined;
3357
- min_secret_length?: number | undefined;
3358
- custom_patterns?: string[] | undefined;
3359
- audit_log?: boolean | undefined;
3360
- } | undefined;
3361
2979
  unindexed_reads?: {
3362
2980
  enabled?: boolean | undefined;
3363
2981
  migrations?: string[] | undefined;
@@ -3376,6 +2994,11 @@ export declare const ConfigSchema: z.ZodObject<{
3376
2994
  change_sweep?: {
3377
2995
  enabled?: boolean | undefined;
3378
2996
  } | undefined;
2997
+ redundancy?: {
2998
+ enabled?: boolean | undefined;
2999
+ wire_contracts?: string[] | undefined;
3000
+ schema_migrations?: string[] | undefined;
3001
+ } | undefined;
3379
3002
  optional_params?: {
3380
3003
  enabled?: boolean | undefined;
3381
3004
  } | undefined;
@@ -3421,13 +3044,7 @@ export declare const ConfigSchema: z.ZodObject<{
3421
3044
  } | undefined;
3422
3045
  } | undefined;
3423
3046
  hooks?: {
3424
- enabled?: boolean | undefined;
3425
- tools?: ("claude" | "cursor" | "cline" | "windsurf")[] | undefined;
3426
- timeout_ms?: number | undefined;
3427
- fast_gates?: string[] | undefined;
3428
- block_on_failure?: boolean | undefined;
3429
3047
  require_review_ack?: boolean | undefined;
3430
- dlp?: boolean | undefined;
3431
3048
  } | undefined;
3432
3049
  output?: {
3433
3050
  report_path?: string | undefined;
@@ -3438,12 +3055,23 @@ export declare const ConfigSchema: z.ZodObject<{
3438
3055
  github_account?: string | undefined;
3439
3056
  reviewer?: {
3440
3057
  enabled?: boolean | undefined;
3058
+ mode?: "single" | "cross" | "full" | undefined;
3441
3059
  timeout_ms?: number | undefined;
3442
- command?: string | undefined;
3060
+ on_push?: "off" | "background" | "wait" | undefined;
3061
+ reviewers?: string[] | undefined;
3443
3062
  model?: string | undefined;
3063
+ models?: Record<string, string> | undefined;
3064
+ panel?: "off" | "on" | "required" | undefined;
3065
+ mode_required?: boolean | undefined;
3066
+ dismissals?: boolean | undefined;
3067
+ panel_max_items?: number | undefined;
3068
+ max_runs_per_day?: number | undefined;
3069
+ max_usd_per_day?: number | undefined;
3070
+ judges?: 2 | 3 | undefined;
3071
+ escalate?: "always" | "risk" | undefined;
3072
+ cross_models?: Record<string, string> | undefined;
3444
3073
  } | undefined;
3445
3074
  } | undefined;
3446
- planned?: string[] | undefined;
3447
3075
  }>;
3448
3076
  export type Gates = z.infer<typeof GatesSchema>;
3449
3077
  export type Commands = z.infer<typeof CommandsSchema>;
@@ -3642,7 +3270,7 @@ export declare const ReportSchema: z.ZodObject<{
3642
3270
  } | undefined;
3643
3271
  model?: string | undefined;
3644
3272
  error?: string | undefined;
3645
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3273
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3646
3274
  model_fallback?: boolean | undefined;
3647
3275
  total_ms?: number | undefined;
3648
3276
  files_analyzed?: number | undefined;
@@ -3670,7 +3298,7 @@ export declare const ReportSchema: z.ZodObject<{
3670
3298
  } | undefined;
3671
3299
  model?: string | undefined;
3672
3300
  error?: string | undefined;
3673
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3301
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3674
3302
  model_fallback?: boolean | undefined;
3675
3303
  total_ms?: number | undefined;
3676
3304
  files_analyzed?: number | undefined;
@@ -3701,7 +3329,7 @@ export declare const ReportSchema: z.ZodObject<{
3701
3329
  } | undefined;
3702
3330
  model?: string | undefined;
3703
3331
  error?: string | undefined;
3704
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3332
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3705
3333
  model_fallback?: boolean | undefined;
3706
3334
  total_ms?: number | undefined;
3707
3335
  files_analyzed?: number | undefined;
@@ -3744,7 +3372,7 @@ export declare const ReportSchema: z.ZodObject<{
3744
3372
  } | undefined;
3745
3373
  model?: string | undefined;
3746
3374
  error?: string | undefined;
3747
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3375
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3748
3376
  model_fallback?: boolean | undefined;
3749
3377
  total_ms?: number | undefined;
3750
3378
  files_analyzed?: number | undefined;
@@ -3789,7 +3417,7 @@ export declare const ReportSchema: z.ZodObject<{
3789
3417
  } | undefined;
3790
3418
  model?: string | undefined;
3791
3419
  error?: string | undefined;
3792
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3420
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3793
3421
  model_fallback?: boolean | undefined;
3794
3422
  total_ms?: number | undefined;
3795
3423
  files_analyzed?: number | undefined;
@@ -3852,7 +3480,7 @@ export declare const ReportSchema: z.ZodObject<{
3852
3480
  } | undefined;
3853
3481
  model?: string | undefined;
3854
3482
  error?: string | undefined;
3855
- tier?: "deep" | "max" | "lite" | "legacy" | "cloud" | undefined;
3483
+ tier?: "deep" | "lite" | "legacy" | "max" | "cloud" | undefined;
3856
3484
  model_fallback?: boolean | undefined;
3857
3485
  total_ms?: number | undefined;
3858
3486
  files_analyzed?: number | undefined;