@moo.md/hum 0.0.0-stage → 0.1.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 (150) hide show
  1. package/defaults/hum.json +321 -0
  2. package/defaults/kinds/check.json +183 -0
  3. package/defaults/kinds/docs.json +151 -0
  4. package/defaults/kinds/feature.json +202 -0
  5. package/defaults/kinds/fix.json +183 -0
  6. package/defaults/kinds/hotfix.json +164 -0
  7. package/defaults/roles/build.md +3 -0
  8. package/defaults/roles/fix.md +1 -0
  9. package/defaults/roles/plan.md +3 -0
  10. package/defaults/roles/review.md +3 -0
  11. package/evals/alignment/RESULTS.md +8 -0
  12. package/evals/alignment/cases.jsonl +128 -0
  13. package/evals/alignment/sample.jsonl +20 -0
  14. package/evals/kind/RESULTS.md +5 -0
  15. package/evals/kind/cases.jsonl +24 -0
  16. package/evals/plan-outcome/RESULTS.md +4 -0
  17. package/evals/plan-outcome/cases.jsonl +12 -0
  18. package/evals/repeat-pair/RESULTS.md +4 -0
  19. package/evals/repeat-pair/cases.jsonl +51 -0
  20. package/evals/reply-option/RESULTS.md +3 -0
  21. package/evals/reply-option/cases.jsonl +45 -0
  22. package/evals/review-verdict/RESULTS.md +4 -0
  23. package/evals/review-verdict/cases.jsonl +12 -0
  24. package/package.json +88 -4
  25. package/schema/hum.schema.json +1355 -0
  26. package/scripts/eval.ts +244 -0
  27. package/src/adapter-api.ts +134 -0
  28. package/src/adapters/admit.ts +111 -0
  29. package/src/adapters/argument.ts +11 -0
  30. package/src/adapters/claim.ts +93 -0
  31. package/src/adapters/claude-bg.ts +392 -0
  32. package/src/adapters/claude-p.ts +599 -0
  33. package/src/adapters/contract.ts +231 -0
  34. package/src/adapters/fake.ts +157 -0
  35. package/src/adapters/git.ts +156 -0
  36. package/src/adapters/github.ts +479 -0
  37. package/src/adapters/guard.ts +152 -0
  38. package/src/adapters/history.ts +215 -0
  39. package/src/adapters/item-file.ts +102 -0
  40. package/src/adapters/limit.ts +67 -0
  41. package/src/adapters/markdown.ts +365 -0
  42. package/src/adapters/marked.ts +127 -0
  43. package/src/adapters/model-call.ts +75 -0
  44. package/src/adapters/once.ts +45 -0
  45. package/src/adapters/owner-commit.ts +60 -0
  46. package/src/adapters/pull-requests.ts +253 -0
  47. package/src/adapters/registry.ts +156 -0
  48. package/src/adapters/roundup.ts +293 -0
  49. package/src/adapters/serial.ts +22 -0
  50. package/src/adapters/transcript.ts +99 -0
  51. package/src/cli/commands.ts +46 -0
  52. package/src/cli/main.ts +8 -0
  53. package/src/cli/ops.ts +224 -0
  54. package/src/cli/service.ts +156 -0
  55. package/src/cli/setup.ts +141 -0
  56. package/src/cli/shared-watch.ts +127 -0
  57. package/src/config/change.ts +54 -0
  58. package/src/config/checks.ts +217 -0
  59. package/src/config/git-ref-name.d.ts +3 -0
  60. package/src/config/hash.ts +6 -0
  61. package/src/config/json.ts +6 -0
  62. package/src/config/load.ts +88 -0
  63. package/src/config/machine.ts +20 -0
  64. package/src/config/migrate.ts +61 -0
  65. package/src/config/refusal.ts +58 -0
  66. package/src/config/schema.ts +465 -0
  67. package/src/config/settings.ts +6 -0
  68. package/src/config/state-map.ts +76 -0
  69. package/src/decide/alignment.ts +79 -0
  70. package/src/decide/answer.ts +131 -0
  71. package/src/decide/kind.ts +39 -0
  72. package/src/decide/labels.ts +137 -0
  73. package/src/decide/merge.ts +102 -0
  74. package/src/decide/prose.ts +109 -0
  75. package/src/decide/question.ts +159 -0
  76. package/src/decide/review.ts +10 -0
  77. package/src/decide/risk.ts +216 -0
  78. package/src/decide/taste.ts +37 -0
  79. package/src/exec.ts +85 -0
  80. package/src/index.ts +200 -0
  81. package/src/loop/breaks.ts +8 -0
  82. package/src/loop/check-item.ts +76 -0
  83. package/src/loop/ci.ts +8 -0
  84. package/src/loop/github.ts +81 -0
  85. package/src/loop/groups.ts +108 -0
  86. package/src/loop/memory.ts +70 -0
  87. package/src/loop/notes.ts +76 -0
  88. package/src/loop/pair.ts +39 -0
  89. package/src/loop/pass.ts +99 -0
  90. package/src/loop/proof.ts +85 -0
  91. package/src/loop/prove-item.ts +33 -0
  92. package/src/loop/records.ts +75 -0
  93. package/src/loop/signals.ts +130 -0
  94. package/src/measure/inputs.ts +28 -0
  95. package/src/measure/measure.ts +68 -0
  96. package/src/service/cards.ts +24 -0
  97. package/src/service/ci-tick.ts +28 -0
  98. package/src/service/launchd.ts +16 -0
  99. package/src/service/supervise.ts +145 -0
  100. package/src/service/systemd.ts +44 -0
  101. package/src/service/token.ts +21 -0
  102. package/src/service/unit.ts +29 -0
  103. package/src/service/wake.ts +30 -0
  104. package/src/service/workflows.ts +97 -0
  105. package/src/setup/propose.ts +120 -0
  106. package/src/setup/prove.ts +216 -0
  107. package/src/setup/scan.ts +186 -0
  108. package/src/setup/scratch.ts +81 -0
  109. package/src/setup/shipped.ts +15 -0
  110. package/src/setup/tables.ts +101 -0
  111. package/src/setup/waits.ts +58 -0
  112. package/src/setup/write.ts +161 -0
  113. package/src/slots/env.ts +42 -0
  114. package/src/slots/pool.ts +329 -0
  115. package/src/slots/scan.ts +26 -0
  116. package/src/slots/worktree.ts +17 -0
  117. package/src/state/events.ts +52 -0
  118. package/src/state/faults.ts +73 -0
  119. package/src/state/format.ts +50 -0
  120. package/src/state/fs.ts +100 -0
  121. package/src/state/items.ts +195 -0
  122. package/src/state/open.ts +80 -0
  123. package/src/state/ops.ts +76 -0
  124. package/src/state/records.ts +35 -0
  125. package/src/state/runs.ts +99 -0
  126. package/src/state/saved.ts +119 -0
  127. package/src/status/file.ts +49 -0
  128. package/src/status/format.ts +132 -0
  129. package/src/status/sections.ts +14 -0
  130. package/src/status/version.ts +2 -0
  131. package/src/time.ts +7 -0
  132. package/src/worker/alignment-report.ts +18 -0
  133. package/src/worker/answers.ts +153 -0
  134. package/src/worker/base-check.ts +45 -0
  135. package/src/worker/checks.ts +40 -0
  136. package/src/worker/kind.ts +68 -0
  137. package/src/worker/land.ts +509 -0
  138. package/src/worker/lifecycle.ts +97 -0
  139. package/src/worker/merged.ts +29 -0
  140. package/src/worker/open.ts +100 -0
  141. package/src/worker/prose-run.ts +56 -0
  142. package/src/worker/questions.ts +89 -0
  143. package/src/worker/scheduler.ts +135 -0
  144. package/src/worker/signature.ts +41 -0
  145. package/src/worker/tally.ts +25 -0
  146. package/src/worker/taste.ts +38 -0
  147. package/src/worker/thin-path.ts +886 -0
  148. package/src/worker/worker.ts +750 -0
  149. package/surface.json +8787 -0
  150. package/README.md +0 -3
