-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwavemill-config.schema.json
More file actions
1940 lines (1940 loc) · 88.5 KB
/
wavemill-config.schema.json
File metadata and controls
1940 lines (1940 loc) · 88.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Wavemill configuration",
"description": "Per-repo (.wavemill-config.json) or user-level (~/.wavemill/config.json) config. All fields are optional; env vars override everything.",
"type": "object",
"properties": {
"configVersion": {
"type": "string",
"description": "Config format version (e.g., '1.0.0'). Used for upgrade detection and compatibility checks."
},
"linear": {
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "Linear project name for backlog queries. Empty string means all projects."
}
},
"additionalProperties": false
},
"git": {
"type": "object",
"description": "Git behavior shared across wavemill workflows.",
"properties": {
"fetchTtlSeconds": {
"type": "integer",
"default": 60,
"minimum": 0,
"description": "Seconds to reuse a successful base-branch fetch before fetching again. Set to 0 to always fetch."
}
}
},
"mill": {
"type": "object",
"description": "Settings for the 'wavemill mill' command.",
"properties": {
"session": {
"type": "string",
"default": "",
"description": "Tmux session name."
},
"maxParallel": {
"type": "integer",
"default": 7,
"minimum": 1,
"description": "Number of parallel agent workers."
},
"pollSeconds": {
"type": "integer",
"default": 10,
"minimum": 1,
"description": "Seconds between PR status checks."
},
"baseBranch": {
"type": "string",
"default": "main",
"description": "Base branch for worktrees and PR targets."
},
"worktreeRoot": {
"type": "string",
"default": "../worktrees",
"description": "Directory for git worktrees. Relative paths resolve against the repo root."
},
"agentCmd": {
"type": "string",
"default": "claude",
"description": "Agent CLI to use. Built-in support for 'claude' and 'codex'. Other CLIs work via generic tmux passthrough. Can be overridden with --agent flag or AGENT_CMD env var.",
"examples": [
"claude",
"codex",
"claude-deepseek"
]
},
"requireConfirm": {
"type": "boolean",
"default": true,
"description": "Whether to prompt for confirmation before launching tasks."
},
"planningMode": {
"type": "string",
"enum": [
"interactive"
],
"default": "interactive",
"description": "How to handle the planning phase. Interactive planning launches a dedicated planning phase in tmux before implementation."
},
"maxRetries": {
"type": "integer",
"default": 3,
"minimum": 1,
"description": "Max retry attempts for failed API calls."
},
"retryDelay": {
"type": "integer",
"default": 2,
"minimum": 1,
"description": "Initial retry delay in seconds (doubles on each retry)."
},
"setupCommand": {
"type": "string",
"default": "",
"description": "Shell command to run in each new worktree before agent launch (e.g., 'npm install'). Skipped when resuming an existing worktree.",
"examples": [
"npm install",
"pnpm install",
"pip install -r requirements.txt"
]
},
"defaultMaxCostUsd": {
"type": "number",
"minimum": 0,
"description": "Default per-task cost budget guideline in USD. When unset, the built-in default is 25.00. Repository config can still override the value, and omitting the field from routing data means no explicit cost constraint for that run."
},
"expansionHandshake": {
"type": "object",
"description": "Controls gating of raw-issue-text tasks at the plan\u2192code transition.",
"properties": {
"policy": {
"type": "string",
"enum": [
"recover",
"block",
"warn"
],
"default": "recover",
"description": "recover (default): attempt one missing-artifact recovery, then fall back to the bootstrap route if recovery fails. block: halt transition. warn: proceed with a warning log line and skip recovery."
},
"timeoutSeconds": {
"type": "integer",
"minimum": 1,
"default": 300,
"description": "Timeout in seconds for missing expansion artifact recovery. This runs the LLM-backed issue expander and should be longer than short GitHub/Linear API timeouts."
}
},
"additionalProperties": false
}
}
},
"expand": {
"type": "object",
"description": "Settings for the 'wavemill expand' command.",
"properties": {
"maxSelect": {
"type": "integer",
"default": 3,
"minimum": 1,
"description": "Maximum issues that can be selected for expansion."
},
"maxDisplay": {
"type": "integer",
"default": 9,
"minimum": 1,
"description": "Maximum candidate issues shown in the selection list."
}
}
},
"plan": {
"type": "object",
"description": "Settings for the 'wavemill plan' command.",
"properties": {
"maxDisplay": {
"type": "integer",
"default": 9,
"minimum": 1,
"description": "Maximum initiatives shown in the selection list."
},
"research": {
"type": "boolean",
"default": false,
"description": "When true, always run the research phase before plan decomposition. Can be overridden by the --research CLI flag."
},
"model": {
"type": "string",
"default": "claude-opus-4-7",
"description": "Model selector for plan decomposition and research. Accepts a family alias such as 'opus', 'inherit', or a pinned model ID such as 'claude-opus-4-7'. Can be overridden with PLAN_MODEL env var."
},
"interactive": {
"type": "boolean",
"default": true,
"description": "Enable interactive mode for plan decomposition. When true, Claude has access to all tools (WebFetch, AskUserQuestion, Read, etc.) and can fetch URLs, ask questions, and research. When false, Claude runs in non-interactive mode (no tools, pure JSON output). Can be overridden by --interactive or --no-interactive CLI flags."
},
"timeout": {
"type": "integer",
"minimum": 1000,
"description": "Timeout in milliseconds for plan decomposition and research. Default: 600000 (10 min) for interactive mode, 120000 (2 min) for non-interactive. Can be overridden with PLAN_TIMEOUT env var."
}
}
},
"agents": {
"type": "object",
"description": "Per-phase model selectors for workspace-level routing declarations.",
"properties": {
"planner": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model selector for the planning phase. Accepts 'inherit', a family alias (e.g. 'opus'), or a pinned model ID."
}
},
"additionalProperties": false
},
"coder": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model selector for the coding phase. Accepts 'inherit', a family alias (e.g. 'sonnet'), or a pinned model ID."
}
},
"additionalProperties": false
},
"reviewer": {
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model selector for the review phase. Accepts 'inherit', a family alias (e.g. 'haiku'), or a pinned model ID."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"dashboard": {
"type": "object",
"description": "Controls how much runtime activity is shown in the mill control pane. Lower verbosity reduces dashboard spam while all messages can still be written to a session log.",
"properties": {
"verbosity": {
"type": "string",
"enum": [
"error",
"status",
"info",
"debug"
],
"default": "info",
"description": "Minimum log level shown in the mill control pane. 'error' shows only errors, 'status' shows key workflow transitions, 'info' adds routine progress, and 'debug' shows detailed diagnostic output."
},
"logToFile": {
"type": "boolean",
"default": true,
"description": "When true, write all control-pane messages to a per-session log file in .wavemill/logs/ even if they are hidden by the current verbosity setting."
}
},
"additionalProperties": false
},
"taskSelection": {
"type": "object",
"description": "Controls default task selection behavior in wavemill mill.",
"properties": {
"enterLaunchesWave": {
"type": "boolean",
"default": true,
"description": "When true, pressing Enter launches the planner's first dependency-safe parallel wave instead of the top scored tasks."
}
},
"additionalProperties": false
},
"backlog": {
"type": "object",
"description": "Controls backlog rendering in the mill control pane.",
"properties": {
"maxLines": {
"type": "integer",
"minimum": 10,
"maximum": 200,
"description": "Maximum number of backlog lines to render before truncation rules apply. When omitted, Wavemill derives the budget from the tmux pane height."
},
"defaultAvailableNowCap": {
"type": "integer",
"minimum": 1,
"default": 12,
"description": "Default cap for Available Now tasks when the backlog must be condensed."
},
"defaultExpanded": {
"type": "boolean",
"default": false,
"description": "Whether grouped backlog rendering starts expanded when truncation would otherwise hide tasks."
},
"focusMilestones": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"default": [],
"description": "Linear project milestone names to boost in backlog scoring."
}
},
"additionalProperties": false
},
"projectContext": {
"type": "object",
"description": "Settings for project-context compaction suggestions and behavior.",
"properties": {
"compactionThresholdKb": {
"type": "integer",
"default": 100,
"minimum": 10,
"maximum": 10000,
"description": "Size threshold in KB for surfacing project-context compaction suggestions."
},
"recentWorkKeep": {
"type": "integer",
"default": 25,
"minimum": 1,
"maximum": 500,
"description": "Number of most-recent Recent Work entries to keep during compaction."
}
},
"additionalProperties": false
},
"eval": {
"type": "object",
"description": "Settings for the 'wavemill eval' command.",
"properties": {
"aggregation": {
"type": "object",
"description": "Cross-repo eval aggregation settings for training the DSPy-optimized model router.",
"properties": {
"repos": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Absolute paths to repository directories to aggregate evals from."
},
"outputPath": {
"type": "string",
"default": ".wavemill/evals/aggregated-evals.jsonl",
"description": "Output path for the aggregated eval file, relative to repo root."
}
},
"additionalProperties": false
},
"evalsDir": {
"type": "string",
"default": ".wavemill/evals",
"description": "Directory for persisting eval result JSONL files. Relative paths resolve against the repo root."
},
"judge": {
"type": "object",
"description": "LLM judge configuration for eval scoring.",
"properties": {
"model": {
"type": "string",
"default": "claude-sonnet-4-6",
"minLength": 1,
"description": "Model ID for the eval judge (e.g. 'claude-sonnet-4-6', 'claude-haiku-4-5-20251001')."
},
"provider": {
"type": "string",
"default": "anthropic",
"enum": [
"anthropic"
],
"description": "LLM provider for the eval judge. Currently only 'anthropic' is supported."
}
},
"additionalProperties": false
},
"pricing": {
"type": "object",
"description": "Per-model pricing table for cost estimation. Keys are model identifiers, values specify cost per million tokens.",
"additionalProperties": {
"type": "object",
"properties": {
"inputCostPerMTok": {
"type": "number",
"minimum": 0,
"description": "Cost in USD per million input tokens."
},
"outputCostPerMTok": {
"type": "number",
"minimum": 0,
"description": "Cost in USD per million output tokens."
},
"cacheWriteCostPerMTok": {
"type": "number",
"minimum": 0,
"description": "Cost in USD per million cache creation (write) input tokens. Defaults to 1.25x inputCostPerMTok."
},
"cacheReadCostPerMTok": {
"type": "number",
"minimum": 0,
"description": "Cost in USD per million cache read input tokens. Defaults to 0.1x inputCostPerMTok."
}
},
"required": [
"inputCostPerMTok",
"outputCostPerMTok"
],
"additionalProperties": false
}
},
"interventionPenalties": {
"type": "object",
"description": "Penalty weights per intervention type. Each value is the score penalty (0-1) applied per occurrence of that intervention type.",
"properties": {
"reviewComment": {
"type": "number",
"default": 0.05,
"minimum": 0,
"maximum": 1,
"description": "Penalty per PR review comment requesting changes."
},
"postPrCommit": {
"type": "number",
"default": 0.08,
"minimum": 0,
"maximum": 1,
"description": "Penalty per commit made after the initial PR creation."
},
"manualEdit": {
"type": "number",
"default": 0.1,
"minimum": 0,
"maximum": 1,
"description": "Penalty per manual file edit (commit not attributed to the agent)."
},
"testFix": {
"type": "number",
"default": 0.06,
"minimum": 0,
"maximum": 1,
"description": "Penalty per interactive test fix detected in commit messages."
},
"sessionRedirect": {
"type": "number",
"default": 0.12,
"minimum": 0,
"maximum": 1,
"description": "Penalty per user redirection detected in the Claude session transcript (user sent a message correcting the agent mid-session)."
},
"selfReviewWarning": {
"type": "number",
"default": 0.05,
"minimum": 0,
"maximum": 1,
"description": "Penalty per warning-severity finding in self-review (minor issue caught by review-changes tool)."
},
"selfReviewBlocker": {
"type": "number",
"default": 0.2,
"minimum": 0,
"maximum": 1,
"description": "Penalty per blocker-severity finding in self-review (critical issue that blocks PR, such as security vulnerabilities or correctness bugs)."
}
},
"additionalProperties": false
},
"successThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Canonical score threshold used when eval outcomes.success is missing. Defaults to 0.8 when omitted."
},
"maxPromptBytes": {
"type": "integer",
"minimum": 1024,
"default": 9437184,
"description": "Maximum UTF-8 byte size for an eval judge prompt before failing fast or truncating."
},
"oversizePolicy": {
"type": "string",
"enum": [
"fail",
"truncate"
],
"default": "fail",
"description": "How eval handles prompts larger than maxPromptBytes."
},
"mintEligibility": {
"type": "object",
"description": "Coverage gates for minting Wavemill router benchmark results into downstream eligibility-sensitive flows.",
"properties": {
"enabled": {
"type": "boolean",
"description": "When false, disable mint eligibility gating for router eval outputs."
},
"coverageThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Minimum scoreable coverage required for mint eligibility. Defaults to 0.8 when omitted."
},
"maxInvalidRouteRate": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Maximum invalid route rate allowed for mint eligibility. Defaults to 0.2 when omitted."
}
},
"additionalProperties": false
}
}
},
"evalContextUpdates": {
"type": "object",
"description": "Best-effort post-eval project context and subsystem update settings.",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether to run post-eval project context and subsystem updates after the eval record is persisted."
},
"timeoutSeconds": {
"type": "integer",
"minimum": 5,
"maximum": 600,
"description": "Per-attempt timeout budget in seconds for best-effort post-eval context updates."
},
"maxRetries": {
"type": "integer",
"minimum": 0,
"maximum": 3,
"description": "Maximum number of retries for best-effort post-eval context updates after the first attempt fails."
}
},
"additionalProperties": false
},
"autoEval": {
"type": "boolean",
"default": true,
"description": "When true, automatically run eval after workflow/bugfix command completion (PR creation). Eval failures are logged as warnings and never fail the workflow."
},
"hokusai": {
"type": "object",
"description": "Hokusai data submission settings.",
"properties": {
"dataSubmission": {
"type": "object",
"description": "Opt-in configuration for submitting anonymized workflow outcomes to Hokusai.",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable Hokusai data submission. Defaults to opt-out."
},
"consentVersion": {
"type": "string",
"default": "1.0",
"description": "Current consent version. Changing this triggers re-prompting."
},
"endpoint": {
"type": "string",
"default": "https://api.hokusai.dev/v1/submit",
"description": "Hokusai API endpoint for data submission."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"challenge": {
"type": "object",
"description": "Settings for challenge mode head-to-head task execution in mill.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Master toggle for challenge mode."
},
"rate": {
"type": "number",
"default": 0.1,
"minimum": 0,
"maximum": 1,
"description": "Probability that a selected mill task becomes a challenge task."
},
"models": {
"description": "Pool of model selectors eligible for challenge. Entries may be family aliases, 'inherit', or pinned model IDs. Null means use router.models.",
"oneOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
{
"type": "null"
}
],
"default": null
},
"allowDeepseek": {
"type": "boolean",
"default": false,
"description": "Enables DeepSeek eligibility in unattended challenge mode after smoke validation has passed."
},
"comparisonModel": {
"type": "string",
"default": "claude-opus-4-7",
"minLength": 1,
"description": "Model selector used as the LLM judge for challenge PR comparison. Accepts a family alias such as 'opus', 'inherit', or a pinned model ID such as 'claude-opus-4-7'."
},
"autoMergeWinner": {
"type": "boolean",
"default": false,
"description": "Whether to automatically merge the recommended winner and close the loser."
},
"gate": {
"type": "object",
"description": "Challenge gate settings for tend merge controller race prevention.",
"properties": {
"coolOffSeconds": {
"type": "integer",
"default": 300,
"minimum": 0,
"description": "Seconds to hold a fresh wavemill task/* PR before allowing merge when no challenge pair signal exists. Set to 0 to disable. Default: 300 (5 minutes)."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"challengeScheduler": {
"type": "object",
"description": "Challenge scheduling policy for exploration-driven model testing.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable advisory challenge recommendations during routing."
},
"confidenceThreshold": {
"type": "number",
"default": 0.7,
"minimum": 0,
"maximum": 1,
"description": "Suggest a challenge when routing confidence falls below this threshold."
},
"newModelChallengeCount": {
"type": "integer",
"default": 5,
"minimum": 1,
"description": "Treat models with fewer than this many eval records as new."
},
"minEvalRecordsPerStage": {
"type": "integer",
"default": 10,
"minimum": 1,
"description": "Suggest a challenge when a workflow stage has fewer records than this threshold."
},
"maxConcurrentChallenges": {
"type": "integer",
"default": 2,
"minimum": 1,
"description": "Advisory limit for how many challenges the orchestrator should run in parallel."
}
},
"additionalProperties": false
},
"providers": {
"type": "object",
"description": "Optional provider-specific execution paths for supported agent CLIs.",
"properties": {
"deepseek": {
"type": "object",
"description": "Run Claude Code against DeepSeek's Anthropic-compatible endpoint. This path is default-off until explicitly enabled.",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enable DeepSeek as a Claude-compatible provider path."
},
"apiKeyEnv": {
"type": "string",
"minLength": 1,
"description": "Environment variable name that holds the DeepSeek API key."
},
"baseUrl": {
"type": "string",
"default": "https://api.deepseek.com/anthropic",
"description": "Anthropic-compatible base URL for Claude Code requests."
},
"models": {
"type": "array",
"description": "DeepSeek model IDs that Wavemill may route to when the provider is enabled.",
"items": {
"type": "string",
"pattern": "^deepseek-"
}
},
"stages": {
"type": "array",
"description": "Workflow stages allowed to use DeepSeek.",
"items": {
"type": "string",
"enum": [
"planner",
"coder",
"reviewer"
]
}
},
"effortLevel": {
"type": "string",
"enum": [
"low",
"medium",
"high"
],
"default": "medium",
"description": "Claude Code effort level to request when using the DeepSeek provider path."
},
"launcher": {
"type": "object",
"description": "First-class claude-deepseek launcher configuration.",
"properties": {
"model": {
"type": "string",
"pattern": "^deepseek-",
"description": "Default DeepSeek model for claude-deepseek launches."
},
"subagentModel": {
"type": "string",
"pattern": "^deepseek-",
"description": "Model for background subagent work (CLAUDE_CODE_SUBAGENT_MODEL). Defaults to model."
},
"secretSource": {
"type": "string",
"minLength": 1,
"description": "Alternative env var name or secret source to resolve the DeepSeek API key. Falls back to apiKeyEnv / DEEPSEEK_API_KEY."
},
"stateDir": {
"type": "string",
"minLength": 1,
"description": "Override the isolated Claude Code state directory used for claude-deepseek launches."
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"enabled": {
"const": true
}
},
"required": [
"enabled"
]
},
"then": {
"required": [
"apiKeyEnv"
]
}
}
]
}
},
"additionalProperties": false
},
"ready": {
"type": "object",
"description": "Settings for the ready stage (merge-readiness checks)",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of check names to run (missing or empty uses conservative universal defaults: pr-exists, merge-conflict, ci-status)"
},
"requiredChecks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Checks that must pass for merge approval (subset of checks). Required checks that skip are non-blocking warnings."
},
"migrationKind": {
"type": "string",
"enum": [
"alembic",
"sql",
"none"
],
"description": "Declares migration format for migration-specific checks. Missing means migration-specific checks should skip unless explicitly supported."
},
"migrationPatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"migrations/",
"alembic/versions/"
],
"description": "Regex patterns used to identify migration files across the repository."
},
"migrationDangerLabels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {
"drop_column": "migration:destructive",
"drop_table": "migration:destructive",
"alter_column_type": "migration:long-running"
},
"description": "Mapping of forbidden-DDL analyzer rule names to the PR label required to acknowledge that risk."
},
"migrationForbiddenPatterns": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Reserved repository-specific forbidden migration patterns for future ready-stage policy extensions."
},
"remediation": {
"type": "object",
"description": "Automatic remediation settings for fixable ready-check failures.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Launch a remediation agent when a fixable ready check fails."
},
"maxAttempts": {
"type": "integer",
"default": 3,
"minimum": 1,
"description": "Maximum remediation launches allowed before ready falls back to operator attention."
},
"agentCmd": {
"type": "string",
"default": "",
"description": "Optional agent command override for ready remediation launches."
}
},
"additionalProperties": false
},
"watchdog": {
"type": "object",
"description": "Ready-stage stale-state watchdog settings.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable the ready watchdog during mill monitor ticks."
},
"thresholdMinutes": {
"type": "integer",
"default": 10,
"minimum": 1,
"description": "Minutes without ready-stage progress before a task is classified as stale."
},
"autoRecover": {
"type": "boolean",
"default": true,
"description": "Allow safe local ready-state recovery when GitHub truth is clean and green."
},
"timeoutSeconds": {
"type": "integer",
"default": 30,
"minimum": 1,
"description": "Maximum watchdog subprocess runtime per monitor tick."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"mergeQueue": {
"type": "object",
"description": "Queue settings for stale-main refresh and final merge-candidate promotion in mill ready flow.",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable merge-lane semantics for ready PRs."
},
"maxConcurrentCandidates": {
"type": "integer",
"default": 2,
"minimum": 1,
"description": "Maximum number of ready PRs that may actively refresh against the latest base at once."
},
"stuckTimeoutSeconds": {
"type": "integer",
"default": 900,
"minimum": 60,
"description": "Demote a merge candidate after this many seconds without progress."
},
"conflictGroupingEnabled": {
"type": "boolean",
"default": true,
"description": "Use changed-file overlap groups to avoid promoting conflicting candidates together."
},
"skipCooldownSeconds": {
"type": "integer",
"default": 60,
"minimum": 0,
"description": "Cooldown before a skipped candidate is eligible for immediate re-promotion."
}
},
"additionalProperties": false
},
"monitor": {
"type": "object",
"description": "Legacy monitor-specific settings kept for backwards-compatible aliases.",
"properties": {
"readyWatchdog": {
"type": "object",
"description": "Alias for ready.watchdog.",
"properties": {
"enabled": {
"type": "boolean",
"default": true
},
"thresholdMinutes": {
"type": "integer",
"default": 10,
"minimum": 1
},
"autoRecover": {
"type": "boolean",
"default": true
},
"timeoutSeconds": {
"type": "integer",
"default": 30,
"minimum": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"modelRegistry": {
"type": "object",
"description": "Overrides for the canonical model capability registry. Models merge over defaults while ladders replace the default ladder for each task type.",
"properties": {
"models": {
"type": "object",
"description": "Map of model IDs to partial capability overrides.",
"additionalProperties": {
"type": "object",
"properties": {
"vendor": {
"type": "string",
"minLength": 1
},
"class": {
"type": "string",
"enum": [
"frontier",
"strong_generalist",
"fast_economy"
]
},
"strengths": {
"type": "array",
"items": {
"type": "string"
}
},
"weaknesses": {
"type": "array",
"items": {
"type": "string"
}
},
"qualityScores": {
"type": "object",
"properties": {
"routing": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"planning": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"coding": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"review": {
"type": "number",
"minimum": 0,