@@ -0,0 +1,1355 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "levels": {
10
+ "minItems": 1,
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "name": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "review": {
20
+ "type": "string",
21
+ "enum": [
22
+ "none",
23
+ "agent",
24
+ "owner"
25
+ ]
26
+ },
27
+ "release": {
28
+ "type": "string",
29
+ "enum": [
30
+ "at-once",
31
+ "after-proof"
32
+ ]
33
+ },
34
+ "onBreak": {
35
+ "type": "string",
36
+ "enum": [
37
+ "follow-up",
38
+ "block"
39
+ ]
40
+ }
41
+ },
42
+ "required": [
43
+ "name",
44
+ "review",
45
+ "release",
46
+ "onBreak"
47
+ ],
48
+ "additionalProperties": false
49
+ }
50
+ },
51
+ "paths": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "properties": {
56
+ "glob": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "level": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "proofs": {
65
+ "type": "object",
66
+ "propertyNames": {
67
+ "type": "string",
68
+ "minLength": 1
69
+ },
70
+ "additionalProperties": {
71
+ "type": "string",
72
+ "minLength": 1
73
+ }
74
+ },
75
+ "limit": {
76
+ "type": "object",
77
+ "properties": {
78
+ "fixes": {
79
+ "type": "integer",
80
+ "minimum": 0,
81
+ "maximum": 9007199254740991
82
+ },
83
+ "of": {
84
+ "type": "integer",
85
+ "exclusiveMinimum": 0,
86
+ "maximum": 9007199254740991
87
+ }
88
+ },
89
+ "required": [
90
+ "fixes",
91
+ "of"
92
+ ],
93
+ "additionalProperties": false
94
+ }
95
+ },
96
+ "required": [
97
+ "glob",
98
+ "level"
99
+ ],
100
+ "additionalProperties": false
101
+ }
102
+ },
103
+ "roles": {
104
+ "type": "object",
105
+ "propertyNames": {
106
+ "type": "string",
107
+ "minLength": 1
108
+ },
109
+ "additionalProperties": {
110
+ "type": "object",
111
+ "properties": {
112
+ "file": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ },
116
+ "purpose": {
117
+ "type": "string",
118
+ "enum": [
119
+ "plan",
120
+ "build",
121
+ "fix",
122
+ "review"
123
+ ]
124
+ },
125
+ "skills": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string",
129
+ "minLength": 1
130
+ }
131
+ }
132
+ },
133
+ "required": [
134
+ "file",
135
+ "purpose",
136
+ "skills"
137
+ ],
138
+ "additionalProperties": false
139
+ }
140
+ },
141
+ "events": {
142
+ "type": "object",
143
+ "propertyNames": {
144
+ "type": "string",
145
+ "minLength": 1
146
+ },
147
+ "additionalProperties": {
148
+ "type": "object",
149
+ "properties": {
150
+ "source": {
151
+ "type": "string",
152
+ "minLength": 1
153
+ }
154
+ },
155
+ "required": [
156
+ "source"
157
+ ],
158
+ "additionalProperties": false
159
+ }
160
+ },
161
+ "kinds": {
162
+ "minItems": 1,
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string",
166
+ "minLength": 1
167
+ }
168
+ },
169
+ "safety": {
170
+ "type": "object",
171
+ "propertyNames": {
172
+ "type": "string"
173
+ },
174
+ "additionalProperties": {}
175
+ },
176
+ "dailyQuestionCap": {
177
+ "type": "integer",
178
+ "exclusiveMinimum": 0,
179
+ "maximum": 9007199254740991
180
+ },
181
+ "integrations": {
182
+ "type": "object",
183
+ "propertyNames": {
184
+ "type": "string",
185
+ "minLength": 1
186
+ },
187
+ "additionalProperties": {
188
+ "type": "string",
189
+ "minLength": 1
190
+ }
191
+ },
192
+ "ciToken": {
193
+ "type": "object",
194
+ "properties": {
195
+ "setUp": {
196
+ "type": "string",
197
+ "format": "date",
198
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
199
+ }
200
+ },
201
+ "required": [
202
+ "setUp"
203
+ ],
204
+ "additionalProperties": false
205
+ },
206
+ "commitIdentity": {
207
+ "type": "object",
208
+ "properties": {
209
+ "name": {
210
+ "type": "string",
211
+ "minLength": 1
212
+ },
213
+ "email": {
214
+ "type": "string",
215
+ "minLength": 1
216
+ }
217
+ },
218
+ "required": [
219
+ "name",
220
+ "email"
221
+ ],
222
+ "additionalProperties": false,
223
+ "description": "The owner's own name and email: the author and committer of every commit hum makes. Setup writes them from git config; hum ships none."
224
+ },
225
+ "checks": {
226
+ "default": [],
227
+ "type": "array",
228
+ "items": {
229
+ "type": "string",
230
+ "minLength": 1
231
+ },
232
+ "description": "The shell commands that must all exit 0 in a run's clone before its change merges, and on the base after a merge."
233
+ },
234
+ "kindLabels": {
235
+ "default": {},
236
+ "type": "object",
237
+ "propertyNames": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "additionalProperties": {
242
+ "type": "string",
243
+ "minLength": 1
244
+ },
245
+ "description": "Item label (lower case) → kind name: the kind an item takes from a label of the repo's own, such as { \"bug\": \"fix\" }."
246
+ },
247
+ "runPlaces": {
248
+ "default": [
249
+ "mac",
250
+ "ci"
251
+ ],
252
+ "minItems": 1,
253
+ "type": "array",
254
+ "items": {
255
+ "type": "string",
256
+ "enum": [
257
+ "mac",
258
+ "ci"
259
+ ]
260
+ },
261
+ "description": "Where hum runs: 'mac' is a service on the owner's machine, 'ci' a workflow. Only a 'mac' place reads the inbox, so an answer or a changed watch leaves a wake file there only when 'mac' is listed."
262
+ },
263
+ "runBranchPrefix": {
264
+ "default": "hum/run/",
265
+ "type": "string",
266
+ "format": "ends_with",
267
+ "pattern": ".*\\/$",
268
+ "description": "Each run builds on the branch this prefix and its item id make."
269
+ },
270
+ "claimPrefix": {
271
+ "default": "hum/claim/",
272
+ "type": "string",
273
+ "format": "ends_with",
274
+ "pattern": ".*\\/$",
275
+ "description": "A claim is the first push of the branch this prefix and its item id make."
276
+ },
277
+ "readyLabel": {
278
+ "default": "hum:ready",
279
+ "type": "string",
280
+ "minLength": 1,
281
+ "description": "The label that marks an issue ready for hum."
282
+ },
283
+ "mergeMethod": {
284
+ "default": "squash",
285
+ "type": "string",
286
+ "enum": [
287
+ "merge",
288
+ "squash",
289
+ "rebase"
290
+ ],
291
+ "description": "How a released pull request merges."
292
+ },
293
+ "models": {
294
+ "default": {
295
+ "light": "claude-haiku-5-5",
296
+ "standard": "claude-sonnet-5-5",
297
+ "top": "claude-opus-5-5"
298
+ },
299
+ "type": "object",
300
+ "propertyNames": {
301
+ "type": "string",
302
+ "enum": [
303
+ "light",
304
+ "standard",
305
+ "top"
306
+ ]
307
+ },
308
+ "additionalProperties": {
309
+ "type": "string",
310
+ "minLength": 1
311
+ },
312
+ "required": [
313
+ "light",
314
+ "standard",
315
+ "top"
316
+ ],
317
+ "description": "The model id each tier of a kind's table runs on."
318
+ },
319
+ "runners": {
320
+ "default": 3,
321
+ "type": "integer",
322
+ "exclusiveMinimum": 0,
323
+ "maximum": 9007199254740991,
324
+ "description": "The most runs that go at once."
325
+ },
326
+ "tickIntervalSeconds": {
327
+ "default": 30,
328
+ "type": "integer",
329
+ "exclusiveMinimum": 0,
330
+ "maximum": 9007199254740991,
331
+ "description": "The time between worker ticks; each tick writes the heartbeat and renews the claims in flight."
332
+ },
333
+ "drainTimeoutSeconds": {
334
+ "default": 300,
335
+ "type": "integer",
336
+ "exclusiveMinimum": 0,
337
+ "maximum": 9007199254740991,
338
+ "description": "How long a worker that has seen an update lets its runs finish before it stops them."
339
+ },
340
+ "claimExpirySeconds": {
341
+ "default": 900,
342
+ "type": "integer",
343
+ "exclusiveMinimum": 0,
344
+ "maximum": 9007199254740991,
345
+ "description": "How long a claim lasts unless its holder renews it."
346
+ },
347
+ "latestVersionCacheSeconds": {
348
+ "default": 21600,
349
+ "type": "integer",
350
+ "exclusiveMinimum": 0,
351
+ "maximum": 9007199254740991,
352
+ "description": "How long the newest published engine version is kept before it is read again."
353
+ },
354
+ "watchCacheSeconds": {
355
+ "default": 10,
356
+ "type": "integer",
357
+ "exclusiveMinimum": 0,
358
+ "maximum": 9007199254740991,
359
+ "description": "How long one read of what changed serves every `hum watch` in the repo before the next one reads again."
360
+ },
361
+ "watchLockSeconds": {
362
+ "default": 30,
363
+ "type": "integer",
364
+ "exclusiveMinimum": 0,
365
+ "maximum": 9007199254740991,
366
+ "description": "How long the lock of the one `hum watch` that reads stays held before another may take it over."
367
+ },
368
+ "maxFixRuns": {
369
+ "default": 3,
370
+ "type": "integer",
371
+ "minimum": 0,
372
+ "maximum": 9007199254740991,
373
+ "description": "Fix runs an item gets after failed checks before it ends stuck."
374
+ },
375
+ "serviceLabel": {
376
+ "default": "md.moo.hum",
377
+ "type": "string",
378
+ "pattern": "^[A-Za-z0-9._-]+$",
379
+ "description": "The service unit's label, and the name its file takes."
380
+ },
381
+ "maxCrashes": {
382
+ "default": 5,
383
+ "type": "integer",
384
+ "exclusiveMinimum": 0,
385
+ "maximum": 9007199254740991,
386
+ "description": "Worker crashes within crashWindowSeconds that stop the service's restarts."
387
+ },
388
+ "crashWindowSeconds": {
389
+ "default": 600,
390
+ "type": "integer",
391
+ "exclusiveMinimum": 0,
392
+ "maximum": 9007199254740991,
393
+ "description": "The window in which maxCrashes crashes stop the service's restarts."
394
+ },
395
+ "workerDownTicks": {
396
+ "default": 3,
397
+ "type": "integer",
398
+ "exclusiveMinimum": 0,
399
+ "maximum": 9007199254740991,
400
+ "description": "Ticks without a heartbeat before the worker-down card shows."
401
+ },
402
+ "tokenWarnDays": {
403
+ "default": 30,
404
+ "type": "integer",
405
+ "exclusiveMinimum": 0,
406
+ "maximum": 9007199254740991,
407
+ "description": "Days before the CI token's year ends that the expiry card shows."
408
+ },
409
+ "ciSchedule": {
410
+ "default": "*/15 * * * *",
411
+ "type": "string",
412
+ "description": "The cron schedule of the scheduled CI workflow."
413
+ },
414
+ "ciTickCacheSeconds": {
415
+ "default": 300,
416
+ "type": "integer",
417
+ "exclusiveMinimum": 0,
418
+ "maximum": 9007199254740991,
419
+ "description": "How long the scheduled workflow's last tick is kept before the remote is read again."
420
+ },
421
+ "itemsDir": {
422
+ "default": ".hum/work",
423
+ "type": "string",
424
+ "minLength": 1,
425
+ "description": "The folder of the repo that holds the markdown items."
426
+ },
427
+ "providerTimeoutSeconds": {
428
+ "default": 30,
429
+ "type": "integer",
430
+ "exclusiveMinimum": 0,
431
+ "maximum": 9007199254740991,
432
+ "description": "How long a failing provider call is retried before one card shows."
433
+ },
434
+ "providerBackoff": {
435
+ "default": {
436
+ "firstSeconds": 0.5,
437
+ "maxSeconds": 30
438
+ },
439
+ "type": "object",
440
+ "properties": {
441
+ "firstSeconds": {
442
+ "type": "number",
443
+ "exclusiveMinimum": 0
444
+ },
445
+ "maxSeconds": {
446
+ "type": "number",
447
+ "exclusiveMinimum": 0
448
+ }
449
+ },
450
+ "required": [
451
+ "firstSeconds",
452
+ "maxSeconds"
453
+ ],
454
+ "additionalProperties": false,
455
+ "description": "The pause before a provider call's first retry, doubled each retry up to the longest pause."
456
+ },
457
+ "mergedShown": {
458
+ "default": 50,
459
+ "type": "integer",
460
+ "exclusiveMinimum": 0,
461
+ "maximum": 9007199254740991,
462
+ "description": "Merged changes the status file lists."
463
+ },
464
+ "choicesShown": {
465
+ "default": 50,
466
+ "type": "integer",
467
+ "exclusiveMinimum": 0,
468
+ "maximum": 9007199254740991,
469
+ "description": "Choices made without the owner that the status file lists, newest first."
470
+ },
471
+ "statusReadTimeoutSeconds": {
472
+ "default": 10,
473
+ "type": "integer",
474
+ "exclusiveMinimum": 0,
475
+ "maximum": 9007199254740991,
476
+ "description": "How long a read for the status file, such as the newest published version, may take before it is left out."
477
+ },
478
+ "commandTimeoutSeconds": {
479
+ "default": 600,
480
+ "type": "integer",
481
+ "exclusiveMinimum": 0,
482
+ "maximum": 9007199254740991,
483
+ "description": "How long one git, gh, npm or Claude Code management command, one GitHub request or one start check may run before it is stopped and its call fails naming it. A run's agent and a repo's checks have their own limits."
484
+ },
485
+ "mergeTries": {
486
+ "default": 3,
487
+ "type": "integer",
488
+ "exclusiveMinimum": 0,
489
+ "maximum": 9007199254740991,
490
+ "description": "Tries to merge a change when the base branch moves under it."
491
+ },
492
+ "writeRaceRetries": {
493
+ "default": 7,
494
+ "type": "integer",
495
+ "minimum": 0,
496
+ "maximum": 9007199254740991,
497
+ "description": "Retries of a markdown write that another writer's push beat."
498
+ },
499
+ "itemReadsAtOnce": {
500
+ "default": 8,
501
+ "type": "integer",
502
+ "exclusiveMinimum": 0,
503
+ "maximum": 9007199254740991,
504
+ "description": "Item files the markdown source reads at once; each read is a git process."
505
+ },
506
+ "restartBackoff": {
507
+ "default": {
508
+ "firstSeconds": 1,
509
+ "maxSeconds": 60
510
+ },
511
+ "type": "object",
512
+ "properties": {
513
+ "firstSeconds": {
514
+ "type": "number",
515
+ "exclusiveMinimum": 0
516
+ },
517
+ "maxSeconds": {
518
+ "type": "number",
519
+ "exclusiveMinimum": 0
520
+ }
521
+ },
522
+ "required": [
523
+ "firstSeconds",
524
+ "maxSeconds"
525
+ ],
526
+ "additionalProperties": false,
527
+ "description": "The pause before the service's first restart of a crashed worker, doubled each crash up to the longest pause."
528
+ },
529
+ "restartDelaySeconds": {
530
+ "default": 10,
531
+ "type": "integer",
532
+ "exclusiveMinimum": 0,
533
+ "maximum": 9007199254740991,
534
+ "description": "Seconds the service manager waits before it starts a failed start script again."
535
+ },
536
+ "pullRequestTokenSecret": {
537
+ "default": "HUM_GITHUB_TOKEN",
538
+ "type": "string",
539
+ "minLength": 1,
540
+ "description": "The repository secret holding a GitHub App or fine-grained token for CI runs. A pull request opened with the workflow token starts no workflows, so its required checks never run; one opened with this token does. A CI run falls back to the workflow token while the secret is unset."
541
+ },
542
+ "ciWakeTimeoutMinutes": {
543
+ "default": 60,
544
+ "type": "integer",
545
+ "exclusiveMinimum": 0,
546
+ "maximum": 9007199254740991,
547
+ "description": "Minutes a CI wake may run before GitHub stops it."
548
+ },
549
+ "strictPaths": {
550
+ "default": [],
551
+ "type": "array",
552
+ "items": {
553
+ "type": "string",
554
+ "minLength": 1
555
+ },
556
+ "description": "Globs of data and secrets: a change touching one takes the strictest level."
557
+ },
558
+ "launches": {
559
+ "default": [],
560
+ "type": "array",
561
+ "items": {
562
+ "anyOf": [
563
+ {
564
+ "type": "object",
565
+ "properties": {
566
+ "glob": {
567
+ "type": "string",
568
+ "minLength": 1
569
+ },
570
+ "level": {
571
+ "type": "string",
572
+ "minLength": 1
573
+ },
574
+ "from": {
575
+ "type": "string",
576
+ "format": "date",
577
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
578
+ },
579
+ "until": {
580
+ "type": "string",
581
+ "format": "date",
582
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
583
+ }
584
+ },
585
+ "required": [
586
+ "glob",
587
+ "level",
588
+ "from",
589
+ "until"
590
+ ],
591
+ "additionalProperties": false
592
+ },
593
+ {
594
+ "type": "object",
595
+ "properties": {
596
+ "glob": {
597
+ "type": "string",
598
+ "minLength": 1
599
+ },
600
+ "level": {
601
+ "type": "string",
602
+ "minLength": 1
603
+ },
604
+ "base": {
605
+ "type": "string",
606
+ "minLength": 1
607
+ }
608
+ },
609
+ "required": [
610
+ "glob",
611
+ "level",
612
+ "base"
613
+ ],
614
+ "additionalProperties": false
615
+ }
616
+ ]
617
+ },
618
+ "description": "Raises a path to a level for a launch: between two dates, from 'from' up to 'until', or while the base branch matches 'base'."
619
+ },
620
+ "sizeRange": {
621
+ "default": {
622
+ "changes": 50,
623
+ "fewest": 20,
624
+ "middle": 0.8
625
+ },
626
+ "type": "object",
627
+ "properties": {
628
+ "changes": {
629
+ "type": "integer",
630
+ "exclusiveMinimum": 0,
631
+ "maximum": 9007199254740991
632
+ },
633
+ "fewest": {
634
+ "type": "integer",
635
+ "exclusiveMinimum": 0,
636
+ "maximum": 9007199254740991
637
+ },
638
+ "middle": {
639
+ "type": "number",
640
+ "exclusiveMinimum": 0,
641
+ "exclusiveMaximum": 1
642
+ }
643
+ },
644
+ "required": [
645
+ "changes",
646
+ "fewest",
647
+ "middle"
648
+ ],
649
+ "additionalProperties": false,
650
+ "description": "A path's usual size: the middle share of the lines its last 'changes' merged changes touched. A change above it goes one level up; a path with fewer than 'fewest' changes has no range."
651
+ },
652
+ "loosenedCheck": {
653
+ "default": {
654
+ "added": [
655
+ "\\.(skip|skipIf|todo)\\(",
656
+ "\\bx(it|test|describe)\\(",
657
+ "(eslint|oxlint|biome)[- ](disable|ignore)",
658
+ "@ts-(ignore|expect-error|nocheck)"
659
+ ],
660
+ "removed": [
661
+ "^\\s*(test|it|describe)(\\.\\w+)?\\(",
662
+ "^\\s*\"[@\\w/-]+\"\\s*:\\s*\\[?\"(error|warn)\""
663
+ ]
664
+ },
665
+ "type": "object",
666
+ "properties": {
667
+ "added": {
668
+ "type": "array",
669
+ "items": {
670
+ "type": "string",
671
+ "minLength": 1
672
+ }
673
+ },
674
+ "removed": {
675
+ "type": "array",
676
+ "items": {
677
+ "type": "string",
678
+ "minLength": 1
679
+ }
680
+ }
681
+ },
682
+ "required": [
683
+ "added",
684
+ "removed"
685
+ ],
686
+ "additionalProperties": false,
687
+ "description": "A change whose added or removed lines match one of these loosens a check and goes one level up; empty lists turn the rule off."
688
+ },
689
+ "changeLabels": {
690
+ "default": {
691
+ "fixWindow": 10,
692
+ "fixSubject": "^fix(\\(.+\\))?!?:",
693
+ "revertSubject": "^(Revert \"|[Rr]evert(\\(.+\\))?!?:)",
694
+ "revertTrailer": "This reverts commit ([0-9a-f]{7,40})"
695
+ },
696
+ "type": "object",
697
+ "properties": {
698
+ "fixWindow": {
699
+ "type": "integer",
700
+ "exclusiveMinimum": 0,
701
+ "maximum": 9007199254740991
702
+ },
703
+ "fixSubject": {
704
+ "type": "string",
705
+ "minLength": 1
706
+ },
707
+ "revertSubject": {
708
+ "type": "string",
709
+ "minLength": 1
710
+ },
711
+ "revertTrailer": {
712
+ "type": "string",
713
+ "minLength": 1
714
+ }
715
+ },
716
+ "required": [
717
+ "fixWindow",
718
+ "fixSubject",
719
+ "revertSubject",
720
+ "revertTrailer"
721
+ ],
722
+ "additionalProperties": false,
723
+ "description": "How hum labels a merged change from git: reverted by a commit whose trailer names it or whose subject reverts its subject; fixed by a fix commit within the next 'fixWindow' merged changes on its files that names it or changes its lines."
724
+ },
725
+ "historyDepth": {
726
+ "default": 1000,
727
+ "type": "integer",
728
+ "exclusiveMinimum": 0,
729
+ "maximum": 9007199254740991,
730
+ "description": "Commits of the base branch hum reads for size ranges and fix counts."
731
+ },
732
+ "lockfiles": {
733
+ "default": [
734
+ "bun.lock",
735
+ "bun.lockb",
736
+ "package-lock.json",
737
+ "yarn.lock",
738
+ "pnpm-lock.yaml"
739
+ ],
740
+ "type": "array",
741
+ "items": {
742
+ "type": "string",
743
+ "minLength": 1
744
+ },
745
+ "description": "Lockfiles where a changed line naming the engine package changes hum itself."
746
+ },
747
+ "hookPaths": {
748
+ "default": [
749
+ ".husky/**",
750
+ ".githooks/**",
751
+ "lefthook.yml",
752
+ ".pre-commit-config.yaml"
753
+ ],
754
+ "type": "array",
755
+ "items": {
756
+ "type": "string",
757
+ "minLength": 1
758
+ },
759
+ "description": "Globs of tracked git hooks; a change to one changes hum itself."
760
+ },
761
+ "diffLimit": {
762
+ "default": 100000,
763
+ "type": "integer",
764
+ "exclusiveMinimum": 0,
765
+ "maximum": 9007199254740991,
766
+ "description": "The most characters of a change's diff one prompt carries."
767
+ },
768
+ "failureTail": {
769
+ "default": 4000,
770
+ "type": "integer",
771
+ "exclusiveMinimum": 0,
772
+ "maximum": 9007199254740991,
773
+ "description": "The last characters of the checks' output a fix run reads."
774
+ },
775
+ "kindMeanings": {
776
+ "default": {
777
+ "feature": "adds or changes what the product does or offers",
778
+ "fix": "corrects behaviour that is wrong, broken or inconsistent, with no new capability",
779
+ "docs": "changes only prose that explains the work: notes, changelog entries, guides, comments",
780
+ "hotfix": "an urgent correction to what is already live, named as urgent",
781
+ "check": "adds or repairs tests, benchmarks or other verification, with no change to behaviour"
782
+ },
783
+ "type": "object",
784
+ "propertyNames": {
785
+ "type": "string",
786
+ "minLength": 1
787
+ },
788
+ "additionalProperties": {
789
+ "type": "string",
790
+ "minLength": 1
791
+ },
792
+ "description": "One line per kind saying what work it holds; the cheap model call reads these to pick an item's kind."
793
+ },
794
+ "fallbackKind": {
795
+ "default": "feature",
796
+ "type": "string",
797
+ "minLength": 1,
798
+ "description": "The kind an item runs as when neither its source nor the model call names one."
799
+ },
800
+ "docsOnly": {
801
+ "default": {
802
+ "kind": "docs",
803
+ "paths": [
804
+ "**/*.md",
805
+ "**/*.mdx",
806
+ "docs/**"
807
+ ]
808
+ },
809
+ "type": "object",
810
+ "properties": {
811
+ "kind": {
812
+ "type": "string",
813
+ "minLength": 1
814
+ },
815
+ "paths": {
816
+ "type": "array",
817
+ "items": {
818
+ "type": "string",
819
+ "minLength": 1
820
+ }
821
+ }
822
+ },
823
+ "required": [
824
+ "kind",
825
+ "paths"
826
+ ],
827
+ "additionalProperties": false,
828
+ "description": "An item of this kind whose change touches a path outside these globs moves to its real kind."
829
+ },
830
+ "decisionModel": {
831
+ "default": "claude-haiku-5-5",
832
+ "type": "string",
833
+ "minLength": 1,
834
+ "description": "The model id of the cheap model call, made through claude -p."
835
+ },
836
+ "modelCallTimeoutSeconds": {
837
+ "default": 120,
838
+ "type": "integer",
839
+ "exclusiveMinimum": 0,
840
+ "maximum": 9007199254740991,
841
+ "description": "How long a cheap model call may take before it counts as an abstention."
842
+ },
843
+ "measuredModels": {
844
+ "default": {
845
+ "kind": {
846
+ "claude-haiku-5-5": 0.58,
847
+ "claude-sonnet-5-5": 0.63
848
+ },
849
+ "alignment": {
850
+ "claude-haiku-5-5": 0.68,
851
+ "claude-sonnet-5-5": 0.68
852
+ },
853
+ "plan-outcome": {
854
+ "claude-haiku-5-5": 1,
855
+ "claude-sonnet-5-5": 1
856
+ },
857
+ "review-verdict": {
858
+ "claude-haiku-5-5": 0.92,
859
+ "claude-sonnet-5-5": 0.83
860
+ },
861
+ "reply-option": {
862
+ "claude-haiku-5-5": 0.87
863
+ },
864
+ "repeat-pair": {
865
+ "claude-haiku-5-5": 1
866
+ },
867
+ "taste": {}
868
+ },
869
+ "type": "object",
870
+ "propertyNames": {
871
+ "type": "string",
872
+ "enum": [
873
+ "kind",
874
+ "alignment",
875
+ "plan-outcome",
876
+ "review-verdict",
877
+ "reply-option",
878
+ "repeat-pair",
879
+ "taste"
880
+ ]
881
+ },
882
+ "additionalProperties": {
883
+ "type": "object",
884
+ "propertyNames": {
885
+ "type": "string",
886
+ "minLength": 1
887
+ },
888
+ "additionalProperties": {
889
+ "type": "number",
890
+ "minimum": 0,
891
+ "maximum": 1
892
+ }
893
+ },
894
+ "required": [
895
+ "kind",
896
+ "alignment",
897
+ "plan-outcome",
898
+ "review-verdict",
899
+ "reply-option",
900
+ "repeat-pair",
901
+ "taste"
902
+ ],
903
+ "description": "Per model-judgment boundary, the rate each model id scored on its labelled set; a pick from an id below 'minJudgeRate', or not measured, counts as an abstention."
904
+ },
905
+ "minJudgeRate": {
906
+ "default": 0.8,
907
+ "type": "number",
908
+ "minimum": 0,
909
+ "maximum": 1,
910
+ "description": "The lowest measured rate at which hum trusts a model's pick at a boundary; below it the call abstains."
911
+ },
912
+ "questionLimits": {
913
+ "default": {
914
+ "cells": 80,
915
+ "wordCells": 40
916
+ },
917
+ "type": "object",
918
+ "properties": {
919
+ "cells": {
920
+ "type": "integer",
921
+ "exclusiveMinimum": 0,
922
+ "maximum": 9007199254740991
923
+ },
924
+ "wordCells": {
925
+ "type": "integer",
926
+ "exclusiveMinimum": 0,
927
+ "maximum": 9007199254740991
928
+ }
929
+ },
930
+ "required": [
931
+ "cells",
932
+ "wordCells"
933
+ ],
934
+ "additionalProperties": false,
935
+ "description": "The most terminal cells a question holds, and the most any one word of it holds; a longer question is replaced by a short one and its text rides folded."
936
+ },
937
+ "questionTimeoutHours": {
938
+ "default": 24,
939
+ "type": "integer",
940
+ "exclusiveMinimum": 0,
941
+ "maximum": 9007199254740991,
942
+ "description": "Hours after a question that an item with no saved wait still counts as unanswered; past them the item ends stuck."
943
+ },
944
+ "priorityLabels": {
945
+ "default": [
946
+ "priority:high"
947
+ ],
948
+ "type": "array",
949
+ "items": {
950
+ "type": "string",
951
+ "minLength": 1
952
+ },
953
+ "description": "Item labels that put its question first under the daily cap, highest first."
954
+ },
955
+ "undoableLevels": {
956
+ "default": [
957
+ "low",
958
+ "medium"
959
+ ],
960
+ "type": "array",
961
+ "items": {
962
+ "type": "string",
963
+ "minLength": 1
964
+ },
965
+ "description": "Levels at which a choice that touches only the change's own files is made without the owner."
966
+ },
967
+ "ownerBranchPrefix": {
968
+ "default": "hum/owner/",
969
+ "type": "string",
970
+ "format": "ends_with",
971
+ "pattern": ".*\\/$",
972
+ "description": "The branch prefix of a pull request that lands a commit the owner wrote, such as an answer."
973
+ },
974
+ "backgroundRuns": {
975
+ "default": true,
976
+ "type": "boolean",
977
+ "description": "Whether a run on the Mac is a Claude Code background agent, listed in agent view, instead of a claude -p process."
978
+ },
979
+ "backgroundLaunchSeconds": {
980
+ "default": 30,
981
+ "type": "number",
982
+ "exclusiveMinimum": 0,
983
+ "description": "How long a launch waits for the run it just started to appear in the agent list."
984
+ },
985
+ "backgroundPollSeconds": {
986
+ "default": 1,
987
+ "type": "number",
988
+ "exclusiveMinimum": 0,
989
+ "description": "The time between reads of a background run's transcript and job state."
990
+ },
991
+ "deniedRunCommands": {
992
+ "default": [
993
+ "gh issue",
994
+ "gh label",
995
+ "gh api",
996
+ "gh auth",
997
+ "gh repo",
998
+ "gh pr create",
999
+ "gh pr comment",
1000
+ "gh pr review",
1001
+ "gh pr edit",
1002
+ "gh pr merge",
1003
+ "gh pr ready",
1004
+ "gh pr close",
1005
+ "git push"
1006
+ ],
1007
+ "type": "array",
1008
+ "items": {
1009
+ "type": "string",
1010
+ "minLength": 1
1011
+ },
1012
+ "description": "Shell commands a background run may not run: each is denied as written, with any arguments."
1013
+ },
1014
+ "runAutoMode": {
1015
+ "default": {
1016
+ "environment": [
1017
+ "A session named hum <item> <purpose> #<attempt> is an unattended hum run; nobody watches it, and its owner answers only the questions hum asks."
1018
+ ],
1019
+ "allow": [
1020
+ "$defaults",
1021
+ "Running hum's own commands (hum comment, ask, file-follow-up, decide) is the run's routine work, GitHub writes included.",
1022
+ "Reading the run's own PR and its checks on GitHub (gh pr checks, gh pr view, gh run view, --log-failed included) is routine: hum asks the run to read failed checks and fix them."
1023
+ ],
1024
+ "hardDeny": [
1025
+ "$defaults",
1026
+ "Writing to GitHub other than through hum's own commands: commenting on, labelling, creating, editing or closing issues or PRs, submitting reviews, pushing, or reading a GitHub token (gh auth token, the keychain, ~/.config/gh).",
1027
+ "Changing .hum/hum.json or any file under .github/workflows/."
1028
+ ]
1029
+ },
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "environment": {
1033
+ "type": "array",
1034
+ "items": {
1035
+ "type": "string",
1036
+ "minLength": 1
1037
+ }
1038
+ },
1039
+ "allow": {
1040
+ "type": "array",
1041
+ "items": {
1042
+ "type": "string",
1043
+ "minLength": 1
1044
+ }
1045
+ },
1046
+ "hardDeny": {
1047
+ "type": "array",
1048
+ "items": {
1049
+ "type": "string",
1050
+ "minLength": 1
1051
+ }
1052
+ }
1053
+ },
1054
+ "required": [
1055
+ "environment",
1056
+ "allow",
1057
+ "hardDeny"
1058
+ ],
1059
+ "additionalProperties": false,
1060
+ "description": "What auto mode's classifier is told about a background run: the situation it is in, what it allows, and what it always refuses; '$defaults' keeps Claude Code's own rules."
1061
+ },
1062
+ "runSlots": {
1063
+ "default": {
1064
+ "enabled": false,
1065
+ "pool": "../.hum-slots",
1066
+ "services": "per-slot",
1067
+ "ports": {
1068
+ "base": 20000,
1069
+ "stride": 10
1070
+ },
1071
+ "projectPrefix": "hum",
1072
+ "stepTimeoutSeconds": 600,
1073
+ "recipe": {
1074
+ "prepare": [],
1075
+ "refresh": [],
1076
+ "ready": []
1077
+ }
1078
+ },
1079
+ "type": "object",
1080
+ "properties": {
1081
+ "enabled": {
1082
+ "type": "boolean"
1083
+ },
1084
+ "pool": {
1085
+ "type": "string",
1086
+ "minLength": 1
1087
+ },
1088
+ "services": {
1089
+ "type": "string",
1090
+ "enum": [
1091
+ "per-slot",
1092
+ "shared"
1093
+ ]
1094
+ },
1095
+ "ports": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "base": {
1099
+ "type": "integer",
1100
+ "exclusiveMinimum": 0,
1101
+ "maximum": 9007199254740991
1102
+ },
1103
+ "stride": {
1104
+ "type": "integer",
1105
+ "exclusiveMinimum": 0,
1106
+ "maximum": 9007199254740991
1107
+ }
1108
+ },
1109
+ "required": [
1110
+ "base",
1111
+ "stride"
1112
+ ],
1113
+ "additionalProperties": false
1114
+ },
1115
+ "projectPrefix": {
1116
+ "type": "string",
1117
+ "minLength": 1
1118
+ },
1119
+ "stepTimeoutSeconds": {
1120
+ "type": "integer",
1121
+ "exclusiveMinimum": 0,
1122
+ "maximum": 9007199254740991
1123
+ },
1124
+ "recipe": {
1125
+ "type": "object",
1126
+ "properties": {
1127
+ "prepare": {
1128
+ "type": "array",
1129
+ "items": {
1130
+ "type": "string",
1131
+ "minLength": 1
1132
+ },
1133
+ "description": "Run once when a slot is made: install dependencies, start or attach services, seed data."
1134
+ },
1135
+ "refresh": {
1136
+ "type": "array",
1137
+ "items": {
1138
+ "type": "object",
1139
+ "properties": {
1140
+ "run": {
1141
+ "type": "string",
1142
+ "minLength": 1
1143
+ },
1144
+ "when": {
1145
+ "type": "string",
1146
+ "enum": [
1147
+ "always",
1148
+ "lockfile-changed"
1149
+ ]
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "run",
1154
+ "when"
1155
+ ],
1156
+ "additionalProperties": false
1157
+ },
1158
+ "description": "Run after each return, once the slot is reset to the latest base: reinstall when a lockfile changed, reset the data."
1159
+ },
1160
+ "ready": {
1161
+ "type": "array",
1162
+ "items": {
1163
+ "type": "string",
1164
+ "minLength": 1
1165
+ },
1166
+ "description": "Run after prepare and each refresh; a slot where one fails leaves the pool."
1167
+ }
1168
+ },
1169
+ "required": [
1170
+ "prepare",
1171
+ "refresh",
1172
+ "ready"
1173
+ ],
1174
+ "additionalProperties": false
1175
+ }
1176
+ },
1177
+ "required": [
1178
+ "enabled",
1179
+ "pool",
1180
+ "services",
1181
+ "ports",
1182
+ "projectPrefix",
1183
+ "stepTimeoutSeconds",
1184
+ "recipe"
1185
+ ],
1186
+ "additionalProperties": false,
1187
+ "description": "Prewarmed run slots on the Mac: worktrees of the owner's checkout that background runs work in, as many as 'runners'. 'pool' is the folder that holds them, relative to the checkout or absolute, and never inside .git, where Claude Code writes nothing; 'services' gives each slot its own services or one shared set with a database per slot; 'ports' starts each slot's block of ports; 'recipe' is the owner's own setup commands."
1188
+ },
1189
+ "ownerLogins": {
1190
+ "default": [],
1191
+ "type": "array",
1192
+ "items": {
1193
+ "type": "string",
1194
+ "minLength": 1
1195
+ },
1196
+ "description": "GitHub logins whose pull request reviews and comments are the owner's review notes."
1197
+ },
1198
+ "repeatAt": {
1199
+ "default": 2,
1200
+ "type": "integer",
1201
+ "exclusiveMinimum": 0,
1202
+ "maximum": 9007199254740991,
1203
+ "description": "Review notes stating one rule at which hum files a check item for it."
1204
+ },
1205
+ "repeatPrecision": {
1206
+ "default": 0.9,
1207
+ "type": "number",
1208
+ "exclusiveMinimum": 0,
1209
+ "exclusiveMaximum": 1,
1210
+ "description": "The lowest precision on labelled pairs at which a model's call that two notes state one rule files a check item; below it the pair waits as a possible repeat."
1211
+ },
1212
+ "tasteRules": {
1213
+ "default": [],
1214
+ "type": "array",
1215
+ "items": {
1216
+ "type": "string",
1217
+ "minLength": 1
1218
+ },
1219
+ "description": "The owner's taste rules that have no deterministic check. Each pull request hum opens gets a comment saying whether its diff keeps each rule; the comment reports only and gates nothing."
1220
+ },
1221
+ "memoryMaxBytes": {
1222
+ "default": 8000,
1223
+ "type": "integer",
1224
+ "exclusiveMinimum": 0,
1225
+ "maximum": 9007199254740991,
1226
+ "description": "The most bytes memory.md holds; a new entry past it is refused."
1227
+ },
1228
+ "memoryUnusedRuns": {
1229
+ "default": 20,
1230
+ "type": "integer",
1231
+ "exclusiveMinimum": 0,
1232
+ "maximum": 9007199254740991,
1233
+ "description": "Runs without use after which a memory.md entry is listed for the owner."
1234
+ },
1235
+ "measureWindow": {
1236
+ "default": 20,
1237
+ "type": "integer",
1238
+ "exclusiveMinimum": 0,
1239
+ "maximum": 9007199254740991,
1240
+ "description": "Merged changes the per-merge numbers average over, and the window per path."
1241
+ },
1242
+ "loopIntervalSeconds": {
1243
+ "default": 3600,
1244
+ "type": "integer",
1245
+ "exclusiveMinimum": 0,
1246
+ "maximum": 9007199254740991,
1247
+ "description": "The time between passes that collect review notes, file check items and confirm CI ran their checks."
1248
+ },
1249
+ "proofTimeoutSeconds": {
1250
+ "default": 900,
1251
+ "type": "integer",
1252
+ "exclusiveMinimum": 0,
1253
+ "maximum": 9007199254740991,
1254
+ "description": "How long the repo's checks may run, on a run's branch, on the base after a merge or as a new check on one note's commit, before they are stopped and fail."
1255
+ },
1256
+ "kindFloors": {
1257
+ "default": {},
1258
+ "type": "object",
1259
+ "propertyNames": {
1260
+ "type": "string",
1261
+ "minLength": 1
1262
+ },
1263
+ "additionalProperties": {
1264
+ "type": "string",
1265
+ "minLength": 1
1266
+ },
1267
+ "description": "A kind's lowest risk level: its changes take at least this level, as in { \"check\": \"high\" }."
1268
+ },
1269
+ "checkKind": {
1270
+ "default": "check",
1271
+ "type": "string",
1272
+ "minLength": 1,
1273
+ "description": "The kind of the work item filed for a rule that review notes repeat: it turns the notes into one check."
1274
+ },
1275
+ "breakCheck": {
1276
+ "default": true,
1277
+ "type": "boolean",
1278
+ "description": "Whether the repo's checks run on the base after each merge, so a test that breaks there files a follow-up item."
1279
+ },
1280
+ "mergeRisk": {
1281
+ "default": {
1282
+ "weights": {
1283
+ "impact": 2,
1284
+ "verification": 2,
1285
+ "rollback": 1.5,
1286
+ "errorDetection": 1,
1287
+ "alignment": 1
1288
+ },
1289
+ "cuts": [
1290
+ 1.5,
1291
+ 2.25
1292
+ ]
1293
+ },
1294
+ "type": "object",
1295
+ "properties": {
1296
+ "weights": {
1297
+ "type": "object",
1298
+ "propertyNames": {
1299
+ "type": "string",
1300
+ "enum": [
1301
+ "impact",
1302
+ "verification",
1303
+ "rollback",
1304
+ "errorDetection",
1305
+ "alignment"
1306
+ ]
1307
+ },
1308
+ "additionalProperties": {
1309
+ "type": "number",
1310
+ "exclusiveMinimum": 0
1311
+ },
1312
+ "required": [
1313
+ "impact",
1314
+ "verification",
1315
+ "rollback",
1316
+ "errorDetection",
1317
+ "alignment"
1318
+ ]
1319
+ },
1320
+ "cuts": {
1321
+ "type": "array",
1322
+ "prefixItems": [
1323
+ {
1324
+ "type": "number",
1325
+ "exclusiveMinimum": 0
1326
+ },
1327
+ {
1328
+ "type": "number",
1329
+ "exclusiveMinimum": 0
1330
+ }
1331
+ ],
1332
+ "items": false,
1333
+ "minItems": 2,
1334
+ "maxItems": 2
1335
+ }
1336
+ },
1337
+ "required": [
1338
+ "weights",
1339
+ "cuts"
1340
+ ],
1341
+ "additionalProperties": false,
1342
+ "description": "How the alignment grade raises a level: each category's grade, 1 to 3, times its weight, averaged; when the alignment call's grades move the average across a cut, the level goes one step up."
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "schemaVersion",
1347
+ "levels",
1348
+ "paths",
1349
+ "roles",
1350
+ "events",
1351
+ "kinds",
1352
+ "commitIdentity"
1353
+ ],
1354
+ "additionalProperties": false
1355
+ }